qiskit_addon_cutting.qpd.BaseQPDGate¶
- class BaseQPDGate(name, basis, num_qubits, *, basis_id=None, label=None)[source]¶
Bases:
Instruction
Base class for a gate to be decomposed using quasiprobability decomposition.
Initialize the instruction, and assign member variables.
- Parameters:
name (str) – Name of the QPD gate.
basis (QPDBasis) – A probabilistic basis to which the gate should be decomposed
num_qubits (int) – The number of qubits on which the QPD gate acts
basis_id (int | None) – An index to the basis to which the gate should be decomposed. This index is to basis.maps.
label (str | None) – An optional label for the gate
Methods
__init__
(name, basis, num_qubits, *[, ...])Initialize the instruction, and assign member variables.
Attributes
basis
Quasiprobability decomposition basis.
basis_id
Index to basis used to decompose this gate.