big_endian_int_to_bits: Big endian int to bits

Description Usage Arguments Value See Also

View source: R/sampling_simulations.R

Description

The big-endian bits of an integer.

Usage

1
big_endian_int_to_bits(val, bit_count)

Arguments

val

The integer to get bits from. This integer is permitted to be larger than '2**bit_count' (in which case the high bits of the result are dropped) or to be negative (in which case the bits come from the 2s complement signed representation).

bit_count

The number of desired bits in the result.

Value

The bits.

See Also

Other Sampling, Simulations and Data collection: big_endian_bits_to_int(), big_endian_digits_to_int(), 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.