diff --git a/doc/python_api_reference_vDev.md b/doc/python_api_reference_vDev.md index e45cdb75..542813f5 100644 --- a/doc/python_api_reference_vDev.md +++ b/doc/python_api_reference_vDev.md @@ -8028,7 +8028,7 @@ def generate_bernoulli_samples( >>> r.shape (7,) >>> r[6] & 0b1110_0000 # zero'd padding bits - 0 + np.uint8(0) >>> r2 = sim.generate_bernoulli_samples(53, p=0.2, bit_packed=True, out=r) >>> r is r2 # Check request to reuse r worked. diff --git a/doc/stim.pyi b/doc/stim.pyi index 7ddf3b27..406b3c7e 100644 --- a/doc/stim.pyi +++ b/doc/stim.pyi @@ -6350,7 +6350,7 @@ class FlipSimulator: >>> r.shape (7,) >>> r[6] & 0b1110_0000 # zero'd padding bits - 0 + np.uint8(0) >>> r2 = sim.generate_bernoulli_samples(53, p=0.2, bit_packed=True, out=r) >>> r is r2 # Check request to reuse r worked. diff --git a/glue/python/src/stim/__init__.pyi b/glue/python/src/stim/__init__.pyi index 7ddf3b27..406b3c7e 100644 --- a/glue/python/src/stim/__init__.pyi +++ b/glue/python/src/stim/__init__.pyi @@ -6350,7 +6350,7 @@ class FlipSimulator: >>> r.shape (7,) >>> r[6] & 0b1110_0000 # zero'd padding bits - 0 + np.uint8(0) >>> r2 = sim.generate_bernoulli_samples(53, p=0.2, bit_packed=True, out=r) >>> r is r2 # Check request to reuse r worked. diff --git a/src/stim/simulators/frame_simulator.pybind.cc b/src/stim/simulators/frame_simulator.pybind.cc index 7c10db55..0bcee645 100644 --- a/src/stim/simulators/frame_simulator.pybind.cc +++ b/src/stim/simulators/frame_simulator.pybind.cc @@ -951,7 +951,7 @@ void stim_pybind::pybind_frame_simulator_methods( >>> r.shape (7,) >>> r[6] & 0b1110_0000 # zero'd padding bits - 0 + np.uint8(0) >>> r2 = sim.generate_bernoulli_samples(53, p=0.2, bit_packed=True, out=r) >>> r is r2 # Check request to reuse r worked.