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

feat(fock): Avoid matrix embedding #261

Merged
merged 1 commit into from
Feb 13, 2024
Merged

feat(fock): Avoid matrix embedding #261

merged 1 commit into from
Feb 13, 2024

Conversation

Kolarovszki
Copy link
Collaborator

In FockSimulator, the unitary matrices acting on the density operator were embedded in the Fock space, before directly multiplying with the density matrix. This can be done faster, by avoiding embedding and modifying only the relevant parts of the density matrix, as done in PureFockSimulator with the state vector instead of the density matrix. This approach has been implemented in this patch.

In `FockSimulator`, the unitary matrices acting on the density operator were
embedded in the Fock space, before directly multiplying with the density
matrix. This can be done faster, by avoiding embedding and modifying only the
relevant parts of the density matrix, as done in `PureFockSimulator` with the
state vector instead of the density matrix. This approach has been implemented
in this patch.
Copy link

codecov bot commented Feb 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3f77b3e) 96.97% compared to head (bda1972) 97.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #261      +/-   ##
==========================================
+ Coverage   96.97%   97.00%   +0.02%     
==========================================
  Files          58       58              
  Lines        3139     3167      +28     
==========================================
+ Hits         3044     3072      +28     
  Misses         95       95              

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

@Kolarovszki Kolarovszki merged commit 9e98868 into main Feb 13, 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.

1 participant