Quantum computing firms are testing energy-grid optimization, solar materials and hydrogen catalysts as they pursue practical uses.