Closed jofrevalles closed 1 year ago
Merging #54 (27b69c7) into master (0f7c7cd) will increase coverage by
3.30%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #54 +/- ##
==========================================
+ Coverage 79.64% 82.95% +3.30%
==========================================
Files 12 12
Lines 614 610 -4
==========================================
+ Hits 489 506 +17
+ Misses 125 104 -21
Impacted Files | Coverage Δ | |
---|---|---|
src/Tenet.jl | 100.00% <ø> (ø) |
|
src/Quantum/MatrixProductState.jl | 91.56% <100.00%> (+19.61%) |
:arrow_up: |
Great! Thanks for catching this bug. Just a lil' change and I'm merging it!
This PR addresses the issue with the
rand
function for generating randomMatrixProductStates
(MPS) with an odd number of tensors. Previously, the function produced an error when the number of tensors in the argument was odd:Now, the
rand
function correctly handles cases where the number of tensors is odd. Also, we have added tests to ensure its correct behavior.