WavefunctionSimulator

class pyquil.api.WavefunctionSimulator(connection=None, random_seed=None)[source]

A simulator that propagates a wavefunction representation of a quantum state.

Parameters:
  • connection (Optional[ForestConnection]) – A connection to the Forest web API.
  • random_seed (Optional[int]) – A seed for the simulator’s random number generators. Either None (for an automatically generated seed) or a non-negative integer.