![]() |
QPanda3
Supported by OriginQ
|
Classes | |
class | Transpiler |
Functions | |
decompose (*args, **kwargs) | |
decompose(*args, **kwargs) Overloaded function. | |
list[list[int]] | generate_topology (int num_qubit, str topology_type) |
generate_topology(num_qubit: int, topology_type: str) -> list[list[int]] | |
pyqpanda3.transpilation.transpilation.decompose | ( | * | args, |
** | kwargs ) |
decompose(*args, **kwargs) Overloaded function.
Decompose a QProg into its constituent parts.
[in] | prog | The QProg to decompose. |
[in] | basic_gates | Convert the circuit to the basic_gates. |
Decompose a QCircuit into its fundamental components.
[in] | circuit | The QCircuit to decompose. |
[in] | basic_gates | Convert the circuit to the basic_gates. |
Decompose a matrix into its fundamental components.
[in] | matrix | The matrix to decompose. |
[in] | qubits | Qubits of decomposed circuit. |
[in] | basic_gates | Convert the circuit to the basic_gates. |
list[list[int]] pyqpanda3.transpilation.transpilation.generate_topology | ( | int | num_qubit, |
str | topology_type ) |
generate_topology(num_qubit: int, topology_type: str) -> list[list[int]]
Generate the topology for quantum circuits.
This function generates the topology based on the specified parameters.