Registry / aws / cirq-rigetti

cirq-rigetti

JSON →
library1.5.0pypypi✓ verified 86d ago

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.

pip install cirq-rigetti==1.5.0
INSTALL
IMPORT
SIG · CIRQ-RIGETTI
C
cirq-rigetti
awspythonv1.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RigettiQCSService
from cirq_rigetti import RigettiQCSService
from cirq.rigetti import RigettiQCSService
cirq-rigetti is a separate package; do not import from cirq.rigetti.
get_rigetti_sample_device
from cirq_rigetti import get_rigetti_sample_device
from cirq import rigetti
Old import path no longer works; use cirq_rigetti directly.

Minimal example to initialize Rigetti service and get a sample device.

import os from cirq_rigetti import get_rigetti_sample_device, RigettiQCSService # Obtain API key from environment api_key = os.environ.get('RIGETTI_API_KEY', '') if not api_key: print('Set RIGETTI_API_KEY environment variable to run against real QPUs') else: service = RigettiQCSService(api_key=api_key) device = get_rigetti_sample_device() print(f'Device: {device}')
Debug
Known issues
breakingcirq-rigetti has been removed from Cirq 1.6.0+. Install version 1.5.0 explicitly for legacy use.
fix
Pin to pip install cirq-rigetti==1.5.0
affects: >=1.6.0
deprecatedcirq-rigetti was deprecated in cirq 1.5.0 and is no longer maintained.
fix
Migrate to Rigetti's native Forest SDK or quantum-service package.
affects: 1.5.0
gotchaRequires Python >=3.10.0 as of cirq-rigetti 1.5.0.
fix
Use Python 3.10 or later.
affects: 1.5.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'cirq_rigetti'
cirq-rigetti is not installed or is no longer included with cirq since 1.5.0.
fix
pip install cirq-rigetti==1.5.0
ImportError: cannot import name 'RigettiQCSService' from 'cirq.rigetti' (unknown location)
Attempting to import from cirq.rigetti instead of cirq_rigetti.
fix
Use from cirq_rigetti import RigettiQCSService
AttributeError: module 'cirq_rigetti' has no attribute 'get_rigetti_sample_device'
Outdated version of cirq-rigetti (<1.5.0) may have different API.
fix
pip install cirq-rigetti==1.5.0
Upgrade
Version history
1.5.0latest on PyPI · released Apr 10, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
20
Amazon
1
OpenAI (training)
1
Resources