u

u#

Single-qubit SU(2) gate.

The SU(2) matrix in the computational basis is parametrized using Euler angles:

\[\begin{split}U(\theta, \phi, \lambda) = \begin{pmatrix} cos(\theta / 2) & -e^{i\lambda}\sin{\theta/2} \\ e^{i\phi}\sin{\theta/2} & e^{i(\lambda+\phi)}\cos{\theta/2} \end{pmatrix}\end{split}\]

where the angles \(\theta\), \(\phi\) and \(\lambda\) are in radians. They are the angles of subsequent Z, Y and Z Euler rotations:

\[U(\theta, \phi, \lambda) = R_Z(\phi) \: R_Y(\theta) \: R_Z(\lambda)\]

It rotates the qubit state around an arbitrary axis on the Bloch sphere.

Some common single-qubit gates expressed as U gates:

\[\begin{split}X = U(\pi, -\pi/2, \pi/2)\\ Y = U(\pi, 0, 0)\\ Z = U(0, 0, \pi)\\ H = U(\pi / 2, 0, \pi)\\ S = U(0, \pi / 4, \pi / 4)\\ T = U(0, \pi / 8, \pi / 8)\end{split}\]

References

https://openqasm.com/language/gates.html#built-in-gates

Full path: iqm.pulse.gates.u

Classes

UGate

SU(2) gate implemented using PRX.

Inheritance

digraph inheritance60d6566f0b { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "ABC" [URL="https://docs.python.org/3.11/library/abc.html#abc.ABC",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Helper class that provides a standard way to create an ABC using"]; "CompositeGate" [URL="iqm.pulse.gate_implementation.CompositeGate.html#iqm.pulse.gate_implementation.CompositeGate",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Utility base class for creating gate implementations that are defined in terms of other gate implementations."]; "GateImplementation" -> "CompositeGate" [arrowsize=0.5,style="setlinewidth(0.5)"]; "GateImplementation" [URL="iqm.pulse.gate_implementation.GateImplementation.html#iqm.pulse.gate_implementation.GateImplementation",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="ABC for implementing quantum gates and other quantum operations using instruction schedules."]; "ABC" -> "GateImplementation" [arrowsize=0.5,style="setlinewidth(0.5)"]; "UGate" [URL="iqm.pulse.gates.u.UGate.html#iqm.pulse.gates.u.UGate",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="SU(2) gate implemented using PRX."]; "CompositeGate" -> "UGate" [arrowsize=0.5,style="setlinewidth(0.5)"]; }