Cirq is an open-source Python framework developed by Google for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits. It provides tools for designing quantum algorithms and running them on simulators or quantum hardware. Cirq maintains an active release schedule, typically with major updates every 1-2 months, focusing on new features, performance improvements, and compatibility with Google's quantum hardware.
pip install cirqVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to construct a simple Bell state quantum circuit, print its representation, and then simulate it using Cirq's built-in simulator to obtain measurement results.
For legacy code requiring `cirq-rigetti`, explicitly install `cirq-rigetti==1.5.0`. For new development, use Rigetti's current SDK or relevant integration libraries.
Install `qualtran` (`pip install qualtran`) and import functionality from there. Replace `cirq_ft` imports with `qualtran`.
Upgrade your Python environment to version 3.11 or newer. If you must use an older Python version, pin Cirq to `<1.6.0`.
Ensure you are using Cirq v1.5.0 or newer when working with NumPy 2.x. If using an older Cirq version, pin NumPy to `<2.0.0`.
Consult the official Cirq migration guides for updates related to major version changes. Update your code to use the modern v1.x API.