diff --git a/tket/src/Circuit/ControlledGates.cpp b/tket/src/Circuit/ControlledGates.cpp index e00bf4b219..97efd617cc 100644 --- a/tket/src/Circuit/ControlledGates.cpp +++ b/tket/src/Circuit/ControlledGates.cpp @@ -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(OpType::Sdg, {arity - 1}); rep.add_op(OpType::H, {arity - 1}); + rep.add_op(OpType::Sdg, {arity - 1}); rep.append(cnry_circuit); - rep.add_op(OpType::H, {arity - 1}); rep.add_op(OpType::S, {arity - 1}); + rep.add_op(OpType::H, {arity - 1}); return rep; }