Skip to content

Commit

Permalink
Don't replace constants in trapped ion instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart van der Vecht committed Oct 19, 2023
1 parent 08eabf9 commit 75353cb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions netqasm/lang/parsing/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,15 @@ def _make_args_operands(subroutine):
(GenericInstr.BREAKPOINT, 1),
]

for instr in [
GenericInstr.ROT_X_ALL,
GenericInstr.ROT_Y_ALL,
GenericInstr.ROT_Z_ALL,
GenericInstr.BICHROMATIC,
]:
for index in [0, 1]:
_REPLACE_CONSTANTS_EXCEPTION.append((instr, index))

for instr in [GenericInstr.ROT_X, GenericInstr.ROT_Y, GenericInstr.ROT_Z]:
for index in [1, 2]:
_REPLACE_CONSTANTS_EXCEPTION.append((instr, index))
Expand Down

0 comments on commit 75353cb

Please sign in to comment.