CSS product code
0.1
C++ library to estimate distance of CSS codes. Some particular construction of CSS codes are implemented.
|
Go to the source code of this file.
Classes | |
class | ClassicalCode |
class | CSSCode |
class | ProductCSSCode |
class | SubsystemProductCSSCode |
Functions | |
int | getRandomQuantumCode (int n, int Gx_row, int Gz_row, itpp::GF2mat &Gx, itpp::GF2mat &Gz, itpp::GF2mat &Cx, itpp::GF2mat &Cz) |
int | getGoodQuantumCode (int n, int Gx_row, int Gz_row, itpp::GF2mat &Gx, itpp::GF2mat &Gz, itpp::GF2mat &Cx, itpp::GF2mat &Cz, int debug) |
void | set_submatrix (itpp::GF2mat &G, itpp::GF2mat sub, int row, int col) |
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) |
int | generate_code (CSSCode &code, int debug) |
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) |
Variables | |
const int | MAX_M =6 |
int generate_code | ( | CSSCode & | code, |
int | debug | ||
) |
a wraper
Definition at line 393 of file product_lib.cpp.
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 | ||
) |
A CSS code can be uniquely defined by its dimension and ID
Definition at line 278 of file product_lib.cpp.
int getGoodQuantumCode | ( | int | n, |
int | Gx_row, | ||
int | Gz_row, | ||
itpp::GF2mat & | Gx, | ||
itpp::GF2mat & | Gz, | ||
itpp::GF2mat & | Cx, | ||
itpp::GF2mat & | Cz, | ||
int | debug | ||
) |
Definition at line 184 of file product_lib.cpp.
int getRandomQuantumCode | ( | int | n, |
int | Gx_row, | ||
int | Gz_row, | ||
itpp::GF2mat & | Gx, | ||
itpp::GF2mat & | Gz, | ||
itpp::GF2mat & | Cx, | ||
itpp::GF2mat & | Cz | ||
) |
Definition at line 158 of file product_lib.cpp.
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 | ||
) |
Definition at line 404 of file product_lib.cpp.
void set_submatrix | ( | itpp::GF2mat & | G, |
itpp::GF2mat | sub, | ||
int | row, | ||
int | col | ||
) |
Definition at line 226 of file product_lib.cpp.
const int MAX_M =6 |
Definition at line 13 of file product_lib.h.