DOC PREVIEW
Berkeley COMPSCI 294 - Reversibility, Accuracy

This preview shows page 1 out of 4 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 4 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 4 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Review of quantum circuit modelReversible ComputationRandomized computationCS 294-2 Reversibility, Accuracy 1/29/07Spring 2007 Lecture 41 Reversible ComputationQuantum computation is unitary. A quantum circuit corresponds to a unitary operator U acting on n qubits.Being unitary means UU†= U†U = I. A quantum circuit which performs a unitary operation U has a mirrorimage circuit which performs the corresponding operation U†.U†gφφgUThe circuits for U and U†are the same size and have mirror image gates. Examples:H = H†CNOT = CNOT†Rθ= R†−θ2 Simulating Classical CircuitsQuantum computation originally (in the late 70s and early 80s) tried to understand whether unitary constrainton quantum evolution provided limits beyond those explored in classical computation. A unitary transfor-mation taking basis states to basis states must be a permutation. (Indeed, if Ux=uand Uy=u,thenx= U−1u=y.) Therefore quantum mechanics imposes the constraint that classically it must bereversible computation.How can a classical circuit C which takes an n bit input x and computes f(x) be made into a reversiblequantum circuit that computes the same function? We can never lose any information, so in general thecircuit must output both the input x and the output f(x). In addition, the quantum circuit may need someadditional scratch qubits during the computation since individual gates can’t lose any information either.The consequence of these constraints is illustrated below.CS 294-2, Spring 2007, Lecture 4 1000f(x)xf(x)xx=⇒CUHow is this done? Recall that any classical AND and OR gates can be simulated with a C-SWAP gate andsome scratch0qubits.abcC-SWAPaswap b and c iff a = 1If we construct the corresponding reversible circuit RC, we have a small problem. The CSWAP gates endup converting input scratch bits to garbage. How do we restore the scratch bits to 0 on output? We use thefact that RC is a reversible circuit. The sequence of steps for the overall circuit is(x,0k,0m,0k,1)C0−→ (x,y, garbagex,0k,1)copy y−→ (x,y,garbagex,y,1)(C0)−1−→ (x,0k,0m,y,1) .Overall, this gives us a clean reversible circuitˆC corresponding to C.REVf(x)xf(x) f(x)f(x)xxjunk0RCRC0COPY3 Is Quantum Computation Digital?There is an issue as to whether or not quantum computing is digital. We need only look at simple gates suchas the Hadamard gate or a rotation gate to find real values.H = 1√21√21√2−1√2!Rθ=cosθ−sinθsinθcosθCS 294-2, Spring 2007, Lecture 4 2When we implement a gate, how accurate does it need to be? Do we need infinite precision to build thisgate properly? A paper by Shamir, “How To Factor On Your Calculator,” shows that if we assume infiniteprecision arithmetic, then some NP complete problems can be solved in polynomial time. However, weobviously cannot have infinite precision, so we must digitize quantum computation in order to approximatevalues such as 1/√2. It turns out that logn bits of precision are necessary.Suppose we want to build a gate that rotates the input byθ, but the best accuracy we can actually build isrotation byθ±∆θ(finite precision). Let U1,...,Umbe a set of ideal gates that implement an exact rotationbyθ. Let V1,...,Vmbe a set of actual (constructible) gates that implement rotation byθ±∆θ. Letφbethe initial state. Letψbe the ideal outputψ= U1U2···Umφ,and letψ0be the actual outputψ0= V1V2···Vmφ.The closerψandψ0are to each other, the better the approximation. If we can approximate each gateto withinε= O(1/m), then we can approximate the entire circuit with small constant error.Theorem 4.1: If kUi−Vik ≤ε4mfor 1 ≤i ≤ m, then kψ−ψ0k ≤ε4.Proof:Consider the two hybrid statesψk= U1···Uk−1Vk···Vmφ, andψk+1= U1···UkVk+1···Vmφ.Subtractφk+1fromφkto getφk−φk+1= U1···Uk−1(Vk−Uk)Vk+1···VmφSince the unitary transformations don’t change the norm of the vector, the only term we need to consider isUk+1−Vk+1. But we have an upper bound on this, so we can conclude thatkψk−ψk+1k ≤ε4m.Another way to see this is the following picture. Applying unitary transformations to Umφand Vmφpreserves the angle between them, which is defined to be the norm.φU1···Um−1UmφU1···Um−1VmφVmφUmφεεCS 294-2, Spring 2007, Lecture 4 3We use the triangle inequality to finish to proof.kψ−ψ0k = kψ0−ψmk≤m−1∑i=0kφi−φi+1k≤ m·ε4m≤ε4.CS 294-2, Spring 2007, Lecture 4


View Full Document

Berkeley COMPSCI 294 - Reversibility, Accuracy

Documents in this Course
"Woo" MAC

"Woo" MAC

11 pages

Pangaea

Pangaea

14 pages

Load more
Download Reversibility, Accuracy
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Reversibility, Accuracy and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Reversibility, Accuracy 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?