basic_functions#
Functions
Check whether two matrices multiply to give zero. |
|
Compute the direct sum of two codes (as chain or cochain complexes). |
|
Compute the direct sum of two matrices. |
|
Takes the bilinear symmetric nondegenerate form, i.e. dot product, F_2^n x F_2^n -> F_2. |
|
Calculate a basis of X logical operators of a CSScode. |
|
Calculate a basis of Z logical operators of a CSScode. |
|
Calculate a paired basis of logical operators of a CSScode. |
|
Takes a CSS code and exchanges PX and PZ, giving a code with the same parameters but flipped Z and X generators. |
|
Calculates all nonzero vectors in the image of a matrix. |
|
Calculates a basis of the image of a matrix. |
|
Converts a list of indices to a vector with support on those indices. |
|
Check whether a CSScode is valid, i.e. the generators commute. |
|
Calculates all nonzero vectors in the kernel of a matrix. |
|
Calculates a basis of the kernel of a matrix. |
|
Finds the maximum number of generators any single qubit in a CSScode is in the support of. |
|
Finds the maximum weight of any generator in a CSScode. |
|
Multiplies two matrices over F_2. |
|
Finds the number of X-type stabiliser generators in a CSScode. |
|
Finds the number of Z-type stabiliser generators in a CSScode. |
|
Finds the number of data qubits in a CSScode. |
|
Calculate the number of logical qubits of a CSScode. |
|
Converts a vector over F_2 to a list of entries that vector has support on. |
Classes
A qubit Calderbank-Shor-Steane code with a set of stabiliser generators is a pair of parity-check matrices over the field F_2. |