Skip to content

Commit

Permalink
Merge pull request #69 from maartenvd/auto-juliaformatter-pr
Browse files Browse the repository at this point in the history
Automatic JuliaFormatter.jl run
  • Loading branch information
DaanMaertens authored Sep 26, 2023
2 parents f71d9fd + b910e66 commit da9e5b7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/operators/multipliedoperator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,6 @@ Base.:*(x::MultipliedOperator, v) = x(v);

# don't know a better place to put this
# environment for MultipliedOperator
environments(st,x::MultipliedOperator,args...;kwargs...) = environments(st,x.op,args...;kwargs...)
function environments(st, x::MultipliedOperator, args...; kwargs...)
return environments(st, x.op, args...; kwargs...)
end
6 changes: 3 additions & 3 deletions test/algorithms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ end
alg = TDVP()

# with regular MPOHamiltonian
H0left = simpleH;
H0middle = repeat( simpleH, 20);
H0right = simpleH;
H0left = simpleH
H0middle = repeat(simpleH, 20)
H0right = simpleH

Ψ = InfiniteMPS([ℂ^2], [ℂ^20])
Ψwindow = WindowMPS(Ψ, 20)
Expand Down
2 changes: 1 addition & 1 deletion test/states.jl
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ end
period = rand(1:4)
Ψ = InfiniteMPS(fill(d, period), fill(D, period))

Ψwindow = WindowMPS(rand, ComplexF64, rand(5:10), d, D, Ψ, Ψ); # version that does not copy
Ψwindow = WindowMPS(rand, ComplexF64, rand(5:10), d, D, Ψ, Ψ) # version that does not copy
@test Ψwindow.left_gs === Ψwindow.right_gs # the same reference

Ψwindow_copied = copy(Ψwindow)
Expand Down

0 comments on commit da9e5b7

Please sign in to comment.