do_phased_classical_simulation#

Do a phased classical simulation of the bloq.

This provides a simple interface to PhasedClassicalSimState. Advanced users may wish to use that class directly.

bloq

The bloq to simulate

vals

A mapping from input register name to initial classical values. The initial phase is assumed to be 1.0.

rng

A numpy random generator (e.g. from np.random.default_rng()). This function will use this generator to supply random values from certain phased-classical operations like MeasX. If not supplied, classical measurements will use a random value.

fixed_random_vals

A dictionary of instance to values to perform fixed calculation for classical values.

final_vals

A mapping of output register name to final classical values.

phase

The final phase.