We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rightunitspace
1 parent de8cb81 commit 68acebbCopy full SHA for 68acebb
test/operators.jl
@@ -213,7 +213,7 @@ module TestOperators
213
FiniteMPOHamiltonian(grid, horizontal_operators) atol = 1.0e-4
214
215
H5 = changebonds(H4 / 3 + 2H4 / 3, SvdCut(; trscheme = trunctol(; atol = 1.0e-12)))
216
- psi = FiniteMPS(physicalspace(H5), V ⊕ oneunit(V))
+ psi = FiniteMPS(physicalspace(H5), V ⊕ rightunitspace(V))
217
@test expectation_value(psi, H4) ≈ expectation_value(psi, H5)
218
end
219
@@ -366,7 +366,7 @@ module TestOperators
366
367
@testset "DenseMPO" for ham in (transverse_field_ising(), heisenberg_XXX(; spin = 1))
368
pspace = physicalspace(ham, 1)
369
- ou = oneunit(pspace)
+ ou = rightunitspace(pspace)
370
371
ψ = InfiniteMPS([pspace], [ou ⊕ pspace])
372
0 commit comments