Unverified Commit 47467abc authored by dwuggh's avatar dwuggh
Browse files

update channels, fix weighting

parent 079f744d
0.95566257 0.0006416 0.00029774 0.00029774 0.0006416 0.00005994 0.00000041 0.00000041 0.00029774 0.00000041 0.00000018 0.00000018 0.00029774 0.00000041 0.00000018 0.00000018 0.00064157 0.00000604
0.00000039 0.00000039 0.00000125 0.00034406 0.0000002 0.0000002 0.00000038 0.00000021 0. 0. 0.00000038 0.00000021 0. 0. 0.00029774 0.00000039 0.00000018 0.00000018
0.00000038 0.00000023 0. 0. 0.00000018 0. 0. 0. 0.00000018 0. 0. 0. 0.00029774 0.00000039 0.00000018 0.00000018 0.00000038 0.00000023
0. 0. 0.00000018 0. 0. 0. 0.00000018 0. 0. 0. 0.00029754 0.00000038 0.00000018 0.00000018 0.00000038 0.00000003 0. 0.
0.00000018 0. 0. 0. 0.00000018 0. 0. 0. 0.00000038 0. 0. 0. 0. 0.0000002 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000018 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000018 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0.00029754 0.00000038 0.00000018 0.00000018 0.00000038 0.00000003 0. 0. 0.00000018 0. 0. 0. 0.00000018 0. 0. 0.
0.00000038 0. 0. 0. 0. 0.0000002 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000018 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000018 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00029754 0.00000038 0.00000018 0.00000018 0.00000038 0.00000003
0. 0. 0.00000018 0. 0. 0. 0.00000018 0. 0. 0. 0.00000038 0. 0. 0. 0. 0.0000002 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0.00000018 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000018 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0.
0.03435454 0.00063139 0.00029774 0.00029774 0.00063138 0.00002536 0.00000041 0.00000041 0.00029774 0.00000041 0.00000018 0.00000018 0.00029774 0.00000041 0.00000018 0.00000018 0.00063136 0.00000302
0.00000039 0.00000039 0.00000125 0.00033385 0.0000002 0.0000002 0.00000038 0.00000021 0. 0. 0.00000038 0.00000021 0. 0. 0.00029774 0.00000039 0.00000018 0.00000018
0.00000038 0.00000023 0. 0. 0.00000018 0. 0. 0. 0.00000018 0. 0. 0. 0.00029774 0.00000039 0.00000018 0.00000018 0.00000038 0.00000023
0. 0. 0.00000018 0. 0. 0. 0.00000018 0. 0. 0. 0.00029754 0.00000038 0.00000018 0.00000018 0.00000038 0.00000003 0. 0.
0.00000018 0. 0. 0. 0.00000018 0. 0. 0. 0.00000038 0. 0. 0. 0. 0.0000002 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000018 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000018 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0.00029754 0.00000038 0.00000018 0.00000018 0.00000038 0.00000003 0. 0. 0.00000018 0. 0. 0. 0.00000018 0. 0. 0.
0.00000038 0. 0. 0. 0. 0.0000002 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000018 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000018 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00029754 0.00000038 0.00000018 0.00000018 0.00000038 0.00000003
0. 0. 0.00000018 0. 0. 0. 0.00000018 0. 0. 0. 0.00000038 0. 0. 0. 0. 0.0000002 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0.00000018 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000018 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0.
0.95267403 0.00071207 0.00033055 0.00033055 0.00071206 0.00006414 0.0000005 0.0000005 0.00033055 0.0000005 0.00000022 0.00000022 0.00033055 0.0000005 0.00000022 0.00000022 0.00071204 0.00000665
0.00000048 0.00000048 0.00000155 0.00038177 0.00000025 0.00000025 0.00000047 0.00000025 0. 0. 0.00000047 0.00000025 0. 0. 0.00033055 0.00000048 0.00000022 0.00000022
0.00000047 0.00000028 0. 0. 0.00000022 0. 0. 0. 0.00000022 0. 0. 0. 0.00033055 0.00000048 0.00000022 0.00000022 0.00000047 0.00000028
0. 0. 0.00000022 0. 0. 0. 0.00000022 0. 0. 0. 0.0003303 0.00000047 0.00000022 0.00000022 0.00000047 0.00000003 0. 0.
0.00000022 0. 0. 0. 0.00000022 0. 0. 0. 0.00000047 0. 0. 0. 0. 0.00000025 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000022 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000022 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0.0003303 0.00000047 0.00000022 0.00000022 0.00000047 0.00000003 0. 0. 0.00000022 0. 0. 0. 0.00000022 0. 0. 0.
0.00000047 0. 0. 0. 0. 0.00000025 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000022 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000022 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.0003303 0.00000047 0.00000022 0.00000022 0.00000047 0.00000003
0. 0. 0.00000022 0. 0. 0. 0.00000022 0. 0. 0. 0.00000047 0. 0. 0. 0. 0.00000025 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0.00000022 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000022 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0.
0.03623985 0.00070145 0.00033055 0.00033055 0.00070145 0.00002868 0.0000005 0.0000005 0.00033055 0.0000005 0.00000022 0.00000022 0.00033055 0.0000005 0.00000022 0.00000022 0.00070142 0.00000348
0.00000048 0.00000048 0.00000155 0.00037115 0.00000025 0.00000025 0.00000047 0.00000025 0. 0. 0.00000047 0.00000025 0. 0. 0.00033055 0.00000048 0.00000022 0.00000022
0.00000047 0.00000028 0. 0. 0.00000022 0. 0. 0. 0.00000022 0. 0. 0. 0.00033055 0.00000048 0.00000022 0.00000022 0.00000047 0.00000028
0. 0. 0.00000022 0. 0. 0. 0.00000022 0. 0. 0. 0.0003303 0.00000047 0.00000022 0.00000022 0.00000047 0.00000003 0. 0.
0.00000022 0. 0. 0. 0.00000022 0. 0. 0. 0.00000047 0. 0. 0. 0. 0.00000025 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000022 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000022 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0.0003303 0.00000047 0.00000022 0.00000022 0.00000047 0.00000003 0. 0. 0.00000022 0. 0. 0. 0.00000022 0. 0. 0.
0.00000047 0. 0. 0. 0. 0.00000025 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000022 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000022 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.0003303 0.00000047 0.00000022 0.00000022 0.00000047 0.00000003
0. 0. 0.00000022 0. 0. 0. 0.00000022 0. 0. 0. 0.00000047 0. 0. 0. 0. 0.00000025 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0.00000022 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000022 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0.
0.94969413 0.00078256 0.0003633 0.0003633 0.00078256 0.00006853 0.00000061 0.00000061 0.0003633 0.00000061 0.00000027 0.00000027 0.0003633 0.00000061 0.00000027 0.00000027 0.00078253 0.00000731
0.00000057 0.00000057 0.00000187 0.00041957 0.00000031 0.00000031 0.00000057 0.00000031 0. 0. 0.00000057 0.00000031 0. 0. 0.0003633 0.00000057 0.00000027 0.00000027
0.00000057 0.00000034 0. 0. 0.00000027 0. 0. 0. 0.00000027 0. 0. 0. 0.0003633 0.00000057 0.00000027 0.00000027 0.00000057 0.00000034
0. 0. 0.00000027 0. 0. 0. 0.00000027 0. 0. 0. 0.000363 0.00000057 0.00000027 0.00000027 0.00000057 0.00000004 0. 0.
0.00000027 0. 0. 0. 0.00000027 0. 0. 0. 0.00000057 0. 0. 0. 0. 0.0000003 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000027 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000027 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0.000363 0.00000057 0.00000027 0.00000027 0.00000057 0.00000004 0. 0. 0.00000027 0. 0. 0. 0.00000027 0. 0. 0.
0.00000057 0. 0. 0. 0. 0.0000003 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000027 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000027 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.000363 0.00000057 0.00000027 0.00000027 0.00000057 0.00000004
0. 0. 0.00000027 0. 0. 0. 0.00000027 0. 0. 0. 0.00000057 0. 0. 0. 0. 0.0000003 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0.00000027 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000027 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0.
0.0381159 0.00077154 0.0003633 0.0003633 0.00077153 0.00003218 0.00000061 0.00000061 0.0003633 0.00000061 0.00000027 0.00000027 0.0003633 0.00000061 0.00000027 0.00000027 0.0007715 0.00000397
0.00000057 0.00000057 0.00000187 0.00040854 0.00000031 0.00000031 0.00000057 0.00000031 0. 0. 0.00000057 0.00000031 0. 0. 0.0003633 0.00000057 0.00000027 0.00000027
0.00000057 0.00000034 0. 0. 0.00000027 0. 0. 0. 0.00000027 0. 0. 0. 0.0003633 0.00000057 0.00000027 0.00000027 0.00000057 0.00000034
0. 0. 0.00000027 0. 0. 0. 0.00000027 0. 0. 0. 0.000363 0.00000057 0.00000027 0.00000027 0.00000057 0.00000004 0. 0.
0.00000027 0. 0. 0. 0.00000027 0. 0. 0. 0.00000057 0. 0. 0. 0. 0.0000003 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000027 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000027 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0.000363 0.00000057 0.00000027 0.00000027 0.00000057 0.00000004 0. 0. 0.00000027 0. 0. 0. 0.00000027 0. 0. 0.
0.00000057 0. 0. 0. 0. 0.0000003 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000027 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000027 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.000363 0.00000057 0.00000027 0.00000027 0.00000057 0.00000004
0. 0. 0.00000027 0. 0. 0. 0.00000027 0. 0. 0. 0.00000057 0. 0. 0. 0. 0.0000003 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0.00000027 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000027 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0.
0.95865978 0.00057117 0.00026488 0.00026488 0.00057116 0.00005593 0.00000032 0.00000032 0.00026488 0.00000032 0.00000014 0.00000014 0.00026488 0.00000032 0.00000014 0.00000014 0.00057115 0.00000547
0.0000003 0.0000003 0.00000099 0.00030644 0.00000016 0.00000016 0.0000003 0.00000016 0. 0. 0.0000003 0.00000016 0. 0. 0.00026488 0.0000003 0.00000014 0.00000014
0.0000003 0.00000018 0. 0. 0.00000014 0. 0. 0. 0.00000014 0. 0. 0. 0.00026488 0.0000003 0.00000014 0.00000014 0.0000003 0.00000018
0. 0. 0.00000014 0. 0. 0. 0.00000014 0. 0. 0. 0.00026472 0.0000003 0.00000014 0.00000014 0.0000003 0.00000002 0. 0.
0.00000014 0. 0. 0. 0.00000014 0. 0. 0. 0.0000003 0. 0. 0. 0. 0.00000016 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000014 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000014 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0.00026472 0.0000003 0.00000014 0.00000014 0.0000003 0.00000002 0. 0. 0.00000014 0. 0. 0. 0.00000014 0. 0. 0.
0.0000003 0. 0. 0. 0. 0.00000016 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000014 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000014 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00026472 0.0000003 0.00000014 0.00000014 0.0000003 0.00000002
0. 0. 0.00000014 0. 0. 0. 0.00000014 0. 0. 0. 0.0000003 0. 0. 0. 0. 0.00000016 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0.00000014 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000014 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0.
0.03245995 0.00056135 0.00026488 0.00026488 0.00056135 0.00002224 0.00000032 0.00000032 0.00026488 0.00000032 0.00000014 0.00000014 0.00026488 0.00000032 0.00000014 0.00000014 0.00056133 0.00000261
0.0000003 0.0000003 0.00000099 0.00029663 0.00000016 0.00000016 0.0000003 0.00000016 0. 0. 0.0000003 0.00000016 0. 0. 0.00026488 0.0000003 0.00000014 0.00000014
0.0000003 0.00000018 0. 0. 0.00000014 0. 0. 0. 0.00000014 0. 0. 0. 0.00026488 0.0000003 0.00000014 0.00000014 0.0000003 0.00000018
0. 0. 0.00000014 0. 0. 0. 0.00000014 0. 0. 0. 0.00026472 0.0000003 0.00000014 0.00000014 0.0000003 0.00000002 0. 0.
0.00000014 0. 0. 0. 0.00000014 0. 0. 0. 0.0000003 0. 0. 0. 0. 0.00000016 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000014 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0.00000014 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0.00026472 0.0000003 0.00000014 0.00000014 0.0000003 0.00000002 0. 0. 0.00000014 0. 0. 0. 0.00000014 0. 0. 0.
0.0000003 0. 0. 0. 0. 0.00000016 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000014 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00000014 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.00026472 0.0000003 0.00000014 0.00000014 0.0000003 0.00000002
0. 0. 0.00000014 0. 0. 0. 0.00000014 0. 0. 0. 0.0000003 0. 0. 0. 0. 0.00000016 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0.00000014 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.00000014 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0.
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.
......@@ -16,19 +16,21 @@ pub fn epoch(model: &mut SurfaceCodeModel, w1: f64, w2: f64) -> Option<Stabilize
/// 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);
let mut w1 = f64::ln(pd / (1. - pd));
let mut w2 = f64::ln(pm / (1. - 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 = 1.0 - w1 / wsum;
// w2 = 1.0 - w2 / wsum;
w1 = w1 / wsum;
w2 = w2 / wsum;
}
w1 = 0.5;
w2 = 1.0 - w1;
// w1 = 0.5;
// w2 = 1.0 - w1;
log::debug!("{}, {}", w1, w2);
(w1, w2)
......@@ -70,7 +72,10 @@ 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 (w1, w2) = get_weight(p1, measure_model.failure.prob_sum);
let probs = &measure_model.success.probs;
let p_ext = probs[1] * 4.;
log::debug!("p_ext: {}", p_ext);
let (w1, w2) = get_weight(p1 + p_ext, measure_model.failure.prob_sum);
let channel = NoiseChannel::new_depolarizing_channel(p1);
let error_model = ErrorModel::new(channel, Some(measure_model));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment