UCL-CCS / symmer

An efficient Python-based framework for implementing qubit subspace methods, reducing the resource requirements for near-term quantum simulations.
MIT License
37 stars 9 forks source link

Faster `PauliwordOp.to_opemnfermion` #175

Closed MIWdlB closed 7 months ago

MIWdlB commented 7 months ago

Previous version of the function used symplectic_to_string then looped through the string.

I've made a new function which amends symplectic_to_string directly so that this isn't necessary.

Files changed

Looks like a huge amount of change but its mostly linting (suggests that CICD is not working as intended). I can revert that if you'd rather.

codecov-commenter commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (a9c3c72) 75.78% compared to head (8fa551d) 75.87%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #175 +/- ## ========================================== + Coverage 75.78% 75.87% +0.09% ========================================== Files 35 35 Lines 3936 3951 +15 ========================================== + Hits 2983 2998 +15 Misses 953 953 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

MIWdlB commented 7 months ago

Can probably be made a bit faster by converting the whole symplectic in a vectorised function but low priority to figure that out.