{
  "x402Version": 2,
  "id": 7648,
  "slug": "7648",
  "resource": "https://jobs.rqmtechnologies.com/x402/buyer-jobs/quantum.phase-aware-rewrite.v1",
  "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...",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x8F43274b121663b18a0246E9908bac8eAC866C12",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "idempotency_key": "example-quantum.phase-aware-rewrite.v1",
            "max_total_price": "0.010000",
            "request": {
              "operation": {
                "gate": "s",
                "targets": [
                  0
                ]
              },
              "phase_context": "exact",
              "target_gate": "rz"
            },
            "schema_version": "rqm.jobs.bazaar-buyer-job-request.v1"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "artifact_names": [
              "rewritten operation or original",
              "candidate withholding",
              "verification status"
            ],
            "caller_next_step": "Use the rewritten operation only on rewritten; otherwise retain the original.",
            "capability_id": "quantum.phase-aware-rewrite.v1",
            "duplicate": false,
            "job_id": "job-quantum.phase-aware-rewrite.v1",
            "product": "quantum",
            "quote_id": "00000000-0000-4000-8000-000000000001",
            "reservation_id": "00000000-0000-4000-8000-000000000002",
            "result_schema_digest": "44db378a02b9be27048fb36361f254643e29f162979633dddc9e0c97db35b4a1",
            "result_schema_id": "rqm.studio.quantum.phase-aware-rewrite.v1-result.v1",
            "retrieval_token": "rqm_retrieval_<opaque-job-scoped-token>",
            "retrieval_token_expires_in": 86400,
            "retrieval_url": "https://jobs.rqmtechnologies.com/x402/buyer-jobs/quantum.phase-aware-rewrite.v1/jobs/job-quantum.phase-aware-rewrite.v1",
            "schema_version": "rqm.jobs.bazaar-buyer-job-accepted.v1",
            "status": "queued",
            "x402_settlement_id": "00000000-0000-4000-8000-000000000003",
            "x402_transaction_id": "0x<base-transaction>"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "idempotency_key": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
                    "type": "string"
                  },
                  "max_total_price": {
                    "pattern": "^(?:0|[1-9]\\d{0,13})(?:\\.\\d{1,6})?$",
                    "type": "string"
                  },
                  "request": {
                    "additionalProperties": false,
                    "properties": {
                      "circuit": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "angle_radians": {
                              "default": 0,
                              "maximum": 6.283185307179586,
                              "minimum": -6.283185307179586,
                              "title": "Angle Radians",
                              "type": "number"
                            },
                            "gate": {
                              "enum": [
                                "x",
                                "y",
                                "z",
                                "h",
                                "s",
                                "sdg",
                                "t",
                                "tdg",
                                "rx",
                                "ry",
                                "rz",
                                "cx",
                                "cz"
                              ],
                              "title": "Gate",
                              "type": "string"
                            },
                            "targets": {
                              "items": {
                                "type": "integer"
                              },
                              "maxItems": 2,
                              "minItems": 1,
                              "title": "Targets",
                              "type": "array"
                            }
                          },
                          "required": [
                            "gate",
                            "targets"
                          ],
                          "title": "PhaseOperation",
                          "type": "object"
                        },
                        "maxItems": 4096,
                        "title": "Circuit",
                        "type": "array"
                      },
                      "operation": {
                        "additionalProperties": false,
                        "properties": {
                          "angle_radians": {
                            "default": 0,
                            "maximum": 6.283185307179586,
                            "minimum": -6.283185307179586,
                            "title": "Angle Radians",
                            "type": "number"
                          },
                          "gate": {
                            "enum": [
                              "x",
                              "y",
                              "z",
                              "h",
                              "s",
                              "sdg",
                              "t",
                              "tdg",
                              "rx",
                              "ry",
                              "rz",
                              "cx",
                              "cz"
                            ],
                            "title": "Gate",
                            "type": "string"
                          },
                          "targets": {
                            "items": {
                              "type": "integer"
                            },
                            "maxItems": 2,
                            "minItems": 1,
                            "title": "Targets",
                            "type": "array"
                          }
                        },
                        "required": [
                          "gate",
                          "targets"
                        ],
                        "title": "PhaseOperation",
                        "type": "object"
                      },
                      "phase_context": {
                        "enum": [
                          "exact",
                          "ignore_global_phase"
                        ],
                        "title": "Phase Context",
                        "type": "string"
                      },
                      "require_same_targets": {
                        "const": true,
                        "default": true,
                        "title": "Require Same Targets",
                        "type": "boolean"
                      },
                      "target_gate": {
                        "enum": [
                          "rz",
                          "s",
                          "sdg",
                          "t",
                          "tdg"
                        ],
                        "title": "Target Gate",
                        "type": "string"
                      }
                    },
                    "required": [
                      "operation",
                      "target_gate",
                      "phase_context"
                    ],
                    "title": "PhaseRewriteRequest",
                    "type": "object"
                  },
                  "schema_version": {
                    "const": "rqm.jobs.bazaar-buyer-job-request.v1"
                  }
                },
                "required": [
                  "schema_version",
                  "idempotency_key",
                  "max_total_price",
                  "request"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "additionalProperties": false,
                "properties": {
                  "artifact_names": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "caller_next_step": {
                    "type": "string"
                  },
                  "capability_id": {
                    "type": "string"
                  },
                  "duplicate": {
                    "type": "boolean"
                  },
                  "job_id": {
                    "type": "string"
                  },
                  "product": {
                    "enum": [
                      "wave",
                      "quantum",
                      "robotics"
                    ]
                  },
                  "quote_id": {
                    "format": "uuid",
                    "type": "string"
                  },
                  "reservation_id": {
                    "format": "uuid",
                    "type": "string"
                  },
                  "result_schema_digest": {
                    "pattern": "^[a-f0-9]{64}$",
                    "type": "string"
                  },
                  "result_schema_id": {
                    "type": "string"
                  },
                  "retrieval_token": {
                    "pattern": "^rqm_retrieval_",
                    "type": "string"
                  },
                  "retrieval_token_expires_in": {
                    "minimum": 1,
                    "type": "integer"
                  },
                  "retrieval_url": {
                    "format": "uri",
                    "type": "string"
                  },
                  "schema_version": {
                    "const": "rqm.jobs.bazaar-buyer-job-accepted.v1"
                  },
                  "status": {
                    "enum": [
                      "queued",
                      "running",
                      "completed"
                    ]
                  },
                  "x402_settlement_id": {
                    "format": "uuid",
                    "type": "string"
                  },
                  "x402_transaction_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "schema_version",
                  "product",
                  "capability_id",
                  "job_id",
                  "status",
                  "quote_id",
                  "reservation_id",
                  "x402_settlement_id",
                  "x402_transaction_id",
                  "retrieval_url",
                  "retrieval_token",
                  "retrieval_token_expires_in",
                  "result_schema_id",
                  "result_schema_digest",
                  "caller_next_step",
                  "duplicate"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "jobs.rqmtechnologies.com",
  "lastUpdated": "2026-09-08T16:42:45.063Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-08T16:42:44.352Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "jobs.rqmtechnologies.com",
    "manifest_name": "jobs.rqmtechnologies.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}