Quantum associative memory with exponential capacity