cirq
Skill by K-Dense-AI
Cirq is Google Quantum AI's open-source Python framework for designing, simulating, and running quantum circuits. It suits developers and researchers targeting Google hardware, noise modeling, and low-level circuit design.
Install cirq
Built from the published package, never by AI.
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/skills/cirq ~/.claude/skills/cirqRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/scientific-agent-skills/skills/cirq ~/.gemini/antigravity-cli/skills/cirqAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Cirq is Google Quantum AI's open-source Python framework for designing, simulating, and running quantum circuits on quantum computers and simulators. This skill gives an AI assistant guidance on building circuits, parameter sweeps, transformers and compilation, noise modeling, and characterization experiments. It covers hardware access through cirq-google, IonQ, Azure Quantum, AQT, and Pasqal.
Examples target Cirq 1.7.0 on Python 3.11 or later, and the skill points to reference guides for each area. Cloud execution needs provider credentials, network access, and assigned targets, and Azure uses a separate Cirq 1.6.1 environment. The skill is aimed at people working on NISQ circuits and Google hardware. It routes IBM hardware to qiskit, quantum ML to pennylane, and physics simulation to qutip.
Written from the project's SKILL.md and checked against it.
What it can do
- Circuit buildingCovers qubits, gates, custom gates, moments, and standard patterns like Bell and GHZ states.
- SimulationExplains exact and noisy simulation, sampling, measurements, and expectation values.
- Parameter sweepsShows how to run circuits over sets of parameter values with symbolic parameters.
- Circuit transformationDescribes transformers for gate decomposition, optimization, and hardware compilation.
- Hardware integrationDescribes running circuits on Google, IonQ, Azure Quantum, AQT, and Pasqal providers.
- Noise modelingCovers noise channels, noise models, readout noise, and characterization methods like XEB.
What you need
- Python 3.11 or later
- Cirq 1.7.0 for local examples
- Provider credentials and network access for cloud execution
- Approved Google Cloud project access for Quantum Engine
Try asking
- Build a Bell state circuit in Cirq and sample it 1000 times
- Sweep a rotation parameter in Cirq and plot the measured histograms
- Add depolarizing noise to my Cirq circuit and compare results
Good to know
- Azure examples need a separate environment that uses Cirq 1.6.1.
- Hardware examples are illustrative and were not run against cloud jobs.
- The legacy Pasqal remote sampler is not a verified current Pasqal Cloud integration.
- Bundled virtual processor names do not prove live access to hardware.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/cirq/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Read Write Edit Bash
-
SKILL.md14 KB -
references/building.md7 KB -
references/experiments.md10 KB -
references/hardware.md13 KB -
references/noise.md10 KB
Show all 8 files
-
references/review.md6 KB -
references/simulation.md7 KB -
references/transformation.md6 KB
Alternatives to cirq
All alternatives →Searches arXiv for scientific papers and preprints, extracts their metadata and abstracts, and downloads PDF or HTML full text. Suited to users who need research papers, literature or specific arXiv IDs.
Downloads AlphaFold predicted structures and PAE matrices for a UniProt ID, then reports pLDDT confidence, domain boundaries and disorder. Built for users who already have a UniProt accession.
Queries the QuickGO and Evidence & Conclusion Ontology REST API to map genes to Gene Ontology terms. Built for researchers doing functional annotation and GO hierarchy exploration.
Connects an AI assistant to Peloton to browse fitness classes, check live and archived schedules, and manage workouts. Built for Peloton users who want to plan rides from their assistant.
Queries NCBI Gene through the E-utilities and Datasets API. It helps researchers search genes by symbol or ID, retrieve gene details, and run batch lookups for annotation and functional analysis.
Prepares and launches nf-core/pacsomatic runs for matched tumor-normal PacBio HiFi data starting from unaligned BAM files. It generates samplesheets and pinned launch artifacts, then runs locally or submits to a scheduler.
Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database
cirq: common questions
Which hardware does Cirq support?
The source lists Google Quantum AI, IonQ, Azure Quantum, AQT, and Pasqal. It says IBM hardware should use qiskit instead.
Can I use Cirq without cloud access?
Yes. The local simulation examples run without provider access, and the skill says cloud execution needs credentials and assigned targets.
Which Cirq version should I use?
The examples target Cirq 1.7.0 on Python 3.11 or later, and all cirq-* packages in one environment should share the same release.
How do I install cirq?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is cirq free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is cirq safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to cirq?
Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.
