qiskit

Build and execute quantum circuits with Qiskit primitives for measurement distributions.

783|65|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/LeonChaoX/qinyan-academic-skills --skill qiskit-leonchaox
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: qiskit
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/qiskit
Command: npx skills add https://github.com/LeonChaoX/qinyan-academic-skills --skill qiskit-leonchaox

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Qiskit helps you translate quantum algorithm ideas into executable circuits, then run them on simulators or real quantum backends with practical hardware-aware optimization.

Core Features & Use Cases

  • Quantum circuit construction & analysis: Build circuits with gates, measurements, composition, and parameterized/variational ansätze for experiments.
  • Execution via primitives (Sampler/Estimator): Produce measurement distributions and compute expectation values for tasks like optimization and chemistry.
  • Hardware-aware transpilation & optimization: Convert abstract circuits into hardware-compatible forms by optimizing layout, routing, and gate decomposition.
  • Use Case: You have a parameterized VQE chemistry workflow and need to optimize parameters using an Estimator on an IBM backend while ensuring the circuit is transpiled efficiently for the device topology.

Quick Start

Install Qiskit, create a small circuit (e.g., Bell state), and run it locally using Qiskit primitives on a StatevectorSampler.

Frequently Asked Questions about qiskit

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

FAQPage Schema
How do I build and run quantum circuits on IBM hardware?

You build quantum circuits using Qiskit APIs and execute them via Qiskit Runtime production primitives like Sampler or Estimator, applying backend-aware transpilation to optimize layout and routing for IBM Quantum hardware.

What is hardware-aware transpilation and when do I need it for quantum circuits?

Hardware-aware transpilation converts abstract quantum circuits into hardware-compatible forms by optimizing layout, routing, and gate decomposition. You need it before executing circuits on physical IBM Quantum backends to ensure topology compliance.

How do I compute observable expectation values for VQE chemistry workflows?

You compute observable expectation values for VQE workflows by constructing parameterized variational ansätze and executing them through the Qiskit Runtime Estimator primitive on a selected quantum backend.

Can I run a local quantum circuit simulation without an IBM Quantum account?

Yes, you can run quantum circuits locally using Qiskit primitives like the StatevectorSampler to obtain measurement distributions without requiring runtime account authentication for IBM Quantum hardware execution.

What's the best way to obtain measurement distributions from a quantum circuit?

The best way to obtain measurement distributions is by executing the constructed quantum circuit through the Qiskit Runtime Sampler primitive, which handles the sampling and returns the distribution results directly.

Does Qiskit support end-to-end quantum optimization pipelines like QAOA?

Yes, Qiskit supports end-to-end quantum optimization pipelines like QAOA by leveraging transpile-to-run workflows and computing expectation values using the Estimator primitive on IBM Quantum hardware or simulators.