From 488109536825be397adb5de9e0be009f23e9e9d1 Mon Sep 17 00:00:00 2001 From: Joey Date: Fri, 5 Apr 2024 11:29:34 -0400 Subject: [PATCH] Added ToDO for norm_sqr_network --- src/abstractitensornetwork.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/abstractitensornetwork.jl b/src/abstractitensornetwork.jl index c5847eae..77fb73b8 100644 --- a/src/abstractitensornetwork.jl +++ b/src/abstractitensornetwork.jl @@ -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