Closed thisac closed 1 year ago
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
Changes the way that states are stored and accessed. Instead of being returned from the
simulate()
function, which now returnsNone
, the state is stored in theCircuit
object. This makes more sense since the measurement results are already stored in theCircuit
object, inside the classical register bits, and will hopefully cause less confusion with the state only altering the circuit and not also returning results.The state is now stored in the
Circuit
object (same as the bits/measurement results) instead of being returned by thesimulate()
function. It can now be accessed via theCircuit.state
property.A density matrix representation of the state can be accessed via the
Circuit.density_matrix
property, for both pure and mixed states (with the former being lazily calculated from the state vector).