for Scientific Computing Anargyros Papageorgiou Department of - - PowerPoint PPT Presentation
for Scientific Computing Anargyros Papageorgiou Department of - - PowerPoint PPT Presentation
Quantum Algorithms & Circuits for Scientific Computing Anargyros Papageorgiou Department of Computer Science Columbia University Joint work with: M. Bhaskar, S. Hadfield and I. Petras Overview Why quantum algorithms for scientific
Overview
- Why quantum algorithms for scientific computing
- Requirements
- Quantum algorithms & circuits for fundamental
functions, e.g., ๐ฅ, ln ๐ฅ etc.
โ Algorithms by combining elementary modules โ Applications โ Tests
- Summary
Why quantum circuits for scientific computing
- Scientific computing applications can benefit from fast quantum
algorithms
โ e.g., numerical linear algebra problems
- Typically we need to compute fundamental functions such as
๐ฆ, ln ๐ฆ , sin ๐ฆ
- Classical computation: IEEE standard for floating point arithmetic
โ Comprehensive math. libraries
- Quantum computation:
โ No standard for numerical computations โ No general purpose quantum circuits implementing fundamental functions โ Details about numerical calculations have been avoided in a way
Requirements โ quantum circuit model
- Develop a standard for numerical computations
โ Reversible computation
- Fixed precision representation of numbers
- Quantum algorithms for scientific computing with
performance guarantees
โ error & cost
Quantum algorithms &circuits for fundamental functions
- Library of elementary quantum circuit templates
implementing
โ Arithmetic expressions โ Shifts โ Initial approximations for iterative methods โ New circuits are added to the library as they are derived
- Elementary quantum circuits are modules with known
error and cost characteristics
- New algorithms are implemented by combining
modules
Algorithms Input: ๐+1 qubit register
๐ฅ = ๐ฅ๐ก โ ๐ฅ(๐โ1) โ โฏ โ ๐ฅ(0) โ ๐ฅ โ1 โ โฏ โ |๐ฅ(๐โ๐)โฉ sign integer part fractional part ๐ฅ๐ก, ๐ฅ(๐) โ {0,1}, ๐ฅ = โ1 ๐ฅ๐ก ๐ฅ ๐ 2๐
๐โ1 ๐=๐โ๐
- Register length may be different for intermediate calculations.
Elementary quantum circuit template examples
1.
- Addition and multiplication imply that the format of ๐ ๐๐ก is
known given the format of the inputs
- ๐ bit inputs: ๐ ๐๐ก can be represented exactly using 2๐ + 1 bits
(qubits) (plus sign) of which 2(๐ โ ๐) hold the fractional part
- Any desired number ๐ of significant bits after the decimal
point in ๐ ๐๐ก can be passed on to the next stage
|๐ฆโฉ |๐งโฉ |๐จโฉ ๐ ๐๐ก = ๐ฆ๐ง + ๐จ |๐งโฉ |๐จโฉ |๐ ๐๐กโฉ
2.
Quantum circuit which on input ๐ฅ โฅ 1 computes ๐ฆ 0 = 2โ๐ for ๐ such that 2๐ > ๐ฅ โฅ 2๐โ1. Initial approximation for Newton iteration computing ๐ฅโ1, ๐ฅ โฅ 1 Other similar circuits are also included
Applications
We have derived quantum algorithms for:
- ๐ฅโ1
- sin ๐ฅ , cos ๐ฅ
- Inverse trigonometric
- ๐ฅ
- ๐ฅ1/2๐, ๐ = 1, โฆ , ๐
- ln ๐ฅ
- ๐ฅ๐, ๐ โ 0,1
Earlier work [Cao, P, Petras, Traub, Kais] Poisson equation
Square root - ๐ฅ, w โฅ 1 Use Newton iteration Selection of function whose zero is ๐ฅ is important
e.g., ๐ ๐ฆ = ๐ฆ2 โ ๐ฅ is not a good choice Iterative step ๐ฆ๐ = ๐ฆ๐โ1 โ (๐ฆ๐โ1
2
โ ๐ฅ)/(2๐ฆ๐โ1) requires division Need extra circuitry to keep track of location of decimal point in result
We use:
- 1. One iteration ๐ฆ๐ โ ๐ฅโ1
๐ฆ๐ = ๐1 ๐ฆ๐โ1 โ โ๐ฅ ๐ฆ๐โ1
2
+ 2 ๐ฆ๐โ1, ๐ = 1, โฆ , ๐ก1
- 2. Second iteration ๐ง๐ โ
1 ๐ฆ๐ก1 โ
๐ฅ ๐ง๐ = ๐2 ๐ง๐โ1 โ 3 ๐ง๐โ1 โ ๐ฆ๐ก1 ๐ง๐โ1
3
2 , ๐ = 1, โฆ , ๐ก2
Quantum circuit for ๐ฅ,
- ๐ง
0, ๐ฆ 0 init. approx.
- In each stage calculations are exact
- Results are truncated to ๐ bits (qubits) after the decimal point
and passed on to the next stage
.
๐ฅ = ๐ bits ๐ โ ๐ bits
Thm. ๐ง ๐ก โ ๐ฅ โค 3 4
๐โ2๐
2 + ๐ + log2 ๐ , ๐ โฅ max 2๐, 4 Cost:
- # iterative steps: ๐ก โ ๐ก1 = ๐ก2 = ๐(log2 ๐)
- # qubits per step: ๐ ๐ + ๐
- # quantum ops. per step: low degree poly in ๐ + ๐
Logarithm - ln ๐ฅ , ๐ฅ > 1 Algorithm:
- 1. Shift right ๐ฅ to obtain ๐ฅ๐ = 21โ๐๐ฅ โ (1,2), with
2๐ > ๐ฅ โฅ 2๐โ1
- 2. Compute ๐ข๐ = ๐ฅ๐
1/2โ. Note ๐ข๐ = 1 + ๐, with ๐ โ 2โโ
- 3. Approximate ln ๐ข๐ โ ๐ โ
๐2 2
- 4. ln ๐ฅ โ (๐ โ 1) ln 2 + 2โ ๐ โ
๐2 2
Quantum circuit for ln ๐ฅ ๐ง๐ = ๐ ๐ข๐ = ๐ข๐ โ 1 โ
๐ข๐โ1
2
2
โ ln ๐ข๐ (step 3 of alg.) ๐จ๐ = 2โ๐ง๐ (step 4 of alg.)
Thm.
[ ๐ โ 1 ln 2 + ๐จ๐] โ ln ๐ฅ โค 3 4
5โ/2
๐ + 32 9 + 2 32 9 + ๐ ln 2
3
where โ โฅ log2 8๐ , ๐ โฅ max 5โ, 25 Cost: Total # qubits is proportional to โ ๐ + ๐ log2๐ Total # of quantum operations is proportional to โ times a poly in ๐ + ๐
Tests
๐ฅ: Comparison between our algorithm and Matlab
ln ๐ฅ: Comparison between our algorithm and Matlab
Summary
- Quantum algorithms & circuits for
fundamental functions
- Performance guarantees (accuracy, cost)
- Modular design
- Easy to derive error bounds
- Easy to derive resource estimates
- Internal implementation details can be changed