Skip to content

Commit

Permalink
Convert to Algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman authored May 14, 2024
1 parent 45de76b commit af837dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/ITensorMPS/src/mpo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ Equivalent to `replaceprime(contract(A, x; kwargs...), 2 => 1)`.
See also [`contract`](@ref) for details about the arguments available.
"""
function apply(A::MPO, ψ::MPS; alg=Algorithm"densitymatrix"(), kwargs...)
return apply(alg, A, ψ; kwargs...)
return apply(Algorithm(alg), A, ψ; kwargs...)
end

function apply(alg::Algorithm, A::MPO, ψ::MPS; kwargs...)
Expand Down

0 comments on commit af837dd

Please sign in to comment.