deltakit.circuit.InvertiblePauliZ#

class deltakit.circuit.InvertiblePauliZ(qubit: Qubit[T] | T, invert: bool = False)#

Bases: InvertiblePauliGate[T]

Representation of a Z gate measurement on a single qubit the result of which can be inverted. Needed for measuring Pauli products.

Parameters:
  • qubit (Qubit[T] | T) – The qubit to act the Z gate on.

  • invert (bool, optional) – Whether to invert the result of this gate measurement, by default False.

Methods#

InvertiblePauliZ.stim_targets

Get the stim target for this gate.

InvertiblePauliZ.transform_qubits

Transform this noise channel's qubits according to the id mapping.