QPanda3
Supported by OriginQ
Loading...
Searching...
No Matches
pyqpanda3.transpilation.transpilation Namespace Reference

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]]
 

Function Documentation

◆ decompose()

pyqpanda3.transpilation.transpilation.decompose ( * args,
** kwargs )

decompose(*args, **kwargs) Overloaded function.

  1. decompose(prog: QPanda3::QProg, basic_gates: list[str]) -> QPanda3::QProg

Decompose a QProg into its constituent parts.

Parameters
[in]progThe QProg to decompose.
[in]basic_gatesConvert the circuit to the basic_gates.
Returns
The decomposed QProg.
  1. decompose(circuit: QPanda3::QCircuit, basic_gates: list[str] = []) -> QPanda3::QCircuit

Decompose a QCircuit into its fundamental components.

Parameters
[in]circuitThe QCircuit to decompose.
[in]basic_gatesConvert the circuit to the basic_gates.
Returns
The decomposed QCircuit.
  1. decompose(matrix: numpy.ndarray[numpy.complex128[m, n]], qubits: list[int] = [], basic_gates: list[str] = []) -> QPanda3::QCircuit

Decompose a matrix into its fundamental components.

Parameters
[in]matrixThe matrix to decompose.
[in]qubitsQubits of decomposed circuit.
[in]basic_gatesConvert the circuit to the basic_gates.
Returns
The decomposed QCircuit.

◆ generate_topology()

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.