braket.device_schema.gate_model_parameters_v1 module

class braket.device_schema.gate_model_parameters_v1.GateModelParameters(*, braketSchemaHeader: BraketSchemaHeader = BraketSchemaHeader(name='braket.device_schema.gate_model_parameters', version='1'), qubitCount: ConstrainedIntValue, disableQubitRewiring: bool = False)[source]

Bases: BraketSchemaBase

Defines parameters common to all gate model devices.

qubitCount

Number of qubits used by the circuit.

Type:

pydantic.v1.types.ConstrainedIntValue

disableQubitRewiring

Whether to run the circuit with the exact qubits chosen, without any rewiring downstream. If True, no qubit rewiring is allowed; if False, qubit rewiring is allowed.

Type:

bool

Examples

>>> import json
>>> input_json = {
...    "braketSchemaHeader": {
...        "name": "braket.device_schema.gate_model_parameters",
...        "version": "1",
...    },
...    "qubitCount": 1,
...    "disableQubitRewiring": True
... }
>>> GateModelParameters.parse_raw_schema(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.

braketSchemaHeader: BraketSchemaHeader
qubitCount: ConstrainedIntValue
disableQubitRewiring: bool