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
RangePredicate
range_predicate = RangePredicateOp(6, 0, 27) c = Circuit(0, 8) c.add_gate(range_predicate, [0, 1, 2, 3, 4, 5, 6], condition=Bit(7)) qasm = circuit_to_qasm_str(c, header="hqslib1")
prints
OPENQASM 2.0; include "hqslib1.inc"; creg c[8]; if(c[7]==1) if(c<=27) c[6] = 1; if(c>27) c[6] = 0;
First of all, there shouldn't be two ifs in one line, and secondly the second assignment has incomplete conditions. The latter is caused by #1491 .
The text was updated successfully, but these errors were encountered:
yao-cqc
No branches or pull requests
prints
First of all, there shouldn't be two ifs in one line, and secondly the second assignment has incomplete conditions. The latter is caused by #1491 .
The text was updated successfully, but these errors were encountered: