Skip to content

Doc tests for qec-guppy transversal-CNOT examples fail with a HUGR execution stall #427

Description

@ciaranra

Bug

Two generated doc tests for docs/user-guide/qec-guppy.md fail with a HUGR
execution stall:

RuntimeError: Simulation failed: HUGR execution stalled before completion; results
would be silently truncated (active CFGs: [Node(4), Node(302)]; active Calls:
[Node(81)]; starved deferred nodes: {Node(310)}; unexecuted ops in executed
containers (22 total): [... collections.borrow_arr.clone / borrow_arr.scan /
borrow_arr.to_array / tket.result.result_array_bool ...])

Affected tests: test_qec_guppy_block_9 and test_qec_guppy_block_10
(from docs/user-guide/qec-guppy.md around the transversal-CNOT examples).
Both blocks run sim(...) over make_css_transversal_cnot(...) with
state_vector().

Notes

  • The stall detector is working as designed — it fails loud rather than
    silently truncating results — so the defect is upstream of it, in execution of
    the borrow-array / result_array_bool op sequence inside a CFG.
  • Reproduced on the guppy-dem-idle-docs branch both before and after the
    doc-test generator change made there, so it is independent of that work; the
    failing blocks touch no API changed by PR Align idle-noise vocabulary across DEM, engines and neo, and emit the requested Pauli channel #420.
  • Needs a dev baseline run to confirm how long it has been failing and whether
    it is a regression against the borrow-array work that closed earlier.

Reproduce

uv run --frozen python scripts/docs/generate_doc_tests.py
uv run pytest python/quantum-pecos/tests/docs/generated/user_guide/test_qec_guppy.py -q

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpythonPull requests that update python codeseverity:highBroken functionality or loud failure in a supported path

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions