-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add a variation of "get_classical" that can receive a message from any host #145
Comments
I would like to work on this issue. Can you please assign it to me? |
Sure will do. |
Before implementing this feature, since it's a bit tricky, it would be good if you write out how you plan to solve it first. I can give you some tips on how it can be done. |
@stephendiadamo can I open a PR too since this issue is still open? |
@lavanya-m-k what's your status with this one? Do you have a solution in mind? @san-gh I have to check if we can reward two people with the same prize. I guess it's fine to make a PR too. But it would be good to know in advance how you plan to solve this one, since it's a bit tricky. Thanks |
Ok so, regarding the approach. Since the requirement is to listen for messages from any host, I want to specifically make a new function How does this sound? @stephendiadamo |
That sounds pretty good to me. And it incorporates waiting for such a message to arrive? For the PR we'll need to add a test case as well, since it is a library function rather than a one-off simulation. |
Yes, I will incorporate wait using a queue timeout the same way as Ok, so will it be enough to add test cases to |
@san-gh yes that will be fine for the tests. Thanks! |
@stephendiadamo I was occupied with other issues till now. Will start this today and post my approach soon. If @san-gh already has a solution and wants to create PR @san-gh can proceed with that. |
Hey @stephendiadamo , sorry to bother you but could you please assign this issue to me ? And if it has been solved to your satisfaction mark it as closed ? |
Hi.
I'm trying to implement a simple network with QuNetSim, but I'm having trouble with the function "get_classical".
I want my nodes to listen to incoming messages, but "get_classical" requires that I indicate which host to listen to. My current solution is to create a loop with every possible other host and call "get_classical" with a small "wait_time", but this seems like a poor solution.
Is there a way to listen to any classical packet (in my example there is no need for this functionality for quantum channels) sent by any host?
Thank you.
The text was updated successfully, but these errors were encountered: