|
Dist m4ri 0.16.1
Computing distance of a classical or quantum CSS code
|
#include <util_m4ri.h>
Public Attributes | |
| int | rows |
| int | cols |
| int | kw |
| word * | mask |
Column bit masks of a sparse binary matrix A (e.g., the logical operators L), see colmask_from_csr(): column j is the set of rows i with A[i][j]=1, stored in kw words. The syndrome A e of a sparse vector e is then the XOR of the masks of its columns (colmask_syndrome_non_zero()), which takes O(|e| kw) operations instead of O(nnz(A)) for sparse_syndrome_non_zero().
Definition at line 138 of file util_m4ri.h.
| int colmask_t::cols |
number of columns of A
Definition at line 140 of file util_m4ri.h.
Referenced by colmask_from_csr().
| int colmask_t::kw |
number of words per column, ceil(rows/64)
Definition at line 141 of file util_m4ri.h.
Referenced by colmask_from_csr().
| word* colmask_t::mask |
cols * kw words: the mask of column j starts at mask[j * kw]
Definition at line 142 of file util_m4ri.h.
Referenced by colmask_free(), and colmask_from_csr().
| int colmask_t::rows |