Skip to content

Rotorvec 0.1.0

Choose a tag to compare

@smarthi smarthi released this 05 May 22:29
· 20 commits to main since this release

First public release of rotorvec — a vector index using
block-diagonal Clifford-rotor quantization. Available now on both
crates.io and
PyPI.

Highlights

  • Three rotation variants behind one API:
    • Planar2 — 2D Givens (PlanarQuant)
    • Rotor3 — Cl(3,0) sandwich (RotorQuant, default)
    • Iso4 — quaternion left-iso (IsoQuant)
  • O(d) rotation vs O(d²) for TurboQuant — no BLAS dependency
  • 2/3/4-bit Lloyd-Max scalar quantization with bit-plane packed codes
  • Stable id layer (IdMapIndex) for swap-remove-safe external IDs
  • Save / load via .rv / .rvim formats with rotation kind embedded
  • Python bindings via PyO3, abi3-py310 wheels (Linux x86_64/aarch64,
    macOS aarch64, Windows x64)

Install

# Rust
cargo add rotorvec

# Python
pip install rotorvec