Skip to content

Commit

Permalink
Update SimulatedProcessorWithLocalDeviceRecord._get_input_device to G…
Browse files Browse the repository at this point in the history
…ridDevice
  • Loading branch information
verult committed Jun 19, 2022
1 parent a0e4144 commit fd216b6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cirq-google/cirq_google/workflow/processor_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,12 @@ class SimulatedProcessorWithLocalDeviceRecord(SimulatedProcessorRecord):
"""

def _get_input_device(self) -> 'cirq.Device':
"""Return a `cg.SerializableDevice` for the specified processor_id.
"""Return a `cg.GridDevice` for the specified processor_id.
Only 'rainbow' and 'weber' are recognized processor_ids and the device information
may not be up-to-date, as it is completely local.
"""

gate_sets = [cg.FSIM_GATESET]
device_spec = _create_device_spec_from_template(MOST_RECENT_TEMPLATES[self.processor_id])
device = cg.SerializableDevice.from_proto(device_spec, gate_sets)
device = cg.GridDevice.from_proto(device_spec)
return device

0 comments on commit fd216b6

Please sign in to comment.