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

PauliwordOp base functionality improved #134

Closed AlexisRalli closed 1 year ago

AlexisRalli commented 1 year ago

PauliwordOp hash functionality added AND from_matrix bug fixed AND faster binary to int function put into symmer.operators.utils (see binary_array_to_int)

codecov-commenter commented 1 year ago

Codecov Report

Merging #134 (8761d5f) into main (5f1e721) will increase coverage by 0.24%. The diff coverage is 95.91%.

@@            Coverage Diff             @@
##             main     #134      +/-   ##
==========================================
+ Coverage   78.87%   79.11%   +0.24%     
==========================================
  Files          31       31              
  Lines        3403     3428      +25     
==========================================
+ Hits         2684     2712      +28     
+ Misses        719      716       -3     
Impacted Files Coverage Δ
symmer/operators/utils.py 76.15% <83.33%> (+0.29%) :arrow_up:
symmer/operators/base.py 67.63% <94.73%> (+0.61%) :arrow_up:
tests/test_operators/test_base.py 99.64% <100.00%> (+0.01%) :arrow_up:
tests/test_projection/test_contextual_subspace.py 93.05% <100.00%> (+0.09%) :arrow_up:
tests/test_projection/test_utils.py 86.00% <100.00%> (+0.28%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.