GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — PureMagic/data_processing at main · BQSKit/PureMagic

Expand file tree

/

data_processing

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

data_processing

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
.gitignore
.gitignore
 
 
README.md
README.md
 
 
analyze_wisq.py
analyze_wisq.py
 
 
check_schedule.py
check_schedule.py
 
 
circuit_table.py
circuit_table.py
 
 
compile_cliffordt.py
compile_cliffordt.py
 
 
convert_lss_to_qasm.py
convert_lss_to_qasm.py
 
 
convert_lss_to_trans.py
convert_lss_to_trans.py
 
 
cultivation_model.py
cultivation_model.py
 
 
cultivation_params.py
cultivation_params.py
 
 
dascot_qubit_count.py
dascot_qubit_count.py
 
 
derive_cultivation_floor.py
derive_cultivation_floor.py
 
 
extract_survival_curve.py
extract_survival_curve.py
 
 
flasq_lower_bound.py
flasq_lower_bound.py
 
 
generate_rnd_layout.py
generate_rnd_layout.py
 
 
lss_common.py
lss_common.py
 
 
mcmc_cultivation.py
mcmc_cultivation.py
 
 
paper_style.py
paper_style.py
 
 
parallel_cultivation.py
parallel_cultivation.py
 
 
parallel_cultivation_timesteps.py
parallel_cultivation_timesteps.py
 
 
plot_all.sh
plot_all.sh
 
 
plot_ancilla_ratio.py
plot_ancilla_ratio.py
 
 
plot_cultivation_cdf.py
plot_cultivation_cdf.py
 
 
plot_cultivation_dist.py
plot_cultivation_dist.py
 
 
plot_cultivation_floor.py
plot_cultivation_floor.py
 
 
plot_puremagic.py
plot_puremagic.py
 
 
plot_volume_vs_layers.py
plot_volume_vs_layers.py
 
 
puremagic_log.py
puremagic_log.py
 
 
remove_y_gates.py
remove_y_gates.py
 
 
scheduling_table.py
scheduling_table.py
 
 
simulate_cultivation_acceptance.py
simulate_cultivation_acceptance.py
 
 
table_common.py
table_common.py
 
 
tableau_replay.py
tableau_replay.py
 
 
tableau_replay_test.py
tableau_replay_test.py
 
 

README.md

Outline

Data processing

Python scripts for generating, converting, and analyzing the circuits and results used around the Rust puremagic/transpile/compile_cliffordt pipeline. Everything here is a standalone script (run with -h/--help for its options); shared logic lives in the *_common.py modules they import. Generated *.png/*.out files in this directory are gitignored, not tracked.

Clifford+T compilation baseline

  • compile_cliffordt.py -- Compiles an arbitrary OpenQASM circuit to the Clifford+T gate set via Qiskit or bqskit (--backend). Deliberately naive (no exact-rewrite optimization), kept as a baseline to compare against the Rust compile_cliffordt binary described in the top-level README.

Circuit generation and conversion

  • generate_rnd_layout.py -- Generates random sequences of Pauli products directly in .trans format, for scheduler testing without a full compile pipeline.
  • convert_lss_to_qasm.py / convert_lss_to_trans.py -- Convert the verbose "LSS" rotation/measurement format (e.g. from data/lssp-data-silva-et-al/) to OpenQASM 2 or directly to .trans. Shared parsing lives in lss_common.py.
  • remove_y_gates.py -- Rewrites y gates out of a Clifford+T circuit, needed because wisq's GUOQ optimizer backend can't process them.

Analysis and cost models

  • flasq_lower_bound.py -- Computes the FLASQ conservative and optimistic spacetime-volume estimates (Huggins et al., arXiv:2511.08508) for a Clifford+T circuit in OpenQASM 2 format. The cultivation volume per T state comes from cultivation_model.py: FLASQ's own definition by default, or a whole patch for the mean cultivation time with --whole-patch.
  • dascot_qubit_count.py -- Computes the total logical qubits required by the DASCOT Square Sparse and Compact architectures for a given number of data qubits.
  • mcmc_cultivation.py -- MCMC simulation of the magic-state cultivation time distribution (survival fractions from Gidney et al.).
  • analyze_wisq.py -- Counts steps and IDs (total and per-step average) in wisq JSON output.

Plotting and tables

  • plot_puremagic.py -- The unified puremagic results plotter; reads puremagic stdout logs and plots scheduling metrics (efficiency, volume, lcycles, ...) against a chosen x-axis. plot_all.sh drives it across the standard set of comparison plots.
  • plot_cultivation_dist.py -- Plots cultivation-time distributions from one or more directories' *.cultivation_dist files.
  • plot_volume_vs_layers.py -- Plots scheduled volume vs. pre-scheduling DAG layer count across a max-weight sweep (out-pm-trans0..out-pm-transN), one point per (circuit, weight).
  • circuit_table.py -- Generates a LaTeX table of circuit statistics from QASM files.
  • scheduling_table.py -- Generates a LaTeX table comparing two scheduling results.
  • table_common.py -- Shared LaTeX table helpers for circuit_table.py/scheduling_table.py.
  • puremagic_log.py -- Regex patterns shared by the scripts that parse puremagic stdout (plot_puremagic.py, scheduling_table.py, circuit_table.py).
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.