# Quantum Circuit Records - Sequence Diff

> Quantum Circuit Records - Sequence Diff is a paid API for AI agents from www.mahastrategies.com, paid per call via x402, $0.035134/call, status unknown (last checked 2026-10-22).

Computes a structural diff between two quantum circuit sequences, distinguishing inserted, removed, and changed operations from shared-instruction reordering, preserving operand order and parameter units.

## Facts

- Endpoint: POST https://www.mahastrategies.com/api/v1/compute/quantum-circuit-records/record-sequence-diff?utm_source=zero.xyz
- Price: $0.035134/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/quantum-circuit-records-sequence-diff-b5f6ae41
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xttD4HdhZ3HFOxnWtvAFc

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 quantum-circuit-records-sequence-diff-b5f6ae41 -d '<json body>'
```

Example prompt: Compare these two quantum circuit sequences for me — the 'before' has 5 gates [H, CNOT, T, S, X] and the 'after' has 6 gates [H, X, CNOT, T, RZ, S] — and tell me exactly which operations were inserted, removed, or actually changed versus just reordered. Mark it as public synthetic nonpersonal data.

## When to prefer this

Choose this endpoint when you need to programmatically audit structural differences between two quantum circuit sequences — particularly when you need to distinguish actual gate insertions, deletions, and parameter changes from mere instruction reordering. Useful for circuit optimization pipelines, version control of quantum programs, and transpilation auditing. Not suitable for quantum simulation, execution, or scientific equivalence claims.

## Known failure modes

- Input sequence exceeds 32 items per array (before or after) — request rejected
- Total payload exceeds 32 KiB limit — request rejected
- dataClass not set to 'public' or 'synthetic' — validation error
- nonpersonalMetadata not set to true (const constraint) — validation error
- Malformed operation objects in sequence arrays — parsing error
- Result expired after 24-hour retention window — result no longer retrievable

## How this service works

Distinguish inserted/removed/changed operations from shared-instruction reordering, preserving operand order and parameter units. Reordering is observed metadata, not proof of changed physics. Caller-supplied public/synthetic nonpersonal metadata only. No quantum simulation, device/API access, execution, calibration measurement, scientific validation or claim of circuit equivalence. Input limit: 32 KiB. Result retention: 24 hours; minimal receipt metadata: 90 days.

## Output

A structured diff report identifying which quantum circuit operations were inserted, removed, or changed between the before and after sequences, with reordering classified separately as observed metadata rather than physics changes. Preserves operand order and parameter units throughout. Result is retained for 24 hours; minimal receipt metadata for 90 days.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "after": {
   "type": "array",
   "maxItems": 32,
   "minItems": 0
  },
  "before": {
   "type": "array",
   "maxItems": 32,
   "minItems": 0
  },
  "dataClass": {
   "enum": [
    "public",
    "synthetic"
   ],
   "type": "string"
  },
  "nonpersonalMetadata": {
   "type": "boolean",
   "const": true
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/quantum-circuit-records-sequence-diff-b5f6ae41/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.mahastrategies.com](https://www.zero.xyz/host/www.mahastrategies.com/llms.txt)
