Skip to main content

qig-warp

Physics-based navigation for expensive computation — screening, cost prediction, convergence stopping.

Any expensive computation has three questions: What can I skip? What will it cost? When should I stop? qig-warp answers all three from a small pilot, before the main computation runs.

The problem

You have an expensive function to evaluate across many parameters. Running everything takes hours. But most of the computation doesn't contribute to your answer — perturbations decay exponentially, cost scales predictably, and estimates converge long before you finish.

The solution

from qig_warp import WarpBubble

# Self-calibrating: discovers structure from 5 pilot probes
bubble = WarpBubble.auto()
result = bubble.navigate(fn=my_expensive_function, params=param_list, budget_s=3600)

# Result: computed 12/20 params in 30 min instead of 60 min
# Skipped the expensive ones that wouldn't change the answer
# Predicted values for skipped sites from decay profile

Three operations

Operation Question How it works
Screening What can I skip? Perturbation response decays exponentially. Sites beyond the decay length don't matter.
Bridge What will it cost? Cost scales as a power law with the control parameter. Knowing the exponent predicts runtime.
Convergence When should I stop? Successive estimates converge exponentially. The decay rate tells you when more computation is waste.

Four modes

bubble = WarpBubble.auto()                      # discovers constants from pilot probes
bubble = WarpBubble.qig_regime(h=3.0, J=1.0)    # regime-aware (physics calibrated)
bubble = WarpBubble.qig_frozen()                 # single calibration (v0.3 compatible)
bubble = WarpBubble.general(screening_length=0.5, bridge_exponent=0.8)  # user-specified

Use cases

Molecular simulation: Interatomic potentials decay with distance (screening). System-size cost scales as N² or N·log(N) (bridge). Energy minimization converges (convergence).

Drug discovery: Binding sites are local — only nearby residues matter (screening). Conformational search cost scales with flexibility (bridge). Docking scores stabilize (convergence).

ML hyperparameter search: Learning rate perturbations have limited range (screening). Training cost scales with model/data size (bridge). Loss curves flatten (convergence).

Climate ensemble forecasting: Weather patterns have finite spatial correlation (screening). Resolution scaling is predictable (bridge). Ensemble convergence tells you when to stop adding members (convergence).

Materials science: Grain boundary physics concentrates at the interface (screening). Simulation cost scales with supercell size (bridge). Elastic constants converge (convergence).

Performance

Validated on quantum physics lattice experiments (L=3 through L=6):

  • Screening: 36% site reduction with <2.1% error
  • Cost prediction: matched actual runtime to R²=0.999
  • Bridge: predicted J-sweep cost within 5% across 7 coupling values

On a molecular dynamics benchmark:

  • Auto-discovery found cost exponent within 0.5% of truth from 5 probes
  • Budget-constrained: 12/15 evaluations, 29% time savings

Install

pip install qig-warp

Contact

Built by Braden Lang. For partnerships and research collaboration: braden.com.au

Security gate

security-scan runs on pull requests and development/main pushes. It uses Bandit 1.9.4 for common Python security hazards in all shipped src/ code, and pip-audit 2.10.1 for known vulnerabilities in the complete installed dependency set, including runtime, development, optional QIG and scanner dependencies. CI records and upgrades the runner packaging tools before scanning (setuptools 84.0.0, wheel 0.48.0); those tools remain in the audited dependency inventory. Failure summaries name the package, version, advisory IDs and fixed versions without dumping advisory descriptions. Only the local unpublished qig-warp root is omitted from the advisory lookup; its source is scanned. No Bandit finding severities are excluded, and nosec annotations cannot bypass the gate.

Both tools must first detect deliberately unsafe fixtures: dynamic evaluation and an old vulnerable Requests version. These fixtures live only in a temporary directory, are never executed or installed, and are removed automatically. Missing reports, scanner failures, unauditable dependencies and unavailable advisory services fail the check. Returned file metrics must cover every enumerated source Python file; returned dependency names and versions must exactly match the installed dependency inventory. Bandit failure output excludes source snippets and issue text that could contain credentials. Run locally after installing the same extras and pinned scanners: python scripts/security_gate.py.

This replaces unavailable hosted CodeQL scanning for this private repository with an actual check named security-scan. It does not claim CodeQL equivalence: Bandit is a Python AST pattern scanner, without CodeQL's interprocedural data-flow analysis. Dependency checks cover known advisories, not unknown defects, malicious-package detection or every possible dependency resolution. Tests, code review and required branch checks remain necessary; this gate provides no blanket claim that code is safe.

Scanner references: Bandit and pip-audit. Failed black-box evaluations now log their exception class without revealing user parameters or exception text. Existing numerical fallbacks and results are preserved.

Release files for qig-warp 0.6.10

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

Source distribution (sdist)

Source distribution for qig-warp 0.6.10
File Size Uploaded
qig_warp-0.6.10.tar.gz 120.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qig-warp 0.6.10
File Interpreter ABI Platform
qig_warp-0.6.10-py3-none-any.whl Python 3 none any Details

Total release size: 185.0 kB

Release files / qig_warp-0.6.10.tar.gz

Download URL qig_warp-0.6.10.tar.gz
Size 120.2 kB
Tags Source
SHA-256 checksum
How to use checksums
572cfb3c2bcd541d76045f37cc245a8c86fd62ceac6e4d28a3ad8e3a628eba81
BLAKE2b-256 checksum
How to use checksums
4b8a2be799962d7eb14ddc6f2baea3e18ca9813b0670a2efb310ef786e7c586d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.

Transparency log

Release files / qig_warp-0.6.10-py3-none-any.whl

Download URL qig_warp-0.6.10-py3-none-any.whl
Size 64.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98c6cb7c88a28f961176bca106d6f0d542ab01f089207ac0c7d69f2761812bff
BLAKE2b-256 checksum
How to use checksums
85c1e90e1184e86a4723f799d99ba447828031de6ee00c38ae2582c1aa9dd4c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.6.10 This release

2 release files

0.6.9

2 release files

0.6.8

2 release files

0.6.7

2 release files

0.6.6

2 release files

0.6.5

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.1.0

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