deltakit.circuit.gates.Z#

class deltakit.circuit.gates.Z(qubit: Qubit[T] | T, *, tag: str | None = None)#

Bases: OneQubitCliffordGate[T]

Pauli Z gate. The phase flip gate.

Parameters:

qubit (Qubit[T] | T) – The qubit that this gate acts on.

Notes

Stabilizer Generators:
X -> -X
Z -> +Z
Bloch Rotation:
Axis: +Z
Angle: 180 degrees
Unitary Matrix:
\[\begin{split}\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}\end{split}\]

Methods#

Z.stim_targets

Convert the qubits this gate acts on to equivalent stim targets.

Z.transform_qubits

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