deltakit.circuit.gates.YCZ#

class deltakit.circuit.gates.YCZ(control: UT | T, target: VT | T, *, tag: str | None = None)#

Bases: ControlledGate[Qubit[T], Qubit[T] | SweepBit | MeasurementRecord]

The Y-controlled Z gate. First qubit is the control, second qubit is the target. The second qubit can be replaced by a measurement record. Applies a Z gate to the target if the control is in the |-i> state.

Notes

Negates the amplitude of the |-i,1> state.

Stabilizer Generators:
X_ -> +XZ
Z_ -> +ZZ
_X -> +YX
_Z -> +_Z
Unitary Matrix:
\[\begin{split}\begin{pmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & -i \\ 0 & 0 & i & 0 \end{pmatrix}\end{split}\]

Methods#

YCZ.from_consecutive

Yield an class instance for each pair in a flattened sequence of data.

YCZ.stim_targets

Get the stim gate targets which define this operation.

YCZ.transform_qubits

Transform this gates's qubits according to the id mapping.