Lecture 5.1 - Workflows for Quantum-centric Supercomputing
Lecture 5.1 - Workflows for Quantum-centric Supercomputing
Quantum-centric
Supercomputing
Antonio Córcoles
Principal Research Scientist
Head of Quantum + HPC
IBM Quantum
adcorcol@us.ibm.com
Qiskit Global Summer School 2024
Why do we use computers? – The determinant
A sub-routine for linear-systems solutions, and used
extensively in vector calculus
NumPy:
Myself:
Answer: 597888.0
Solution time ~ 200 us (20 million times faster)
IBM Quantum
Why do we use computers? – The determinant
32768
32768
[24, 15, 5, 10, 14],
[8, 17, 20, 7, 18], ~ 1 billion elements
[8, 18, 13 11, 21],
[20, 10, 22, 4, 18]])) (32 Gb)
For common, everyday computing tasks, classical computations can scale without the loss of accuracy
IBM Quantum
What is computing?
We can think of a computer in the following way:
• The computer has an initial state.
• The state evolves following a finite sequence of operations.
• There is a mechanism to extract information on the state.
Serial Computing:
Parallel Computing:
HPC comprises:
Program
IBM Quantum
The paradigm of computing is branching
Quantum computing
Classical computing
Nanosheets
Integrated circuit
108
104
Performance
Discrete
transistor
Vacuum tube
100 Electro-
Mechanical mechanical
10-4
10-8
Map classical inputs to Optimize problem Execute using Qiskit Postprocess, return
a quantum problem. for quantum execution. Runtime Primitives. result in classical
format.
H S S Rx
Sampler 000101...,
H S S Rx
110110...
H H
H S S H Rx
H H Rx H H circuit bit-strings
H H Rx HH S SH H Rx
H S
H H Rx S H HH
H
H H Rx S H H Estimator
H S
expectation value
circuit
(abstract circuits, observables) (ISA circuits, observables)
+ observable
IBM Quantum
All steps are amenable to parallelization
What is Quantum-centric supercomputing?
Classical cluster
Qiskit
Services
The workflow
computer
QComputer QComputer
(a) - WLM
QComputer QComputer
(b) - Application workflow
(c) - Qiskit Pattern
(d) - Direct API endpoint
(e) - Classical system node
(f) - QPU
(g) - Classical node
(h) - Quantum computer
IBM Quantum
Circuit Knitting
A protocol whereby a quantum computational problem (1 circuit & 1 Pauli group) is broken
down into multiple quantum computational problems whose outputs are then post-processed
(knit) asynchronously using classical computing
Examples
• Embedding • Operator Back-propagation
VQE Components
Hamiltonian 𝐻, represented as a
weight of Pauli observables, eg.
0.2 ∗ 𝐼𝑋𝑌𝐼𝐼 − 1.6 ∗ 𝑋𝑍𝑋𝐼𝐼 + 0.7 ∗ 𝑌𝑍𝐼𝑌𝑋
Perform one iteration of:
• Calculation of 𝜓 = 𝐶|0⟩. Optimizer
Goal: Find |𝜓⟩ that minimizes • Pauli expectation value ⟨𝜓 𝐻 𝜓⟩
⟨𝜓|𝐻|𝜓⟩
IBM Quantum
Circuit Knitting: Embedding
IBM Quantum
Circuit Knitting: Embedding
Convert to probability by defining 𝛾 = ∑# |𝑎# | and then ℇ 𝜌 = 𝛾 ∑# 𝑝# sign(𝑎# )ℇ# (𝜌) with 𝑝# = 𝑎# /𝛾
This allows us to cut gates with execution overhead: 𝛾 % for one cut and 𝛾 %& for 𝑛 cuts
Example:
(*)
q0
q2
q3
q1
IBM Quantum
(*)Figure from Carrera Vázquez et al. arXiv:2402.17833 (2024)
Circuit Knitting: Circuit cutting
Application: periodic boundary conditions in a system with limited physical connectivity
physical connection
virtual connection
Node stabilizer Edge stabilizer
Three experiments:
SWAP LO LOCC
q0 Z q2 Z
q0
qb,0
Cut Bell pair
q2 qb,1
factory
⌘ qb,2
q3
qb,3 H H
q1
q1 X q3 X
IBM Quantum
Carrera Vázquez et al. arXiv:2402.17833 (2024)
Circuit Knitting: Entanglement forging
!
Schmidt decomposition of a pure 𝑁 + 𝑁 qubit bipartite state: |Ψ⟩ = 𝑈⨂𝑉 ∑%&'! 𝜆& |𝑏& ⟩⨂|𝑏& ⟩
Schmidt coefficients
# !⟩%& ! "⟩
(with |𝜙!" $= and 𝑝 ∈ ℤ( )
'
! * 𝜙* * * *
𝑂 = ∑%&'! 𝜆%& 𝑏& 𝑂L! 𝑏& 𝑏& 𝑂L% 𝑏& + ∑&)! 𝜆 𝜆 ∑
"'! & " *∈ℤ" (−1) 𝑂L 𝜙
-# -$ ! -# -$ 𝜙 𝑂L 𝜙
-# -$ % -# -$
IBM Quantum
Circuit Knitting: Entanglement forging
𝛾 % ~ D 𝜆#
#
IBM Quantum
Eddins et al. PRX Quantum 3, 010309 (2022)
Circuit Knitting: OBP
Operator Backpropagation (OBP) is a technique that uses HPC resources to trade quantum depth for an increased # of
circuits and more difficult observables
𝑈
We can express that value as 𝜓 𝑈!* 𝑈+* 𝒪𝑈+𝑈! 𝜓 and approximate instead ⟨𝜓|𝑈!* 𝒪 , 𝑈!|𝜓⟩ with 𝑈+* 𝒪𝑈+ ≈ 𝒪 , = ∑𝑐- 𝑃-
-
𝑈" 𝑈#
𝑈"
𝒪 𝒪0
OBP in practice
⊗𝑘
Can split error budget across slices
IBM Quantum
Circuit Knitting: Shor’s algorithm
Problem: Given a composite integer 𝑁 ≤ 23 find one of its non-trivial divisors
Intuition:
Consider 𝑁 = 𝑝𝑞 and its multiplicative group modulo 𝑁, 𝐺
IBM Quantum
Circuit Knitting: Shor’s algorithm
Problem: Given a composite integer 𝑁 ≤ 23 find one of its non-trivial divisors
Solution:
Shor’s algorithm does not produce |𝐺| but the period 𝑠 of the function
𝑓 𝑟 = 𝑥 < mod 𝑁
(if s is even)
!
If neither 𝑥 :/+ − 1 nor 𝑥 :/+ + 1 are multiples of 𝑁, we get a non-trivial divisor of 𝑁 by computing gcd(𝑥 " − 1, 𝑁)
IBM Quantum
Circuit Knitting: Shor’s
Example: 𝑁 = 15
Order-finding circuit
0 0/256 0/1 1
64 64/256 1/4 4
IBM Quantum
and 20/+ − 1 = 3 and gcd 3,15 = 3
Circuit Knitting: Regev’s factoring algorithm[*]
Shor’s complexity: 𝑂(𝑛+ log 𝑛) gates and 𝑂(𝑛) qubits[**]
Addressed by Pilatte[**]
Next developments:
IBM Quantum Regev’s result was extended to discrete logarithms by Ekerå and Gärtner: Ekera and Gartner, arXiv: 2311.05545 (2023)
Circuit Knitting: Multi-product Formulas
Multi-product Formulas (MPF) is a technique that reduce the approximation error attained by product formulas for certain
Hamiltonian simulation problems
𝑑
Solve 𝜌(𝑡) = −𝑖[𝐻, 𝜌 𝑡 ] 𝜌 𝑡 = 𝑒 !"#$ 𝜌 𝑒 "#$
𝑑𝑡
Assume 𝐻 = ∑=BC! 𝐹B 𝑆 𝑡 = 𝑒 6-?@% … 𝑒 6-?@" 𝑒 6-?@& = 𝑒 6-?A + 𝑂 𝑡 + (first order product formula)
3? $
For some interesting systems, it can be proven that[*] 𝜌 𝑡 − 𝜌1 (𝑡) !~
1"
for second-order product formula (𝑛 is system size)
2 2
𝑘 Trotter steps: 𝜌1 𝑡 = 𝑆( )1 𝜌#& 𝑆( ))1
1 1
Multi-Product Formulas
F
Approximate the solution by a linear combination of product formulas 𝜇 𝑡 = ∑-C! 𝑐- 𝜌1# (𝑡)
IBM Quantum See also Carrera Vázquez et al. Quantum 7, 1067 (2023)
Other QCSC Workflows: Sample-based
Quantum Diagonalization (SQD)
IBM Quantum
Other QCSC Workflows: Sample-based
Quantum Diagonalization (SQD)
IBM Quantum
Then sampling on the computational basis, we can get the set of 𝑁9 bitstrings 𝑆NC 𝑥⟩ 𝑥 ∈ {0,1}O) , 𝑅 most frequent
Components
A quantum estimator that uses massive classical A class of quantum circuits of tunable depth for the
IBM Quantum computing to process individual quantum samples accurate preparation of molecular ground states
Quantum circuits for chemistry: Local Unitary Coupled Jastrow
IBM Quantum
HPC Quantum Estimator: Quantum-classical
workflow
Sampler()
IBM Quantum
Typically, the data transfer between
quantum and classical is limited to
expectation values and circuit parameters
IBM Quantum
Chemistry Beyond Exact Solutions on a Quantum-centric Supercomputer
N2 : Bond breaking on large basis set Fe2S2: Precision many-body physics Fe4S4: Pushing hardware capabilities
IBM Quantum