Giter Site home page Giter Site logo

surface-code's Introduction

Surface-Code

Usage

1.If you want to run the surface code, he can use one of the following two attached at the end of the surface_code.js:

Run.run_loop([0.65,0.7],[6,7],10,Main.Classic.Limy_Init_111)
Run.run_strip([0.65,0.7],[6,7],10,Main.Classic.Limy_Init_111)

run_loop or run_strip are two detection modes to determine the success of a single qubit error correction. The operation of run_loop corresponding to the detection of the digging qubits around the error occurs after error correction. run_strip corresponds to detecting whether the operator operation connecting the edge of the hole to the edge of the sample is correct after error correction.

The first variable in the run_loop function is the set of flipping probabilities of the qubits in the single coding space of the run. The second variable is the size of the surface code, the third variable is the number of runs, and the fourth variable is the surface code size. With the growth pattern of digging holes, this function can be set in the code. The output of these two functions is the number of errors in the error correction result within the set number of runs. This important information can be used to study the threshold of the surface code.

其中, run_loop 或者 run_strip 为判断单个量子比特的纠错成功与否的两种检测模式。 run_loop 对应于检测环绕挖孔量子比特的算符操作在纠错后时候出错。run_strip 对应于检测连接挖孔边界与样本边缘的算符操作在纠错后是否出错。

run_loop 函数中第一位变量为运行的单个编码空间中的量子比特的翻转概率的集合,第二个变量为 surface code 的尺寸,第三个变量为运行的次数,第四个变量为surface code 尺寸与挖孔的增长模式,此函数可以在代码中自行设置。此两种函数的输出结果为在设置的运行次数内纠错结果错误的个数。这个重要信息可以用于研究 surface code 的 threshold。

2.You can display the generated surface code array with the following code:

console.log(Main.AA)

3.You can display the error qubit checked by check opreater with the following code:

console.log(liu.real_D)

4.You can display the recovery path of quantum error correction with the following code:

console.log(Main.traced_list)

surface-code's People

Contributors

guanqunmu avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.