Cirq
Cirq simplifies quantum circuit creation & manipulation for Python, enabling rapid prototyping and experimentation in quantum algorithms.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add cirq npx -- -y @trustedskills/cirq
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"cirq": {
"command": "npx",
"args": [
"-y",
"@trustedskills/cirq"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill enables AI agents to design, simulate, and run quantum circuits using Cirq, Google Quantum AI's open-source Python framework. It allows for rapid prototyping and experimentation with quantum algorithms by providing tools for circuit construction, simulation, and transformation. The agent can create both basic and parameterized quantum circuits, and analyze their behavior through simulation.
When to use it
- Exploring fundamental quantum computing concepts like superposition and entanglement.
- Designing simple quantum algorithms or components of larger algorithms.
- Simulating the behavior of quantum circuits before running them on actual hardware.
- Experimenting with different gate combinations and circuit architectures.
- Performing parameter sweeps to analyze how circuit performance changes with varying parameters.
Key capabilities
- Circuit Building: Creation of quantum circuits using various qubit types (GridQubit, LineQubit, NamedQubit), gates, operations, custom gates, and circuit patterns. Includes support for standard patterns like Bell states and GHZ states.
- Simulation: Simulating quantum circuits with options for exact simulation, noisy simulation, parameter sweeps, and using the Quantum Virtual Machine (QVM).
- Circuit Transformation: Optimizing, compiling, and manipulating quantum circuits.
- Import/Export: Ability to import and export circuits in OpenQASM and JSON formats.
Example prompts
- "Create a simple circuit with a Hadamard gate on qubit 0 and a CNOT gate controlled by qubit 0 targeting qubit 1."
- "Simulate the parameterized circuit where theta varies from 0 to 2π, running 1000 repetitions for each value."
- "Build a Bell state circuit using LineQubits."
Tips & gotchas
- Requires Python and
pipfor installation. - To run on specific quantum hardware platforms (Google Quantum Engine, IonQ, AQT, Pasqal, Azure Quantum), additional dependencies need to be installed via pip.
- The skill's capabilities are limited by the computational resources available for simulation; complex circuits may require significant time and memory.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.