Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

WestQuant QCSC Optimizer

Use the QPU only where the QPU is actually needed.

An open-source, software-agnostic analyzer and optimizer for hybrid quantum-classical projects. The system inspects a user's quantum codebase and answers:

Which planned quantum operations actually need QPU hardware?

Core distinction

Existing hybrid quantum systems often solve: Where should task T execute?

WestQuant solves the deeper problem: Should task T require a QPU at all?

This is Semantic QPU Minimization.

V0.1 — Advisory Only

V0.1 performs static analysis + cost estimation + recommendations. It does NOT:

  • modify user code
  • execute user code
  • submit jobs to hardware
  • automatically rewrite experiments

Quick Start

# Install
pip install -e .

# Audit a project
westquant audit ./my_quantum_project

# Specify output directory
westquant audit ./my_quantum_project -o ./reports

Output

westquant_report.html    # Full HTML report
westquant_report.md      # Markdown report
westquant_plan.json      # Machine-readable plan (SAFE/BALANCED/AGGRESSIVE)
westquant_workflow.json  # WQFlow IR graph

What It Detects

ID Transformation Guarantee Description
T01 Redundant Measurement Bases EXACT Observables obtainable from same basis
T02 Measurement Reuse EXACT Observables recoverable from existing samples
T03 Commuting Measurement Grouping EXACT Group compatible Pauli observables
T04 Shot Reduction Opportunity APPROXIMATE Detect high shot budgets, propose ablation
T05 Adaptive Shot Allocation APPROXIMATE Variable shot budgets by optimization stage
T06 Simulator Pretraining APPROXIMATE Pretrain variational parameters on simulator
T07 Parameter Transfer APPROXIMATE Transfer params between structurally similar instances
T08 Repeated-Circuit Caching EXACT Cache identical circuit+parameter submissions
T09 Graph/Problem Preprocessing EXACT Classical graph reduction (components, symmetry)
T10 Workload Packing EXPERIMENTAL Pack independent circuits on larger QPU
T11 Candidate Pruning APPROXIMATE Surrogate filtering for large parameter sweeps
T12 Circuit Cutting Candidate EXACT Identify cuttable interaction graphs
T13 CPU/GPU Simulator Routing EXACT Recommend best simulator class
T14 Circuit Architecture Reduction EXACT Remove mathematically redundant gates
T15 Quantum/Classical Decomposition EQUIVALENT Split quantum sampling from classical post-processing

Three Plans

  • SAFE: Only EXACT transformations. Mathematical result preserved.
  • BALANCED: EXACT + EQUIVALENT + low-risk APPROXIMATE. Requires tolerance ε.
  • AGGRESSIVE: All transformations including EXPERIMENTAL. Always shows uncertainty.

Architecture

qcsc/
├── flow_ir/              # WQFlow IR — directed graph of hybrid workflows
├── resource_model/       # QPU backend + local compute capabilities
├── transformation_registry/  # 15 QPU-saving transformations (T01-T15)
├── analyzer/             # Framework-specific source analysis (Qiskit first)
├── detectors/            # Detectors that produce recommendations
├── planner/              # Pareto planner (SAFE/BALANCED/AGGRESSIVE)
├── reporting/            # HTML + Markdown + JSON report generation
├── benchmark/            # Benchmark projects with known opportunities
├── experiments/          # Validation experiment protocols
├── rfc/                  # RFC specifications
└── tests/                # Test suite

Design Philosophy

WestQuant asks three questions in order:

  1. Does this operation need to happen?
  2. Does it need to be quantum?
  3. Only then: which resource should execute it?

That ordering is the defining idea of the project.

License

MIT

Release files for westquant-qcsc 0.1.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for westquant-qcsc 0.1.0a1
File Size Uploaded
westquant_qcsc-0.1.0a1.tar.gz 49.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for westquant-qcsc 0.1.0a1
File Interpreter ABI Platform
westquant_qcsc-0.1.0a1-py3-none-any.whl Python 3 none any Details

Total release size: 111.0 kB

Release files / westquant_qcsc-0.1.0a1.tar.gz

Download URL westquant_qcsc-0.1.0a1.tar.gz
Size 49.7 kB
Tags Source
SHA-256 checksum
How to use checksums
09a269a7c132b682c5ef32f0076935e79c41f79adc875051fba8ec8a27011f62
BLAKE2b-256 checksum
How to use checksums
0c51f5819303a96555a188a14f784bca018b80024f0c43294cc1d7dce6f9de5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Release files / westquant_qcsc-0.1.0a1-py3-none-any.whl

Download URL westquant_qcsc-0.1.0a1-py3-none-any.whl
Size 61.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef21f6c96bbe1281c0acbec530fd589a66f4a6ec9c9d85fbddc0432a9b41a041
BLAKE2b-256 checksum
How to use checksums
e0f305fdb958d1bd2ec8ee9e71ac2d2810ff7d615bd0125bc50f5ddd4ca3c8df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Release history Release notifications | RSS feed

0.1.0

2 release files

This release

0.1.0a1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page