entropicalabs / openqaoa

Multi-backend SDK for quantum optimisation
MIT License
116 stars 58 forks source link

added new dictionary method to Hamiltonian class, and few other updates #210

Closed vishal-ph closed 1 year ago

vishal-ph commented 1 year ago

Description

Checklist

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Added a new unit-test in test_operators.py file to test the new method

codecov[bot] commented 1 year ago

Codecov Report

Merging #210 (a248b43) into dev (3278e64) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##              dev     #210   +/-   ##
=======================================
  Coverage   97.72%   97.73%           
=======================================
  Files          37       37           
  Lines        6771     6789   +18     
=======================================
+ Hits         6617     6635   +18     
  Misses        154      154           
Impacted Files Coverage Δ
tests/test_operators.py 100.00% <100.00%> (ø)
tests/test_qpu_devices.py 98.63% <100.00%> (ø)

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