Skip to content

Commit

Permalink
Add return-type description for cirq.sample (#5649)
Browse files Browse the repository at this point in the history
Co-authored-by: Dave Bacon <dabacon@google.com>
  • Loading branch information
95-martin-orion and dabacon committed Jul 6, 2022
1 parent c828652 commit 1769cba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cirq-core/cirq/sim/mux.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 1769cba

Please sign in to comment.