text stringlengths 0 1.9k |
|---|
============================= test session starts ============================== |
platform linux -- Python 3.12.13, pytest-8.4.1, pluggy-1.6.0 -- /usr/local/bin/python3 |
rootdir: /app |
configfile: ../dev/null |
plugins: json-ctrf-0.3.5 |
collecting ... collected 13 items |
::test_results_present_and_complete PASSED [ 7%] |
::test_frozen_inputs_untampered PASSED [ 15%] |
::test_series_bright_and_dark_rates_match_truth PASSED [ 23%] |
::test_series_spin_flip_probability_matches_truth PASSED [ 30%] |
::test_series_populations_match_truth PASSED [ 38%] |
::test_series_threshold_and_full_window_fidelity_match_reference PASSED [ 46%] |
::test_series_fidelity_curve_matches_reference PASSED [ 53%] |
::test_series_optimal_integration_time_is_near_optimal PASSED [ 61%] |
::test_series_internal_consistency PASSED [ 69%] |
::test_physics_invariants FAILED [ 76%] |
::test_independent_mle_recovers_injected_truth_from_frozen_data PASSED [ 84%] |
::test_real_anchor_two_poisson_recovery PASSED [ 92%] |
::test_no_leaked_reference_artifacts PASSED [100%] |
=================================== FAILURES =================================== |
___________________________ test_physics_invariants ____________________________ |
def test_physics_invariants(): |
_data, by_file = load_results() |
for name in SERIES: |
rec = by_file[name] |
lb, ld = float(rec["lam_bright_full"]), float(rec["lam_dark_full"]) |
fp, pb = float(rec["spin_flip_prob_full"]), float(rec["p_bright"]) |
assert lb > ld > 0.0, f"{name}: require bright rate > dark rate > 0" |
assert 0.0 <= fp <= 1.0, f"{name}: spin-flip probability out of [0,1]" |
assert 0.0 <= pb <= 1.0, f"{name}: population out of [0,1]" |
thr = int(rec["threshold_full"]) |
assert ld < thr < lb, f"{name}: threshold {thr} must lie between the dark and bright means" |
curve = [float(x) for x in rec["fidelity_curve"]] |
> assert float(rec["fidelity_optimal"]) >= float(rec["fidelity_full"]) - 1e-6, ( |
f"{name}: optimal-time fidelity must be >= full-window fidelity") |
E AssertionError: readout_series_01.h5: optimal-time fidelity must be >= full-window fidelity |
E assert 0.9982634991506346 >= (0.9987837385583842 - 1e-06) |
E + where 0.9982634991506346 = float(0.9982634991506346) |
E + and 0.9987837385583842 = float(0.9987837385583842) |
/verifier/test_outputs.py:334: AssertionError |
==================================== PASSES ==================================== |
=========================== short test summary info ============================ |
PASSED ::test_results_present_and_complete |
PASSED ::test_frozen_inputs_untampered |
PASSED ::test_series_bright_and_dark_rates_match_truth |
PASSED ::test_series_spin_flip_probability_matches_truth |
PASSED ::test_series_populations_match_truth |
PASSED ::test_series_threshold_and_full_window_fidelity_match_reference |
PASSED ::test_series_fidelity_curve_matches_reference |
PASSED ::test_series_optimal_integration_time_is_near_optimal |
PASSED ::test_series_internal_consistency |
PASSED ::test_independent_mle_recovers_injected_truth_from_frozen_data |
PASSED ::test_real_anchor_two_poisson_recovery |
PASSED ::test_no_leaked_reference_artifacts |
FAILED ::test_physics_invariants - AssertionError: readout_series_01.h5: opti... |
=================== 1 failed, 12 passed in 70.11s (0:01:10) ==================== |
============================= test session starts ============================== |
platform linux -- Python 3.12.13, pytest-8.4.1, pluggy-1.6.0 -- /usr/local/bin/python3 |
rootdir: /app |
configfile: ../dev/null |
plugins: json-ctrf-0.3.5 |
collecting ... collected 13 items |
::test_results_present_and_complete PASSED [ 7%] |
::test_frozen_inputs_untampered PASSED [ 15%] |
::test_series_bright_and_dark_rates_match_truth PASSED [ 23%] |
::test_series_spin_flip_probability_matches_truth PASSED [ 30%] |
::test_series_populations_match_truth PASSED [ 38%] |
::test_series_threshold_and_full_window_fidelity_match_reference PASSED [ 46%] |
::test_series_fidelity_curve_matches_reference PASSED [ 53%] |
::test_series_optimal_integration_time_is_near_optimal PASSED [ 61%] |
::test_series_internal_consistency PASSED [ 69%] |
::test_physics_invariants PASSED [ 76%] |
::test_independent_mle_recovers_injected_truth_from_frozen_data PASSED [ 84%] |
::test_real_anchor_two_poisson_recovery PASSED [ 92%] |
::test_no_leaked_reference_artifacts PASSED [100%] |
==================================== PASSES ==================================== |
=========================== short test summary info ============================ |
PASSED ::test_results_present_and_complete |
PASSED ::test_frozen_inputs_untampered |
PASSED ::test_series_bright_and_dark_rates_match_truth |
PASSED ::test_series_spin_flip_probability_matches_truth |
PASSED ::test_series_populations_match_truth |
PASSED ::test_series_threshold_and_full_window_fidelity_match_reference |
PASSED ::test_series_fidelity_curve_matches_reference |
PASSED ::test_series_optimal_integration_time_is_near_optimal |
PASSED ::test_series_internal_consistency |
PASSED ::test_physics_invariants |
PASSED ::test_independent_mle_recovers_injected_truth_from_frozen_data |
PASSED ::test_real_anchor_two_poisson_recovery |
PASSED ::test_no_leaked_reference_artifacts |
======================== 13 passed in 73.15s (0:01:13) ========================= |
============================= test session starts ============================== |
platform linux -- Python 3.12.13, pytest-8.4.1, pluggy-1.6.0 -- /usr/local/bin/python3 |
rootdir: /app |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 63