From 9e305e6bd7f454a7e69608c093381e081f666997 Mon Sep 17 00:00:00 2001 From: Bart van der Vecht Date: Wed, 21 Feb 2024 11:27:53 +0100 Subject: [PATCH] Fix check on wait_all for bell corrections --- netqasm/sdk/builder.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/netqasm/sdk/builder.py b/netqasm/sdk/builder.py index dcbfc19..9cf18fe 100644 --- a/netqasm/sdk/builder.py +++ b/netqasm/sdk/builder.py @@ -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 ) @@ -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 )