Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[![Python Version](https://img.shields.io/pypi/pyversions/superquantx)](https://pypi.org/project/superquantx/)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Tests](https://github.com/SuperagenticAI/superquantx/actions/workflows/ci.yml/badge.svg)](https://github.com/SuperagenticAI/superquantx/actions/workflows/ci.yml)
[![Website](https://img.shields.io/badge/website-superquantx.dev-7C3AED)](https://superquantx.dev)
[![Documentation](https://img.shields.io/badge/docs-mkdocs-blue)](https://superagenticai.github.io/superquantx)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)

Expand All @@ -15,11 +16,13 @@ The same circuits and algorithms run on PennyLane, Qiskit, Cirq, Amazon
Braket, pytket and a built-in simulator, and every algorithm reports a
classical reference so you can see whether the quantum part earns its keep.

> 🌐 **[superquantx.dev](https://superquantx.dev)** ·
> 📖 **[Documentation](https://superagenticai.github.io/superquantx/)** ·
> 📦 **[PyPI](https://pypi.org/project/superquantx/)** ·
> 🎬 **[Showcase with real output](docs/showcase.md)**

<div align="center">
<a href="https://super-agentic.ai" target="_blank">
<a href="https://superquantx.dev" target="_blank">
<img src="resources/logo.png" alt="SuperQuantX Logo" width="500">
</a>
</div>
Expand Down Expand Up @@ -70,10 +73,15 @@ uv run python examples/showcase.py
Install the 0.3.0 release from PyPI (Python 3.11+):

```bash
pip install "superquantx==0.3.0" # built-in simulator
pip install "superquantx[mcp,qiskit,pennylane]==0.3.0" # MCP and SDKs
uv add "superquantx==0.3.0" # built-in simulator
uv add "superquantx[mcp,qiskit,pennylane]==0.3.0" # MCP and SDKs
uvx --from "superquantx[mcp]==0.3.0" superquantx-mcp # run the MCP server, no install
```

Not using a uv project? `uv pip install "superquantx==0.3.0"` or
`pip install "superquantx==0.3.0"` work too. Each backend has an extra:
`pennylane`, `qiskit`, `cirq`, `braket`, `tket`, `ocean`, or `all-backends`.

### AI assistants and automatic encodings

The [MCP server](docs/mcp.md) exposes six tools over stdio for circuits,
Expand All @@ -85,7 +93,7 @@ encoding at fit time using a local heuristic. The optional Qmes recommender
is installed separately; see the [design and limitations](docs/design/qmes-feature-map-auto.md).
Inspect `selected_feature_map_` and `feature_map_recommendation_` after fitting.

### A quantum classifier, honestly benchmarked
### A quantum classifier, benchmarked against classical models

```python
import superquantx as sqx
Expand Down Expand Up @@ -174,6 +182,6 @@ Apache License 2.0. See [LICENSE](LICENSE).

<div align="center">

*Built by [Superagentic AI](https://super-agentic.ai)*
*[superquantx.dev](https://superquantx.dev) · Built by [Superagentic AI](https://super-agentic.ai)*

</div>
20 changes: 9 additions & 11 deletions docs/backends/braket.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The Amazon Braket backend in SuperQuantX provides:

```bash
# Install SuperQuantX with Braket support
pip install superquantx[braket]
uv add "superquantx[braket]==0.3.0"

# Or install Amazon Braket SDK directly
pip install amazon-braket-sdk boto3
Expand Down Expand Up @@ -73,19 +73,17 @@ Create IAM policy with required Braket permissions:
```python
import superquantx as sqx

# Get Braket backend (uses local simulator by default)
backend = sqx.get_backend('braket')
print(f"Backend: {backend}")
# Get the Braket backend (local simulator by default)
backend = sqx.get_backend("braket")

# Create Bell state circuit
# Bell state through the unified circuit API
circuit = backend.create_circuit(2)
circuit.h(0)
circuit.cx(0, 1)
circuit.measure_all()
circuit = backend.add_gate(circuit, "H", 0)
circuit = backend.add_gate(circuit, "CNOT", [0, 1])
circuit = backend.add_measurement(circuit)

# Execute on local simulator
result = backend.run(circuit, shots=1000)
print(f"Bell state results: {result.get_counts()}")
result = backend.execute_circuit(circuit, shots=1000)
print(result["counts"]) # about 500 each of '00' and '11'
```

### Cloud Simulation
Expand Down
20 changes: 9 additions & 11 deletions docs/backends/cirq.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The Cirq backend in SuperQuantX offers:

```bash
# Install SuperQuantX with Cirq support
pip install superquantx[cirq]
uv add "superquantx[cirq]==0.3.0"

# Or install Cirq directly
pip install cirq cirq-google cirq-web
Expand All @@ -33,19 +33,17 @@ pip install cirq cirq-google cirq-web
```python
import superquantx as sqx

# Get Cirq backend
backend = sqx.get_backend('cirq')
print(f"Backend: {backend}")
# Get the Cirq backend (local simulator by default)
backend = sqx.get_backend("cirq")

# Create Bell state circuit
# Bell state through the unified circuit API
circuit = backend.create_circuit(2)
circuit.h(0)
circuit.cx(0, 1)
circuit.measure_all()
circuit = backend.add_gate(circuit, "H", 0)
circuit = backend.add_gate(circuit, "CNOT", [0, 1])
circuit = backend.add_measurement(circuit)

# Execute circuit
result = backend.run(circuit, shots=1000)
print(f"Bell state results: {result.get_counts()}")
result = backend.execute_circuit(circuit, shots=1000)
print(result["counts"]) # about 500 each of '00' and '11'
```

### Google Quantum Hardware
Expand Down
2 changes: 1 addition & 1 deletion docs/backends/ocean.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The Ocean backend in SuperQuantX provides:
pip install dwave-ocean-sdk

# Install SuperQuantX with Ocean support
pip install superquantx[ocean]
uv add "superquantx[ocean]==0.3.0"
```

### Extended Ocean Tools
Expand Down
20 changes: 9 additions & 11 deletions docs/backends/pennylane.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ PennyLane's strengths make it ideal for:

```bash
# Install SuperQuantX with PennyLane support
pip install superquantx[pennylane]
uv add "superquantx[pennylane]==0.3.0"

# Or install PennyLane directly
pip install pennylane pennylane-qiskit pennylane-cirq
Expand All @@ -31,19 +31,17 @@ pip install pennylane pennylane-qiskit pennylane-cirq
```python
import superquantx as sqx

# Get PennyLane backend
backend = sqx.get_backend('pennylane')
print(f"Backend: {backend}")
# Get the PennyLane backend (local simulator by default)
backend = sqx.get_backend("pennylane")

# Create a simple circuit
# Bell state through the unified circuit API
circuit = backend.create_circuit(2)
circuit.h(0)
circuit.cx(0, 1)
circuit.measure_all()
circuit = backend.add_gate(circuit, "H", 0)
circuit = backend.add_gate(circuit, "CNOT", [0, 1])
circuit = backend.add_measurement(circuit)

# Execute circuit
result = backend.run(circuit, shots=1000)
print(f"Results: {result.get_counts()}")
result = backend.execute_circuit(circuit, shots=1000)
print(result["counts"]) # about 500 each of '00' and '11'
```

## 🔧 Configuration
Expand Down
22 changes: 10 additions & 12 deletions docs/backends/qiskit.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The Qiskit backend in SuperQuantX offers:

```bash
# Install SuperQuantX with Qiskit support
pip install superquantx[qiskit]
uv add "superquantx[qiskit]==0.3.0"

# Or install Qiskit directly
pip install qiskit qiskit-aer qiskit-ibm-runtime
Expand All @@ -33,19 +33,17 @@ pip install qiskit qiskit-aer qiskit-ibm-runtime
```python
import superquantx as sqx

# Get Qiskit backend
backend = sqx.get_backend('qiskit')
print(f"Backend: {backend}")
# Get the Qiskit backend (local simulator by default)
backend = sqx.get_backend("qiskit")

# Create Bell state circuit
# Bell state through the unified circuit API
circuit = backend.create_circuit(2)
circuit.h(0)
circuit.cx(0, 1)
circuit.measure_all()
circuit = backend.add_gate(circuit, "H", 0)
circuit = backend.add_gate(circuit, "CNOT", [0, 1])
circuit = backend.add_measurement(circuit)

# Execute on simulator
result = backend.run(circuit, shots=1000)
print(f"Bell state results: {result.get_counts()}")
result = backend.execute_circuit(circuit, shots=1000)
print(result["counts"]) # about 500 each of '00' and '11'
```

### IBM Quantum Hardware
Expand Down Expand Up @@ -1050,7 +1048,7 @@ def robust_qiskit_execution(circuit, backend_name='qasm_simulator'):

---

*Qiskit's integration with SuperQuantX provides seamless access to IBM's quantum ecosystem, from high-performance simulators to cutting-edge quantum processors. The unified API makes it easy to develop quantum applications while leveraging IBM's quantum expertise.*
*The Qiskit backend runs on Qiskit Aer and is tested on the simulator. IBM Quantum hardware access goes through qiskit-ibm-runtime with your own credentials and is untested.*

!!! tip "Optimization"
For best performance on IBM hardware, use `optimization_level=3` and minimize circuit depth. Consider using Qiskit Runtime for reduced latency.
Expand Down
2 changes: 1 addition & 1 deletion docs/backends/simulator.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The Simulator backend is included with SuperQuantX and requires no additional de

```bash
# Install SuperQuantX (simulator included)
pip install superquantx
uv add "superquantx==0.3.0"
```

### Verify Installation
Expand Down
2 changes: 1 addition & 1 deletion docs/backends/tket.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The TKET backend in SuperQuantX offers:
pip install pytket

# Install SuperQuantX with TKET support
pip install superquantx[tket]
uv add "superquantx[tket]==0.3.0"
```

### Extended TKET Installations
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started/first-program.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ By the end of this tutorial, you'll understand:
Make sure you have SuperQuantX installed:

```bash
pip install superquantx[pennylane]
uv add "superquantx[pennylane]==0.3.0"
```

## 🚀 Hello Quantum World
Expand Down
33 changes: 18 additions & 15 deletions docs/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ This guide provides detailed instructions for installing SuperQuantX in various
This installs SuperQuantX with the built-in simulator backend:

```bash
pip install superquantx
uv add "superquantx==0.3.0"
```

Not using a uv project? `uv pip install "superquantx==0.3.0"` installs into the
active environment, and `pip install "superquantx==0.3.0"` works too.

**What you get:**
- Core SuperQuantX functionality
- Built-in quantum simulator
Expand All @@ -50,7 +53,7 @@ Install SuperQuantX with specific quantum computing frameworks:
=== "PennyLane (Recommended for ML)"

```bash
pip install superquantx[pennylane]
uv add "superquantx[pennylane]==0.3.0"
```

**Includes:**
Expand All @@ -62,7 +65,7 @@ Install SuperQuantX with specific quantum computing frameworks:
=== "Qiskit (IBM's Framework)"

```bash
pip install superquantx[qiskit]
uv add "superquantx[qiskit]==0.3.0"
```

**Includes:**
Expand All @@ -74,7 +77,7 @@ Install SuperQuantX with specific quantum computing frameworks:
=== "Cirq (Google's Framework)"

```bash
pip install superquantx[cirq]
uv add "superquantx[cirq]==0.3.0"
```

**Includes:**
Expand All @@ -85,7 +88,7 @@ Install SuperQuantX with specific quantum computing frameworks:
=== "Amazon Braket"

```bash
pip install superquantx[braket]
uv add "superquantx[braket]==0.3.0"
```

**Includes:**
Expand All @@ -97,10 +100,10 @@ Install SuperQuantX with specific quantum computing frameworks:

```bash
# Install multiple backends at once
pip install superquantx[pennylane,qiskit,cirq]
uv add "superquantx[pennylane,qiskit,cirq]==0.3.0"

# Or install all quantum backends
pip install superquantx[all-backends]
uv add "superquantx[all-backends]==0.3.0"
```

### Method 3: Development Installation
Expand Down Expand Up @@ -144,7 +147,7 @@ Always use virtual environments to avoid package conflicts:
superquantx-env\Scripts\activate

# Install SuperQuantX
pip install superquantx[pennylane]
pip install "superquantx[pennylane]==0.3.0"
```

=== "conda"
Expand All @@ -155,21 +158,21 @@ Always use virtual environments to avoid package conflicts:
conda activate superquantx

# Install SuperQuantX
pip install superquantx[pennylane]
pip install "superquantx[pennylane]==0.3.0"
```

=== "uv (Fast Python Package Manager)"

```bash
# Install uv (if not installed)
pip install uv
curl -LsSf https://astral.sh/uv/install.sh | sh

# Create project with uv
uv init my-quantum-project
cd my-quantum-project

# Add SuperQuantX as dependency
uv add superquantx[pennylane]
uv add "superquantx[pennylane]==0.3.0"

# Activate environment and run
uv run python your_script.py
Expand Down Expand Up @@ -213,7 +216,7 @@ For interactive quantum computing:

```bash
# Install SuperQuantX with Jupyter support
pip install superquantx[pennylane] jupyter
uv add "superquantx[pennylane]==0.3.0" jupyter

# Start Jupyter
jupyter notebook
Expand Down Expand Up @@ -342,7 +345,7 @@ pip install --upgrade pip

# Install backends individually
pip install pennylane
pip install superquantx[pennylane]
pip install "superquantx[pennylane]==0.3.0"

# For system-specific issues, install system dependencies
# Ubuntu/Debian:
Expand All @@ -365,7 +368,7 @@ pip list | grep superquantx

# Reinstall if needed
pip uninstall superquantx
pip install superquantx
pip install "superquantx==0.3.0"

# Check Python path
python -c "import sys; print(sys.path)"
Expand All @@ -377,7 +380,7 @@ python -c "import sys; print(sys.path)"

```bash
# Install with optimized backends
pip install superquantx[pennylane]
uv add "superquantx[pennylane]==0.3.0"

# For Intel CPUs, install Intel MKL
pip install mkl mkl-service
Expand Down
Loading
Loading