As I've come across Grovers algorithm I dont understand why when computing F(X), which is an oracle function people use classical reversible circuits(toffoli, fredkin) to evaluate the circuit. Why can't it just be done using classical logic gates(and, or, etc) when the function doesn't have any thing to do with changing the superposition of the bits.
-
$\begingroup$ basically toffoli gates can implement classical logic via quantum gates. the opposite is not possible. $\endgroup$– vznJul 24, 2014 at 19:15
1 Answer
Reversible gates are unitary, see for example https://en.wikipedia.org/wiki/Quantum_gate. The eigenvalues are $\pm 1$. The quantum computation model requires all gates to be unitary, so you can't just use classical gates.
-
-
1$\begingroup$ No it doesn't. It says it's not universal, that is, you can't implement all unitary transformations using only this gate. $\endgroup$ Jul 24, 2014 at 18:05
-
$\begingroup$ okay, so classical reversible gates is a subset of quantum gates? ie.,all quantum gates are unitary but all classical reversible gates are not. $\endgroup$– CSKJul 24, 2014 at 18:07
-
-
$\begingroup$ but note (as that other Q/A points out) toffoli gates are universal from the pov of classical circuits. $\endgroup$– vznJul 24, 2014 at 18:30