{"uid":"cap_LiZBGf_tPZhivOSHj27Y6","slug":"rqm-phase-aware-rewrite-9841e56c","name":"RQM Phase Aware Rewrite","description":"Phase Aware Rewrite: Rewrite this supported circuit under the supplied phase-equivalence and target constraints. Use when: Use when a bounded request matches rqm.studio.phase-aware-rewrite-request.v1 and the caller needs the decla... Returns: rewritten operation or original, candidate withholding, verification status. Boundaries: Deterministic bounded local software evidence only; no QPU, provider, physical, formal-proof, certificati...","url":"https://jobs.rqmtechnologies.com/x402/buyer-jobs/quantum.phase-aware-rewrite.v1","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"request":{"type":"object","title":"PhaseRewriteRequest","required":["operation","target_gate","phase_context"],"properties":{"circuit":{"type":"array","items":{"type":"object","title":"PhaseOperation","required":["gate","targets"],"properties":{"gate":{"enum":["x","y","z","h","s","sdg","t","tdg","rx","ry","rz","cx","cz"],"type":"string","title":"Gate"},"targets":{"type":"array","items":{"type":"integer"},"title":"Targets","maxItems":2,"minItems":1},"angle_radians":{"type":"number","title":"Angle Radians","default":0,"maximum":6.283185307179586,"minimum":-6.283185307179586}},"additionalProperties":false},"title":"Circuit","maxItems":4096},"operation":{"type":"object","title":"PhaseOperation","required":["gate","targets"],"properties":{"gate":{"enum":["x","y","z","h","s","sdg","t","tdg","rx","ry","rz","cx","cz"],"type":"string","title":"Gate"},"targets":{"type":"array","items":{"type":"integer"},"title":"Targets","maxItems":2,"minItems":1},"angle_radians":{"type":"number","title":"Angle Radians","default":0,"maximum":6.283185307179586,"minimum":-6.283185307179586}},"additionalProperties":false},"target_gate":{"enum":["rz","s","sdg","t","tdg"],"type":"string","title":"Target Gate"},"phase_context":{"enum":["exact","ignore_global_phase"],"type":"string","title":"Phase Context"},"require_same_targets":{"type":"boolean","const":true,"title":"Require Same Targets","default":true}},"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})?$"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Z7iuIO58wDfrlaPz7HoM1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Rewrites a quantum gate operation into an equivalent form using a specified target gate, under given phase-equivalence constraints (exact or global-phase-ignoring).","exampleAgentPrompt":"Rewrite an RZ gate on qubit 0 with angle 1.5708 radians as an S gate, treating global phase as ignorable — I need the phase-equivalent circuit back.","exampleUseCases":[{"title":"Normalize rotation gate to standard phase gate","prompt":"I have an RZ gate on qubit 2 with angle 0.7854 radians. Can you rewrite it as a T gate using exact phase equivalence?"},{"title":"Simplify gate under global phase freedom","prompt":"Rewrite an X gate on qubit 0 as an RZ gate, allowing global phase to be ignored — give me the equivalent circuit."},{"title":"Convert S gate for cross-compiler compatibility","prompt":"I need to express an S gate on qubit 1 as an RZ gate with exact phase matching. Can you produce that rewrite for me?"}],"resultDescription":"A typed work product containing the rewritten gate sequence that is phase-equivalent to the input operation under the specified phase context (exact or ignore_global_phase), expressed using the requested target gate (rz, s, sdg, t, or tdg).","failureModes":["Input gate is not in the supported gate set (x, y, z, h, s, sdg, t, tdg, rx, ry, rz, cx, cz) — returns validation error","Target gate is not in the allowed set (rz, s, sdg, t, tdg) — returns schema validation error","No phase-equivalent rewrite exists for the requested combination — returns unsupported rewrite error","angle_radians out of range [-2π, 2π] — returns validation error","Undeclared or ambiguous phase assumptions provided — rejected per policy","Payment not provided or insufficient (x402 protocol) — returns 402 Payment Required","idempotency_key format invalid — returns schema error"],"whenToPreferThis":"Use this endpoint when you need a provably phase-equivalent gate rewrite within a bounded, declared phase context (exact or global-phase-ignoring) for a supported gate set, and need a typed, validated work product back. Prefer this over generic circuit optimizers when phase correctness is critical and you need strict equivalence guarantees. Do not use for arbitrary circuit rewrites, multi-gate sequences, or when phase assumptions are undeclared.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:42:32.213Z","isFirstParty":false}