u#
Full path: iqm.pulse.gates.u
Single-qubit SU(2) gate.
The SU(2) matrix in the computational basis is parametrized using Euler angles:
where the angles \(\theta\), \(\phi\) and \(\lambda\) are in radians. They are the angles of subsequent Z, Y and Z Euler rotations:
It rotates the qubit state around an arbitrary axis on the Bloch sphere.
Some common single-qubit gates expressed as U gates:
References
https://openqasm.com/language/gates.html#built-in-gates
Module Attributes
Fundamental mathematical constant pi divided by two for performance. |
|
Mapping of names used to describe Clifford gates to the tuples \(\theta, \phi, \lambda\) representing their ZYZ Euler angle decompositions. |
|
If the angle is below this threshold, it is understood to be zero. |
Functions
|
Generates a random unitary matrix drawn uniformly from Haar measure. |
|
Calculate parameters for an SU(2) gate given its unitary. |
|
Unitary for an SU(2) gate. |
Classes
SU(2) gate implemented using PRX. |
Inheritance
