qbraid.visualization.circuit_drawer
- circuit_drawer(program, as_package=None, output=None, **kwargs)[source]
Draws circuit diagram.
- Parameters:
program (
TypeVar
(QPROGRAM
, bound=Any
)) – Supported quantum programas_package (
Optional
[str
]) – The package to convert the program to before drawingoutput (
Optional
[str
]) – The output format for the circuit diagram
- Raises:
ProgramTypeError – If quantum program is not of a supported type
ValueError – If an invalid output option is provided
- Return type:
Any