cirq_google.engine.virtual_engine_factory.extract_gate_times_ns_from_device
Extract a dictionary of gate durations in nanoseconds from GridDevice object.
cirq_google.engine.virtual_engine_factory.extract_gate_times_ns_from_device(
device: cirq_google.GridDevice
) -> dict[type[cirq.Gate], float]
The durations are obtained from GridDevice.metadata
field which is
provided for devices obtained with create_device_from_processor_id
.
Args |
device
|
Object representing Google devices with a grid qubit layout.
|
Returns |
A dictionary of gate durations versus supported gate types. Returns an
empty dictionary when device.metadata do not provide gate durations.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-23 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-23 UTC."],[],[]]