Skip to content

Commit

Permalink
Merge pull request #78 from Thom747/fix-pmg-decomp
Browse files Browse the repository at this point in the history
Fix PMG decompositions
  • Loading branch information
bvdvecht authored Nov 13, 2024
2 parents 8566ee0 + d03095a commit 3e94ebd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netqasm/sdk/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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]

Expand Down

0 comments on commit 3e94ebd

Please sign in to comment.