big_endian_digits_to_int: Big endian digits to int

Description Usage Arguments Value Raises See Also

View source: R/sampling_simulations.R

Description

Returns the big-endian integer specified by the given digits and base.

Usage

1

Arguments

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.

Value

The integer.

Raises

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.

See Also

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()


henry090/Cirq documentation built on June 13, 2020, 1:28 a.m.