Agent skill

Qiskit

by davila7 in davila7/claude-code-templates

Comprehensive quantum computing toolkit for building, optimizing, and executing quantum circuits.

MITAuto-check passedResearch & Science

Install Qiskit

skills CLI
$ npx skills add davila7/claude-code-templates --skill qiskit -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install davila7/claude-code-templates qiskit --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/davila7/claude-code-templates.git skills-src && mkdir -p .claude/skills && cp -r skills-src/cli-tool/components/skills/scientific/qiskit .claude/skills/qiskit && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
qiskit
GitHub stars
32k
Used in
10 other repos
Token cost
~2.2k tokens
SKILL.md length
655 words
Files
9 (incl. references)
Skills in repo
477
Repo updated
First seen
Licence
MIT

At a glance

Comprehensive quantum computing toolkit for building, optimizing, and executing quantum circuits.

  • Works in 8 steps: Setup and Installation → Building Quantum Circuits → Primitives (Sampler and Estimator) → …
  • Working with quantum algorithms
  • SKILL.md covers Overview, Quick Start, Core Capabilities and Workflow Decision Guide, plus 3 more sections
  • Calls uv

What it does

Qiskit is an agent skill from davila7/claude-code-templates. Comprehensive quantum computing toolkit for building, optimizing, and executing quantum circuits. Use when working with quantum algorithms, simulations, or quantum hardware including (1) Building quantum circuits with gates and measurements, (2) Running quantum algorithms (VQE, QAOA, Grover), (3) Transpiling/optimizing circuits for hardware, (4) Executing on IBM Quantum or other providers, (5) Quantum chemistry and materials science, (6) Quantum machine learning, (7) Visualizing circuits and results, or (8) Any…

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including reference files (for example `references/algorithms.md`, `references/backends.md` and `references/circuits.md`).

It sits in Research & Science, covering Quantum computing. It works with Qiskit. The repository describes itself as: CLI tool for configuring and monitoring Claude Code. The licence is MIT.

When your agent uses it

  • Working with quantum algorithms
  • Quantum hardware including
  • Building quantum circuits with gates and measurements
  • Running quantum algorithms (VQE

Example prompts

  • “/qiskit”

Requirements

  • Python 3

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Setup and Installation
  2. Building Quantum Circuits
  3. Primitives (Sampler and Estimator)
  4. Transpilation and Optimization
  5. Visualization
  6. Hardware Backends
  7. Qiskit Patterns Workflow
  8. Quantum Algorithms and Applications

What it can do on your machine

Read from SKILL.md and the folder at commit 14680ec. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • uv

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • quantum.ibm.com
    • qiskit.org
    • docs.quantum.ibm.com
    • quantum.cloud.ibm.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Qiskit loads about 2.2k tokens when it runs, and up to ~18k if it reads all its reference files. Until then it costs about 140 tokens; SKILL.md has 655 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~140
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~18k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from davila7/claude-code-templates at commit 14680ec, republished under its MIT licence (© davila7). 655 words, ~2,209 tokens.

Download SKILL.mdSave it as .claude/skills/qiskit/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.
name
qiskit
description
Comprehensive quantum computing toolkit for building, optimizing, and executing quantum circuits. Use when working with quantum algorithms, simulations, or quantum hardware including (1) Building quantum circuits with gates and measurements, (2) Running quantum algorithms (VQE, QAOA, Grover), (3) Transpiling/optimizing circuits for hardware, (4) Executing on IBM Quantum or other providers, (5) Quantum chemistry and materials science, (6) Quantum machine learning, (7) Visualizing circuits and results, or (8) Any quantum computing development task.

Qiskit

Overview

Qiskit is the world's most popular open-source quantum computing framework with 13M+ downloads. Build quantum circuits, optimize for hardware, execute on simulators or real quantum computers, and analyze results. Supports IBM Quantum (100+ qubit systems), IonQ, Amazon Braket, and other providers.

Key Features:

  • 83x faster transpilation than competitors
  • 29% fewer two-qubit gates in optimized circuits
  • Backend-agnostic execution (local simulators or cloud hardware)
  • Comprehensive algorithm libraries for optimization, chemistry, and ML

Quick Start

Installation
bash
uv pip install qiskit
uv pip install "qiskit[visualization]" matplotlib
First Circuit
python
from qiskit import QuantumCircuit
from qiskit.primitives import StatevectorSampler

# Create Bell state (entangled qubits)
qc = QuantumCircuit(2)
qc.h(0)           # Hadamard on qubit 0
qc.cx(0, 1)       # CNOT from qubit 0 to 1
qc.measure_all()  # Measure both qubits

# Run locally
sampler = StatevectorSampler()
result = sampler.run([qc], shots=1024).result()
counts = result[0].data.meas.get_counts()
print(counts)  # {'00': ~512, '11': ~512}
Visualization
python
from qiskit.visualization import plot_histogram

qc.draw('mpl')           # Circuit diagram
plot_histogram(counts)   # Results histogram

Core Capabilities

1. Setup and Installation

For detailed installation, authentication, and IBM Quantum account setup:

  • See references/setup.md

Topics covered:

  • Installation with uv
  • Python environment setup
  • IBM Quantum account and API token configuration
  • Local vs. cloud execution
2. Building Quantum Circuits

For constructing quantum circuits with gates, measurements, and composition:

  • See references/circuits.md

Topics covered:

  • Creating circuits with QuantumCircuit
  • Single-qubit gates (H, X, Y, Z, rotations, phase gates)
  • Multi-qubit gates (CNOT, SWAP, Toffoli)
  • Measurements and barriers
  • Circuit composition and properties
  • Parameterized circuits for variational algorithms
3. Primitives (Sampler and Estimator)

For executing quantum circuits and computing results:

  • See references/primitives.md

Topics covered:

  • Sampler: Get bitstring measurements and probability distributions
  • Estimator: Compute expectation values of observables
  • V2 interface (StatevectorSampler, StatevectorEstimator)
  • IBM Quantum Runtime primitives for hardware
  • Sessions and Batch modes
  • Parameter binding
4. Transpilation and Optimization

For optimizing circuits and preparing for hardware execution:

  • See references/transpilation.md

Topics covered:

  • Why transpilation is necessary
  • Optimization levels (0-3)
  • Six transpilation stages (init, layout, routing, translation, optimization, scheduling)
  • Advanced features (virtual permutation elision, gate cancellation)
  • Common parameters (initial_layout, approximation_degree, seed)
  • Best practices for efficient circuits
5. Visualization

For displaying circuits, results, and quantum states:

  • See references/visualization.md

Topics covered:

  • Circuit drawings (text, matplotlib, LaTeX)
  • Result histograms
  • Quantum state visualization (Bloch sphere, state city, QSphere)
  • Backend topology and error maps
  • Customization and styling
  • Saving publication-quality figures
6. Hardware Backends

For running on simulators and real quantum computers:

  • See references/backends.md

Topics covered:

  • IBM Quantum backends and authentication
  • Backend properties and status
  • Running on real hardware with Runtime primitives
  • Job management and queuing
  • Session mode (iterative algorithms)
  • Batch mode (parallel jobs)
  • Local simulators (StatevectorSampler, Aer)
  • Third-party providers (IonQ, Amazon Braket)
  • Error mitigation strategies
7. Qiskit Patterns Workflow

For implementing the four-step quantum computing workflow:

  • See references/patterns.md

Topics covered:

  • Map: Translate problems to quantum circuits
  • Optimize: Transpile for hardware
  • Execute: Run with primitives
  • Post-process: Extract and analyze results
  • Complete VQE example
  • Session vs. Batch execution
  • Common workflow patterns
Show full SKILL.md (278 more words)Show less
8. Quantum Algorithms and Applications

For implementing specific quantum algorithms:

  • See references/algorithms.md

Topics covered:

  • Optimization: VQE, QAOA, Grover's algorithm
  • Chemistry: Molecular ground states, excited states, Hamiltonians
  • Machine Learning: Quantum kernels, VQC, QNN
  • Algorithm libraries: Qiskit Nature, Qiskit ML, Qiskit Optimization
  • Physics simulations and benchmarking

Workflow Decision Guide

If you need to:

  • Install Qiskit or set up IBM Quantum account → references/setup.md
  • Build a new quantum circuit → references/circuits.md
  • Understand gates and circuit operations → references/circuits.md
  • Run circuits and get measurements → references/primitives.md
  • Compute expectation values → references/primitives.md
  • Optimize circuits for hardware → references/transpilation.md
  • Visualize circuits or results → references/visualization.md
  • Execute on IBM Quantum hardware → references/backends.md
  • Connect to third-party providers → references/backends.md
  • Implement end-to-end quantum workflow → references/patterns.md
  • Build specific algorithm (VQE, QAOA, etc.) → references/algorithms.md
  • Solve chemistry or optimization problems → references/algorithms.md

Best Practices

Development Workflow
  1. Start with simulators: Test locally before using hardware

    python
    from qiskit.primitives import StatevectorSampler
    sampler = StatevectorSampler()
  2. Always transpile: Optimize circuits before execution

    python
    from qiskit import transpile
    qc_optimized = transpile(qc, backend=backend, optimization_level=3)
  3. Use appropriate primitives:

    • Sampler for bitstrings (optimization algorithms)
    • Estimator for expectation values (chemistry, physics)
  4. Choose execution mode:

    • Session: Iterative algorithms (VQE, QAOA)
    • Batch: Independent parallel jobs
    • Single job: One-off experiments
Performance Optimization
  • Use optimization_level=3 for production
  • Minimize two-qubit gates (major error source)
  • Test with noisy simulators before hardware
  • Save and reuse transpiled circuits
  • Monitor convergence in variational algorithms
Hardware Execution
  • Check backend status before submitting
  • Use least_busy() for testing
  • Save job IDs for later retrieval
  • Apply error mitigation (resilience_level)
  • Start with fewer shots, increase for final runs

Common Patterns

Pattern 1: Simple Circuit Execution
python
from qiskit import QuantumCircuit, transpile
from qiskit.primitives import StatevectorSampler

qc = QuantumCircuit(2)
qc.h(0)
qc.cx(0, 1)
qc.measure_all()

sampler = StatevectorSampler()
result = sampler.run([qc], shots=1024).result()
counts = result[0].data.meas.get_counts()
Pattern 2: Hardware Execution with Transpilation
python
from qiskit_ibm_runtime import QiskitRuntimeService, SamplerV2 as Sampler
from qiskit import transpile

service = QiskitRuntimeService()
backend = service.backend("ibm_brisbane")

qc_optimized = transpile(qc, backend=backend, optimization_level=3)

sampler = Sampler(backend)
job = sampler.run([qc_optimized], shots=1024)
result = job.result()
Pattern 3: Variational Algorithm (VQE)
python
from qiskit_ibm_runtime import Session, EstimatorV2 as Estimator
from scipy.optimize import minimize

with Session(backend=backend) as session:
    estimator = Estimator(session=session)

    def cost_function(params):
        bound_qc = ansatz.assign_parameters(params)
        qc_isa = transpile(bound_qc, backend=backend)
        result = estimator.run([(qc_isa, hamiltonian)]).result()
        return result[0].data.evs

    result = minimize(cost_function, initial_params, method='COBYLA')

Additional Resources

© davila7, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 8 other files (references) in cli-tool/components/skills/scientific/qiskit of davila7/claude-code-templates.

  • SKILL.md
  • references/algorithms.md
  • references/backends.md
  • references/circuits.md
  • references/patterns.md
  • references/primitives.md
  • references/setup.md
  • references/transpilation.md
  • references/visualization.md

Open the folder on GitHubat commit 14680ec

Used in 10 other repositories

We found 35 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 10 other GitHub owners. This page covers the copy in davila7/claude-code-templates, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Qiskit next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Qiskit compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Qiskit this skilldavila7/claude-code-templates32k10 repos~2.2kAutomated safety check: PassMIT
Qiskit 2.x Quantum ML Referenceaiming-lab/AutoResearchClaw15k—~4.7kAutomated safety check: PassMIT
QutipzLanqing/codex-claude-academic-skills4.6k9 repos~2.3kAutomated safety check: PassBSD-3-Clause
QiskitK-Dense-AI/scientific-agent-skills48k1 repos~3.3kAutomated safety check: PassApache-2.0
PennylaneK-Dense-AI/scientific-agent-skills48k1 repos~1.8kAutomated safety check: NotesApache-2.0
Cudaq ImportingNVIDIA/skills3.5k—~1.9kAutomated safety check: PassApache-2.0

Similar skills

  • Qiskit 2.x Quantum ML Reference

    aiming-lab/AutoResearchClaw

    Reference patterns for writing qiskit 2.x code for variational quantum machine learning: feature maps, VQC training, VQE for chemistry, MPS circuits and noise models.

    15k GitHub stars~4.7k tokensUpdated 1 mo ago
    Research & ScienceAuto-check passed
  • Qutip

    zLanqing/codex-claude-academic-skills

    Quantum physics simulation library for open quantum systems.

    4.6k GitHub starsUsed in 9 repos~2.3k tokens
    Research & ScienceAuto-check passed
  • Qiskit

    K-Dense-AI/scientific-agent-skills

    Builds, simulates, transpiles, and executes quantum circuits with Qiskit and IBM Quantum Runtime.

    48k GitHub starsUsed in 1 repo~3.3k tokens
    Research & ScienceAuto-check passed
  • Pennylane

    K-Dense-AI/scientific-agent-skills

    Builds and differentiates PennyLane quantum circuits, hybrid PyTorch or JAX models, molecular VQE and QAOA workflows.

    48k GitHub starsUsed in 1 repo~1.8k tokens
    Research & ScienceAuto-check: notes
  • Cudaq Importing

    NVIDIA/skills

    Official

    A skill your agent uses when porting circuits from another framework (e.g.

    3.5k GitHub stars~1.9k tokensUpdated yesterday
    Research & ScienceAuto-check passed
  • Qiskit

    diegosouzapw/awesome-omni-skills

    Qiskit workflow skill for building, transpiling, executing, and reviewing quantum-circuit workflows with modern Qiskit practices.

    159 GitHub stars~3.7k tokensUpdated 3 mo ago
    Research & ScienceAuto-check passed

More from davila7/claude-code-templates

All 477 skills in this repo
  • Perplexity Web Search

    davila7/claude-code-templates

    Runs web-grounded searches through Perplexity's Sonar models over OpenRouter for current events, recent literature and cited facts beyond the model's training cutoff.

    32k GitHub starsUsed in 12 repos~3.5k tokens
    Auto-check: notes
  • Neuropixels Data Analysis

    davila7/claude-code-templates

    Analyzes Neuropixels recordings from SpikeGLX or Open Ephys through preprocessing, drift correction, Kilosort4 spike sorting, quality metrics and curation.

    32k GitHub starsUsed in 10 repos~2.8k tokens
    Auto-check passed
  • Scientific Venue Templates

    davila7/claude-code-templates

    Supplies LaTeX templates and formatting rules for journals, conferences, posters, and grant proposals, then can check a draft against them.

    32k GitHub starsUsed in 9 repos~5.1k tokens
    Auto-check: notes
  • Brand Voice Content Creator

    davila7/claude-code-templates

    Analyzes a brand's existing writing to lock in a consistent voice, then builds SEO blog posts and platform-specific social content around it.

    32k GitHub starsUsed in 3 repos~1.9k tokens
    Auto-check passed
  • CAPA Officer

    davila7/claude-code-templates

    Guides corrective and preventive action (CAPA) work in a quality management system, from initiation and root cause analysis through effectiveness verification.

    32k GitHub starsUsed in 1 repo~2k tokens
    Auto-check passed
  • Fda Consultant Specialist

    davila7/claude-code-templates

    Senior FDA consultant and specialist for medical device companies including HIPAA compliance and requirement management.

    32k GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check passed

Works with

Questions about Qiskit

What does Qiskit do?

Comprehensive quantum computing toolkit for building, optimizing, and executing quantum circuits. Qiskit is an agent skill from davila7/claude-code-templates. Comprehensive quantum computing toolkit for building, optimizing, and executing quantum circuits.

When should I use Qiskit?

Qiskit fits situations like: working with quantum algorithms; quantum hardware including; building quantum circuits with gates and measurements; running quantum algorithms (VQE.

How do I install Qiskit in Claude Code?

Run `npx skills add davila7/claude-code-templates --skill qiskit -a claude-code`. Or copy the skill folder (cli-tool/components/skills/scientific/qiskit in davila7/claude-code-templates) into .claude/skills/qiskit in your project. Claude Code loads it when a task matches its description.

How do I install Qiskit in Codex?

Run `npx skills add davila7/claude-code-templates --skill qiskit -a codex`. Or copy the skill folder (cli-tool/components/skills/scientific/qiskit in davila7/claude-code-templates) into .agents/skills/qiskit in your project. Codex loads it when a task matches its description.

Can I use Qiskit in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add davila7/claude-code-templates --skill qiskit -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/qiskit, .gemini/skills/qiskit, .github/skills/qiskit and .opencode/skills/qiskit in your project.

What does Qiskit need to run?

Going by SKILL.md and its folder, Qiskit needs the command-line tools its instructions call (uv). Our summary lists: Python 3.

Does Qiskit access the network?

SKILL.md names 4 domains. As links in the text: quantum.ibm.com, qiskit.org, docs.quantum.ibm.com and quantum.cloud.ibm.com. This is read from the text; nothing was executed.

Is Qiskit safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Qiskit use?

Qiskit is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Qiskit use?

About 2.2k tokens (SKILL.md is roughly 8.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 16k tokens, read only when the agent opens those files.

What are the alternatives to Qiskit?

Skills that share tags, products or a category with Qiskit: Qiskit 2.x Quantum ML Reference (aiming-lab/AutoResearchClaw, 15k stars), Qutip (zLanqing/codex-claude-academic-skills, 4.6k stars), Qiskit (K-Dense-AI/scientific-agent-skills, 48k stars) and Pennylane (K-Dense-AI/scientific-agent-skills, 48k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Qiskit?

davila7 (a GitHub user) maintains it in davila7/claude-code-templates, which has 32,463 GitHub stars. The repository holds 477 skills in this directory. The repository was last updated on October 8, 2026.

Source: davila7/claude-code-templates on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.