Soft Algebra Optimizer for Quantum & Complex Optimization
Project description
Mobiu-Q (v2.4.3)
Universal Physics-Aware Optimizer for Stochastic Systems
Mobiu-Q is the first optimizer based on Soft Algebra, developed by Dr. Moshe Klein and Prof. Oded Maimon. By mathematically decomposing gradients into Potential ($a_t$) and Realization ($b_t$), it filters out noise in real-time.
Works across Quantum Computing, Reinforcement Learning, FinTech, and LLM Fine-Tuning.
🚀 What's New in v2.4.3
- Comprehensive Benchmark Validation: 17 problems tested with statistical significance
- IBM FakeFez Validation: +50.9% on VQE, +16.1% on QAOA with real noise models
- LLM Soft Prompt Tuning: Optimize soft prompts for language models
🏆 Benchmark Results (v2.4.3)
Quantum Computing - IBM FakeFez (Real Noise Model)
| Problem | Improvement | p-value | Win Rate |
|---|---|---|---|
| VQE H2 Molecule | +50.9% | 0.0334 | 5/5 ✅ |
| QAOA MaxCut 5q | +16.1% | 0.0029 | 9/10 ✅ |
Quantum Chemistry (Simulation)
| Molecule | Improvement | Significant |
|---|---|---|
| H2 | +46.6% | ✅ |
| LiH | +41.4% | ✅ |
| BeH2 | +37.8% | ✅ |
| He Atom | +51.2% | ✅ |
| H3+ Chain | +42.0% | ✅ |
Condensed Matter Physics
| Model | Improvement | Significant |
|---|---|---|
| Heisenberg XXZ | +20.8% | ✅ |
| Transverse Ising | +42.0% | ✅ |
| XY Model | +60.8% | ✅ |
| Ferromagnetic Ising | +45.1% | ✅ |
| Hubbard Dimer | +14.1% | ✅ |
Classical Optimization
| Problem | Improvement |
|---|---|
| Rosenbrock | +65.5% |
QAOA (Simulation with noise=0.1)
| Problem | Improvement | Win Rate | p-value |
|---|---|---|---|
| MaxCut 4 qubits | +27.2% | 7/10 | 0.0414 ✅ |
| MaxCut 5 qubits | +23.7% | 9/10 | 0.0036 ✅ |
| MaxCut p=3 | +15.6% | 9/10 | 0.0083 ✅ |
📦 Installation
pip install mobiu-q
⚡ Quick Start
1. VQE (Quantum Chemistry)
from mobiu_q import MobiuQCore, Demeasurement
opt = MobiuQCore(license_key="YOUR-KEY", method="vqe")
for step in range(100):
grad = Demeasurement.finite_difference(energy_fn, params)
params = opt.step(params, grad, energy_fn(params))
opt.end()
2. QAOA (Combinatorial Optimization)
opt = MobiuQCore(
license_key="YOUR-KEY",
method="qaoa",
mode="hardware" # For quantum hardware / noisy simulation
)
for step in range(150):
grad, energy = Demeasurement.spsa(energy_fn, params)
params = opt.step(params, grad, energy)
opt.end()
3. Reinforcement Learning
opt = MobiuQCore(license_key="YOUR-KEY", method="rl")
for episode in range(1000):
episode_return = run_episode(policy)
gradient = compute_policy_gradient()
policy_params = opt.step(policy_params, gradient, episode_return)
opt.end()
4. Multi-Seed Experiments (1 billing session)
opt = MobiuQCore(license_key="YOUR-KEY")
for seed in range(10):
opt.new_run() # Resets state, keeps session open
params = init_params(seed)
# ... optimization loop ...
opt.end() # All 10 seeds count as 1 run
🎛️ Configuration
Methods and Modes
| Method | Mode | Use Case | Default LR |
|---|---|---|---|
vqe |
simulation |
Chemistry, physics (clean) | 0.01 |
vqe |
hardware |
VQE on quantum hardware | 0.02 |
qaoa |
simulation |
Combinatorial (simulator) | 0.1 |
qaoa |
hardware |
QAOA on quantum hardware | 0.1 |
rl |
(ignored) | Reinforcement learning | 0.0003 |
Optimizers
⚠️ Optimizer names are case-sensitive!
# Use default (Adam)
opt = MobiuQCore(method="vqe")
# Alternative optimizer - note exact case!
opt = MobiuQCore(method="qaoa", base_optimizer="NAdam")
Available optimizers (exact names):
Adam(default) - Best overall performanceNAdam- Strong on QAOA problemsAMSGrad- Alternative for VQESGD- Simple baselineMomentum- SGD with momentumLAMB- Large batch training
Disable Soft Algebra
For A/B testing against plain optimizers:
# Plain Adam (no Soft Algebra)
opt = MobiuQCore(method="vqe", use_soft_algebra=False)
🧠 How It Works
The Core Innovation: "Noise Hallucination" Prevention
Standard optimizers (Adam, SGD) assume lower objective values always indicate better solutions. In noisy environments—like NISQ processors or stochastic RL—this fails. Optimizers "tunnel" into noise, creating Noise Hallucinations.
The Solution: Soft Algebra, developed by Dr. Moshe Klein and Prof. Oded Maimon, uses cross-coupled state evolution:
S_{t+1} = (γ · S_t) · Δ_t + Δ_t
Where:
a_t(Potential): Curvature signal from energy historyb_t(Realized): Actual improvement achievedĆ(Super-Equation): Emergence detection for QAOA/RL
A parameter update is only committed if the Potential Field is validated by Realized Improvement.
SoftNumber Multiplication
The core of Soft Algebra uses nilpotent arithmetic (ε²=0):
(a, b) * (c, d) = (ad + bc, bd)
This allows gradients to carry both magnitude and uncertainty information.
Method-Specific Logic
| Method | Primary Mechanism | Best For |
|---|---|---|
| VQE | Trust Ratio + Gradient Warping | Smooth energy landscapes |
| QAOA | Super-Equation Δ† | Rugged, multimodal landscapes |
| RL | Trust + Emergence + Warping | High-variance, sparse rewards |
📊 When to Use Mobiu-Q
✅ Use Mobiu-Q when:
- High noise/variance (quantum hardware, RL, stochastic finance)
- Rugged landscapes with many local minima
- Expensive function evaluations
- Standard optimizers diverge or get stuck
❌ Skip Mobiu-Q when:
- Clean, convex problems (vanilla SGD is fine)
- Deterministic, low-noise environments
- Very low variance settings
🔑 Pricing
| Tier | Runs/Month | Features |
|---|---|---|
| Free | 20 | Testing & students |
| Pro | Unlimited | Priority processing, all features |
📚 API Reference
MobiuQCore
MobiuQCore(
license_key: str, # Your license key
method: str = "vqe", # "vqe", "qaoa", or "rl"
mode: str = "simulation", # "simulation" or "hardware"
base_lr: float = None, # Learning rate (auto if None)
base_optimizer: str = "Adam", # Case-sensitive! Adam, NAdam, AMSGrad, SGD, Momentum, LAMB
use_soft_algebra: bool = True, # Enable/disable SA
offline_fallback: bool = True # Fallback to local Adam
)
Methods:
step(params, gradient, energy)→ Updated paramsnew_run()→ Reset for new seed (same session)end()→ End session (counts usage)check_usage()→ Get remaining runs
Demeasurement
# For VQE (smooth landscapes)
grad = Demeasurement.finite_difference(energy_fn, params)
grad = Demeasurement.parameter_shift(circuit_fn, params)
# For QAOA/hardware (noisy)
grad, energy = Demeasurement.spsa(energy_fn, params)
🔬 Scientific Foundation
Mobiu-Q is based on Soft Algebra, developed by:
- Dr. Moshe Klein - Mathematician, developer of Soft Logic and Soft Numbers
- Prof. Oded Maimon - Tel Aviv University, Industrial Engineering
The theoretical foundations combine:
- Nilpotent arithmetic (ε²=0)
- Cross-coupled dynamical systems
- Information-theoretic trust measures
📖 Citation
If you use Mobiu-Q in research:
@software{mobiu_q,
title = {Mobiu-Q: Soft Algebra Optimizer for Stochastic Systems},
author = {Angel, Ido and Klein, Moshe and Maimon, Oded},
year = {2024},
url = {https://mobiu.ai}
}
Proprietary technology. All rights reserved by Mobiu Technologies.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mobiu_q-2.4.3.tar.gz.
File metadata
- Download URL: mobiu_q-2.4.3.tar.gz
- Upload date:
- Size: 23.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1260d83b241448e70b17d8071d6dfdc06385696c63056a19d842af708113508c
|
|
| MD5 |
a4c10e7b002471b05262d910f9387c1a
|
|
| BLAKE2b-256 |
d21eab58143d05022b42ebfb5bf431c6608920db5cfb2a6b5da58355f9e9a90d
|
File details
Details for the file mobiu_q-2.4.3-py3-none-any.whl.
File metadata
- Download URL: mobiu_q-2.4.3-py3-none-any.whl
- Upload date:
- Size: 20.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
603cb182d49ca7314042af9537317ae67b06dc9cf1899936e5dd670eb3f9f8d4
|
|
| MD5 |
121f6ad81fdd9b8fce6f6ea6977c52b5
|
|
| BLAKE2b-256 |
6a4fc90232ee22c4246173ad8388047be0fe931f42e2925d7cff53c71d532836
|