iqm.pulse.gates.u.get_su2_params#
- iqm.pulse.gates.u.get_su2_params(unitary, threshold=1e-13)#
Calculate parameters for an SU(2) gate given its unitary.
The parameters are calculated up to global phase, and such that
0 <= theta <= piand-pi <= phi, lam < pi. Seeiqm.pulse.gates.ufor the definition of the gate parameters.- Parameters:
- Returns:
Parameters theta, phi, lambda for the
ugate.- Return type: