QaaS API Documentation
Welcome to the Quantum as a Service API documentation. This API provides access to 100 quantum computing algorithms across Qiskit, Cirq, and PennyLane frameworks.
https://qaas-api-gateway.epochcoreras.workers.dev
Overview
QaaS provides a REST API for executing quantum algorithms on simulated and real quantum backends. The API supports four tiers with different capabilities:
| Tier | Price | Runs/Day | Algorithms | Backends |
|---|---|---|---|---|
| Explorer | Free | 10 | 25 | Simulator |
| Analyst | $29/mo | 50 | 50 | Simulator, Qiskit Aer |
| Quant | $99/mo | 250 | 100 | All + Cirq, PennyLane |
| Enterprise | $299/mo | Unlimited | 100 | All + IBM Quantum |
Authentication
All API requests require an API key passed in the X-API-Key header:
curl -H "X-API-Key: YOUR_API_KEY" \
https://qaas-api-gateway.epochcoreras.workers.dev/api/quantum/algorithms
Quick Start
1. Get Available Algorithms
curl https://qaas-api-gateway.epochcoreras.workers.dev/api/quantum/algorithms
2. Run an Algorithm
curl -X POST https://qaas-api-gateway.epochcoreras.workers.dev/api/quantum/run \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{
"algorithm_id": "AE_PROB_001",
"parameters": {
"epsilon": 0.01,
"confidence": 0.95
},
"backend": "simulator"
}'
3. Check Your Usage
curl -H "X-API-Key: YOUR_API_KEY" \
https://qaas-api-gateway.epochcoreras.workers.dev/api/quantum/usage
Health Check
Returns the API status and available capabilities.
Response
{
"status": "operational",
"service": "QaaS - Quantum as a Service",
"version": "1.0.0",
"algorithms_available": 100,
"frameworks": ["Qiskit", "Cirq", "PennyLane"],
"timestamp": "2025-12-11T21:45:47.471Z"
}
Pricing Information
Returns all available pricing tiers with features and payment links.
Response
{
"tiers": [
{
"id": "explorer",
"name": "Explorer",
"price": 0,
"runs_per_day": 10,
"runs_per_month": 300,
"algorithms": 25,
"backends": ["simulator"]
},
...
],
"currency": "USD",
"billing": "monthly"
}
List Algorithms
Returns available quantum algorithms based on your tier.
Headers
| Name | Type | Description |
|---|---|---|
X-API-Key |
string | Your API key (optional for Explorer tier) |
Response
{
"tier": "explorer",
"total_available": 25,
"algorithms": [
{
"id": 1,
"name": "AE_PROB_001",
"category": "amplitude_estimation",
"description": "Probability amplitude estimation for option pricing"
},
...
],
"categories": ["amplitude_estimation", "grover_search", ...]
}
Run Algorithm
Execute a quantum algorithm with specified parameters.
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
algorithm_id |
string | Yes | Algorithm identifier (e.g., "AE_PROB_001") |
parameters |
object | Yes | Algorithm-specific parameters |
backend |
string | No | Execution backend (default: "simulator") |
shots |
number | No | Number of measurement shots (default: 1024) |
Example Request
POST /api/quantum/run
Content-Type: application/json
X-API-Key: YOUR_API_KEY
{
"algorithm_id": "QAOA_PORT_001",
"parameters": {
"assets": ["AAPL", "GOOGL", "MSFT", "AMZN"],
"returns": [0.12, 0.15, 0.10, 0.18],
"covariance": [[0.04, 0.01, 0.02, 0.01], ...],
"risk_tolerance": 0.5
},
"backend": "qiskit_aer",
"shots": 2048
}
Response
{
"job_id": "qj_abc123xyz",
"status": "completed",
"algorithm": "QAOA_PORT_001",
"result": {
"optimal_weights": [0.25, 0.35, 0.15, 0.25],
"expected_return": 0.1425,
"portfolio_variance": 0.0289,
"sharpe_ratio": 1.42
},
"execution_time_ms": 847,
"backend_used": "qiskit_aer",
"shots_executed": 2048,
"quantum_watermark": "RAS=e5586ef939094a8e"
}
Usage Statistics
Returns your current usage statistics and remaining quota.
Response
{
"tier": "quant",
"period": "2025-12",
"usage": {
"runs_today": 45,
"runs_this_month": 892,
"remaining_today": 205,
"remaining_month": 1608
},
"limits": {
"runs_per_day": 250,
"runs_per_month": 2500
}
}
Amplitude Estimation Algorithms
Quantum amplitude estimation algorithms for probability calculations, option pricing, and risk metrics.
| Algorithm ID | Description | Use Case |
|---|---|---|
AE_PROB_001 | Probability amplitude estimation | Option pricing |
AE_PROB_002 | Monte Carlo amplitude estimation | Risk simulation |
AE_PROB_003 | Risk metric amplitude estimation | VaR/CVaR |
AE_PROB_004 | VaR amplitude estimation | Value at Risk |
AE_PROB_005 | CVaR amplitude estimation | Conditional VaR |
Grover Search Algorithms
Quantum search algorithms providing quadratic speedup for unstructured search problems.
| Algorithm ID | Description | Use Case |
|---|---|---|
GROVER_BOOL_001 | Boolean satisfiability search | Constraint solving |
GROVER_BOOL_002 | Portfolio constraint search | Asset selection |
GROVER_BOOL_003 | Arbitrage opportunity search | Trading |
GROVER_BOOL_004 | Compliance rule search | Regulatory |
GROVER_BOOL_005 | Pattern matching search | Market patterns |
QAOA Optimization Algorithms
Quantum Approximate Optimization Algorithm implementations for portfolio and combinatorial optimization.
| Algorithm ID | Description | Use Case |
|---|---|---|
QAOA_PORT_001 | Markowitz portfolio optimization | Mean-variance |
QAOA_PORT_002 | Risk-parity portfolio | Risk balancing |
QAOA_PORT_003 | Maximum Sharpe ratio | Return/risk ratio |
QAOA_PORT_004 | Minimum variance portfolio | Risk minimization |
QAOA_PORT_005 | Black-Litterman quantum | View integration |
QUBO Solvers
Quadratic Unconstrained Binary Optimization solvers for combinatorial problems.
| Algorithm ID | Description | Use Case |
|---|---|---|
QAOA_QUBO_001 | General QUBO solver | Binary optimization |
QAOA_QUBO_002 | Max-cut problem | Graph partitioning |
QAOA_QUBO_003 | Graph coloring | Resource allocation |
QAOA_QUBO_004 | Traveling salesman | Route optimization |
QAOA_QUBO_005 | Knapsack problem | Selection optimization |
Quantum Machine Learning
Quantum-enhanced machine learning algorithms for classification, regression, and anomaly detection.
Error Codes
| Code | Message | Description |
|---|---|---|
401 | Unauthorized | Invalid or missing API key |
403 | Forbidden | Algorithm not available in your tier |
429 | Rate Limited | Daily or monthly limit exceeded |
500 | Execution Error | Algorithm execution failed |
SDK & Client Libraries
Official client libraries coming soon:
- JavaScript/TypeScript:
npm install @epochcore/qaas-sdk - Python:
pip install epochcore-qaas