Skip to content

Commit 66c8d23

Browse files
authored
[Optimizer] Do not modulo 2pi at circuit input (#177)
1 parent 0607ad0 commit 66c8d23

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/quartz/tasograph/tasograph.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -1467,12 +1467,6 @@ Graph::_from_qasm_stream(Context *ctx,
14671467
}
14681468
if (negative)
14691469
p = -p;
1470-
while (p < 0) {
1471-
p += 2 * PI;
1472-
}
1473-
while (p >= 2 * PI) {
1474-
p -= 2 * PI;
1475-
}
14761470
auto src_op = graph->add_parameter(p);
14771471
int src_idx = 0;
14781472
auto dst_op = op;

0 commit comments

Comments
 (0)