Skip to content

Commit

Permalink
Merge pull request #19 from isi-usc-edu/jtcantin-patch-1
Browse files Browse the repository at this point in the history
Syntax fixes for solution.schema.0.0.1.json
  • Loading branch information
jtcantin authored Nov 20, 2024
2 parents 15868d2 + 844310d commit 3528cfc
Showing 1 changed file with 29 additions and 26 deletions.
55 changes: 29 additions & 26 deletions schemas/solution.schema.0.0.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,30 +117,30 @@
"classical_resources": {
"title": "Classical Resources",
"description": "Required classical compute resources. Values defined here are considered to override those of solver_details where conflict exists.",
"type": "object"
"properties" : {
"ram_used_gb" : {
"type": "object",
"properties": {
"ram_used_gb": {
"title": "RAM (GB)",
"description": "Total RAM available for the computation, in GB.",
"type": "number"
},
}
}
},
"quantum_resources": {
"title": "Quantum Resources",
"description": "Quantum resources used by the test performer.",
"type": "object",
"properties" : {
"physical" : {
"properties": {
"physical": {
"title": "Physical Quantum Resources",
"description": "Physical quantum resources used by the test performer. Exact structure is TBD.",
"type": "object"
},
"logical" : {
"logical": {
"title": "Logical Quantum Resources",
"description": "Logical quantum resources used by the test performer.",
"type": "object",
"properties" : {
"properties": {
"num_logical_qubits": {
"title": "Number of Logical Qubits",
"description": "The number of logical qubits used by the solver.",
Expand Down Expand Up @@ -173,7 +173,7 @@
"solution_details": {
"title": "Solution Details",
"description": "Additional details about the solution.",
"type": "object"
"type": "object"
},
"run_time": {
"title": "Wall Clock Runtime",
Expand Down Expand Up @@ -319,9 +319,9 @@
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
},
"solver_short_name": {
"title": "Solver Short Name",
"description": "A short string. Not necessarily unique.",
"type": "string"
"title": "Solver Short Name",
"description": "A short string. Not necessarily unique.",
"type": "string"
},
"compute_hardware_type": {
"title": "Compute Hardware Type",
Expand All @@ -337,35 +337,34 @@
"classical_hardware_details": {
"title": "Classical Compute Hardware Details",
"description": "Details on the hardware used by the solver. All tasks are assumed to have the included values unless specified otherwise at the task level.",
"type": "object"
"properties" : {
"cpu_description" : {
"type": "object",
"properties": {
"cpu_description": {
"title": "CPU Description",
"description": "Description of the CPU.",
"type": "string"
},
"total_num_cores" : {
"total_num_cores": {
"title": "Total number of cores used.",
"description": "The total number of cores used.",
"type": "number"
},
"clock_speed" : {
"clock_speed": {
"title": "Clock Speed",
"description": "Clock speed(s) used.",
"type": "string"
},
"ram_available_gb" : {
"ram_available_gb": {
"title": "RAM (GB)",
"description": "Total RAM available for the computation, in GB.",
"type": "number"
},
"computing_environment_name" : {
"computing_environment_name": {
"title": "Computing Environment Name",
"description": "Identifying name of computing environment (e.g. cluster or facility name), if relevant.",
"type": "string"
},
}
}

},
"quantum_hardware_details": {
"title": "Quantum Compute Hardware Details",
Expand Down Expand Up @@ -397,7 +396,9 @@
}
},
"if": {
"required": ["is_resource_estimate"],
"required": [
"is_resource_estimate"
],
"properties": {
"is_resource_estimate": {
"const": true
Expand All @@ -420,10 +421,12 @@
"properties": {
"solution_data": {
"items": {
"required": ["energy"],
"properties" : {
"runtime" : {
"required" : "overall_time"
"required": [
"energy"
],
"properties": {
"runtime": {
"required": "overall_time"
}
}
}
Expand Down

0 comments on commit 3528cfc

Please sign in to comment.