Builds, transpiles, and runs quantum circuits with Qiskit, including Runtime primitives (Sampler/Estimator), circuit transpilation, and error mitigation on IBM Quantum hardware. Supports local simulation and optional hardware submission.
Qiskit is an open-source quantum computing framework. Build quantum circuits, optimize for hardware, execute on simulators or real quantum computers, and analyze results. Supports IBM Quantum (100+ qubit Heron and Nighthawk systems), IonQ, Amazon Braket, and other providers.
Keyless by default. The core of this skill — building and transpiling circuits and running them on local simulators (StatevectorSampler, StatevectorEstimator, Aer), including VQE/QAOA and textbook algorithms — runs entirely offline with no account or token. Submitting to IBM Quantum hardware through Qiskit Runtime is an optional add-on that uses an IBM Quantum token; with no token, transpile for the target backend and run on a (noisy) local simulator first.
Version note: Examples target Qiskit SDK 2.x (qiskit>=2,<3, Python 3.10+; current 2.5.x as of 2026-09) and qiskit-ibm-runtime ≥ 0.40 (current 0.49). Older tutorials break on these changes, so check any snippet you adapt against them:
execute(), BasicAer, qiskit.tools (incl. tools.jupyter, job_monitor) and bind_parameters — use primitives, qiskit.providers.basic_provider.BasicSimulator, and assign_parameters.qiskit.pulse, BackendV1, the V1 reference primitives (qiskit.primitives.Sampler/Estimator) and Instruction.c_if (use with qc.if_test(...)).RealAmplitudes, EfficientSU2, TwoLocal, ZZFeatureMap, QFT, …; removal in 3.0) — use real_amplitudes(), efficient_su2(), n_local(), zz_feature_map(), QFTGate.mode= (a backend, Session, or Batch); the old session=/backend= keywords raise TypeError. The Options class and channel="ibm_quantum" are gone — the platform is now quantum.cloud.ibm.com (API key + instance CRN, channel "ibm_quantum_platform").Use this skill when the user wants to:
| Scenario | Use Instead |
|---|---|
| Google Quantum AI processors, Cirq-native circuits, or XEB/RB characterization in Cirq | alterlab-cirq |
| Gradient-trained hybrid quantum-classical models with PyTorch/JAX autodiff | alterlab-pennylane |
| Open-system dynamics — Lindblad master equations, decoherence, cavity QED | alterlab-qutip |
| Classical quantum-chemistry (DFT, conformers, pKa) with no quantum circuits | alterlab-rowan |
Hand-off rule. When the request matches a row above, open your answer by naming that skill by its exact id (for example alterlab-cirq) and saying in one line why it fits better, then stop applying this skill's procedure. Name it even when you also need to ask for missing input. If only part of the request is out of scope, name the skill for that part and do only the in-scope part. A brief general pointer is fine; the named skill does the work.
Key Features:
uv pip install "qiskit>=2,<3"
uv pip install "qiskit[visualization]" matplotlib # circuit/result plotting
uv pip install qiskit-ibm-runtime # IBM hardware + Runtime primitives
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}
from qiskit.visualization import plot_histogram
qc.draw('mpl') # Circuit diagram
plot_histogram(counts) # Results histogram
For detailed installation, authentication, and IBM Quantum account setup:
references/setup.mdTopics covered:
For constructing quantum circuits with gates, measurements, and composition:
references/circuits.mdTopics covered:
For executing quantum circuits and computing results:
references/primitives.mdTopics covered:
For optimizing circuits and preparing for hardware execution:
references/transpilation.mdTopics covered:
For displaying circuits, results, and quantum states:
references/visualization.mdTopics covered:
For running on simulators and real quantum computers:
references/backends.mdTopics covered:
For implementing the four-step quantum computing workflow:
references/patterns.mdTopics covered:
For implementing specific quantum algorithms:
references/algorithms.mdTopics covered:
If you need to:
references/setup.mdreferences/circuits.mdreferences/circuits.mdreferences/primitives.mdreferences/primitives.mdreferences/transpilation.mdreferences/visualization.mdreferences/backends.mdreferences/backends.mdreferences/patterns.mdreferences/algorithms.mdreferences/algorithms.mdStart with simulators: Test locally before using hardware
from qiskit.primitives import StatevectorSampler
sampler = StatevectorSampler()
Always transpile: Optimize circuits before execution
from qiskit import transpile
qc_optimized = transpile(qc, backend=backend, optimization_level=3)
Use appropriate primitives:
Choose execution mode:
least_busy() or list service.backends() rather than hard-coding a QPU name — QPUs are retired over time (all 127-qubit Eagle systems, e.g. ibm_brisbane, are gone)resilience_level on the Estimator (Sampler has no resilience_level; use twirling / dynamical_decoupling)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()
from qiskit_ibm_runtime import QiskitRuntimeService, SamplerV2 as Sampler
from qiskit.transpiler import generate_preset_pass_manager
service = QiskitRuntimeService()
backend = service.least_busy(operational=True, simulator=False)
# Hardware only accepts ISA circuits (native gates + connectivity)
pm = generate_preset_pass_manager(backend=backend, optimization_level=3)
qc_isa = pm.run(qc)
sampler = Sampler(mode=backend) # job mode; pass a Session/Batch for other modes
job = sampler.run([qc_isa], shots=1024)
counts = job.result()[0].data.meas.get_counts()
from qiskit_ibm_runtime import Session, EstimatorV2 as Estimator
from scipy.optimize import minimize
# Transpile once, then lay the observable out on the same physical qubits —
# an un-mapped observable does not match the ISA circuit's width.
ansatz_isa = pm.run(ansatz)
hamiltonian_isa = hamiltonian.apply_layout(ansatz_isa.layout)
with Session(backend=backend) as session: # paid plans; use Batch on the Open Plan
estimator = Estimator(mode=session)
def cost_function(params):
# parameter values travel in the PUB — no re-transpiling per iteration
result = estimator.run([(ansatz_isa, hamiltonian_isa, params)]).result()
return float(result[0].data.evs)
result = minimize(cost_function, initial_params, method='COBYLA')
Part of the AlterLab Academic Skills suite.
evals/evals.json (opens in a new tab)references/algorithms.md (opens in a new tab)references/backends.md (opens in a new tab)references/circuits.md (opens in a new tab)references/patterns.md (opens in a new tab)references/primitives.md (opens in a new tab)references/setup.md (opens in a new tab)references/transpilation.md (opens in a new tab)references/visualization.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Not loaded · from alterlab-writing-tools
Claude Code won't load this skill
It ships in alterlab-writing-tools at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Generated from the plugin's indexed repository (alterlab-ieu/alterlab-academic-skills) — no native marketplace selected
npx claudepluginhub p/alterlab-ieu-alterlab-writing-tools241 skills in this plugin
/alterlab-abm-mesaBuilds agent-based models of social systems with Mesa 3 — the current AgentSet API (model.agents.shuffle_do('step'), auto-assigned unique_id, mandatory super().__init__(rng=...)), cell spaces (mesa.discrete_space OrthogonalMooreGrid / classic mesa.space grids), the DataCollector, batch_run parameter sweeps, and SolaraViz — for emergence, segregation, diffusion, opinion dynamics, and cooperation models. It uses the Mesa 3.x API (the old mesa.time schedulers like RandomActivation are removed) and treats the model as a generative theory to be validated, not just run. Use when the request mentions an agent-based model, Mesa, simulating interacting agents, or emergent macro behavior from micro rules. For discrete-event (queueing/process) simulation prefer alterlab-simpy; for reinforcement learning prefer alterlab-stable-baselines3. Part of the AlterLab Academic Skills suite./alterlab-academic-careerPrepares academic career documents and professional-development materials for faculty and researchers. Use when drafting academic CVs, research statements, teaching philosophies, diversity statements, faculty-position cover letters, tenure dossiers, promotion narratives, academic portfolios, or mentorship statements, and when planning conference-networking strategy, building academic web presence, setting up ORCID profiles, or understanding impact metrics. Part of the AlterLab Academic Skills suite.2 plugins in one repository ship this exact skill · first indexed Nov 9, 2026
Other plugins' skills for the same job