deltakit.circuit.gates.RZ#

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

Bases: OneQubitResetGate[T]

Z - basis reset. Forces each target qubit into the \(\ket{0}\) state by silently measuring it in the Z basis and applying an X gate if it ended up in the \(\ket{1}\) state.

Parameters:

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

Notes

Stabilizer Generators:
1 -> +Z
Decomposition(into H, S, CX, M, R):
The following circuit is equivalent(up to global phase) to R 0
R 0
(The decomposition is trivial because this gate is in the target gate
set.)

Methods#

RZ.stim_targets

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

RZ.transform_qubits

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