We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c75135 commit b70c80dCopy full SHA for b70c80d
src/fusiontensor/linear_algebra_interface.jl
@@ -36,10 +36,10 @@ end
36
function LinearAlgebra.norm(ft::FusionTensor)
37
m = data_matrix(ft)
38
row_sectors = sectors(codomain_axis(ft))
39
- n2 = sum(eachblockstoredindex(m); init=zero(real(eltype(ft)))) do b
+ np = sum(eachblockstoredindex(m); init=zero(real(eltype(ft)))) do b
40
return quantum_dimension(row_sectors[Int(first(Tuple(b)))]) * norm(m[b])^2
41
end
42
- return sqrt(n2)
+ return sqrt(np)
43
44
45
function LinearAlgebra.tr(ft::FusionTensor)
0 commit comments