基础介绍
深入学习
量子程序信息
编译量子程序
实用工具
组件
VQNet
量子算法基础
API Reference
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(); };
physical gate
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