{"id":27646,"library":"cirq-rigetti","title":"cirq-rigetti","description":"A Cirq package to simulate and connect to Rigetti quantum computers and Quil QVM. Version 1.5.0 is the final release; the package was deprecated in cirq 1.5.0 and fully removed in cirq 1.6.0. For legacy needs, use version 1.5.0. PyPI releases are driven by Cirq's release cadence.","status":"deprecated","version":"1.5.0","language":"python","source_language":"en","source_url":"https://github.com/quantumlib/cirq","tags":["quantum computing","rigetti","quil","cirq"],"install":[{"cmd":"pip install cirq-rigetti==1.5.0","lang":"bash","label":"Install final version"}],"dependencies":[],"imports":[{"note":"cirq-rigetti is a separate package; do not import from cirq.rigetti.","wrong":"from cirq.rigetti import RigettiQCSService","symbol":"RigettiQCSService","correct":"from cirq_rigetti import RigettiQCSService"},{"note":"Old import path no longer works; use cirq_rigetti directly.","wrong":"from cirq import rigetti","symbol":"get_rigetti_sample_device","correct":"from cirq_rigetti import get_rigetti_sample_device"}],"quickstart":{"code":"import os\nfrom cirq_rigetti import get_rigetti_sample_device, RigettiQCSService\n\n# Obtain API key from environment\napi_key = os.environ.get('RIGETTI_API_KEY', '')\nif not api_key:\n    print('Set RIGETTI_API_KEY environment variable to run against real QPUs')\nelse:\n    service = RigettiQCSService(api_key=api_key)\n    device = get_rigetti_sample_device()\n    print(f'Device: {device}')","lang":"python","description":"Minimal example to initialize Rigetti service and get a sample device."},"warnings":[{"fix":"Pin to pip install cirq-rigetti==1.5.0","message":"cirq-rigetti has been removed from Cirq 1.6.0+. Install version 1.5.0 explicitly for legacy use.","severity":"breaking","affected_versions":">=1.6.0"},{"fix":"Migrate to Rigetti's native Forest SDK or quantum-service package.","message":"cirq-rigetti was deprecated in cirq 1.5.0 and is no longer maintained.","severity":"deprecated","affected_versions":"1.5.0"},{"fix":"Use Python 3.10 or later.","message":"Requires Python >=3.10.0 as of cirq-rigetti 1.5.0.","severity":"gotcha","affected_versions":"1.5.0"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"pip install cirq-rigetti==1.5.0","cause":"cirq-rigetti is not installed or is no longer included with cirq since 1.5.0.","error":"ModuleNotFoundError: No module named 'cirq_rigetti'"},{"fix":"Use from cirq_rigetti import RigettiQCSService","cause":"Attempting to import from cirq.rigetti instead of cirq_rigetti.","error":"ImportError: cannot import name 'RigettiQCSService' from 'cirq.rigetti' (unknown location)"},{"fix":"pip install cirq-rigetti==1.5.0","cause":"Outdated version of cirq-rigetti (<1.5.0) may have different API.","error":"AttributeError: module 'cirq_rigetti' has no attribute 'get_rigetti_sample_device'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}