@@ -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