cirq_google.engine.virtual_engine_factory.extract_gate_times_ns_from_device

Extract a dictionary of gate durations in nanoseconds from GridDevice object.

The durations are obtained from GridDevice.metadata field which is provided for devices obtained with create_device_from_processor_id.

device Object representing Google devices with a grid qubit layout.

A dictionary of gate durations versus supported gate types. Returns an empty dictionary when device.metadata do not provide gate durations.