CSS product code
0.1
C++ library to estimate distance of CSS codes. Some particular construction of CSS codes are implemented.
|
#include <bp_decoder.h>
Public Member Functions | |
bool | is_H_valid (itpp::GF2mat H_temp) |
void | init (itpp::GF2mat H_temp) |
void | set_exit_iteration (int exit_iteration_temp) |
void | set_decode_mode (int decode_mode_temp) |
void | set_decode_mode_str (std::string decode_mode_str_temp) |
void | set_silent_mode (bool silent_mode_temp) |
void | set_debug_mode (bool debug_mode_temp) |
void | print_info () |
int | decode (itpp::bvec syndrome, const itpp::vec &LLRin, itpp::vec &LLRout) |
int | bp_syndrome_llr (itpp::bvec syndrome, const itpp::vec &LLRin, itpp::vec &LLRout) |
int | bp_schedule (itpp::bvec syndrome, const itpp::vec &LLRin, itpp::vec &LLRout) |
bool | match_syndrome (itpp::vec LLR, itpp::bvec syndrome) |
int | bp_flexible (itpp::bvec syndrome, const itpp::vec &LLRin, itpp::vec &LLRout) |
void | set_schedule_mode (int schedule_mode_temp) |
Public Attributes | |
bool | silent_mode = false |
bool | debug = false |
const double | INF_BP =10000 |
itpp::GF2mat | H |
int | exit_iteration =50 |
double | alpha =1.0 |
int | decode_mode = 2 |
std::string | decode_mode_str ="min sum" |
int | nvar |
int | ncheck |
int | nedge |
bool | is_initialized =false |
int | schedule_mode =0 |
std::string | schedule_mode_str ="no schedule, parallel" |
itpp::mat | schedule |
Definition at line 23 of file bp_decoder.h.
int BP_Decoder::bp_flexible | ( | itpp::bvec | syndrome, |
const itpp::vec & | LLRin, | ||
itpp::vec & | LLRout | ||
) |
Definition at line 597 of file bp_decoder.h.
int BP_Decoder::bp_schedule | ( | itpp::bvec | syndrome, |
const itpp::vec & | LLRin, | ||
itpp::vec & | LLRout | ||
) |
Definition at line 464 of file bp_decoder.h.
int BP_Decoder::bp_syndrome_llr | ( | itpp::bvec | syndrome, |
const itpp::vec & | LLRin, | ||
itpp::vec & | LLRout | ||
) |
Definition at line 287 of file bp_decoder.h.
int BP_Decoder::decode | ( | itpp::bvec | syndrome, |
const itpp::vec & | LLRin, | ||
itpp::vec & | LLRout | ||
) |
Definition at line 263 of file bp_decoder.h.
void BP_Decoder::init | ( | itpp::GF2mat | H_temp | ) |
Definition at line 82 of file bp_decoder.h.
bool BP_Decoder::is_H_valid | ( | itpp::GF2mat | H_temp | ) |
Definition at line 70 of file bp_decoder.h.
bool BP_Decoder::match_syndrome | ( | itpp::vec | LLR, |
itpp::bvec | syndrome | ||
) |
Definition at line 281 of file bp_decoder.h.
void BP_Decoder::print_info | ( | ) |
Definition at line 98 of file bp_decoder.h.
void BP_Decoder::set_debug_mode | ( | bool | debug_mode_temp | ) |
Definition at line 64 of file bp_decoder.h.
void BP_Decoder::set_decode_mode | ( | int | decode_mode_temp | ) |
Definition at line 122 of file bp_decoder.h.
void BP_Decoder::set_decode_mode_str | ( | std::string | decode_mode_str_temp | ) |
Definition at line 144 of file bp_decoder.h.
void BP_Decoder::set_exit_iteration | ( | int | exit_iteration_temp | ) |
Definition at line 114 of file bp_decoder.h.
void BP_Decoder::set_schedule_mode | ( | int | schedule_mode_temp | ) |
Definition at line 155 of file bp_decoder.h.
void BP_Decoder::set_silent_mode | ( | bool | silent_mode_temp | ) |
Definition at line 60 of file bp_decoder.h.
double BP_Decoder::alpha =1.0 |
Definition at line 30 of file bp_decoder.h.
bool BP_Decoder::debug = false |
Definition at line 26 of file bp_decoder.h.
int BP_Decoder::decode_mode = 2 |
Definition at line 31 of file bp_decoder.h.
std::string BP_Decoder::decode_mode_str ="min sum" |
Definition at line 32 of file bp_decoder.h.
int BP_Decoder::exit_iteration =50 |
Definition at line 29 of file bp_decoder.h.
itpp::GF2mat BP_Decoder::H |
Definition at line 28 of file bp_decoder.h.
const double BP_Decoder::INF_BP =10000 |
Definition at line 27 of file bp_decoder.h.
bool BP_Decoder::is_initialized =false |
Definition at line 35 of file bp_decoder.h.
int BP_Decoder::ncheck |
Definition at line 33 of file bp_decoder.h.
int BP_Decoder::nedge |
Definition at line 33 of file bp_decoder.h.
int BP_Decoder::nvar |
Definition at line 33 of file bp_decoder.h.
itpp::mat BP_Decoder::schedule |
Definition at line 55 of file bp_decoder.h.
int BP_Decoder::schedule_mode =0 |
Definition at line 53 of file bp_decoder.h.
std::string BP_Decoder::schedule_mode_str ="no schedule, parallel" |
Definition at line 54 of file bp_decoder.h.
bool BP_Decoder::silent_mode = false |
Definition at line 25 of file bp_decoder.h.