View source on GitHub |
Creates an Engine object with a single processor backed by a noiseless simulator.
cirq_google.engine.create_noiseless_virtual_engine_from_device(
processor_id: str,
device: cirq.Device,
device_specification: Optional[cirq_google.api.v2.device_pb2.DeviceSpecification
] = None
) -> cirq_google.engine.SimulatedLocalEngine
Creates a noiseless engine object based on the cirq simulator, a default validator, and a provided device.
Args | |
---|---|
processor_id
|
name of the processor to simulate. This is an arbitrary string identifier and does not have to match the processor's name in QCS. |
device
|
A cirq.Device to validate circuits against.
|
device_specification
|
aDeviceSpecification proto that the processor
should return if get_device_specification() is queried.
|