Skip to content

Commit 4050e76

Browse files
with_params
1 parent ee81701 commit 4050e76

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cirq-google/cirq_google/engine/calibration_to_noise_properties.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ def noise_properties_from_calibration(
6868
"""Translates between `cirq_google.Calibration` and NoiseProperties.
6969
7070
The NoiseProperties object can then be used as input to the
71-
`cirq.devices.noise_propertiesNoiseModelFromNoiseProperties` class to
72-
create a `cirq.NoiseModel` that can be used with a simulator.
71+
`cirq.NoiseModelFromNoiseProperties` class to create a NoiseModel that can
72+
be used with a simulator.
7373
74-
To manually override noise properties, call `override` on the output:
74+
To manually override noise properties, call `with_params` on the output:
7575
76-
# Set all gate durations to 37ns.
77-
>>> noise_properties_from_calibration(cal).override(gate_times_ns=37)
76+
>>> noise_props = noise_properties_from_calibration(cal).with_params(gate_times_ns=37)
77+
# noise_props with all gate durations set to 37ns.
7878
79-
See `cirq_google.GoogleNoiseProperties` for details.
79+
See `cirq.GoogleNoiseProperties` for details.
8080
8181
Args:
8282
calibration: a Calibration object with hardware metrics.

0 commit comments

Comments
 (0)