Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Mar 3, 2025
1 parent c8bea98 commit da3c147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operators/mpohamiltonian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function InfiniteMPOHamiltonian{O}(W_mats::Vector{<:Matrix}) where {O<:MPOTensor
size(W_mat, 1) == size(W_mat, 2) ||
throw(ArgumentError("matrices should be square"))
end
allequal(Base.Fix1(size, 1), W_mats) ||
allequal(Base.Fix2(size, 1), W_mats) ||
throw(ArgumentError("matrices should have the same size"))
nlvls = size(W_mats[1], 1)

Expand Down

0 comments on commit da3c147

Please sign in to comment.