Closed JoshuaLau0220 closed 8 months ago
make test
make test-docker
make lint
qcir::QCir::calculate_gate_times()
qcir::QCirGate::get_time()
qcir::QCir::append(GateType, QubitIdList)
qcir::QCir::prepend(GateType, QubitIdList)
qcir::QCir::get_gates()
qcir::QCir::get_gate(size_t id)
qcir::QCir
qcir::Optimizer
qcir::QCirGate
qcir::QCir::get_topologically_ordered_gates()
Check List
make test
?make test-docker
?make lint
before submission?Added
qcir::QCir::calculate_gate_times()
to replaceqcir::QCirGate::get_time()
qcir::QCir::append(GateType, QubitIdList)
qcir::QCir::prepend(GateType, QubitIdList)
Changed
qcir::QCir::get_gates()
now also returns a topologically sorted list to prevent confusion caused by multiple get-gates APIs.qcir::QCir::get_gate(size_t id)
now returns the gate in $O(1)$.qcir::QCir
now automatically maintains its topological gate orders---The user no longer need to update it manually.Fixed
qcir::QCir
not freeing the memory it allocates correctlyqcir::Optimizer
not freeing the memory it allocates correctlyRemoved
qcir::QCirGate::get_time()
: the info it returns is always unreliable.qcir::QCirGate
's traversal pin members.qcir::QCir::get_topologically_ordered_gates()
and other topological order-related features: rendered useless with the above changes