QPanda3  0.1.0
Supported by OriginQ
Loading...
Searching...
No Matches
pyqpanda3.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.decompose ( * args,
** kwargs )

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

  1. decompose(prog: QPanda::QProg) -> QPanda::QProg
      @brief Decompose a QProg into its constituent parts.
      @param[in] prog The QProg to decompose.
      @return The decomposed QProg.
  1. decompose(prog: QPanda::QCircuit) -> QPanda::QCircuit
      @brief Decompose a QCircuit into its fundamental components.
      @param[in] circuit The QCircuit to decompose.
      @return The decomposed QCircuit.

◆ generate_topology()

list[list[int]] pyqpanda3.transpilation.generate_topology ( int num_qubit,
str topology_type )

generate_topology(num_qubit: int, topology_type: str) -> list[list[int]]

      @brief Generate the topology for quantum circuits.
      @details This function generates the topology based on the specified parameters.