Skip to content

Commit c073253

Browse files
authored
Merge branch 'dev' into fixdev
2 parents 24de383 + 85caafe commit c073253

File tree

5 files changed

+164
-128
lines changed

5 files changed

+164
-128
lines changed

src/Classical/weight_dist.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,6 +1019,17 @@ function minimum_words(C::AbstractLinearCode)
10191019
end
10201020
end
10211021

1022+
1023+
# classical version of QDistRnd here
1024+
1025+
1026+
1027+
1028+
1029+
1030+
1031+
1032+
10221033
#############################
10231034
# Weight Enumerators
10241035
#############################

src/CodingTheory.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ include("Quantum/weight_dist.jl")
362362
# export weight_plot_CSS_X, weight_plot_CSS_Z, weight_plot_CSS, minimum_distance_X_Z,
363363
# minimum_distance_X, minimum_distance_Z, is_pure, QDistRndCSS
364364
export minimum_distance_upper_bound!, random_information_set_minimum_distance_bound!,
365-
QDistRand!
365+
QDistRnd!
366366

367367
#############################
368368
# Quantum/product_codes.jl

src/Quantum/subsystem_code.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,8 @@ function SubsystemCode(S::CTMatrixTypes, L::CTMatrixTypes, G::CTMatrixTypes;
282282
args = _is_CSS_symplectic(S, signs, true)
283283
if args[1]
284284
# bare
285-
X_logs = reduce(vcat, [log[1][:, 1:n] for log in logs])
286-
Z_logs = reduce(vcat, [log[2][:, n + 1:end] for log in logs])
285+
X_logs = reduce(vcat, [log[1][:, 1:n] for log in log_pairs])
286+
Z_logs = reduce(vcat, [log[2][:, n + 1:end] for log in log_pairs])
287287
_, X_mat = rref(vcat(args[2], X_logs))
288288
anti = _remove_empty(X_mat, :rows) * transpose(Z_logs)
289289
u_bound_dx_bare, _ = _min_wt_row(X_mat[findall(!iszero(anti[i:i, :]) for i in axes(anti, 1)), :])
@@ -292,10 +292,10 @@ function SubsystemCode(S::CTMatrixTypes, L::CTMatrixTypes, G::CTMatrixTypes;
292292
u_bound_dz_bare, _ = _min_wt_row(Z_mat[findall(!iszero(anti[i:i, :]) for i in axes(anti, 1)), :])
293293

294294
# dressed
295-
_, X_mat = rref(vcat(X_mat, reduce(vcat, [log[1][:, 1:n] for log in gauge_ops])))
295+
_, X_mat = rref(vcat(X_mat, reduce(vcat, [log[1][:, 1:n] for log in g_ops_pairs])))
296296
anti = _remove_empty(X_mat, :rows) * transpose(Z_logs)
297297
u_bound_dx_dressed, _ = _min_wt_row(X_mat[findall(!iszero(anti[i:i, :]) for i in axes(anti, 1)), :])
298-
_, Z_mat = rref(vcat(Z_mat, reduce(vcat, [log[2][:, n + 1:end] for log in gauge_ops])))
298+
_, Z_mat = rref(vcat(Z_mat, reduce(vcat, [log[2][:, n + 1:end] for log in g_ops_pairs])))
299299
anti = _remove_empty(Z_mat, :rows) * transpose(X_logs)
300300
u_bound_dz_dressed, _ =_min_wt_row(Z_mat[findall(!iszero(anti[i:i, :]) for i in axes(anti, 1)), :])
301301
return SubsystemCodeCSS(F, n, k, r, missing, missing, missing, missing, missing,

0 commit comments

Comments
 (0)