text stringlengths 0 284 |
|---|
============================= 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 7 items |
app::test_frozen_instance_untampered PASSED [ 14%] |
app::test_results_present_and_complete PASSED [ 28%] |
app::test_solver_is_a_real_general_implementation PASSED [ 42%] |
app::test_each_frozen_size_matches_independent_recompute PASSED [ 57%] |
app::test_full_eth_finite_size_trends PASSED [ 71%] |
app::test_held_out_solver_generalizes_to_complex_and_two_site_operators PASSED [ 85%] |
app::test_no_leaked_reference_artifacts PASSED [100%] |
==================================== PASSES ==================================== |
=========================== short test summary info ============================ |
PASSED app::test_frozen_instance_untampered |
PASSED app::test_results_present_and_complete |
PASSED app::test_solver_is_a_real_general_implementation |
PASSED app::test_each_frozen_size_matches_independent_recompute |
PASSED app::test_full_eth_finite_size_trends |
PASSED app::test_held_out_solver_generalizes_to_complex_and_two_site_operators |
PASSED app::test_no_leaked_reference_artifacts |
============================== 7 passed in 19.81s ============================== |
============================= 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 7 items |
::test_frozen_instance_untampered PASSED [ 14%] |
::test_results_present_and_complete PASSED [ 28%] |
::test_solver_is_a_real_general_implementation PASSED [ 42%] |
::test_each_frozen_size_matches_independent_recompute FAILED [ 57%] |
::test_full_eth_finite_size_trends PASSED [ 71%] |
::test_held_out_solver_generalizes_to_pauli_x FAILED [ 85%] |
::test_no_leaked_reference_artifacts PASSED [100%] |
=================================== FAILURES =================================== |
_____________ test_each_frozen_size_matches_independent_recompute ______________ |
def test_each_frozen_size_matches_independent_recompute(): |
LOGS.mkdir(parents=True, exist_ok=True) |
actual = load_results() |
summary = [] |
for entry in load_instance()["sizes"]: |
L = int(entry["L"]) |
expected = reference_for_entry(json.dumps(entry, sort_keys=True)) |
> grade_size(actual[L], expected, f"L={L}") |
/verifier/test_outputs.py:441: |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
/verifier/test_outputs.py:319: in grade_size |
check_complex_fields( |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
actual = {'factorization_error_abs': 0.018927833699359686, 'factorized_im': 0.0, 'factorized_re': 0.9185841404230073, 't': [0.6, 0.6], ...} |
expected = {'factorization_error_abs': 0.03420651606290099, 'factorized_im': -2.8520785410743558e-18, 'factorized_re': 0.1689438814358306, 't': [0.6, 0.6], ...} |
fields = ('value_re', 'value_im', 'factorized_re', 'factorized_im', 'factorization_error_abs') |
where = 'L=8 cactus (0.6, 0.6)', rel = 0.05, absolute = 0.0007 |
def check_complex_fields(actual, expected, fields, where, rel=0.04, absolute=5e-4): |
for field in fields: |
> assert close(actual[field], expected[field], rel, absolute), ( |
f"{where}: {field} {actual[field]} vs {expected[field]}" |
) |
E AssertionError: L=8 cactus (0.6, 0.6): value_re 0.8996563067236476 vs 0.13479447551271032 |
E assert False |
E + where False = close(0.8996563067236476, 0.13479447551271032, 0.05, 0.0007) |
/verifier/test_outputs.py:279: AssertionError |
_________________ test_held_out_solver_generalizes_to_pauli_x __________________ |
def test_held_out_solver_generalizes_to_pauli_x(): |
cfg = hidden_config() |
with tempfile.NamedTemporaryFile("w", suffix=".json", delete=False) as handle: |
json.dump(cfg, handle) |
config_path = handle.name |
proc = subprocess.run( |
[sys.executable, str(SOLVER), config_path], |
capture_output=True, |
text=True, |
timeout=1200, |
) |
assert proc.returncode == 0, proc.stderr[-1600:] |
payload = None |
for line in reversed(proc.stdout.splitlines()): |
if line.strip().startswith("{"): |
> payload = json.loads(line) |
^^^^^^^^^^^^^^^^ |
/verifier/test_outputs.py:538: |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
/usr/local/lib/python3.12/json/__init__.py:346: in loads |
return _default_decoder.decode(s) |
^^^^^^^^^^^^^^^^^^^^^^^^^^ |
/usr/local/lib/python3.12/json/decoder.py:338: in decode |
obj, end = self.raw_decode(s, idx=_w(s, 0).end()) |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 751