Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
a724420
add_util_leg spinoff for MPOHamiltonian
borisdevos Mar 25, 2025
eeefc58
apply add_util_mpoleg to correlator
borisdevos Mar 25, 2025
909e453
use add_util_mpoleg in FiniteMPO
borisdevos Mar 25, 2025
03d4001
use add_util_mpoleg in test on correlator
borisdevos Mar 25, 2025
2abc2ff
avoid `oneunit(S)` in one constructor of `InfiniteMPOHamiltonian`
borisdevos Mar 26, 2025
822d728
avoid `oneunit(S)` in one constructor of `FiniteMPOHamiltonian`
borisdevos Mar 26, 2025
4c1345e
remove type `LocalOperator` in `_oneunit`
borisdevos Mar 26, 2025
9b569d4
remove braidings in `left/right_excitation_transfer_system` of `Infin…
borisdevos Apr 9, 2025
8de0443
typo in `right_excitation_transfer_system`
borisdevos Apr 9, 2025
5fbd831
rewrite `(In)FiniteMPOHamiltonian` and the way `oneunit` was avoided
borisdevos Apr 11, 2025
b981601
Merge branch 'master' of https://github.com/borisdevos/MPSKit.jl into…
borisdevos Apr 17, 2025
c28a9c1
avoid `oneunit(spacetype(H))` evaluation
borisdevos Apr 18, 2025
37cecd3
super important typo
borisdevos Apr 18, 2025
eba85c5
Merge branch 'master' of https://github.com/QuantumKitHub/MPSKit.jl i…
borisdevos Apr 24, 2025
f584d2b
remove comments
borisdevos Jun 10, 2025
f8f6c2c
get `return_type` in `excitations` to evaluate the `sector` kwarg
borisdevos Jun 11, 2025
889873a
typo
borisdevos Jul 17, 2025
94d4d9d
manipulate `oneunit`s in addition of `MPOHamiltonian`s
borisdevos Jul 24, 2025
7597d30
Merge branch 'master' of https://github.com/QuantumKitHub/MPSKit.jl i…
borisdevos Jul 25, 2025
22d01d0
format
borisdevos Jul 25, 2025
1983070
simplify expression
borisdevos Aug 25, 2025
f6578b6
add comments
borisdevos Aug 25, 2025
cf11547
get `infinite_temperature_density_matrix` working
borisdevos Aug 25, 2025
f86dee4
generalise identifying space in `infinite_temperature_density_matrix`
borisdevos Aug 26, 2025
967f68d
make util spaces generic in `left/right_excitation_transfer_system`
borisdevos Aug 27, 2025
2114cdc
remove braiding in `InfiniteQP` environments + rename variables for c…
borisdevos Aug 27, 2025
4435fc2
Revert "remove braiding in `InfiniteQP` environments + rename variabl…
borisdevos Aug 27, 2025
309254d
add multifusion tests
borisdevos Aug 27, 2025
02a944a
actually use my variable everywhere
borisdevos Aug 27, 2025
75a6a1b
add Z2 Ising model
borisdevos Aug 27, 2025
43bbdd9
compare to Z2 Ising model + add injectivity check
borisdevos Aug 27, 2025
3930db3
remove defaulting to `Z2Irrep` for new operators
borisdevos Aug 28, 2025
0aa00ad
fix kitaev model term (even if it's not used)
borisdevos Aug 28, 2025
4b975ad
format
borisdevos Aug 28, 2025
769dbde
actually run the multifusion test
borisdevos Aug 28, 2025
b31ffa1
import TestSetup module, remove unused deps + add variance tests
borisdevos Aug 29, 2025
03dbee3
specify allowed spin for Z2 `S_zz` + don't use deprecated call
borisdevos Aug 29, 2025
a17874a
add variance tests for `FiniteMPS` + allow it to be negative (?) + ad…
borisdevos Aug 29, 2025
2c96ab1
Merge branch 'master' of https://github.com/QuantumKitHub/MPSKit.jl i…
borisdevos Sep 3, 2025
fdd95c7
Revert "Merge branch 'master' of https://github.com/QuantumKitHub/MPS…
borisdevos Sep 3, 2025
54a4f74
Revert "Revert "Merge branch 'master' of https://github.com/QuantumKi…
borisdevos Sep 3, 2025
2f1108e
Revert "Merge branch 'master' of https://github.com/QuantumKitHub/MPS…
borisdevos Sep 3, 2025
8d83a82
Revert "Revert "Merge branch 'master' of https://github.com/QuantumKi…
borisdevos Sep 3, 2025
a2027b0
fix the messed up merges hopefully
borisdevos Sep 3, 2025
05e33dd
format
borisdevos Sep 3, 2025
ca03f89
actually format everything
borisdevos Sep 3, 2025
d0a5ddf
Merge https://github.com/borisdevos/MPSKit.jl into boris-MTK-compat
borisdevos Sep 24, 2025
3e0855a
Merge branch 'main' of https://github.com/QuantumKitHub/MPSKit.jl int…
borisdevos Nov 5, 2025
4783937
typo
borisdevos Nov 25, 2025
54d5c2a
deal with float dimension
borisdevos Nov 25, 2025
a04358e
`left/rightunit` for MPS and MPO
borisdevos Dec 5, 2025
de9ad5a
using `left/rightunit(space)`
borisdevos Dec 5, 2025
0bab813
test updates
borisdevos Dec 5, 2025
18a1862
some `unitspace`s
borisdevos Dec 16, 2025
b16d01e
some `rightunitspace`s
borisdevos Dec 16, 2025
37b8241
docstring to ED
borisdevos Dec 16, 2025
de8cb81
remove ED error test
borisdevos Dec 16, 2025
68acebb
more `rightunitspace`s in tests
borisdevos Dec 16, 2025
a20612f
even more `rightunitspace`s
borisdevos Dec 16, 2025
ddbc1e3
some `unit`s, `leftunit`s and `isunit`s
borisdevos Dec 16, 2025
bf9a13c
Merge branch 'main' of https://github.com/QuantumKitHub/MPSKit.jl int…
borisdevos Dec 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/algorithms/toolbox.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Return the density matrix of the infinite temperature state for a given Hamilton
This is the identity matrix in the physical space, and the identity in the auxiliary space.
"""
function infinite_temperature_density_matrix(H::MPOHamiltonian)
V = oneunit(spacetype(H))
V = oneunit(space(first(H[1]), 1))
W = map(1:length(H)) do site
return BraidingTensor{scalartype(H)}(physicalspace(H, site), V)
end
Expand Down
4 changes: 2 additions & 2 deletions src/operators/mpohamiltonian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ function FiniteMPOHamiltonian(lattice::AbstractArray{<:VectorSpace}, local_opera
somempo = local_mpos[1].second[1]
sp_oneleg = space(somempo, 1)

_oneunit = oneunit(sp_oneleg)
_oneunit = oneunit(sp_oneleg) # should be rightoneunit, but MPOHamiltonians are always diagonal for now

virtualsumspaces = Vector{SumSpace{S}}(undef, length(lattice) + 1)
virtualsumspaces[1] = SumSpace(fill(_oneunit, 1))
Expand Down Expand Up @@ -669,7 +669,7 @@ function Base.:+(
) where {O <: JordanMPOTensor}
N = check_length(H₁, H₂)
H = similar(parent(H₁))
Vtriv = oneunit(space(first(H₁[1]), 1))
Vtriv = oneunit(space(first(H₁[1]), 1)) # should also be rightoneunit, but is currently diagonal

for i in 1:N
A = cat(H₁[i].A, H₂[i].A; dims = (1, 4))
Expand Down
3 changes: 2 additions & 1 deletion src/utility/utility.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ function add_util_mpoleg(tensor::AbstractTensorMap{T, S, N1, N2}) where {T, S, N
# separate function for mpo because add_util_leg is also used for mps from tensors
# and the additional legs there can be different depending on the fusion tree

ou = Vect[sectortype(_firstspace(tensor))](one(first(sectors(_firstspace(tensor)))) => 1)
#TODO?: might need a left and right utility space if MPO has module virtual space (doesn't happen for hamiltonians)
ou = S(one(first(blocksectors(tensor))) => 1)

util_front = isomorphism(storagetype(tensor), ou * codomain(tensor), codomain(tensor))
util_back = isomorphism(storagetype(tensor), domain(tensor), domain(tensor) * ou)
Expand Down
Loading