{"id":3764,"date":"2010-04-15T16:00:00","date_gmt":"2010-04-15T23:00:00","guid":{"rendered":"http:\/\/dabacon.org\/pontiff\/?p=3764"},"modified":"2010-04-15T16:00:00","modified_gmt":"2010-04-15T23:00:00","slug":"quantum-hustles","status":"publish","type":"post","link":"https:\/\/dabacon.org\/pontiff\/2010\/04\/15\/quantum-hustles\/","title":{"rendered":"Quantum Hustles"},"content":{"rendered":"<p>Over at masteroftheuniverse, the master has posted a great list of prop bets. Among his bets is one that probably won&#8217;t work on many computer scientists (or it shouldn&#8217;t if they&#8217;ve had even a decent theory course) based upon the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Birthday_problem\">birthday problem<\/a>. Sometimes the birthday problem is called the birthday paradox, but the problem is no more a paradox than the twin paradox is about twins. The birthday problem has to do with the probability that a set of randomly drawn people share a birthday. In other words, assuming that everyone in a group of N people has an equal probability of being born on a given day, what is the probability that at least two of these people share a birthday. Quite surprisingly, or at least surprising the first time you hear it, is that if N is 23, this probability is already greater than 50 percent. In computer science this type of process comes up all the time and is responsible for lots of square roots that one sees in running times of algorithms. The master&#8217;s blog post reminded me of a version of the birthday paradox that Wim van Dam once told me (if anyone knows its past history, please post a comment)&#8230;a quantum birthday paradox.<\/p>\n<p>Here is the setup. Suppose that we are sampling from the set . In particular consider the situation, classically, where we are sampling from two distributions over this set,  and . Both  and  are distributions which are  on exactly N of the elements of  and 0 on the rest of . I will guarantee you that either the distributions are equal,  , or that when  has&nbsp;&nbsp; weight on an element, then  has weight 0. In other words, the probability vectors for these distributions are orthogonal, so I will denote this . So the problem is, given the ability to classically sample from these distributions, how many samples must one take to succeed in identifying which of these two cases,  or , hold. One can easily see that this probability is like the birthday problem: by sampling from  and  one has to basically wait for a collision in order to determine that . Thus you can see that it would require about  samples to distinguish these two cases. More specifically, to distinguish between these two cases with some constant probability, say a probability of 3\/4, we need to sample  times.<\/p>\n<p>Okay so what does this have to do with a quantum birthday paradox. Well now consider the situation where instead being given two probability distributions  and , one is given two quantum states,  and , with the property that if you simply measure them in the computational basis you will obtain the classical distribution that behave like  and . That is let  and  be superpositions over 2N computational basis states with the property that in this basis, they have exactly N amplitudes which are  and N amplitudes which are zero. We are guaranteed that either  or  and the goal is, by using many copies of  and  to distinguish between these two cases. Now if one simply measures these states in the computational basis then one obtains probability distributions that are exactly like  and . But this is the quantum world, so we don&#8217;t have to measure in this basis. So is there a basis that we can measure in which can lead to using less that  copies of  and  to distinguish the two cases of  versus ?<\/p>\n<p>The answer is yes, indeed. Of course that&#8217;s the answer: why else would I be writing this blog post. In particular consider the fully symmetric or anti-symmetric subspaces of the two systems. In particular, define the states<\/p>\n<p style=\"text-align: center\">&nbsp;&nbsp;&nbsp;if <\/p>\n<div style=\"text-align: center\">\n&nbsp;&nbsp;if \n<\/div>\n<p>and<\/p>\n<p style=\"text-align: center\">&nbsp;&nbsp;if <\/p>\n<p style=\"text-align: left\">These states form a complete basis for the two systems we are considering, with the  states representing symmetric states and the  states representing the anti-symmetric states. Suppose that on  and&nbsp;&nbsp; we measure the above states. Now if , then we note that  is symmetric under exchange of the two states subsystem. That is if we measure the above basis states we will only obtain  basis states. If, on the other hand  then it is straightforward to see that  has support equally on symmetric and anti-symmetric states. In particular if<\/p>\n<p style=\"text-align: center\"> and <\/p>\n<p style=\"text-align: left\">where , then we can expand  as<\/p>\n<p style=\"text-align: left\">\n<div style=\"text-align: center\">\n\n<\/div>\n<div style=\"text-align: left\">\nFrom which we can see that we will obtain the symmetric and anti-symmetric states with equal probability.\n<\/div>\n<div style=\"text-align: left\">\n\n<\/div>\n<div style=\"text-align: left\">\nThus we have seen that by making a measurement which distinguishes between the symmetric and antisymmetric subspaces of our two systems, if &nbsp;&nbsp;we will only observe symmetric states and if  we will observe symmetric states half the time and anti-symmetric states the other half the time. Thus we can reliably distinguish these two cases with a failure probability of  for k repetitions of this setup. This is significantly better from the classical case! Indeed we have succeeded in distinguishing the states with probability 3\/4 using only 2 repetitions of the setup. Thus we have gone from  in the classical world to  in the quantum world. Amazing! (Of course many will argue the setup is not fair: and yes I agree it is not fair when one side gets to use this powerful thing called quantum theory and the other side hides behind the computer science of the 20th century \ud83d\ude42 ) Many of you will recognize that the above method for distinguishing states is nothing more than the quantum swap test.\n<\/div>\n<div style=\"text-align: left\">\n\n<\/div>\n<div style=\"text-align: left\">\nSo what is the moral of all this? Well, besides showing a cool case where quantum exponentially outperforms classical, it also tells you that you should be wary of quantum computers offering you bets. Indeed, I make it my own personal policy never to bet with quantum computers, and think that you should make it your policy as well.\n<\/div>\n<div style=\"text-align: left\">\n\n<\/div>\n<div style=\"text-align: left\">\n\n<\/div>\n<div style=\"text-align: left\">\n\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Over at masteroftheuniverse, the master has posted a great list of prop bets. Among his bets is one that probably won&#8217;t work on many computer scientists (or it shouldn&#8217;t if they&#8217;ve had even a decent theory course) based upon the birthday problem. Sometimes the birthday problem is called the birthday paradox, but the problem is &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/dabacon.org\/pontiff\/2010\/04\/15\/quantum-hustles\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Quantum Hustles&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","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}},"categories":[50,65],"tags":[],"class_list":["post-3764","post","type-post","status-publish","format-standard","hentry","category-off-the-deep-end","category-quantum-computing"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/dabacon.org\/pontiff\/wp-json\/wp\/v2\/posts\/3764","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dabacon.org\/pontiff\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dabacon.org\/pontiff\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dabacon.org\/pontiff\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dabacon.org\/pontiff\/wp-json\/wp\/v2\/comments?post=3764"}],"version-history":[{"count":0,"href":"https:\/\/dabacon.org\/pontiff\/wp-json\/wp\/v2\/posts\/3764\/revisions"}],"wp:attachment":[{"href":"https:\/\/dabacon.org\/pontiff\/wp-json\/wp\/v2\/media?parent=3764"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dabacon.org\/pontiff\/wp-json\/wp\/v2\/categories?post=3764"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dabacon.org\/pontiff\/wp-json\/wp\/v2\/tags?post=3764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}