|
CSS product code
0.1
C++ library to estimate distance of CSS codes. Some particular construction of CSS codes are implemented.
|
Go to the documentation of this file.
7 #include <itpp/itbase.h>
74 CSSCode(
int na,
int Gax_row,
int id_Gax,
int Gaz_row,
int id_Gaz);
135 int getRandomQuantumCode(
int n,
int Gx_row,
int Gz_row, itpp::GF2mat &Gx,itpp::GF2mat &Gz, itpp::GF2mat &Cx,itpp::GF2mat &Cz);
137 int getGoodQuantumCode(
int n,
int Gx_row,
int Gz_row, itpp::GF2mat &Gx,itpp::GF2mat &Gz, itpp::GF2mat &Cx,itpp::GF2mat &Cz,
int debug);
139 void set_submatrix(itpp::GF2mat & G, itpp::GF2mat sub,
int row,
int col);
143 int generate_code(itpp::GF2mat & Gax, itpp::GF2mat & Gaz,
int na,
int Gax_row,
int id_Gax,
int Gaz_row,
int id_Gaz,
int debug);
167 int product(itpp::GF2mat Gax, itpp::GF2mat Gaz, itpp::GF2mat Gbx, itpp::GF2mat Gbz,
int ddax,
int ddaz,
int ddbx,
int ddbz,
int debug,
int mode);
172 #endif //PRODUCT_LIB_H
itpp::GF2mat H
parity check matrix
SubsystemProductCSSCode()
this file links all other headfiles in this folder.
void set_submatrix(itpp::GF2mat &G, itpp::GF2mat sub, int row, int col)
distance related functions, defined within namespace common
int getGoodQuantumCode(int n, int Gx_row, int Gz_row, itpp::GF2mat &Gx, itpp::GF2mat &Gz, itpp::GF2mat &Cx, itpp::GF2mat &Cz, int debug)
int generate_by_id(int debug)
int generate_code(itpp::GF2mat &Gax, itpp::GF2mat &Gaz, int na, int Gax_row, int id_Gax, int Gaz_row, int id_Gaz, int debug)
ProductCSSCode(CSSCode codeA_temp, CSSCode codeB_temp)
int getRandomQuantumCode(int n, int Gx_row, int Gz_row, itpp::GF2mat &Gx, itpp::GF2mat &Gz, itpp::GF2mat &Cx, itpp::GF2mat &Cz)
int is_defined
if G and H has been defined
int product(itpp::GF2mat Gax, itpp::GF2mat Gaz, itpp::GF2mat Gbx, itpp::GF2mat Gbz, int ddax, int ddaz, int ddbx, int ddbz, int debug, int mode)
SubsystemProductCSSCode(CSSCode codeA_temp, CSSCode codeB_temp)
itpp::GF2mat G
codeword generating matrix
itpp::bvec min_weight_codeword
void get_repetition_code()
int k int d
< number of encoded bits
int getGoodCode(int debug)