Description Usage Arguments Value Raises See Also
View source: R/sampling_simulations.R
Returns the big-endian integer specified by the given digits and base.
1 | big_endian_digits_to_int(digits, base)
|
digits |
Digits of the integer, with the least significant digit at the end. |
base |
The base, or list of per-digit bases, to use when combining the digits into an integer. When a list of bases is specified, the last entry in the list is the base for the last entry of the digits list (i.e. the least significant digit). That is to say, the bases are also specified in big endian order. |
The integer.
ValueError: One of the digits is out of range for its base. The base was specified per-digit (as a list) but the length of the bases list is different from the number of digits.
Other Sampling, Simulations and Data collection:
big_endian_bits_to_int()
,
big_endian_int_to_bits()
,
big_endian_int_to_digits()
,
circuit_like()
,
final_density_matrix()
,
final_wavefunction()
,
flatten_to_ops_or_moments()
,
flatten_to_ops()
,
flatten_with_params()
,
flatten_with_sweep()
,
flatten()
,
hog_score_xeb_fidelity_from_probabilities()
,
measure_density_matrix()
,
measure_state_vector()
,
random_state_or_seed_like()
,
sample_density_matrix()
,
sample_state_vector()
,
sample_sweep()
,
sample()
,
to_resolvers()
,
to_sweep()
,
validate_mixture()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.