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

Circuit Converters

qiskit.converters

circuit_to_dag(circuit)Build a DAGCircuit object from a QuantumCircuit.
dag_to_circuit(dag)Build a QuantumCircuit object from a DAGCircuit.
circuit_to_instruction(circuit[, …])Build an Instruction object from a QuantumCircuit.
circuit_to_gate(circuit[, parameter_map, …])Build a Gate object from a QuantumCircuit.
ast_to_dag(ast)Build a DAGCircuit object from an AST Node object.
Was this page helpful?
Report a bug or request content on GitHub.