-
Notifications
You must be signed in to change notification settings - Fork 36
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
release back to pool on photon discard event #531
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @res6idue and @zigen)
quisp/modules/PhysicalConnection/BSA/BellStateAnalyzer.cc
line 178 at r1 (raw file):
} void BellStateAnalyzer::measureSuccessfully(PhotonRecord &p, PhotonRecord &q, bool is_psi_plus) {
If discard photon function doesn't return photonic qubits to pool properly. What about this one? Have you checked this case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @Naphann and @zigen)
quisp/modules/PhysicalConnection/BSA/BellStateAnalyzer.cc
line 178 at r1 (raw file):
Previously, Naphann (Naphan Benchasattabuse) wrote…
If discard photon function doesn't return photonic qubits to pool properly. What about this one? Have you checked this case?
I think for the case when we hit this function, we still arrive at discard photons
Well I think that when we fail in the indistinguishable window, we also need to discard those photons, so I will fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @Chibikuri, @Naphann, and @zigen)
quisp/modules/PhysicalConnection/BSA/BellStateAnalyzer.cc
line 178 at r1 (raw file):
Previously, res6idue (soon) wrote…
I think for the case when we hit this function, we still arrive at discard photons
Well I think that when we fail in the indistinguishable window, we also need to discard those photons, so I will fix it.
Fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed all commit messages.
Reviewable status: 0 of 1 files reviewed, 2 unresolved discussions (waiting on @Chibikuri, @res6idue, and @zigen)
quisp/modules/PhysicalConnection/BSA/BellStateAnalyzer.cc
line 178 at r1 (raw file):
Previously, res6idue (soon) wrote…
Fixed.
See my other comment.
quisp/modules/PhysicalConnection/BSA/BellStateAnalyzer.cc
line 102 at r2 (raw file):
auto q = second_port_records[i]; if (fabs(p.arrival_time - q.arrival_time) < indistinguishability_window) {
What about this case? Do they get returned to the pool properly somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, 2 unresolved discussions (waiting on @Chibikuri, @Naphann, and @zigen)
quisp/modules/PhysicalConnection/BSA/BellStateAnalyzer.cc
line 102 at r2 (raw file):
Previously, Naphann (Naphan Benchasattabuse) wrote…
What about this case? Do they get returned to the pool properly somewhere?
sorry, I forgot to add the discard photon function for the successful case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, 2 unresolved discussions (waiting on @Chibikuri, @Naphann, and @zigen)
quisp/modules/PhysicalConnection/BSA/BellStateAnalyzer.cc
line 102 at r2 (raw file):
Previously, res6idue (soon) wrote…
sorry, I forgot to add the discard photon function for the successful case.
Added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @Chibikuri and @zigen)
c653e1e
to
971d2ab
Compare
971d2ab
to
e4372fa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r4, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @Chibikuri)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @Chibikuri)
This PR fixes the issue that the memory gets used up, resulting in a kill during some simulations
This change is