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

Ray multiprocessing #151

Closed AlexisRalli closed 10 months ago

AlexisRalli commented 11 months ago

Multiprocessing replaced to use ray library (should solve environment issues).

Note that multiprocessing is still present in symmer.evolution.variational_optimization

Also note that for use on supercomputer need to be careful when using ray (ie need extra things in bash script - see link!)

codecov-commenter commented 11 months ago

Codecov Report

Merging #151 (9cda6c2) into main (21d3b21) will decrease coverage by 1.94%. The diff coverage is 54.95%.

@@            Coverage Diff             @@
##             main     #151      +/-   ##
==========================================
- Coverage   79.74%   77.81%   -1.94%     
==========================================
  Files          33       33              
  Lines        3550     3669     +119     
==========================================
+ Hits         2831     2855      +24     
- Misses        719      814      +95     
Files Changed Coverage Δ
symmer/operators/anticommuting_op.py 82.08% <12.50%> (-9.51%) :arrow_down:
symmer/utils.py 76.92% <26.31%> (-5.13%) :arrow_down:
symmer/operators/noncontextual_op.py 81.16% <35.71%> (-7.52%) :arrow_down:
symmer/operators/base.py 64.24% <59.25%> (-3.71%) :arrow_down:
symmer/operators/utils.py 77.27% <96.29%> (+0.62%) :arrow_up:
symmer/operators/independent_op.py 90.72% <100.00%> (+0.18%) :arrow_up:
symmer/projection/contextual_subspace.py 95.62% <100.00%> (+0.09%) :arrow_up:

... and 1 file with indirect coverage changes