# RQM Simulation Anomaly Diagnostic

> RQM Simulation Anomaly Diagnostic is a paid API for AI agents from jobs.rqmtechnologies.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Compares bounded quantum simulation observed probabilities against expected probabilities using configurable L1 and per-bin error thresholds to detect anomalies

## Facts

- Endpoint: POST https://jobs.rqmtechnologies.com/x402/buyer-jobs/quantum.simulation-anomaly-diagnostic.v1
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rqm-simulation-anomaly-diagnostic-a4b0fc7d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RTaxSeOH14CGCuDCFKLBO

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 rqm-simulation-anomaly-diagnostic-a4b0fc7d -d '<json body>'
```

Example prompt: Check whether my quantum simulation output matches the expected distribution — observed probabilities are {00: 0.48, 01: 0.02, 10: 0.03, 11: 0.47} and expected are {00: 0.5, 01: 0.0, 10: 0.0, 11: 0.5}, with a maximum L1 error of 0.1 and a maximum per-bin error of 0.05.

## When to prefer this

Use this endpoint when you need to statistically validate a quantum simulation result against a known reference probability distribution using explicit L1 and per-bin error thresholds. It is purpose-built for quantum simulation anomaly detection and is preferred over generic statistical comparison tools when working within the RQM ecosystem. Do not use for hardware-error attribution, provider quality ranking, or classical (non-quantum) statistical comparisons.

## Known failure modes

- Observed or expected probability maps have no entries (minProperties: 1 violated)
- Probability maps exceed 256 bins (maxProperties: 256 violated)
- maximum_l1_error outside [0, 2] or maximum_bin_error outside [0, 1]
- Malformed idempotency_key not matching required pattern
- Insufficient USDC balance or max_total_price too low to cover $0.01 fee
- Schema version mismatch (must be rqm.jobs.bazaar-buyer-job-request.v1)

## How this service works

Simulation Anomaly Diagnostic: Compare this bounded simulation result with the supplied expectation and anomaly rules. Use when: Use when a bounded request matches rqm.studio.simulation-anomaly-diagnostic-request.v1 and the caller needs... Returns: L1 and bin deltas, violating outcomes, anomaly verdict. Boundaries: Deterministic bounded local software evidence only; no QPU, provider, physical, formal-proof, certificati...

## Output

Returns a structured anomaly diagnostic report indicating whether the observed probability distribution matches the expected distribution within the supplied L1 and per-bin error tolerances, including which bins (if any) are flagged as anomalous and the computed error metrics.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "request": {
   "type": "object",
   "title": "SimulationAnomalyRequest",
   "required": [
    "observed_probabilities",
    "expected_probabilities",
    "maximum_l1_error",
    "maximum_bin_error"
   ],
   "properties": {
    "observed_shots": {
     "anyOf": [
      {
       "type": "integer",
       "maximum": 10000000,
       "minimum": 1
      },
      {
       "type": "null"
      }
     ],
     "title": "Observed Shots",
     "default": null
    },
    "symmetry_pairs": {
     "type": "array",
     "items": {
      "type": "array",
      "maxItems": 2,
      "minItems": 2,
      "prefixItems": [
       {
        "type": "string"
       },
       {
        "type": "string"
       }
      ]
     },
     "title": "Symmetry Pairs",
     "maxItems": 256
    },
    "maximum_l1_error": {
     "type": "number",
     "title": "Maximum L1 Error",
     "maximum": 2,
     "minimum": 0
    },
    "maximum_bin_error": {
     "type": "number",
     "title": "Maximum Bin Error",
     "maximum": 1,
     "minimum": 0
    },
    "confidence_z_score": {
     "type": "number",
     "title": "Confidence Z Score",
     "default": 1.96,
     "maximum": 8,
     "exclusiveMinimum": 0
    },
    "impossible_outcomes": {
     "type": "array",
     "items": {
      "type": "string"
     },
     "title": "Impossible Outcomes",
     "maxItems": 256
    },
    "expected_probabilities": {
     "type": "object",
     "title": "Expected Probabilities",
     "maxProperties": 256,
     "minProperties": 1,
     "additionalProperties": {
      "type": "number"
     }
    },
    "observed_probabilities": {
     "type": "object",
     "title": "Observed Probabilities",
     "maxProperties": 256,
     "minProperties": 1,
     "additionalProperties": {
      "type": "number"
     }
    }
   },
   "additionalProperties": false
  },
  "schema_version": {
   "const": "rqm.jobs.bazaar-buyer-job-request.v1"
  },
  "idempotency_key": {
   "type": "string",
   "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
   "maxLength": 128,
   "minLength": 1
  },
  "max_total_price": {
   "type": "string",
   "pattern": "^(?:0|[1-9]\\d{0,13})(?:\\.\\d{1,6})?$"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rqm-simulation-anomaly-diagnostic-a4b0fc7d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from jobs.rqmtechnologies.com](https://www.zero.xyz/host/jobs.rqmtechnologies.com/llms.txt)
