Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed a bug with transfering qubits which are at other nodes #283

Open
wants to merge 1 commit into
base: Develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion simulaqron/virtual_node/virtual.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down