We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9fde01 commit d3e1f09Copy full SHA for d3e1f09
src/cqasm/cqasm_reader.cc
@@ -188,7 +188,7 @@ class AngleFromParameter : public Value<Real> {
188
Real val;
189
if (auto i = operands[index]->as_const_int()) {
190
val = i->value;
191
- } else if (auto r = operands[index]->as_const_int()) {
+ } else if (auto r = operands[index]->as_const_real()) {
192
val = r->value;
193
} else {
194
throw Exception("expected a real number at " + location(*operands[index]));
0 commit comments