deltakit.circuit.gates.RX#

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

Bases: OneQubitResetGate[T]

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

Parameters:

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

Notes

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

Methods#

RX.stim_targets

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

RX.transform_qubits

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