Deutsch and Jozsa's Algorithm Revisited
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Deutsch and Jozsa’s Algorithm Revisited
John W. Cooper*
IPST, University of Maryland, College Park MD, 20742
ABSTRACT
A classical analogue of Deutsch and Jozsa’s algorithm is presented and
its implications on quantum computing discussed.
Bob and Alice, longtime married CIA agents who worked in Boston and Washington respectively decided to get together for a weekend in New York so that they could share information without having their phone conversations overheard by Alice’s mother Eve. Upon arrival in New York they checked into their hotel and proceeded to unpack. However, Alice noted that the dual light switches which
turned on the light in the bathroom, one in the living room and one in the bathroom, were not working. She got a screwdriver out of her purse, removed the switch covers and found that although the wires in the living room were connected, those in the bath were not. “This is easy to fix” she said, and was about to connect the wires
when Bob ( who has a doctorate in computer science from a famous British university) remarked, “ Alice, we’re professionals. Let’s just call the desk and have one of the menials do the rewiring while we go out to lunch.”
“OK”, said Alice and placed a call to the desk. The desk assured her that the staff electrician, Mr. Oracle would be up immediately to fix the problem.
As they were finishing lunch Bob said “You know Alice, the problem of wiring those switches reminds me of Deutsch’s first algorithm. If one must connect to both terminals on the left, there are only four ways in which it can be done.” He then drew the following diagram on a paper napkin.
*E-mail address: jwc@
0> __________0> 0> 0>
AC ______ _________lamp AC_____ __lamp
1>___________1> 1> 1>
(a) (b)
0>___________0> 0> 0> AC_____ _________lamp AC __lamp
1> 1> 1> ________________1>
(c) (d)
“If the wiring is done as in (a) the light will be on only when both switches are either in the up (0>) or down (1>) positions whereas for (b) the light will be on only if one switch is in the up (0>) and the other is in the down (1>) position. In (c) and (d) only the right switch will turn the light on and off and the left switch will have no effect. If we consider the switches to be bits (0> corresponding to “up” and 1> corresponding to “down”) then (a) and (b) correspond to balanced mapping from left to right whereas (c) and (d) are constant mappings. The interesting thing is that in a classical system like this you must make two observations to determine whether the mapping is balanced or constant. Quantum mechanics allows you to determine this with just one observation.”
“I don’t understand” said Alice. “It seems to me that balanced is the only practical way to do the wiring so that both switches will work.”
“Let me explain,” said Bob and proceeded to draw the following truth table on his napkin.
Left switch Right switch light on light off
Up Up a or c b or d
Down Down a or d b or c
Up Down b or d a or c
Down Up b or c a or d