Skip to content

Commit

Permalink
Update CircPool.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
sjdilkes committed Aug 11, 2023
1 parent 7089fb5 commit 7fd734f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tket/src/Circuit/CircPool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -839,11 +839,11 @@ Circuit YYPhase_using_TK2(const Expr &alpha) {

Circuit YYPhase_using_CX(const Expr &alpha) {
Circuit c(2);
c.add_op<unsigned>(OpType::U3, {0, -0.5, 0}, {0});
c.add_op<unsigned>(OpType::Sdg, {0});
c.add_op<unsigned>(OpType::CX, {1, 0});
c.add_op<unsigned>(OpType::U3, {0, alpha, 0}, {1});
c.add_op<unsigned>(OpType::Ry, alpha, {1});
c.add_op<unsigned>(OpType::CX, {1, 0});
c.add_op<unsigned>(OpType::U3, {0, 0.5, 0}, {0});
c.add_op<unsigned>(OpType::S, {0});
return c;
}

Expand Down

0 comments on commit 7fd734f

Please sign in to comment.