Skip to content

C2-Q/BARC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BARC

Overview

This repository accompanies the paper:

When T-Depth Misleads: Predicting Fault-Tolerant Quantum Execution Slowdown under Magic-State Delivery Constraints

This paper has been submitted to QCE 2026.

The artifact studies how circuit dependency structure interacts with a fixed delivery rate C and a fixed buffer capacity B, and packages the paper-facing figures and tables used by the manuscript.

Problem

Fault-tolerant quantum compilers often optimize for static T-depth, but bounded magic-state delivery changes what actually runs fast. A schedule can look shallow on paper and still execute poorly if it creates bursts of T-gate demand that exceed delivery capacity and force protected waiting.

Contribution

This artifact evaluates that mismatch using one structural indicator, slack_ratio, and one schedule-level indicator, delta_max. It shows when T-depth becomes misleading, validates a fixed-schedule lower bound on executable makespan, and packages the paper-facing figures and tables behind those claims.

Key Figure

The figure below illustrates the core problem. The blue curve is cumulative T-state demand from a compiled schedule, while the dashed line is the cumulative supply envelope under delivery rate C and buffer B. When demand rises above supply, backlog accumulates. That backlog delays execution even if the original static schedule is short. The peak gap, delta_max, is the main schedule-level indicator used in the paper.

Delta max illustration

Paper figure files: delta_max_illustration.png, delta_max_illustration.pdf

The main outputs of the artifact are:

  • a structural metric based on T-node slack
  • a system-level metric delta_max
  • a fixed-schedule lower bound on executable makespan

The repository is organized around four layers:

  • model: dependency DAGs and demand traces
  • scheduling: static schedule construction
  • simulation: bounded-delivery execution
  • analysis: predictive evaluation and figure generation

Key Concepts

  • slack_ratio: fraction of T nodes with positive slack in the dependency DAG
  • mean_t_slack: mean slack over T nodes
  • delta_max: peak prefix deficit between cumulative T demand and cumulative delivery capacity
  • slowdown_ratio: T_exe / T_static

For a fixed valid schedule with static depth T_static, delivery capacity C, buffer B, and prefix deficit delta_max, the artifact evaluates the lower bound

T_static + ceil(max(0, delta_max - B) / C)

against the simulated executed makespan T_exe.

Reproducibility

Install dependencies:

Dependency file: barc_stage1/requirements.txt

python -m pip install -r barc_stage1/requirements.txt

Run the full paper pipeline from the artifact root:

cd barc_stage1
python scripts/run_qce_paper.py

Run the test suite:

cd barc_stage1
python -m unittest discover -s tests -p 'test_*.py'

Prepare a clean manuscript bundle containing the final PDF figures and key tables referenced by the paper:

Bundle script: barc_stage1/scripts/prepare_submission_bundle.py

python barc_stage1/scripts/prepare_submission_bundle.py

Optional appendix robustness assets can be regenerated with:

cd barc_stage1
python scripts/run_stochastic_supply_sensitivity.py
python scripts/run_routing_proxy_sensitivity.py
python scripts/build_appendix_robustness_figure.py

The main pipeline generates:

Submission Assets

The manuscript-facing files are split into two groups:

Running python barc_stage1/scripts/prepare_submission_bundle.py creates submission_bundle/ at the repository root with:

  • figures/ laid out to match the LaTeX \includegraphics{figures/...} paths
  • tables/ containing the main CSV/TXT assets needed to audit manuscript claims
  • MANIFEST.md summarizing every copied file

Manuscript Figure Map

These are the figure PDFs directly referenced by the current paper draft.

Manuscript Table Map

These files are the primary quantitative sources for the current draft.

Main Results

The primary figures for the paper are:

The primary tables are:

The real-trace grounding remains available under src/real_trace/ and outputs/real_trace/. In the paper narrative, these traces serve as grounding examples rather than as the main source of method comparison.

Scope and Limitations

The artifact uses:

  • deterministic delivery capacity
  • deterministic buffer capacity
  • dependency-aware synthetic DAG families
  • fixed schedule policies

The main deterministic paper pipeline does not include:

  • routing or layout effects
  • stochastic delivery
  • noise, decoding, or full physical simulation
  • optimal scheduling over all valid schedules

Separate appendix robustness scripts provide first-order sensitivity checks for stochastic supply and route-induced effective-capacity proxies. The lower bound remains a fixed-schedule deterministic result. It does not characterize optimal scheduling across all valid schedules and it does not minimize delta_max over the full schedule space.

The repository also contains a preliminary quota-respecting scheduling probe. This probe is included only as appendix support for the current manuscript and should not be interpreted as a full compiler evaluation.

Repository Layout

The source tree keeps the paper pipeline compact:

Appendix Outputs

Non-primary outputs are written to outputs/appendix/. This includes:

  • policy comparison artifacts
  • QTV tradeoff artifacts
  • family-level gain boxplots

These files are retained for completeness, but they are not part of the main paper narrative.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages