We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36cea64 commit 96a5200Copy full SHA for 96a5200
1 file changed
src/operators/windowhamiltonian.jl
@@ -25,8 +25,7 @@ function WindowMPOHamiltonian(ham::InfiniteMPOHamiltonian, interval::UnitRange)
25
finite_ham = FiniteMPOHamiltonian([ham[i] for i in interval])
26
WindowMPOHamiltonian(left_ham, finite_ham, right_ham)
27
end
28
-#
29
-Base.parent(h::WindowMPOHamiltonian) = h.finite_ham
+
30
31
Base.copy(h::WindowMPOHamiltonian) = WindowMPOHamiltonian(copy(h.left_ham), copy(h.finite_ham), copy(h.right_ham))
32
0 commit comments