Cirq
ListedCirq simplifies quantum circuit creation & manipulation for Python, enabling rapid prototyping and experimentation in quantum algorithms.
Install on your platform
Showing Claude Code. One command installs this skill into any of the agents below.
- 1
Run this in your project
terminal$ npx skills add davila7/claude-code-templates --skill cirq -a claude-code Uses the open-source
skillsCLI and needs Node.js. Add-gto install it for your user instead of this project.
What we know about this skill
Publisher
davila7
Taken from the source listing. We haven't verified who controls this account.
Install target
Live repository
Not pinned. Installing fetches whatever the repository holds at the time you run the command.
Automated safety checks
We could not read this skill's source, so none of the checks below were run.
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.