{"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,"search_vec":"'1.5.0':19,30,42 '1.6.0':36 'cadenc':51 'cirq':2,5,29,35,48,56 'cirq-rigetti':1 'comput':14,53 'connect':10 'deprec':27 'driven':46 'final':22 'fulli':32 'legaci':38 'need':39 'packag':6,25 'pypi':43 'quantum':13,52 'quil':16,55 'qvm':17 'releas':23,44,50 'remov':33 'rigetti':3,12,54 'simul':8 'use':40 'version':18,41","created_at":"2026-05-09T05:51:20.160114+00:00","updated_at":"2026-05-09T05:51:20.160114+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"http://github.com/quantumlib/cirq","docs":null,"changelog":null,"pypi":"https://pypi.org/project/cirq-rigetti/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["aws","ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-29","install_tag":null}}