Skip to content

Commit

Permalink
Decompose Z-rotation for bell corrections into X- and Y-rotations
Browse files Browse the repository at this point in the history
  • Loading branch information
tud278959 committed Feb 17, 2024
1 parent d6b11e7 commit 9043330
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion netqasm/sdk/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1371,7 +1371,11 @@ def _build_cmds_epr_keep_corrections_single_pair(
): # Psi- -> apply X-gate and Z-gate
correction_cmds = [
ICmd(instruction=GenericInstr.ROT_X, operands=[qubit_reg, 16, 4]),
ICmd(instruction=GenericInstr.ROT_Z, operands=[qubit_reg, 16, 4]),
# ICmd(instruction=GenericInstr.ROT_Z, operands=[qubit_reg, 16, 4]),
# Decompose Z180 into Y90, X180, -Y90
ICmd(instruction=GenericInstr.ROT_Y, operands=[qubit_reg, 8, 4]),
ICmd(instruction=GenericInstr.ROT_X, operands=[qubit_reg, 16, 4]),
ICmd(instruction=GenericInstr.ROT_Y, operands=[qubit_reg, 24, 4]),
]
self.subrt_add_pending_commands(correction_cmds) # type: ignore
else:
Expand Down

0 comments on commit 9043330

Please sign in to comment.