From d03095a4076f8090602abe525f38a9ba58ab03e4 Mon Sep 17 00:00:00 2001 From: Thom van der Steenhoven Date: Wed, 13 Nov 2024 09:42:49 +0100 Subject: [PATCH] Fix PMG decompositions --- netqasm/sdk/builder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netqasm/sdk/builder.py b/netqasm/sdk/builder.py index 1389e90..64185f3 100644 --- a/netqasm/sdk/builder.py +++ b/netqasm/sdk/builder.py @@ -1156,7 +1156,7 @@ def _build_cmds_measure( first, second, third = { QubitMeasureAxes.XYX: (0, 24, 0), QubitMeasureAxes.YZY: (24, 0, 0), - QubitMeasureAxes.ZXZ: (0, 24, 8), + QubitMeasureAxes.ZXZ: (24, 24, 8), }[axes] meas_command = ICmd( @@ -1174,7 +1174,7 @@ def _build_cmds_measure( elif basis == QubitMeasureBasis.Y: first, second, third = { QubitMeasureAxes.XYX: (8, 0, 0), - QubitMeasureAxes.YZY: (8, 24, 0), + QubitMeasureAxes.YZY: (8, 24, 24), QubitMeasureAxes.ZXZ: (0, 8, 0), }[axes]