qiskit_noise_learning.gate_sets.ModelGateSet
class qiskit_noise_learning.gate_sets.ModelGateSet(num_qubits: int, *, qubit_subset: Iterable[int] | None = None, coupling_map: CouplingMap | None = None, name: str | None = None, latex_str: str | None = None)
A set of Clifford - MCM - reset gates represented as ModelGate instances.
Parameters
- num_qubits – How many qubits the QPU of interest has.
- qubit_subset – A subset of
range(num_qubits)specifying the region of interest of the QPU. All gates added must act within this subset. By default, contains all qubits. - coupling_map – A coupling map for the device. Defaults to the full coupling map on
num_qubits. - name – Name for this gate set. If
None,namefalls back to the class name. - latex_str – An optional LaTeX string for rendering this gate set.
__init__
__init__(num_qubits: int, *, qubit_subset: Iterable[int] | None = None, coupling_map: CouplingMap | None = None, name: str | None = None, latex_str: str | None = None)
Methods
Column 1 | Column 2 |
|---|---|
__init__(num_qubits, *[, qubit_subset, ...]) | |
add_gate(gate) | Add a gate to the gate set. |
draw() | Draw the device topology with per-gate coloring. |
get(k[,d]) | |
items() | |
keys() | |
values() |
Attributes
Column 1 | Column 2 |
|---|---|
coupling_map | The coupling map for the device this gate set is modeling. |
label | A string label for use in plotter legends. |
latex_str | A LaTeX string for this gate set. |
math_label | A string label for use within latex math mode. |
model_gate_set | Return a ModelGateSet representing this gate set. |
name | Name for this gate set, defaulting to the class name. |
num_qubits | The total number of qubits of the device this gateset acts on. |
qubit_subset | The indices of the subset of device qubits that all gates act on. |
target | The target of this gateset, if one exists. |
coupling_map
Type: CouplingMap
The coupling map for the device this gate set is modeling.
model_gate_set
Type: Self
Return a ModelGateSet representing this gate set.
Was this page helpful?
Report a bug, typo, or request content on GitHub.