We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following test QCOR program:
__qpu__ void cz(qreg q) { CNOT(q[0], q[1]); CZ(q[0], q[1]); Measure(q[0]); Measure(q[1]); } int main() { set_shots(1024); set_verbose(true); auto q = qalloc(2); cz(q); q.print(); }
will throw the following error when running ./cz after compiling with -opt 1 passed to qcor:
./cz
-opt 1
qcor
cz: /home/austin/Documents/school/gatech/grad/xacc/xacc/quantum/plugins/optimizers/simple/CircuitOptimizer.cpp:681: bool xacc::quantum::CircuitOptimizer::tryRotationMergingUsingPhasePolynomials(std::shared_ptr<xacc::CompositeInstruction>&): Assertion `instruction->name() == "CNOT"' failed. Aborted (core dumped)
I believe this is thrown by this line of CircuitOptimizer: https://github.com/eclipse/xacc/blob/4b894baf30e60824753a4ef810c2c57e113adee4/quantum/plugins/optimizers/simple/CircuitOptimizer.cpp#L681. I tried to take a look at it and fix it, but I honestly do not quite understand how that part of the code works
CircuitOptimizer
The text was updated successfully, but these errors were encountered:
Related to eclipse-xacc#478
3b39f4b
The procedure was not properly taking into account non-IBM gateset, i.e., 2-q gates may not be CNOT. Signed-off-by: Thien Nguyen <[email protected]>
ae3d9c9
No branches or pull requests
The following test QCOR program:
will throw the following error when running
./cz
after compiling with-opt 1
passed toqcor
:I believe this is thrown by this line of
CircuitOptimizer
: https://github.com/eclipse/xacc/blob/4b894baf30e60824753a4ef810c2c57e113adee4/quantum/plugins/optimizers/simple/CircuitOptimizer.cpp#L681. I tried to take a look at it and fix it, but I honestly do not quite understand how that part of the code worksThe text was updated successfully, but these errors were encountered: