braket.device_schema.device_connectivity module
- class braket.device_schema.device_connectivity.DeviceConnectivity(*, fullyConnected: bool, connectivityGraph: dict[str, list[str]])[source]
Bases:
BaseModel
This schema defines the common properties that need to be existent if a connection is defined.
- fullyConnected
If each qubit is connected to all other qubits then it called fully connected. true if fully connected else it will be false.
- Type:
bool
- connectivityGraph
It defines for each qubit what are the connected qubits. For a fullyConnected graph it will be empty since all the qubits are connected to each other
- Type:
dict[str, list[str]]
Examples
>>> import json >>> input_json = { ... "fullyConnected": False, ... "connectivityGraph": {"1": ["2", "3"]}, ... } >>> DeviceConnectivity.parse_raw(json.dumps(input_json))
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- fullyConnected: bool
- connectivityGraph: dict[str, list[str]]