Skills cirq
🔮

cirq

Safe ⚙️ External commands🌐 Network access🔑 Env variables

Work with Google's Cirq quantum computing framework

Also available from: davila7

Design and simulate quantum circuits using Google's Cirq framework. This skill provides comprehensive documentation for building quantum circuits, noise modeling, hardware integration, and running experiments on quantum computers and simulators.

Supports: Claude Codex Code(CC)
📊 71 Adequate
1

Download the skill ZIP

2

Upload in Claude

Go to Settings → Capabilities → Skills → Upload skill

3

Toggle on and start using

Test it

Using "cirq". Create a quantum circuit that creates a GHZ state with 3 qubits and measures all qubits.

Expected outcome:

  • Here's how to create a GHZ (Greenberger-Horne-Zeilinger) state with 3 qubits:
  •  
  • • Use cirq.LineQubit to create 3 qubits
  • • Apply Hadamard to first qubit to create superposition
  • • Apply CNOT gates to entangle all qubits in a chain
  • • Measure all qubits with a descriptive key
  •  
  • The circuit creates the state |000⟩ + |111⟩/√2, demonstrating genuine 3-qubit entanglement.

Using "cirq". How do I add noise to my quantum circuit for realistic simulation?

Expected outcome:

  • Cirq provides several ways to model noise:
  •  
  • • Add noise to specific gates: circuit.with_noise(cirq.depolarize(p=0.01))
  • • Use noise channels: cirq.amplitude_damp(delta)(qubit)
  • • Create custom noise models based on calibration data
  •  
  • Noisy simulation helps predict how your circuit will perform on real quantum hardware with imperfect qubits.

Security Audit

Safe
v4 • 1/17/2026

All 343 static findings are FALSE POSITIVES. This is a pure documentation skill containing markdown files with Python code examples for Google's Cirq quantum computing library. The scanner triggered on documentation patterns (markdown code blocks, quantum gate names like CNOT/CZ, measurement key parameters) that it misinterpreted as security issues. No executable code, network connections, credential exfiltration, or malicious patterns exist.

8
Files scanned
3,295
Lines analyzed
3
findings
4
Total audits
Audited by: claude View Audit History →

Quality Score

45
Architecture
100
Maintainability
85
Content
22
Community
100
Security
91
Spec Compliance

What You Can Build

Design quantum experiments

Design and simulate experiments with parameterized circuits, noise models, and data collection for quantum research publications.

Build quantum algorithms

Implement quantum algorithms like VQE, QAOA, and QPE using Cirq's circuit building and transformation framework.

Target quantum processors

Compile and optimize circuits for specific quantum processors from Google, IonQ, Azure, and other providers.

Try These Prompts

Basic Circuit
Show me how to create a Bell state circuit with Cirq using two qubits, a Hadamard gate, and CNOT gate with measurement.
Noisy Simulation
Help me add depolarizing noise to a quantum circuit and run noisy simulations to analyze error impact.
Hardware Execution
How do I configure Cirq to run circuits on Google Quantum AI hardware and select the best qubits based on calibration data?
Circuit Optimization
Transform my circuit to use only the native gateset for a specific quantum processor and reduce circuit depth.

Best Practices

  • Start with simulators before running on expensive quantum hardware time
  • Use circuit optimization transformers to reduce depth before hardware execution
  • Label measurements with descriptive keys for easier result analysis
  • Save experiment results immediately after hardware runs to prevent data loss

Avoid

  • Running complex circuits without first validating on simulators
  • Ignoring device topology constraints when selecting qubits
  • Skipping noise characterization before error mitigation
  • Not using qubit calibration data for hardware qubit selection

Frequently Asked Questions

What is Cirq?
Cirq is Google's open-source Python library for designing, simulating, and running quantum circuits on quantum computers and simulators.
How does Cirq differ from Qiskit?
Cirq is optimized for Google's quantum hardware and offers low-level circuit design, while Qiskit is designed for IBM hardware with higher-level abstractions.
Can Cirq run on real quantum computers?
Yes, Cirq supports multiple quantum hardware providers including Google Quantum AI, IonQ, Azure Quantum, AQT, and Pasqal with appropriate API access.
What simulators does Cirq support?
Cirq provides state vector simulation, density matrix simulation, and the Quantum Virtual Machine (QVM) for various simulation needs.
How many qubits can Cirq simulate?
State vector simulation scales as 2^n, making 30-40 qubits practical on modern hardware. Density matrix scales as 4^n with higher memory requirements.
What is noise modeling in Cirq?
Cirq allows adding noise channels like depolarizing, amplitude damping, and phase damping to circuits for simulating realistic quantum computer behavior.

Developer Details

File structure