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.
dagdependency_to_circuit(dagdependency)Build a QuantumCircuit object from a DAGDependency.
circuit_to_dagdependency(circuit)Build a DAGDependency object from a QuantumCircuit.
dag_to_dagdependency(dag)Build a DAGDependency object from a DAGCircuit.
dagdependency_to_dag(dagdependency)Build a DAGCircuit object from a DAGDependency.
Was this page helpful?
Report a bug or request content on GitHub.