Google's framework for building and running quantum circuits, whether you're simulating locally or deploying to actual quantum hardware from Google, IonQ, AQT, or Pasqal. You get the full stack: circuit construction with parameterized gates, exact and noisy simulation, optimization passes, and noise modeling with channels like depolarizing and amplitude damping. The skill covers practical patterns like variational algorithms (VQE, QAOA), parameter sweeps, and the ReCirq experiment framework. Honestly, if you're doing quantum work in Python, this is the main alternative to Qiskit, and it's especially natural if you're targeting Google's processors or need tight integration with their tooling.
$ npx -y skills add davila7/claude-code-templates --skill cirq --agent claude-codeInstalls into .claude/skills of the current project.
Cirq is Google Quantum AI's open-source framework for designing, simulating, and running quantum circuits on quantum computers and simulators.
uv pip install cirq
For hardware integration:
# Google Quantum Engine
uv pip install cirq-google
# IonQ
uv pip install cirq-ionq
# AQT (Alpine Quantum Technologies)
uv pip install cirq-aqt
# Pasqal
uv pip install cirq-pasqal
# Azure Quantum
uv pip install azure-quantum cirq
import cirq
import numpy as np
# Create qubits
q0, q1 = cirq.LineQubit.range(2)
# Build circuit
circuit = cirq.Circuit(
cirq.H(q0), # Hadamard on q0
cirq.CNOT(q0, q1), # CNOT with q0 control, q1 target
cirq.measure(q0, q1, key='result')
)
print(circuit)
# Simulate
simulator = cirq.Simulator()
result = simulator.run(circuit, repetitions=1000)
# Display results
print(result.histogram(key='result'))
import sympy
# Define symbolic parameter
theta = sympy.Symbol('theta')
Sponsors