View source on GitHub |
Creates a noiseless virtual engine object from a device specification proto.
cirq_google.engine.create_noiseless_virtual_engine_from_proto(
processor_ids: Union[str, List[str]],
device_specifications: Union[v2.device_pb2.DeviceSpecification, List[v2.device_pb2.
DeviceSpecification]]
) -> cirq_google.engine.SimulatedLocalEngine
The device specification protocol buffer specifies qubits and gates on the device and can be retrieved from a stored "proto.txt" file or from the QCS API.
Raises | |
---|---|
ValueError
|
if processor_ids and device_specifications are not the same length. |