Closed jofrevalles closed 11 months ago
Merging #79 (0f14437) into master (9e5349d) will decrease coverage by
0.82%
. The diff coverage is50.00%
.
@@ Coverage Diff @@
## master #79 +/- ##
==========================================
- Coverage 78.27% 77.46% -0.82%
==========================================
Files 9 9
Lines 695 701 +6
==========================================
- Hits 544 543 -1
- Misses 151 158 +7
Files Changed | Coverage Δ | |
---|---|---|
src/Quantum/PEP.jl | 0.00% <0.00%> (ø) |
|
src/Quantum/Quantum.jl | 76.04% <ø> (ø) |
|
src/Tenet.jl | 25.00% <ø> (-75.00%) |
:arrow_down: |
src/Quantum/MP.jl | 90.10% <100.00%> (-0.80%) |
:arrow_down: |
@mofeing, your requested changes should be fixed
Summary
In this PR, we resolve #77 by extending our
MatrixProduct
andProjectedEntangledPair
types to include support for infinite boundary conditions, materialized in the infinite Matrix Product States (iMPS) and infinite Projected Entangled Pair States (iPEPS). This creates a structure where the tensors cycle periodically, emulating an infinite system by using a finite system unit cell that repeats itself.The
tensors
,Base.show
andBase.length
functions have been extended to supportTensorNetworks
withInfinte
boundary conditions. Additional unit tests have been added to ensure the proper functioning of these new boundary conditions for both theMPS
andMPO
structures.Nevertheless, the visualization of infinite boundary types is not yet supported and we should think about how to implement this.
Example
Let's create a
MatrixProduct{State, Infinite}
which consists of a cell of three tensors that repeat indefinitely: