cirq_google.engine.noise_properties_from_calibration
Translates between cirq_google.Calibration
and NoiseProperties.
cirq_google.engine.noise_properties_from_calibration(
calibration: cirq_google.engine.Calibration
,
zphase_data: Optional[cirq_google.engine.util.ZPhaseDataType
] = None,
gate_times_ns: Optional[Dict[Type['cirq.Gate'], float]] = None
) -> cirq_google.devices.GoogleNoiseProperties
The NoiseProperties object can then be used as input to the
cirq_google.NoiseModelFromGoogleNoiseProperties
class to create a
cirq.NoiseModel
that can be used with a simulator.
To manually override noise properties, call with_params
on the output:
<pre class="devsite-click-to-copy prettyprint lang-py">
<code class="devsite-terminal" data-terminal-prefix=">>>">cal = cirq_google.engine.load_median_device_calibration("rainbow")</code>
<code class="devsite-terminal" data-terminal-prefix=">>>"># noise_props with all gate durations set to 37ns.</code>
<code class="devsite-terminal" data-terminal-prefix=">>>">noise_props = cirq_google.engine.noise_properties_from_calibration(cal).with_params(</code>
<code class="devsite-terminal" data-terminal-prefix="..."> gate_times_ns=37)</code>
<code class="no-select nocode"> </code>
</pre>
See cirq_google.GoogleNoiseProperties
for details.
Args |
calibration
|
a Calibration object with hardware metrics.
|
zphase_data
|
Optional data for Z phases not captured by Calibration -
specifically, zeta and gamma. These values require Floquet
calibration and can be provided here if available.
|
gate_times_ns
|
Map of gate durations in nanoseconds. If not provided,
defaults to the Sycamore gate times listed in known_devices.py .
|
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 2024-06-27 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-06-27 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 2024-06-27 UTC."]]