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

fix!(fock): Rewrite PostSelectPhotons #289

Merged
merged 1 commit into from
Apr 2, 2024
Merged

fix!(fock): Rewrite PostSelectPhotons #289

merged 1 commit into from
Apr 2, 2024

Conversation

Kolarovszki
Copy link
Collaborator

This is not really a fix, rather a rewrite:

  • PostSelectPhotons can be considered as a subclass of Measurement, because generally we cannot use the same Simulator for further simulations.
  • PostSelectPhotons should really be returning with the state on the remaining modes, it is not needed to keep the postselected photons in the ancilla mode.

@Kolarovszki Kolarovszki requested a review from czaba7 April 1, 2024 14:13
This is not really a fix, rather a rewrite:
- `PostSelectPhotons` can be considered as a subclass of `Measurement`, because
  generally we cannot use the same `Simulator` for further simulations.
- `PostSelectPhotons` should really be returning with the state on the
  remaining modes, it is not needed to keep the postselected photons in the
  ancilla mode.
Copy link

codecov bot commented Apr 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.38%. Comparing base (721ddbc) to head (d3d5b65).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #289   +/-   ##
=======================================
  Coverage   95.37%   95.38%           
=======================================
  Files          62       61    -1     
  Lines        3332     3336    +4     
=======================================
+ Hits         3178     3182    +4     
  Misses        154      154           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Kolarovszki Kolarovszki merged commit 4cc6742 into main Apr 2, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants