From 1769cba0675dadd02e77ccae87be82757c96bb5d Mon Sep 17 00:00:00 2001 From: Orion Martin <40585662+95-martin-orion@users.noreply.github.com> Date: Wed, 6 Jul 2022 10:15:42 -0700 Subject: [PATCH] Add return-type description for `cirq.sample` (#5649) Co-authored-by: Dave Bacon --- cirq-core/cirq/sim/mux.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cirq-core/cirq/sim/mux.py b/cirq-core/cirq/sim/mux.py index b11d4484e0a..d5f361c1fe9 100644 --- a/cirq-core/cirq/sim/mux.py +++ b/cirq-core/cirq/sim/mux.py @@ -67,6 +67,9 @@ def sample( `numpy.complex64` or `numpy.complex128`. Favors speed over precision by default, i.e. uses `numpy.complex64`. seed: The random seed to use for this simulator. + + Returns: + A `cirq.Result` object containing the requested measurement samples. """ noise_model = devices.NoiseModel.from_noise_model_like(noise)