CSS product code  0.1
C++ library to estimate distance of CSS codes. Some particular construction of CSS codes are implemented.
ClassicalCode Class Reference

#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...
 

Detailed Description

a classical binary code

Definition at line 20 of file product_lib.h.

Constructor & Destructor Documentation

◆ ClassicalCode() [1/2]

ClassicalCode::ClassicalCode ( )

Definition at line 18 of file product_lib.cpp.

◆ ClassicalCode() [2/2]

ClassicalCode::ClassicalCode ( itpp::GF2mat  G,
itpp::GF2mat  H 
)

Definition at line 20 of file product_lib.cpp.

Member Function Documentation

◆ dist()

int ClassicalCode::dist ( )

Definition at line 26 of file product_lib.cpp.

◆ dual()

ClassicalCode ClassicalCode::dual ( )

return dual code

Definition at line 45 of file product_lib.cpp.

◆ full_rank()

void ClassicalCode::full_rank ( )

Definition at line 50 of file product_lib.cpp.

◆ get_734_code()

void ClassicalCode::get_734_code ( )

Definition at line 66 of file product_lib.cpp.

◆ get_743_code()

void ClassicalCode::get_743_code ( )

Definition at line 61 of file product_lib.cpp.

◆ get_repetition_code()

void ClassicalCode::get_repetition_code ( )

Definition at line 56 of file product_lib.cpp.

◆ info()

void ClassicalCode::info ( )

Definition at line 39 of file product_lib.cpp.

◆ min_weight_dist()

int ClassicalCode::min_weight_dist ( )

Definition at line 29 of file product_lib.cpp.

◆ rand_dist()

int ClassicalCode::rand_dist ( )

Definition at line 32 of file product_lib.cpp.

Member Data Documentation

◆ d

int k int ClassicalCode::d

< number of encoded bits

distance

Definition at line 26 of file product_lib.h.

◆ G

itpp::GF2mat ClassicalCode::G

codeword generating matrix

Definition at line 22 of file product_lib.h.

◆ H

itpp::GF2mat ClassicalCode::H

parity check matrix

Definition at line 23 of file product_lib.h.

◆ is_defined

int ClassicalCode::is_defined =0

if G and H has been defined

Definition at line 27 of file product_lib.h.

◆ n

int ClassicalCode::n

Number of bits.

Definition at line 24 of file product_lib.h.


The documentation for this class was generated from the following files: