Planform: Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
en>Hohum
simplify section headings
 
en>IRMacGuyver
Line 1: Line 1:
Cash is tight in at this time's financial system. The prospect of shelling out a number of hundred dollars for a set of new tires will be quite daunting. Nevertheless, it need not be problematic. Used tires give you a viable alternative to spending a wad of money on your tire needs. Used tires could be dependable, offer tremendous durability and even give you a protracted-lasting resolution to your needs. What choices can you discover in used tires ? How can they profit you?<br><br>For flat tire repairs, tires must be returned to Sallas if within a 10-mile radius of our store locations. Outdoors of this protection customer can have tire mounted and send us the receipt, we will lower a try of the principle retailer and mail it to them inside 3 enterprise days. Up to a $20.00 reimbursement. We'll come to the client's home or enterprise (within 20-mile radius), air up the tire, bring the tire or automobile again to our store, and repair the tire at no cost to the shopper.<br><br>Not like standard vehicles golf carts should not tracked so there isn't any method of telling the sum of injury the cart sustained with the previous owner. Many carts are utilized for other purposes and akin to multi unit construction complexes, schools, and maintenance depots for any different types of trades. A number of could be discovered used and abused and often look tough and properly broken. These are usually not apt to be the best decisions for ones personal golf needs.<br><br>Uniroyal Goodrich was formed in 1986 when B.F. Goodrich and Uniroyal combined their tire businesses right into a joint-venture partnership called the Uniroyal Goodrich Tire Company. In 1988, B.F. Goodrich bought its 50 p.c curiosity in the venture to a gaggle of buyers organized by Clayton & Dubilier of New York. At that time, B.F. Goodrich acquired a warrant to buy indirectly as much as 7 p.c of the fairness in Uniroyal Goodrich. The warrant was surrendered to Michelin.<br><br>Another type of put on is attributable to little stones that get stuck contained in the tread. This stones do not usually cause harm, and they are thrown out of the tires while driving, but it is best to filter whatever stones you might find, as an occasional bump could make them protrude deeper and harm the tread, and they harm it is capability to dispers warmth. Truck tires have an angeled tread to forestall so-called "stone retention." The Load index can also be determind on the most pace and with full inflation. It might probably therefore be theoretically attainable to load the automobile past the stated quantity, albeit being highly unrecommended. Bias-Ply tires both have a Ply Ranking (specifying the quantity of plies) and/or Load Vary from A (two plies) to E (10 plies).<br><br>The 'drawing' device, meant for drawing completely different shapes, ought to be used to create a cylindrical shape - tire of the car. Four cylindrical shapes would be required to create four tires of your virtual car. You'll have to regulate the size of those cylindrical shapes via the 'sizing' software. Pirelli, for example, has had the PZero brand since 2002, selling in department and clothing stores all over the world, including Harrods in London. The company won't say whether or not PZero is worthwhile — however it is a part of the 1 % of the company's €4.eight billion, or $6.5 billion, in 2010 sales that did not come from tires. That puts PZero's revenue at lower than €forty eight million. 1.5 Main Markets of the Tire Business 3.1.5 Worth added by Tire Recycling<br><br>There are so many several types of used tractortires. There are industrial tires, frontor rear tires of the tractor, implement tires, specialty tires, etc. You should definitely know what kind of tire youneed. It's possible you'll be shopping for the same type that'salready in your tire. But if you're not,be sure you test the tread depth and tire radius of the tire you want toreplace. It's okay to vary the size ofthe tires that came with your tractor. Typically a larger tire gives you extra traction and pullingpower. Again, you'll want to test the tirefor harm earlier than shopping for a used tire.<br><br>That rounds things up on discount tyres, you have to to know the above prior to creating a sound investment on low cost tyres whether or not its an on-line or off-line buy. If you loved this write-up and you would certainly like to receive even more information concerning [http://ow.ly/AhDNp purchase tires] kindly browse through the webpage. One final point to remember, in the event you do resolve to purchase some discount automotive tyres then take note of that's quite a process to buy a extremely unhealthy set of tyres as of late. Most tyres in the marketplace are all safety checked before they are often legally bought. Simply be true to your requirements and get the perfect ones your wallet can safely afford. In regards to the Creator
'''Grover's algorithm''' is a [[quantum algorithm]] for searching an [[sorting|unsorted]] [[database]] with ''N'' entries in ''O''(''N''<sup>1/2</sup>) time and using ''O''(log&nbsp;''N'') storage space (see [[big O notation]]). [[Lov K. Grover|Lov Grover]] formulated it in 1996.
 
In models of classical computation, searching an unsorted database cannot be done in less than [[linear time]] (so merely [[linear search|searching through every item]] is optimal). Grover's algorithm illustrates that in the quantum model searching can be done faster than this; in fact its time complexity ''O''(''N''<sup>1/2</sup>) is asymptotically the fastest possible for searching an unsorted database in the ''linear'' quantum model.<ref name=bennett_1997>Bennett C.H., Bernstein E., Brassard G., Vazirani U., ''[http://www.cs.berkeley.edu/~vazirani/pubs/bbbv.ps The strengths and weaknesses of quantum computation]''. [[SIAM Journal on Computing]] 26(5): 1510&ndash;1523 (1997). Shows the optimality of Grover's algorithm.</ref> It provides a quadratic speedup, unlike other quantum algorithms, which may provide exponential speedup over their classical counterparts. However, even quadratic speedup is considerable when ''N'' is large. Unsorted search speeds of up to [[constant time]] are achievable in the ''nonlinear'' quantum model.<ref>Meyer, D.A. and Wong, T.G. ''[http://arxiv.org/abs/1303.0371 Nonlinear Quantum Search Using the Gross-Pitaevskii Equation].''</ref>
 
Like many quantum algorithms, Grover's algorithm is probabilistic in the sense that it gives the correct answer with high [[probability]]. The probability of failure can be decreased by repeating the algorithm.  (An example of a deterministic quantum algorithm is the [[Deutsch-Jozsa algorithm]], which always produces the correct answer.)
 
== Applications ==
Although the purpose of Grover's algorithm is usually described as "searching a database", it may be more accurate to describe it as "inverting a function". Roughly speaking, if we have a function ''y=f(x)'' that can be evaluated on a quantum computer, this algorithm allows us to calculate ''x'' when given ''y''. Inverting a function is related to the searching of a database because we could come up with a function that produces a particular value of ''y'' if ''x'' matches a desired entry in a database, and another value of ''y'' for other values of ''x''.
 
Grover's algorithm can also be used for estimating the [[mean]] and [[median]] of a set of numbers, and for solving the [[Collision problem]]. The algorithm can be further optimized if there is more than one matching entry and the number of matches is known beforehand.
 
== Setup ==
Consider an unsorted database with ''N'' entries. The algorithm requires an ''N''-dimensional [[mathematical formulation of quantum mechanics|state space]] ''H'', which can be supplied by ''n''=log<sub>2</sub>&nbsp;''N'' [[qubit]]s. Consider the problem of determining the index of the database entry which satisfies some search criterion. Let ''f'' be the function which maps database entries to ''0'' or ''1'', where ''f(ω)=1'' if and only if ''ω'' satisfies the search criterion. We are provided with (quantum black box) access to a [[subroutine]] in the form of a [[unitary operator]], ''U<sub>ω</sub>'', which acts as:
:<math> U_\omega |\omega\rang = - |\omega\rang </math>
:<math> U_\omega |x\rang = |x\rang \qquad \mbox{for all}\ x \ne \omega</math>
 
Our goal is to identify the index <math>|\omega\rang</math>.
 
== Algorithm steps==
[[File:Grovers algorithm.svg|500px|thumb|right|[[Quantum circuit]] representation of Grover's algorithm]]
The steps of Grover's algorithm are given as follows. Let <math>|s\rangle</math> denote the uniform superposition over all states
 
:<math>|s\rang = \frac{1}{\sqrt{N}} \sum_{x=1}^{N} |x\rang</math>.
 
Then the operator
 
:<math>U_s = 2 \left|s\right\rangle \left\langle s\right| - I</math>
 
is known as the Grover diffusion operator.
 
Here is the algorithm:
# Initialize the system to the state<br /><math>|s\rang = \frac{1}{\sqrt{N}} \sum_{x=1}^{N} |x\rang </math>
# Perform the following "Grover iteration" ''r(N)'' times. The function ''r(N),'' which is asymptotically ''O(N<sup>½</sup>)'', is described below.
## Apply the operator <math>U_\omega</math>.
## Apply the operator <math>U_s</math>.
# Perform the measurement Ω. The measurement result will be λ<sub>ω</sub> with probability approaching 1 for N≫1. From λ<sub>ω</sub>, ω may be obtained.
 
== The first iteration ==
A preliminary observation, in parallel with our definition
:<math> U_s = 2 \left|s\right\rangle \left\langle s\right| - I</math>,
is that ''U<sub>&omega;</sub>'' can be expressed in an alternate way:
:<math> U_\omega = I - 2 \left|\omega\right\rangle \left\langle \omega\right|</math>.
To prove this it suffices to check how ''U<sub>&omega;</sub>'' acts on basis states:
:<math> (I-2| \omega\rangle \langle \omega|)|\omega\rang=|\omega\rang-2| \omega\rangle \langle \omega|\omega\rang=-|\omega\rangle = U_\omega |\omega\rang</math>.
:<math> (I-2| \omega\rangle \langle \omega|)|x\rang=|x\rang-2| \omega\rangle \langle \omega|x\rang=|x\rangle = U_\omega |x\rang </math> for all <math> x \neq \omega</math>.
 
The following computations show what happens in the first iteration:
:<math> \lang\omega|s\rang =\lang s|\omega\rang = \frac{1}{\sqrt{N}} </math>.
:<math> \langle s| s\rang =N\frac{1}{\sqrt{N}}\cdot \frac{1}{\sqrt{N}}=1</math>.
:<math> U_\omega |s\rang = (I-2| \omega\rangle \langle \omega|)|s\rang=|s\rang-2| \omega\rangle \langle \omega|s\rang=|s\rang-\frac{2}{\sqrt{N}}|\omega\rangle </math>.
:<math>U_s(|s\rang-\frac{2}{\sqrt{N}}|\omega\rangle) = (2 |s\rang \lang s| - I)(|s\rang-\frac{2}{\sqrt{N}}|\omega\rangle)=2 |s\rang \lang s|s\rang-|s\rang-\frac{4}{\sqrt{N}}|s\rang \langle s|\omega\rang+\frac{2}{\sqrt{N}}|\omega\rang=</math>
:<math>=2|s\rang-|s\rang-\frac{4}{\sqrt{N}}\cdot\frac{1}{\sqrt{N}}|s\rang+\frac{2}{\sqrt{N}}|\omega\rang=|s\rang-\frac{4}{N}|s\rang+\frac{2}{\sqrt{N}}|\omega\rang=\frac{N-4}{N}|s\rang+\frac{2}{\sqrt{N}}|\omega\rang</math>.
After application of the two operators ( <math>U_\omega</math> and <math>U_s</math> ), the amplitude of the searched-for element has increased from <math> \left| \lang \omega | s \rang \right|^2 = 1/N</math> to <math> \left| \lang \omega | U_s U_\omega s \rang \right|^2  \approx 9/N</math>.
 
==Description of ''U<sub>ω</sub>''==
Grover's algorithm requires a "quantum oracle" operator <math>U_{\omega}</math> which can recognize solutions to the search problem and give them a negative sign. In order to keep the search algorithm general, we will leave the inner workings of the oracle as a black box, but will explain how the sign is flipped. The oracle contains a function <math>f</math> which returns <math>f(x) = 1</math> if <math>|x\rang</math> is a solution to the search problem and <math>f(x) = 0</math> otherwise. The oracle is a unitary operator which operates on two qubits, the index qubit <math>|x\rang</math> and the oracle qubit <math>|q\rang</math>:
 
:<math>|x\rang|q\rang \overset{U_{\omega}}\longrightarrow |x\rang|q\oplus f(x)\rang</math>
 
As usual, <math>\oplus</math> denotes addition modulo 2. The operation flips the oracle qubit if <math>f(x) = 1</math> and leaves it alone otherwise. In Grover's algorithm we want to flip the sign of the state <math>|x\rang</math> if it labels a solution. This is achieved by setting the oracle qubit in the state <math>(|0\rang - |1\rang)/\sqrt{2}</math>, which is flipped to <math>(|1\rang - |0\rang)/ \sqrt{2}</math> if <math>|x\rang</math> is a solution:
 
:<math>|x\rang\left(|0\rang - |1\rang\right)/\sqrt{2}  \overset{U_{\omega}}\longrightarrow (-1)^{f(x)}|x\rang\left( |0\rang- |1\rang\right)/\sqrt{2} </math>
 
We regard <math>|x\rang</math> as flipped, thus the oracle qubit is not changed, so by convention the oracle qubits are usually not mentioned in the specification of Grover's algorithm. Thus the operation of the oracle <math>U_{\omega}</math> is simply written as: 
:<math>|x\rang \overset{U_{\omega}} \longrightarrow (-1)^{f(x)}|x\rang</math>
 
== Geometric proof of correctness==
[[File:Grovers algorithm geometry.png|thumb|310px|Picture showing the geometric interpretation of the first iteration of Grover's algorithm. The state vector <math>|s\rang</math> is rotated towards the target vector <math>|\omega\rang</math> as shown.]]
Consider the plane spanned by <math>|s\rang</math> and <math>|\omega\rang</math>; equivalently, the plane spanned by <math>|\omega\rang</math> and the perpendicular ket <math>|s'\rang = \frac{1}{\sqrt{N - 1}}\sum_{x \neq \omega} |x\rang</math>. We will consider the first iteration, acting on the initial ket <math>|s\rang</math>. Since <math>|\omega\rang</math> is one of the basis vectors in <math>|s\rang</math> the overlap is
 
:<math> \lang s'|s\rang = \sqrt{\frac{N-1}{N}} </math>
 
In geometric terms, the angle <math>\theta/2</math> between <math>|s\rang</math> and <math>|s'\rang</math> is given by:
 
:<math> \sin \theta/2 = \frac{1}{\sqrt{N}} </math>
 
The operator <math>U_{\omega}</math> is a reflection at the hyperplane orthogonal to <math>|\omega\rang</math> for vectors in the plane spanned by <math>|s'\rang</math> and <math>|\omega\rang</math>; i.e. it acts as a reflection across <math>|s'\rang</math>. The operator <math>U_s</math> is a reflection through <math>|s\rang</math>. Therefore, the state vector remains in the plane spanned by <math>|s'\rang</math> and <math>|\omega\rang</math> after each application of the operators <math>U_s</math> and <math>U_{\omega}</math>, and it is straightforward to check that the operator <math>U_s U_{\omega}</math> of each Grover iteration step rotates the state vector by an angle of <math>\theta = 2\arcsin \frac{1}{\sqrt{N}}  </math>.
 
We need to stop when the state vector passes close to <math>|\omega\rang</math>; after this, subsequent iterations rotate the state vector ''away'' from <math>|\omega\rang</math>, reducing the probability of obtaining the correct answer. The exact probability of measuring the correct answer is:
:<math> \sin^2\left( \left( r+ \frac{1}{2} \right)\theta\right)</math>
where ''r'' is the (integer) number of Grover iterations.
The earliest time that we get a near-optimal measurement is therefore <math>r \approx \pi \sqrt{N} / 4</math>.
 
== Algebraic proof of correctness ==
To complete the algebraic analysis we need to find out what happens when we repeatedly apply <math>U_s U_\omega</math>. A natural way to do this is by eigenvalue analysis of a matrix. Notice that during the entire computation, the state of the algorithm is a linear combination of <math>s</math> and <math>\omega</math>. We can write the action of <math>U_s</math> and <math>U_\omega</math> in the space spanned by <math>\{|s\rang, |\omega\rang\}</math> as:
:<math> U_s : a |\omega \rang + b |s \rang \mapsto (|\omega \rang \, | s \rang) \begin{pmatrix}
-1 & 0 \\
2/\sqrt{N} & 1 \end{pmatrix}\begin{pmatrix}a\\b\end{pmatrix}.</math>
 
:<math> U_\omega : a |\omega \rang + b |s \rang \mapsto (|\omega \rang \, | s \rang) \begin{pmatrix}
-1 & -2/\sqrt{N} \\
0 & 1 \end{pmatrix}\begin{pmatrix}a\\b\end{pmatrix}.</math>
 
So in the basis <math>\{ |\omega\rang, |s\rang \}</math> (which is neither orthogonal nor a basis of the whole space) the action <math>U_sU_\omega</math> of applying <math>U_\omega</math> followed by <math>U_s</math> is given by the matrix
 
:<math> U_sU_\omega = \begin{pmatrix} -1 & 0 \\ 2/\sqrt{N} & 1 \end{pmatrix}
\begin{pmatrix}
-1 & -2/\sqrt{N} \\
0 & 1 \end{pmatrix}
=
\begin{pmatrix}
1 & 2/\sqrt{N} \\
-2/\sqrt{N} & 1-4/N \end{pmatrix}.</math>
 
This matrix happens to have a very convenient [[Jordan form]]. If we define <math>t = \arcsin(1/\sqrt{N})</math>, it is
:<math> U_sU_\omega = M \begin{pmatrix} \exp(2it) & 0 \\ 0 & \exp(-2it)\end{pmatrix} M^{-1}</math> where <math>M = \begin{pmatrix}-i & i \\ \exp(it) & \exp(-it) \end{pmatrix}.</math>
 
It follows that ''r''th power of the matrix (corresponding to ''r'' iterations) is
:<math> (U_sU_\omega)^r = M \begin{pmatrix} \exp(2rit) & 0 \\ 0 & \exp(-2rit)\end{pmatrix} M^{-1}</math>
Using this form we can use trigonometric identities to compute the probability of observing ''&omega;'' after ''r'' iterations mentioned in the previous section,  
:<math>\left|\begin{pmatrix}\lang\omega|\omega\rang & \lang\omega|s\rang\end{pmatrix}(U_sU_\omega)^r \begin{pmatrix}0 \\ 1\end{pmatrix} \right|^2 = \sin^2\left( (2r+1)t\right)</math>.
Alternatively, one might reasonably imagine that a near-optimal time to distinguish would be when the angles ''2rt'' and ''-2rt'' are as far apart as possible, which corresponds to <math>2rt \approx \pi/2</math> or <math>r = \pi/4t = \pi/4\arcsin(1/\sqrt{N}) \approx \pi\sqrt{N}/4</math>. Then the system is in state
:<math> (|\omega \rang \, | s \rang) (U_sU_\omega)^r \begin{pmatrix}0\\1\end{pmatrix} \approx (|\omega \rang \, | s \rang) M \begin{pmatrix} i & 0 \\ 0 & -i\end{pmatrix} M^{-1} \begin{pmatrix}0\\1\end{pmatrix} = | w \rang \frac{1}{\cos(t)} - |s \rang \frac{\sin(t)}{\cos(t)}.</math>
A short calculation now shows that the observation yields the correct answer ''&omega;'' with error ''O(1/N)''.
 
== Extension to space with multiple targets ==
If, instead of 1 matching entry, there are ''k'' matching entries, the same algorithm works but the number of iterations must be ''&pi;(N/k)<sup>1/2</sup>/4'' instead of ''&pi;N<sup>1/2</sup>/4''.
There are several ways to handle the case if ''k'' is unknown. For example, one could run Grover's algorithm several times, with
 
:<math> \pi \frac{N^{1/2}}{4}, \pi \frac{(N/2)^{1/2}}{4},
\pi \frac{(N/4)^{1/2}}{4}, \ldots </math>
 
iterations. For any ''k'', one of the iterations will find a matching entry with a sufficiently high probability. The total number of iterations is at most
 
:<math> \pi \frac{N^{1/2}}{4} \left( 1+ \frac{1}{\sqrt{2}}+\frac{1}{2}+\cdots\right) </math>
 
which is still O(''N<sup>1/2</sup>''). It can be shown that this can be improved. If the number of marked items is ''k'', where ''k'' is unknown, there is an algorithm that finds the solution in <math>\sqrt{N/k}</math> queries. This fact is used in order to solve the collision problem.<ref name=Boyer>{{Citation| author1=Michel Boyer|author2=Gilles Brassard|author3=Peter Høyer|author4=Alain Tapp|journal=Fortsch. Phys.|volume=46|pages=493–506|year=1998|arxiv=quant-ph/9605034|bibcode = 1998ForPh..46..493B |doi = 10.1002/(SICI)1521-3978(199806)46:4/5&lt;493::AID-PROP493&gt;3.0.CO;2-P }}</ref><ref>{{Citation|
author=Andris Ambainis|title=Quantum search algorithms|journal=SIGACT News|volume=35|number=2|pages=22–35|year= 2004|arxiv=quant-ph/0504012|bibcode = 2005quant.ph..4012A }}
</ref>
 
==Quantum partial search==
A  modification of Grover's algorithm called quantum partial search was described by Grover and Radhakrishnan in 2004.<ref>L.K. Grover and J. Radhakrishnan,''Is partial quantum search of a database any easier?''. [http://arxiv.org/abs/quant-ph/0407122 quant-ph/0407122]</ref> In partial search, one is not interested in finding the exact address of the target item, only the first few digits of the address. Equivalently, we can think of "chunking" the search space into blocks, and then asking "in which block is the target item?". In many applications, such a search yields enough information if the target address contains the information wanted. For instance, to use the example given by L.K. Grover, if one has a list of students organized by class rank, we may only be interested in whether a student is in the lower 25%, 25-50%, 50-70% or 75-100% percentile.
 
To describe partial search, we consider a database separated into <math>K</math> blocks, each of size <math>b = N/K</math>. Obviously, the partial search problem is easier. Consider the approach we would take classically - we pick one block at random, and then perform a normal search through the rest of the blocks (in set theory language, the complement). If we don't find the target, then we know it's in the block we didn't search. The average number of iterations drops from <math>N/2</math> to <math>(N-b)/2</math>.
 
Grover's algorithm requires <math>\pi/4\sqrt{N}</math> iterations. Partial search will be faster by a numerical factor which depends on the number of blocks <math>K</math>. Partial search uses <math>n_1</math> global iterations and <math>n_2</math> local iterations. The global Grover operator is designated <math>G_1</math> and the local Grover operator is designated <math>G_2</math>.
 
The global Grover operator acts on the blocks. Essentially, it is given as follows:
 
#Perform <math>j_1</math> standard Grover iterations on the entire database.
#Perform <math>j_2</math> local Grover iterations. A local Grover iteration is a direct sum of Grover iterations over each block.
#Perform one standard Grover iteration
 
The optimal values of <math>j_1</math> and <math>j_2</math> are discussed in the paper by Grover and Radhakrishnan. One might also wonder what happens if one applies successive partial searches at different levels of "resolution". This idea was studied in detail by [[Vladimir Korepin|Korepin]] and Xu, who called it binary quantum search. They proved that it is not in fact any faster than performing a single partial search.
 
==Optimality ==
It is known that Grover's algorithm is optimal. That is, any algorithm that accesses the database only by using the operator U<sub>ω</sub> must apply U<sub>ω</sub> at least as many times as Grover's algorithm.<ref name=bennett_1997 /> This result is important in understanding the limits of quantum computation.
If the Grover's search problem was solvable with ''log<sup>c</sup> N'' applications of U<sub>ω</sub>, that would imply that [[NP (complexity class)|NP]] is contained in [[BQP]], by transforming problems in NP into Grover-type search problems. The optimality of
Grover's algorithm suggests (but does not prove) that NP is not contained in BQP.
 
The number of iterations for ''k'' matching entries, ''&pi;(N/k)<sup>1/2</sup>/4'', is also optimal.<ref name=Boyer />
 
==Applicability and Limitations==
 
When applications of Grover's algorithm are considered, it should be emphasized that the database is not represented explicitly. Instead, an oracle is invoked to evaluate an item by its index. Reading a full data-base item by item and converting it into such a representation may take a lot longer than Grover's search. To account for such effects, Grover's algorithm can be viewed as solving an equation or satisfying a constraint. In such applications, the oracle is a way to check the constraint and is not related to the search algorithm. This separation usually prevents algorithmic optimizations, whereas conventional search algorithms often rely on such optimizations and avoid exhaustive search. These and other considerations about using Grover's algorithm are discussed in <ref name=Viamontes>{{Citation| author1=Viamontes G.F.|author2=Markov I.L.|author3=Hayes J.P.|title="Is Quantum Search Practical?"|journal=IEEE/AIP Computing in Science and Engineering|pages=62-70|volume=7|issue=3|year=2005|url=http://web.eecs.umich.edu/~imarkov/pubs/jour/cise05-grov.pdf}}</ref>
 
==See also==
* [[Amplitude amplification]]
* [[Shor's algorithm]]
 
==Notes==
<references/>
 
== References ==
* Grover L.K.: ''[http://arxiv.org/abs/quant-ph/9605043 A fast quantum mechanical algorithm for database search]'', Proceedings, 28th Annual ACM Symposium on the Theory of Computing, (May 1996) p.&nbsp;212
* Grover L.K.: ''[http://arxiv.org/abs/quant-ph/0109116 From Schrödinger's equation to quantum search algorithm]'', American Journal of Physics, 69(7): 769-777, 2001. Pedagogical review of the algorithm and its history.
* Nielsen, M.A. and Chuang, I.L. ''Quantum computation and quantum information''. Cambridge University Press, 2000. Chapter 6.
* [http://www.bell-labs.com/user/feature/archives/lkgrover/ What's a Quantum Phone Book?], Lov Grover, Lucent Technologies
* [http://arxiv.org/abs/quant-ph/0301079 Grover's Algorithm: Quantum Database Search], C. Lavor, L.R.U. Manssur, R. Portugal
* [http://xstructure.inr.ac.ru/x-bin/theme3.py?level=1&index1=359266 Grover's algorithm on arxiv.org]
 
==External links==
*[http://www.davyw.com/quantum?example=Grover's%20Algorithm Grover's Algorithm] simulation and circuit diagram.
*[http://twistedoakstudios.com/blog/Post2644_grovers-quantum-search-algorithm Grover’s Quantum Search Algorithm] animated explanation.
*[http://www.irisa.fr/prive/fschwarz/mit1_algo2_2013/grover_s_algorithm/] simulation and circuit diagram with cats.
{{Quantum computing}}
 
{{DEFAULTSORT:Grover's Algorithm}}
[[Category:Quantum algorithms]]
[[Category:Search algorithms]]

Revision as of 12:20, 28 January 2014

Grover's algorithm is a quantum algorithm for searching an unsorted database with N entries in O(N1/2) time and using O(log N) storage space (see big O notation). Lov Grover formulated it in 1996.

In models of classical computation, searching an unsorted database cannot be done in less than linear time (so merely searching through every item is optimal). Grover's algorithm illustrates that in the quantum model searching can be done faster than this; in fact its time complexity O(N1/2) is asymptotically the fastest possible for searching an unsorted database in the linear quantum model.[1] It provides a quadratic speedup, unlike other quantum algorithms, which may provide exponential speedup over their classical counterparts. However, even quadratic speedup is considerable when N is large. Unsorted search speeds of up to constant time are achievable in the nonlinear quantum model.[2]

Like many quantum algorithms, Grover's algorithm is probabilistic in the sense that it gives the correct answer with high probability. The probability of failure can be decreased by repeating the algorithm. (An example of a deterministic quantum algorithm is the Deutsch-Jozsa algorithm, which always produces the correct answer.)

Applications

Although the purpose of Grover's algorithm is usually described as "searching a database", it may be more accurate to describe it as "inverting a function". Roughly speaking, if we have a function y=f(x) that can be evaluated on a quantum computer, this algorithm allows us to calculate x when given y. Inverting a function is related to the searching of a database because we could come up with a function that produces a particular value of y if x matches a desired entry in a database, and another value of y for other values of x.

Grover's algorithm can also be used for estimating the mean and median of a set of numbers, and for solving the Collision problem. The algorithm can be further optimized if there is more than one matching entry and the number of matches is known beforehand.

Setup

Consider an unsorted database with N entries. The algorithm requires an N-dimensional state space H, which can be supplied by n=log2 N qubits. Consider the problem of determining the index of the database entry which satisfies some search criterion. Let f be the function which maps database entries to 0 or 1, where f(ω)=1 if and only if ω satisfies the search criterion. We are provided with (quantum black box) access to a subroutine in the form of a unitary operator, Uω, which acts as:

Our goal is to identify the index .

Algorithm steps

Quantum circuit representation of Grover's algorithm

The steps of Grover's algorithm are given as follows. Let denote the uniform superposition over all states

.

Then the operator

is known as the Grover diffusion operator.

Here is the algorithm:

  1. Initialize the system to the state
  2. Perform the following "Grover iteration" r(N) times. The function r(N), which is asymptotically O(N½), is described below.
    1. Apply the operator .
    2. Apply the operator .
  3. Perform the measurement Ω. The measurement result will be λω with probability approaching 1 for N≫1. From λω, ω may be obtained.

The first iteration

A preliminary observation, in parallel with our definition

,

is that Uω can be expressed in an alternate way:

.

To prove this it suffices to check how Uω acts on basis states:

.
for all .

The following computations show what happens in the first iteration:

.
.
.
.

After application of the two operators ( and ), the amplitude of the searched-for element has increased from to .

Description of Uω

Grover's algorithm requires a "quantum oracle" operator which can recognize solutions to the search problem and give them a negative sign. In order to keep the search algorithm general, we will leave the inner workings of the oracle as a black box, but will explain how the sign is flipped. The oracle contains a function which returns if is a solution to the search problem and otherwise. The oracle is a unitary operator which operates on two qubits, the index qubit and the oracle qubit :

As usual, denotes addition modulo 2. The operation flips the oracle qubit if and leaves it alone otherwise. In Grover's algorithm we want to flip the sign of the state if it labels a solution. This is achieved by setting the oracle qubit in the state , which is flipped to if is a solution:

We regard as flipped, thus the oracle qubit is not changed, so by convention the oracle qubits are usually not mentioned in the specification of Grover's algorithm. Thus the operation of the oracle is simply written as:

Geometric proof of correctness

Picture showing the geometric interpretation of the first iteration of Grover's algorithm. The state vector is rotated towards the target vector as shown.

Consider the plane spanned by and ; equivalently, the plane spanned by and the perpendicular ket . We will consider the first iteration, acting on the initial ket . Since is one of the basis vectors in the overlap is

In geometric terms, the angle between and is given by:

The operator is a reflection at the hyperplane orthogonal to for vectors in the plane spanned by and ; i.e. it acts as a reflection across . The operator is a reflection through . Therefore, the state vector remains in the plane spanned by and after each application of the operators and , and it is straightforward to check that the operator of each Grover iteration step rotates the state vector by an angle of .

We need to stop when the state vector passes close to ; after this, subsequent iterations rotate the state vector away from , reducing the probability of obtaining the correct answer. The exact probability of measuring the correct answer is:

where r is the (integer) number of Grover iterations. The earliest time that we get a near-optimal measurement is therefore .

Algebraic proof of correctness

To complete the algebraic analysis we need to find out what happens when we repeatedly apply . A natural way to do this is by eigenvalue analysis of a matrix. Notice that during the entire computation, the state of the algorithm is a linear combination of and . We can write the action of and in the space spanned by as:

So in the basis (which is neither orthogonal nor a basis of the whole space) the action of applying followed by is given by the matrix

This matrix happens to have a very convenient Jordan form. If we define , it is

where

It follows that rth power of the matrix (corresponding to r iterations) is

Using this form we can use trigonometric identities to compute the probability of observing ω after r iterations mentioned in the previous section,

.

Alternatively, one might reasonably imagine that a near-optimal time to distinguish would be when the angles 2rt and -2rt are as far apart as possible, which corresponds to or . Then the system is in state

A short calculation now shows that the observation yields the correct answer ω with error O(1/N).

Extension to space with multiple targets

If, instead of 1 matching entry, there are k matching entries, the same algorithm works but the number of iterations must be π(N/k)1/2/4 instead of πN1/2/4. There are several ways to handle the case if k is unknown. For example, one could run Grover's algorithm several times, with

iterations. For any k, one of the iterations will find a matching entry with a sufficiently high probability. The total number of iterations is at most

which is still O(N1/2). It can be shown that this can be improved. If the number of marked items is k, where k is unknown, there is an algorithm that finds the solution in queries. This fact is used in order to solve the collision problem.[3][4]

Quantum partial search

A modification of Grover's algorithm called quantum partial search was described by Grover and Radhakrishnan in 2004.[5] In partial search, one is not interested in finding the exact address of the target item, only the first few digits of the address. Equivalently, we can think of "chunking" the search space into blocks, and then asking "in which block is the target item?". In many applications, such a search yields enough information if the target address contains the information wanted. For instance, to use the example given by L.K. Grover, if one has a list of students organized by class rank, we may only be interested in whether a student is in the lower 25%, 25-50%, 50-70% or 75-100% percentile.

To describe partial search, we consider a database separated into blocks, each of size . Obviously, the partial search problem is easier. Consider the approach we would take classically - we pick one block at random, and then perform a normal search through the rest of the blocks (in set theory language, the complement). If we don't find the target, then we know it's in the block we didn't search. The average number of iterations drops from to .

Grover's algorithm requires iterations. Partial search will be faster by a numerical factor which depends on the number of blocks . Partial search uses global iterations and local iterations. The global Grover operator is designated and the local Grover operator is designated .

The global Grover operator acts on the blocks. Essentially, it is given as follows:

  1. Perform standard Grover iterations on the entire database.
  2. Perform local Grover iterations. A local Grover iteration is a direct sum of Grover iterations over each block.
  3. Perform one standard Grover iteration

The optimal values of and are discussed in the paper by Grover and Radhakrishnan. One might also wonder what happens if one applies successive partial searches at different levels of "resolution". This idea was studied in detail by Korepin and Xu, who called it binary quantum search. They proved that it is not in fact any faster than performing a single partial search.

Optimality

It is known that Grover's algorithm is optimal. That is, any algorithm that accesses the database only by using the operator Uω must apply Uω at least as many times as Grover's algorithm.[1] This result is important in understanding the limits of quantum computation. If the Grover's search problem was solvable with logc N applications of Uω, that would imply that NP is contained in BQP, by transforming problems in NP into Grover-type search problems. The optimality of Grover's algorithm suggests (but does not prove) that NP is not contained in BQP.

The number of iterations for k matching entries, π(N/k)1/2/4, is also optimal.[3]

Applicability and Limitations

When applications of Grover's algorithm are considered, it should be emphasized that the database is not represented explicitly. Instead, an oracle is invoked to evaluate an item by its index. Reading a full data-base item by item and converting it into such a representation may take a lot longer than Grover's search. To account for such effects, Grover's algorithm can be viewed as solving an equation or satisfying a constraint. In such applications, the oracle is a way to check the constraint and is not related to the search algorithm. This separation usually prevents algorithmic optimizations, whereas conventional search algorithms often rely on such optimizations and avoid exhaustive search. These and other considerations about using Grover's algorithm are discussed in [6]

See also

Notes

  1. 1.0 1.1 Bennett C.H., Bernstein E., Brassard G., Vazirani U., The strengths and weaknesses of quantum computation. SIAM Journal on Computing 26(5): 1510–1523 (1997). Shows the optimality of Grover's algorithm.
  2. Meyer, D.A. and Wong, T.G. Nonlinear Quantum Search Using the Gross-Pitaevskii Equation.
  3. 3.0 3.1 Many property agents need to declare for the PIC grant in Singapore. However, not all of them know find out how to do the correct process for getting this PIC scheme from the IRAS. There are a number of steps that you need to do before your software can be approved.

    Naturally, you will have to pay a safety deposit and that is usually one month rent for annually of the settlement. That is the place your good religion deposit will likely be taken into account and will kind part or all of your security deposit. Anticipate to have a proportionate amount deducted out of your deposit if something is discovered to be damaged if you move out. It's best to you'll want to test the inventory drawn up by the owner, which can detail all objects in the property and their condition. If you happen to fail to notice any harm not already mentioned within the inventory before transferring in, you danger having to pay for it yourself.

    In case you are in search of an actual estate or Singapore property agent on-line, you simply should belief your intuition. It's because you do not know which agent is nice and which agent will not be. Carry out research on several brokers by looking out the internet. As soon as if you end up positive that a selected agent is dependable and reliable, you can choose to utilize his partnerise in finding you a home in Singapore. Most of the time, a property agent is taken into account to be good if he or she locations the contact data on his website. This may mean that the agent does not mind you calling them and asking them any questions relating to new properties in singapore in Singapore. After chatting with them you too can see them in their office after taking an appointment.

    Have handed an trade examination i.e Widespread Examination for House Brokers (CEHA) or Actual Property Agency (REA) examination, or equal; Exclusive brokers are extra keen to share listing information thus making certain the widest doable coverage inside the real estate community via Multiple Listings and Networking. Accepting a severe provide is simpler since your agent is totally conscious of all advertising activity related with your property. This reduces your having to check with a number of agents for some other offers. Price control is easily achieved. Paint work in good restore-discuss with your Property Marketing consultant if main works are still to be done. Softening in residential property prices proceed, led by 2.8 per cent decline within the index for Remainder of Central Region

    Once you place down the one per cent choice price to carry down a non-public property, it's important to accept its situation as it is whenever you move in – faulty air-con, choked rest room and all. Get round this by asking your agent to incorporate a ultimate inspection clause within the possibility-to-buy letter. HDB flat patrons routinely take pleasure in this security net. "There's a ultimate inspection of the property two days before the completion of all HDB transactions. If the air-con is defective, you can request the seller to repair it," says Kelvin.

    15.6.1 As the agent is an intermediary, generally, as soon as the principal and third party are introduced right into a contractual relationship, the agent drops out of the image, subject to any problems with remuneration or indemnification that he could have against the principal, and extra exceptionally, against the third occasion. Generally, agents are entitled to be indemnified for all liabilities reasonably incurred within the execution of the brokers´ authority.

    To achieve the very best outcomes, you must be always updated on market situations, including past transaction information and reliable projections. You could review and examine comparable homes that are currently available in the market, especially these which have been sold or not bought up to now six months. You'll be able to see a pattern of such report by clicking here It's essential to defend yourself in opposition to unscrupulous patrons. They are often very skilled in using highly unethical and manipulative techniques to try and lure you into a lure. That you must also protect your self, your loved ones, and personal belongings as you'll be serving many strangers in your home. Sign a listing itemizing of all of the objects provided by the proprietor, together with their situation. HSR Prime Recruiter 2010
  4. Many property agents need to declare for the PIC grant in Singapore. However, not all of them know find out how to do the correct process for getting this PIC scheme from the IRAS. There are a number of steps that you need to do before your software can be approved.

    Naturally, you will have to pay a safety deposit and that is usually one month rent for annually of the settlement. That is the place your good religion deposit will likely be taken into account and will kind part or all of your security deposit. Anticipate to have a proportionate amount deducted out of your deposit if something is discovered to be damaged if you move out. It's best to you'll want to test the inventory drawn up by the owner, which can detail all objects in the property and their condition. If you happen to fail to notice any harm not already mentioned within the inventory before transferring in, you danger having to pay for it yourself.

    In case you are in search of an actual estate or Singapore property agent on-line, you simply should belief your intuition. It's because you do not know which agent is nice and which agent will not be. Carry out research on several brokers by looking out the internet. As soon as if you end up positive that a selected agent is dependable and reliable, you can choose to utilize his partnerise in finding you a home in Singapore. Most of the time, a property agent is taken into account to be good if he or she locations the contact data on his website. This may mean that the agent does not mind you calling them and asking them any questions relating to new properties in singapore in Singapore. After chatting with them you too can see them in their office after taking an appointment.

    Have handed an trade examination i.e Widespread Examination for House Brokers (CEHA) or Actual Property Agency (REA) examination, or equal; Exclusive brokers are extra keen to share listing information thus making certain the widest doable coverage inside the real estate community via Multiple Listings and Networking. Accepting a severe provide is simpler since your agent is totally conscious of all advertising activity related with your property. This reduces your having to check with a number of agents for some other offers. Price control is easily achieved. Paint work in good restore-discuss with your Property Marketing consultant if main works are still to be done. Softening in residential property prices proceed, led by 2.8 per cent decline within the index for Remainder of Central Region

    Once you place down the one per cent choice price to carry down a non-public property, it's important to accept its situation as it is whenever you move in – faulty air-con, choked rest room and all. Get round this by asking your agent to incorporate a ultimate inspection clause within the possibility-to-buy letter. HDB flat patrons routinely take pleasure in this security net. "There's a ultimate inspection of the property two days before the completion of all HDB transactions. If the air-con is defective, you can request the seller to repair it," says Kelvin.

    15.6.1 As the agent is an intermediary, generally, as soon as the principal and third party are introduced right into a contractual relationship, the agent drops out of the image, subject to any problems with remuneration or indemnification that he could have against the principal, and extra exceptionally, against the third occasion. Generally, agents are entitled to be indemnified for all liabilities reasonably incurred within the execution of the brokers´ authority.

    To achieve the very best outcomes, you must be always updated on market situations, including past transaction information and reliable projections. You could review and examine comparable homes that are currently available in the market, especially these which have been sold or not bought up to now six months. You'll be able to see a pattern of such report by clicking here It's essential to defend yourself in opposition to unscrupulous patrons. They are often very skilled in using highly unethical and manipulative techniques to try and lure you into a lure. That you must also protect your self, your loved ones, and personal belongings as you'll be serving many strangers in your home. Sign a listing itemizing of all of the objects provided by the proprietor, together with their situation. HSR Prime Recruiter 2010
  5. L.K. Grover and J. Radhakrishnan,Is partial quantum search of a database any easier?. quant-ph/0407122
  6. Many property agents need to declare for the PIC grant in Singapore. However, not all of them know find out how to do the correct process for getting this PIC scheme from the IRAS. There are a number of steps that you need to do before your software can be approved.

    Naturally, you will have to pay a safety deposit and that is usually one month rent for annually of the settlement. That is the place your good religion deposit will likely be taken into account and will kind part or all of your security deposit. Anticipate to have a proportionate amount deducted out of your deposit if something is discovered to be damaged if you move out. It's best to you'll want to test the inventory drawn up by the owner, which can detail all objects in the property and their condition. If you happen to fail to notice any harm not already mentioned within the inventory before transferring in, you danger having to pay for it yourself.

    In case you are in search of an actual estate or Singapore property agent on-line, you simply should belief your intuition. It's because you do not know which agent is nice and which agent will not be. Carry out research on several brokers by looking out the internet. As soon as if you end up positive that a selected agent is dependable and reliable, you can choose to utilize his partnerise in finding you a home in Singapore. Most of the time, a property agent is taken into account to be good if he or she locations the contact data on his website. This may mean that the agent does not mind you calling them and asking them any questions relating to new properties in singapore in Singapore. After chatting with them you too can see them in their office after taking an appointment.

    Have handed an trade examination i.e Widespread Examination for House Brokers (CEHA) or Actual Property Agency (REA) examination, or equal; Exclusive brokers are extra keen to share listing information thus making certain the widest doable coverage inside the real estate community via Multiple Listings and Networking. Accepting a severe provide is simpler since your agent is totally conscious of all advertising activity related with your property. This reduces your having to check with a number of agents for some other offers. Price control is easily achieved. Paint work in good restore-discuss with your Property Marketing consultant if main works are still to be done. Softening in residential property prices proceed, led by 2.8 per cent decline within the index for Remainder of Central Region

    Once you place down the one per cent choice price to carry down a non-public property, it's important to accept its situation as it is whenever you move in – faulty air-con, choked rest room and all. Get round this by asking your agent to incorporate a ultimate inspection clause within the possibility-to-buy letter. HDB flat patrons routinely take pleasure in this security net. "There's a ultimate inspection of the property two days before the completion of all HDB transactions. If the air-con is defective, you can request the seller to repair it," says Kelvin.

    15.6.1 As the agent is an intermediary, generally, as soon as the principal and third party are introduced right into a contractual relationship, the agent drops out of the image, subject to any problems with remuneration or indemnification that he could have against the principal, and extra exceptionally, against the third occasion. Generally, agents are entitled to be indemnified for all liabilities reasonably incurred within the execution of the brokers´ authority.

    To achieve the very best outcomes, you must be always updated on market situations, including past transaction information and reliable projections. You could review and examine comparable homes that are currently available in the market, especially these which have been sold or not bought up to now six months. You'll be able to see a pattern of such report by clicking here It's essential to defend yourself in opposition to unscrupulous patrons. They are often very skilled in using highly unethical and manipulative techniques to try and lure you into a lure. That you must also protect your self, your loved ones, and personal belongings as you'll be serving many strangers in your home. Sign a listing itemizing of all of the objects provided by the proprietor, together with their situation. HSR Prime Recruiter 2010

References

External links

Template:Quantum computing