class QPanda::SU4TopologyMatch

Overview

Su4 quantum circuit matches the topology of the physical qubits. More…

#include <SU4TopologyMatch.h>

class SU4TopologyMatch
{
public:
    // structs

    struct gate;
    struct gates_digraph;
    struct node;
    struct node_cmp;

    // construction

    SU4TopologyMatch(
        QuantumMachine* machine,
        QVec& qv,
        ArchType arch_type = IBM_QX5_ARCH
        );

    // methods

    void mapping_qprog(QProg prog, QProg& mapped_prog);
};

Detailed Documentation

Su4 quantum circuit matches the topology of the physical qubits.

Methods

void mapping_qprog(QProg prog, QProg& mapped_prog)

Mapping qubits in a quantum program.

Parameters:

Qprog

quantum program

Qprog&

the mapped quantum program

Returns:

void