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 -> +ZDecomposition(into H, S, CX, M, R):The following circuit is equivalent(up to global phase) toR 0R 0(The decomposition is trivial because this gate is in the target gateset.)
Methods#
Convert the qubits this gate acts on to equivalent stim targets. |
|
Transform this gates's qubits according to the id mapping. |