.. index:: pair: class; QPanda::SU4TopologyMatch .. _doxid-class_q_panda_1_1_s_u4_topology_match: class QPanda::SU4TopologyMatch ============================== .. toctree:: :hidden: struct_QPanda_SU4TopologyMatch_gate.rst struct_QPanda_SU4TopologyMatch_gates_digraph.rst struct_QPanda_SU4TopologyMatch_node.rst struct_QPanda_SU4TopologyMatch_node_cmp.rst Overview ~~~~~~~~ Su4 quantum circuit matches the topology of the physical qubits. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class SU4TopologyMatch { public: // structs struct :ref:`gate`; struct :ref:`gates_digraph`; struct :ref:`node`; struct :ref:`node_cmp`; // construction :target:`SU4TopologyMatch`( :ref:`QuantumMachine`* machine, :ref:`QVec`& qv, :ref:`ArchType` arch_type = :ref:`IBM_QX5_ARCH` ); // methods void :ref:`mapping_qprog`(:ref:`QProg` prog, :ref:`QProg`& mapped_prog); }; .. _details-class_q_panda_1_1_s_u4_topology_match: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Su4 quantum circuit matches the topology of the physical qubits. Methods ------- .. index:: pair: function; mapping_qprog .. _doxid-class_q_panda_1_1_s_u4_topology_match_1a623be5524634c5f9151aabd5aa6aa2f6: .. ref-code-block:: cpp :class: doxyrest-title-code-block void mapping_qprog(:ref:`QProg` prog, :ref:`QProg`& mapped_prog) Mapping qubits in a quantum program. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - Qprog - quantum program * - Qprog& - the mapped quantum program .. rubric:: Returns: void