qiskit-documentation/docs/api/qiskit/0.29/converters.mdx

31 lines
2.5 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: converters (v0.29)
description: API reference for qiskit.converters in qiskit v0.29
in_page_toc_min_heading_level: 2
python_api_type: module
python_api_name: qiskit.converters
---
<span id="module-qiskit.converters" />
<span id="qiskit-converters" />
<span id="circuit-converters-qiskit-converters" />
# Circuit Converters
`qiskit.converters`
| | |
| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------- |
| [`circuit_to_dag`](qiskit.converters.circuit_to_dag "qiskit.converters.circuit_to_dag")(circuit) | Build a `DAGCircuit` object from a `QuantumCircuit`. |
| [`dag_to_circuit`](qiskit.converters.dag_to_circuit "qiskit.converters.dag_to_circuit")(dag) | Build a `QuantumCircuit` object from a `DAGCircuit`. |
| [`circuit_to_instruction`](qiskit.converters.circuit_to_instruction "qiskit.converters.circuit_to_instruction")(circuit\[, …]) | Build an `Instruction` object from a `QuantumCircuit`. |
| [`circuit_to_gate`](qiskit.converters.circuit_to_gate "qiskit.converters.circuit_to_gate")(circuit\[, parameter\_map, …]) | Build a `Gate` object from a `QuantumCircuit`. |
| [`ast_to_dag`](qiskit.converters.ast_to_dag "qiskit.converters.ast_to_dag")(ast) | Build a `DAGCircuit` object from an AST `Node` object. |
| [`dagdependency_to_circuit`](qiskit.converters.dagdependency_to_circuit "qiskit.converters.dagdependency_to_circuit")(dagdependency) | Build a `QuantumCircuit` object from a `DAGDependency`. |
| [`circuit_to_dagdependency`](qiskit.converters.circuit_to_dagdependency "qiskit.converters.circuit_to_dagdependency")(circuit) | Build a `DAGDependency` object from a `QuantumCircuit`. |
| [`dag_to_dagdependency`](qiskit.converters.dag_to_dagdependency "qiskit.converters.dag_to_dagdependency")(dag) | Build a `DAGDependency` object from a `DAGCircuit`. |
| [`dagdependency_to_dag`](qiskit.converters.dagdependency_to_dag "qiskit.converters.dagdependency_to_dag")(dagdependency) | Build a `DAGCircuit` object from a `DAGDependency`. |