{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/ionq/refs/heads/main/json-schema/ionq-backend-schema.json",
  "title": "IonQ Backend",
  "description": "An IonQ quantum backend (simulator or trapped-ion QPU) exposed via the Quantum Cloud API.",
  "type": "object",
  "required": ["backend", "status"],
  "properties": {
    "backend": {
      "type": "string",
      "description": "Backend identifier such as `qpu.aria-1`, `qpu.forte-1`, or `simulator`."
    },
    "status": {
      "type": "string",
      "enum": ["available", "unavailable", "retired", "calibrating", "reserved"],
      "description": "Current operational state of the backend."
    },
    "qubits": {
      "type": "integer",
      "minimum": 1,
      "description": "Number of qubits available on the backend."
    },
    "average_queue_time": {
      "type": "number",
      "description": "Current average wait time in seconds before a submitted job begins running."
    },
    "last_updated": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp of the last status update."
    },
    "degraded": {
      "type": "boolean",
      "description": "True when backend performance is reduced compared to its normal calibration."
    },
    "characterization_id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the currently active characterization for the backend."
    },
    "location": {
      "type": "string",
      "description": "Physical location where the backend is hosted."
    },
    "kw": {
      "type": "number",
      "description": "Current power draw of the backend in kilowatts."
    }
  }
}
