Cirq is an open-source Python framework by Google for creating, editing, and running NISQ quantum circuits on simulators or real quantum hardware.
- v1.7.0
- Published at
- Jun 30, 2026
- 5,086
- Stars
- 1,563
- Download
- Synced at
- 8d ago
Latest release
v1.7.0Jun 30, 2026, 06:44 PMDownloads slow? Switch the source anytime above
README
Project Overview
Cirq is an open-source Python framework from Google Quantum AI for writing, manipulating, and running quantum circuits on today's noisy intermediate-scale quantum (NISQ) computers. Hardware details are a first-class concern, letting algorithm implementations target real devices. Circuits run on built-in simulators or on supported quantum hardware platforms.
| Item | Value |
|---|---|
| Language | Python 3.11+ |
| Platform | Linux, macOS, Windows, Google Colab |
| Focus | NISQ quantum circuit programming |
| License | Apache-2.0 |
Write quantum programs for today's hardware with hardware-aware abstractions.
Key Features
- Flexible gates: supports custom gate definitions and flexible circuit construction
- Symbolic parameters: circuits can use symbolic variables resolved at run time
- Circuit transformation: tools for transforming, compiling, and optimizing circuits
- Device modeling: models the topology and constraints of target devices
- Noise modeling: built-in noise models for simulating noisy circuits
- Multiple simulators: several quantum circuit simulators included
- High-performance simulation: integrates with qsim for large-scale fast simulation
- Ecosystem interop: works seamlessly with NumPy and SciPy
Target Audience
- Quantum algorithm researchers
- Quantum software developers
- Teachers and students in quantum computing courses
- Engineers working on quantum error correction
- Research teams needing NISQ hardware-aware programming
Quick Start
- Install Cirq
pip install cirq- Run your first quantum circuit simulation
import cirq
qubit = cirq.GridQubit(0, 0)
circuit = cirq.Circuit(
cirq.X(qubit)**0.5,
cirq.measure(qubit, key='m')
)
simulator = cirq.Simulator()
result = simulator.run(circuit, repetitions=20)
print(result)- Follow the official tutorials to keep learning circuit building and simulation
Core Advantages
- Hardware aware: abstractions designed for NISQ devices and real hardware constraints
- Strong performance: combines with qsim and related tools for high-performance simulation
- Rich ecosystem: integrates with Qualtran, OpenFermion, TensorFlow Quantum, and more
- Complete docs: official tutorials, videos, and examples from beginner to advanced
System Requirements
| Item | Requirement |
|---|---|
| OS | Linux, macOS, Windows |
| Language | Python 3.11 or later |
| Optional | Google Colab |
Notes
- Version requirement: only Python 3.11 and later are supported
- Hardware access: running on real quantum hardware requires accounts and authorization on the corresponding platform
- Examples: the examples directory in the repo covers textbook algorithms through advanced methods
Release history
Sort