Skip to content

Commit

Permalink
Added ToDO for norm_sqr_network
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyT1994 committed Apr 5, 2024
1 parent ad21df9 commit 4881095
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/abstractitensornetwork.jl
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,9 @@ function inner_network(
return BilinearFormNetwork(A, x, y; kwargs...)
end

# TODO: We should make this pass to inner_network and then to BiLinearForm.
# Parts of the code (tests relying on norm_sqr being two layer and the gauging code
# which relies on specific message tensors) currently would break in that case so we need to resolve
function norm_sqr_network::AbstractITensorNetwork)
return disjoint_union("bra" => dag(prime(ψ; sites=[])), "ket" => ψ)
end
Expand Down

0 comments on commit 4881095

Please sign in to comment.