Skip to content

Commit

Permalink
Fix check on wait_all for bell corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart van der Vecht committed Feb 21, 2024
1 parent 9043330 commit 9e305e6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions netqasm/sdk/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1526,8 +1526,7 @@ def _build_cmds_epr_recv_keep(

self.subrt_add_pending_commands(wait_cmds) # type: ignore

# if wait_all and (params.expect_phi_plus or params.expect_psi_plus):
if params.expect_phi_plus or params.expect_psi_plus:
if wait_all and (params.expect_phi_plus or params.expect_psi_plus):
self._build_cmds_epr_keep_corrections(
qubit_ids_array, ent_results_array, params
)
Expand Down Expand Up @@ -1667,8 +1666,7 @@ def _build_cmds_epr_recv_rsp(

self.subrt_add_pending_commands(wait_cmds) # type: ignore

# if wait_all and (params.expect_phi_plus or params.expect_psi_plus):
if params.expect_phi_plus or params.expect_psi_plus:
if wait_all and (params.expect_phi_plus or params.expect_psi_plus):
self._build_cmds_epr_keep_corrections(
qubit_ids_array, ent_results_array, params
)
Expand Down

0 comments on commit 9e305e6

Please sign in to comment.