LayerError
class LayerError(circuit, qubits, error)
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 thecircuit
. - error (
PauliLindbladError
) – The Pauli Lindblad error channel affecting thecircuit
.
Raises
ValueError – If circuit
, qubits
, and error
have mismatching number of qubits.
Attributes
circuit
error
generators
(DEPRECATED) The Pauli Lindblad generators of the error channel in this LayerError
.
Return type
num_qubits
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
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)
Draw a map view of a this layer error.
Parameters
- embedding (
Union
[Embedding
,BackendV2
]) – AnEmbedding
object containing the coordinates and coupling map to draw the layer error on, or a backend to generate anEmbedding
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.