Dist m4ri 0.0.1.alpha
Computing distance of a classical or quantum CSS code
Loading...
Searching...
No Matches
Classes | Macros | Functions
dist_m4ri.c File Reference

Multithreaded distance calculation and bracketing (dist_m4ri) More...

#include <inttypes.h>
#include <strings.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdatomic.h>
#include <time.h>
#include <unistd.h>
#include <pthread.h>
#include <math.h>
#include <limits.h>
#include <m4ri/m4ri.h>
#include "mmio.h"
#include "uthash.h"
#include "util_hash.h"
#include "util_m4ri.h"
#include "util_io.h"
#include "dist_m4ri.h"
#include "dist_cc.h"
Include dependency graph for dist_m4ri.c:

Go to the source code of this file.

Classes

struct  distfork_ctx_t
 
struct  worker_arg_t
 

Macros

#define _GNU_SOURCE
 

Functions

int main (int argc, char **argv)
 

Detailed Description

Multithreaded distance calculation and bracketing (dist_m4ri)


The program implements multithreaded distance calculation:

Output to stdout: "dmin dmax rw_steps" where dmin-1 is the maximum cluster size analyzed without success by CC, dmin=dmax if CC actually found a min-weight codeword of this size, dmax is the smallest-weight codeword found by RW, and rw_steps is the number of completed RW steps (0 if CC found a min-weight codeword or if RW did not run in method=2). NOTE: This 3-number output format is incompatible with legacy single-threaded dist_m4ri_old.

All debugging messages and confinement profile are sent to stderr.

author: Leonid Pryadko leoni.nosp@m.d.pr.nosp@m.yadko.nosp@m.@ucr.nosp@m..edu

Definition in file dist_m4ri.c.

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

Definition at line 26 of file dist_m4ri.c.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)