initial implementation of quantum state as list of amplitudes
implemented collapse