Skip to content

Commit

Permalink
Update ControlledGates.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
sjdilkes committed May 21, 2024
1 parent b6f5fa6 commit c5c9332
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tket/src/Circuit/ControlledGates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -817,11 +817,11 @@ Circuit CnRz_normal_decomp(const Op_ptr op, unsigned arity) {
// Therefore we add basis change Clifford gates to this qubit
Circuit rep(arity);

rep.add_op<unsigned>(OpType::Sdg, {arity - 1});
rep.add_op<unsigned>(OpType::H, {arity - 1});
rep.add_op<unsigned>(OpType::Sdg, {arity - 1});
rep.append(cnry_circuit);
rep.add_op<unsigned>(OpType::H, {arity - 1});
rep.add_op<unsigned>(OpType::S, {arity - 1});
rep.add_op<unsigned>(OpType::H, {arity - 1});
return rep;
}

Expand Down

0 comments on commit c5c9332

Please sign in to comment.