qoqo_aqt.devices
AQT Devices
Classes
|
AQT quantum simulator device |
- class qoqo_aqt.devices.AqtDevice(number_qubits)
AQT quantum simulator device
Provides endpoint that receives instructions that are simulated and returns measurement results.
- static from_bincode(input)
Convert the bincode representation of the AqtDevice to a AqtDevice using the [bincode] crate.
- Parameters:
input (ByteArray) -- The serialized AqtDevice (in [bincode] form).
- Returns:
The deserialized AqtDevice.
- Return type:
- Raises:
TypeError -- Input cannot be converted to byte array.
ValueError -- Input cannot be deserialized to AqtDevice.
- static from_json(input)
Convert the json representation of a AqtDevice to a AqtDevice.
- Parameters:
input (str) -- The serialized AqtDevice in json form.
- Returns:
The deserialized AqtDevice.
- Return type:
- Raises:
ValueError -- Input cannot be deserialized to AqtDevice.
- is_https()
Return True or False to indicate whether the remote host URL is https.
- Returns:
Whether remote host URL is https or not.
- Return type:
boolean
- number_qubits()
Return number of qubits simulated by Simulator.
- Returns:
The number of qubits.
- Return type:
int
- remote_host()
Return the URL of the remote host executing Circuits.
- Returns:
The URL of the remote host executing the Circuits.
- Return type:
str
- to_bincode()
Return the bincode representation of the AqtDevice using the [bincode] crate.
- Returns:
The serialized AqtDevice (in [bincode] form).
- Return type:
ByteArray
- Raises:
ValueError -- Cannot serialize AqtDevice to bytes.
- to_json()
Return the json representation of the AqtDevice.
- Returns:
The serialized form of AqtDevice.
- Return type:
str
- Raises:
ValueError -- Cannot serialize AqtDevice to json.