{
  "artifact": "Topology-aware circuit cost calculator",
  "chapter": "Circuit Cost: Depth, Width, Gate Set, Connectivity",
  "chapter_url": "https://www.steven-geller.com/playground/quantum/book/22-circuit-cost-depth-width-gate-set-connectivity/",
  "date_modified": "2026-08-14",
  "dependencies": [],
  "expected_exit_code": 0,
  "expected_stdout": "PASS: 22 topology calculator routes 3 circuits with total SWAPs=8, native two-qubit counts=[10, 18, 2], depths=[(1, 10), (2, 16), (1, 1)], success=[0.9802, 0.9137, 0.9801]\n",
  "fixture_sha256": "2076dcc35b107d363fabe482830d3f48cfaee23f94490d85af49cb46f65c93a2",
  "manifest_test_command": "cd labs && python -m unittest tests.test_companion_models.CompanionModelTests.test_line_router_exposes_swap_cost_and_layout -v",
  "pass_condition": "Tests legal connectivity, dependency depth, swap insertion, native decomposition counts, and a first-order success estimate with declared assumptions.",
  "python_requires": ">=3.11",
  "run_command": "python3 fixture.py",
  "schema_version": "1.1.0",
  "test_method": "Run the isolated fixture; require exit code 0 and exact stdout."
}
