This commit is contained in:
Nuwan Yapa 2025-01-30 13:16:56 -05:00
parent 37fa83a4e2
commit 6a387e9301
1 changed files with 1 additions and 1 deletions

2
EC.jl
View File

@ -79,7 +79,7 @@ function get_reduced_matrices(EC::affine_EC, training_vecs, gram_schmidt_thresho
if gram_schmidt_threshold > 0; vecs = gram_schmidt!(sampled_vecs, EC.weights, gram_schmidt_threshold; verbose=verbose); end
EC_basis = hcat(orth_vecs...)
EC_basis = hcat(vecs...)
weights_mat = spdiagm(EC.weights)
H0_EC = transpose(EC_basis) * weights_mat * EC.H0 * EC_basis
H1_EC = transpose(EC_basis) * weights_mat * EC.H1 * EC_basis