deltakit.circuit.gates.Gate#

class deltakit.circuit.gates.Gate(*, tag: str | None = None)#

Bases: ABC, Generic[T]

Abstract gate class from which all other gate classes must inherit.

stim_string#

The string that stim associates to this gate.

Type:

str

Methods#

Gate.stim_targets

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

Gate.transform_qubits

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