for Scientific Computing Anargyros Papageorgiou Department of - - PowerPoint PPT Presentation

โ–ถ
for scientific computing
SMART_READER_LITE
LIVE PREVIEW

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


slide-1
SLIDE 1

Quantum Algorithms & Circuits for Scientific Computing

Anargyros Papageorgiou Department of Computer Science Columbia University Joint work with: M. Bhaskar, S. Hadfield and I. Petras

slide-2
SLIDE 2

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
slide-3
SLIDE 3

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

slide-4
SLIDE 4

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

slide-5
SLIDE 5

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

slide-6
SLIDE 6

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.
slide-7
SLIDE 7

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

|๐‘ฆโŸฉ |๐‘งโŸฉ |๐‘จโŸฉ ๐‘ ๐‘“๐‘ก = ๐‘ฆ๐‘ง + ๐‘จ |๐‘งโŸฉ |๐‘จโŸฉ |๐‘ ๐‘“๐‘กโŸฉ

slide-8
SLIDE 8

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

slide-9
SLIDE 9

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

slide-10
SLIDE 10

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

slide-11
SLIDE 11

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

slide-12
SLIDE 12

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

slide-13
SLIDE 13

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 ๐‘œ + ๐‘
slide-14
SLIDE 14

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

slide-15
SLIDE 15

Quantum circuit for ln ๐‘ฅ ๐‘ง๐‘ž = ๐‘” ๐‘ข๐‘ž = ๐‘ข๐‘ž โˆ’ 1 โˆ’

๐‘ข๐‘žโˆ’1

2

2

โ‰ˆ ln ๐‘ข๐‘ž (step 3 of alg.) ๐‘จ๐‘ž = 2โ„“๐‘ง๐‘ž (step 4 of alg.)

slide-16
SLIDE 16

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 ๐‘œ + ๐‘

slide-17
SLIDE 17

Tests

๐‘ฅ: Comparison between our algorithm and Matlab

slide-18
SLIDE 18

ln ๐‘ฅ: Comparison between our algorithm and Matlab

slide-19
SLIDE 19

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

transparently