Cirq Pasqal

raw JSON →
1.6.1 verified Mon Apr 27 auth: no python

A Cirq package to simulate and connect to Pasqal quantum computers. Provides PasqalQubit, PasqalDevice, and utilities for running circuits on Pasqal's neutral atom quantum processors. Current version: 1.6.1 (part of Cirq v1.6.1). Release cadence follows Cirq releases.

pip install cirq-pasqal
error ModuleNotFoundError: No module named 'cirq_pasqal'
cause cirq-pasqal is not installed or not imported correctly.
fix
Run pip install cirq-pasqal and import as from cirq_pasqal import ....
error AttributeError: module 'cirq' has no attribute 'pasqal'
cause Attempting to import from cirq.pasqal instead of the separate package.
fix
Use from cirq_pasqal import PasqalQubit, PasqalDevice.
error ValueError: Gate not supported on this device
cause Using a gate that is not in the device's supported operations.
fix
Check device.supported_operations() and use only those gates.
deprecated Cirq-Pasqal is part of the Cirq ecosystem but may be deprecated or removed in future Cirq versions. Always check the latest Cirq release notes for vendor package changes.
fix Monitor Cirq releases at https://github.com/quantumlib/cirq/releases for deprecation notices.
gotcha PasqalDevice may not support all gate sets. Using a gate not available on Pasqal hardware will raise an error.
fix Check device specifications or use `PasqalDevice.supported_operations` to list available gates.
gotcha Simulation with real device parameters requires valid Pasqal credentials and internet connection. Local simulation with `cirq.Simulator` does not enforce device topology.
fix For hardware-accurate simulation, instantiate a PasqalDevice with a valid emulator config.
pip install cirq-pasqal==1.6.1

Basic usage: create Pasqal qubits, build a Bell state circuit, and simulate locally.

import cirq
from cirq_pasqal import PasqalQubit, PasqalDevice

# Define qubits
qubits = [PasqalQubit(i) for i in range(2)]
# Create a simple circuit
circuit = cirq.Circuit(
    cirq.H(qubits[0]),
    cirq.CNOT(qubits[0], qubits[1]),
    cirq.measure(*qubits, key='result')
)
print(circuit)

# Simulate using Cirq's simulator
simulator = cirq.Simulator()
result = simulator.run(circuit, repetitions=100)
print(result.histogram(key='result'))