Chapter 17

Working with QASM

Chapter Objectives

After reading this chapter and completing the review questions, you will be able to do the following:

  • Understand the fundamentals of QASM

  • Write QASM programs

  • Create quantum simulations with QASM

Quantum Assembly Language (QASM) is a programming language specifically for quantum programs. It is used to simulate quantum gates and quantum algorithms. You use an online editor (https://www.quantum-inspire.com/projects/6923062) to write QASM code. That editor is shown in Figure 17.1.

The screenshot of the quantum inspire editor is shown.

Get Quantum Computing Fundamentals now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.