Unverified Commit b56fba9b authored by dwuggh's avatar dwuggh
Browse files

update

parent 776fe75b
expedient
final bell fidelity in make_bell 0.9874248372589784
sum 0.9999999999999999
trace 0.9999999999999999
[0.94080609 0.00099427 0.00046121 0.00046121 0.00099426 0.0000829 0.00000098 0.00000098 0.00046121 0.00000098 0.00000043 0.00000043 0.00046121 0.00000098 0.00000043 0.00000043 0.00099421 0.00000959
0.00000093 0.00000093 0.00000304 0.00053355 0.0000005 0.0000005 0.00000093 0.0000005 0. 0. 0.00000093 0.0000005 0. 0. 0.00046121 0.00000093 0.00000043 0.00000043
0.00000093 0.00000055 0. 0. 0.00000043 0. 0. 0. 0.00000043 0. 0. 0. 0.00046121 0.00000093 0.00000043 0.00000043 0.00000093 0.00000055
0. 0. 0.00000043 0. 0. 0. 0.00000043 0. 0. 0. 0.00046072 0.00000092 0.00000043 0.00000043 0.00000092 0.00000006 0. 0.
0.00000043 0. 0. 0. 0.00000043 0. 0. 0. 0.00000092 0.00000001 0. 0. 0. 0.00000049 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000043 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000043 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0.00046072 0.00000092 0.00000043 0.00000043 0.00000092 0.00000006 0. 0. 0.00000043 0. 0. 0. 0.00000043 0. 0. 0.
0.00000092 0.00000001 0. 0. 0. 0.00000049 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000043 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000043 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00046072 0.00000092 0.00000043 0.00000043 0.00000092 0.00000006
0. 0. 0.00000043 0. 0. 0. 0.00000043 0. 0. 0. 0.00000092 0.00000001 0. 0. 0. 0.00000049 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0.00000043 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000043 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. ]
[0.04368861 0.00098195 0.00046121 0.00046121 0.00098194 0.00004381 0.00000098 0.00000098 0.00046121 0.00000098 0.00000043 0.00000043 0.00046121 0.00000098 0.00000043 0.00000043 0.00098189 0.00000571
0.00000093 0.00000093 0.00000304 0.00052123 0.0000005 0.0000005 0.00000093 0.0000005 0. 0. 0.00000093 0.0000005 0. 0. 0.00046121 0.00000093 0.00000043 0.00000043
0.00000093 0.00000055 0. 0. 0.00000043 0. 0. 0. 0.00000043 0. 0. 0. 0.00046121 0.00000093 0.00000043 0.00000043 0.00000093 0.00000055
0. 0. 0.00000043 0. 0. 0. 0.00000043 0. 0. 0. 0.00046072 0.00000092 0.00000043 0.00000043 0.00000092 0.00000006 0. 0.
0.00000043 0. 0. 0. 0.00000043 0. 0. 0. 0.00000092 0.00000001 0. 0. 0. 0.00000049 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000043 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000043 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0.00046072 0.00000092 0.00000043 0.00000043 0.00000092 0.00000006 0. 0. 0.00000043 0. 0. 0. 0.00000043 0. 0. 0.
0.00000092 0.00000001 0. 0. 0. 0.00000049 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000043 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000043 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00046072 0.00000092 0.00000043 0.00000043 0.00000092 0.00000006
0. 0. 0.00000043 0. 0. 0. 0.00000043 0. 0. 0. 0.00000092 0.00000001 0. 0. 0. 0.00000049 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0.00000043 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000043 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. ]
qubits: [9 3 6 0]
shape: (16, 16)
trace: 0.9999999999999999
[[0.49779783 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.46829544]
[0. 0.00053327 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000643 0. ]
[0. 0. 0.00053327 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000643 0. 0. ]
[0. 0. 0. 0.00006214 0. 0. 0. 0. 0. 0. 0. 0. 0.0000204 0. 0. 0. ]
[0. 0. 0. 0. 0.00053327 0. 0. 0. 0. 0. 0. 0.00000643 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0.0000058 0. 0. 0. 0. 0.00000203 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0. 0.00000114 0. 0. 0. 0. 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0. 0. 0.00053327 0.00000643 0. 0. 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0. 0. 0.00000643 0.00053327 0. 0. 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000114 0. 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0.00000203 0. 0. 0. 0. 0.0000058 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0.00000643 0. 0. 0. 0. 0. 0. 0.00053327 0. 0. 0. 0. ]
[0. 0. 0. 0.0000204 0. 0. 0. 0. 0. 0. 0. 0. 0.00006214 0. 0. 0. ]
[0. 0. 0.00000643 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00053327 0. 0. ]
[0. 0.00000643 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00053327 0. ]
[0.46829544 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.49779783]]
[0.94672286 0.0008531 0.00039599 0.00039599 0.00085309 0.00007313
0.00000072 0.00000072 0.00039599 0.00000072 0.00000032 0.00000032
0.00039599 0.00000072 0.00000032 0.00000032 0.00085305 0.00000802
0.00000068 0.00000068 0.00000223 0.00045747 0.00000036 0.00000036
0.00000068 0.00000037 0. 0. 0.00000068 0.00000037
0. 0. 0.00039599 0.00000068 0.00000032 0.00000032
0.00000068 0.00000041 0. 0. 0.00000032 0.
0. 0. 0.00000032 0. 0. 0.
0.00039599 0.00000068 0.00000032 0.00000032 0.00000068 0.00000041
0. 0. 0.00000032 0. 0. 0.
0.00000032 0. 0. 0. 0.00039563 0.00000068
0.00000032 0.00000032 0.00000068 0.00000004 0. 0.
0.00000032 0. 0. 0. 0.00000032 0.
0. 0. 0.00000068 0.00000001 0. 0.
0. 0.00000036 0. 0. 0. 0.
0. 0. 0. 0. 0. 0.
0.00000032 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000032 0.
0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0.
0. 0. 0.00039563 0.00000068 0.00000032 0.00000032
0.00000068 0.00000004 0. 0. 0.00000032 0.
0. 0. 0.00000032 0. 0. 0.
0.00000068 0.00000001 0. 0. 0. 0.00000036
0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000032 0.
0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0.
0. 0. 0.00000032 0. 0. 0.
0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0.
0.00039563 0.00000068 0.00000032 0.00000032 0.00000068 0.00000004
0. 0. 0.00000032 0. 0. 0.
0.00000032 0. 0. 0. 0.00000068 0.00000001
0. 0. 0. 0.00000036 0. 0.
0. 0. 0. 0. 0. 0.
0. 0. 0.00000032 0. 0. 0.
0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0.
0.00000032 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0.
0. 0. 0. 0. ]
[0.0399827 0.00084165 0.00039599 0.00039599 0.00084165 0.00003586
0.00000072 0.00000072 0.00039599 0.00000072 0.00000032 0.00000032
0.00039599 0.00000072 0.00000032 0.00000032 0.00084161 0.00000451
0.00000068 0.00000068 0.00000223 0.00044602 0.00000036 0.00000036
0.00000068 0.00000037 0. 0. 0.00000068 0.00000037
0. 0. 0.00039599 0.00000068 0.00000032 0.00000032
0.00000068 0.00000041 0. 0. 0.00000032 0.
0. 0. 0.00000032 0. 0. 0.
0.00039599 0.00000068 0.00000032 0.00000032 0.00000068 0.00000041
0. 0. 0.00000032 0. 0. 0.
0.00000032 0. 0. 0. 0.00039563 0.00000068
0.00000032 0.00000032 0.00000068 0.00000004 0. 0.
0.00000032 0. 0. 0. 0.00000032 0.
0. 0. 0.00000068 0.00000001 0. 0.
0. 0.00000036 0. 0. 0. 0.
0. 0. 0. 0. 0. 0.
0.00000032 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000032 0.
0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0.
0. 0. 0.00039563 0.00000068 0.00000032 0.00000032
0.00000068 0.00000004 0. 0. 0.00000032 0.
0. 0. 0.00000032 0. 0. 0.
0.00000068 0.00000001 0. 0. 0. 0.00000036
0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000032 0.
0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0.
0. 0. 0.00000032 0. 0. 0.
0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0.
0.00039563 0.00000068 0.00000032 0.00000032 0.00000068 0.00000004
0. 0. 0.00000032 0. 0. 0.
0.00000032 0. 0. 0. 0.00000068 0.00000001
0. 0. 0. 0.00000036 0. 0.
0. 0. 0. 0. 0. 0.
0. 0. 0.00000032 0. 0. 0.
0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0.
0.00000032 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0.
0. 0. 0. 0. ]
expedient
final bell fidelity in make_bell 0.9868689636683632
sum 0.9999999999999999
trace 0.9999999999999999
[0.93492354 0.00113558 0.00052621 0.00052621 0.00113557 0.00009347 0.00000128 0.00000128 0.00052621 0.00000128 0.00000056 0.00000056 0.00052621 0.00000128 0.00000056 0.00000056 0.0011355 0.00001136
0.00000122 0.00000122 0.00000398 0.00061001 0.00000065 0.00000065 0.00000121 0.00000065 0. 0. 0.00000121 0.00000065 0. 0. 0.00052621 0.00000122 0.00000056 0.00000056
0.00000121 0.00000072 0. 0. 0.00000056 0. 0. 0. 0.00000056 0. 0. 0. 0.00052621 0.00000122 0.00000056 0.00000056 0.00000121 0.00000072
0. 0. 0.00000056 0. 0. 0. 0.00000056 0. 0. 0. 0.00052557 0.00000121 0.00000056 0.00000056 0.00000121 0.00000008 0. 0.
0.00000056 0. 0. 0. 0.00000056 0. 0. 0. 0.00000121 0.00000001 0. 0. 0. 0.00000065 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000056 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000056 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0.00052557 0.00000121 0.00000056 0.00000056 0.00000121 0.00000008 0. 0. 0.00000056 0. 0. 0. 0.00000056 0. 0. 0.
0.00000121 0.00000001 0. 0. 0. 0.00000065 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000056 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000056 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00052557 0.00000121 0.00000056 0.00000056 0.00000121 0.00000008
0. 0. 0.00000056 0. 0. 0. 0.00000056 0. 0. 0. 0.00000121 0.00000001 0. 0. 0. 0.00000065 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0.00000056 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000056 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. ]
[0.04735771 0.00112235 0.00052621 0.00052621 0.00112235 0.00005252 0.00000128 0.00000128 0.00052621 0.00000128 0.00000056 0.00000056 0.00052621 0.00000128 0.00000056 0.00000056 0.00112228 0.00000709
0.00000122 0.00000122 0.00000398 0.00059679 0.00000065 0.00000065 0.00000121 0.00000065 0. 0. 0.00000121 0.00000065 0. 0. 0.00052621 0.00000122 0.00000056 0.00000056
0.00000121 0.00000072 0. 0. 0.00000056 0. 0. 0. 0.00000056 0. 0. 0. 0.00052621 0.00000122 0.00000056 0.00000056 0.00000121 0.00000072
0. 0. 0.00000056 0. 0. 0. 0.00000056 0. 0. 0. 0.00052557 0.00000121 0.00000056 0.00000056 0.00000121 0.00000008 0. 0.
0.00000056 0. 0. 0. 0.00000056 0. 0. 0. 0.00000121 0.00000001 0. 0. 0. 0.00000065 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000056 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000056 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0.00052557 0.00000121 0.00000056 0.00000056 0.00000121 0.00000008 0. 0. 0.00000056 0. 0. 0. 0.00000056 0. 0. 0.
0.00000121 0.00000001 0. 0. 0. 0.00000065 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000056 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000056 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00052557 0.00000121 0.00000056 0.00000056 0.00000121 0.00000008
0. 0. 0.00000056 0. 0. 0. 0.00000056 0. 0. 0. 0.00000121 0.00000001 0. 0. 0. 0.00000065 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0.00000056 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000056 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. ]
qubits: [9 3 6 0]
shape: (16, 16)
trace: 0.9999999999999999
[[0.49747588 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.46617793]
[0. 0.0006111 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000694 0. ]
[0. 0. 0.0006111 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000694 0. 0. ]
[0. 0. 0. 0.0000714 0. 0. 0. 0. 0. 0. 0. 0. 0.0000215 0. 0. 0. ]
[0. 0. 0. 0. 0.0006111 0. 0. 0. 0. 0. 0. 0.00000694 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0.00000681 0. 0. 0. 0. 0.00000224 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0. 0.0000015 0. 0. 0. 0. 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0. 0. 0.0006111 0.00000694 0. 0. 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0. 0. 0.00000694 0.0006111 0. 0. 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0. 0. 0. 0. 0.0000015 0. 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0.00000224 0. 0. 0. 0. 0.00000681 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0.00000694 0. 0. 0. 0. 0. 0. 0.0006111 0. 0. 0. 0. ]
[0. 0. 0. 0.0000215 0. 0. 0. 0. 0. 0. 0. 0. 0.0000714 0. 0. 0. ]
[0. 0. 0.00000694 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.0006111 0. 0. ]
[0. 0.00000694 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.0006111 0. ]
[0.46617793 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.49747588]]
expedient
final bell fidelity in make_bell 0.9863099238843931
sum 1.0000000000000002
trace 0.9999999999999999
[0.92907501 0.00127703 0.00059098 0.00059098 0.00127703 0.00010483 0.00000163 0.00000163 0.00059098 0.00000163 0.00000071 0.00000071 0.00059098 0.00000163 0.00000071 0.00000071 0.00127694 0.00001333
0.00000154 0.00000154 0.00000505 0.00068688 0.00000082 0.00000082 0.00000153 0.00000083 0. 0. 0.00000153 0.00000083 0. 0. 0.00059098 0.00000154 0.00000071 0.00000071
0.00000153 0.00000092 0. 0. 0.00000071 0. 0. 0. 0.00000071 0. 0. 0. 0.00059098 0.00000154 0.00000071 0.00000071 0.00000153 0.00000092
0. 0. 0.00000071 0. 0. 0. 0.00000071 0. 0. 0. 0.00059016 0.00000153 0.00000071 0.00000071 0.00000153 0.0000001 0. 0.
0.00000071 0. 0. 0. 0.00000071 0. 0. 0. 0.00000153 0.00000001 0. 0. 0.00000001 0.00000082 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000071 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000071 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0.00059016 0.00000153 0.00000071 0.00000071 0.00000153 0.0000001 0. 0. 0.00000071 0. 0. 0. 0.00000071 0. 0. 0.
0.00000153 0.00000001 0. 0. 0.00000001 0.00000082 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000071 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000071 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00059016 0.00000153 0.00000071 0.00000071 0.00000153 0.0000001
0. 0. 0.00000071 0. 0. 0. 0.00000071 0. 0. 0. 0.00000153 0.00000001 0. 0. 0.00000001 0.00000082 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0.00000071 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000071 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. ]
[0.05099011 0.00126287 0.00059098 0.00059098 0.00126286 0.00006201 0.00000163 0.00000163 0.00059098 0.00000163 0.00000071 0.00000071 0.00059098 0.00000163 0.00000071 0.00000071 0.00126277 0.00000865
0.00000154 0.00000154 0.00000505 0.00067271 0.00000082 0.00000082 0.00000153 0.00000083 0. 0. 0.00000153 0.00000083 0. 0. 0.00059098 0.00000154 0.00000071 0.00000071
0.00000153 0.00000092 0. 0. 0.00000071 0. 0. 0. 0.00000071 0. 0. 0. 0.00059098 0.00000154 0.00000071 0.00000071 0.00000153 0.00000092
0. 0. 0.00000071 0. 0. 0. 0.00000071 0. 0. 0. 0.00059016 0.00000153 0.00000071 0.00000071 0.00000153 0.0000001 0. 0.
0.00000071 0. 0. 0. 0.00000071 0. 0. 0. 0.00000153 0.00000001 0. 0. 0.00000001 0.00000082 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000071 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000071 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0.00059016 0.00000153 0.00000071 0.00000071 0.00000153 0.0000001 0. 0. 0.00000071 0. 0. 0. 0.00000071 0. 0. 0.
0.00000153 0.00000001 0. 0. 0.00000001 0.00000082 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000071 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000071 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00059016 0.00000153 0.00000071 0.00000071 0.00000153 0.0000001
0. 0. 0.00000071 0. 0. 0. 0.00000071 0. 0. 0. 0.00000153 0.00000001 0. 0. 0.00000001 0.00000082 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0.00000071 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000071 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. ]
qubits: [9 3 6 0]
shape: (16, 16)
trace: 0.9999999999999999
[[0.4971505 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.46405604]
[0. 0.00068956 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000749 0. ]
[0. 0. 0.00068956 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000749 0. 0. ]
[0. 0. 0. 0.00008142 0. 0. 0. 0. 0. 0. 0. 0. 0.00002263 0. 0. 0. ]
[0. 0. 0. 0. 0.00068956 0. 0. 0. 0. 0. 0. 0.00000749 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0.00000794 0. 0. 0. 0. 0.00000248 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0. 0.00000191 0. 0. 0. 0. 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0. 0. 0.00068956 0.00000749 0. 0. 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0. 0. 0.00000749 0.00068956 0. 0. 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000191 0. 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0.00000248 0. 0. 0. 0. 0.00000794 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0.00000749 0. 0. 0. 0. 0. 0. 0.00068956 0. 0. 0. 0. ]
[0. 0. 0. 0.00002263 0. 0. 0. 0. 0. 0. 0. 0. 0.00008142 0. 0. 0. ]
[0. 0. 0.00000749 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00068956 0. 0. ]
[0. 0.00000749 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00068956 0. ]
[0.46405604 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.4971505 ]]
0.93492354 0.00113558 0.00052621 0.00052621 0.00113557 0.00009347 0.00000128 0.00000128 0.00052621 0.00000128 0.00000056 0.00000056 0.00052621 0.00000128 0.00000056 0.00000056 0.0011355 0.00001136
0.00000122 0.00000122 0.00000398 0.00061001 0.00000065 0.00000065 0.00000121 0.00000065 0. 0. 0.00000121 0.00000065 0. 0. 0.00052621 0.00000122 0.00000056 0.00000056
0.00000121 0.00000072 0. 0. 0.00000056 0. 0. 0. 0.00000056 0. 0. 0. 0.00052621 0.00000122 0.00000056 0.00000056 0.00000121 0.00000072
0. 0. 0.00000056 0. 0. 0. 0.00000056 0. 0. 0. 0.00052557 0.00000121 0.00000056 0.00000056 0.00000121 0.00000008 0. 0.
0.00000056 0. 0. 0. 0.00000056 0. 0. 0. 0.00000121 0.00000001 0. 0. 0. 0.00000065 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000056 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000056 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0.00052557 0.00000121 0.00000056 0.00000056 0.00000121 0.00000008 0. 0. 0.00000056 0. 0. 0. 0.00000056 0. 0. 0.
0.00000121 0.00000001 0. 0. 0. 0.00000065 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000056 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000056 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00052557 0.00000121 0.00000056 0.00000056 0.00000121 0.00000008
0. 0. 0.00000056 0. 0. 0. 0.00000056 0. 0. 0. 0.00000121 0.00000001 0. 0. 0. 0.00000065 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0.00000056 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000056 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0.
0.04735771 0.00112235 0.00052621 0.00052621 0.00112235 0.00005252 0.00000128 0.00000128 0.00052621 0.00000128 0.00000056 0.00000056 0.00052621 0.00000128 0.00000056 0.00000056 0.00112228 0.00000709
0.00000122 0.00000122 0.00000398 0.00059679 0.00000065 0.00000065 0.00000121 0.00000065 0. 0. 0.00000121 0.00000065 0. 0. 0.00052621 0.00000122 0.00000056 0.00000056
0.00000121 0.00000072 0. 0. 0.00000056 0. 0. 0. 0.00000056 0. 0. 0. 0.00052621 0.00000122 0.00000056 0.00000056 0.00000121 0.00000072
0. 0. 0.00000056 0. 0. 0. 0.00000056 0. 0. 0. 0.00052557 0.00000121 0.00000056 0.00000056 0.00000121 0.00000008 0. 0.
0.00000056 0. 0. 0. 0.00000056 0. 0. 0. 0.00000121 0.00000001 0. 0. 0. 0.00000065 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000056 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000056 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0.00052557 0.00000121 0.00000056 0.00000056 0.00000121 0.00000008 0. 0. 0.00000056 0. 0. 0. 0.00000056 0. 0. 0.
0.00000121 0.00000001 0. 0. 0. 0.00000065 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000056 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000056 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00052557 0.00000121 0.00000056 0.00000056 0.00000121 0.00000008
0. 0. 0.00000056 0. 0. 0. 0.00000056 0. 0. 0. 0.00000121 0.00000001 0. 0. 0. 0.00000065 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0.00000056 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000056 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0.
expedient
final bell fidelity in make_bell 0.9857477088795481
sum 0.9999999999999999
trace 0.9999999999999999
[0.92326034 0.00141864 0.00065553 0.00065553 0.00141863 0.00011699 0.00000201 0.00000201 0.00065553 0.00000201 0.00000088 0.00000088 0.00065553 0.00000201 0.00000088 0.00000088 0.00141852 0.00001552
0.0000019 0.0000019 0.00000625 0.00076413 0.00000102 0.00000102 0.00000189 0.00000103 0. 0. 0.00000189 0.00000103 0. 0. 0.00065553 0.0000019 0.00000088 0.00000088
0.00000189 0.00000114 0. 0. 0.00000088 0. 0. 0. 0.00000088 0. 0. 0. 0.00065553 0.0000019 0.00000088 0.00000088 0.00000189 0.00000114
0. 0. 0.00000088 0. 0. 0. 0.00000088 0. 0. 0. 0.00065452 0.00000189 0.00000088 0.00000088 0.00000189 0.00000013 0. 0.
0.00000088 0. 0. 0. 0.00000088 0. 0. 0. 0.00000189 0.00000002 0. 0. 0.00000001 0.00000101 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000088 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000088 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0.00065452 0.00000189 0.00000088 0.00000088 0.00000189 0.00000013 0. 0. 0.00000088 0. 0. 0. 0.00000088 0. 0. 0.
0.00000189 0.00000002 0. 0. 0.00000001 0.00000101 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000088 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000088 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00065452 0.00000189 0.00000088 0.00000088 0.00000189 0.00000013
0. 0. 0.00000088 0. 0. 0. 0.00000088 0. 0. 0. 0.00000189 0.00000002 0. 0. 0.00000001 0.00000101 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0.00000088 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000088 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. ]
[0.05458592 0.0014035 0.00065553 0.00065553 0.00140349 0.00007227 0.00000201 0.00000201 0.00065553 0.00000201 0.00000088 0.00000088 0.00065553 0.00000201 0.00000088 0.00000088 0.00140338 0.0000104
0.0000019 0.0000019 0.00000625 0.00074899 0.00000102 0.00000102 0.00000189 0.00000103 0. 0. 0.00000189 0.00000103 0. 0. 0.00065553 0.0000019 0.00000088 0.00000088
0.00000189 0.00000114 0. 0. 0.00000088 0. 0. 0. 0.00000088 0. 0. 0. 0.00065553 0.0000019 0.00000088 0.00000088 0.00000189 0.00000114
0. 0. 0.00000088 0. 0. 0. 0.00000088 0. 0. 0. 0.00065452 0.00000189 0.00000088 0.00000088 0.00000189 0.00000013 0. 0.
0.00000088 0. 0. 0. 0.00000088 0. 0. 0. 0.00000189 0.00000002 0. 0. 0.00000001 0.00000101 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000088 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000088 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0.00065452 0.00000189 0.00000088 0.00000088 0.00000189 0.00000013 0. 0. 0.00000088 0. 0. 0. 0.00000088 0. 0. 0.
0.00000189 0.00000002 0. 0. 0.00000001 0.00000101 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000088 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000088 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00065452 0.00000189 0.00000088 0.00000088 0.00000189 0.00000013
0. 0. 0.00000088 0. 0. 0. 0.00000088 0. 0. 0. 0.00000189 0.00000002 0. 0. 0.00000001 0.00000101 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0.00000088 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000088 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. ]
qubits: [9 3 6 0]
shape: (16, 16)
trace: 0.9999999999999999
[[0.49682167 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.46192982]
[0. 0.00076864 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000805 0. ]
[0. 0. 0.00076864 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000805 0. 0. ]
[0. 0. 0. 0.00009218 0. 0. 0. 0. 0. 0. 0. 0. 0.00002378 0. 0. 0. ]
[0. 0. 0. 0. 0.00076864 0. 0. 0. 0. 0. 0. 0.00000805 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0.00000919 0. 0. 0. 0. 0.00000273 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0. 0.00000238 0. 0. 0. 0. 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0. 0. 0.00076864 0.00000805 0. 0. 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0. 0. 0.00000805 0.00076864 0. 0. 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000238 0. 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0.00000273 0. 0. 0. 0. 0.00000919 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0.00000805 0. 0. 0. 0. 0. 0. 0.00076864 0. 0. 0. 0. ]
[0. 0. 0. 0.00002378 0. 0. 0. 0. 0. 0. 0. 0. 0.00009218 0. 0. 0. ]
[0. 0. 0.00000805 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00076864 0. 0. ]
[0. 0.00000805 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00076864 0. ]
[0.46192982 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.49682167]]
expedient
final bell fidelity in make_bell 0.9851823096902954
sum 1.0000000000000002
trace 1.0000000000000002
[0.91747933 0.0015604 0.00071985 0.00071985 0.00156039 0.00012996 0.00000244 0.00000244 0.00071985 0.00000244 0.00000106 0.00000106 0.00071985 0.00000244 0.00000106 0.00000106 0.00156026 0.00001793
0.00000231 0.00000231 0.00000759 0.00084179 0.00000124 0.00000124 0.00000229 0.00000125 0.00000001 0.00000001 0.00000229 0.00000125 0.00000001 0.00000001 0.00071985 0.00000231 0.00000106 0.00000106
0.00000229 0.00000138 0.00000001 0.00000001 0.00000106 0.00000001 0. 0. 0.00000106 0.00000001 0. 0. 0.00071985 0.00000231 0.00000106 0.00000106 0.00000229 0.00000138
0.00000001 0.00000001 0.00000106 0.00000001 0. 0. 0.00000106 0.00000001 0. 0. 0.00071862 0.00000229 0.00000106 0.00000106 0.00000229 0.00000016 0. 0.
0.00000106 0. 0. 0. 0.00000106 0. 0. 0. 0.00000229 0.00000002 0. 0. 0.00000001 0.00000123 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000106 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000106 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0.00071862 0.00000229 0.00000106 0.00000106 0.00000229 0.00000016 0. 0. 0.00000106 0. 0. 0. 0.00000106 0. 0. 0.
0.00000229 0.00000002 0. 0. 0.00000001 0.00000123 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000106 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000106 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00071862 0.00000229 0.00000106 0.00000106 0.00000229 0.00000016
0. 0. 0.00000106 0. 0. 0. 0.00000106 0. 0. 0. 0.00000229 0.00000002 0. 0. 0.00000001 0.00000123 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0.00000106 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000106 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. ]
[0.05814528 0.00154424 0.00071985 0.00071985 0.00154423 0.00008332 0.00000244 0.00000244 0.00071985 0.00000244 0.00000106 0.00000106 0.00071985 0.00000244 0.00000106 0.00000106 0.0015441 0.00001233
0.00000231 0.00000231 0.00000759 0.00082564 0.00000124 0.00000124 0.00000229 0.00000125 0.00000001 0.00000001 0.00000229 0.00000125 0.00000001 0.00000001 0.00071985 0.00000231 0.00000106 0.00000106
0.00000229 0.00000138 0.00000001 0.00000001 0.00000106 0.00000001 0. 0. 0.00000106 0.00000001 0. 0. 0.00071985 0.00000231 0.00000106 0.00000106 0.00000229 0.00000138
0.00000001 0.00000001 0.00000106 0.00000001 0. 0. 0.00000106 0.00000001 0. 0. 0.00071862 0.00000229 0.00000106 0.00000106 0.00000229 0.00000016 0. 0.
0.00000106 0. 0. 0. 0.00000106 0. 0. 0. 0.00000229 0.00000002 0. 0. 0.00000001 0.00000123 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000106 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000106 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0.00071862 0.00000229 0.00000106 0.00000106 0.00000229 0.00000016 0. 0. 0.00000106 0. 0. 0. 0.00000106 0. 0. 0.
0.00000229 0.00000002 0. 0. 0.00000001 0.00000123 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000106 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000106 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00071862 0.00000229 0.00000106 0.00000106 0.00000229 0.00000016
0. 0. 0.00000106 0. 0. 0. 0.00000106 0. 0. 0. 0.00000229 0.00000002 0. 0. 0.00000001 0.00000123 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0.00000106 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000106 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. ]
qubits: [9 3 6 0]
shape: (16, 16)
trace: 1.0000000000000002
[[0.49648933 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.45979931]
[0. 0.00084837 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000865 0. ]
[0. 0. 0.00084837 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000865 0. 0. ]
[0. 0. 0. 0.00010371 0. 0. 0. 0. 0. 0. 0. 0. 0.00002495 0. 0. 0. ]
[0. 0. 0. 0. 0.00084837 0. 0. 0. 0. 0. 0. 0.00000865 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0.00001057 0. 0. 0. 0. 0.000003 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0. 0.0000029 0. 0. 0. 0. 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0. 0. 0.00084837 0.00000865 0. 0. 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0. 0. 0.00000865 0.00084837 0. 0. 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0. 0. 0. 0. 0.0000029 0. 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0. 0.000003 0. 0. 0. 0. 0.00001057 0. 0. 0. 0. 0. ]
[0. 0. 0. 0. 0.00000865 0. 0. 0. 0. 0. 0. 0.00084837 0. 0. 0. 0. ]
[0. 0. 0. 0.00002495 0. 0. 0. 0. 0. 0. 0. 0. 0.00010371 0. 0. 0. ]
[0. 0. 0.00000865 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00084837 0. 0. ]
[0. 0.00000865 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00084837 0. ]
[0.45979931 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.49648933]]
0.91747933 0.0015604 0.00071985 0.00071985 0.00156039 0.00012996 0.00000244 0.00000244 0.00071985 0.00000244 0.00000106 0.00000106 0.00071985 0.00000244 0.00000106 0.00000106 0.00156026 0.00001793
0.00000231 0.00000231 0.00000759 0.00084179 0.00000124 0.00000124 0.00000229 0.00000125 0.00000001 0.00000001 0.00000229 0.00000125 0.00000001 0.00000001 0.00071985 0.00000231 0.00000106 0.00000106
0.00000229 0.00000138 0.00000001 0.00000001 0.00000106 0.00000001 0. 0. 0.00000106 0.00000001 0. 0. 0.00071985 0.00000231 0.00000106 0.00000106 0.00000229 0.00000138
0.00000001 0.00000001 0.00000106 0.00000001 0. 0. 0.00000106 0.00000001 0. 0. 0.00071862 0.00000229 0.00000106 0.00000106 0.00000229 0.00000016 0. 0.
0.00000106 0. 0. 0. 0.00000106 0. 0. 0. 0.00000229 0.00000002 0. 0. 0.00000001 0.00000123 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000106 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000106 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0.00071862 0.00000229 0.00000106 0.00000106 0.00000229 0.00000016 0. 0. 0.00000106 0. 0. 0. 0.00000106 0. 0. 0.
0.00000229 0.00000002 0. 0. 0.00000001 0.00000123 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000106 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000106 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00071862 0.00000229 0.00000106 0.00000106 0.00000229 0.00000016
0. 0. 0.00000106 0. 0. 0. 0.00000106 0. 0. 0. 0.00000229 0.00000002 0. 0. 0.00000001 0.00000123 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0.00000106 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000106 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0.
0.05814528 0.00154424 0.00071985 0.00071985 0.00154423 0.00008332 0.00000244 0.00000244 0.00071985 0.00000244 0.00000106 0.00000106 0.00071985 0.00000244 0.00000106 0.00000106 0.0015441 0.00001233
0.00000231 0.00000231 0.00000759 0.00082564 0.00000124 0.00000124 0.00000229 0.00000125 0.00000001 0.00000001 0.00000229 0.00000125 0.00000001 0.00000001 0.00071985 0.00000231 0.00000106 0.00000106
0.00000229 0.00000138 0.00000001 0.00000001 0.00000106 0.00000001 0. 0. 0.00000106 0.00000001 0. 0. 0.00071985 0.00000231 0.00000106 0.00000106 0.00000229 0.00000138
0.00000001 0.00000001 0.00000106 0.00000001 0. 0. 0.00000106 0.00000001 0. 0. 0.00071862 0.00000229 0.00000106 0.00000106 0.00000229 0.00000016 0. 0.
0.00000106 0. 0. 0. 0.00000106 0. 0. 0. 0.00000229 0.00000002 0. 0. 0.00000001 0.00000123 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000106 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000106 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0.00071862 0.00000229 0.00000106 0.00000106 0.00000229 0.00000016 0. 0. 0.00000106 0. 0. 0. 0.00000106 0. 0. 0.
0.00000229 0.00000002 0. 0. 0.00000001 0.00000123 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000106 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000106 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00071862 0.00000229 0.00000106 0.00000106 0.00000229 0.00000016
0. 0. 0.00000106 0. 0. 0. 0.00000106 0. 0. 0. 0.00000229 0.00000002 0. 0. 0.00000001 0.00000123 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0.00000106 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000106 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0.
0.92326034 0.00141864 0.00065553 0.00065553 0.00141863 0.00011699 0.00000201 0.00000201 0.00065553 0.00000201 0.00000088 0.00000088 0.00065553 0.00000201 0.00000088 0.00000088 0.00141852 0.00001552
0.0000019 0.0000019 0.00000625 0.00076413 0.00000102 0.00000102 0.00000189 0.00000103 0. 0. 0.00000189 0.00000103 0. 0. 0.00065553 0.0000019 0.00000088 0.00000088
0.00000189 0.00000114 0. 0. 0.00000088 0. 0. 0. 0.00000088 0. 0. 0. 0.00065553 0.0000019 0.00000088 0.00000088 0.00000189 0.00000114
0. 0. 0.00000088 0. 0. 0. 0.00000088 0. 0. 0. 0.00065452 0.00000189 0.00000088 0.00000088 0.00000189 0.00000013 0. 0.
0.00000088 0. 0. 0. 0.00000088 0. 0. 0. 0.00000189 0.00000002 0. 0. 0.00000001 0.00000101 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000088 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000088 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0.00065452 0.00000189 0.00000088 0.00000088 0.00000189 0.00000013 0. 0. 0.00000088 0. 0. 0. 0.00000088 0. 0. 0.
0.00000189 0.00000002 0. 0. 0.00000001 0.00000101 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000088 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000088 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00065452 0.00000189 0.00000088 0.00000088 0.00000189 0.00000013
0. 0. 0.00000088 0. 0. 0. 0.00000088 0. 0. 0. 0.00000189 0.00000002 0. 0. 0.00000001 0.00000101 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0.00000088 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000088 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0.
0.05458592 0.0014035 0.00065553 0.00065553 0.00140349 0.00007227 0.00000201 0.00000201 0.00065553 0.00000201 0.00000088 0.00000088 0.00065553 0.00000201 0.00000088 0.00000088 0.00140338 0.0000104
0.0000019 0.0000019 0.00000625 0.00074899 0.00000102 0.00000102 0.00000189 0.00000103 0. 0. 0.00000189 0.00000103 0. 0. 0.00065553 0.0000019 0.00000088 0.00000088
0.00000189 0.00000114 0. 0. 0.00000088 0. 0. 0. 0.00000088 0. 0. 0. 0.00065553 0.0000019 0.00000088 0.00000088 0.00000189 0.00000114
0. 0. 0.00000088 0. 0. 0. 0.00000088 0. 0. 0. 0.00065452 0.00000189 0.00000088 0.00000088 0.00000189 0.00000013 0. 0.
0.00000088 0. 0. 0. 0.00000088 0. 0. 0. 0.00000189 0.00000002 0. 0. 0.00000001 0.00000101 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000088 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000088 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0.00065452 0.00000189 0.00000088 0.00000088 0.00000189 0.00000013 0. 0. 0.00000088 0. 0. 0. 0.00000088 0. 0. 0.
0.00000189 0.00000002 0. 0. 0.00000001 0.00000101 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000088 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000088 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00065452 0.00000189 0.00000088 0.00000088 0.00000189 0.00000013
0. 0. 0.00000088 0. 0. 0. 0.00000088 0. 0. 0. 0.00000189 0.00000002 0. 0. 0.00000001 0.00000101 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0.00000088 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000088 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0.
use crate::error::{ErrorModel, MeasureNoiseModel, NoiseChannel};
use crate::model::{Stabilizer, SurfModelClass, SurfaceCodeModel};
use crate::utils::load_arr;
pub fn epoch(model: &mut SurfaceCodeModel, w1: f64, w2: f64) -> Option<Stabilizer> {
// model.state.gen_independent_error(model.error_model.decay);
model.state.gen_independent_error(model.error_model.decay);
let one_round = false;
if one_round {
model.update_measures();
model.perform_ecc();
} else {
model.perform_ecc_3d(model.gx.scale.xm, 0, w1, w2);
// model.perform_ecc_3d(100, 2, w1, w2);
// model.perform_ecc_3d(model.gx.scale.xm, 0, w1, w2);
model.perform_ecc_3d(10, 0, w1, w2);
}
model.has_logical_error()
}
/// pd is data qubit error rate, pm is measure qubit error rate
fn get_weight(pd: f64, pm: f64) -> (f64, f64) {
let mut w1 = f64::ln(pd);
let mut w2 = f64::ln(pm);
if w1.is_infinite() {
w1 = 0.0;
w2 = 1.0;
} else {
let wsum = w1 + w2;
w1 = 1.0 - w1 / wsum;
w2 = 1.0 - w2 / wsum;
}
w1 = 0.5;
w2 = 1.0 - w1;
log::debug!("{}, {}", w1, w2);
(w1, w2)
}
pub fn naive_runner(xn: usize, zm: usize, p: f64) -> usize {
let channel = NoiseChannel::new_depolarizing_channel(p);
let error_model = ErrorModel::new(channel, None);
......@@ -33,21 +52,8 @@ pub fn naive_runner(xn: usize, zm: usize, p: f64) -> usize {
pub fn runner1(xn: usize, zm: usize, p: f64, measure_model: MeasureNoiseModel) -> usize {
let channel = NoiseChannel::new_depolarizing_channel(p);
let (w1, w2) = get_weight(p, measure_model.failure.prob_sum);
let mut w1 = f64::ln(p);
let mut w2 = f64::ln(measure_model.failure.prob_sum);
if w1.is_infinite() {
w1 = 0.0;
w2 = 1.0;
} else {
let wsum = w1 + w2;
w1 = w1 / wsum;
w2 = w2 / wsum;
}
w1 = 0.88;
w2 = 1.0 - w1;
log::debug!("{}, {}", w1, w2);
let error_model = ErrorModel::new(channel, Some(measure_model));
let mut model = SurfaceCodeModel::new(xn, zm, &error_model, SurfModelClass::Surf1);
let mut epochs = 0;
......@@ -64,19 +70,8 @@ pub fn runner1(xn: usize, zm: usize, p: f64, measure_model: MeasureNoiseModel) -
pub fn runner2(xn: usize, zm: usize, measure_rounds: usize, measure_model: MeasureNoiseModel) -> usize {
let p1 = 0.006;
let mut w1 = f64::ln(p1);
let mut w2 = f64::ln(measure_model.failure.prob_sum);
if w1.is_infinite() {
w1 = 0.0;
w2 = 1.0;
} else {
let wsum = w1 + w2;
w1 = 1.0 - w1 / wsum;
w2 = 1.0 - w2 / wsum;
}
w1 = 0.70;
w2 = 1.0 - w1;
log::debug!("{}, {}", w1, w2);
let (w1, w2) = get_weight(p1, measure_model.failure.prob_sum);
let channel = NoiseChannel::new_depolarizing_channel(p1);
let error_model = ErrorModel::new(channel, Some(measure_model));
let mut model = SurfaceCodeModel::new(xn, zm, &error_model, SurfModelClass::Surf1);
......
......@@ -49,6 +49,16 @@ fn main() {
.short('j')
.default_value("1"),
)
.arg(
Arg::new("channel-correct")
.about("channel for correct measurement outcome")
.default_value("./custom_correct2.txt"),
)
.arg(
Arg::new("channel-error")
.about("channel for error measurement outcome")
.default_value("./custom_error2.txt"),
)
.get_matches();
let xn = matches.value_of("xn").unwrap().parse::<usize>().unwrap();
......@@ -68,17 +78,23 @@ fn main() {
.parse::<usize>()
.unwrap();
let str_correct = std::fs::read_to_string("./custom_correct.txt").unwrap();
let str_error = std::fs::read_to_string("./custom_error.txt").unwrap();
let file_correct = matches.value_of("channel-correct").unwrap();
let file_error = matches.value_of("channel-error").unwrap();
let str_correct = std::fs::read_to_string(file_correct).unwrap();
let str_error = std::fs::read_to_string(file_error).unwrap();
// let str_correct = std::fs::read_to_string("./custom_correct.txt").unwrap();
// let str_error = std::fs::read_to_string("./custom_error.txt").unwrap();
let m_correct = load_arr(&str_correct);
let m_error = load_arr(&str_error);
let pm = 0.06;
// let pm = 0.06;
// let m_correct = vec![1. - pm];
// let m_error = vec![pm];
let measure_model = error::MeasureNoiseModel::new(m_correct, m_error);
let result: Vec<usize> = (0..rounds)
.into_par_iter()
.map(|_| runner2(xn, zm, 100, measure_model.clone()))
.map(|_| runner2(xn, zm, 30, measure_model.clone()))
// .map(|_| runner1(xn, zm, 0.006, measure_model.clone()))
.collect();
......
......@@ -270,13 +270,16 @@ impl<'a> SurfaceCodeModel<'a> {
mxs.push(self.state.measures_x.clone());
mzs.push(self.state.measures_z.clone());
}
for _i in (round - cutoff)..round {
self.update_measures_perfect();
mxs.push(self.state.measures_x.clone());
mzs.push(self.state.measures_z.clone());
}
let mut defect_x: Vec<usize> = Vec::new();
let mut defect_z: Vec<usize> = Vec::new();
// first layer: compare with no defect case