code: def reset(self):
          
          self.wf.fill(0)
          self.wf[(0,) * self.n_qubits] = complex(1.0, 0)
          return self
docs: Reset the wavefunction to the |000...00> state.
  
          :return: ``self`` to support method chaining.