Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit Runtime client Go to the latest version

LayerError

class LayerError(circuit, qubits, error)

GitHub

The error channel (in Pauli-Lindblad format) of a single layer of instructions.

Parameters

  • circuit (QuantumCircuit) – A circuit whose noise has been learnt.
  • qubits (Sequence[int]) – The labels of the qubits in the circuit.
  • error (PauliLindbladError) – The Pauli Lindblad error channel affecting the circuit.

Raises

ValueError – If circuit, qubits, and error have mismatching number of qubits.


Attributes

circuit

The circuit in this LayerError.

Return type

QuantumCircuit

error

The error channel in this LayerError.

Return type

PauliLindbladError

generators

(DEPRECATED) The Pauli Lindblad generators of the error channel in this LayerError.

Return type

PauliList

num_qubits

The number of qubits in this LayerError.

Return type

int

qubits

The qubits in this LayerError.

Return type

list[int]

rates

(DEPRECATED) The Lindblad generator rates of the error channel in this LayerError.

Return type

ndarray[Any, dtype[float64]]


Methods

draw_map

draw_map(embedding, colorscale='Bluered', color_no_data='lightgray', num_edge_segments=16, edge_width=4, height=500, background_color='white', radius=0.25, width=800)

GitHub

Draw a map view of a this layer error.

Parameters

  • embedding (Union[Embedding, BackendV2]) – An Embedding object containing the coordinates and coupling map to draw the layer error on, or a backend to generate an Embedding for.
  • colorscale (str) – The colorscale used to show the rates of this layer error.
  • color_no_data (str) – The color used for qubits and edges for which no data is available.
  • num_edge_segments (int) – The number of equal-sized segments that edges are made of.
  • edge_width (float) – The line width of the edges in pixels.
  • height (int) – The height of the returned figure.
  • background_color (str) – The background color.
  • radius (float) – The radius of the pie charts representing the qubits.
  • width (int) – The width of the returned figure.

Return type

Figure

Was this page helpful?
Report a bug or request content on GitHub.