flatten_to_ops_or_moments: Flatten to ops or moments

Description Usage Arguments Value Yields Raises See Also

View source: R/sampling_simulations.R

Description

Performs an in-order iteration OP_TREE, yielding ops and moments.

Usage

1

Arguments

root

The operation or tree of operations to iterate.

Value

None

Yields

Operations or moments from the tree.

Raises

TypeError: root isn't a valid OP_TREE.

See Also

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