dwavesystems / dwave-gate

dwave-gate is a software package for constructing, modifying and running quantum circuits on the provided state-vector simulator.
Apache License 2.0
12 stars 7 forks source link

Store state in Circuit #30

Closed thisac closed 1 year ago

thisac commented 1 year ago

Changes the way that states are stored and accessed. Instead of being returned from the simulate() function, which now returns None, the state is stored in the Circuit object. This makes more sense since the measurement results are already stored in the Circuit object, inside the classical register bits, and will hopefully cause less confusion with the state only altering the circuit and not also returning results.

codecov-commenter commented 1 year ago

Codecov Report

Merging #30 (20ea2cf) into master (ecb8b06) will not change coverage. The diff coverage is 100.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff            @@
##            master       #30   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           15        15           
  Lines         1191      1224   +33     
  Branches       184       191    +7     
=========================================
+ Hits          1191      1224   +33     
Impacted Files Coverage Δ
dwave/gate/circuit.py 100.00% <100.00%> (ø)

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