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

Multiple recieves at the same time #160

Open
AckslD opened this issue Mar 26, 2019 · 0 comments
Open

Multiple recieves at the same time #160

AckslD opened this issue Mar 26, 2019 · 0 comments
Assignees

Comments

@AckslD
Copy link
Member

AckslD commented Mar 26, 2019

Currently simulaqron blocks while waiting for a qubit or an EPR pair. This is because we call Pythons time.sleep at https://github.com/SoftwareQuTech/SimulaQron/blob/bf918480b23bc86327725b5c94806e7208eda44d/cqc/backend/cqcMessageHandler.py#L1027 and https://github.com/SoftwareQuTech/SimulaQron/blob/bf918480b23bc86327725b5c94806e7208eda44d/cqc/backend/cqcMessageHandler.py#L1444. Instead of blocking we can use a similar approach to what we do when connecting, by using twisted callLater-functionality, see for example https://github.com/SoftwareQuTech/SimulaQron/blob/bf918480b23bc86327725b5c94806e7208eda44d/simulaqron/virtNode/virtual.py#L274.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants