Skip to main content

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

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qig_warp-0.4.3.tar.gz (60.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qig_warp-0.4.3-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

Details for the file qig_warp-0.4.3.tar.gz.

File metadata

  • Download URL: qig_warp-0.4.3.tar.gz
  • Upload date:
  • Size: 60.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.10","id":"questing","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for qig_warp-0.4.3.tar.gz
Algorithm Hash digest
SHA256 7b3bba0713843a8650e8dcd5c9cb6db0ec9f6b0ff7a17ce8dc70df82a519f742
MD5 a3600c5a3332bba0ce9794738e9e6b85
BLAKE2b-256 db8fe8c07c8fdc161e753905b056043077ae67c3dbb377da38e2e24dc97c8ab2

See more details on using hashes here.

File details

Details for the file qig_warp-0.4.3-py3-none-any.whl.

File metadata

  • Download URL: qig_warp-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 27.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.10","id":"questing","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for qig_warp-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1a845dfa0c02e23ffc0cac07d7e0e4f9a1447dd98fd195f6a8d45079000c88fd
MD5 ddd56e4879be1a993f620fe2664dc845
BLAKE2b-256 43e479984da7bb9be0e7465ae7165535d9dbbf2eacf53b236b6146851f981189

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page