Quantum computer hardware based on rare-earth-ion-doped inorganic crystals