From 7fd734fecab030b6f1a56e522e84cc776c163658 Mon Sep 17 00:00:00 2001 From: sjdilkes Date: Fri, 11 Aug 2023 14:18:33 +0100 Subject: [PATCH] Update CircPool.cpp --- tket/src/Circuit/CircPool.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tket/src/Circuit/CircPool.cpp b/tket/src/Circuit/CircPool.cpp index f6b18d8b29..40e78584fb 100644 --- a/tket/src/Circuit/CircPool.cpp +++ b/tket/src/Circuit/CircPool.cpp @@ -839,11 +839,11 @@ Circuit YYPhase_using_TK2(const Expr &alpha) { Circuit YYPhase_using_CX(const Expr &alpha) { Circuit c(2); - c.add_op(OpType::U3, {0, -0.5, 0}, {0}); + c.add_op(OpType::Sdg, {0}); c.add_op(OpType::CX, {1, 0}); - c.add_op(OpType::U3, {0, alpha, 0}, {1}); + c.add_op(OpType::Ry, alpha, {1}); c.add_op(OpType::CX, {1, 0}); - c.add_op(OpType::U3, {0, 0.5, 0}, {0}); + c.add_op(OpType::S, {0}); return c; }