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

Commit

Permalink
Fix error in opnorm(::Product)
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Apr 29, 2024
1 parent 4ffde99 commit 204af37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ansatz/Product.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ end
LinearAlgebra.opnorm(tn::Product, p::Real = 2) = LinearAlgebra.opnorm(socket(tn), tn, p)
function LinearAlgebra.opnorm(::Operator, tn::Product, p::Real)
mapreduce(*, tensors(tn)) do tensor
opnorm(tensor, p)
opnorm(parent(tensor), p)
end^(1 // p)
end

Expand Down

0 comments on commit 204af37

Please sign in to comment.