{"id":451,"date":"2010-07-05T17:53:49","date_gmt":"2010-07-05T21:53:49","guid":{"rendered":"https:\/\/scottaaronson.blog\/?p=451"},"modified":"2010-07-05T17:53:49","modified_gmt":"2010-07-05T21:53:49","slug":"doing-my-oracle-duty","status":"publish","type":"post","link":"https:\/\/scottaaronson.blog\/?p=451","title":{"rendered":"Doing my oracle duty"},"content":{"rendered":"<p>I promised myself I&#8217;d stop blogging about controversial issues whose mere mention could instigate a flamewar and permanently get me in trouble.\u00a0 Well, today I&#8217;m going to violate that rule, by blogging about the difference relativized and unrelativized complexity classes.<\/p>\n<p>Recently a colleague of mine, who works in the foundations of quantum mechanics, sent me a long list of questions about the <a href=\"http:\/\/www.cs.berkeley.edu\/~vazirani\/pubs\/bv.ps\">seminal 1993 paper of Bernstein and Vazirani<\/a> that introduced the complexity class <a href=\"http:\/\/en.wikipedia.org\/wiki\/BQP\">BQP<\/a> (Bounded-Error Quantum Polynomial-Time).\u00a0 It was clear to me that all of his questions boiled down to a single point: the distinction between the relativized and unrelativized worlds. \u00a0This is an absolutely crucial distinction that trips up just about <em>everyone<\/em> when they&#8217;re first learning quantum computing.<\/p>\n<p>So I fired off a response, which my colleague said he found extremely helpful.\u00a0 It then occurred to me that what one person found helpful, another might as well&#8212;and that which makes 30% of my readers&#8217; eyes glaze over with its thoroughgoing duh-obviousness, might be very thing that another 30% of my readers most want to see.\u00a0 So without further ado, the two worlds of quantum complexity theory&#8230;<\/p>\n<p>In the <strong><font color=\"red\">relativized world<\/font><\/strong>, we let our algorithms access potentially-powerful oracles, whose internal structure we don&#8217;t examine (think of Simon&#8217;s algorithm for concreteness). \u00a0In that world, we can indeed prove unconditionally that BPP\u2260BQP&#8212;that is, quantum computers can solve certain problems exponentially faster than classical computers, when both computers are given access to the same oracle.<\/p>\n<p>In general, almost every &#8220;natural&#8221; complexity class has a relativized version associated with it, and the relativized versions tend to be<em> much<\/em> easier to separate than the unrelativized versions (it&#8217;s basically the difference between a masters or PhD thesis and a Fields Medal!) \u00a0So for example, within the relativized world, we can separate not only BPP from BQP, but also P from NP, NP from PSPACE, NP from BQP, etc.<\/p>\n<p>By contrast, in the <strong><font color=\"red\">unrelativized world<\/font><\/strong> (where there are no oracles), we can&#8217;t separate <em>any<\/em> complexity classes between P and PSPACE. \u00a0Doing so is universally recognized as one of the biggest open problems in mathematics (in my opinion, it&#8217;s far-and-away the biggest problem).<\/p>\n<p>Now, Bernstein and Vazirani proved that BQP is &#8220;sandwiched&#8221; between P and PSPACE. \u00a0For that reason, as they write in their paper, one can&#8217;t hope to prove P\u2260BQP in the unrelativized world without also proving P\u2260PSPACE.<\/p>\n<p>Let&#8217;s move on to another major result from Bernstein and Vazirani&#8217;s paper, namely their oracle separation between BPP and BQP.\u00a0 You might wonder: what&#8217;s the point of proving such a thing? \u00a0Well, the Bernstein-Vazirani oracle separation gave the first formal evidence that BQP &#8220;might&#8221; be larger than BPP. \u00a0For if BPP equaled BQP relative to every oracle, then in particular, they&#8217;d have to be equal relative to the empty oracle&#8212;that is, in the unrelativized world!<\/p>\n<p>(The converse need not hold: it could be the case that BPP=BQP, despite the existence of an oracle that separates them. \u00a0So, again, separating complexity classes relative to an oracle can be thought of as a &#8220;baby step&#8221; toward separating them in the real world.)<\/p>\n<p>But an even more important motivation for Bernstein and Vazirani&#8217;s oracle separation is that it led shortly afterward to a better oracle separation by Simon, and that, in turn, led to Shor&#8217;s factoring algorithm.<\/p>\n<p>In a sense, what Shor did was to &#8220;remove the oracle&#8221; from Simon&#8217;s problem. \u00a0In other words, Shor found a concrete problem in the unrelativized world (namely factoring integers), which has a natural function associated with it (namely the modular exponentiation function, f(r) = x<sup>r<\/sup> mod N) that one can usefully <em>treat<\/em> as an oracle. \u00a0Treating f as an oracle, one can then use a quantum algorithm related to Simon&#8217;s algorithm to find the period of f, and that in turn lets you factor integers in polynomial time.<\/p>\n<p>Of course, Shor&#8217;s algorithm became much more famous than Simon&#8217;s algorithm, since the implications for computer science, cryptography, etc. were so much more concrete and dramatic than with an abstract oracle separation. \u00a0However, the downside is that the speedup of Shor&#8217;s algorithm is no longer <em>unconditional<\/em>: for all anyone knows today, there might also a fast classical algorithm to factor integers. \u00a0By contrast, the speedup of Simon&#8217;s algorithm (and of Bernstein-Vazirani before it) is an unconditional one.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I promised myself I&#8217;d stop blogging about controversial issues whose mere mention could instigate a flamewar and permanently get me in trouble.\u00a0 Well, today I&#8217;m going to violate that rule, by blogging about the difference relativized and unrelativized complexity classes. Recently a colleague of mine, who works in the foundations of quantum mechanics, sent me [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"{title}\n\n{excerpt}\n\n{url}","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false,"jetpack_post_was_ever_published":false},"categories":[5,4],"tags":[],"class_list":["post-451","post","type-post","status-publish","format-standard","hentry","category-complexity","category-quantum"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/scottaaronson.blog\/index.php?rest_route=\/wp\/v2\/posts\/451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scottaaronson.blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scottaaronson.blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scottaaronson.blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/scottaaronson.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=451"}],"version-history":[{"count":0,"href":"https:\/\/scottaaronson.blog\/index.php?rest_route=\/wp\/v2\/posts\/451\/revisions"}],"wp:attachment":[{"href":"https:\/\/scottaaronson.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scottaaronson.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scottaaronson.blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}