struct QPanda::QScheduler::PhysicsGate

Overview

physical gate More…

#include <QScheduler.h>

struct PhysicsGate
{
    // fields

    std::string type;
    int gate_type;
    bool is_dagger;
    std::vector<double> param;
    bool is_apply_swap;
    int i1;
    int j1;
    int i2;
    int j2;
    int barrier_id;

    // methods

    bool isSwapGate();
    bool isControlGate();
};

Detailed Documentation

physical gate

Fields

int j1

(i1, j1) is the position for the first qubit parament of the gate

int j2

(i2, j2) is the position for the first qubit parament of the two-qubit gate