A wavefunction simulator that uses numpy’s tensordot or einsum to update a state vector
Please consider using
PyQVM(..., quantum_simulator_type=NumpyWavefunctionSimulator)rather than using this class directly.
This class uses a n_qubit-dim ndarray to store wavefunction amplitudes. The array is indexed into with a tuple of n_qubits 1’s and 0’s, with qubit 0 as the leftmost bit. This is the opposite convention of the Rigetti Lisp QVM.