CSS product code  0.1
C++ library to estimate distance of CSS codes. Some particular construction of CSS codes are implemented.
product_lib.cpp File Reference
#include "dist.h"
#include <itpp/itbase.h>
#include <itpp/itcomm.h>
#include <stdio.h>
#include "product_lib.h"

Go to the source code of this file.

Functions

itpp::GF2mat remove_col (itpp::GF2mat G, int col)
 
void remove_singleton (itpp::GF2mat &Gx, itpp::GF2mat &Gz)
 
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 is_row_reduced_echelon_form (itpp::GF2mat &alpha_Gaz, int debug=0)
 
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)
 

Function Documentation

◆ generate_code() [1/2]

int generate_code ( CSSCode code,
int  debug 
)

a wraper

Definition at line 393 of file product_lib.cpp.

◆ generate_code() [2/2]

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.

◆ getGoodQuantumCode()

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.

◆ getRandomQuantumCode()

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.

◆ is_row_reduced_echelon_form()

int is_row_reduced_echelon_form ( itpp::GF2mat &  alpha_Gaz,
int  debug = 0 
)

Definition at line 236 of file product_lib.cpp.

◆ product()

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.

◆ remove_col()

itpp::GF2mat remove_col ( itpp::GF2mat  G,
int  col 
)

Definition at line 128 of file product_lib.cpp.

◆ remove_singleton()

void remove_singleton ( itpp::GF2mat &  Gx,
itpp::GF2mat &  Gz 
)

Definition at line 137 of file product_lib.cpp.

◆ set_submatrix()

void set_submatrix ( itpp::GF2mat &  G,
itpp::GF2mat  sub,
int  row,
int  col 
)

Definition at line 226 of file product_lib.cpp.