File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
cirq-google/cirq_google/engine Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments