We investigate macroscopic entanglement of quantum states in quantum computers, where we say a quantum state is entangled macroscopically if the state has superposition of macroscopically distinct states. The index
p of the macroscopic entanglement is calculated as a function of the step of the computation, for Grover's quantum search algorithm and Shor's factoring algorithm. It is found that whether macroscopically entangled states are used or not depends on the numbers and properties of the solutions to the problem to be solved. When the solutions are such that the problem becomes hard in the sense that classical algorithms take more than polynomial steps to find a solution, macroscopically entangled states are always used in Grover's algorithm and almost always used in Shor's algorithm. Since they are representative algorithms for unstructured and structured problems, respectively, our results support strongly the conjecture that quantum computers utilize macroscopically entangled states when they solve hard problems much faster than any classical algorithms.
Quantum entanglement is widely considered as one of the key resources for quantum-computational power. However, present interpretations of entanglement in speeding up of quantum algorithms remain far from complete. We analyze and compare the behaviors of entanglement during the adiabatic evolution of Grover's quantum search algorithms with complexity [Formula: see text] and O(1), respectively. Our results show that entanglement has a significant impact on the computational efficiency of both algorithms. That is, the greater the entanglement, the higher is the quantum computation, and vice versa. Furthermore, the correlations between entanglement and energy are discussed. It is observed that for the algorithm with complexity O(1), its entanglement degree becomes larger when the energy input into the quantum system increases, thus making the algorithm more efficient.