codedistance 0.0.4__tar.gz → 0.0.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- codedistance-0.0.5/LICENSE +21 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/PKG-INFO +11 -3
- {codedistance-0.0.4 → codedistance-0.0.5}/README.md +10 -2
- {codedistance-0.0.4 → codedistance-0.0.5}/codedistance/.DS_Store +0 -0
- codedistance-0.0.4/codedistance/distance.py → codedistance-0.0.5/codedistance/distance-old.py +0 -1
- codedistance-0.0.5/codedistance/distance.py +2525 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/runTest.py +2 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/pyproject.toml +1 -1
- codedistance-0.0.4/LICENSE +0 -674
- codedistance-0.0.4/examples/results/bivariate_bicycle-QDistEvol-20260303_210332.141939_85062422.txt +0 -45
- codedistance-0.0.4/examples/results/codeTables-GF2_sample.txt-MeetMiddleMW-20260304_083616.219679_85062422.txt +0 -56
- codedistance-0.0.4/examples/results/codeTables-GF2_sample.txt-qubitserfBZ-20260304_083638.643376_85062422.txt +0 -113
- codedistance-0.0.4/examples/results/codeTables-QECC_sample.txt-DistRndGAP-20260303_211748.394245_85062422.txt +0 -41
- codedistance-0.0.4/examples/results/codeTables-QECC_sample.txt-GurobiDist-20260303_211844.251513_85062422.txt +0 -36
- codedistance-0.0.4/examples/results/codeTables-QECC_sample.txt-GurobiDist-20260303_211911.716534_85062422.txt +0 -62
- codedistance-0.0.4/examples/results/codeTables-QECC_sample.txt-MIPDist-SCIP-20260303_211946.657395_85062422.txt +0 -55
- codedistance-0.0.4/examples/results/codeTables-QECC_sample.txt-MeetMiddleMW-20260303_212209.934872_85062422.txt +0 -62
- codedistance-0.0.4/examples/results/codeTables-QECC_sample.txt-QDistRndMW-20260303_211826.240534_85062422.txt +0 -45
- codedistance-0.0.4/examples/results/codeTables-QECC_sample.txt-UndetectableErrorStim-20260303_212112.912496_85062422.txt +0 -60
- codedistance-0.0.4/examples/results/codeTables-QECC_sample.txt-connectedClusterMW-20260303_212134.502322_85062422.txt +0 -53
- codedistance-0.0.4/examples/results/codeTables-QECC_sample.txt-decoderDist-bposd-20260303_212055.599668_85062422.txt +0 -45
- codedistance-0.0.4/examples/results/codeTables-QECC_sample.txt-dist_m4ri_CC-20260303_210717.918454_85062422.txt +0 -36
- codedistance-0.0.4/examples/results/codeTables-QECC_sample.txt-dist_m4ri_CC-20260303_210957.256357_85062422.txt +0 -36
- codedistance-0.0.4/examples/results/codeTables-QECC_sample.txt-dist_m4ri_CC-20260303_211603.125645_85062422.txt +0 -65
- codedistance-0.0.4/examples/results/codeTables-QECC_sample.txt-dist_m4ri_RW-20260303_211225.834639_85062422.txt +0 -36
- codedistance-0.0.4/examples/results/codeTables-QECC_sample.txt-dist_m4ri_RW-20260303_211438.341279_85062422.txt +0 -36
- codedistance-0.0.4/examples/results/codeTables-QECC_sample.txt-dist_m4ri_RW-20260303_211500.216780_85062422.txt +0 -36
- codedistance-0.0.4/examples/results/codeTables-QECC_sample.txt-dist_m4ri_RW-20260303_211534.542039_85062422.txt +0 -96
- codedistance-0.0.4/examples/results/codeTables-QECC_sample.txt-magmaMinWeight-20260303_211626.143623_85062422.txt +0 -70
- codedistance-0.0.4/examples/results/codeTables-QECC_sample.txt-pySATDist-20260303_212037.393486_85062422.txt +0 -54
- codedistance-0.0.4/examples/results/codeTables-QECC_sample.txt-qubitserfBZ-20260303_212154.339830_85062422.txt +0 -47
- codedistance-0.0.4/examples/results/stim_circuit-01_surfacecodes-dist_m4ri_RW-20260304_085623.931043_85062422.txt +0 -41
- {codedistance-0.0.4 → codedistance-0.0.5}/codedistance/NHow.py +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/codedistance/__init__.py +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/codedistance/code_library.py +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/codedistance/common.py +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/codedistance/complex_utils.py +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/codedistance/dem_detector_filtering.py +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/.DS_Store +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/BB_codes.py +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/QT_codes.py +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/__init__.py +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/bivariate_bicycle.py +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/codeTables/.DS_Store +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/codeTables/GF2_32.txt +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/codeTables/GF2_64.txt +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/codeTables/GF2_sample.txt +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/codeTables/QECC_32.txt +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/codeTables/QECC_64.txt +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/codeTables/QECC_sample.txt +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/exampleCSS.py +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/exampleCircuit.py +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/exampleQECC.py +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/hyperbolic_codes/.DS_Store +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/hyperbolic_codes/RG-3-10.txt +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/hyperbolic_codes/RG-3-12.txt +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/hyperbolic_codes/RG-3-8.txt +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/lifted_product.py +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/runDistanceTest.sh +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/.DS_Store +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/01_surfacecodes/.DS_Store +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/01_surfacecodes/01_r=3,d=3,p=0.0005,noise=si1000,c=surface_code_Z,q=17,gates=cz.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/01_surfacecodes/02_r=5,d=5,p=0.0005,noise=si1000,c=surface_code_Z,q=49,gates=cz.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/01_surfacecodes/03_r=7,d=7,p=0.0005,noise=si1000,c=surface_code_Z,q=97,gates=cz.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/01_surfacecodes/04_r=9,d=9,p=0.0005,noise=si1000,c=surface_code_Z,q=161,gates=cz.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/01_surfacecodes/05_r=11,d=11,p=0.0005,noise=si1000,c=surface_code_Z,q=241,gates=cz.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/03_colorcodes_midout/01_r=3,d=3,p=0.0005,noise=uniform,c=midout_color_code_Z,q=9,gates=all.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/03_colorcodes_midout/02_r=5,d=5,p=0.0005,noise=uniform,c=midout_color_code_Z,q=23,gates=all.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/03_colorcodes_midout/03_r=7,d=7,p=0.0005,noise=uniform,c=midout_color_code_Z,q=43,gates=all.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/03_colorcodes_midout/04_r=9,d=9,p=0.0005,noise=uniform,c=midout_color_code_Z,q=69,gates=all.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/03_colorcodes_midout/05_r=11,d=11,p=0.0005,noise=uniform,c=midout_color_code_Z,q=101,gates=all.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/04_colorcodes_superdense/01_r=3,d=3,p=0.0005,noise=uniform,c=superdense_color_code_Z,q=13,gates=all.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/04_colorcodes_superdense/02_r=5,d=5,p=0.0005,noise=uniform,c=superdense_color_code_Z,q=37,gates=all.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/04_colorcodes_superdense/03_r=7,d=7,p=0.0005,noise=uniform,c=superdense_color_code_Z,q=73,gates=all.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/04_colorcodes_superdense/04_r=9,d=9,p=0.0005,noise=uniform,c=superdense_color_code_Z,q=121,gates=all.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/04_colorcodes_superdense/05_r=11,d=11,p=0.0005,noise=uniform,c=superdense_color_code_Z,q=181,gates=all.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/04_colorcodes_superdense/06_r=1,d=15,p=0.161473,noise=data_qubit_X,c=color_code_mpp,q=169,gates=mpp.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/05_bivariatebicyclecodes/.DS_Store +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/05_bivariatebicyclecodes/01_r=6,d=6,p=0.009,noise=si1000,c=bivariate_bicycle_Z,nkd=[[72,12,6]],q=144,iscolored=True,A_poly=x^3+y+y^2,B_poly=y^3+x+x^2.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/05_bivariatebicyclecodes/02_r=10,d=10,p=0.009,noise=si1000,c=bivariate_bicycle_Z,nkd=[[90,8,10]],q=180,iscolored=True,A_poly=x^9+y+y^2,B_poly=x^7+1+x^2.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/05_bivariatebicyclecodes/03_r=10,d=10,p=0.009,noise=si1000,c=bivariate_bicycle_Z,nkd=[[108,8,10]],q=216,iscolored=True,A_poly=x^3+y+y^2,B_poly=y^3+x+x^2.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/05_bivariatebicyclecodes/04_r=12,d=12,p=0.009,noise=si1000,c=bivariate_bicycle_Z,nkd=[[144,12,12]],q=288,iscolored=True,A_poly=x^3+y+y^2,B_poly=y^3+x+x^2.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/05_bivariatebicyclecodes/05_r=18,d=18,p=0.009,noise=si1000,c=bivariate_bicycle_Z,nkd=[[288,12,18]],q=576,iscolored=True,A_poly=x^3+y^2+y^7,B_poly=y^3+x+x^2.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/05_bivariatebicyclecodes/06_r=24,d=24,p=0.009,noise=si1000,c=bivariate_bicycle_Z,nkd=[[360,12,24]],q=720,iscolored=True,A_poly=x^9+y+y^2,B_poly=y^3+x^25+x^26.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/05_bivariatebicyclecodes/07_r=34,d=34,p=0.009,noise=si1000,c=bivariate_bicycle_Z,nkd=[[756,16,34]],q=1512,iscolored=True,A_poly=x^3+y^10+y^17,B_poly=y^5+x^3+x^19.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/06_bivariatebicyclecodes_nlr5wb/.DS_Store +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/06_bivariatebicyclecodes_nlr5wb/01_r=6,d=6,p=0.009,noise=nlr5wb,c=bivariate_bicycle_Z,k=12,q=144,iscolored=True,A_poly=x^3+y+y^2,B_poly=y^3+x+x^2.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/06_bivariatebicyclecodes_nlr5wb/02_r=10,d=10,p=0.009,noise=nlr5wb,c=bivariate_bicycle_Z,k=8,q=180,iscolored=True,A_poly=x^9+y+y^2,B_poly=x^7+1+x^2.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/06_bivariatebicyclecodes_nlr5wb/03_r=10,d=10,p=0.009,noise=nlr5wb,c=bivariate_bicycle_Z,k=8,q=216,iscolored=True,A_poly=x^3+y+y^2,B_poly=y^3+x+x^2.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/06_bivariatebicyclecodes_nlr5wb/04_r=12,d=12,p=0.009,noise=nlr5wb,c=bivariate_bicycle_Z,k=12,q=288,iscolored=True,A_poly=x^3+y+y^2,B_poly=y^3+x+x^2.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/06_bivariatebicyclecodes_nlr5wb/05_r=18,d=18,p=0.009,noise=nlr5wb,c=bivariate_bicycle_Z,k=12,q=576,iscolored=True,A_poly=x^3+y^2+y^7,B_poly=y^3+x+x^2.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/06_bivariatebicyclecodes_nlr5wb/06_r=24,d=24,p=0.009,noise=nlr5wb,c=bivariate_bicycle_Z,k=12,q=720,iscolored=True,A_poly=x^9+y+y^2,B_poly=y^3+x^25+x^26.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/06_bivariatebicyclecodes_nlr5wb/07_r=34,d=34,p=0.009,noise=nlr5wb,c=bivariate_bicycle_Z,k=16,q=1512,iscolored=True,A_poly=x^3+y^10+y^17,B_poly=y^5+x^3+x^19.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/07_bivariatebicyclecodes_nlr10wb/.DS_Store +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/07_bivariatebicyclecodes_nlr10wb/01_r=6,d=6,p=0.009,noise=nlr10wb,c=bivariate_bicycle_Z,k=12,q=144,iscolored=True,A_poly=x^3+y+y^2,B_poly=y^3+x+x^2.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/07_bivariatebicyclecodes_nlr10wb/02_r=10,d=10,p=0.009,noise=nlr10wb,c=bivariate_bicycle_Z,k=8,q=180,iscolored=True,A_poly=x^9+y+y^2,B_poly=x^7+1+x^2.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/07_bivariatebicyclecodes_nlr10wb/03_r=10,d=10,p=0.009,noise=nlr10wb,c=bivariate_bicycle_Z,k=8,q=216,iscolored=True,A_poly=x^3+y+y^2,B_poly=y^3+x+x^2.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/07_bivariatebicyclecodes_nlr10wb/04_r=12,d=12,p=0.009,noise=nlr10wb,c=bivariate_bicycle_Z,k=12,q=288,iscolored=True,A_poly=x^3+y+y^2,B_poly=y^3+x+x^2.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/07_bivariatebicyclecodes_nlr10wb/05_r=18,d=18,p=0.009,noise=nlr10wb,c=bivariate_bicycle_Z,k=12,q=576,iscolored=True,A_poly=x^3+y^2+y^7,B_poly=y^3+x+x^2.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/07_bivariatebicyclecodes_nlr10wb/06_r=24,d=24,p=0.009,noise=nlr10wb,c=bivariate_bicycle_Z,k=12,q=720,iscolored=True,A_poly=x^9+y+y^2,B_poly=y^3+x^25+x^26.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/07_bivariatebicyclecodes_nlr10wb/07_r=34,d=34,p=0.009,noise=nlr10wb,c=bivariate_bicycle_Z,k=16,q=1512,iscolored=True,A_poly=x^3+y^10+y^17,B_poly=y^5+x^3+x^19.stim +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/stim_circuits/README.md +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/.DS_Store +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HX_108_2_12.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HX_144_2_13.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HX_180_2_17.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HX_216_4_18.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HX_252_2_21.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HX_288_2_24.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HX_324_4_25.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HX_360_4_24.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HX_36_8_4.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HX_396_4_26.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HX_432_8_33.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HX_468_4_31.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HX_496_2_32.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HX_504_2_45.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HX_540_4_40.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HX_576_2_57.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HX_576_2_59.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HX_612_2_52.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HX_648_10_71.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HX_648_14_50.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HX_684_2_29.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HX_72_8_8.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HZ_108_2_12.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HZ_144_2_13.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HZ_180_2_17.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HZ_216_4_18.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HZ_252_2_21.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HZ_288_2_24.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HZ_324_4_25.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HZ_360_4_24.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HZ_36_8_4.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HZ_396_4_26.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HZ_432_8_33.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HZ_468_4_31.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HZ_496_2_32.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HZ_504_2_45.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HZ_540_4_40.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HZ_576_2_57.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HZ_576_2_59.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HZ_612_2_52.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HZ_648_10_71.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HZ_648_14_50.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HZ_684_2_29.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tanner_codes/HZ_72_8_8.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tmp/20260303_211550.461468_85062422H.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tmp/20260303_211550.461468_85062422L.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tmp/20260303_211550.463575_44088179.stdout +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tmp/20260303_211609.373972_85062422H.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tmp/20260303_211609.373972_85062422L.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tmp/20260303_211609.375508_00717477.stdout +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tmp/20260303_211632.978435_00404018.stdout +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tmp/20260303_211807.002810_13674611.g +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tmp/20260303_211807.002810_13674611H.mtx +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tmp/20260303_211807.003731_32355872.stdout +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tmp/20260303_212039.803682_85062422.wcnf +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tmp/20260303_212039.804165_58423964.stdout +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tmp/20260303_212158.101738_32352392.stderr +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tmp/20260303_212158.101738_32352392.stdout +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tmp/20260304_083641.372186_71140661.stderr +0 -0
- {codedistance-0.0.4 → codedistance-0.0.5}/examples/tmp/20260304_083641.372186_71140661.stdout +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Mark Alan Webster, Abraham Jacob, Oscar Higgott
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: codedistance
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.5
|
|
4
4
|
Summary: Code and Circuit Distance Algorithms.
|
|
5
5
|
License: GNUv3
|
|
6
6
|
License-File: LICENSE
|
|
@@ -42,7 +42,13 @@ Distance algorithms for classical codes, quantum codes and quantum circuits
|
|
|
42
42
|
Mark Webster, Abe Jacob and Oscar Higgott
|
|
43
43
|
|
|
44
44
|
# Installation
|
|
45
|
-
To install the python library, use
|
|
45
|
+
To install the python library, use
|
|
46
|
+
|
|
47
|
+
pip install codedistance
|
|
48
|
+
|
|
49
|
+
If you wish to make changes to the source code or run the examples from the package, you can also download the codebase from the [github page](https://github.com/m-webster/codeDistancePYPI), create a virtual environment, navigate to the local copy of the codebase and run:
|
|
50
|
+
|
|
51
|
+
pip install -e .
|
|
46
52
|
|
|
47
53
|
Certain distance-finding algorithms require installation of external packages:
|
|
48
54
|
|
|
@@ -52,6 +58,8 @@ Certain distance-finding algorithms require installation of external packages:
|
|
|
52
58
|
4. CLISATDist: requies a SAT solver binary on the system path - by default this is cashwmaxsatcoreplus which runs only on Unix systems and is available from https://maxsat-evaluations.github.io/2023
|
|
53
59
|
5. qubitserfBZ and qubitserfMM: requires compiliation of the C library from https://github.com/qubitserfed/Qubitserf. By default, this results in an executable called "interface". This binary should be renamed qubitserf and be accessible on the system path
|
|
54
60
|
|
|
61
|
+
To compile on a Windows machine we recommend using Cygwin with the packages listed [here](https://www.codefull.net/2015/12/essential-cygwin-development-packages/).
|
|
62
|
+
|
|
55
63
|
|
|
56
64
|
# Main Distance-Finding Functions
|
|
57
65
|
The package finds distances of classical codes, CSS quantum codes, non-CSS quantum codes and quantum circuits.
|
|
@@ -136,7 +144,7 @@ As each dataset may have many codes/circuits, the recommended way to run these i
|
|
|
136
144
|
The distance-finding results for the data set are saved in a text file within the examples/results folder.
|
|
137
145
|
For example, to find distances of the non-CSS codetables dataset using the QDistEvol function, open a terminal window, navigate/change directory to the examples folder then run the following command via a terminal:
|
|
138
146
|
|
|
139
|
-
python3 runTest.py --dataset codeTables --datafile QECC_sample.txt --method QDistEvol
|
|
147
|
+
python3 runTest.py --dataset codeTables --datafile QECC_sample.txt --method QDistEvol
|
|
140
148
|
|
|
141
149
|
# Parameters for Distance-Finding Methods
|
|
142
150
|
Here we lay out the main parameter settings used for various distance-finding methods:
|
|
@@ -5,7 +5,13 @@ Distance algorithms for classical codes, quantum codes and quantum circuits
|
|
|
5
5
|
Mark Webster, Abe Jacob and Oscar Higgott
|
|
6
6
|
|
|
7
7
|
# Installation
|
|
8
|
-
To install the python library, use
|
|
8
|
+
To install the python library, use
|
|
9
|
+
|
|
10
|
+
pip install codedistance
|
|
11
|
+
|
|
12
|
+
If you wish to make changes to the source code or run the examples from the package, you can also download the codebase from the [github page](https://github.com/m-webster/codeDistancePYPI), create a virtual environment, navigate to the local copy of the codebase and run:
|
|
13
|
+
|
|
14
|
+
pip install -e .
|
|
9
15
|
|
|
10
16
|
Certain distance-finding algorithms require installation of external packages:
|
|
11
17
|
|
|
@@ -15,6 +21,8 @@ Certain distance-finding algorithms require installation of external packages:
|
|
|
15
21
|
4. CLISATDist: requies a SAT solver binary on the system path - by default this is cashwmaxsatcoreplus which runs only on Unix systems and is available from https://maxsat-evaluations.github.io/2023
|
|
16
22
|
5. qubitserfBZ and qubitserfMM: requires compiliation of the C library from https://github.com/qubitserfed/Qubitserf. By default, this results in an executable called "interface". This binary should be renamed qubitserf and be accessible on the system path
|
|
17
23
|
|
|
24
|
+
To compile on a Windows machine we recommend using Cygwin with the packages listed [here](https://www.codefull.net/2015/12/essential-cygwin-development-packages/).
|
|
25
|
+
|
|
18
26
|
|
|
19
27
|
# Main Distance-Finding Functions
|
|
20
28
|
The package finds distances of classical codes, CSS quantum codes, non-CSS quantum codes and quantum circuits.
|
|
@@ -99,7 +107,7 @@ As each dataset may have many codes/circuits, the recommended way to run these i
|
|
|
99
107
|
The distance-finding results for the data set are saved in a text file within the examples/results folder.
|
|
100
108
|
For example, to find distances of the non-CSS codetables dataset using the QDistEvol function, open a terminal window, navigate/change directory to the examples folder then run the following command via a terminal:
|
|
101
109
|
|
|
102
|
-
python3 runTest.py --dataset codeTables --datafile QECC_sample.txt --method QDistEvol
|
|
110
|
+
python3 runTest.py --dataset codeTables --datafile QECC_sample.txt --method QDistEvol
|
|
103
111
|
|
|
104
112
|
# Parameters for Distance-Finding Methods
|
|
105
113
|
Here we lay out the main parameter settings used for various distance-finding methods:
|
|
Binary file
|
codedistance-0.0.4/codedistance/distance.py → codedistance-0.0.5/codedistance/distance-old.py
RENAMED
|
@@ -34,7 +34,6 @@ def codeDistance(H,L=None,tB=1,method='QDistRndMW',params={},seed=None):
|
|
|
34
34
|
L = Z2Mat(L)
|
|
35
35
|
r,n = H.shape
|
|
36
36
|
res = {'n':n//tB,'k':0,'d': 0, 'L': Z2MatZeros(n), 'progress': '', 'R': 1,'T': 1}
|
|
37
|
-
params['method'] = method
|
|
38
37
|
wDict = None
|
|
39
38
|
if method in {'magmaMinWeight', 'magmaMinWord','magmaWEDist'}:
|
|
40
39
|
res['d'],res['L'],res['progress'] = magmaDist(H,L,tB,params)
|