Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

Commit

Permalink
Fix merge in LinearAlgebra.norm2
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Jun 2, 2024
1 parent af59181 commit e89322d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ansatz.jl
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,5 @@ function LinearAlgebra.norm(ψ::Ansatz, p::Real = 2; kwargs...)
end

function LinearAlgebra.norm2::Ansatz; kwargs...)
return contract(TensorNetwork(merge(Quantum(ψ), Quantum'))); kwargs...) |> only |> sqrt |> abs
return contract(merge(TensorNetwork(ψ), TensorNetwork')); kwargs...) |> only |> sqrt |> abs
end

0 comments on commit e89322d

Please sign in to comment.