# Quantum Circuit Linter

> Quantum Circuit Linter is a paid API for AI agents from www.mahastrategies.com, paid per call via x402, $0.033001/call, status unknown (last checked 2026-10-27).

Lints up to 128 quantum gate operations on up to 8 qubits for arity, target, angle, and post-measurement errors, returning scheduling depth and gate boundary positions.

## Facts

- Endpoint: POST https://www.mahastrategies.com/api/v1/micro/quantum-circuit-lint?utm_source=zero.xyz
- Price: $0.033001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/quantum-circuit-linter-ada9f290
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DV8znqIjs5xoD-8j7rRgS

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-linter-ada9f290 -d '<json body>'
```

Example prompt: Can you lint my 3-qubit quantum circuit with these 12 gate operations — it's synthetic data — and tell me if there are any arity, angle, or post-measurement errors and what the scheduling depth comes out to?

## When to prefer this

Use this endpoint when you need fast, static linting of a small quantum circuit (up to 8 qubits, 128 gates) before simulation or hardware execution. It is not a simulator or equivalence prover — choose it for structural validation (arity, angle, target, post-measurement checks) and scheduling depth estimation at low cost per call.

## Known failure modes

- More than 128 operations submitted — rejected with validation error
- Qubit count exceeds maximum of 8 — schema validation failure
- Invalid gate operation structure — malformed operation rejected
- Invalid data class value outside allowed enum — request rejected
- Empty operations array — minimum 1 operation required

## How this service works

Lint up to 128 declared gates on eight qubits for arity, target, angle and post-measurement errors. Returns scheduling depth; no simulation or equivalence proof.

## Output

Returns a structured result with scheduling depth, an array of gate boundary positions (up to 128 entries), an offer ID, version string, input digest, receipt digest, and amount charged in base units. The result object contains detailed linting findings including error types and locations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "dataClass",
      "qubits",
      "operations"
     ],
     "properties": {
      "qubits": {
       "type": "integer",
       "maximum": 8,
       "minimum": 1
      },
      "dataClass": {
       "enum": [
        "public",
        "synthetic"
       ],
       "type": "string"
      },
      "operations": {
       "type": "array",
       "maxItems": 128,
       "minItems": 1
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "version",
      "offerId",
      "amountBaseUnits",
      "inputDigest",
      "result",
      "boundaries",
      "receiptDigest"
     ],
     "properties": {
      "result": {
       "type": "object"
      },
      "offerId": {
       "enum": [
        "quantum-circuit-lint"
       ],
       "type": "string"
      },
      "version": {
       "enum": [
        "maha-microproducts/0.1"
       ],
       "type": "string"
      },
      "boundaries": {
       "type": "array",
       "maxItems": 128,
       "minItems": 0
      },
      "inputDigest": {
       "type": "string",
       "maxLength": 71
      },
      "receiptDigest": {
       "type": "string",
       "maxLength": 71
      },
      "amountBaseUnits": {
       "enum": [
        "33001"
       ],
       "type": "string"
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/quantum-circuit-linter-ada9f290/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)
