From fb117c7d5043f3bb6a5fc2d2afabeec7442111b9 Mon Sep 17 00:00:00 2001 From: Victor Vanthilt Date: Fri, 31 Jul 2026 15:43:21 +0200 Subject: [PATCH] use correct scalartype in starting huess for transfermatrix diagonalisation --- src/utility/transfer_matrix.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utility/transfer_matrix.jl b/src/utility/transfer_matrix.jl index a4244444..e08da018 100644 --- a/src/utility/transfer_matrix.jl +++ b/src/utility/transfer_matrix.jl @@ -379,7 +379,7 @@ function leading_eigenvalue( BraidingStyle(I) != Bosonic() || error("pbc = false only applies to fermionic tensors.") end V = (I == Trivial) ? field(tm.TA)^1 : Vect[I](charge => 1) - x = ones(domain(tm) ← V) + x = ones(E, domain(tm) ← V) dim(x) == 0 && error("$charge is not allowed by the transfer matrix.") tm′(x) = tm(x; pbc) spec, _, info = eigsolve(