deltakit.circuit.gates.RY#

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

Bases: OneQubitResetGate[T]

Y - basis reset. Forces each target qubit into the | i > state by silently measuring it in the Y basis and applying an X gate if it ended up in the | -i > state.

Parameters:

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

Notes

Stabilizer Generators:
1 -> +Y
Decomposition(into H, S, CX, M, R):
The following circuit is equivalent(up to global phase) to RY 0
S 0
S 0
S 0
H 0
R 0
H 0
S 0

Methods#

RY.stim_targets

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

RY.transform_qubits

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