Skip to main content

Soft Algebra Optimizer for Quantum & Complex Optimization

Project description

Mobiu-Q v2.7.1

PyPI version License

Mobiu-Q wraps your existing optimizer with Soft Algebra to filter noise and improve convergence. Same API, better results.


๐Ÿš€ What's New in v2.7

  • MobiuOptimizer: Universal wrapper - auto-detects PyTorch optimizers!
  • Hybrid Mode: Cloud intelligence + local PyTorch performance
  • Zero Friction: One-line integration for PyTorch users
  • Full Backward Compatibility: All existing code continues to work

โšก Quick Start

PyTorch Users (NEW in v2.7!)

import torch
from mobiu_q import MobiuOptimizer

# Your existing code
model = MyModel()
base_opt = torch.optim.Adam(model.parameters(), lr=0.0003)

# Wrap with Mobiu-Q (one line!)
opt = MobiuOptimizer(base_opt, method="adaptive")

# Training loop stays the same
for epoch in range(100):
    loss = criterion(model(x), y)
    loss.backward()
    opt.step(loss.item())  # Pass loss for Soft Algebra
    opt.zero_grad()

opt.end()

Quantum Users (unchanged)

from mobiu_q import MobiuQCore

opt = MobiuQCore(method="standard")
for step in range(100):
    params = opt.step(params, energy_fn)
opt.end()

๐Ÿ† Verified Benchmark Results

All benchmarks compare Optimizer + Soft Algebra vs Optimizer alone. Same learning rate, same seeds, fair A/B test.

๐ŸŽฎ Reinforcement Learning

Environment Improvement p-value Win Rate
LunarLander-v3 +129.7% <0.001 96.7%
MuJoCo InvertedPendulum +118.6% 0.001 100%
MuJoCo Hopper +41.2% 0.007 80%

๐Ÿ“ Classical Optimization

Function Improvement Description
Rosenbrock +75.8% Valley navigation
Beale +62.0% Plateau escape
Sphere +31.1% Convex baseline

โš›๏ธ Quantum VQE - Condensed Matter

Model Improvement
SSH Model (Topological) +61.0%
XY Model +60.8%
Ferro Ising +45.1%
Transverse Ising +42.0%
Heisenberg XXZ +20.8%
Kitaev Chain +20.4%
Hubbard Dimer +14.1%

โš›๏ธ Quantum VQE - Chemistry

Molecule Improvement
FakeFez Hโ‚‚ +52.4% (p=0.043)
He Atom +51.2%
Hโ‚‚ Molecule +46.6%
Hโ‚ƒโบ Chain +42.0%
LiH Molecule +41.4%
BeHโ‚‚ Molecule +37.8%

๐ŸŽฏ QAOA (Combinatorial Optimization)

Problem Improvement Wins
FakeFez MaxCut +45.1% p=0.0003
Vertex Cover +31.9% 51/60
Max Independent Set +31.9% 51/60
MaxCut +21.5% 45/60

๐Ÿ’ฐ Finance (QUBO)

Problem Improvement
Credit Risk +52.3%
Portfolio Optimization +51.7%

๐Ÿ’Š Drug Discovery

Task Improvement Config
Binding Affinity +12.2% AMSGrad + standard

๐Ÿ“ฆ Installation

pip install mobiu-q

๐Ÿ”ง Configuration

๐Ÿ“– See CONFIGURATION_GUIDE.md for complete details

Which Class to Use?

Use Case Class Mode
PyTorch (RL, LLM, Deep Learning) MobiuOptimizer Hybrid
Quantum (VQE, QAOA) MobiuQCore Cloud
NumPy optimization MobiuQCore Cloud

Methods

Method Best For Default LR
standard VQE, Chemistry, Finance 0.01
deep QAOA, Noisy Hardware 0.1
adaptive RL, LLM, High-variance 0.0003

Base Optimizers

Optimizer Best For
Adam Default, most cases
AdamW LLM, weight decay
SGD QAOA
AMSGrad Drug Discovery
NAdam Alternative to Adam
Momentum RL alternative
LAMB Large batch

Important: Optimizer names are case-sensitive!


๐Ÿ†• MobiuOptimizer (v2.7)

The new MobiuOptimizer auto-detects your optimizer type:

from mobiu_q import MobiuOptimizer

# PyTorch optimizer โ†’ Hybrid mode (recommended for RL/LLM)
base_opt = torch.optim.Adam(model.parameters())
opt = MobiuOptimizer(base_opt, method="adaptive")

# NumPy params โ†’ Cloud mode (same as MobiuQCore)
params = np.random.randn(10)
opt = MobiuOptimizer(params, method="standard")

How Hybrid Mode Works

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     loss/return    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Local PyTorch  โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ถโ”‚   Mobiu Cloud   โ”‚
โ”‚                 โ”‚                    โ”‚                 โ”‚
โ”‚  โ€ข Gradients    โ”‚   adaptive_lr      โ”‚  โ€ข Soft Algebra โ”‚
โ”‚  โ€ข Weight Updateโ”‚ โ—€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”‚  โ€ข Super-Eq ฮ”โ€   โ”‚
โ”‚  โ€ข Momentum     โ”‚                    โ”‚  โ€ข Trust Ratio  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Benefits:

  • โœ… PyTorch handles precision & GPU acceleration
  • โœ… Cloud provides Soft Algebra intelligence
  • โœ… Minimal network overhead (only sends loss value)
  • โœ… No momentum state corruption

๐Ÿ› ๏ธ Troubleshooting

If optimization is not improving or diverging:

1. Switch Base Optimizer

opt = MobiuQCore(license_key="KEY", base_optimizer="NAdam")
opt = MobiuQCore(license_key="KEY", base_optimizer="Momentum")

2. Switch Method

If This Fails Try This
standard adaptive
adaptive deep
deep standard

3. Switch Mode (Quantum)

opt = MobiuQCore(license_key="KEY", mode="hardware")

4. Adjust Learning Rate

Scenario Recommendation
Diverging Lower LR by 2-5x
No improvement Increase LR by 2x

๐Ÿ”ฌ How It Works

Mobiu-Q is based on Soft Algebra (ฮตยฒ=0):

(a, b) ร— (c, d) = (ad + bc, bd)

Evolution Law:

S_{t+1} = (ฮณ ยท S_t) ยท ฮ”_t + ฮ”_t

The Super-Equation ฮ”โ€  detects emergence moments for adaptive scaling.


๐Ÿ’ฐ Pricing

Tier Price Runs
Free $0 20 runs/month
Pro $19/month Unlimited

Get your key at app.mobiu.ai


๐Ÿ“Š Summary by Domain

Domain Best Result Avg Improvement
RL +129.7% ~96%
Classical Opt +75.8% ~56%
Condensed Matter +61.0% ~38%
Quantum Chemistry +52.4% ~45%
Finance +52.3% ~52%
QAOA +45.1% ~32%
Drug Discovery +12.2% +12%

๐Ÿง‘โ€๐Ÿ”ฌ Scientific Foundation

  • Dr. Moshe Klein โ€“ Soft Logic and Soft Numbers
  • Prof. Oded Maimon โ€“ Tel Aviv University

๐Ÿ“š Links


ยฉ 2025 Mobiu Technologies. All rights reserved.

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

mobiu_q-2.7.1.tar.gz (26.3 kB view details)

Uploaded Source

Built Distribution

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

mobiu_q-2.7.1-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

Details for the file mobiu_q-2.7.1.tar.gz.

File metadata

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

File hashes

Hashes for mobiu_q-2.7.1.tar.gz
Algorithm Hash digest
SHA256 c7cb2a21d08587dc06dd1f8e7800552deaf57e65004946fa5f898f415f6b941e
MD5 ace2e6d423c56d6e21829b7b2c032ebe
BLAKE2b-256 f5d8bb64fd4c163d0d2b3edd62eda8df21298bdecbf2236efd7d498277d9dcb4

See more details on using hashes here.

File details

Details for the file mobiu_q-2.7.1-py3-none-any.whl.

File metadata

  • Download URL: mobiu_q-2.7.1-py3-none-any.whl
  • Upload date:
  • Size: 23.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for mobiu_q-2.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 795c916dc71a81ef47d9d962ee0cb42268099b426a8ea08c8048f5462049304a
MD5 a4516ac4974eb4867e8465b6f9f9dba5
BLAKE2b-256 f7d99bc86f41f0fcf84fe29ebceb6d4dbccd9ade619426b425dc4799baac15f3

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