QPanda3  0.1.0
Supported by OriginQ
Loading...
Searching...
No Matches
pyqpanda3.transpilation.Transpiler Class Reference

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
 

Constructor & Destructor Documentation

◆ __init__()

None pyqpanda3.transpilation.Transpiler.__init__ ( self)

init(self: transpilation.Transpiler) -> None

Default constructor for the Transpiler.

Initializes a new Transpiler instance.

Member Function Documentation

◆ transpile()

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.

Parameters
[in]progThe quantum program to transpile.
[in]chip_topology_edgesThe topology of the chip.
[in]init_mappingInitial mapping from virtual qubits to physical qubits.
[in]optimization_levelThe level of optimization to apply.
Returns
The transpiled quantum program.

The documentation for this class was generated from the following file: