Feynman's algorithm

Feynman's algorithm is an algorithm that is used to simulate the operations of a quantum computer on a classical computer. It is based on the Path integral formulation of quantum mechanics, which was formulated by Richard Feynman.

Overview

An n qubit quantum computer takes in a quantum circuit U that contains m gates and an input state |0⟩n. It then outputs a string of bits x∈{0,1}n with probability P(xm)=|⟨xm|U|0⟩n|2.

In Schrödinger's algorithm, P(xm) is calculated straightforwardly via matrix multiplication. That is, P(xm)=|⟨xm|UmUm−1Um−2Um−3,...,U1|0⟩n|2. The quantum state of the system can be tracked throughout its evolution.

In Feynman's path algorithm, P(xm) is calculated by summing up the contributions of (2n)m−1 histories. That is,P(xm)=|⟨xm|U|0⟩n|2=|∑x1,x2,x3,...,xm−1∈{0,1}n∏j=1m⟨xj|Uj|xj−1⟩|2.

Schrödinger's takes less time to run compared to Feynman's while Feynman's takes more time and less space. More precisely, Schrödinger's takes ∼m2n time and ∼2n space while Feynman's takes ∼4m time and ∼m+n space.

Example

Consider the problem of creating a Bell state. What is the probability that the resulting measurement will be 00?

Since the quantum circuit that generates a Bell state is the H (Hadamard gate) gate followed by the CNOT gate, the unitary for this circuit is (H⊗I)×CNOT. In that case, P(00)=|⟨00|(H⊗I)×CNOT|00⟩|2=12 using Schrödinger's algorithm. So probability resulting measurement will be 00 is 12.

Using Feynman's algorithm, the Bell state circuit contains (22)2−1=4 histories: 00,01,10,11 . So |∑00,01,10,11∏j=12⟨xj|Uj|xj−1⟩|2=|⟨00|H⊗I|00⟩×⟨00|CNOT|00⟩+⟨01|H⊗I|00⟩×⟨00|CNOT|01⟩+⟨10|H⊗I|00⟩×⟨00|CNOT|10⟩+⟨11|H⊗I|00⟩×⟨00|CNOT|11⟩|2=|12+0+0+0|2=12

See also