# Shor's Threat Index – Quantum Resource Estimator

> Shor's Threat Index – Quantum Resource Estimator is a paid API for AI agents from quantum.halowerk.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Estimates logical qubits and gates required to break RSA, DH, or ECC keys using Shor's algorithm, then compares those requirements against caller-supplied hardware capacity to produce capacity and runtime threat ratios.

## Facts

- Endpoint: POST https://quantum.halowerk.com/v1/shors-threat-index
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/shor-s-threat-index-quantum-resource-estimator-a6ca7ca6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kgR9JD72hLbkqL3jr5VwD

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability shor-s-threat-index-quantum-resource-estimator-a6ca7ca6 -d '<json body>'
```

Example prompt: Estimate the quantum resources needed to break a 2048-bit RSA key using Shor's algorithm, assuming I have 1 million physical qubits, a logical gate rate of 1 billion gates per second, 1000 physical qubits per logical qubit for error correction, and 365 days of available runtime — give me the capacity and runtime ratios.

## When to prefer this

Choose this endpoint when you need a fast, parameterizable heuristic estimate of quantum threat exposure for RSA, ECC, or finite-field DH keys — especially for capacity planning, post-quantum migration prioritization, or communicating quantum risk to stakeholders. It is not suitable when you need a peer-reviewed cryptanalytic bound or a prediction of when quantum computers will actually exist.

## Known failure modes

- key_bits out of range (below 128 or above 32768) returns validation error
- algorithm value not in enum returns schema validation error
- available_physical_qubits or logical_gate_rate_per_second at extreme bounds may produce astronomically large or near-zero ratios
- error_correction_physical_per_logical below 1 is rejected
- missing required fields return 400-class errors
- results are heuristic estimates only and may not reflect state-of-the-art cryptanalytic complexity models

## How this service works

Estimates logical qubits and logical gates from algorithm family and key size, applies a caller-supplied error-correction overhead, and reports capacity and runtime ratios. The formulas are coarse planning heuristics, not cryptanalytic proof or a forecast of when cryptographically relevant quantum computers will exist.

## Output

Returns estimated logical qubit and logical gate counts for running Shor's algorithm against the specified algorithm and key size, along with capacity ratio (available logical qubits vs required) and runtime ratio (available time vs estimated computation time), helping planners gauge how far current or projected quantum hardware is from cryptographically relevant capability.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "key_bits": {
   "type": "integer",
   "maximum": 32768,
   "minimum": 128,
   "description": "RSA/modulus bits or ECC group-size bits."
  },
  "algorithm": {
   "enum": [
    "rsa",
    "finite-field-dh",
    "ecc"
   ],
   "type": "string"
  },
  "available_runtime_days": {
   "type": "number",
   "maximum": 365000,
   "minimum": 0.000001
  },
  "available_physical_qubits": {
   "type": "integer",
   "maximum": 1000000000000,
   "minimum": 1
  },
  "logical_gate_rate_per_second": {
   "type": "number",
   "maximum": 1000000000000000,
   "minimum": 0.000001
  },
  "error_correction_physical_per_logical": {
   "type": "number",
   "maximum": 1000000000,
   "minimum": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/shor-s-threat-index-quantum-resource-estimator-a6ca7ca6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from quantum.halowerk.com](https://www.zero.xyz/host/quantum.halowerk.com/llms.txt)
