19
Eliminating Intermediate Measurements in Space-Bounded Quantum Computation Bill Fefferman and Zack Remscrim (University of Chicago) + Quantum Logspace Algorithm for Powering Matrices with Bounded Norm Uma Girish, Ran Raz and Wei Zhan (Princeton University)

Eliminating Intermediate Measurements in Space-Bounded

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Eliminating Intermediate Measurements in Space-Bounded

Eliminating Intermediate Measurements in Space-Bounded Quantum Computation

Bill Fefferman and Zack Remscrim (University of Chicago)

+

Quantum Logspace Algorithm for Powering Matrices with Bounded Norm

Uma Girish, Ran Raz and Wei Zhan (Princeton University)

Page 2: Eliminating Intermediate Measurements in Space-Bounded

Principle of Deferred Measurement

H H|0⟩ H H|0⟩ = 0, always

= ቐ0, Prob 1

2

1, Prob 12

Okay if only care about time

Not okay if also care about spaceCost = 1 ancilla (space) per measurementEx: log(𝑛)-space and π‘π‘œπ‘™π‘¦(𝑛)-time

May have π‘π‘œπ‘™π‘¦(𝑛) measurementsβ‡’ exponential blowup to π‘π‘œπ‘™π‘¦(𝑛)-space

= ቐ0, Prob 1

2

1, Prob 12

Possible without space blowup? [Watrous’01, Watrous’03, van Melkebeek-Watson’12, Ta-Shma’13, Fefferman-Lin’16, etc.]

= ቐ0, Prob 1

2

1, Prob 12

|0⟩

H H|0⟩

Simulate measurement

Page 3: Eliminating Intermediate Measurements in Space-Bounded

Main Results

Can eliminate intermediate measurement without space blowup or time blowup

Quantum logspace algorithms and matching hardness results for many natural linear algebraic problems For well-conditioned matrix 𝐴, approximate

det(𝐴)π΄βˆ’1

π΄π‘š

etc.β‡’ can eliminate intermediate measurements

Page 4: Eliminating Intermediate Measurements in Space-Bounded

Why is Space Important?

Current experimental quantum computers: Noisy Intermediate Scale era [Preskill’18]Intermediate Scale = few qubits

IBM Q System53 QubitsCost: ≫ $400

Apple iPhone 7128 GBCost: $400

(somewhat unfair comparison)

Near-term quantum computers have few qubits β‡’ space is important

Page 5: Eliminating Intermediate Measurements in Space-Bounded

Why Eliminate Intermediate Measurements?

Measurements are a natural resource, just like time and space

Unitary computations (i.e., without intermediate measurements) are reversibleUndo computation: useful in design/analysis of algorithms

β€œTidy” subroutine calling [Bennet-Bernstein-Brassard-Vazirani’97]Quantum rewinding [Watrous’09]

No heat generation (Landauer’s Principle)

Shows definition of β€œquantum space 𝑠 𝑛 ” is robustgeneral = unitaryFor probabilistic space

βŠ† general quantum (easy)βŠ† unitary quantum (previously unknown)

Page 6: Eliminating Intermediate Measurements in Space-Bounded

Our Model of Space Bounded Computation

We require that there is a classical deterministic space 𝑺 Turing Machine which on input π‘₯ ∈ 0,1 βˆ—, outputs the description of the update operations.

An algorithm computes a function 𝑓: 0,1 𝑛 β†’ 0,1 π‘š if the output of the algorithm is 𝑓(π‘₯)

(with probability at least 2

3if the algorithm is randomized/quantum).

0

0

0

0

0

0

1

0

1

1

1

1

1

0

0

0

0

0

0

0

Update

memory

Update

memory

…

Time 𝑇 ≀ 2𝑂(𝑆)

Spac

e 𝑆

Ou

tpu

t

Page 7: Eliminating Intermediate Measurements in Space-Bounded

Logspace Algorithms:Space 𝑂(log 𝑛) and Time poly(𝑛)

Classical Logspace Algorithms:

𝑳: Classical algorithms where the updates are deterministic transition matrices.𝑩𝑷𝑳 : Classical randomized algorithms where the updates are stochastic matrices.

Quantum Logspace Algorithms:

𝑩𝑸𝑼𝑳 : (Unitary Quantum algorithms)β€’ Store qubits.β€’ Updates are by unitary quantum channels.β€’ The output is the outcome of measuring some qubits at the end of the computation.

𝑩𝑸𝑸𝑳 : (Pure Quantum algorithms)

β€’ Updates are by unital quantum channels.𝑩𝑸𝑳 : (Quantum algorithms)

β€’ Updates are by general quantum channels.

Page 8: Eliminating Intermediate Measurements in Space-Bounded

Logspace Algorithms:Space 𝑂(log 𝑛) and Time poly(𝑛)

𝑩𝑸𝑼𝑳Unitary Logspace

𝑩𝑸𝑸𝑳

Pure Quantum Logspace

𝑩𝑸𝑳General Quantum Logspace

Unitary quantum channels Unital quantum channels General quantum channels

βœ“ Unitary operations. βœ“ Unitary operations.βœ“ Intermediate Measurements.

βœ“ Unitary operations.βœ“ Intermediate Measurements.

βœ“ Reset qubits.

Purely quantum memory,Unitary Operations

Purely quantum memory,Unitary Operations

+ Intermediate Measurements

Quantum Memory,Unitary Operations,

Intermediate Measurements+ Classical Memory

+ Copy measurement outcome to classical memory

Page 9: Eliminating Intermediate Measurements in Space-Bounded

Our Result:

Contraction Matrix Powering is in 𝑩𝑸𝑼𝑳.

Given: An 𝑛 Γ— 𝑛 real contraction matrix 𝐴 (i.e., 𝐴 ≀ 1),

𝑇 ≀ poly(𝑛), πœ– β‰₯1

poly(𝑛)and indices 𝑠, 𝑑 ∈ 1, … , 𝑛

Estimate AT[𝑠, 𝑑] up to πœ– additive error.

We [Girish-Raz-Zhan’20] show that this problem can be solved in 𝑩𝑸𝑼𝑳. Equivalently, Iterated Contraction Matrix Multiplication is in 𝑩𝑸𝑼𝑳.

It is not known if this problem can be solved in 𝑩𝑷𝑳.

Page 10: Eliminating Intermediate Measurements in Space-Bounded

Applications:

Eliminating Intermediate MeasurementsWe [Girish-Raz-Zhan’20] show that 𝑩𝑸𝑼𝑳 = 𝑩𝑸𝑸𝑳.

Measurements during computation don’t give more power to quantum logspace algorithms with only quantum memory.

In general, we show that a pure quantum algorithm of space 𝑆 and time 𝑇 with intermediate measurements,

can be simulated in space 𝑂(𝑆 + log𝑇) and time poly(𝑇, 2𝑂(𝑆)) without intermediate measurements.

β‡’ 𝑩𝑸𝑼𝑺𝑷𝑨π‘ͺ𝑬 𝑠 𝑛 = 𝑩𝑸𝑸𝑺𝑷𝑨π‘ͺ𝑬(𝑠 𝑛 ) for any space-constructible 𝑠 𝑛 = Ξ©(log 𝑛 ).

[Fefferman-Remscrim’20] show that 𝑩𝑸𝑼𝑳 = 𝑩𝑸𝑸𝑳 = 𝑩𝑸𝑳.

β‡’ 𝑩𝑸𝑼𝑺𝑷𝑨π‘ͺ𝑬 𝑠 𝑛 = 𝑩𝑸𝑺𝑷𝑨π‘ͺ𝑬(𝑠 𝑛 ) for any space-constructible 𝑠 𝑛 = Ξ©(log 𝑛 ).

The ability to do intermediate measurements or reset qubits doesn’t give more power to quantum logspace algorithms.

Page 11: Eliminating Intermediate Measurements in Space-Bounded

Applications:

Derandomizing 𝑩𝑸𝑸𝑳

𝑨 𝑩 denotes that 𝑩 is at least as powerful as 𝑨.

We show that 𝑩𝑸𝑸𝑳 algorithms don’t require randomness.

𝑳

𝑩𝑸𝑼𝑳

𝑩𝑷𝑳

𝑩𝑸𝑸𝑳 𝑩𝑸𝑳

+ randomness

+ randomness

+ reset qubits

[Girish-Raz-Zhan’20]

[Fefferman-Remscrim’20]

Page 12: Eliminating Intermediate Measurements in Space-Bounded

Applications:

𝑩𝑷𝑳 versus 𝑩𝑸𝑼𝑳

𝑨 𝑩 denotes that 𝑩 is at least as powerful as 𝑨.

𝑳

𝑩𝑸𝑼𝑳

𝑩𝑷𝑳

𝑩𝑸𝑸𝑳 𝑩𝑸𝑳

+ randomness

+ randomness

+ reset qubits

[Girish-Raz-Zhan’20]

[Fefferman-Remscrim’20]

?

?

Page 13: Eliminating Intermediate Measurements in Space-Bounded

Connection between Contraction Matrix Multiplication and 𝑩𝑸𝑸𝑳

|0⟩

|0⟩

π‘ΌπŸ π‘ΌπŸπ‘Όπ‘»

…

…

A generic 𝑩𝑸𝑸𝑳 algorithm

The probability that this circuit outputs 1 is precisely

vec(πš·πŸπš·πŸβ€ )† 𝑼𝑻 βŠ—π‘Όπ‘» 𝑴… π‘ΌπŸ βŠ—π‘ΌπŸ 𝑴 π‘ΌπŸ βŠ—π‘ΌπŸ (π’—πŸŽ βŠ—π’—πŸŽ)

Ξ 1 = projection matrix onto π‘–βŸ© ∢ 𝑖1 = 1 }𝑣0 = 0𝑆

𝑀 = a diagonal matrix with diagonal entries in 0,1 .

Unitary matrices

Contraction matrices Unit vectorVector†

= 𝒂†(𝑨poly(𝒏)Γ—β‹―Γ— π‘¨πŸ)𝒃

Page 14: Eliminating Intermediate Measurements in Space-Bounded

Our ApproachStep 1. Embed each of the contraction matrices π‘¨πŸ, … , 𝑨𝑻 inside unitary logspace quantum circuits.

𝐴 β†ͺ𝐴 𝕀 βˆ’ 𝐴𝐴†

𝕀 βˆ’ 𝐴†𝐴 βˆ’π΄β€ 

Step 2. Compose the quantum circuits carefully.

𝐴 βˆ— 0βˆ— βˆ— 00 0 𝕀

×𝐡 0 βˆ—0 𝕀 0βˆ— 0 βˆ—

=𝐴𝐡 βˆ— βˆ—βˆ— βˆ— βˆ—βˆ— βˆ— βˆ—

Step 3. Estimate 𝒂†𝑴𝒃 using a quantum circuit that embeds 𝑴.

An argument similar to Grover’s search.

Page 15: Eliminating Intermediate Measurements in Space-Bounded

Well-Conditioned Matrix Inversion

Given: invertible 𝑛 Γ— 𝑛 matrix 𝐴 and indices 𝑖, 𝑗 ∈ 1, … , 𝑛Approx π΄βˆ’1[𝑖, 𝑗] to precision 1/π‘π‘œπ‘™π‘¦ 𝑛

Difficulty depends on condition number πœ… 𝐴 =𝜎1(𝐴)

πœŽπ‘›(𝐴)

𝜎1 𝐴 = largest singular value, πœŽπ‘› 𝐴 = smallest singular value

Well-conditioned: πœ… 𝐴 = π‘π‘œπ‘™π‘¦ 𝑛 , Different params (sparse 2𝑛 Γ— 2𝑛 matrix) in 𝑩𝑸𝑷 [Harrow-Hassidim-Lloyd’09]in 𝑩𝑸𝑳 [Ta-Shma’13] is 𝑩𝑸𝑼𝑳-complete [Fefferman-Lin’16]

Page 16: Eliminating Intermediate Measurements in Space-Bounded

Determinant

𝑫𝑬𝑻 = problems reducible to computing det(𝐴) [Cook’85] 𝑛 Γ— 𝑛 matrix 𝐴, entries are 𝑛-bit integers

Natural complete problems: Determinant, Matrix Inversion, Matrix Powering, Iterated Matrix Multiplication, etc.

π‘π‘œπ‘™π‘¦-conditioned matrix inversion is 𝑩𝑸𝑼𝑳-complete [Fefferman-Lin’16]

We generalize: π‘π‘œπ‘™π‘¦-conditioned 𝑫𝑬𝑻-complete problems are 𝑩𝑸𝑼𝑳-completeβ‡’ can eliminate intermediate measurements

Difficulty: β€œstandard” reductions generally do not preserve being well-conditioned

Page 17: Eliminating Intermediate Measurements in Space-Bounded

Well-Conditioned Matrix PoweringGiven: 𝑛 Γ— 𝑛 matrix 𝐴, 𝑑 ≀ π‘π‘œπ‘™π‘¦(𝑛), and indices 𝑖, 𝑗 ∈ 1, … , 𝑛

Approx 𝐴𝑑[𝑖, 𝑗] to precision 1/π‘π‘œπ‘™π‘¦ 𝑛

Promise: π΄π‘˜ ≀ π‘π‘œπ‘™π‘¦ 𝑛 , βˆ€π‘˜ ∈ 1,… , 𝑑 (analogue of β€œpoly-conditioned” for powering)

Simple reduction to π‘π‘œπ‘™π‘¦-conditioned matrix inversion β‡’βˆˆ 𝑩𝑸𝑼𝑳

𝐼 βˆ’π΄ 0 0 0 0

0 𝐼 βˆ’π΄ 0 0 0

0 0 𝐼 βˆ’π΄ 0 0

0 0 0 𝐼 βˆ’π΄ 0

0 0 0 0 𝐼 βˆ’π΄

0 0 0 0 0 𝐼

𝐡 =

𝐼 𝐴 𝐴2 𝐴3 𝐴4 𝐴5

0 𝐼 𝐴 𝐴2 𝐴3 𝐴4

0 0 𝐼 𝐴 𝐴2 𝐴3

0 0 0 𝐼 𝐴 𝐴2

0 0 0 0 𝐼 𝐴

0 0 0 0 0 𝐼

π΅βˆ’1 =

𝐴𝑑 appears in top-right block of π΅βˆ’1 and 𝐡 is π‘π‘œπ‘™π‘¦-conditioned

Page 18: Eliminating Intermediate Measurements in Space-Bounded

Well-Conditioned Iterated Matrix Product

Similar to powering: Now approx entry of 𝐴1⋯𝐴𝑑, 𝑑 ≀ π‘π‘œπ‘™π‘¦(𝑛), π΄π‘˜β‹―π΄β„Ž ≀ π‘π‘œπ‘™π‘¦ 𝑛 , βˆ€ 1 ≀ π‘˜ ≀ β„Ž ≀ 𝑑

Can reduce to π‘π‘œπ‘™π‘¦-conditioned matrix inversion β‡’βˆˆ 𝑩𝑸𝑼𝑳

Is 𝑩𝑸𝑳-hard: General quantum circuit is sequence of (arbitrary) quantum channels

β‡’ 𝑩𝑸𝑳 = 𝑩𝑸𝑼𝑳

β‡’ 𝑩𝑸𝑺𝑷𝑨π‘ͺ𝑬 𝑠 𝑛 = 𝑩𝑸𝑼𝑺𝑷𝑨π‘ͺ𝑬(𝑠 𝑛 ), any space-constructible 𝑠 𝑛 = Ξ©(log 𝑛 )

Also show results for 𝑹𝑸𝑳 and 𝑡𝑸𝑳, and for β€œπ‘Έπ‘΄π‘¨β€ and β€œπ‘«π‘Έπ‘ͺπŸβ€ versions of 𝑩𝑸𝑳,𝑹𝑸𝑳, and 𝑡𝑸𝑳

Ξ¦1

|0⟩

|0⟩

|0⟩

Ξ¦2 Φ𝑑⋯ πœŒπ‘œπ‘’π‘‘

Page 19: Eliminating Intermediate Measurements in Space-Bounded

Well-Conditioned Determinant

Given: 𝑛 Γ— 𝑛 matrix 𝐴, πœ… 𝐴 = π‘π‘œπ‘™π‘¦(𝑛)Approx log( det 𝐴 ) to precision 1/π‘π‘œπ‘™π‘¦ 𝑛 (Approx det 𝐴 to multiplicative factor 1 + 1/π‘π‘œπ‘™π‘¦ 𝑛 )

We show: is 𝑩𝑸𝑳(= 𝑩𝑸𝑼𝑳)-completeOther well-conditioned 𝑫𝑬𝑻-complete also 𝑩𝑸𝑳-complete β€œStandard” reductions do not preserve well-conditioned (e.g. Berkowitz’s algorithm)Our reductions: various power series approximations, quantum β€œinstance compression”

[Boix-Adsera, Eldar, and Mehraban’19]: ∈ 𝑫𝑺𝑷𝑨π‘ͺ𝑬(log2 𝑛 π‘π‘œπ‘™π‘¦(log log 𝑛))Used (different) power series approximations

Suggests source of quantum advantageWe show ∈ 𝑫𝑺𝑷𝑨π‘ͺ𝑬(log2 𝑛)

Recall: 𝑩𝑸𝑳 βŠ† 𝑫𝑺𝑷𝑨π‘ͺ𝑬(log2 𝑛) [Watrous’03] Improve dependence on πœ… 𝐴 ?

Would show 𝑩𝑸𝑳 βŠ† 𝑫𝑺𝑷𝑨π‘ͺ𝑬(log2βˆ’π›Ώ 𝑛)