| Cirq | |
|---|---|
| Name | Cirq |
| Developer | Google Quantum AI |
| Released | 2018 |
| Programming language | Python |
| Operating system | Cross-platform |
| Genre | Quantum computing framework |
| License | Apache License 2.0 |
Cirq
Cirq is an open-source quantum computing framework developed primarily by Google's Quantum AI team for creating, simulating, and running quantum circuits on near-term, gate-model quantum processors. It matters in the context of Quantum Physics and quantum computing because it provides low-level control over quantum gates and noise models, enabling researchers and engineers to prototype algorithms for Noisy Intermediate-Scale Quantum (NISQ) devices and to bridge theory with experiments on hardware such as Google's Sycamore.
Cirq focuses on the construction, manipulation, and execution of quantum circuits composed of parameterized and fixed quantum gate operations. Unlike higher-level frameworks oriented to abstract algorithms, Cirq emphasizes explicit mapping to qubits, gate scheduling, and hardware-aware compilation for superconducting and other gate-model platforms. The project is maintained alongside related efforts such as OpenFermion for quantum chemistry and TensorFlow Quantum for hybrid quantum-classical machine learning, situating Cirq within a broader ecosystem for applied quantum research.
Cirq's architecture is modular and written in Python to facilitate rapid development and integration with scientific stacks like NumPy and SciPy. Core components include representations of qubits, gates, moments (simultaneous layers), circuits, and devices. The design separates abstract circuit description from backend-specific concerns using a protocol and a backend interface that allows custom quantum processors or simulators to be plugged in. Cirq's design reflects principles from computer architecture and control theory for mapping logical circuits to physical constraints such as qubit connectivity and coherence times.
Cirq implements a gate-based programming model centered on constructing explicit quantum circuits from primitive operations like single-qubit rotations and two-qubit entangling gates (e.g., CNOT, CZ). It supports parameterized gates for variational algorithms such as Variational Quantum Eigensolver (VQE) and Quantum Approximate Optimization Algorithm (QAOA). Cirq exposes low-level primitives for pulses and scheduling, enabling calibration-aware control similar to that used by experimental groups at institutions like Google Quantum AI, IBM Research, and university laboratories. Users can express measurement, classical feed-forward, and conditional operations to implement hybrid quantum-classical workflows.
Cirq provides APIs for programmatic circuit construction using Python objects representing gates, moments, and operations. Optimization passes and transformers perform tasks such as gate synthesis, two-qubit gate routing, commutation-based simplification, and depth reduction. These passes address hardware constraints including limited qubit connectivity and native gate sets found in devices like Sycamore or other superconducting processors. Cirq integrates with compiler tooling and research on quantum compiling, drawing on methods from academic papers on qubit routing and quantum circuit optimization to reduce error accumulation and execution time.
Simulating realistic noise is a core capability of Cirq. The framework includes noise models for depolarizing, amplitude damping, phase damping, readout error, and custom stochastic channels, facilitating benchmarking of algorithms under NISQ conditions. Cirq's simulators range from state-vector to density-matrix and stabilizer backends, enabling scalable simulation strategies for specific classes of circuits. These tools support validation against experimental data collected from platforms such as Google Quantum AI processors and are complementary to verification techniques developed in quantum error correction research and studies of decoherence in superconducting qubits.
Cirq is engineered to interface with backends and control stacks for real quantum processors. It provides device models to express topology and native gate sets, and backends that submit circuits to cloud-accessible hardware or laboratory control systems. Cirq played a role in experiments conducted on Google's Sycamore processor, including demonstrations of quantum supremacy, by enabling low-level circuit mapping and calibration-aware compilation. The project also interoperates with other ecosystems through adapters and converters to frameworks like OpenQASM and supports integration with hardware efforts at industrial and academic partners.
Cirq is applied across algorithm development, quantum algorithm benchmarking, quantum chemistry simulations (often with OpenFermion), variational quantum algorithms (VQE, QAOA), and hybrid quantum-classical machine learning with TensorFlow Quantum. Researchers use Cirq for performance studies on NISQ devices, device characterization, noise-aware algorithm design, and prototyping gate decompositions for experimental implementation. Educational initiatives in quantum information science leverage Cirq for teaching circuit-level concepts and hands-on experiments, complementing community resources such as workshops at conferences like Q2B and collaborations with universities and national labs.
Category:Quantum computing Category:Free and open-source software