Skip to main content
IBM Quantum Platform

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)

GitHub

Bases: GateSet[ModelGate]

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, name falls 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_mapThe coupling map for the device this gate set is modeling.
labelA string label for use in plotter legends.
latex_strA LaTeX string for this gate set.
math_labelA string label for use within latex math mode.
model_gate_setReturn a ModelGateSet representing this gate set.
nameName for this gate set, defaulting to the class name.
num_qubitsThe total number of qubits of the device this gateset acts on.
qubit_subsetThe indices of the subset of device qubits that all gates act on.
targetThe 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.