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
RangePredicateOp
range_predicate = RangePredicateOp(2, 0, 2) c = Circuit(0, 5) c.add_gate(range_predicate, [1, 2, 4]) qasm = circuit_to_qasm_str(c, header="hqslib1") print(qasm)
generate incorrect QASM
OPENQASM 2.0; include "hqslib1.inc"; creg c[5]; if(c<=2) c[4] = 1; if(c>2) c[4] = 0;
Conversion should only work for RangePredicateOps whose condition spans an entire register.
RangePredicateOps
The text was updated successfully, but these errors were encountered:
Apply RangePredicate condition checks in qasm conversion to all heade…
442d0e2
…rs. Fixes Incorrect qasm conversion of `RangePredicateOp` #1642
Feature/qasm convert conditional rangepredicate (#1645)
a066027
* Apply RangePredicate condition checks in qasm conversion to all headers. Fixes Incorrect qasm conversion of `RangePredicateOp` #1642 * Refactor RangePredicate support check * Handle conditional RangePredicates in qasm conversion. Resolved Incorrect QASM from conditional `RangePredicate` #1508 * Update changelog * Remove unused import * Fix typing error
yao-cqc
Successfully merging a pull request may close this issue.
generate incorrect QASM
Conversion should only work for
RangePredicateOps
whose condition spans an entire register.The text was updated successfully, but these errors were encountered: