jcmgray / quimb

A python library for quantum information and many-body calculations including tensor networks.
http://quimb.readthedocs.io
Other
455 stars 107 forks source link

add openqasm support to Circuit #138

Closed rezah closed 10 months ago

rezah commented 1 year ago

A simple attepmt to include open_qasm to Circuit class

codecov[bot] commented 1 year ago

Codecov Report

Merging #138 (b1da185) into develop (335b1d6) will decrease coverage by 40.33%. The diff coverage is 5.63%.

@@             Coverage Diff              @@
##           develop     #138       +/-   ##
============================================
- Coverage    79.06%   38.73%   -40.34%     
============================================
  Files           40       40               
  Lines        15657    15721       +64     
============================================
- Hits         12379     6089     -6290     
- Misses        3278     9632     +6354     
Impacted Files Coverage Δ
quimb/tensor/tensor_core.py 29.12% <ø> (-40.90%) :arrow_down:
quimb/tensor/circuit.py 24.17% <5.63%> (-57.80%) :arrow_down:
quimb/tensor/geometry.py 7.87% <0.00%> (-90.31%) :arrow_down:
quimb/tensor/circuit_gen.py 12.94% <0.00%> (-87.06%) :arrow_down:
quimb/tensor/tensor_dmrg.py 13.30% <0.00%> (-79.40%) :arrow_down:
quimb/tensor/tensor_1d_tebd.py 13.39% <0.00%> (-76.56%) :arrow_down:
quimb/tensor/tensor_approx_spectral.py 15.15% <0.00%> (-72.73%) :arrow_down:
quimb/tensor/tensor_2d.py 14.60% <0.00%> (-70.39%) :arrow_down:
quimb/tensor/tensor_2d_tebd.py 15.14% <0.00%> (-66.58%) :arrow_down:
quimb/tensor/drawing.py 5.91% <0.00%> (-62.93%) :arrow_down:
... and 20 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

jcmgray commented 10 months ago

I ended adapting this to a openqasm parser here: https://github.com/jcmgray/quimb/commit/7ed075fae1aee68c6d16cd08c635d1af4e0f897e, so closing in favor of that, but thanks for the PR anyhow Reza!