qbraid.visualization

Module for visualizing quantum programs, experimental results, and other associated data.

Functions

plot_histogram(counts[, legend, colors, ...])

Plots a histogram of measurement counts against quantum states.

plot_distribution(counts[, legend, colors, ...])

Plots a histogram probability distribution of quantum states.

plot_conversion_graph(graph[, title, ...])

Plot the conversion graph using matplotlib.

plot_runtime_conversion_scheme(device, **kwargs)

Plot the runtime conversion scheme for a given quantum device.

circuit_drawer(program[, as_package, output])

Draws circuit diagram.

qasm3_drawer(qasm_str)

Draws the circuit from the input string

plot_atomic_register(sites, filling[, ...])

Plots atomic register given site coordinates and filling.

animate_qpu_state(state[, dilation_rate, ...])

Animates the QPU state.

Exceptions

VisualizationError

Class for errors raised when using visualization features.