braket.device_schema.device_connectivity module¶
-
class
braket.device_schema.device_connectivity.
DeviceConnectivity
[source]¶ Bases:
pydantic.main.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.
-
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
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.
-