Skip to content

Commit

Permalink
Update NumericalRepresentationTheory.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
dlfivefifty committed Jul 12, 2024
1 parent 36878fd commit 709829b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/NumericalRepresentationTheory.jl
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ function singlemultreducedkron(ρ, σ)
m = size(σ,1)
= size(ρ,1)
μ =÷ m
n = length.generators)
n = length.generators)+1
B = zeros(m*(n-1)*ℓ, m*μ)
for κ=1:m, j= 1:μ, k = 1:n-1
B[range((k-1)*m*+-1)*+ 1; length=ℓ),(κ-1)*μ+j] = ρ.generators[k][:,(j-1)*m+κ]
Expand Down Expand Up @@ -466,7 +466,10 @@ function singlemultreduce_blockdiag(ρ, σ)
append!(jr, range((k-1)*μ*m+k; step=m, length=μ))
end

V = nullspace(singlemultreducedkron(ρ, σ))*sqrt(m)

Aₙ = singlemultreducedkron(ρ, σ)
V = svd(Aₙ).V[:,end-μ+1:end]*sqrt(m) # nullspace corresponds to last μ singular vectors


# now populate non-zero entries of `Q`
Q = BandedBlockBandedMatrix{Float64}(undef, Fill(m,μ), Fill(m,μ), (ℓ-1,ℓ-1), (0,0))
Expand Down

0 comments on commit 709829b

Please sign in to comment.