Skip to content

Commit 7a0553d

Browse files
Add return-type description for cirq.sample (quantumlib#5649)
Co-authored-by: Dave Bacon <[email protected]>
1 parent 7dc5e7b commit 7a0553d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cirq/sim/mux.py

+3
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ def sample(
6767
`numpy.complex64` or `numpy.complex128`.
6868
Favors speed over precision by default, i.e. uses `numpy.complex64`.
6969
seed: The random seed to use for this simulator.
70+
71+
Returns:
72+
A `cirq.Result` object containing the requested measurement samples.
7073
"""
7174
noise_model = devices.NoiseModel.from_noise_model_like(noise)
7275

0 commit comments

Comments
 (0)