Cirq Quantum Circuits Skill
Teaches Claude to build, simulate, noise-model, and deploy quantum circuits with Google's Cirq framework.
Dev & CodingAdvanced★ 33,030⑂ 3,248AI score 8/10Last updated: Aug 9, 2026
What it does
Gives Claude a working playbook for Cirq (v1.6.1), Google Quantum AI's open-source quantum circuit framework.
- Circuit construction with LineQubit/GridQubit/NamedQubit, gates, and moments
- State-vector and density-matrix simulation, parameter sweeps (
cirq.Linspace), Quantum Virtual Machine - Transformer-based optimization, hardware gateset compilation, qubit routing/SWAP insertion
- Noise channels and models, RB/XEB characterization, error mitigation
- Ready-to-adapt execution templates for Google Quantum Engine, IonQ, Azure Quantum, AQT, and Pasqal
- Variational algorithm scaffolding (VQE, QAOA, QPE) and ReCirq experiment structure
Who it's for
- Researchers targeting Google QPUs (Sycamore, Weber, Willow)
- Grad students quantifying noise effects on NISQ circuits
- Educators producing reproducible quantum experiment code
- (Use qiskit for IBM hardware, pennylane for autodiff quantum ML, qutip for physics simulation)
Usage examples
- "Build a 2-qubit Bell state circuit and show the histogram over 1000 shots" → H + CNOT circuit,
cirq.Simulator()run, printed distribution. - "Compare fidelity as depolarizing noise goes from 0 to 0.1" → applies the noise-study template with DensityMatrixSimulator.
- "Port this circuit to run on an IonQ QPU" → produces
cirq_ionq.Service()code plus API-key environment setup notes.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/cirq folder from the GitHub repo K-Dense-AI/scientific-agent-skills into my ~/.claude/skills/cirq/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/K-Dense-AI/scientific-agent-skills.git /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/skills/cirq ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and make sure Claude Code is installed.
- Clone the skills repository:
git clone https://github.com/K-Dense-AI/scientific-agent-skills.git - Create the skills directory:
mkdir -p ~/.claude/skills - Copy the whole cirq folder (including its
references/subfolder):cp -r scientific-agent-skills/skills/cirq ~/.claude/skills/ - Install Cirq on Python 3.11+:
uv pip install "cirq==1.6.1"(addcirq-google,cirq-ionq, etc. at the same version for hardware). - Restart Claude Code and try a prompt like "use cirq to build a Bell state circuit" to trigger the skill.
- For real hardware runs, export credentials first, e.g.
GOOGLE_CLOUD_PROJECTorIONQ_API_KEY.
View source on GitHub ↗License: MIT