cirq

Design and simulate quantum circuits with Cirq for algorithm prototyping.

783|65|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/LeonChaoX/qinyan-academic-skills --skill cirq-leonchaox
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cirq
Source: https://github.com/LeonChaoX/qinyan-academic-skills/tree/main/skills/10-%E6%9D%90%E6%96%99%E7%A7%91%E5%AD%A6%E4%B8%8E%E7%89%A9%E7%90%86%E8%AE%A1%E7%AE%97/cirq
Command: npx skills add https://github.com/LeonChaoX/qinyan-academic-skills --skill cirq-leonchaox

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It helps you go from an idea of a quantum algorithm to executable Cirq code by handling circuit construction, simulation, transformation, and hardware/noise integration.

Core Features & Use Cases

  • Quantum circuit building for algorithms and experiments: Create circuits with qubits, gates, parameterized operations, and measurement schemes for experiments like VQE/QAOA/QPE.
  • Simulation and analysis for research workflows: Run exact simulation, noisy (density-matrix) simulation, parameter sweeps, and extract histograms/expectation values to study behavior under variation.
  • Hardware-aware workflows: Compile/transform circuits for target devices, integrate provider-specific hardware backends, and model noise/error mitigation to compare results realistically.

Use case: You want to test how a variational ansatz performs under different noise levels and then validate which configuration is most robust; use Cirq to build a parameterized circuit, run parameter sweeps with noisy simulation, and apply transformation steps for more hardware-friendly execution.

Quick Start

Ask the AI to generate a Cirq program that builds a parameterized circuit, runs a parameter sweep on the simulator, and prints the measurement histogram for each parameter value.

Frequently Asked Questions about cirq

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build and simulate quantum circuits with noise models in Python?▼

To simulate quantum circuits with noise in Python, construct parameterized circuits and execute noisy density-matrix simulations to extract measurement histograms and expectation values for analysis.

What is the best way to run parameter sweeps on a quantum circuit for variational algorithms like VQE or QAOA?▼

Running parameter sweeps for variational algorithms involves defining parameterized quantum circuit operations, executing sweeps via the simulator, and analyzing behavior under parameter variation.

Can I compile and transform quantum circuits for specific hardware providers?▼

Yes, you can compile and transform quantum circuits for specific hardware providers by applying circuit transformation and optimization steps to generate hardware-aware execution plans for target devices.

How does circuit simulation with noise modeling help test quantum algorithm robustness?▼

Circuit simulation with noise modeling tests quantum algorithm robustness by applying noisy density-matrix simulations to parameterized circuits, allowing you to compare results and validate which configuration is most robust.

Do I need Python to prototype quantum algorithms and execute hardware-aware workflows?▼

Yes, you need Python to prototype quantum algorithms and execute hardware-aware workflows, as the framework relies on Python for circuit construction, simulation hooks, and applying transformation steps for hardware execution.