Quantum ram