|
Dist m4ri 0.0.1.alpha
Computing distance of a classical or quantum CSS code
|
Variables | |
| EXAMPLES_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "examples")) | |
Unit tests for dist_m4ri.py Python wrapper.
| test_dist_m4ri.test_caching | ( | ) |
Definition at line 117 of file test_dist_m4ri.py.
References dist_m4ri.clear_distance_cache(), dist_m4ri.compute_classical_distance(), and dist_m4ri.enable_distance_cache().
| test_dist_m4ri.test_caching_cumulative_rw_steps | ( | ) |
Definition at line 186 of file test_dist_m4ri.py.
References dist_m4ri.clear_distance_cache(), dist_m4ri.compute_classical_distance(), dist_m4ri.enable_distance_cache(), and dist_m4ri.get_cached_distance().
| test_dist_m4ri.test_check_finc_outc | ( | ) |
Definition at line 384 of file test_dist_m4ri.py.
References dist_m4ri.check_finc_outc().
| test_dist_m4ri.test_classical_distance_file | ( | ) |
Definition at line 25 of file test_dist_m4ri.py.
References dist_m4ri.compute_classical_distance().
| test_dist_m4ri.test_classical_distance_numpy | ( | ) |
Definition at line 31 of file test_dist_m4ri.py.
References dist_m4ri.compute_classical_distance().
| test_dist_m4ri.test_cli_argument_parsing | ( | ) |
Definition at line 294 of file test_dist_m4ri.py.
References dist_m4ri.parse_cli_args().
| test_dist_m4ri.test_cli_css_dx_dz_bounds | ( | capsys | ) |
Definition at line 355 of file test_dist_m4ri.py.
References dist_m4ri.main().
| test_dist_m4ri.test_cli_identical_finc_outc_nonexistent | ( | capsys | ) |
Definition at line 413 of file test_dist_m4ri.py.
References dist_m4ri.main().
| test_dist_m4ri.test_cli_verbose_mode | ( | capsys | ) |
Definition at line 369 of file test_dist_m4ri.py.
References dist_m4ri.main().
| test_dist_m4ri.test_codedistance_solver | ( | ) |
Definition at line 139 of file test_dist_m4ri.py.
| test_dist_m4ri.test_css_distance_files | ( | ) |
Definition at line 48 of file test_dist_m4ri.py.
References dist_m4ri.compute_css_distance().
| test_dist_m4ri.test_css_distance_sparse | ( | ) |
Definition at line 61 of file test_dist_m4ri.py.
References dist_m4ri.compute_css_distance().
| test_dist_m4ri.test_dem_distance_file | ( | ) |
Definition at line 80 of file test_dist_m4ri.py.
References dist_m4ri.compute_dem_distance().
| test_dist_m4ri.test_dem_distance_stim | ( | ) |
Definition at line 101 of file test_dist_m4ri.py.
References dist_m4ri.compute_dem_distance().
| test_dist_m4ri.test_dmin_dmax_parameters | ( | ) |
Definition at line 168 of file test_dist_m4ri.py.
References dist_m4ri.compute_classical_distance(), dist_m4ri.compute_dem_distance(), and dist_m4ri.run_dist_m4ri().
| test_dist_m4ri.test_explain_bounds | ( | ) |
Definition at line 337 of file test_dist_m4ri.py.
References dist_m4ri.explain_bounds().
| test_dist_m4ri.test_find_binary | ( | ) |
Definition at line 19 of file test_dist_m4ri.py.
References dist_m4ri.find_dist_m4ri_binary().
| test_dist_m4ri.test_format_bounds_list_and_str | ( | ) |
Definition at line 211 of file test_dist_m4ri.py.
References dist_m4ri.format_bounds_list(), and dist_m4ri.format_bounds_str().
| test_dist_m4ri.test_persistent_json_cache | ( | tmp_path | ) |
Definition at line 229 of file test_dist_m4ri.py.
References dist_m4ri.clear_distance_cache(), dist_m4ri.compute_classical_distance(), dist_m4ri.compute_css_distance(), dist_m4ri.compute_dem_distance(), and dist_m4ri.get_cached_distance().
| test_dist_m4ri.test_quantum_cache_separation | ( | ) |
Definition at line 315 of file test_dist_m4ri.py.
References dist_m4ri.clear_distance_cache(), dist_m4ri.compute_classical_distance(), dist_m4ri.compute_quantum_distance(), dist_m4ri.enable_distance_cache(), and dist_m4ri.get_distance_cache().
| test_dist_m4ri.test_quantum_distance_single_sided | ( | ) |
Definition at line 284 of file test_dist_m4ri.py.
References dist_m4ri.compute_quantum_distance().
| test_dist_m4ri.test_run_dist_m4ri_three_numbers | ( | ) |
Definition at line 149 of file test_dist_m4ri.py.
References dist_m4ri.run_dist_m4ri().
| test_dist_m4ri.EXAMPLES_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "examples")) |
Definition at line 16 of file test_dist_m4ri.py.