{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://taxonmark.com/api/v1/types/quantum-program-snapshot",
    "title": "Quantum Program / Device Calibration Snapshot",
    "type": "object",
    "required": [
        "provider",
        "device_name",
        "calibration_timestamp"
    ],
    "properties": {
        "provider": {
            "title": "Quantum cloud provider",
            "type": "string",
            "maxLength": 1000
        },
        "device_name": {
            "title": "Device",
            "type": "string",
            "maxLength": 1000
        },
        "qubit_count": {
            "title": "Qubit count",
            "type": "integer"
        },
        "calibration_timestamp": {
            "title": "Calibration timestamp",
            "type": "string",
            "format": "date-time"
        },
        "calibration_hash": {
            "title": "Calibration data hash",
            "type": "string",
            "pattern": "^(sha256:)?[A-Fa-f0-9]{64}$",
            "description": "SHA-256 hex (optionally prefixed sha256:)"
        },
        "program_hash": {
            "title": "Program (QASM/QIR) hash",
            "type": "string",
            "pattern": "^(sha256:)?[A-Fa-f0-9]{64}$",
            "description": "SHA-256 hex (optionally prefixed sha256:)"
        },
        "sdk_version": {
            "title": "SDK version",
            "type": "string",
            "maxLength": 1000
        }
    },
    "additionalProperties": true
}