# RQM Gate Basis Decomposition

> RQM Gate Basis Decomposition 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).

Decomposes a named quantum circuit operation (e.g. SWAP, H, CX) into an equivalent sequence of gates drawn from a specified bounded gate basis, and verifies the declared phase relation.

## Facts

- Endpoint: POST https://jobs.rqmtechnologies.com/x402/buyer-jobs/quantum.gate-basis-decomposition.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-gate-basis-decomposition-8f3bbc51
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nQHfqcpWslS4AIvSrhjRp

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-gate-basis-decomposition-8f3bbc51 -d '<json body>'
```

Example prompt: Decompose a SWAP gate into the {H, CX, CZ} gate basis and ignore global phase — give me the equivalent gate sequence.

## When to prefer this

Use this endpoint when you need a verifiable, bounded decomposition of a specific supported quantum gate operation into a restricted gate basis — particularly when the decomposition must satisfy a declared phase relation (exact or global-phase-ignored). Prefer this over general unitary synthesis tools when the operation is one of the named standard gates (X, Y, Z, H, S, T, CX, CZ, SWAP) and you need a guaranteed, checked result rather than a heuristic approximation. Do not use this for arbitrary unitary matrices or for formal equivalence proofs beyond the declared relation.

## Known failure modes

- Operation not in supported set (x, y, z, h, s, t, cx, cz, swap) — request rejected
- Target basis contains unsupported gates or is empty — validation error
- Decomposition is not possible within the supplied basis — no result returned
- Phase context mismatch — decomposition found but verification fails under exact phase requirement
- Idempotency key format violation — request rejected before processing
- max_total_price too low — payment authorization fails

## How this service works

Gate Basis Decomposition: Decompose this supported circuit operation into the supplied bounded gate basis and verify... Use when: Use when a bounded request matches rqm.studio.gate-basis-decomposition-request.v1 and the caller needs the... Returns: decomposition or withheld candidate, gate list, verification status. Boundaries: Deterministic bounded local software evidence only; no QPU, provider, physical, formal-proof, certificati...

## Output

Returns a verified decomposition of the requested quantum gate operation as an ordered sequence of gates from the specified target basis, along with confirmation that the declared phase relation (exact or global-phase-ignored) holds between the original and decomposed circuits.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "request": {
   "type": "object",
   "title": "GateDecompositionRequest",
   "required": [
    "operation",
    "target_basis",
    "phase_context"
   ],
   "properties": {
    "operation": {
     "enum": [
      "x",
      "y",
      "z",
      "h",
      "s",
      "t",
      "cx",
      "cz",
      "swap"
     ],
     "type": "string",
     "title": "Operation"
    },
    "target_basis": {
     "type": "array",
     "items": {
      "enum": [
       "x",
       "z",
       "h",
       "s",
       "t",
       "cx",
       "cz"
      ],
      "type": "string"
     },
     "title": "Target Basis",
     "maxItems": 7,
     "minItems": 1
    },
    "phase_context": {
     "enum": [
      "exact",
      "ignore_global_phase"
     ],
     "type": "string",
     "title": "Phase Context"
    }
   },
   "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-gate-basis-decomposition-8f3bbc51/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)
