Qiskit 101
Qiskit 101
Computing with
Qiskit
IBM Quantum
What is Qiskit?
https://github.com/Qiskit/qiskit http://qiskit.github.io/ecosystem
https://docs.quantum-computing.ibm.com/
IBM Quantum 2
Getting started
with Qiskit
https://docs.quantum-computing.ibm.com/start
IBM Quantum 3
Qiskit workflow
IBM Quantum 4
Build
In the build phase, you create
quantum programs that represent
the problem you are solving.
IBM Quantum 5
Build a circuit with Qiskit
IBM Quantum 6
The output of a quantum Sampler primitive Estimator primitive
circuit is encapsulated by
primitives
IBM Quantum 7
Standard gates Variational ansatzes
circuits
IBM Quantum 8
Transpile
In the transpile phase, you rewrite
your circuit into a form that can be
efficiently executed on a quantum
device
IBM Quantum 9
Real quantum Basis gate set Qubit connectivity Errors
devices are
subject to Only a limited set of gates can be Only certain pairs of qubits can be Each operation has a chance of
IBM Quantum 10
Transpiler definitions
Transpilation occurs in a series A transpiler pass defines a A pass manager is a list of A staged pass manager is a list
of passes, with the output of standalone circuit transpiler passes grouped into of pass managers, with each
one pass becoming the input to transformation. a logical unit. one representing a discrete
the next. stage of a transpilation
pipeline.
IBM Quantum 11
Transpiler stages
1 2 3
Initialization Layout Routing
The circuit is prepared for The abstract qubits of the Swap gates are inserted to
transpilation. circuit are mapped to physical enable interactions between
qubits on the device. qubits that are not physically
connected.
4 5 6
Translation Optimization Scheduling
The gates of the circuit are The circuit is rewritten to The precise timing of pulse
translated to the basis gate set minimize its depth or number sequences is determined
of the device. of operations in order to based on hardware
decrease the effect of errors. information.
IBM Quantum 12
Transpile a circuit
IBM Quantum 13
You don't need to transpile
your circuits to submit them
to Qiskit Runtime!
IBM Quantum 14
Verify
In the verify phase, you test your
quantum programs by running
them on simulated devices and
exploring their performance under
realistic device noise models.
IBM Quantum 15
Simulating quantum circuits
IBM Quantum 16
Simulation tools
https://qiskit.org/ecosystem/aer/
IBM Quantum 17
Use the Estimator primitive
from Qiskit Aer
• An observable
Measure
expectation
value of ZZ
IBM Quantum 18
Simulate noise Calibration data for ibm_brisbane
9am ET, Nov 16, 2023
https://quantum-computing.ibm.com/
IBM Quantum 19
Build noise models with Qiskit Aer
You can use Qiskit Aer to build You can initialize a noise model
and simulate noise models. with parameters set from the
calibration data of a real backend.
Depolarizing error:
IBM Quantum 20
Stabilizer circuits can be
simulated efficiently
IBM Quantum 21
Run
In the run phase, you send your
quantum program to be executed
on a quantum system.
IBM Quantum 22
Anatomy of a quantum
computing service
Quantum
programming
language
User
Cloud service
(Qiskit Runtime)
Pulse sequences
Server in
laboratory
Control
electronics
Quantum
processor
IBM Quantum 23
Run a circuit on quantum
hardware using Qiskit Runtime
IBM Quantum 24
Qiskit Runtime sessions Jobs within an active session A session becomes active
take priority over other queued when its first job starts running.
jobs.
A session allows a collection of jobs to
be grouped and jointly scheduled by
the Qiskit Runtime service, facilitating
iterative use of quantum computers
without incurring queuing delays on
each iteration.
A session stays active until one Note: The queuing time does
of the following happens: not decrease for the first job
• Its maximum timeout value submitted within a session.
is reached.
• Its interactive timeout value
is reached. In this case the
session is deactivated but
can be resumed if another
session job starts running.
• The session is closed or
cancelled.
IBM Quantum 25
Qiskit Runtime sessions
IBM Quantum 26
Run jobs in a session
IBM Quantum 27
Customize Qiskit Runtime
behavior
IBM Quantum 28
Configuring runtime transpilation
IBM Quantum 29
Configuring error mitigation
IBM Quantum 30
Links IBM Quantum https://docs.quantum-computing.ibm.com/
Documentation
Access the documentation for Qiskit and IBM
Quantum services.
IBM Quantum 31