{"uid":"cap_xttD4HdhZ3HFOxnWtvAFc","slug":"quantum-circuit-records-sequence-diff-b5f6ae41","name":"Quantum Circuit Records - Sequence Diff","description":"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.","url":"https://www.mahastrategies.com/api/v1/compute/quantum-circuit-records/record-sequence-diff?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.035134","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.035134/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.035134","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.035134","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MC0LvVHgorsqtUAUch5Eg","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.035134","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Circuit optimization validation","prompt":"I optimized a quantum circuit and want to verify exactly what changed — here's the original 12-gate sequence and the optimized 9-gate version. Can you diff them and tell me which gates were removed, which were changed, and which were just reordered? This is public synthetic data with no personal info."},{"title":"Quantum algorithm version control","prompt":"We have two revisions of our Grover search circuit — the v1 sequence with 8 operations and the v2 sequence with 10 operations. Diff them for me so I can see which gates are new insertions versus genuine parameter changes versus simple reorderings. Mark data class as synthetic."},{"title":"Circuit transpilation change audit","prompt":"After transpiling our quantum circuit to a new backend, I need to see what the transpiler actually changed. Here's the before sequence with 15 gates and the after sequence with 18 gates — show me all insertions, removals, and changed operations, treating reordering as metadata only. Public nonpersonal data."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T18:31:04.518Z","isFirstParty":false,"canonicalSlug":"quantum-circuit-records-sequence-diff-b5f6ae41"}