1. A process for performing quantum calculations using a conventional computer, comprising the steps of: preparing at least a first qubit, a second qubit, a third qubit, and a fourth qubit by a quantum device; measuring the second qubit to determine a measured second qubit; inputting the measured second qubit into the conventional computer; programming the conventional computer to perform an oracle function corresponding to the measured second qubit, wherein the oracle function determines whether the measured second qubit is correct or incorrect; modifying the second qubit according to an output from the conventional computer to produce a modified qubit; inputting the third qubit to a quantum gate; controlling the quantum gate to selectively phase invert the third qubit in response to the modified second qubit and the fourth qubit; measuring a complement of the first qubit; measuring the third qubit to determine a final result.