About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
draw_layer_error_map
draw_layer_error_map(layer_error, 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 LayerError
.
Parameters
- layer_error (
LayerError
) – TheLayerError
to draw. - 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 oflayer_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.
Raises
- ValueError – If the given coordinates are incompatible with the specified backend.
- ValueError – If
backend
has no coupling map. - ModuleNotFoundError – If the required
plotly
dependencies cannot be imported.
Return type
Figure
Was this page helpful?
Report a bug or request content on GitHub.