Python SDK for Moons Quantum — AI-powered quantum circuit optimization and routing
Project description
moons-quantum
Python SDK for Moons Quantum — AI-powered quantum circuit optimization and routing.
Optimize your quantum circuits before they hit real hardware. Reduce SWAP overhead, skip the queue, and cut cloud compute costs.
Installation
pip install moons-quantum
Quick Start
import moons_quantum as moons
# Set your API key (get one free at moonsquantum.com)
moons.api_key = "mqc_your_key_here"
# Optimize a circuit
result = moons.optimize(qubits=4, topology="grid", generations=10)
print(result.status) # "completed"
print(result.best_circuit_qasm) # OPENQASM 2.0; ...
print(result.fidelity) # 98.5 (percentage)
print(result.depth) # 12
Route API
The high-level route() function picks the best optimization strategy automatically:
result = moons.route(budget=50, topology="linear", qubits=6)
print(result.best_circuit_qasm)
Check Job Status
For async workflows, submit without waiting and check later:
result = moons.optimize(qubits=8, wait=False)
print(result.job_id) # "a1b2c3d4-..."
# Check later
status = moons.get_job(result.job_id)
print(status.is_complete)
Topology Options
| Topology | Description | Use Case |
|---|---|---|
"all" |
All-to-all connectivity | Ideal / trapped-ion |
"linear" |
Linear chain | Basic NISQ devices |
"ring" |
Ring connectivity | Neutral atom arrays |
"grid" |
2D grid / square lattice | IBM superconducting QPUs |
API Health Check
print(moons.health())
# {"status": "healthy"}
Configuration
import moons_quantum as moons
moons.api_key = "mqc_..." # Your API key
moons.api_url = "https://custom-server.com" # Custom server URL (optional)
Links
- Website: moonsquantum.com
- GitHub: github.com/DEBURGEMEESTER/Moons-Quantum-Corp.
- Issues: Report a bug
License
MIT
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 moons_quantum-0.1.0.tar.gz.
File metadata
- Download URL: moons_quantum-0.1.0.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb4ce9ac4198f5d2328d5c4bead26806598c843596fa10569a8e9ab2d1f25d4d
|
|
| MD5 |
5029229cdff66ea1ca5dc73bfe921151
|
|
| BLAKE2b-256 |
06c8a5e0d4ef73c73c61e9547d0218cf33e569084ac3fbd5942f4471265d26b7
|
File details
Details for the file moons_quantum-0.1.0-py3-none-any.whl.
File metadata
- Download URL: moons_quantum-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cabbc30bde7b21c2c42d3b9d89c6ba5a2ba30d97c3ac9c1160be14b4ec9973e3
|
|
| MD5 |
25028f4860fd60633ffa1d1612133457
|
|
| BLAKE2b-256 |
c5773b051cdb5371aede7772129331f1735f5dc2b48501a5cb12f7d41bc6fd60
|