Dr. Dobb's is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them. Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.


Welcome Guest | Log In | Register | Benefits
Channels ▼
RSS

Design

Searching with Quantum Computers


Apr01: Searching with Quantum Computers

r = qrandom(4,0); 
if (f(r) == 1)  invert_phase(); 
r = qrandom(4,r); 
if (r==0)       invert_phase(); 
r = qrandom(4,r); 
print(r); 

Figure 4: The steps of the quantum_main() program when N=4.


Related Reading


More Insights