Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions schemas/v1/QuantumHardwareDynamicDataResponse.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
"$defs": {
"DynamicDataSchema": {
"additionalProperties": true,
"examples": [
{
"dynamic_key_1": "dynamic_value_1"
}
],
"title": "DynamicDataSchema",
"type": "object"
}
Expand All @@ -26,12 +31,7 @@
"type": "string"
},
"payload": {
"$ref": "#/$defs/DynamicDataSchema",
"examples": [
{
"dynamic_key_1": "dynamic_value_1"
}
]
"$ref": "#/$defs/DynamicDataSchema"
}
},
"required": [
Expand Down
42 changes: 21 additions & 21 deletions schemas/v1/QuantumHardwareStaticDataResponse.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,7 @@
},
"topology": {
"$ref": "#/$defs/Topology",
"description": "List of the edges between the various qubits",
"examples": [
[
[
0,
1
],
[
1,
2
],
[
2,
0
],
[
3,
2
]
]
]
"description": "List of the edges between the various qubits"
},
"name": {
"description": "Name of the system.",
Expand Down Expand Up @@ -78,6 +58,26 @@
},
"Topology": {
"description": "A class representing the topology of a quantum chip.\n\nIt is a list of tuples, where each tuple represents a unidirectional connection between two qubits. The first\nelement of the tuple is the source qubit, and the second element is the target qubit.",
"examples": [
[
[
0,
1
],
[
1,
2
],
[
2,
0
],
[
3,
2
]
]
],
"items": {
"maxItems": 2,
"minItems": 2,
Expand Down
12 changes: 6 additions & 6 deletions schemas/v2/QuantumHardwareDynamicDataResponse.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
"$defs": {
"DynamicDataSchema": {
"additionalProperties": true,
"examples": [
{
"dynamic_key_1": "dynamic_value_1"
}
],
"title": "DynamicDataSchema",
"type": "object"
}
Expand All @@ -26,12 +31,7 @@
"type": "string"
},
"payload": {
"$ref": "#/$defs/DynamicDataSchema",
"examples": [
{
"dynamic_key_1": "dynamic_value_1"
}
]
"$ref": "#/$defs/DynamicDataSchema"
}
},
"required": [
Expand Down
42 changes: 21 additions & 21 deletions schemas/v2/QuantumHardwareStaticDataResponse.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,27 +163,7 @@
},
"topology": {
"$ref": "#/$defs/Topology",
"description": "List of the edges between the various qubits",
"examples": [
[
[
0,
1
],
[
1,
2
],
[
2,
0
],
[
3,
2
]
]
]
"description": "List of the edges between the various qubits"
},
"name": {
"description": "Name of the system.",
Expand Down Expand Up @@ -305,6 +285,26 @@
},
"Topology": {
"description": "A class representing the topology of a quantum chip.\n\nIt is a list of tuples, where each tuple represents a unidirectional connection between two qubits. The first\nelement of the tuple is the source qubit, and the second element is the target qubit.",
"examples": [
[
[
0,
1
],
[
1,
2
],
[
2,
0
],
[
3,
2
]
]
],
"items": {
"maxItems": 2,
"minItems": 2,
Expand Down
12 changes: 6 additions & 6 deletions schemas/v3/QuantumHardwareDynamicDataResponse.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
"$defs": {
"DynamicDataSchema": {
"additionalProperties": true,
"examples": [
{
"dynamic_key_1": "dynamic_value_1"
}
],
"title": "DynamicDataSchema",
"type": "object"
}
Expand All @@ -17,12 +22,7 @@
"type": "string"
},
"payload": {
"$ref": "#/$defs/DynamicDataSchema",
"examples": [
{
"dynamic_key_1": "dynamic_value_1"
}
]
"$ref": "#/$defs/DynamicDataSchema"
},
"session_id": {
"examples": [
Expand Down
42 changes: 21 additions & 21 deletions schemas/v3/QuantumHardwareStaticDataResponse.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,27 +162,7 @@
},
"topology": {
"$ref": "#/$defs/Topology",
"description": "List of the edges between the various qubits",
"examples": [
[
[
0,
1
],
[
1,
2
],
[
2,
0
],
[
3,
2
]
]
]
"description": "List of the edges between the various qubits"
},
"name": {
"description": "Name of the system.",
Expand Down Expand Up @@ -305,6 +285,26 @@
},
"Topology": {
"description": "A class representing the topology of a quantum chip.\n\nIt is a list of tuples, where each tuple represents a unidirectional connection between two qubits. The first\nelement of the tuple is the source qubit, and the second element is the target qubit.",
"examples": [
[
[
0,
1
],
[
1,
2
],
[
2,
0
],
[
3,
2
]
]
],
"items": {
"maxItems": 2,
"minItems": 2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ class DynamicDataSchema(BaseModel):

class QuantumHardwareDynamicDataResponse(BaseModel):
status: Literal['success'] = Field(..., examples=['success'], title='Status')
payload: DynamicDataSchema = Field(
..., examples=[{'dynamic_key_1': 'dynamic_value_1'}]
)
payload: DynamicDataSchema
session_id: UUID = Field(
..., examples=['8e7e2b6c-2b3c-4d9f-8b12-6a4d9b1e3f5a'], title='Session Id'
)
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class Topology(RootModel[List[TopologyItem]]):
root: List[TopologyItem] = Field(
...,
description='A class representing the topology of a quantum chip.\n\nIt is a list of tuples, where each tuple represents a unidirectional connection between two qubits. The first\nelement of the tuple is the source qubit, and the second element is the target qubit.',
examples=[[[0, 1], [1, 2], [2, 0], [3, 2]]],
title='Topology',
)

Expand Down Expand Up @@ -109,9 +110,7 @@ class StaticDataSchema(BaseModel):
..., description='The number of qubits.', examples=[3], title='Nqubits'
)
topology: Topology = Field(
...,
description='List of the edges between the various qubits',
examples=[[[0, 1], [1, 2], [2, 0], [3, 2]]],
..., description='List of the edges between the various qubits'
)
name: str = Field(
..., description='Name of the system.', examples=['Spin2'], title='Name'
Expand Down
2 changes: 1 addition & 1 deletion tests/control-software-validator/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pytest==8.3.5
pydantic==2.11.3
pydantic==2.13.4
datamodel-code-generator==0.28.4
pyzmq==26.3.0
pytest-asyncio==0.25.0
Expand Down
Loading