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。
console.log(Main.AA)
console.log(liu.real_D)
console.log(Main.traced_list)