Skip to content

Stmts

P0

Bases: ConstantOp

The \(P_0\) projection operator.

\[ P0 = \begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix} \]

P1

Bases: ConstantOp

The \(P_1\) projection operator.

\[ P1 = \begin{bmatrix} 0 & 0 \\ 0 & 1 \end{bmatrix} \]

PhaseOp

Bases: PrimitiveOp

A phase operator.

\[ \text{PhaseOp}(\theta) = e^{i \theta} I \]

Reset

Bases: PrimitiveOp

Reset operator for qubits and wires.

ResetToOne

Bases: PrimitiveOp

Reset qubits to the one state. Mainly needed to accommodate cirq's GeneralizedAmplitudeDampingChannel

ShiftOp

Bases: PrimitiveOp

A phase shift operator.

\[ \text{Shift}(\theta) = \begin{bmatrix} 1 & 0 \\ 0 & e^{i \theta} \end{bmatrix} \]

Sn

Bases: ConstantOp

\(S_{-}\) operator.

\[ Sn = \frac{1}{2} (S_x - i S_y) = \frac{1}{2} \begin{bmatrix} 0 & 0 \\ 1 & 0 \end{bmatrix} \]

Sp

Bases: ConstantOp

\(S_{+}\) operator.

\[ Sp = \frac{1}{2} (S_x + i S_y) = \frac{1}{2}\begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix} \]

U3

Bases: PrimitiveOp

The rotation operator U3(theta, phi, lam). Note that we use the convention from the QASM2 specification, namely

\[ U_3(\theta, \phi, \lambda) = R_z(\phi) R_y(\theta) R_z(\lambda) \]