Finding a state among a complete set of orthogonal states