# RQM OpenQASM 3 Preflight Validator

> RQM OpenQASM 3 Preflight Validator 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-14).

Validates and normalizes a bounded OpenQASM 3 source string before downstream compilation or execution on quantum hardware or simulators.

## Facts

- Endpoint: POST https://jobs.rqmtechnologies.com/x402/buyer-jobs/openqasm3-preflight-v1
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rqm-openqasm-3-preflight-validator-203fa710
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LJ3xBPdvhjvy1i6gI4Ypv

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-openqasm-3-preflight-validator-203fa710 -d '<json body>'
```

Example prompt: Before I submit this quantum circuit to the simulator, run a preflight validation on this OpenQASM 3 source to check it parses correctly and conforms to the supported subset: 'OPENQASM 3.0; qubit[2] q; h q[0]; cx q[0], q[1]; measure q -> c;'

## When to prefer this

Use this endpoint when you need to validate and normalize OpenQASM 3 source code before passing it to a compilation step, simulator, or real quantum hardware. Prefer this over running directly on hardware when you want to catch syntax or conformance errors cheaply (at $0.01 per call). Do not use this for checking live provider readiness, hardware correctness, or validating languages other than OpenQASM 3.

## Known failure modes

- Source string fails to parse as valid OpenQASM 3 — returns parse error details
- Circuit uses constructs outside the supported subset — returns unsupported feature list
- Empty or missing source field — returns validation error
- Invalid idempotency key format — returns schema error
- Price limit exceeded — job not accepted
- Malformed request schema — returns 400-level error

## How this service works

OpenQASM 3 preflight: Parse, normalize, and assess OpenQASM 3 before downstream execution. Use when: Use when a bounded request matches rqm.studio.openqasm3-preflight-request.v1 and the caller needs the decla... Returns: go, no-go, or unsupported verdict, normalized source, warnings and evidence. Boundaries: Deterministic bounded local software evidence; not hardware evidence, a formal proof, certification, sign...

## Output

Returns a validation and normalization report for the submitted OpenQASM 3 source, indicating whether the circuit parses successfully and conforms to the supported subset. Includes any parse errors, normalization output, and conformance status against the acceptance rules.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "request": {
   "type": "object",
   "title": "OpenQASMRequest",
   "required": [
    "source"
   ],
   "properties": {
    "source": {
     "type": "string",
     "title": "Source",
     "minLength": 1
    },
    "profile": {
     "enum": [
      "conservative",
      "balanced",
      "aggressive"
     ],
     "type": "string",
     "title": "Profile",
     "default": "balanced"
    },
    "source_format": {
     "type": "string",
     "const": "openqasm3",
     "title": "Source Format",
     "default": "openqasm3"
    }
   },
   "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-openqasm-3-preflight-validator-203fa710/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)
