deltakit.circuit.gates.OneQubitGate#

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

Bases: Gate[T]

Abstraction of a single qubit gate. This is the base class for all one qubit gates including measurements, resets and Clifford gates.

stim_string#

The string that stim associates to this gate.

Type:

str

Parameters:

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

Methods#

OneQubitGate.stim_targets

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

OneQubitGate.transform_qubits

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