View source on GitHub |
Creates a simulated local processor from a device specification proto.
cirq_google.engine.virtual_engine_factory.create_noiseless_virtual_processor_from_proto(
processor_id: str,
device_specification: cirq_google.api.v2.device_pb2.DeviceSpecification
) -> cirq_google.engine.SimulatedLocalProcessor
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.