stanfordLINQS / SQcircuit

Superconducting quantum circuit analyzer
BSD 3-Clause "New" or "Revised" License
43 stars 7 forks source link

Add support for Torch backend in circuit.py #8

Closed Alekxos closed 2 years ago

Alekxos commented 2 years ago

T1 Torch support added and tested, matches calculations with numpy!

codecov[bot] commented 2 years ago

Codecov Report

Merging #8 (c797106) into dev-tr (e8ab10a) will not change coverage. The diff coverage is 82.85%.

@@           Coverage Diff           @@
##           dev-tr       #8   +/-   ##
=======================================
  Coverage   90.07%   90.07%           
=======================================
  Files          16       16           
  Lines        1532     1532           
=======================================
  Hits         1380     1380           
  Misses        152      152           
Flag Coverage Δ
unittests 90.07% <82.85%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
SQcircuit/tests/test_elements.py 100.00% <ø> (ø)
SQcircuit/circuit.py 87.62% <78.57%> (ø)
SQcircuit/elements.py 93.90% <100.00%> (ø)
SQcircuit/tests/test_phase_coord.py 100.00% <100.00%> (ø)

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