CSS product code
0.1
C++ library to estimate distance of CSS codes. Some particular construction of CSS codes are implemented.
|
#include <product_lib.h>
Public Member Functions | |
ClassicalCode () | |
ClassicalCode (itpp::GF2mat G, itpp::GF2mat H) | |
int | dist () |
int | min_weight_dist () |
int | rand_dist () |
void | info () |
ClassicalCode | dual () |
void | full_rank () |
void | get_repetition_code () |
void | get_743_code () |
void | get_734_code () |
Public Attributes | |
itpp::GF2mat | G |
codeword generating matrix More... | |
itpp::GF2mat | H |
parity check matrix More... | |
int | n |
Number of bits. More... | |
int k int | d |
< number of encoded bits More... | |
int | is_defined =0 |
if G and H has been defined More... | |
a classical binary code
Definition at line 20 of file product_lib.h.
ClassicalCode::ClassicalCode | ( | ) |
Definition at line 18 of file product_lib.cpp.
ClassicalCode::ClassicalCode | ( | itpp::GF2mat | G, |
itpp::GF2mat | H | ||
) |
Definition at line 20 of file product_lib.cpp.
int ClassicalCode::dist | ( | ) |
Definition at line 26 of file product_lib.cpp.
ClassicalCode ClassicalCode::dual | ( | ) |
return dual code
Definition at line 45 of file product_lib.cpp.
void ClassicalCode::full_rank | ( | ) |
Definition at line 50 of file product_lib.cpp.
void ClassicalCode::get_734_code | ( | ) |
Definition at line 66 of file product_lib.cpp.
void ClassicalCode::get_743_code | ( | ) |
Definition at line 61 of file product_lib.cpp.
void ClassicalCode::get_repetition_code | ( | ) |
Definition at line 56 of file product_lib.cpp.
void ClassicalCode::info | ( | ) |
Definition at line 39 of file product_lib.cpp.
int ClassicalCode::min_weight_dist | ( | ) |
Definition at line 29 of file product_lib.cpp.
int ClassicalCode::rand_dist | ( | ) |
Definition at line 32 of file product_lib.cpp.
int k int ClassicalCode::d |
itpp::GF2mat ClassicalCode::G |
codeword generating matrix
Definition at line 22 of file product_lib.h.
itpp::GF2mat ClassicalCode::H |
parity check matrix
Definition at line 23 of file product_lib.h.
int ClassicalCode::is_defined =0 |
if G and H has been defined
Definition at line 27 of file product_lib.h.
int ClassicalCode::n |
Number of bits.
Definition at line 24 of file product_lib.h.