Closed jofrevalles closed 1 year ago
Merging #61 (9750d63) into master (03d0c8b) will increase coverage by
1.18%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #61 +/- ##
==========================================
+ Coverage 82.76% 83.95% +1.18%
==========================================
Files 12 12
Lines 650 667 +17
==========================================
+ Hits 538 560 +22
+ Misses 112 107 -5
Impacted Files | Coverage Δ | |
---|---|---|
src/Transformations.jl | 97.50% <100.00%> (+0.94%) |
:arrow_up: |
Summary
This PR addresses the issue #16 (resolves #16) by introducing the
AntiDiagonalGauging
transformation in thetransform!
function forTensorNetworks
. This transformation applies the anti-diagonal gauging (as defined here) to modify the tensor network while preserving its mathematical properties.The
AntiDiagonalGauging
transformation reverses the order of some indices for tensors that fulfill an anti-diagonal condition. While this transformation alone does not directly contribute to computational efficiency, it prepares the tensor network for further simplifications by creating tensors with diagonal indices. These tensors can then be simplified using theDiagonalReduction
transformation, which was implemented in PR #58.In addition to the implementation of the transformation, this PR includes tests to ensure the correctness and robustness of the new method.
Example
In this example, we illustrate how the
AntiDiagonalGauging
transformation converts a tensor with an anti-diagonal structure into one with a diagonal structure.