Skip to Main Content
The Keyword

Researchers can use qsim to explore quantum algorithms

A year ago, Google’s Quantum AI team achieved a beyond-classical computation by using a quantum computer to outperform the world’s fastest classical computer. With this, we entered a new era of quantum computing. We still have a long journey ahead of us to find practical applications, and we know we can’t get there alone. So today we’re launching qsim, a new open source quantum simulator that will help researchers develop quantum algorithms. 

The importance of simulators in quantum computing

Simulators are important tools for writing and debugging quantum code, and they’re essential for developing quantum algorithms. The few experimental quantum processors currently available, like the one that achieved a beyond-classical computation, are prone to noise and don’t perform error correction. This is where simulators like qsim come in. They allow researchers to explore quantum algorithms under idealized conditions and are more readily available. They also help prepare experiments to run on actual quantum hardware.

qsim can simulate around 30 qubits on a laptop, or up to 40 qubits in Google Cloud. What used to take an expensive cluster of computers to simulate can now be done on a single computer with qsim. We use qsim frequently at Google to test and benchmark quantum algorithms and processors. One example of this is our research in quantum neural networks. By using qsim with Cirq and TensorFlow Quantum, we’ve trained quantum ML models involving hundreds of thousands of circuits. 

Open source software tools for developing quantum algorithms

qsim is part of our open source ecosystem of software tools. These include Cirq, our quantum programming framework, ReCirq, a repository of research examples, and application-specific libraries such as OpenFermion for quantum chemistry and TensorFlow Quantum for quantum machine learning. These tools are designed to work together and to help you get started easily. Researchers who have developed quantum algorithms with Cirq can now use qsim by changing one line of code in Colab and experience an instant speedup in their circuit simulations.

Google Quantum AI website

To help you get started with qsim and our other open source quantum software, we’ve launched a new website that brings together all of our tools, research initiatives, and educational material. Researchers can access our latest publications and research repositories, students can find educational resources or apply for internships, and developers interested in quantum computing can join our growing community of contributors

Let’s stay in touch. Get the latest news from Google in your inbox.