![]() |
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
,
gate_sets: Optional[Iterable[serializable_gate_set.SerializableGateSet]] = None
) -> 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.
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_specification
|
v2.device_pb2.DeviceSpecification proto to create
a validating device from.
|
gate_sets
|
Iterable of serializers to use in the processor. Defaults to the FSIM_GATESET. |