From 2429f53bbdd0ecce14cc8ca42af8d59162078099 Mon Sep 17 00:00:00 2001 From: Simon Sekavcnik Date: Fri, 23 Aug 2024 16:22:58 +0200 Subject: [PATCH] Fixed a bug with transfering qubits which are at other nodes --- simulaqron/virtual_node/virtual.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simulaqron/virtual_node/virtual.py b/simulaqron/virtual_node/virtual.py index 66a6187..cc75efc 100644 --- a/simulaqron/virtual_node/virtual.py +++ b/simulaqron/virtual_node/virtual.py @@ -706,7 +706,7 @@ def remote_send_qubit(self, qubit, targetName): else: self._logger.debug(f"Sending qubit simulated remotely at {qubit.simNode.name}") # Also lock the virtual node of the simulating node unless it is the remoteNode or this node - locked_node = yield self._lock_simulating_node(exclude=[self.virtNode, remoteNode]) + locked_node = yield qubit._lock_simulating_node(exclude=[self, remoteNode]) try: # We are only the virtual node, not the simulating one. In this case, we need to ask # the actual simulating node to do the transfer for us. Due to the pecularities of Twisted PB