Companies including Microsoft Corp., Alphabet Inc.’s Google and International Business Machines Corp. are developing quantum computers, which they say will have future applications in artificial intelligence and cybersecurity.