QPanda3
0.1.0
Supported by OriginQ
|
Public Member Functions | |
None | __init__ (self) |
init(self: transpilation.Transpiler) -> None | |
transpile (self, *args, **kwargs) | |
transpile(self: transpilation.Transpiler, prog: QPanda::QProg, chip_topology_edges: list[list[int]] = [], init_mapping: dict[int, int] = {}, optimization_level: int = 2) -> QPanda::QProg | |
None pyqpanda3.transpilation.Transpiler.__init__ | ( | self | ) |
init(self: transpilation.Transpiler) -> None
Default constructor for the Transpiler.
Initializes a new Transpiler instance.
pyqpanda3.transpilation.Transpiler.transpile | ( | self, | |
* | args, | ||
** | kwargs ) |
transpile(self: transpilation.Transpiler, prog: QPanda::QProg, chip_topology_edges: list[list[int]] = [], init_mapping: dict[int, int] = {}, optimization_level: int = 2) -> QPanda::QProg
Transpile a quantum program.
This method transpiles a quantum program to fit the specified topology and optimization level.
[in] | prog | The quantum program to transpile. |
[in] | chip_topology_edges | The topology of the chip. |
[in] | init_mapping | Initial mapping from virtual qubits to physical qubits. |
[in] | optimization_level | The level of optimization to apply. |