tequila.circuit.gates.RotationGate¶
-
tequila.circuit.gates.
RotationGate
(axis: int, angle: Union[collections.abc.Hashable, numbers.Number], target: Union[list, int], control: Union[list, int] = None)[source]¶ Initialize an abstract rotation gate.
Notes
Initialize an abstract rotation gate of the form
\[R_{\text{axis}}(\text{angle}) = e^{-i\frac{\text{angle}}{2} \sigma_{\text{axis}}}\]- Parameters
axis – integer 1 for x, 2 for y, 3 for z
angle – Hashable type (will be treated as Variable) or Numeric type (static angle)
target – integer or list of integers
control – integer or list of integers
- Returns
- Return type
QCircuit object with this RotationGate