circuit_knitting.cutting.qpd.SingleQubitQPDGate

class SingleQubitQPDGate(basis, qubit_id, *, basis_id=None, label=None)[source]

Bases: BaseQPDGate

Single qubit gate to be decomposed using quasiprobability decomposition.

This gate could be part of a larger decomposition on many qubits, or it could be a standalone single gate decomposition.

Initialize the single qubit QPD gate, and assign member variables.

Parameters:

qubit_id (int) – This gate’s relative index to the decomposition which it belongs. Single qubit QPDGates should have qubit_id 0 if they describe a local decomposition, such as a wire cut.

Raises:

ValueError – qubit_id is out of range

Methods

__init__(basis, qubit_id, *[, basis_id, label])

Initialize the single qubit QPD gate, and assign member variables.

Attributes

qubit_id

Relative qubit index of this gate in the overall decomposition.