Skip to main content

Quantum-Inspired GPS Navigator: directional-diffusion GPU pathfinder using a 4-channel (N/E/S/W) amplitude metaphor. 100% classical.

Project description

Quantum-Inspired GPS Navigator

Tagline: Directional-diffusion GPU navigator; 4-channel (N/E/S/W) amplitude metaphor; 100% classical. No qubits, no superposition, no entanglement.

Disclaimer — does NOT use quantum computing. This project is a classical pathfinder on a 2D raster. The name "quantum-inspired" refers only to the 4-channel amplitude metaphor (N/E/S/W directional components with a wave-propagation flavour) used by the directional-diffusion update. There are no qubits, no superposition, no entanglement, and no dependency on any quantum-computing library (Qiskit, Cirq, PennyLane, etc.). The core math is the classical Eikonal equation |grad T| * v = 1, solved with either a GPU shader pass or a reference CPU fast-marching method.

PyPI License Python

Install

pip install quantum-gps-navigator             # core (NumPy + Pillow)
pip install "quantum-gps-navigator[gpu]"      # + moderngl, glfw
pip install "quantum-gps-navigator[osm]"      # + osmnx
pip install "quantum-gps-navigator[dev]"      # + pytest, build, twine

CLI

qgps info                                     # show version + backend availability
qgps demo --seed 0                            # 64x64 synthetic demo, ASCII route
qgps plan --speed grid.npy --sx 1 --sy 1 \
           --tx 100 --ty 100 --out route.npy  # offline planner on a .npy speed grid
qgps --help

Python API

import numpy as np
from qgps import plan_path

speed = np.ones((128, 128), dtype=np.float32)
route = plan_path(speed, source=(4, 4), target=(120, 120))
print(len(route.path), route.total_time)

How it works

  1. Eikonal arrival-time field. Given a local-speed raster v(x, y) and a source cell, we solve |grad T| * v = 1 for the scalar field T(x, y) = minimum travel time from the source.
  2. Solvers:
    • src/qgps/reference_eikonal.py - classical Sethian fast-marching on a binary heap (pure NumPy, CPU, no GPU required).
    • src/qgps/gpu_eikonal_solver.py (optional [gpu] extra) - a directional-diffusion GPU pass using a 4-channel (N/E/S/W) amplitude raster. The channel metaphor is wave-inspired; the update is a plain upwind operator.
  3. Path extraction. Steepest descent on T from target to source, then reversed.
    source o----->----->----->----->-----o target
             Eikonal T(x,y) field solved in O(N log N) (FMM)
             or O(N) GPU sweeps (directional diffusion)

Graceful fallback

If moderngl / glfw / osmnx are unavailable at import time, the library falls back to the pure-NumPy reference solver and logs a clear message. qgps info prints exactly which optional backends are available.

Tests

pip install -e .[dev]
pytest -v

The test suite runs entirely on CPU. Coverage includes the fast-marching solver against the analytic point-source solution on a 128x128 grid (relative error < 5%), the high-level planner (monotonicity, detours, path length), the HTTP tile cache (stdlib http.server mock), and the CLI.

Layout

src/qgps/
    __init__.py
    reference_eikonal.py   # CPU fast-marching (validation oracle)
    navigator.py           # plan_path, Route
    tile_manager.py        # HTTP tile cache (stdlib urllib)
    cli.py                 # qgps plan / demo / info
tests/
    test_eikonal_correctness.py
    test_navigator.py
    test_tile_manager.py
    test_cli.py

License

Apache-2.0 (c) 2026 Francisco Angulo de Lafuente.

Citation

Angulo de Lafuente, F. (2026). Quantum-Inspired GPS Navigator (v1.0.0).
https://github.com/Agnuxo1/Quantum-GPS-Unified-Navigation-System

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

quantum_gps_navigator-1.0.0.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

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

quantum_gps_navigator-1.0.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file quantum_gps_navigator-1.0.0.tar.gz.

File metadata

  • Download URL: quantum_gps_navigator-1.0.0.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for quantum_gps_navigator-1.0.0.tar.gz
Algorithm Hash digest
SHA256 445b5ba469da56259c0a0d91eb8052cee58fa65f54fa2c561690f392678496b2
MD5 798697f8e37407e1562ff72a5746198c
BLAKE2b-256 a39089c4a4764d989d6346637cac38619c36b63aec5b285593434d53fe4ccf91

See more details on using hashes here.

File details

Details for the file quantum_gps_navigator-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for quantum_gps_navigator-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f9f72f8e3f84705ab274fcaeca24870a361e6efa37c9bb322d7f5596e9ad0cde
MD5 f333e00b3597b73a947a23017b45cb00
BLAKE2b-256 631aa68f339c06a04934033f6afd1883b889b8f16b2f3c41e57b5d48d2357563

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