# Wavefunction.sample_bitstrings¶

Wavefunction.sample_bitstrings(n_samples)[source]

Sample bitstrings from the distribution defined by the wavefunction.

Parameters: n_samples – The number of bitstrings to sample An array of shape (n_samples, n_qubits)