Skip to content

Program to simulate threshold of rotated surface code. The error model is one stochastic Pauli error after "encoding". The decoding algorithm is MWPM implemented in Pymatching package.

Notifications You must be signed in to change notification settings

dhruvbhq/surf_code_sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

surf_code_sim

Program to simulate threshold of rotated surface code.

  • The error model is one stochastic Pauli error after "encoding".
  • The decoding algorithm is MWPM implemented in Pymatching package.

The program creates the lattice of qubits as a networkx graph and calculates its stabilizer generators. Errors are simulated by expressing in binary vector representation. Syndromes are calculated via the symplectic inner product. The bit flip and phase flip syndromes are decoded separately via Pymatching to get the correction. If the error followed by correction commutes with all stabilizer generators, then it is not a logical error. Otherwise, it is counted as a logical error. This is executed in a monte carlo simulation to get logical error rates.

Some results obtained using the program:

fig1

fig2

These are in close agreement with values reported in literature for this code, error model and decoder.

About

Program to simulate threshold of rotated surface code. The error model is one stochastic Pauli error after "encoding". The decoding algorithm is MWPM implemented in Pymatching package.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published