[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"blog-zh-quantum-teleportation-tutorial":3,"blog-translated-locales-quantum-teleportation-tutorial":1199,"blog-all-zh":1206},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"author":11,"tags":12,"readingTime":16,"body":17,"_type":1193,"_id":1194,"_source":1195,"_file":1196,"_stem":1197,"_extension":1198},"\u002Fzh\u002Fblog\u002Fquantum-teleportation-tutorial","blog",false,"","Qiskit 量子隐形传态实战教程","在 Qiskit 中从零构建量子隐形传态协议：贝尔对、贝尔基测量与经典条件修正门，附可运行代码，并诚实说明这个协议能做什么、不能做什么。","2026-08-12","FreeQuantumComputing",[13,14,15],"Algorithms","Qiskit","Fundamentals",9,{"type":18,"children":19,"toc":1179},"root",[20,35,40,46,51,56,61,66,86,91,97,127,420,427,481,522,528,629,663,669,766,806,812,970,1027,1033,1060,1065,1094,1099,1112,1117,1173],{"type":21,"tag":22,"props":23,"children":24},"element","p",{},[25,33],{"type":21,"tag":26,"props":27,"children":29},"a",{"href":28},"\u002Fglossary\u002Fquantum-teleportation",[30],{"type":31,"value":32},"text","量子隐形传态",{"type":31,"value":34},"可以将一个量子比特的精确状态从一处转移到另一处，而不需要物理搬运这个量子比特本身。该协议只需要三个量子比特、一对共享的纠缠对，以及两个经典比特，用不到三十行 Qiskit 代码就能搭建完成。",{"type":21,"tag":22,"props":36,"children":37},{},[38],{"type":31,"value":39},"这个名字正是围绕这个协议最容易产生误解的地方，所以在写代码之前先把这点说清楚。",{"type":21,"tag":41,"props":42,"children":44},"h2",{"id":43},"隐形传态不是什么",[45],{"type":31,"value":43},{"type":21,"tag":22,"props":47,"children":48},{},[49],{"type":31,"value":50},"该协议不会移动物质。量子比特对应的物理粒子本身完全不会转移到任何地方。真正移动的是信息：协议结束时，接收方的量子比特会精确处于发送方量子比特最初所在的量子态。",{"type":21,"tag":22,"props":52,"children":53},{},[54],{"type":31,"value":55},"该协议不允许超光速通信。在两个经典比特从发送方送达之前，接收方的量子比特只是无法使用的废数据，而这次传输和其他任何经典信号一样，受光速限制。自然在这一点上非常谨慎：纠缠本身只会让结果产生关联，但永远无法独自携带可控制的信号。",{"type":21,"tag":22,"props":57,"children":58},{},[59],{"type":31,"value":60},"该协议也不会复制量子比特。不可克隆定理禁止一个未知量子态的完美副本与原始态同时存在，隐形传态严格遵守这一点：传输状态的过程本身会摧毁发送方手中的副本。最终只存在一个携带该状态的量子比特，而且接收方手中的量子比特并不是你一开始拥有的那一个。",{"type":21,"tag":41,"props":62,"children":64},{"id":63},"三步完成协议",[65],{"type":31,"value":63},{"type":21,"tag":67,"props":68,"children":69},"ol",{},[70,76,81],{"type":21,"tag":71,"props":72,"children":73},"li",{},[74],{"type":31,"value":75},"提前共享纠缠。发送方和接收方各持有一对贝尔对中的一半，这一分发过程在任何人知道要传送哪个状态之前就已完成。",{"type":21,"tag":71,"props":77,"children":78},{},[79],{"type":31,"value":80},"发送方对自己手中那一半纠缠对，连同待传送的量子比特，一起进行联合测量（贝尔基测量）。这会产生四种随机双比特结果之一，并作为副作用摧毁原始量子比特的状态。",{"type":21,"tag":71,"props":82,"children":83},{},[84],{"type":31,"value":85},"发送方将这两个经典比特发送给接收方，接收方根据结果在自己那一半纠缠对上应用四种对应门之一（恒等、X、Z 或 XZ）。这一修正会重建出精确的原始状态，无论第 2 步中出现的是四种随机结果中的哪一种。",{"type":21,"tag":22,"props":87,"children":88},{},[89],{"type":31,"value":90},"第 2 步中的随机性是真实且不可避免的，而第 3 步中的修正会以确定性的方式将其抵消。这一抵消正是该协议的全部意义所在，也是最容易出错的一步，下文会详细讨论。",{"type":21,"tag":41,"props":92,"children":94},{"id":93},"在-qiskit-中搭建电路",[95],{"type":31,"value":96},"在 Qiskit 中搭建电路",{"type":21,"tag":22,"props":98,"children":99},{},[100,102,109,111,117,119,125],{"type":31,"value":101},"三个量子比特：",{"type":21,"tag":103,"props":104,"children":106},"code",{"className":105},[],[107],{"type":31,"value":108},"q0",{"type":31,"value":110}," 持有待传送的状态，",{"type":21,"tag":103,"props":112,"children":114},{"className":113},[],[115],{"type":31,"value":116},"q1",{"type":31,"value":118}," 是纠缠对中发送方持有的一半，",{"type":21,"tag":103,"props":120,"children":122},{"className":121},[],[123],{"type":31,"value":124},"q2",{"type":31,"value":126}," 是接收方持有的一半。",{"type":21,"tag":128,"props":129,"children":133},"pre",{"className":130,"code":131,"language":132,"meta":7,"style":7},"language-python shiki shiki-themes github-dark","from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister, transpile\nfrom qiskit_aer import AerSimulator\n\ntheta = 0.9  # arbitrary angle, stands in for \"an unknown state\"\n\nqr = QuantumRegister(3, \"q\")\ncr = ClassicalRegister(2, \"c\")\nresult_reg = ClassicalRegister(1, \"result\")\nqc = QuantumCircuit(qr, cr, result_reg)\n\n# Step 0: prepare the state to teleport on q0. In a real protocol\n# this state is unknown. Ry(theta) here only gives us something\n# concrete to verify against later.\nqc.ry(theta, 0)\nqc.barrier()\n","python",[134],{"type":21,"tag":103,"props":135,"children":136},{"__ignoreMap":7},[137,165,187,197,223,231,270,306,341,358,366,375,384,393,411],{"type":21,"tag":138,"props":139,"children":142},"span",{"class":140,"line":141},"line",1,[143,149,155,160],{"type":21,"tag":138,"props":144,"children":146},{"style":145},"--shiki-default:#F97583",[147],{"type":31,"value":148},"from",{"type":21,"tag":138,"props":150,"children":152},{"style":151},"--shiki-default:#E1E4E8",[153],{"type":31,"value":154}," qiskit ",{"type":21,"tag":138,"props":156,"children":157},{"style":145},[158],{"type":31,"value":159},"import",{"type":21,"tag":138,"props":161,"children":162},{"style":151},[163],{"type":31,"value":164}," QuantumCircuit, QuantumRegister, ClassicalRegister, transpile\n",{"type":21,"tag":138,"props":166,"children":168},{"class":140,"line":167},2,[169,173,178,182],{"type":21,"tag":138,"props":170,"children":171},{"style":145},[172],{"type":31,"value":148},{"type":21,"tag":138,"props":174,"children":175},{"style":151},[176],{"type":31,"value":177}," qiskit_aer ",{"type":21,"tag":138,"props":179,"children":180},{"style":145},[181],{"type":31,"value":159},{"type":21,"tag":138,"props":183,"children":184},{"style":151},[185],{"type":31,"value":186}," AerSimulator\n",{"type":21,"tag":138,"props":188,"children":190},{"class":140,"line":189},3,[191],{"type":21,"tag":138,"props":192,"children":194},{"emptyLinePlaceholder":193},true,[195],{"type":31,"value":196},"\n",{"type":21,"tag":138,"props":198,"children":200},{"class":140,"line":199},4,[201,206,211,217],{"type":21,"tag":138,"props":202,"children":203},{"style":151},[204],{"type":31,"value":205},"theta ",{"type":21,"tag":138,"props":207,"children":208},{"style":145},[209],{"type":31,"value":210},"=",{"type":21,"tag":138,"props":212,"children":214},{"style":213},"--shiki-default:#79B8FF",[215],{"type":31,"value":216}," 0.9",{"type":21,"tag":138,"props":218,"children":220},{"style":219},"--shiki-default:#6A737D",[221],{"type":31,"value":222},"  # arbitrary angle, stands in for \"an unknown state\"\n",{"type":21,"tag":138,"props":224,"children":226},{"class":140,"line":225},5,[227],{"type":21,"tag":138,"props":228,"children":229},{"emptyLinePlaceholder":193},[230],{"type":31,"value":196},{"type":21,"tag":138,"props":232,"children":234},{"class":140,"line":233},6,[235,240,244,249,254,259,265],{"type":21,"tag":138,"props":236,"children":237},{"style":151},[238],{"type":31,"value":239},"qr ",{"type":21,"tag":138,"props":241,"children":242},{"style":145},[243],{"type":31,"value":210},{"type":21,"tag":138,"props":245,"children":246},{"style":151},[247],{"type":31,"value":248}," QuantumRegister(",{"type":21,"tag":138,"props":250,"children":251},{"style":213},[252],{"type":31,"value":253},"3",{"type":21,"tag":138,"props":255,"children":256},{"style":151},[257],{"type":31,"value":258},", ",{"type":21,"tag":138,"props":260,"children":262},{"style":261},"--shiki-default:#9ECBFF",[263],{"type":31,"value":264},"\"q\"",{"type":21,"tag":138,"props":266,"children":267},{"style":151},[268],{"type":31,"value":269},")\n",{"type":21,"tag":138,"props":271,"children":273},{"class":140,"line":272},7,[274,279,283,288,293,297,302],{"type":21,"tag":138,"props":275,"children":276},{"style":151},[277],{"type":31,"value":278},"cr ",{"type":21,"tag":138,"props":280,"children":281},{"style":145},[282],{"type":31,"value":210},{"type":21,"tag":138,"props":284,"children":285},{"style":151},[286],{"type":31,"value":287}," ClassicalRegister(",{"type":21,"tag":138,"props":289,"children":290},{"style":213},[291],{"type":31,"value":292},"2",{"type":21,"tag":138,"props":294,"children":295},{"style":151},[296],{"type":31,"value":258},{"type":21,"tag":138,"props":298,"children":299},{"style":261},[300],{"type":31,"value":301},"\"c\"",{"type":21,"tag":138,"props":303,"children":304},{"style":151},[305],{"type":31,"value":269},{"type":21,"tag":138,"props":307,"children":309},{"class":140,"line":308},8,[310,315,319,323,328,332,337],{"type":21,"tag":138,"props":311,"children":312},{"style":151},[313],{"type":31,"value":314},"result_reg ",{"type":21,"tag":138,"props":316,"children":317},{"style":145},[318],{"type":31,"value":210},{"type":21,"tag":138,"props":320,"children":321},{"style":151},[322],{"type":31,"value":287},{"type":21,"tag":138,"props":324,"children":325},{"style":213},[326],{"type":31,"value":327},"1",{"type":21,"tag":138,"props":329,"children":330},{"style":151},[331],{"type":31,"value":258},{"type":21,"tag":138,"props":333,"children":334},{"style":261},[335],{"type":31,"value":336},"\"result\"",{"type":21,"tag":138,"props":338,"children":339},{"style":151},[340],{"type":31,"value":269},{"type":21,"tag":138,"props":342,"children":343},{"class":140,"line":16},[344,349,353],{"type":21,"tag":138,"props":345,"children":346},{"style":151},[347],{"type":31,"value":348},"qc ",{"type":21,"tag":138,"props":350,"children":351},{"style":145},[352],{"type":31,"value":210},{"type":21,"tag":138,"props":354,"children":355},{"style":151},[356],{"type":31,"value":357}," QuantumCircuit(qr, cr, result_reg)\n",{"type":21,"tag":138,"props":359,"children":361},{"class":140,"line":360},10,[362],{"type":21,"tag":138,"props":363,"children":364},{"emptyLinePlaceholder":193},[365],{"type":31,"value":196},{"type":21,"tag":138,"props":367,"children":369},{"class":140,"line":368},11,[370],{"type":21,"tag":138,"props":371,"children":372},{"style":219},[373],{"type":31,"value":374},"# Step 0: prepare the state to teleport on q0. In a real protocol\n",{"type":21,"tag":138,"props":376,"children":378},{"class":140,"line":377},12,[379],{"type":21,"tag":138,"props":380,"children":381},{"style":219},[382],{"type":31,"value":383},"# this state is unknown. Ry(theta) here only gives us something\n",{"type":21,"tag":138,"props":385,"children":387},{"class":140,"line":386},13,[388],{"type":21,"tag":138,"props":389,"children":390},{"style":219},[391],{"type":31,"value":392},"# concrete to verify against later.\n",{"type":21,"tag":138,"props":394,"children":396},{"class":140,"line":395},14,[397,402,407],{"type":21,"tag":138,"props":398,"children":399},{"style":151},[400],{"type":31,"value":401},"qc.ry(theta, ",{"type":21,"tag":138,"props":403,"children":404},{"style":213},[405],{"type":31,"value":406},"0",{"type":21,"tag":138,"props":408,"children":409},{"style":151},[410],{"type":31,"value":269},{"type":21,"tag":138,"props":412,"children":414},{"class":140,"line":413},15,[415],{"type":21,"tag":138,"props":416,"children":417},{"style":151},[418],{"type":31,"value":419},"qc.barrier()\n",{"type":21,"tag":421,"props":422,"children":424},"h3",{"id":423},"第-1-步分发纠缠对",[425],{"type":31,"value":426},"第 1 步：分发纠缠对",{"type":21,"tag":128,"props":428,"children":430},{"className":130,"code":429,"language":132,"meta":7,"style":7},"qc.h(1)\nqc.cx(1, 2)\nqc.barrier()\n",[431],{"type":21,"tag":103,"props":432,"children":433},{"__ignoreMap":7},[434,450,474],{"type":21,"tag":138,"props":435,"children":436},{"class":140,"line":141},[437,442,446],{"type":21,"tag":138,"props":438,"children":439},{"style":151},[440],{"type":31,"value":441},"qc.h(",{"type":21,"tag":138,"props":443,"children":444},{"style":213},[445],{"type":31,"value":327},{"type":21,"tag":138,"props":447,"children":448},{"style":151},[449],{"type":31,"value":269},{"type":21,"tag":138,"props":451,"children":452},{"class":140,"line":167},[453,458,462,466,470],{"type":21,"tag":138,"props":454,"children":455},{"style":151},[456],{"type":31,"value":457},"qc.cx(",{"type":21,"tag":138,"props":459,"children":460},{"style":213},[461],{"type":31,"value":327},{"type":21,"tag":138,"props":463,"children":464},{"style":151},[465],{"type":31,"value":258},{"type":21,"tag":138,"props":467,"children":468},{"style":213},[469],{"type":31,"value":292},{"type":21,"tag":138,"props":471,"children":472},{"style":151},[473],{"type":31,"value":269},{"type":21,"tag":138,"props":475,"children":476},{"class":140,"line":189},[477],{"type":21,"tag":138,"props":478,"children":479},{"style":151},[480],{"type":31,"value":419},{"type":21,"tag":22,"props":482,"children":483},{},[484,486,492,494,499,501,506,508,513,515,520],{"type":31,"value":485},"标准的",{"type":21,"tag":26,"props":487,"children":489},{"href":488},"\u002Fglossary\u002Fbell-state",[490],{"type":31,"value":491},"贝尔态",{"type":31,"value":493},"构造：一个 Hadamard 门后面接一个 CNOT 门。此时 ",{"type":21,"tag":103,"props":495,"children":497},{"className":496},[],[498],{"type":31,"value":116},{"type":31,"value":500}," 和 ",{"type":21,"tag":103,"props":502,"children":504},{"className":503},[],[505],{"type":31,"value":124},{"type":31,"value":507}," 已经最大程度纠缠，在真实部署中它们此时应已被分开：",{"type":21,"tag":103,"props":509,"children":511},{"className":510},[],[512],{"type":31,"value":116},{"type":31,"value":514}," 留在发送方，",{"type":21,"tag":103,"props":516,"children":518},{"className":517},[],[519],{"type":31,"value":124},{"type":31,"value":521}," 留在接收方，之后协议的其余部分才会运行。",{"type":21,"tag":421,"props":523,"children":525},{"id":524},"第-2-步贝尔基测量",[526],{"type":31,"value":527},"第 2 步：贝尔基测量",{"type":21,"tag":128,"props":529,"children":531},{"className":130,"code":530,"language":132,"meta":7,"style":7},"qc.cx(0, 1)\nqc.h(0)\nqc.measure(0, cr[0])\nqc.measure(1, cr[1])\nqc.barrier()\n",[532],{"type":21,"tag":103,"props":533,"children":534},{"__ignoreMap":7},[535,558,573,599,622],{"type":21,"tag":138,"props":536,"children":537},{"class":140,"line":141},[538,542,546,550,554],{"type":21,"tag":138,"props":539,"children":540},{"style":151},[541],{"type":31,"value":457},{"type":21,"tag":138,"props":543,"children":544},{"style":213},[545],{"type":31,"value":406},{"type":21,"tag":138,"props":547,"children":548},{"style":151},[549],{"type":31,"value":258},{"type":21,"tag":138,"props":551,"children":552},{"style":213},[553],{"type":31,"value":327},{"type":21,"tag":138,"props":555,"children":556},{"style":151},[557],{"type":31,"value":269},{"type":21,"tag":138,"props":559,"children":560},{"class":140,"line":167},[561,565,569],{"type":21,"tag":138,"props":562,"children":563},{"style":151},[564],{"type":31,"value":441},{"type":21,"tag":138,"props":566,"children":567},{"style":213},[568],{"type":31,"value":406},{"type":21,"tag":138,"props":570,"children":571},{"style":151},[572],{"type":31,"value":269},{"type":21,"tag":138,"props":574,"children":575},{"class":140,"line":189},[576,581,585,590,594],{"type":21,"tag":138,"props":577,"children":578},{"style":151},[579],{"type":31,"value":580},"qc.measure(",{"type":21,"tag":138,"props":582,"children":583},{"style":213},[584],{"type":31,"value":406},{"type":21,"tag":138,"props":586,"children":587},{"style":151},[588],{"type":31,"value":589},", cr[",{"type":21,"tag":138,"props":591,"children":592},{"style":213},[593],{"type":31,"value":406},{"type":21,"tag":138,"props":595,"children":596},{"style":151},[597],{"type":31,"value":598},"])\n",{"type":21,"tag":138,"props":600,"children":601},{"class":140,"line":199},[602,606,610,614,618],{"type":21,"tag":138,"props":603,"children":604},{"style":151},[605],{"type":31,"value":580},{"type":21,"tag":138,"props":607,"children":608},{"style":213},[609],{"type":31,"value":327},{"type":21,"tag":138,"props":611,"children":612},{"style":151},[613],{"type":31,"value":589},{"type":21,"tag":138,"props":615,"children":616},{"style":213},[617],{"type":31,"value":327},{"type":21,"tag":138,"props":619,"children":620},{"style":151},[621],{"type":31,"value":598},{"type":21,"tag":138,"props":623,"children":624},{"class":140,"line":225},[625],{"type":21,"tag":138,"props":626,"children":627},{"style":151},[628],{"type":31,"value":419},{"type":21,"tag":22,"props":630,"children":631},{},[632,634,639,641,646,648,654,655,661],{"type":31,"value":633},"CNOT 和 Hadamard 门将 ",{"type":21,"tag":103,"props":635,"children":637},{"className":636},[],[638],{"type":31,"value":108},{"type":31,"value":640}," 与 ",{"type":21,"tag":103,"props":642,"children":644},{"className":643},[],[645],{"type":31,"value":116},{"type":31,"value":647}," 的联合状态旋转到贝尔基下，因此标准的计算基测量此时读出的正是这对量子比特坍缩到了四个贝尔态中的哪一个。这个结果是均匀随机的，",{"type":21,"tag":103,"props":649,"children":651},{"className":650},[],[652],{"type":31,"value":653},"cr[0]",{"type":31,"value":640},{"type":21,"tag":103,"props":656,"children":658},{"className":657},[],[659],{"type":31,"value":660},"cr[1]",{"type":31,"value":662}," 四种组合各自出现的概率约为 25%，而修正这种随机性正是下一步要做的事。",{"type":21,"tag":421,"props":664,"children":666},{"id":665},"第-3-步经典条件修正",[667],{"type":31,"value":668},"第 3 步：经典条件修正",{"type":21,"tag":128,"props":670,"children":672},{"className":130,"code":671,"language":132,"meta":7,"style":7},"with qc.if_test((cr[1], 1)):\n    qc.x(2)\nwith qc.if_test((cr[0], 1)):\n    qc.z(2)\n",[673],{"type":21,"tag":103,"props":674,"children":675},{"__ignoreMap":7},[676,707,723,750],{"type":21,"tag":138,"props":677,"children":678},{"class":140,"line":141},[679,684,689,693,698,702],{"type":21,"tag":138,"props":680,"children":681},{"style":145},[682],{"type":31,"value":683},"with",{"type":21,"tag":138,"props":685,"children":686},{"style":151},[687],{"type":31,"value":688}," qc.if_test((cr[",{"type":21,"tag":138,"props":690,"children":691},{"style":213},[692],{"type":31,"value":327},{"type":21,"tag":138,"props":694,"children":695},{"style":151},[696],{"type":31,"value":697},"], ",{"type":21,"tag":138,"props":699,"children":700},{"style":213},[701],{"type":31,"value":327},{"type":21,"tag":138,"props":703,"children":704},{"style":151},[705],{"type":31,"value":706},")):\n",{"type":21,"tag":138,"props":708,"children":709},{"class":140,"line":167},[710,715,719],{"type":21,"tag":138,"props":711,"children":712},{"style":151},[713],{"type":31,"value":714},"    qc.x(",{"type":21,"tag":138,"props":716,"children":717},{"style":213},[718],{"type":31,"value":292},{"type":21,"tag":138,"props":720,"children":721},{"style":151},[722],{"type":31,"value":269},{"type":21,"tag":138,"props":724,"children":725},{"class":140,"line":189},[726,730,734,738,742,746],{"type":21,"tag":138,"props":727,"children":728},{"style":145},[729],{"type":31,"value":683},{"type":21,"tag":138,"props":731,"children":732},{"style":151},[733],{"type":31,"value":688},{"type":21,"tag":138,"props":735,"children":736},{"style":213},[737],{"type":31,"value":406},{"type":21,"tag":138,"props":739,"children":740},{"style":151},[741],{"type":31,"value":697},{"type":21,"tag":138,"props":743,"children":744},{"style":213},[745],{"type":31,"value":327},{"type":21,"tag":138,"props":747,"children":748},{"style":151},[749],{"type":31,"value":706},{"type":21,"tag":138,"props":751,"children":752},{"class":140,"line":199},[753,758,762],{"type":21,"tag":138,"props":754,"children":755},{"style":151},[756],{"type":31,"value":757},"    qc.z(",{"type":21,"tag":138,"props":759,"children":760},{"style":213},[761],{"type":31,"value":292},{"type":21,"tag":138,"props":763,"children":764},{"style":151},[765],{"type":31,"value":269},{"type":21,"tag":22,"props":767,"children":768},{},[769,771,776,778,783,785,790,791,796,798,804],{"type":31,"value":770},"这是电路中间一个真正的经典条件判断，而不是走捷径：只有当经典比特 ",{"type":21,"tag":103,"props":772,"children":774},{"className":773},[],[775],{"type":31,"value":660},{"type":31,"value":777}," 测得 1 时，",{"type":21,"tag":103,"props":779,"children":781},{"className":780},[],[782],{"type":31,"value":124},{"type":31,"value":784}," 才会被施加 X 门；只有当 ",{"type":21,"tag":103,"props":786,"children":788},{"className":787},[],[789],{"type":31,"value":653},{"type":31,"value":777},{"type":21,"tag":103,"props":792,"children":794},{"className":793},[],[795],{"type":31,"value":124},{"type":31,"value":797}," 才会被施加 Z 门。Qiskit 的 ",{"type":21,"tag":103,"props":799,"children":801},{"className":800},[],[802],{"type":31,"value":803},"if_test",{"type":31,"value":805}," 上下文管理器会将其编译为一个真正的动态电路，这正是物理部署中通过普通信道发送两个经典比特、并在另一端应用修正所使用的机制。",{"type":21,"tag":421,"props":807,"children":809},{"id":808},"第-4-步验证协议是否成功",[810],{"type":31,"value":811},"第 4 步：验证协议是否成功",{"type":21,"tag":128,"props":813,"children":815},{"className":130,"code":814,"language":132,"meta":7,"style":7},"qc.ry(-theta, 2)\nqc.measure(2, result_reg[0])\n\nsim = AerSimulator()\ntqc = transpile(qc, sim)\ncounts = sim.run(tqc, shots=4096).result().get_counts()\nprint(sorted(counts.items()))\n",[816],{"type":21,"tag":103,"props":817,"children":818},{"__ignoreMap":7},[819,845,869,876,893,910,947],{"type":21,"tag":138,"props":820,"children":821},{"class":140,"line":141},[822,827,832,837,841],{"type":21,"tag":138,"props":823,"children":824},{"style":151},[825],{"type":31,"value":826},"qc.ry(",{"type":21,"tag":138,"props":828,"children":829},{"style":145},[830],{"type":31,"value":831},"-",{"type":21,"tag":138,"props":833,"children":834},{"style":151},[835],{"type":31,"value":836},"theta, ",{"type":21,"tag":138,"props":838,"children":839},{"style":213},[840],{"type":31,"value":292},{"type":21,"tag":138,"props":842,"children":843},{"style":151},[844],{"type":31,"value":269},{"type":21,"tag":138,"props":846,"children":847},{"class":140,"line":167},[848,852,856,861,865],{"type":21,"tag":138,"props":849,"children":850},{"style":151},[851],{"type":31,"value":580},{"type":21,"tag":138,"props":853,"children":854},{"style":213},[855],{"type":31,"value":292},{"type":21,"tag":138,"props":857,"children":858},{"style":151},[859],{"type":31,"value":860},", result_reg[",{"type":21,"tag":138,"props":862,"children":863},{"style":213},[864],{"type":31,"value":406},{"type":21,"tag":138,"props":866,"children":867},{"style":151},[868],{"type":31,"value":598},{"type":21,"tag":138,"props":870,"children":871},{"class":140,"line":189},[872],{"type":21,"tag":138,"props":873,"children":874},{"emptyLinePlaceholder":193},[875],{"type":31,"value":196},{"type":21,"tag":138,"props":877,"children":878},{"class":140,"line":199},[879,884,888],{"type":21,"tag":138,"props":880,"children":881},{"style":151},[882],{"type":31,"value":883},"sim ",{"type":21,"tag":138,"props":885,"children":886},{"style":145},[887],{"type":31,"value":210},{"type":21,"tag":138,"props":889,"children":890},{"style":151},[891],{"type":31,"value":892}," AerSimulator()\n",{"type":21,"tag":138,"props":894,"children":895},{"class":140,"line":225},[896,901,905],{"type":21,"tag":138,"props":897,"children":898},{"style":151},[899],{"type":31,"value":900},"tqc ",{"type":21,"tag":138,"props":902,"children":903},{"style":145},[904],{"type":31,"value":210},{"type":21,"tag":138,"props":906,"children":907},{"style":151},[908],{"type":31,"value":909}," transpile(qc, sim)\n",{"type":21,"tag":138,"props":911,"children":912},{"class":140,"line":233},[913,918,922,927,933,937,942],{"type":21,"tag":138,"props":914,"children":915},{"style":151},[916],{"type":31,"value":917},"counts ",{"type":21,"tag":138,"props":919,"children":920},{"style":145},[921],{"type":31,"value":210},{"type":21,"tag":138,"props":923,"children":924},{"style":151},[925],{"type":31,"value":926}," sim.run(tqc, ",{"type":21,"tag":138,"props":928,"children":930},{"style":929},"--shiki-default:#FFAB70",[931],{"type":31,"value":932},"shots",{"type":21,"tag":138,"props":934,"children":935},{"style":145},[936],{"type":31,"value":210},{"type":21,"tag":138,"props":938,"children":939},{"style":213},[940],{"type":31,"value":941},"4096",{"type":21,"tag":138,"props":943,"children":944},{"style":151},[945],{"type":31,"value":946},").result().get_counts()\n",{"type":21,"tag":138,"props":948,"children":949},{"class":140,"line":272},[950,955,960,965],{"type":21,"tag":138,"props":951,"children":952},{"style":213},[953],{"type":31,"value":954},"print",{"type":21,"tag":138,"props":956,"children":957},{"style":151},[958],{"type":31,"value":959},"(",{"type":21,"tag":138,"props":961,"children":962},{"style":213},[963],{"type":31,"value":964},"sorted",{"type":21,"tag":138,"props":966,"children":967},{"style":151},[968],{"type":31,"value":969},"(counts.items()))\n",{"type":21,"tag":22,"props":971,"children":972},{},[973,975,980,982,987,989,994,996,1002,1004,1010,1012,1018,1020,1025],{"type":31,"value":974},"验证技巧：对 ",{"type":21,"tag":103,"props":976,"children":978},{"className":977},[],[979],{"type":31,"value":124},{"type":31,"value":981}," 施加原始旋转的逆操作，然后测量这个量子比特。如果 ",{"type":21,"tag":103,"props":983,"children":985},{"className":984},[],[986],{"type":31,"value":124},{"type":31,"value":988}," 最终确实处于 ",{"type":21,"tag":103,"props":990,"children":992},{"className":991},[],[993],{"type":31,"value":108},{"type":31,"value":995}," 最初所在的精确状态，撤销这次旋转就会把量子比特送回 ",{"type":21,"tag":103,"props":997,"children":999},{"className":998},[],[1000],{"type":31,"value":1001},"|0⟩",{"type":31,"value":1003},"，",{"type":21,"tag":103,"props":1005,"children":1007},{"className":1006},[],[1008],{"type":31,"value":1009},"result",{"type":31,"value":1011}," 比特读数应为 0。整个运行过程中，四种 ",{"type":21,"tag":103,"props":1013,"children":1015},{"className":1014},[],[1016],{"type":31,"value":1017},"(cr[0], cr[1])",{"type":31,"value":1019}," 结果的出现比例大致均匀，这正是贝尔测量随机结果的预期表现；而无论出现哪一种结果，",{"type":21,"tag":103,"props":1021,"children":1023},{"className":1022},[],[1024],{"type":31,"value":1009},{"type":31,"value":1026}," 比特始终读数为 0。这正是回报所在：修正步骤会抵消出现的任何随机结果，每一次都是如此，而不仅仅是平均意义上的抵消。",{"type":21,"tag":41,"props":1028,"children":1030},{"id":1029},"常见错误以为电路反正没问题就跳过修正步骤",[1031],{"type":31,"value":1032},"常见错误：以为\"电路反正没问题\"就跳过修正步骤",{"type":21,"tag":22,"props":1034,"children":1035},{},[1036,1038,1043,1045,1050,1052,1058],{"type":31,"value":1037},"看着这个电路，很容易以为修正步骤只是个无关紧要的细节，因为四种贝尔测量结果里有三种看起来\"接近\"恒等情况。事实并非如此。跳过 ",{"type":21,"tag":103,"props":1039,"children":1041},{"className":1040},[],[1042],{"type":31,"value":803},{"type":31,"value":1044}," 代码块直接测量 ",{"type":21,"tag":103,"props":1046,"children":1048},{"className":1047},[],[1049],{"type":31,"value":124},{"type":31,"value":1051},"：结果只有在贝尔测量恰好落在 ",{"type":21,"tag":103,"props":1053,"children":1055},{"className":1054},[],[1056],{"type":31,"value":1057},"|00⟩",{"type":31,"value":1059}," 的约 25% 的运行中才是正确的，其余四分之三的时间结果都是错乱的。这里没有部分得分。修正不是一种优化，修正正是让协议具备确定性、而不是沦为四分之一可靠的抛硬币的那个机制。",{"type":21,"tag":41,"props":1061,"children":1063},{"id":1062},"隐形传态的真正用途",[1064],{"type":31,"value":1062},{"type":21,"tag":22,"props":1066,"children":1067},{},[1068,1070,1076,1078,1084,1086,1092],{"type":31,"value":1069},"该协议本身并没有作为独立\"魔术表演\"的应用价值。它的重要性在于其结构性作用：这正是",{"type":21,"tag":26,"props":1071,"children":1073},{"href":1072},"\u002Fglossary\u002Fquantum-network",[1074],{"type":31,"value":1075},"量子网络",{"type":31,"value":1077},"与",{"type":21,"tag":26,"props":1079,"children":1081},{"href":1080},"\u002Fglossary\u002Fdistributed-quantum-computing",[1082],{"type":31,"value":1083},"分布式量子计算",{"type":31,"value":1085},"用来在节点之间移动量子比特状态的机制——这些节点仅通过预先共享的纠缠和一条经典信道相连，而不是通过直接的量子连线。任何将独立的 QPU 连接成一台更大逻辑机器的方案，或是将纠缠延伸到长距离光纤链路上的量子中继器，都正是建立在这一基本操作之上。",{"type":21,"tag":26,"props":1087,"children":1089},{"href":1088},"\u002Fglossary\u002Fsuperdense-coding",[1090],{"type":31,"value":1091},"超密编码",{"type":31,"value":1093},"用一个传输的量子比特发送两个经典比特，正是同一思路的反向应用。",{"type":21,"tag":41,"props":1095,"children":1097},{"id":1096},"在真实硬件上运行",[1098],{"type":31,"value":1096},{"type":21,"tag":22,"props":1100,"children":1101},{},[1102,1104,1110],{"type":31,"value":1103},"电路中途测量、紧接着一个经典条件门，这对硬件的要求明显高于静态电路。系统需要快速、低延迟的经典控制电子设备，在量子比特退相干之前读出测量结果并将修正反馈回同一电路，这种能力通常称为\"动态电路\"，并非每一代云端后端都支持。在动态电路不可用的情况下，一些实现会用条件双量子比特门替代经典修正，并将所有测量都推迟到最后进行，这种做法在模拟环境中能正确验证协议的数学原理，但绕开了真正让隐形传态在组网场景中变得实用的那一步经典通信。在",{"type":21,"tag":26,"props":1105,"children":1107},{"href":1106},"\u002Fhardware",[1108],{"type":31,"value":1109},"真实硬件",{"type":31,"value":1111},"上运行之前，请先确认你的目标后端是否明确支持动态电路，不要想当然地认为这段代码可以照原样运行。",{"type":21,"tag":41,"props":1113,"children":1115},{"id":1114},"下一步",[1116],{"type":31,"value":1114},{"type":21,"tag":1118,"props":1119,"children":1120},"ul",{},[1121,1132,1143],{"type":21,"tag":71,"props":1122,"children":1123},{},[1124,1130],{"type":21,"tag":26,"props":1125,"children":1127},{"href":1126},"\u002Fsdks\u002Fqiskit",[1128],{"type":31,"value":1129},"Qiskit SDK 指南",{"type":31,"value":1131},"：完整的环境搭建、后端选择与动态电路支持",{"type":21,"tag":71,"props":1133,"children":1134},{},[1135,1141],{"type":21,"tag":26,"props":1136,"children":1138},{"href":1137},"\u002Fblog\u002Fquantum-networking-distributed-computing",[1139],{"type":31,"value":1140},"量子网络与分布式计算",{"type":31,"value":1142},"：隐形传态在连接独立 QPU 中扮演的角色",{"type":21,"tag":71,"props":1144,"children":1145},{},[1146,1152,1154,1160,1162,1166,1167,1171],{"type":21,"tag":26,"props":1147,"children":1149},{"href":1148},"\u002Fglossary",[1150],{"type":31,"value":1151},"术语表",{"type":31,"value":1153},"：",{"type":21,"tag":26,"props":1155,"children":1157},{"href":1156},"\u002Fglossary\u002Fentanglement",[1158],{"type":31,"value":1159},"纠缠",{"type":31,"value":1161},"、",{"type":21,"tag":26,"props":1163,"children":1164},{"href":488},[1165],{"type":31,"value":491},{"type":31,"value":1161},{"type":21,"tag":26,"props":1168,"children":1169},{"href":1088},[1170],{"type":31,"value":1091},{"type":31,"value":1172},"及更多相关词汇",{"type":21,"tag":1174,"props":1175,"children":1176},"style",{},[1177],{"type":31,"value":1178},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":7,"searchDepth":167,"depth":167,"links":1180},[1181,1182,1183,1189,1190,1191,1192],{"id":43,"depth":167,"text":43},{"id":63,"depth":167,"text":63},{"id":93,"depth":167,"text":96,"children":1184},[1185,1186,1187,1188],{"id":423,"depth":189,"text":426},{"id":524,"depth":189,"text":527},{"id":665,"depth":189,"text":668},{"id":808,"depth":189,"text":811},{"id":1029,"depth":167,"text":1032},{"id":1062,"depth":167,"text":1062},{"id":1096,"depth":167,"text":1096},{"id":1114,"depth":167,"text":1114},"markdown","content:zh:blog:quantum-teleportation-tutorial.md","content","zh\u002Fblog\u002Fquantum-teleportation-tutorial.md","zh\u002Fblog\u002Fquantum-teleportation-tutorial","md",[1200,1201,1202,1203,1204,1205],"en","es","de","zh","ja","hi",[1207,2073,3049,3403,3492,3572,3710,3796,3857,3938,4043,4131,4221,4311,4409,4480,5982,6858,7223,7927,8488,9130,10544,10658,11838,12749,13471,13891,14728,14807,15497,15644,15738,15816,15925,16018,16115,16323,16418,16498,16587,16680,16775,16875,17365,18114,18219,18323,18430,18501,18616,18722,18861,19036,19116,19871,19950,21284,21372,21447,21547,21612,21716,21814,21963,22109,22383,22478,22550,22683,22786,23022,23176,23297,23444,23541,23658,23758,24422,24573,24662,24770,24865,24959,25061,25923,28999,30715,31164,32262,32834,33330,35568,37406,37782,39872,40898,41914,42749,45177,46222,48765,50567,53296,55274,57370],{"_path":1208,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":1209,"description":1210,"date":10,"author":11,"tags":1211,"readingTime":16,"body":1214,"_type":1193,"_id":2070,"_source":1195,"_file":2071,"_stem":2072,"_extension":1198},"\u002Fzh\u002Fblog\u002Fquantum-annealing-tutorial","量子退火详解：用 D-Wave Ocean SDK 求解 Max-Cut","把一个 Max-Cut 问题表述为 QUBO，用 D-Wave 免费的模拟退火采样器求解，并理解量子退火与门模型量子计算相比能做什么、不能做什么。",[13,1212,1213],"Optimization","Hardware",{"type":18,"children":1215,"toc":2061},[1216,1243,1256,1261,1266,1271,1277,1290,1326,1331,1635,1656,1661,1682,1777,1818,1824,1829,1866,1871,1876,1882,1887,1969,1997,2001,2057],{"type":21,"tag":22,"props":1217,"children":1218},{},[1219,1225,1227,1233,1235,1241],{"type":21,"tag":26,"props":1220,"children":1222},{"href":1221},"\u002Fglossary\u002Fquantum-annealing",[1223],{"type":31,"value":1224},"量子退火",{"type":31,"value":1226},"是与本站其他内容完全不同的一种量子计算模型。这里没有电路，没有量子门，硬件上也不会运行 ",{"type":21,"tag":26,"props":1228,"children":1230},{"href":1229},"\u002Fglossary\u002Fgrover-algorithm",[1231],{"type":31,"value":1232},"Grover 算法",{"type":31,"value":1234},"或 ",{"type":21,"tag":26,"props":1236,"children":1238},{"href":1237},"\u002Fglossary\u002Fshor-algorithm",[1239],{"type":31,"value":1240},"Shor 算法",{"type":31,"value":1242},"。退火机只解决一类问题——优化问题，它把问题直接编码进硬件的物理机制，让系统自行弛豫到一个低能量的答案上。",{"type":21,"tag":22,"props":1244,"children":1245},{},[1246,1248,1254],{"type":31,"value":1247},"本指南把",{"type":21,"tag":26,"props":1249,"children":1251},{"href":1250},"\u002Fblog\u002Fqaoa-max-cut-tutorial",[1252],{"type":31,"value":1253},"我们的 QAOA 教程",{"type":31,"value":1255},"中同样的 Max-Cut 问题表述为一个退火问题，用 D-Wave 的 Ocean SDK 免费求解，并讲解几乎所有人从玩具示例迁移到真实硬件时都会踩的那个坑。",{"type":21,"tag":41,"props":1257,"children":1259},{"id":1258},"物理原理",[1260],{"type":31,"value":1258},{"type":21,"tag":22,"props":1262,"children":1263},{},[1264],{"type":31,"value":1265},"一个优化问题被映射到一个量子比特系统上，使得系统能量最低的构型——即基态——对应最优解。量子比特从一个容易制备的状态出发，缓慢演化到问题的能量曲面上。绝热定理正是让这一切成立的原因：只要演化速度相对于系统的能隙足够缓慢，一个从基态出发的量子系统就会在整个演化过程中一直停留在基态。最后读出量子比特，得到的就是一个低能量、有望是最优的解。",{"type":21,"tag":22,"props":1267,"children":1268},{},[1269],{"type":31,"value":1270},"这与门模型计算有着根本性的不同。门模型 QPU 执行你指定的任意操作序列。退火机执行的是单一固定过程——朝着最小值物理弛豫——你唯一能影响的是问题如何被编码进这个能量曲面。",{"type":21,"tag":41,"props":1272,"children":1274},{"id":1273},"把-max-cut-表述为-qubo",[1275],{"type":31,"value":1276},"把 Max-Cut 表述为 QUBO",{"type":21,"tag":22,"props":1278,"children":1279},{},[1280,1282,1288],{"type":31,"value":1281},"退火机求解的是以 QUBO（二次无约束二元优化）形式表达的问题：最小化一个只含线性项和成对二次项、不含更高阶交互项的二元变量 ",{"type":21,"tag":103,"props":1283,"children":1285},{"className":1284},[],[1286],{"type":31,"value":1287},"x_i ∈ {0, 1}",{"type":31,"value":1289}," 表达式。",{"type":21,"tag":22,"props":1291,"children":1292},{},[1293,1295,1301,1303,1309,1311,1317,1318,1324],{"type":31,"value":1294},"对于 Max-Cut，每条边 ",{"type":21,"tag":103,"props":1296,"children":1298},{"className":1297},[],[1299],{"type":31,"value":1300},"(i, j)",{"type":31,"value":1302}," 对目标函数的贡献是 ",{"type":21,"tag":103,"props":1304,"children":1306},{"className":1305},[],[1307],{"type":31,"value":1308},"2·x_i·x_j − x_i − x_j",{"type":31,"value":1310},"。逐一分析四种情况：当 ",{"type":21,"tag":103,"props":1312,"children":1314},{"className":1313},[],[1315],{"type":31,"value":1316},"x_i",{"type":31,"value":640},{"type":21,"tag":103,"props":1319,"children":1321},{"className":1320},[],[1322],{"type":31,"value":1323},"x_j",{"type":31,"value":1325}," 相同（在同一侧）时，这一项为 0；当两者不同（该边被切割）时，这一项为 −1。因此最小化所有边上的总和，就等价于最大化被切割的边数，这正是 Max-Cut 目标，只是被改写成了最小化形式。",{"type":21,"tag":22,"props":1327,"children":1328},{},[1329],{"type":31,"value":1330},"使用与 QAOA 指南相同的四节点环形图：",{"type":21,"tag":128,"props":1332,"children":1334},{"className":130,"code":1333,"language":132,"meta":7,"style":7},"import dimod\nfrom neal import SimulatedAnnealingSampler\n\nedges = [(0, 1), (1, 2), (2, 3), (3, 0)]\n\nQ = {}\nfor i, j in edges:\n    Q[(i, i)] = Q.get((i, i), 0) - 1\n    Q[(j, j)] = Q.get((j, j), 0) - 1\n    Q[(i, j)] = Q.get((i, j), 0) + 2\n\nbqm = dimod.BinaryQuadraticModel.from_qubo(Q)\n",[1335],{"type":21,"tag":103,"props":1336,"children":1337},{"__ignoreMap":7},[1338,1350,1371,1378,1461,1468,1485,1508,1543,1576,1611,1618],{"type":21,"tag":138,"props":1339,"children":1340},{"class":140,"line":141},[1341,1345],{"type":21,"tag":138,"props":1342,"children":1343},{"style":145},[1344],{"type":31,"value":159},{"type":21,"tag":138,"props":1346,"children":1347},{"style":151},[1348],{"type":31,"value":1349}," dimod\n",{"type":21,"tag":138,"props":1351,"children":1352},{"class":140,"line":167},[1353,1357,1362,1366],{"type":21,"tag":138,"props":1354,"children":1355},{"style":145},[1356],{"type":31,"value":148},{"type":21,"tag":138,"props":1358,"children":1359},{"style":151},[1360],{"type":31,"value":1361}," neal ",{"type":21,"tag":138,"props":1363,"children":1364},{"style":145},[1365],{"type":31,"value":159},{"type":21,"tag":138,"props":1367,"children":1368},{"style":151},[1369],{"type":31,"value":1370}," SimulatedAnnealingSampler\n",{"type":21,"tag":138,"props":1372,"children":1373},{"class":140,"line":189},[1374],{"type":21,"tag":138,"props":1375,"children":1376},{"emptyLinePlaceholder":193},[1377],{"type":31,"value":196},{"type":21,"tag":138,"props":1379,"children":1380},{"class":140,"line":199},[1381,1386,1390,1395,1399,1403,1407,1412,1416,1420,1424,1428,1432,1436,1440,1444,1448,1452,1456],{"type":21,"tag":138,"props":1382,"children":1383},{"style":151},[1384],{"type":31,"value":1385},"edges ",{"type":21,"tag":138,"props":1387,"children":1388},{"style":145},[1389],{"type":31,"value":210},{"type":21,"tag":138,"props":1391,"children":1392},{"style":151},[1393],{"type":31,"value":1394}," [(",{"type":21,"tag":138,"props":1396,"children":1397},{"style":213},[1398],{"type":31,"value":406},{"type":21,"tag":138,"props":1400,"children":1401},{"style":151},[1402],{"type":31,"value":258},{"type":21,"tag":138,"props":1404,"children":1405},{"style":213},[1406],{"type":31,"value":327},{"type":21,"tag":138,"props":1408,"children":1409},{"style":151},[1410],{"type":31,"value":1411},"), (",{"type":21,"tag":138,"props":1413,"children":1414},{"style":213},[1415],{"type":31,"value":327},{"type":21,"tag":138,"props":1417,"children":1418},{"style":151},[1419],{"type":31,"value":258},{"type":21,"tag":138,"props":1421,"children":1422},{"style":213},[1423],{"type":31,"value":292},{"type":21,"tag":138,"props":1425,"children":1426},{"style":151},[1427],{"type":31,"value":1411},{"type":21,"tag":138,"props":1429,"children":1430},{"style":213},[1431],{"type":31,"value":292},{"type":21,"tag":138,"props":1433,"children":1434},{"style":151},[1435],{"type":31,"value":258},{"type":21,"tag":138,"props":1437,"children":1438},{"style":213},[1439],{"type":31,"value":253},{"type":21,"tag":138,"props":1441,"children":1442},{"style":151},[1443],{"type":31,"value":1411},{"type":21,"tag":138,"props":1445,"children":1446},{"style":213},[1447],{"type":31,"value":253},{"type":21,"tag":138,"props":1449,"children":1450},{"style":151},[1451],{"type":31,"value":258},{"type":21,"tag":138,"props":1453,"children":1454},{"style":213},[1455],{"type":31,"value":406},{"type":21,"tag":138,"props":1457,"children":1458},{"style":151},[1459],{"type":31,"value":1460},")]\n",{"type":21,"tag":138,"props":1462,"children":1463},{"class":140,"line":225},[1464],{"type":21,"tag":138,"props":1465,"children":1466},{"emptyLinePlaceholder":193},[1467],{"type":31,"value":196},{"type":21,"tag":138,"props":1469,"children":1470},{"class":140,"line":233},[1471,1476,1480],{"type":21,"tag":138,"props":1472,"children":1473},{"style":151},[1474],{"type":31,"value":1475},"Q ",{"type":21,"tag":138,"props":1477,"children":1478},{"style":145},[1479],{"type":31,"value":210},{"type":21,"tag":138,"props":1481,"children":1482},{"style":151},[1483],{"type":31,"value":1484}," {}\n",{"type":21,"tag":138,"props":1486,"children":1487},{"class":140,"line":272},[1488,1493,1498,1503],{"type":21,"tag":138,"props":1489,"children":1490},{"style":145},[1491],{"type":31,"value":1492},"for",{"type":21,"tag":138,"props":1494,"children":1495},{"style":151},[1496],{"type":31,"value":1497}," i, j ",{"type":21,"tag":138,"props":1499,"children":1500},{"style":145},[1501],{"type":31,"value":1502},"in",{"type":21,"tag":138,"props":1504,"children":1505},{"style":151},[1506],{"type":31,"value":1507}," edges:\n",{"type":21,"tag":138,"props":1509,"children":1510},{"class":140,"line":308},[1511,1516,1520,1525,1529,1534,1538],{"type":21,"tag":138,"props":1512,"children":1513},{"style":151},[1514],{"type":31,"value":1515},"    Q[(i, i)] ",{"type":21,"tag":138,"props":1517,"children":1518},{"style":145},[1519],{"type":31,"value":210},{"type":21,"tag":138,"props":1521,"children":1522},{"style":151},[1523],{"type":31,"value":1524}," Q.get((i, i), ",{"type":21,"tag":138,"props":1526,"children":1527},{"style":213},[1528],{"type":31,"value":406},{"type":21,"tag":138,"props":1530,"children":1531},{"style":151},[1532],{"type":31,"value":1533},") ",{"type":21,"tag":138,"props":1535,"children":1536},{"style":145},[1537],{"type":31,"value":831},{"type":21,"tag":138,"props":1539,"children":1540},{"style":213},[1541],{"type":31,"value":1542}," 1\n",{"type":21,"tag":138,"props":1544,"children":1545},{"class":140,"line":16},[1546,1551,1555,1560,1564,1568,1572],{"type":21,"tag":138,"props":1547,"children":1548},{"style":151},[1549],{"type":31,"value":1550},"    Q[(j, j)] ",{"type":21,"tag":138,"props":1552,"children":1553},{"style":145},[1554],{"type":31,"value":210},{"type":21,"tag":138,"props":1556,"children":1557},{"style":151},[1558],{"type":31,"value":1559}," Q.get((j, j), ",{"type":21,"tag":138,"props":1561,"children":1562},{"style":213},[1563],{"type":31,"value":406},{"type":21,"tag":138,"props":1565,"children":1566},{"style":151},[1567],{"type":31,"value":1533},{"type":21,"tag":138,"props":1569,"children":1570},{"style":145},[1571],{"type":31,"value":831},{"type":21,"tag":138,"props":1573,"children":1574},{"style":213},[1575],{"type":31,"value":1542},{"type":21,"tag":138,"props":1577,"children":1578},{"class":140,"line":360},[1579,1584,1588,1593,1597,1601,1606],{"type":21,"tag":138,"props":1580,"children":1581},{"style":151},[1582],{"type":31,"value":1583},"    Q[(i, j)] ",{"type":21,"tag":138,"props":1585,"children":1586},{"style":145},[1587],{"type":31,"value":210},{"type":21,"tag":138,"props":1589,"children":1590},{"style":151},[1591],{"type":31,"value":1592}," Q.get((i, j), ",{"type":21,"tag":138,"props":1594,"children":1595},{"style":213},[1596],{"type":31,"value":406},{"type":21,"tag":138,"props":1598,"children":1599},{"style":151},[1600],{"type":31,"value":1533},{"type":21,"tag":138,"props":1602,"children":1603},{"style":145},[1604],{"type":31,"value":1605},"+",{"type":21,"tag":138,"props":1607,"children":1608},{"style":213},[1609],{"type":31,"value":1610}," 2\n",{"type":21,"tag":138,"props":1612,"children":1613},{"class":140,"line":368},[1614],{"type":21,"tag":138,"props":1615,"children":1616},{"emptyLinePlaceholder":193},[1617],{"type":31,"value":196},{"type":21,"tag":138,"props":1619,"children":1620},{"class":140,"line":377},[1621,1626,1630],{"type":21,"tag":138,"props":1622,"children":1623},{"style":151},[1624],{"type":31,"value":1625},"bqm ",{"type":21,"tag":138,"props":1627,"children":1628},{"style":145},[1629],{"type":31,"value":210},{"type":21,"tag":138,"props":1631,"children":1632},{"style":151},[1633],{"type":31,"value":1634}," dimod.BinaryQuadraticModel.from_qubo(Q)\n",{"type":21,"tag":22,"props":1636,"children":1637},{},[1638,1640,1646,1648,1654],{"type":31,"value":1639},"这个图中的每条边都能同时被切割——该图是二分图：",{"type":21,"tag":103,"props":1641,"children":1643},{"className":1642},[],[1644],{"type":31,"value":1645},"{0, 2}",{"type":31,"value":1647}," 对 ",{"type":21,"tag":103,"props":1649,"children":1651},{"className":1650},[],[1652],{"type":31,"value":1653},"{1, 3}",{"type":31,"value":1655},"——因此基态能量恰好为 −4，每条边贡献 −1。这个数字直接来自 QUBO 的构造过程，并非来自任何已经运行过的计算，而这正是下面的采样器要努力达到的目标。",{"type":21,"tag":41,"props":1657,"children":1659},{"id":1658},"用模拟退火免费求解",[1660],{"type":31,"value":1658},{"type":21,"tag":22,"props":1662,"children":1663},{},[1664,1666,1672,1674,1680],{"type":31,"value":1665},"D-Wave 的 Ocean SDK 内置了 ",{"type":21,"tag":103,"props":1667,"children":1669},{"className":1668},[],[1670],{"type":31,"value":1671},"neal",{"type":31,"value":1673},"，一个完全在你自己机器上运行的经典模拟退火采样器，不需要 QPU 账户，没有排队，也没有费用。这也是开发退火问题时的标准第一步，在真正接触实体硬件之前先用它调试，扮演的角色和本站其他地方 ",{"type":21,"tag":103,"props":1675,"children":1677},{"className":1676},[],[1678],{"type":31,"value":1679},"AerSimulator",{"type":31,"value":1681}," 对门模型电路的作用一样。",{"type":21,"tag":128,"props":1683,"children":1685},{"className":130,"code":1684,"language":132,"meta":7,"style":7},"sampler = SimulatedAnnealingSampler()\nsampleset = sampler.sample(bqm, num_reads=1000)\n\nbest = sampleset.first\nprint(best.sample, best.energy)\n",[1686],{"type":21,"tag":103,"props":1687,"children":1688},{"__ignoreMap":7},[1689,1706,1741,1748,1765],{"type":21,"tag":138,"props":1690,"children":1691},{"class":140,"line":141},[1692,1697,1701],{"type":21,"tag":138,"props":1693,"children":1694},{"style":151},[1695],{"type":31,"value":1696},"sampler ",{"type":21,"tag":138,"props":1698,"children":1699},{"style":145},[1700],{"type":31,"value":210},{"type":21,"tag":138,"props":1702,"children":1703},{"style":151},[1704],{"type":31,"value":1705}," SimulatedAnnealingSampler()\n",{"type":21,"tag":138,"props":1707,"children":1708},{"class":140,"line":167},[1709,1714,1718,1723,1728,1732,1737],{"type":21,"tag":138,"props":1710,"children":1711},{"style":151},[1712],{"type":31,"value":1713},"sampleset ",{"type":21,"tag":138,"props":1715,"children":1716},{"style":145},[1717],{"type":31,"value":210},{"type":21,"tag":138,"props":1719,"children":1720},{"style":151},[1721],{"type":31,"value":1722}," sampler.sample(bqm, ",{"type":21,"tag":138,"props":1724,"children":1725},{"style":929},[1726],{"type":31,"value":1727},"num_reads",{"type":21,"tag":138,"props":1729,"children":1730},{"style":145},[1731],{"type":31,"value":210},{"type":21,"tag":138,"props":1733,"children":1734},{"style":213},[1735],{"type":31,"value":1736},"1000",{"type":21,"tag":138,"props":1738,"children":1739},{"style":151},[1740],{"type":31,"value":269},{"type":21,"tag":138,"props":1742,"children":1743},{"class":140,"line":189},[1744],{"type":21,"tag":138,"props":1745,"children":1746},{"emptyLinePlaceholder":193},[1747],{"type":31,"value":196},{"type":21,"tag":138,"props":1749,"children":1750},{"class":140,"line":199},[1751,1756,1760],{"type":21,"tag":138,"props":1752,"children":1753},{"style":151},[1754],{"type":31,"value":1755},"best ",{"type":21,"tag":138,"props":1757,"children":1758},{"style":145},[1759],{"type":31,"value":210},{"type":21,"tag":138,"props":1761,"children":1762},{"style":151},[1763],{"type":31,"value":1764}," sampleset.first\n",{"type":21,"tag":138,"props":1766,"children":1767},{"class":140,"line":225},[1768,1772],{"type":21,"tag":138,"props":1769,"children":1770},{"style":213},[1771],{"type":31,"value":954},{"type":21,"tag":138,"props":1773,"children":1774},{"style":151},[1775],{"type":31,"value":1776},"(best.sample, best.energy)\n",{"type":21,"tag":22,"props":1778,"children":1779},{},[1780,1786,1788,1794,1796,1802,1804,1809,1811,1816],{"type":21,"tag":103,"props":1781,"children":1783},{"className":1782},[],[1784],{"type":31,"value":1785},"num_reads=1000",{"type":31,"value":1787}," 会独立运行退火过程 1000 次，并保留每一次的结果，因为无论是模拟退火还是量子退火本质上都是启发式的：没有任何一次运行能保证落在基态上，因此标准做法是运行一批读数，取其中能量最低的结果。对于这个图，可以预期 ",{"type":21,"tag":103,"props":1789,"children":1791},{"className":1790},[],[1792],{"type":31,"value":1793},"best.energy",{"type":31,"value":1795}," 会落在 −4，而 ",{"type":21,"tag":103,"props":1797,"children":1799},{"className":1798},[],[1800],{"type":31,"value":1801},"best.sample",{"type":31,"value":1803}," 会读出两种等价二分方案之一：",{"type":21,"tag":103,"props":1805,"children":1807},{"className":1806},[],[1808],{"type":31,"value":1645},{"type":31,"value":1810}," 在一侧、",{"type":21,"tag":103,"props":1812,"children":1814},{"className":1813},[],[1815],{"type":31,"value":1653},{"type":31,"value":1817}," 在另一侧，或者相反。两者都是有效解：Max-Cut 本身并不区分哪一侧是\"第一\"侧，所以这是问题本身真实存在的对称性，而不是采样器的错误。",{"type":21,"tag":41,"props":1819,"children":1821},{"id":1820},"常见错误忽视嵌入问题",[1822],{"type":31,"value":1823},"常见错误：忽视嵌入问题",{"type":21,"tag":22,"props":1825,"children":1826},{},[1827],{"type":31,"value":1828},"以上内容都运行在一个没有连接性限制的经典模拟退火机上：任意变量都可以自由地与任意其他变量交互。真实的 D-Wave 硬件则完全不同。物理量子比特分布在一个固定且稀疏的拓扑结构上（视代数不同为 Pegasus 或 Zephyr），大多数量子比特对之间根本没有直接连线。",{"type":21,"tag":22,"props":1830,"children":1831},{},[1832,1834,1840,1842,1848,1850,1856,1858,1864],{"type":31,"value":1833},"要放置一个变量 ",{"type":21,"tag":103,"props":1835,"children":1837},{"className":1836},[],[1838],{"type":31,"value":1839},"i",{"type":31,"value":1841}," 需要与变量 ",{"type":21,"tag":103,"props":1843,"children":1845},{"className":1844},[],[1846],{"type":31,"value":1847},"j",{"type":31,"value":1849}," 交互、但没有任何物理量子比特对提供这种连接的问题，Ocean 的最小嵌入步骤会把若干个物理量子比特串成一条链，让它们共同充当一个逻辑变量。这个过程是自动完成的，由 ",{"type":21,"tag":103,"props":1851,"children":1853},{"className":1852},[],[1854],{"type":31,"value":1855},"dwave-system",{"type":31,"value":1857}," 的 ",{"type":21,"tag":103,"props":1859,"children":1861},{"className":1860},[],[1862],{"type":31,"value":1863},"EmbeddingComposite",{"type":31,"value":1865}," 负责处理，但这个过程并非没有代价：链需要额外的量子比特，而且链有时会\"断裂\"——原本应当保持一致的物理量子比特在退火结束后出现了分歧，从而悄无声息地破坏了那个变量的读数。问题越大、越密集，所需的链就越长，断裂也就越频繁；密度足够高的问题最终会在给定芯片上完全无法嵌入。这是几乎所有人第一次把一个能正常工作的模拟退火问题迁移到真实硬件上时都会遇到的最常见意外：算法本身并没有变差，是芯片的物理连接性成为了瓶颈。",{"type":21,"tag":41,"props":1867,"children":1869},{"id":1868},"退火不能做什么",[1870],{"type":31,"value":1868},{"type":21,"tag":22,"props":1872,"children":1873},{},[1874],{"type":31,"value":1875},"退火机不能运行 Grover 搜索，不能运行 Shor 分解，也完全没有\"电路\"这种通用概念。它的量子比特无法与门模型量子比特直接比较：D-Wave 的系统拥有超过 5000 个量子比特，远多于任何门模型 QPU，但这个数字描述的具体是在 QUBO\u002FIsing 这类问题上的优化能力，而不是通用计算能力。退火相对于最好的经典优化启发式算法，在实际问题上是否真的存在速度优势，这在学术文献中仍然存在真正的争议，而且似乎高度依赖具体问题的结构，不应该被默认为理所当然。",{"type":21,"tag":41,"props":1877,"children":1879},{"id":1878},"在真实-d-wave-硬件上运行",[1880],{"type":31,"value":1881},"在真实 D-Wave 硬件上运行",{"type":21,"tag":22,"props":1883,"children":1884},{},[1885],{"type":31,"value":1886},"只需替换采样器，其余代码保持不变：",{"type":21,"tag":128,"props":1888,"children":1890},{"className":130,"code":1889,"language":132,"meta":7,"style":7},"from dwave.system import DWaveSampler, EmbeddingComposite\n\nsampler = EmbeddingComposite(DWaveSampler())\nsampleset = sampler.sample(bqm, num_reads=1000)\n",[1891],{"type":21,"tag":103,"props":1892,"children":1893},{"__ignoreMap":7},[1894,1915,1922,1938],{"type":21,"tag":138,"props":1895,"children":1896},{"class":140,"line":141},[1897,1901,1906,1910],{"type":21,"tag":138,"props":1898,"children":1899},{"style":145},[1900],{"type":31,"value":148},{"type":21,"tag":138,"props":1902,"children":1903},{"style":151},[1904],{"type":31,"value":1905}," dwave.system ",{"type":21,"tag":138,"props":1907,"children":1908},{"style":145},[1909],{"type":31,"value":159},{"type":21,"tag":138,"props":1911,"children":1912},{"style":151},[1913],{"type":31,"value":1914}," DWaveSampler, EmbeddingComposite\n",{"type":21,"tag":138,"props":1916,"children":1917},{"class":140,"line":167},[1918],{"type":21,"tag":138,"props":1919,"children":1920},{"emptyLinePlaceholder":193},[1921],{"type":31,"value":196},{"type":21,"tag":138,"props":1923,"children":1924},{"class":140,"line":189},[1925,1929,1933],{"type":21,"tag":138,"props":1926,"children":1927},{"style":151},[1928],{"type":31,"value":1696},{"type":21,"tag":138,"props":1930,"children":1931},{"style":145},[1932],{"type":31,"value":210},{"type":21,"tag":138,"props":1934,"children":1935},{"style":151},[1936],{"type":31,"value":1937}," EmbeddingComposite(DWaveSampler())\n",{"type":21,"tag":138,"props":1939,"children":1940},{"class":140,"line":199},[1941,1945,1949,1953,1957,1961,1965],{"type":21,"tag":138,"props":1942,"children":1943},{"style":151},[1944],{"type":31,"value":1713},{"type":21,"tag":138,"props":1946,"children":1947},{"style":145},[1948],{"type":31,"value":210},{"type":21,"tag":138,"props":1950,"children":1951},{"style":151},[1952],{"type":31,"value":1722},{"type":21,"tag":138,"props":1954,"children":1955},{"style":929},[1956],{"type":31,"value":1727},{"type":21,"tag":138,"props":1958,"children":1959},{"style":145},[1960],{"type":31,"value":210},{"type":21,"tag":138,"props":1962,"children":1963},{"style":213},[1964],{"type":31,"value":1736},{"type":21,"tag":138,"props":1966,"children":1967},{"style":151},[1968],{"type":31,"value":269},{"type":21,"tag":22,"props":1970,"children":1971},{},[1972,1974,1980,1982,1987,1989,1995],{"type":31,"value":1973},"D-Wave 的 Leap 云服务每月提供免费的 QPU 时长配额，专门用于这类实验，这可以看作是门模型硬件领域",{"type":21,"tag":26,"props":1975,"children":1977},{"href":1976},"\u002Fblog\u002Fibm-quantum-free-tier-2026",[1978],{"type":31,"value":1979},"IBM Quantum 免费套餐",{"type":31,"value":1981},"在退火领域的对应物。",{"type":21,"tag":103,"props":1983,"children":1985},{"className":1984},[],[1986],{"type":31,"value":1863},{"type":31,"value":1988}," 会自动处理最小嵌入步骤，但在信任任何超出简单玩具问题规模的结果之前，请先检查返回的 ",{"type":21,"tag":103,"props":1990,"children":1992},{"className":1991},[],[1993],{"type":31,"value":1994},"sampleset.info",{"type":31,"value":1996}," 中关于链断裂的统计信息。",{"type":21,"tag":41,"props":1998,"children":1999},{"id":1114},[2000],{"type":31,"value":1114},{"type":21,"tag":1118,"props":2002,"children":2003},{},[2004,2014,2024,2035],{"type":21,"tag":71,"props":2005,"children":2006},{},[2007,2012],{"type":21,"tag":26,"props":2008,"children":2009},{"href":1250},[2010],{"type":31,"value":2011},"QAOA 教程",{"type":31,"value":2013},"：同一个 Max-Cut 问题的门模型解法",{"type":21,"tag":71,"props":2015,"children":2016},{},[2017,2022],{"type":21,"tag":26,"props":2018,"children":2019},{"href":1221},[2020],{"type":31,"value":2021},"量子退火术语表条目",{"type":31,"value":2023},"：该概念的简要介绍",{"type":21,"tag":71,"props":2025,"children":2026},{},[2027,2033],{"type":21,"tag":26,"props":2028,"children":2030},{"href":2029},"\u002Fblog\u002Fdwave-dual-rail-erasure-qubit-gate-nature",[2031],{"type":31,"value":2032},"D-Wave 的双轨擦除量子比特门",{"type":31,"value":2034},"：D-Wave 在退火产品线之外向门模型硬件迈出的一步",{"type":21,"tag":71,"props":2036,"children":2037},{},[2038,2042,2043,2049,2050,2056],{"type":21,"tag":26,"props":2039,"children":2040},{"href":1148},[2041],{"type":31,"value":1151},{"type":31,"value":1153},{"type":21,"tag":26,"props":2044,"children":2046},{"href":2045},"\u002Fglossary\u002Fqaoa",[2047],{"type":31,"value":2048},"QAOA",{"type":31,"value":1161},{"type":21,"tag":26,"props":2051,"children":2053},{"href":2052},"\u002Fglossary\u002Fquantum-advantage",[2054],{"type":31,"value":2055},"量子优势",{"type":31,"value":1172},{"type":21,"tag":1174,"props":2058,"children":2059},{},[2060],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":2062},[2063,2064,2065,2066,2067,2068,2069],{"id":1258,"depth":167,"text":1258},{"id":1273,"depth":167,"text":1276},{"id":1658,"depth":167,"text":1658},{"id":1820,"depth":167,"text":1823},{"id":1868,"depth":167,"text":1868},{"id":1878,"depth":167,"text":1881},{"id":1114,"depth":167,"text":1114},"content:zh:blog:quantum-annealing-tutorial.md","zh\u002Fblog\u002Fquantum-annealing-tutorial.md","zh\u002Fblog\u002Fquantum-annealing-tutorial",{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"author":11,"tags":2074,"readingTime":16,"body":2075,"_type":1193,"_id":1194,"_source":1195,"_file":1196,"_stem":1197,"_extension":1198},[13,14,15],{"type":18,"children":2076,"toc":3035},[2077,2085,2089,2093,2097,2101,2105,2109,2124,2128,2132,2154,2389,2393,2444,2477,2481,2578,2606,2610,2700,2734,2738,2877,2923,2927,2949,2953,2972,2976,2985,2989,3031],{"type":21,"tag":22,"props":2078,"children":2079},{},[2080,2084],{"type":21,"tag":26,"props":2081,"children":2082},{"href":28},[2083],{"type":31,"value":32},{"type":31,"value":34},{"type":21,"tag":22,"props":2086,"children":2087},{},[2088],{"type":31,"value":39},{"type":21,"tag":41,"props":2090,"children":2091},{"id":43},[2092],{"type":31,"value":43},{"type":21,"tag":22,"props":2094,"children":2095},{},[2096],{"type":31,"value":50},{"type":21,"tag":22,"props":2098,"children":2099},{},[2100],{"type":31,"value":55},{"type":21,"tag":22,"props":2102,"children":2103},{},[2104],{"type":31,"value":60},{"type":21,"tag":41,"props":2106,"children":2107},{"id":63},[2108],{"type":31,"value":63},{"type":21,"tag":67,"props":2110,"children":2111},{},[2112,2116,2120],{"type":21,"tag":71,"props":2113,"children":2114},{},[2115],{"type":31,"value":75},{"type":21,"tag":71,"props":2117,"children":2118},{},[2119],{"type":31,"value":80},{"type":21,"tag":71,"props":2121,"children":2122},{},[2123],{"type":31,"value":85},{"type":21,"tag":22,"props":2125,"children":2126},{},[2127],{"type":31,"value":90},{"type":21,"tag":41,"props":2129,"children":2130},{"id":93},[2131],{"type":31,"value":96},{"type":21,"tag":22,"props":2133,"children":2134},{},[2135,2136,2141,2142,2147,2148,2153],{"type":31,"value":101},{"type":21,"tag":103,"props":2137,"children":2139},{"className":2138},[],[2140],{"type":31,"value":108},{"type":31,"value":110},{"type":21,"tag":103,"props":2143,"children":2145},{"className":2144},[],[2146],{"type":31,"value":116},{"type":31,"value":118},{"type":21,"tag":103,"props":2149,"children":2151},{"className":2150},[],[2152],{"type":31,"value":124},{"type":31,"value":126},{"type":21,"tag":128,"props":2155,"children":2156},{"className":130,"code":131,"language":132,"meta":7,"style":7},[2157],{"type":21,"tag":103,"props":2158,"children":2159},{"__ignoreMap":7},[2160,2179,2198,2205,2224,2231,2262,2293,2324,2339,2346,2353,2360,2367,2382],{"type":21,"tag":138,"props":2161,"children":2162},{"class":140,"line":141},[2163,2167,2171,2175],{"type":21,"tag":138,"props":2164,"children":2165},{"style":145},[2166],{"type":31,"value":148},{"type":21,"tag":138,"props":2168,"children":2169},{"style":151},[2170],{"type":31,"value":154},{"type":21,"tag":138,"props":2172,"children":2173},{"style":145},[2174],{"type":31,"value":159},{"type":21,"tag":138,"props":2176,"children":2177},{"style":151},[2178],{"type":31,"value":164},{"type":21,"tag":138,"props":2180,"children":2181},{"class":140,"line":167},[2182,2186,2190,2194],{"type":21,"tag":138,"props":2183,"children":2184},{"style":145},[2185],{"type":31,"value":148},{"type":21,"tag":138,"props":2187,"children":2188},{"style":151},[2189],{"type":31,"value":177},{"type":21,"tag":138,"props":2191,"children":2192},{"style":145},[2193],{"type":31,"value":159},{"type":21,"tag":138,"props":2195,"children":2196},{"style":151},[2197],{"type":31,"value":186},{"type":21,"tag":138,"props":2199,"children":2200},{"class":140,"line":189},[2201],{"type":21,"tag":138,"props":2202,"children":2203},{"emptyLinePlaceholder":193},[2204],{"type":31,"value":196},{"type":21,"tag":138,"props":2206,"children":2207},{"class":140,"line":199},[2208,2212,2216,2220],{"type":21,"tag":138,"props":2209,"children":2210},{"style":151},[2211],{"type":31,"value":205},{"type":21,"tag":138,"props":2213,"children":2214},{"style":145},[2215],{"type":31,"value":210},{"type":21,"tag":138,"props":2217,"children":2218},{"style":213},[2219],{"type":31,"value":216},{"type":21,"tag":138,"props":2221,"children":2222},{"style":219},[2223],{"type":31,"value":222},{"type":21,"tag":138,"props":2225,"children":2226},{"class":140,"line":225},[2227],{"type":21,"tag":138,"props":2228,"children":2229},{"emptyLinePlaceholder":193},[2230],{"type":31,"value":196},{"type":21,"tag":138,"props":2232,"children":2233},{"class":140,"line":233},[2234,2238,2242,2246,2250,2254,2258],{"type":21,"tag":138,"props":2235,"children":2236},{"style":151},[2237],{"type":31,"value":239},{"type":21,"tag":138,"props":2239,"children":2240},{"style":145},[2241],{"type":31,"value":210},{"type":21,"tag":138,"props":2243,"children":2244},{"style":151},[2245],{"type":31,"value":248},{"type":21,"tag":138,"props":2247,"children":2248},{"style":213},[2249],{"type":31,"value":253},{"type":21,"tag":138,"props":2251,"children":2252},{"style":151},[2253],{"type":31,"value":258},{"type":21,"tag":138,"props":2255,"children":2256},{"style":261},[2257],{"type":31,"value":264},{"type":21,"tag":138,"props":2259,"children":2260},{"style":151},[2261],{"type":31,"value":269},{"type":21,"tag":138,"props":2263,"children":2264},{"class":140,"line":272},[2265,2269,2273,2277,2281,2285,2289],{"type":21,"tag":138,"props":2266,"children":2267},{"style":151},[2268],{"type":31,"value":278},{"type":21,"tag":138,"props":2270,"children":2271},{"style":145},[2272],{"type":31,"value":210},{"type":21,"tag":138,"props":2274,"children":2275},{"style":151},[2276],{"type":31,"value":287},{"type":21,"tag":138,"props":2278,"children":2279},{"style":213},[2280],{"type":31,"value":292},{"type":21,"tag":138,"props":2282,"children":2283},{"style":151},[2284],{"type":31,"value":258},{"type":21,"tag":138,"props":2286,"children":2287},{"style":261},[2288],{"type":31,"value":301},{"type":21,"tag":138,"props":2290,"children":2291},{"style":151},[2292],{"type":31,"value":269},{"type":21,"tag":138,"props":2294,"children":2295},{"class":140,"line":308},[2296,2300,2304,2308,2312,2316,2320],{"type":21,"tag":138,"props":2297,"children":2298},{"style":151},[2299],{"type":31,"value":314},{"type":21,"tag":138,"props":2301,"children":2302},{"style":145},[2303],{"type":31,"value":210},{"type":21,"tag":138,"props":2305,"children":2306},{"style":151},[2307],{"type":31,"value":287},{"type":21,"tag":138,"props":2309,"children":2310},{"style":213},[2311],{"type":31,"value":327},{"type":21,"tag":138,"props":2313,"children":2314},{"style":151},[2315],{"type":31,"value":258},{"type":21,"tag":138,"props":2317,"children":2318},{"style":261},[2319],{"type":31,"value":336},{"type":21,"tag":138,"props":2321,"children":2322},{"style":151},[2323],{"type":31,"value":269},{"type":21,"tag":138,"props":2325,"children":2326},{"class":140,"line":16},[2327,2331,2335],{"type":21,"tag":138,"props":2328,"children":2329},{"style":151},[2330],{"type":31,"value":348},{"type":21,"tag":138,"props":2332,"children":2333},{"style":145},[2334],{"type":31,"value":210},{"type":21,"tag":138,"props":2336,"children":2337},{"style":151},[2338],{"type":31,"value":357},{"type":21,"tag":138,"props":2340,"children":2341},{"class":140,"line":360},[2342],{"type":21,"tag":138,"props":2343,"children":2344},{"emptyLinePlaceholder":193},[2345],{"type":31,"value":196},{"type":21,"tag":138,"props":2347,"children":2348},{"class":140,"line":368},[2349],{"type":21,"tag":138,"props":2350,"children":2351},{"style":219},[2352],{"type":31,"value":374},{"type":21,"tag":138,"props":2354,"children":2355},{"class":140,"line":377},[2356],{"type":21,"tag":138,"props":2357,"children":2358},{"style":219},[2359],{"type":31,"value":383},{"type":21,"tag":138,"props":2361,"children":2362},{"class":140,"line":386},[2363],{"type":21,"tag":138,"props":2364,"children":2365},{"style":219},[2366],{"type":31,"value":392},{"type":21,"tag":138,"props":2368,"children":2369},{"class":140,"line":395},[2370,2374,2378],{"type":21,"tag":138,"props":2371,"children":2372},{"style":151},[2373],{"type":31,"value":401},{"type":21,"tag":138,"props":2375,"children":2376},{"style":213},[2377],{"type":31,"value":406},{"type":21,"tag":138,"props":2379,"children":2380},{"style":151},[2381],{"type":31,"value":269},{"type":21,"tag":138,"props":2383,"children":2384},{"class":140,"line":413},[2385],{"type":21,"tag":138,"props":2386,"children":2387},{"style":151},[2388],{"type":31,"value":419},{"type":21,"tag":421,"props":2390,"children":2391},{"id":423},[2392],{"type":31,"value":426},{"type":21,"tag":128,"props":2394,"children":2395},{"className":130,"code":429,"language":132,"meta":7,"style":7},[2396],{"type":21,"tag":103,"props":2397,"children":2398},{"__ignoreMap":7},[2399,2414,2437],{"type":21,"tag":138,"props":2400,"children":2401},{"class":140,"line":141},[2402,2406,2410],{"type":21,"tag":138,"props":2403,"children":2404},{"style":151},[2405],{"type":31,"value":441},{"type":21,"tag":138,"props":2407,"children":2408},{"style":213},[2409],{"type":31,"value":327},{"type":21,"tag":138,"props":2411,"children":2412},{"style":151},[2413],{"type":31,"value":269},{"type":21,"tag":138,"props":2415,"children":2416},{"class":140,"line":167},[2417,2421,2425,2429,2433],{"type":21,"tag":138,"props":2418,"children":2419},{"style":151},[2420],{"type":31,"value":457},{"type":21,"tag":138,"props":2422,"children":2423},{"style":213},[2424],{"type":31,"value":327},{"type":21,"tag":138,"props":2426,"children":2427},{"style":151},[2428],{"type":31,"value":258},{"type":21,"tag":138,"props":2430,"children":2431},{"style":213},[2432],{"type":31,"value":292},{"type":21,"tag":138,"props":2434,"children":2435},{"style":151},[2436],{"type":31,"value":269},{"type":21,"tag":138,"props":2438,"children":2439},{"class":140,"line":189},[2440],{"type":21,"tag":138,"props":2441,"children":2442},{"style":151},[2443],{"type":31,"value":419},{"type":21,"tag":22,"props":2445,"children":2446},{},[2447,2448,2452,2453,2458,2459,2464,2465,2470,2471,2476],{"type":31,"value":485},{"type":21,"tag":26,"props":2449,"children":2450},{"href":488},[2451],{"type":31,"value":491},{"type":31,"value":493},{"type":21,"tag":103,"props":2454,"children":2456},{"className":2455},[],[2457],{"type":31,"value":116},{"type":31,"value":500},{"type":21,"tag":103,"props":2460,"children":2462},{"className":2461},[],[2463],{"type":31,"value":124},{"type":31,"value":507},{"type":21,"tag":103,"props":2466,"children":2468},{"className":2467},[],[2469],{"type":31,"value":116},{"type":31,"value":514},{"type":21,"tag":103,"props":2472,"children":2474},{"className":2473},[],[2475],{"type":31,"value":124},{"type":31,"value":521},{"type":21,"tag":421,"props":2478,"children":2479},{"id":524},[2480],{"type":31,"value":527},{"type":21,"tag":128,"props":2482,"children":2483},{"className":130,"code":530,"language":132,"meta":7,"style":7},[2484],{"type":21,"tag":103,"props":2485,"children":2486},{"__ignoreMap":7},[2487,2510,2525,2548,2571],{"type":21,"tag":138,"props":2488,"children":2489},{"class":140,"line":141},[2490,2494,2498,2502,2506],{"type":21,"tag":138,"props":2491,"children":2492},{"style":151},[2493],{"type":31,"value":457},{"type":21,"tag":138,"props":2495,"children":2496},{"style":213},[2497],{"type":31,"value":406},{"type":21,"tag":138,"props":2499,"children":2500},{"style":151},[2501],{"type":31,"value":258},{"type":21,"tag":138,"props":2503,"children":2504},{"style":213},[2505],{"type":31,"value":327},{"type":21,"tag":138,"props":2507,"children":2508},{"style":151},[2509],{"type":31,"value":269},{"type":21,"tag":138,"props":2511,"children":2512},{"class":140,"line":167},[2513,2517,2521],{"type":21,"tag":138,"props":2514,"children":2515},{"style":151},[2516],{"type":31,"value":441},{"type":21,"tag":138,"props":2518,"children":2519},{"style":213},[2520],{"type":31,"value":406},{"type":21,"tag":138,"props":2522,"children":2523},{"style":151},[2524],{"type":31,"value":269},{"type":21,"tag":138,"props":2526,"children":2527},{"class":140,"line":189},[2528,2532,2536,2540,2544],{"type":21,"tag":138,"props":2529,"children":2530},{"style":151},[2531],{"type":31,"value":580},{"type":21,"tag":138,"props":2533,"children":2534},{"style":213},[2535],{"type":31,"value":406},{"type":21,"tag":138,"props":2537,"children":2538},{"style":151},[2539],{"type":31,"value":589},{"type":21,"tag":138,"props":2541,"children":2542},{"style":213},[2543],{"type":31,"value":406},{"type":21,"tag":138,"props":2545,"children":2546},{"style":151},[2547],{"type":31,"value":598},{"type":21,"tag":138,"props":2549,"children":2550},{"class":140,"line":199},[2551,2555,2559,2563,2567],{"type":21,"tag":138,"props":2552,"children":2553},{"style":151},[2554],{"type":31,"value":580},{"type":21,"tag":138,"props":2556,"children":2557},{"style":213},[2558],{"type":31,"value":327},{"type":21,"tag":138,"props":2560,"children":2561},{"style":151},[2562],{"type":31,"value":589},{"type":21,"tag":138,"props":2564,"children":2565},{"style":213},[2566],{"type":31,"value":327},{"type":21,"tag":138,"props":2568,"children":2569},{"style":151},[2570],{"type":31,"value":598},{"type":21,"tag":138,"props":2572,"children":2573},{"class":140,"line":225},[2574],{"type":21,"tag":138,"props":2575,"children":2576},{"style":151},[2577],{"type":31,"value":419},{"type":21,"tag":22,"props":2579,"children":2580},{},[2581,2582,2587,2588,2593,2594,2599,2600,2605],{"type":31,"value":633},{"type":21,"tag":103,"props":2583,"children":2585},{"className":2584},[],[2586],{"type":31,"value":108},{"type":31,"value":640},{"type":21,"tag":103,"props":2589,"children":2591},{"className":2590},[],[2592],{"type":31,"value":116},{"type":31,"value":647},{"type":21,"tag":103,"props":2595,"children":2597},{"className":2596},[],[2598],{"type":31,"value":653},{"type":31,"value":640},{"type":21,"tag":103,"props":2601,"children":2603},{"className":2602},[],[2604],{"type":31,"value":660},{"type":31,"value":662},{"type":21,"tag":421,"props":2607,"children":2608},{"id":665},[2609],{"type":31,"value":668},{"type":21,"tag":128,"props":2611,"children":2612},{"className":130,"code":671,"language":132,"meta":7,"style":7},[2613],{"type":21,"tag":103,"props":2614,"children":2615},{"__ignoreMap":7},[2616,2643,2658,2685],{"type":21,"tag":138,"props":2617,"children":2618},{"class":140,"line":141},[2619,2623,2627,2631,2635,2639],{"type":21,"tag":138,"props":2620,"children":2621},{"style":145},[2622],{"type":31,"value":683},{"type":21,"tag":138,"props":2624,"children":2625},{"style":151},[2626],{"type":31,"value":688},{"type":21,"tag":138,"props":2628,"children":2629},{"style":213},[2630],{"type":31,"value":327},{"type":21,"tag":138,"props":2632,"children":2633},{"style":151},[2634],{"type":31,"value":697},{"type":21,"tag":138,"props":2636,"children":2637},{"style":213},[2638],{"type":31,"value":327},{"type":21,"tag":138,"props":2640,"children":2641},{"style":151},[2642],{"type":31,"value":706},{"type":21,"tag":138,"props":2644,"children":2645},{"class":140,"line":167},[2646,2650,2654],{"type":21,"tag":138,"props":2647,"children":2648},{"style":151},[2649],{"type":31,"value":714},{"type":21,"tag":138,"props":2651,"children":2652},{"style":213},[2653],{"type":31,"value":292},{"type":21,"tag":138,"props":2655,"children":2656},{"style":151},[2657],{"type":31,"value":269},{"type":21,"tag":138,"props":2659,"children":2660},{"class":140,"line":189},[2661,2665,2669,2673,2677,2681],{"type":21,"tag":138,"props":2662,"children":2663},{"style":145},[2664],{"type":31,"value":683},{"type":21,"tag":138,"props":2666,"children":2667},{"style":151},[2668],{"type":31,"value":688},{"type":21,"tag":138,"props":2670,"children":2671},{"style":213},[2672],{"type":31,"value":406},{"type":21,"tag":138,"props":2674,"children":2675},{"style":151},[2676],{"type":31,"value":697},{"type":21,"tag":138,"props":2678,"children":2679},{"style":213},[2680],{"type":31,"value":327},{"type":21,"tag":138,"props":2682,"children":2683},{"style":151},[2684],{"type":31,"value":706},{"type":21,"tag":138,"props":2686,"children":2687},{"class":140,"line":199},[2688,2692,2696],{"type":21,"tag":138,"props":2689,"children":2690},{"style":151},[2691],{"type":31,"value":757},{"type":21,"tag":138,"props":2693,"children":2694},{"style":213},[2695],{"type":31,"value":292},{"type":21,"tag":138,"props":2697,"children":2698},{"style":151},[2699],{"type":31,"value":269},{"type":21,"tag":22,"props":2701,"children":2702},{},[2703,2704,2709,2710,2715,2716,2721,2722,2727,2728,2733],{"type":31,"value":770},{"type":21,"tag":103,"props":2705,"children":2707},{"className":2706},[],[2708],{"type":31,"value":660},{"type":31,"value":777},{"type":21,"tag":103,"props":2711,"children":2713},{"className":2712},[],[2714],{"type":31,"value":124},{"type":31,"value":784},{"type":21,"tag":103,"props":2717,"children":2719},{"className":2718},[],[2720],{"type":31,"value":653},{"type":31,"value":777},{"type":21,"tag":103,"props":2723,"children":2725},{"className":2724},[],[2726],{"type":31,"value":124},{"type":31,"value":797},{"type":21,"tag":103,"props":2729,"children":2731},{"className":2730},[],[2732],{"type":31,"value":803},{"type":31,"value":805},{"type":21,"tag":421,"props":2735,"children":2736},{"id":808},[2737],{"type":31,"value":811},{"type":21,"tag":128,"props":2739,"children":2740},{"className":130,"code":814,"language":132,"meta":7,"style":7},[2741],{"type":21,"tag":103,"props":2742,"children":2743},{"__ignoreMap":7},[2744,2767,2790,2797,2812,2827,2858],{"type":21,"tag":138,"props":2745,"children":2746},{"class":140,"line":141},[2747,2751,2755,2759,2763],{"type":21,"tag":138,"props":2748,"children":2749},{"style":151},[2750],{"type":31,"value":826},{"type":21,"tag":138,"props":2752,"children":2753},{"style":145},[2754],{"type":31,"value":831},{"type":21,"tag":138,"props":2756,"children":2757},{"style":151},[2758],{"type":31,"value":836},{"type":21,"tag":138,"props":2760,"children":2761},{"style":213},[2762],{"type":31,"value":292},{"type":21,"tag":138,"props":2764,"children":2765},{"style":151},[2766],{"type":31,"value":269},{"type":21,"tag":138,"props":2768,"children":2769},{"class":140,"line":167},[2770,2774,2778,2782,2786],{"type":21,"tag":138,"props":2771,"children":2772},{"style":151},[2773],{"type":31,"value":580},{"type":21,"tag":138,"props":2775,"children":2776},{"style":213},[2777],{"type":31,"value":292},{"type":21,"tag":138,"props":2779,"children":2780},{"style":151},[2781],{"type":31,"value":860},{"type":21,"tag":138,"props":2783,"children":2784},{"style":213},[2785],{"type":31,"value":406},{"type":21,"tag":138,"props":2787,"children":2788},{"style":151},[2789],{"type":31,"value":598},{"type":21,"tag":138,"props":2791,"children":2792},{"class":140,"line":189},[2793],{"type":21,"tag":138,"props":2794,"children":2795},{"emptyLinePlaceholder":193},[2796],{"type":31,"value":196},{"type":21,"tag":138,"props":2798,"children":2799},{"class":140,"line":199},[2800,2804,2808],{"type":21,"tag":138,"props":2801,"children":2802},{"style":151},[2803],{"type":31,"value":883},{"type":21,"tag":138,"props":2805,"children":2806},{"style":145},[2807],{"type":31,"value":210},{"type":21,"tag":138,"props":2809,"children":2810},{"style":151},[2811],{"type":31,"value":892},{"type":21,"tag":138,"props":2813,"children":2814},{"class":140,"line":225},[2815,2819,2823],{"type":21,"tag":138,"props":2816,"children":2817},{"style":151},[2818],{"type":31,"value":900},{"type":21,"tag":138,"props":2820,"children":2821},{"style":145},[2822],{"type":31,"value":210},{"type":21,"tag":138,"props":2824,"children":2825},{"style":151},[2826],{"type":31,"value":909},{"type":21,"tag":138,"props":2828,"children":2829},{"class":140,"line":233},[2830,2834,2838,2842,2846,2850,2854],{"type":21,"tag":138,"props":2831,"children":2832},{"style":151},[2833],{"type":31,"value":917},{"type":21,"tag":138,"props":2835,"children":2836},{"style":145},[2837],{"type":31,"value":210},{"type":21,"tag":138,"props":2839,"children":2840},{"style":151},[2841],{"type":31,"value":926},{"type":21,"tag":138,"props":2843,"children":2844},{"style":929},[2845],{"type":31,"value":932},{"type":21,"tag":138,"props":2847,"children":2848},{"style":145},[2849],{"type":31,"value":210},{"type":21,"tag":138,"props":2851,"children":2852},{"style":213},[2853],{"type":31,"value":941},{"type":21,"tag":138,"props":2855,"children":2856},{"style":151},[2857],{"type":31,"value":946},{"type":21,"tag":138,"props":2859,"children":2860},{"class":140,"line":272},[2861,2865,2869,2873],{"type":21,"tag":138,"props":2862,"children":2863},{"style":213},[2864],{"type":31,"value":954},{"type":21,"tag":138,"props":2866,"children":2867},{"style":151},[2868],{"type":31,"value":959},{"type":21,"tag":138,"props":2870,"children":2871},{"style":213},[2872],{"type":31,"value":964},{"type":21,"tag":138,"props":2874,"children":2875},{"style":151},[2876],{"type":31,"value":969},{"type":21,"tag":22,"props":2878,"children":2879},{},[2880,2881,2886,2887,2892,2893,2898,2899,2904,2905,2910,2911,2916,2917,2922],{"type":31,"value":974},{"type":21,"tag":103,"props":2882,"children":2884},{"className":2883},[],[2885],{"type":31,"value":124},{"type":31,"value":981},{"type":21,"tag":103,"props":2888,"children":2890},{"className":2889},[],[2891],{"type":31,"value":124},{"type":31,"value":988},{"type":21,"tag":103,"props":2894,"children":2896},{"className":2895},[],[2897],{"type":31,"value":108},{"type":31,"value":995},{"type":21,"tag":103,"props":2900,"children":2902},{"className":2901},[],[2903],{"type":31,"value":1001},{"type":31,"value":1003},{"type":21,"tag":103,"props":2906,"children":2908},{"className":2907},[],[2909],{"type":31,"value":1009},{"type":31,"value":1011},{"type":21,"tag":103,"props":2912,"children":2914},{"className":2913},[],[2915],{"type":31,"value":1017},{"type":31,"value":1019},{"type":21,"tag":103,"props":2918,"children":2920},{"className":2919},[],[2921],{"type":31,"value":1009},{"type":31,"value":1026},{"type":21,"tag":41,"props":2924,"children":2925},{"id":1029},[2926],{"type":31,"value":1032},{"type":21,"tag":22,"props":2928,"children":2929},{},[2930,2931,2936,2937,2942,2943,2948],{"type":31,"value":1037},{"type":21,"tag":103,"props":2932,"children":2934},{"className":2933},[],[2935],{"type":31,"value":803},{"type":31,"value":1044},{"type":21,"tag":103,"props":2938,"children":2940},{"className":2939},[],[2941],{"type":31,"value":124},{"type":31,"value":1051},{"type":21,"tag":103,"props":2944,"children":2946},{"className":2945},[],[2947],{"type":31,"value":1057},{"type":31,"value":1059},{"type":21,"tag":41,"props":2950,"children":2951},{"id":1062},[2952],{"type":31,"value":1062},{"type":21,"tag":22,"props":2954,"children":2955},{},[2956,2957,2961,2962,2966,2967,2971],{"type":31,"value":1069},{"type":21,"tag":26,"props":2958,"children":2959},{"href":1072},[2960],{"type":31,"value":1075},{"type":31,"value":1077},{"type":21,"tag":26,"props":2963,"children":2964},{"href":1080},[2965],{"type":31,"value":1083},{"type":31,"value":1085},{"type":21,"tag":26,"props":2968,"children":2969},{"href":1088},[2970],{"type":31,"value":1091},{"type":31,"value":1093},{"type":21,"tag":41,"props":2973,"children":2974},{"id":1096},[2975],{"type":31,"value":1096},{"type":21,"tag":22,"props":2977,"children":2978},{},[2979,2980,2984],{"type":31,"value":1103},{"type":21,"tag":26,"props":2981,"children":2982},{"href":1106},[2983],{"type":31,"value":1109},{"type":31,"value":1111},{"type":21,"tag":41,"props":2986,"children":2987},{"id":1114},[2988],{"type":31,"value":1114},{"type":21,"tag":1118,"props":2990,"children":2991},{},[2992,3000,3008],{"type":21,"tag":71,"props":2993,"children":2994},{},[2995,2999],{"type":21,"tag":26,"props":2996,"children":2997},{"href":1126},[2998],{"type":31,"value":1129},{"type":31,"value":1131},{"type":21,"tag":71,"props":3001,"children":3002},{},[3003,3007],{"type":21,"tag":26,"props":3004,"children":3005},{"href":1137},[3006],{"type":31,"value":1140},{"type":31,"value":1142},{"type":21,"tag":71,"props":3009,"children":3010},{},[3011,3015,3016,3020,3021,3025,3026,3030],{"type":21,"tag":26,"props":3012,"children":3013},{"href":1148},[3014],{"type":31,"value":1151},{"type":31,"value":1153},{"type":21,"tag":26,"props":3017,"children":3018},{"href":1156},[3019],{"type":31,"value":1159},{"type":31,"value":1161},{"type":21,"tag":26,"props":3022,"children":3023},{"href":488},[3024],{"type":31,"value":491},{"type":31,"value":1161},{"type":21,"tag":26,"props":3027,"children":3028},{"href":1088},[3029],{"type":31,"value":1091},{"type":31,"value":1172},{"type":21,"tag":1174,"props":3032,"children":3033},{},[3034],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":3036},[3037,3038,3039,3045,3046,3047,3048],{"id":43,"depth":167,"text":43},{"id":63,"depth":167,"text":63},{"id":93,"depth":167,"text":96,"children":3040},[3041,3042,3043,3044],{"id":423,"depth":189,"text":426},{"id":524,"depth":189,"text":527},{"id":665,"depth":189,"text":668},{"id":808,"depth":189,"text":811},{"id":1029,"depth":167,"text":1032},{"id":1062,"depth":167,"text":1062},{"id":1096,"depth":167,"text":1096},{"id":1114,"depth":167,"text":1114},{"_path":3050,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":3051,"description":3052,"date":10,"author":11,"tags":3053,"readingTime":272,"body":3055,"_type":1193,"_id":3400,"_source":1195,"_file":3401,"_stem":3402,"_extension":1198},"\u002Fzh\u002Fblog\u002Fquantum-vs-classical-computing","量子计算 vs 经典计算：真正的区别在哪里","直接对比量子计算与经典计算：量子比特与经典比特到底有何不同、为什么叠加态本身并不等于速度，以及哪些问题各自适合哪种模型。",[3054,15],"Beginners",{"type":18,"children":3056,"toc":3392},[3057,3070,3076,3089,3102,3108,3121,3126,3131,3156,3161,3315,3321,3334,3338],{"type":21,"tag":22,"props":3058,"children":3059},{},[3060,3062,3068],{"type":31,"value":3061},"量子计算机不会取代经典计算机，也从来没打算这么做。本文直接对比",{"type":21,"tag":26,"props":3063,"children":3065},{"href":3064},"\u002Fglossary\u002Fqubit",[3066],{"type":31,"value":3067},"量子比特",{"type":31,"value":3069},"与经典比特的本质区别、为什么\"叠加态意味着并行处理\"是一个容易误导人的说法，以及哪些问题应该交给哪种机器处理，帮助你在写第一段电路代码之前先弄清楚该抱有怎样的预期。",{"type":21,"tag":41,"props":3071,"children":3073},{"id":3072},"基本单元比特-vs-量子比特",[3074],{"type":31,"value":3075},"基本单元：比特 vs 量子比特",{"type":21,"tag":22,"props":3077,"children":3078},{},[3079,3081,3087],{"type":31,"value":3080},"一个经典比特在任意时刻只能处于两种状态之一：0 或 1。而一个量子比特在被测量之前，处于两者的",{"type":21,"tag":26,"props":3082,"children":3084},{"href":3083},"\u002Fglossary\u002Fsuperposition",[3085],{"type":31,"value":3086},"叠加态",{"type":31,"value":3088},"之中，用两个复数（振幅）而不是单一数值来描述。测量一个量子比特会使这个叠加态坍缩为确定的 0 或 1，坍缩到哪个值的概率由这些振幅决定。",{"type":21,"tag":22,"props":3090,"children":3091},{},[3092,3094,3100],{"type":31,"value":3093},"一个很有诱惑力但容易误导人的说法，是把处于叠加态的 n 个量子比特说成\"同时处理 2ⁿ 个值\"。从机制上说，底层的量子态确实同时编码了 2ⁿ 个振幅。真正困难的地方在于把这些信息提取出来：一次测量只能得到一个确定的 n 比特字符串，按振幅决定的概率随机给出，其余的信息则随着坍缩一起消失。一个真正有用的量子算法必须经过精心设计，让",{"type":21,"tag":26,"props":3095,"children":3097},{"href":3096},"\u002Fglossary\u002Fhadamard-gate",[3098],{"type":31,"value":3099},"干涉",{"type":31,"value":3101},"在测量发生之前抵消掉错误答案、强化正确答案，而不是简单地把量子比特扔进叠加态就直接读出结果。",{"type":21,"tag":41,"props":3103,"children":3105},{"id":3104},"确定性-vs-概率性",[3106],{"type":31,"value":3107},"确定性 vs 概率性",{"type":21,"tag":22,"props":3109,"children":3110},{},[3111,3113,3119],{"type":31,"value":3112},"用同样的输入两次运行同一个经典程序，一台正常工作的计算机两次都会给出完全相同的结果。而两次运行同一个量子电路，两次运行会从一个概率分布中采样，只有一定的概率会得到相同的答案，即使在正常工作的硬件上，这个概率往往也远低于 100%。这正是量子程序要以\"shot\"（采样次数）为单位运行的原因：同一个电路会被执行成百上千次，最终答案来自这些结果构成的分布，而不是单次执行的结果。关于这背后的统计原理，可以参考我们关于 ",{"type":21,"tag":26,"props":3114,"children":3116},{"href":3115},"\u002Fglossary\u002Fshot-noise",[3117],{"type":31,"value":3118},"shot noise 的术语表条目",{"type":31,"value":3120},"。",{"type":21,"tag":41,"props":3122,"children":3124},{"id":3123},"各自擅长什么",[3125],{"type":31,"value":3123},{"type":21,"tag":22,"props":3127,"children":3128},{},[3129],{"type":31,"value":3130},"在如今计算机被使用的几乎所有场景中，经典计算机依然明显更胜一筹：网页服务器、数据库、电子游戏、电子表格、大语言模型训练、图形渲染，以及绝大多数科学计算任务。这并不是一个会随着量子硬件进步而缩小、最终被填平的临时差距。其中许多任务根本没有任何量子算法能提供优势，因为其底层数学结构中不存在可利用的量子结构。",{"type":21,"tag":22,"props":3132,"children":3133},{},[3134,3136,3140,3142,3146,3148,3154],{"type":31,"value":3135},"在一小部分问题上，量子计算机展现出真实且经过数学证明的加速：大整数分解（",{"type":21,"tag":26,"props":3137,"children":3138},{"href":1237},[3139],{"type":31,"value":1240},{"type":31,"value":3141},"）、非结构化搜索（",{"type":21,"tag":26,"props":3143,"children":3144},{"href":1229},[3145],{"type":31,"value":1232},{"type":31,"value":3147},"），以及对其他量子系统的模拟——而这恰恰正是经典计算机力不从心的物理与化学计算，因为大自然本身就是按照量子力学规则运行的。优化和机器学习是活跃的研究领域，已经提出了不少量子算法（QAOA、VQE、振幅估计），但截至 2026 年，这些算法在实际问题规模上都还没有被证明具有确定优势。我们的",{"type":21,"tag":26,"props":3149,"children":3151},{"href":3150},"\u002Fblog\u002Fquantum-machine-learning-reality-check",[3152],{"type":31,"value":3153},"量子机器学习现实检验",{"type":31,"value":3155},"一文针对一个具体案例，更详细地讨论了这一差距。",{"type":21,"tag":41,"props":3157,"children":3159},{"id":3158},"并排对比",[3160],{"type":31,"value":3158},{"type":21,"tag":3162,"props":3163,"children":3164},"table",{},[3165,3187],{"type":21,"tag":3166,"props":3167,"children":3168},"thead",{},[3169],{"type":21,"tag":3170,"props":3171,"children":3172},"tr",{},[3173,3177,3182],{"type":21,"tag":3174,"props":3175,"children":3176},"th",{},[],{"type":21,"tag":3174,"props":3178,"children":3179},{},[3180],{"type":31,"value":3181},"经典",{"type":21,"tag":3174,"props":3183,"children":3184},{},[3185],{"type":31,"value":3186},"量子",{"type":21,"tag":3188,"props":3189,"children":3190},"tbody",{},[3191,3214,3232,3250,3268,3286],{"type":21,"tag":3170,"props":3192,"children":3193},{},[3194,3200,3205],{"type":21,"tag":3195,"props":3196,"children":3197},"td",{},[3198],{"type":31,"value":3199},"基本单元",{"type":21,"tag":3195,"props":3201,"children":3202},{},[3203],{"type":31,"value":3204},"比特（0 或 1）",{"type":21,"tag":3195,"props":3206,"children":3207},{},[3208,3212],{"type":21,"tag":26,"props":3209,"children":3210},{"href":3064},[3211],{"type":31,"value":3067},{"type":31,"value":3213},"（0 和 1 的叠加态）",{"type":21,"tag":3170,"props":3215,"children":3216},{},[3217,3222,3227],{"type":21,"tag":3195,"props":3218,"children":3219},{},[3220],{"type":31,"value":3221},"执行方式",{"type":21,"tag":3195,"props":3223,"children":3224},{},[3225],{"type":31,"value":3226},"确定性",{"type":21,"tag":3195,"props":3228,"children":3229},{},[3230],{"type":31,"value":3231},"概率性，需要大量 shot",{"type":21,"tag":3170,"props":3233,"children":3234},{},[3235,3240,3245],{"type":21,"tag":3195,"props":3236,"children":3237},{},[3238],{"type":31,"value":3239},"当前错误率",{"type":21,"tag":3195,"props":3241,"children":3242},{},[3243],{"type":31,"value":3244},"几乎为零（内置的经典纠错技术已经成熟）",{"type":21,"tag":3195,"props":3246,"children":3247},{},[3248],{"type":31,"value":3249},"在当前硬件上每个门约 0.1%-1%",{"type":21,"tag":3170,"props":3251,"children":3252},{},[3253,3258,3263],{"type":21,"tag":3195,"props":3254,"children":3255},{},[3256],{"type":31,"value":3257},"物理运行条件",{"type":21,"tag":3195,"props":3259,"children":3260},{},[3261],{"type":31,"value":3262},"室温",{"type":21,"tag":3195,"props":3264,"children":3265},{},[3266],{"type":31,"value":3267},"接近绝对零度（超导）或激光控制的真空环境（离子阱）",{"type":21,"tag":3170,"props":3269,"children":3270},{},[3271,3276,3281],{"type":21,"tag":3195,"props":3272,"children":3273},{},[3274],{"type":31,"value":3275},"已证明的加速",{"type":21,"tag":3195,"props":3277,"children":3278},{},[3279],{"type":31,"value":3280},"不适用，作为基准线",{"type":21,"tag":3195,"props":3282,"children":3283},{},[3284],{"type":31,"value":3285},"分解、非结构化搜索、量子模拟",{"type":21,"tag":3170,"props":3287,"children":3288},{},[3289,3294,3299],{"type":21,"tag":3195,"props":3290,"children":3291},{},[3292],{"type":31,"value":3293},"今天在哪里体验",{"type":21,"tag":3195,"props":3295,"children":3296},{},[3297],{"type":31,"value":3298},"任意设备",{"type":21,"tag":3195,"props":3300,"children":3301},{},[3302,3308,3310],{"type":21,"tag":26,"props":3303,"children":3305},{"href":3304},"\u002Fsimulators",[3306],{"type":31,"value":3307},"免费模拟器",{"type":31,"value":3309},"或",{"type":21,"tag":26,"props":3311,"children":3312},{"href":1106},[3313],{"type":31,"value":3314},"免费云端 QPU 访问",{"type":21,"tag":41,"props":3316,"children":3318},{"id":3317},"加速器这个类比",[3319],{"type":31,"value":3320},"\"加速器\"这个类比",{"type":21,"tag":22,"props":3322,"children":3323},{},[3324,3326,3332],{"type":31,"value":3325},"一个经得起推敲的类比是：QPU 相当于一种针对特定问题类别的专用加速器，就像 GPU 加速矩阵乘法运算，却并不会取代运行程序其余部分的 CPU 一样。像 VQE 和 QAOA 这样的",{"type":21,"tag":26,"props":3327,"children":3329},{"href":3328},"\u002Fglossary\u002Fhybrid-algorithm",[3330],{"type":31,"value":3331},"混合算法",{"type":31,"value":3333},"把这一点表现得很明确：经典优化器负责执行外层循环，只有在需要处理量子硬件擅长的那部分具体子计算时，才会调用 QPU。没有人打算用量子硬件去处理数据库查询、网页服务器，或者支撑这一切运行的操作系统。",{"type":21,"tag":41,"props":3335,"children":3336},{"id":1114},[3337],{"type":31,"value":1114},{"type":21,"tag":1118,"props":3339,"children":3340},{},[3341,3352,3381],{"type":21,"tag":71,"props":3342,"children":3343},{},[3344,3350],{"type":21,"tag":26,"props":3345,"children":3347},{"href":3346},"\u002Fblog\u002Fgetting-started-free-quantum-computing",[3348],{"type":31,"value":3349},"免费入门量子计算",{"type":31,"value":3351},"：挑选一个模拟器或免费 QPU，运行你的第一个电路",{"type":21,"tag":71,"props":3353,"children":3354},{},[3355,3359,3360,3364,3365,3369,3370,3374,3375],{"type":21,"tag":26,"props":3356,"children":3357},{"href":1148},[3358],{"type":31,"value":1151},{"type":31,"value":1153},{"type":21,"tag":26,"props":3361,"children":3362},{"href":3083},[3363],{"type":31,"value":3086},{"type":31,"value":1161},{"type":21,"tag":26,"props":3366,"children":3367},{"href":1156},[3368],{"type":31,"value":1159},{"type":31,"value":1161},{"type":21,"tag":26,"props":3371,"children":3372},{"href":2052},[3373],{"type":31,"value":2055},{"type":31,"value":1161},{"type":21,"tag":26,"props":3376,"children":3378},{"href":3377},"\u002Fglossary\u002Fquantum-supremacy",[3379],{"type":31,"value":3380},"量子霸权",{"type":21,"tag":71,"props":3382,"children":3383},{},[3384,3390],{"type":21,"tag":26,"props":3385,"children":3387},{"href":3386},"\u002Fblog\u002Fquantum-simulators-compared",[3388],{"type":31,"value":3389},"量子模拟器对比",{"type":31,"value":3391},"：先用经典硬件免费体验量子电路的方式",{"title":7,"searchDepth":167,"depth":167,"links":3393},[3394,3395,3396,3397,3398,3399],{"id":3072,"depth":167,"text":3075},{"id":3104,"depth":167,"text":3107},{"id":3123,"depth":167,"text":3123},{"id":3158,"depth":167,"text":3158},{"id":3317,"depth":167,"text":3320},{"id":1114,"depth":167,"text":1114},"content:zh:blog:quantum-vs-classical-computing.md","zh\u002Fblog\u002Fquantum-vs-classical-computing.md","zh\u002Fblog\u002Fquantum-vs-classical-computing",{"_path":3404,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":3405,"description":3406,"date":3407,"author":11,"tags":3408,"readingTime":225,"body":3410,"_type":1193,"_id":3489,"_source":1195,"_file":3490,"_stem":3491,"_extension":1198},"\u002Fblog\u002Fcuba-qcol-open-quantum-platform","A One-Person Team in Cuba Built a Browser-Based Quantum Coding Platform","Franci Laffita Camargo's Quantum Computing Open Lab (QCOL) is a browser-based circuit composer and notebook environment meant to work across multiple quantum SDKs, built to remove the setup barrier this site's own getting-started guide already walks through by hand.","2026-08-11",[3054,3409],"Industry",{"type":18,"children":3411,"toc":3483},[3412,3417,3423,3428,3434,3446,3452,3472,3478],{"type":21,"tag":22,"props":3413,"children":3414},{},[3415],{"type":31,"value":3416},"Franci Laffita Camargo, working from Cuba, built the Quantum Computing Open Lab (QCOL), a browser-based platform meant to remove the setup friction of getting started with quantum programming: no local install, no picking one SDK and living with its own specific syntax. The project is now assembling an international development team and pursuing US incorporation. QCOL is a working prototype, not a concept pitch, though the underlying announcement provides no repository link or hardware benchmark to independently examine against.",{"type":21,"tag":41,"props":3418,"children":3420},{"id":3419},"whats-in-the-browser",[3421],{"type":31,"value":3422},"What's in the browser",{"type":21,"tag":22,"props":3424,"children":3425},{},[3426],{"type":31,"value":3427},"QCOL combines a visual, drag-and-drop circuit composer with a code editor updating in both directions: change the diagram, the code updates, and the reverse. Alongside this sits a \"Quantum Notebook,\" pairing instructional material with a live experimental environment, similar in spirit to a Jupyter notebook but purpose-built for quantum circuits. The platform aims to sit as a supplier-agnostic layer across multiple quantum programming frameworks rather than committing to one, plus simplified \"Quantum Apps\" aimed at people who aren't trying to learn circuit-level programming at all. The announcement names no specific frameworks or hardware backends QCOL currently supports.",{"type":21,"tag":41,"props":3429,"children":3431},{"id":3430},"the-challenge-qcol-targets",[3432],{"type":31,"value":3433},"The challenge QCOL targets",{"type":21,"tag":22,"props":3435,"children":3436},{},[3437,3439,3444],{"type":31,"value":3438},"Camargo's framing is direct: \"We don't know who will have the subsequent great idea, but we want that person, wherever they are, whatever resources they have, to be able to try.\" This is a specific complaint about the on-ramp, not the ceiling. Our own ",{"type":21,"tag":26,"props":3440,"children":3441},{"href":3346},[3442],{"type":31,"value":3443},"guide to getting started with free quantum computing",{"type":31,"value":3445}," already walks through what this friction looks like in practice: picking a platform, installing a Python environment, learning one SDK's particular API before writing a first circuit. QCOL's bet is this: collapsing setup into a single browser tab, with AI help for building algorithms, gets more people past this first hurdle, particularly people without reliable access to the hardware or bandwidth a typical quantum-dev setup assumes.",{"type":21,"tag":41,"props":3447,"children":3449},{"id":3448},"early-stage-worth-naming-honestly",[3450],{"type":31,"value":3451},"Early stage, worth naming honestly",{"type":21,"tag":22,"props":3453,"children":3454},{},[3455,3457,3463,3465,3470],{"type":31,"value":3456},"QCOL is participating in QWorld's QIntern 2026 program and describes \"a publicly accessible prototype,\" but the announcement includes no GitHub or GitLab link, no user count, and no comparison against existing browser-based tools like ",{"type":21,"tag":26,"props":3458,"children":3460},{"href":3459},"\u002Ftools",[3461],{"type":31,"value":3462},"IBM's Quantum Composer",{"type":31,"value":3464}," or other visual circuit editors already covered on this site's ",{"type":21,"tag":26,"props":3466,"children":3467},{"href":3459},[3468],{"type":31,"value":3469},"developer tools page",{"type":31,"value":3471},". This is an early-stage project profile, not a red flag on its own. A solo founder building toward an international team and formal incorporation is a normal trajectory, but trying the actual prototype matters more than taking the framing at face value.",{"type":21,"tag":41,"props":3473,"children":3475},{"id":3474},"what-to-watch-next",[3476],{"type":31,"value":3477},"What to watch next",{"type":21,"tag":22,"props":3479,"children":3480},{},[3481],{"type":31,"value":3482},"Whether QCOL publishes the prototype link publicly, names which SDKs and simulators the platform wraps, and whether the QWorld QIntern 2026 cohort produces a broader contributor base than the founding team. A vendor-agnostic browser tool solving real onboarding friction is a genuinely useful category, provided QCOL delivers. Right now QCOL is a described prototype with real intent behind the pitch, and not yet enough public detail to evaluate the technical claims directly.",{"title":7,"searchDepth":167,"depth":167,"links":3484},[3485,3486,3487,3488],{"id":3419,"depth":167,"text":3422},{"id":3430,"depth":167,"text":3433},{"id":3448,"depth":167,"text":3451},{"id":3474,"depth":167,"text":3477},"content:blog:cuba-qcol-open-quantum-platform.md","blog\u002Fcuba-qcol-open-quantum-platform.md","blog\u002Fcuba-qcol-open-quantum-platform",{"_path":3493,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":3494,"description":3495,"date":3407,"author":11,"tags":3496,"readingTime":225,"body":3498,"_type":1193,"_id":3569,"_source":1195,"_file":3570,"_stem":3571,"_extension":1198},"\u002Fblog\u002Fhonda-quemix-materials-investment","Honda Invests in Quemix, Extending a Year of Joint Quantum Chemistry Work","Honda invested in Quemix through its Xcelerator Ventures program, building on a partnership already producing joint work on quantum state readout and a DFT-acceleration algorithm, aimed at next-generation battery materials.",[3497,3409],"Chemistry",{"type":18,"children":3499,"toc":3563},[3500,3505,3511,3524,3530,3543,3549,3554,3558],{"type":21,"tag":22,"props":3501,"children":3502},{},[3503],{"type":31,"value":3504},"Honda invested in Quemix, a quantum algorithm and software company, through its Honda Xcelerator Ventures open-innovation program. The investment amount wasn't disclosed, and the deal doesn't start cold: the investment formalizes a technical relationship running for over a year.",{"type":21,"tag":41,"props":3506,"children":3508},{"id":3507},"what-the-two-companies-already-built-together",[3509],{"type":31,"value":3510},"What the two companies already built together",{"type":21,"tag":22,"props":3512,"children":3513},{},[3514,3516,3522],{"type":31,"value":3515},"Before this investment, Honda and Quemix had two concrete joint results. Early in 2025, they developed quantum state readout technology together. In June 2026, they built a quantum algorithm accelerating Density Functional Theory (DFT) calculations, the standard computational method for modeling how electrons behave in materials, and the method ",{"type":21,"tag":26,"props":3517,"children":3519},{"href":3518},"\u002Fblog\u002Fquantum-chemistry-protein-scale-2026",[3520],{"type":31,"value":3521},"quantum computing keeps getting proposed as a speedup for",{"type":31,"value":3523},". This sequence, readout technology first, then an application-specific algorithm, reads as a real technical collaboration building toward something rather than a one-off pilot press release.",{"type":21,"tag":41,"props":3525,"children":3527},{"id":3526},"the-target-batteries-in-service-of-a-2050-goal",[3528],{"type":31,"value":3529},"The target: batteries, in service of a 2050 goal",{"type":21,"tag":22,"props":3531,"children":3532},{},[3533,3535,3541],{"type":31,"value":3534},"Quemix's pitch combines quantum computing with AI for materials calculation, and Honda's stated target is next-generation battery materials. Honda Director and Executive Officer Mahito Shikama framed the investment against the company's carbon-neutrality goal: \"Honda will continue to take on the challenge of achieving carbon neutrality by 2050 through a multifaceted approach.\" Battery chemistry is a genuinely hard classical simulation problem, electron correlation effects in candidate materials are expensive to model exactly, which is the same reasoning behind ",{"type":21,"tag":26,"props":3536,"children":3538},{"href":3537},"\u002Fblog\u002Fquantinuum-bmw-multi-year-partnership",[3539],{"type":31,"value":3540},"BMW's multi-year electrochemistry work with Quantinuum",{"type":31,"value":3542}," on fuel cell catalysts. Automakers keep landing on quantum chemistry for materials work specifically because this is one of the few applications where the classical bottleneck is well understood and quantum methods have a real theoretical case behind them, not only a marketing one.",{"type":21,"tag":41,"props":3544,"children":3546},{"id":3545},"whats-confirmed-and-what-isnt",[3547],{"type":31,"value":3548},"What's confirmed and what isn't",{"type":21,"tag":22,"props":3550,"children":3551},{},[3552],{"type":31,"value":3553},"Confirmed: the investment happened, the deal is part of Xcelerator Ventures, and the deal follows two named prior technical results. Not disclosed: the investment amount, equity stake, or any new joint deliverable this specific funding is meant to produce. This last point matters. An investment announcement without a new named target reads as Honda backing a relationship already showing results, rather than funding a promise of future ones.",{"type":21,"tag":41,"props":3555,"children":3556},{"id":3474},[3557],{"type":31,"value":3477},{"type":21,"tag":22,"props":3559,"children":3560},{},[3561],{"type":31,"value":3562},"Whether this produces a third joint result beyond readout technology and the DFT-acceleration algorithm, and whether Honda names a specific battery material or chemistry the collaboration is now targeting. Two real technical outputs in a bit over a year is a reasonable track record for this kind of industry-academic quantum chemistry partnership. The subsequent one is what confirms the investment bought more of the same pace rather than a slowdown once the funding relationship formalized.",{"title":7,"searchDepth":167,"depth":167,"links":3564},[3565,3566,3567,3568],{"id":3507,"depth":167,"text":3510},{"id":3526,"depth":167,"text":3529},{"id":3545,"depth":167,"text":3548},{"id":3474,"depth":167,"text":3477},"content:blog:honda-quemix-materials-investment.md","blog\u002Fhonda-quemix-materials-investment.md","blog\u002Fhonda-quemix-materials-investment",{"_path":3573,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":3574,"description":3575,"date":3407,"author":11,"tags":3576,"readingTime":233,"body":3577,"_type":1193,"_id":3707,"_source":1195,"_file":3708,"_stem":3709,"_extension":1198},"\u002Fblog\u002Fquantinuum-oracle-cloud-infrastructure-partnership","Quantinuum Is Putting a Helios Quantum Computer Inside an Oracle Data Center","Quantinuum and Oracle signed a multi-year partnership to deploy a Helios quantum computer inside a US-based Oracle Cloud Infrastructure AI data center, giving OCI customers access to QPUs alongside the GPUs and classical HPC they already use.",[3409,1213],{"type":18,"children":3578,"toc":3699},[3579,3592,3598,3610,3616,3635,3641,3646,3652,3672,3678,3683,3687],{"type":21,"tag":22,"props":3580,"children":3581},{},[3582,3584,3590],{"type":31,"value":3583},"Quantinuum and Oracle signed a multi-year partnership to deploy a ",{"type":21,"tag":26,"props":3585,"children":3587},{"href":3586},"\u002Fblog\u002Fquantinuum-helios-logical-qubits-2026",[3588],{"type":31,"value":3589},"Helios",{"type":31,"value":3591}," quantum computer inside a US-based Oracle Cloud Infrastructure (OCI) AI data center, accessible to OCI customers as a cloud service once the quantum offering leaves preview. This is a physical hardware placement, not a software integration layer sitting on top of a remote system elsewhere.",{"type":21,"tag":41,"props":3593,"children":3595},{"id":3594},"whats-moving-where",[3596],{"type":31,"value":3597},"What's moving where",{"type":21,"tag":22,"props":3599,"children":3600},{},[3601,3603,3608],{"type":31,"value":3602},"Helios is Quantinuum's third-generation trapped-ion system: 98 physical qubits, 48 demonstrated logical qubits, and a two-qubit gate fidelity of 99.921%, the same system ",{"type":21,"tag":26,"props":3604,"children":3605},{"href":3586},[3606],{"type":31,"value":3607},"covered in detail here",{"type":31,"value":3609}," at launch. Installing Helios inside an OCI data center, rather than keeping the system at a Quantinuum facility and routing cloud traffic there, is the concrete part of this announcement: OCI customers get the QPU sitting in the same data center as the GPUs and classical HPC infrastructure they're already running workloads on, under one governance and access-control layer covering compute, networking, storage, and identity together.",{"type":21,"tag":41,"props":3611,"children":3613},{"id":3612},"why-proximity-matters-for-hybrid-workloads",[3614],{"type":31,"value":3615},"Why proximity matters for hybrid workloads",{"type":21,"tag":22,"props":3617,"children":3618},{},[3619,3621,3627,3629,3633],{"type":31,"value":3620},"Most practical near-term quantum applications are hybrid: a classical optimizer or neural network drives a loop calling out to a QPU repeatedly, the same pattern behind ",{"type":21,"tag":26,"props":3622,"children":3624},{"href":3623},"\u002Fblog\u002Fvqe-pennylane-practical-guide",[3625],{"type":31,"value":3626},"VQE",{"type":31,"value":3628}," and ",{"type":21,"tag":26,"props":3630,"children":3631},{"href":1250},[3632],{"type":31,"value":2048},{"type":31,"value":3634},". Every round trip between classical and quantum hardware costs latency, and this cost compounds when the QPU sits behind a different cloud provider's network entirely. Quantinuum CEO Dr. Rajeeb Hazra framed the deployment around exactly this: \"Deploying Helios inside OCI gives Quantinuum and Oracle an opportunity to create a unique deeply integrated environment.\" Oracle EVP Mahesh Thiagarajan's framing was narrower and more practical: \"we want to give developers a pragmatic and secure way to explore quantum computing,\" positioning this as lowering the barrier to trying quantum hardware at all, not only optimizing latency for teams already committed to the platform.",{"type":21,"tag":41,"props":3636,"children":3638},{"id":3637},"the-power-figure-worth-noting",[3639],{"type":31,"value":3640},"The power figure worth noting",{"type":21,"tag":22,"props":3642,"children":3643},{},[3644],{"type":31,"value":3645},"Quantinuum's own figures put Helios at roughly 60 kW of power draw, against the 16 to 39 MW leading supercomputers consume, well under 1%. This is a real, checkable contrast, and the gap matters specifically for a data-center deployment: a QPU fitting an AI data center's existing power and cooling budget is a much easier operational sell than hardware needing dedicated infrastructure built around the machine.",{"type":21,"tag":41,"props":3647,"children":3649},{"id":3648},"who-this-is-aimed-at",[3650],{"type":31,"value":3651},"Who this is aimed at",{"type":21,"tag":22,"props":3653,"children":3654},{},[3655,3657,3663,3664,3670],{"type":31,"value":3656},"The named target list, enterprise organizations, academic and research institutions, and AI labs, plus named use cases (drug discovery, materials science, financial modeling, large-scale optimization) reads as standard quantum-cloud positioning rather than anything specific to this deal. What's specific is the access path: OCI customers reach Quantinuum hardware through infrastructure and billing relationships they already have, the same competitive logic behind ",{"type":21,"tag":26,"props":3658,"children":3660},{"href":3659},"\u002Fblog\u002Fazure-quantum-qiskit-practical-guide",[3661],{"type":31,"value":3662},"Azure Quantum's multi-vendor access model",{"type":31,"value":3628},{"type":21,"tag":26,"props":3665,"children":3667},{"href":3666},"\u002Fblog\u002Fcommon-braket-errors-and-fixes",[3668],{"type":31,"value":3669},"Amazon Braket",{"type":31,"value":3671},", rather than needing a separate Quantinuum account and a new vendor relationship.",{"type":21,"tag":41,"props":3673,"children":3675},{"id":3674},"whats-confirmed-and-whats-still-ahead",[3676],{"type":31,"value":3677},"What's confirmed and what's still ahead",{"type":21,"tag":22,"props":3679,"children":3680},{},[3681],{"type":31,"value":3682},"Confirmed: the multi-year partnership, the Helios hardware choice, and the US-based data center placement. Not yet confirmed: a specific launch date for the OCI quantum service, currently described only as \"coming months,\" and pricing. This adds Oracle to the list of major cloud providers offering some path to quantum hardware access, alongside Azure, AWS, and Google Cloud, each with different vendor relationships and access models.",{"type":21,"tag":41,"props":3684,"children":3685},{"id":3474},[3686],{"type":31,"value":3477},{"type":21,"tag":22,"props":3688,"children":3689},{},[3690,3692,3697],{"type":31,"value":3691},"The OCI quantum service leaving preview is the concrete milestone to check for next, along with whether Oracle publishes pricing genuinely comparable to Quantinuum's own ",{"type":21,"tag":26,"props":3693,"children":3694},{"href":1106},[3695],{"type":31,"value":3696},"direct cloud access",{"type":31,"value":3698}," or priced as an enterprise-tier OCI add-on. A data-center-proximate QPU is a meaningfully different offering than a remote API call to the same hardware, and whether Oracle prices the service accordingly will say a lot about who this deployment is built for.",{"title":7,"searchDepth":167,"depth":167,"links":3700},[3701,3702,3703,3704,3705,3706],{"id":3594,"depth":167,"text":3597},{"id":3612,"depth":167,"text":3615},{"id":3637,"depth":167,"text":3640},{"id":3648,"depth":167,"text":3651},{"id":3674,"depth":167,"text":3677},{"id":3474,"depth":167,"text":3477},"content:blog:quantinuum-oracle-cloud-infrastructure-partnership.md","blog\u002Fquantinuum-oracle-cloud-infrastructure-partnership.md","blog\u002Fquantinuum-oracle-cloud-infrastructure-partnership",{"_path":3711,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":3712,"description":3713,"date":3407,"author":11,"tags":3714,"readingTime":199,"body":3716,"_type":1193,"_id":3793,"_source":1195,"_file":3794,"_stem":3795,"_extension":1198},"\u002Fblog\u002Fquantinuum-q2-2026-earnings","Quantinuum's First Earnings Report as a Public Company: Q2 2026","Quantinuum reported Q2 2026 revenue of $8 million, up 279% year-over-year, with $2.1 billion in cash and first-ever formal guidance of $28-32 million for full-year 2026, in its debut quarterly report since going public.",[3715,3409],"Company News",{"type":18,"children":3717,"toc":3787},[3718,3731,3737,3742,3748,3753,3759,3778,3782],{"type":21,"tag":22,"props":3719,"children":3720},{},[3721,3723,3729],{"type":31,"value":3722},"Quantinuum reported Q2 2026 revenue of $8 million, up 279% year-over-year from $2 million in Q2 2025, in its first quarterly report since ",{"type":21,"tag":26,"props":3724,"children":3726},{"href":3725},"\u002Fblog\u002Ftop-quantum-computing-companies-2026",[3727],{"type":31,"value":3728},"going public earlier in 2026",{"type":31,"value":3730},". The company issued its first formal full-year guidance as a public company: $28 million to $32 million in revenue for 2026.",{"type":21,"tag":41,"props":3732,"children":3734},{"id":3733},"the-numbers",[3735],{"type":31,"value":3736},"The numbers",{"type":21,"tag":22,"props":3738,"children":3739},{},[3740],{"type":31,"value":3741},"Cash and short-term investments stood at $2.1 billion as of June 30, 2026. GAAP net loss for the quarter was $597 million, driven largely by R&D spending of $367.3 million, alongside $151.9 million in general and administrative expenses and $29.3 million in sales and marketing. Adjusted EBITDA loss came in at $68 million, a narrower figure stripping out the non-cash and one-time items behind the much larger GAAP number, and the more relevant figure for judging underlying operating trend.",{"type":21,"tag":41,"props":3743,"children":3745},{"id":3744},"why-the-gaap-loss-looks-so-large",[3746],{"type":31,"value":3747},"Why the GAAP loss looks so large",{"type":21,"tag":22,"props":3749,"children":3750},{},[3751],{"type":31,"value":3752},"A $597 million GAAP net loss against $8 million in quarterly revenue is a real number, not a typo, but reading this as \"Quantinuum burned $597 million in cash this quarter\" would be wrong. Newly public companies routinely post large GAAP losses in the quarters around an IPO from non-cash items like stock-based compensation and equity-award revaluations tied to the listing itself, which is exactly why the $68 million adjusted EBITDA loss figure exists alongside the GAAP number. The $2.1 billion cash position is the figure showing whether the company keeps operating at this spending level, not the GAAP loss line.",{"type":21,"tag":41,"props":3754,"children":3756},{"id":3755},"what-else-came-with-the-report",[3757],{"type":31,"value":3758},"What else came with the report",{"type":21,"tag":22,"props":3760,"children":3761},{},[3762,3764,3769,3771,3776],{"type":31,"value":3763},"Quantinuum said the company demonstrated \"near five-nines logical fidelity\" on Helios using a novel error-correcting code family, a claim worth tracking for independent confirmation the same way ",{"type":21,"tag":26,"props":3765,"children":3766},{"href":3586},[3767],{"type":31,"value":3768},"Helios's original 48-logical-qubit result",{"type":31,"value":3770}," was vendor-reported before scrutiny. The earnings release also carried the ",{"type":21,"tag":26,"props":3772,"children":3773},{"href":3573},[3774],{"type":31,"value":3775},"Oracle Cloud Infrastructure partnership",{"type":31,"value":3777}," announced the same day, plus a framework collaboration with HPE on quantum-HPC-AI integration and a joint development agreement with an unnamed electronics manufacturer on manufacturing infrastructure. CEO Rajeeb Hazra described \"accelerating commercial momentum for the business,\" pointing to the \"over $2 billion in cash\" as room to keep investing \"while maintaining disciplined capital allocation.\"",{"type":21,"tag":41,"props":3779,"children":3780},{"id":3474},[3781],{"type":31,"value":3477},{"type":21,"tag":22,"props":3783,"children":3784},{},[3785],{"type":31,"value":3786},"Whether Quantinuum's next quarterly report shows revenue tracking toward the low or high end of the $28-32 million full-year guidance range, and whether the adjusted EBITDA loss narrows or widens as R&D spending continues at this pace. The 279% year-over-year growth rate is real, but this is also growth off a minor base, the same caution worth applying to any early-stage hardware company's first few public quarterly comparisons.",{"title":7,"searchDepth":167,"depth":167,"links":3788},[3789,3790,3791,3792],{"id":3733,"depth":167,"text":3736},{"id":3744,"depth":167,"text":3747},{"id":3755,"depth":167,"text":3758},{"id":3474,"depth":167,"text":3477},"content:blog:quantinuum-q2-2026-earnings.md","blog\u002Fquantinuum-q2-2026-earnings.md","blog\u002Fquantinuum-q2-2026-earnings",{"_path":3797,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":3798,"description":3799,"date":3407,"author":11,"tags":3800,"readingTime":199,"body":3801,"_type":1193,"_id":3854,"_source":1195,"_file":3855,"_stem":3856,"_extension":1198},"\u002Fblog\u002Fquantum-computing-inc-q2-2026-earnings","Quantum Computing Inc. Q2 2026: Revenue Up 50% Sequentially, $73.1M NHanced Acquisition","QCi reported Q2 2026 revenue of $5.55 million, up 50.4% sequentially, with $954 million in cash and short-term investments and a $73.1 million acquisition of NHanced Semiconductors to build a second fabrication facility.",[3715,3409],{"type":18,"children":3802,"toc":3848},[3803,3808,3812,3817,3823,3828,3834,3839,3843],{"type":21,"tag":22,"props":3804,"children":3805},{},[3806],{"type":31,"value":3807},"Quantum Computing Inc. (QUBT) reported Q2 2026 revenue of $5.55 million, up 50.4% sequentially from Q1 and up 8,998.4% year-over-year. Cash and short-term investments stood at $954.17 million, with total capital reserves including long-term investments at $1.32 billion.",{"type":21,"tag":41,"props":3809,"children":3810},{"id":3733},[3811],{"type":31,"value":3736},{"type":21,"tag":22,"props":3813,"children":3814},{},[3815],{"type":31,"value":3816},"Operating expenses rose to $21.85 million, up 114% year-over-year. Net loss was $11.75 million, an improvement from a $36.48 million loss in the same quarter last year. Contract backlog stands at $42.5 million. QCi has completed three acquisitions in 2026, deploying roughly $180 million in the process.",{"type":21,"tag":41,"props":3818,"children":3820},{"id":3819},"the-nhanced-acquisition",[3821],{"type":31,"value":3822},"The NHanced acquisition",{"type":21,"tag":22,"props":3824,"children":3825},{},[3826],{"type":31,"value":3827},"QCi acquired NHanced Semiconductors for $73.1 million. NHanced provides 3D semiconductor packaging and nanophotonic integration capabilities, and QCi is folding the acquisition in specifically to accelerate the launch of a second fabrication facility, Fab 2. This complements the firm's existing Arizona-based Fab 1, which focuses on thin-film lithium niobate chip production. Together, QCi describes the combination as building \"full-stack, U.S.-based quantum photonics foundry infrastructure,\" supplier language worth reading as a statement of intent rather than a claim about current manufacturing scale.",{"type":21,"tag":41,"props":3829,"children":3831},{"id":3830},"reading-the-numbers-plainly",[3832],{"type":31,"value":3833},"Reading the numbers plainly",{"type":21,"tag":22,"props":3835,"children":3836},{},[3837],{"type":31,"value":3838},"Revenue growing 50% quarter over quarter and a shrinking net loss are real, positive directional signals. The year-over-year revenue figure (nearly 9,000%) reflects growth off a tiny prior-year base, the kind of percentage looking dramatic mostly because the starting figure was small, not evidence of a firm suddenly operating at a different scale. The cash position, over $950 million against a $73 million acquisition and roughly $180 million deployed across three 2026 acquisitions, gives QCi real runway to keep building fabrication capacity without an immediate funding need, a factor mattering more for a hardware-manufacturing bet like this than a single quarter's revenue figure.",{"type":21,"tag":41,"props":3840,"children":3841},{"id":3474},[3842],{"type":31,"value":3477},{"type":21,"tag":22,"props":3844,"children":3845},{},[3846],{"type":31,"value":3847},"Whether Fab 2 reaches operational status on a stated timeline, and whether QCi's next quarterly filing shows contract backlog converting into recognized revenue at a pace keeping up with the operating expense growth.",{"title":7,"searchDepth":167,"depth":167,"links":3849},[3850,3851,3852,3853],{"id":3733,"depth":167,"text":3736},{"id":3819,"depth":167,"text":3822},{"id":3830,"depth":167,"text":3833},{"id":3474,"depth":167,"text":3477},"content:blog:quantum-computing-inc-q2-2026-earnings.md","blog\u002Fquantum-computing-inc-q2-2026-earnings.md","blog\u002Fquantum-computing-inc-q2-2026-earnings",{"_path":3858,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":3859,"description":3860,"date":3407,"author":11,"tags":3861,"readingTime":233,"body":3865,"_type":1193,"_id":3935,"_source":1195,"_file":3936,"_stem":3937,"_extension":1198},"\u002Fblog\u002Fqusecure-carahsoft-gsa-schedule","QuSecure Makes Post-Quantum Crypto Easier for Federal Agencies to Buy","QuSecure added its QuProtect R3 post-quantum cryptography platform to Carahsoft's GSA Schedule, removing a real procurement barrier for federal agencies facing December 2030 and 2031 migration deadlines under Executive Order 14412.",[3862,3863,3864],"Post-Quantum","Security","Cryptography",{"type":18,"children":3866,"toc":3929},[3867,3872,3878,3883,3889,3902,3908,3913,3917],{"type":21,"tag":22,"props":3868,"children":3869},{},[3870],{"type":31,"value":3871},"QuSecure added its QuProtect R3 platform to Carahsoft's GSA Schedule (No. 47QSWA18D008F), alongside SEWP V, ITES-SW2, NASPO ValuePoint, and OMNIA Partners contract vehicles. This is a procurement story, not a technology announcement, and procurement is exactly the kind of unglamorous step deciding whether a post-quantum cryptography mandate gets implemented on schedule or stalls in federal purchasing paperwork.",{"type":21,"tag":41,"props":3873,"children":3875},{"id":3874},"what-quprotect-r3-does",[3876],{"type":31,"value":3877},"What QuProtect R3 does",{"type":21,"tag":22,"props":3879,"children":3880},{},[3881],{"type":31,"value":3882},"The platform has three integrated pieces. A \"recon module\" performs cryptographic discovery, maintaining a live inventory of what encryption is running across an agency's cloud, on-premises, and legacy systems, a real prerequisite most PQC discussions skip past: upgrading cryptography an agency hasn't inventoried isn't possible. Active remediation then lets agencies upgrade to quantum-resistant algorithms in place, without downtime, code changes, or ripping out existing infrastructure. Real-time reporting generates compliance outputs automatically, including Cryptographic Bills of Materials aligned to federal standards, the kind of audit trail an agency needs to demonstrate migration progress rather than only claim progress.",{"type":21,"tag":41,"props":3884,"children":3886},{"id":3885},"why-a-gsa-schedule-listing-is-the-actual-news",[3887],{"type":31,"value":3888},"Why a GSA Schedule listing is the actual news",{"type":21,"tag":22,"props":3890,"children":3891},{},[3892,3894,3900],{"type":31,"value":3893},"Federal agencies generally aren't able to buy software directly from a vendor. They buy through pre-negotiated contract vehicles already cleared through legal, security, and pricing review, and getting listed on one is a slow, deliberate process, not a rubber stamp. QuSecure SVP Garfield Jones put the practical effect plainly: the listing gives agencies \"a faster path to deploy QuProtect R3 through a vehicle they already know and trust.\" Our ",{"type":21,"tag":26,"props":3895,"children":3897},{"href":3896},"\u002Fblog\u002Fpost-quantum-cryptography-guide",[3898],{"type":31,"value":3899},"post-quantum cryptography guide",{"type":31,"value":3901}," covers the migration timeline federal agencies are working against. This is what clearing one of the practical obstacles on this timeline looks like, not another restatement of the deadline itself.",{"type":21,"tag":41,"props":3903,"children":3905},{"id":3904},"the-deadlines-this-is-racing",[3906],{"type":31,"value":3907},"The deadlines this is racing",{"type":21,"tag":22,"props":3909,"children":3910},{},[3911],{"type":31,"value":3912},"Federal guidance under Executive Order 14412 sets December 31, 2030, for key-establishment upgrades and December 31, 2031, for digital-signature upgrades on high-value federal systems. These dates are now close enough for procurement friction, not only technical readiness, to pose a real risk to hitting them. A platform ready technically but stuck outside an approved contract vehicle doesn't help an agency restricted to buying through one.",{"type":21,"tag":41,"props":3914,"children":3915},{"id":3474},[3916],{"type":31,"value":3477},{"type":21,"tag":22,"props":3918,"children":3919},{},[3920,3922,3927],{"type":31,"value":3921},"Whether other PQC vendors follow with their own GSA Schedule or SEWP-style listings, since procurement access is quickly becoming as material to real-world PQC adoption speed as the cryptography itself. Worth checking back against the ",{"type":21,"tag":26,"props":3923,"children":3924},{"href":3896},[3925],{"type":31,"value":3926},"migration timeline breakdown",{"type":31,"value":3928}," as 2030 gets closer, specifically whether agencies report real deployments through vehicles like this one rather than only stated migration intent.",{"title":7,"searchDepth":167,"depth":167,"links":3930},[3931,3932,3933,3934],{"id":3874,"depth":167,"text":3877},{"id":3885,"depth":167,"text":3888},{"id":3904,"depth":167,"text":3907},{"id":3474,"depth":167,"text":3477},"content:blog:qusecure-carahsoft-gsa-schedule.md","blog\u002Fqusecure-carahsoft-gsa-schedule.md","blog\u002Fqusecure-carahsoft-gsa-schedule",{"_path":3939,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":3940,"description":3941,"date":3942,"author":11,"tags":3943,"readingTime":233,"body":3944,"_type":1193,"_id":4040,"_source":1195,"_file":4041,"_stem":4042,"_extension":1198},"\u002Fblog\u002Fcloudflare-fedramp-high-quantum-safe","Cloudflare's Government Platform Cleared the Bar for Handling Classified-Adjacent Data","Cloudflare for Government achieved FedRAMP High authorization, the tier for data where a breach carries severe or catastrophic consequences, with post-quantum cryptography protecting data in transit across the platform's US-based infrastructure.","2026-08-10",[3863,3862,3864],{"type":18,"children":3945,"toc":4033},[3946,3951,3957,3962,3968,3995,4001,4006,4012,4024,4028],{"type":21,"tag":22,"props":3947,"children":3948},{},[3949],{"type":31,"value":3950},"Cloudflare for Government achieved FedRAMP High authorization alongside GovRAMP Moderate authorization, clearing federal agencies to use the platform for data where a breach carries \"severe or catastrophic\" consequences, the government's own top risk tier below classified systems. The platform processes that data within US boundaries across 15 metro areas, and Cloudflare has already confirmed it intends to pursue Department of Defense Impact Level 4 (IL4) authorization next.",{"type":21,"tag":41,"props":3952,"children":3954},{"id":3953},"what-fedramp-high-gates",[3955],{"type":31,"value":3956},"What FedRAMP High gates",{"type":21,"tag":22,"props":3958,"children":3959},{},[3960],{"type":31,"value":3961},"FedRAMP authorization comes in tiers (Low, Moderate, High) that determine what category of federal data a cloud service is cleared to handle, and High is the tier reserved for the most sensitive unclassified data: financial systems, critical infrastructure, and national security-adjacent information. Getting there isn't a marketing assertion a company self-certifies. It requires an independent, government-recognized assessment against a specific control baseline, which is why a High authorization is a meaningfully different milestone than a company simply stating its platform is \"secure.\"",{"type":21,"tag":41,"props":3963,"children":3965},{"id":3964},"the-post-quantum-piece-specifically",[3966],{"type":31,"value":3967},"The post-quantum piece specifically",{"type":21,"tag":22,"props":3969,"children":3970},{},[3971,3973,3978,3980,3986,3988,3993],{"type":31,"value":3972},"Cloudflare's authorized platform includes ",{"type":21,"tag":26,"props":3974,"children":3975},{"href":3896},[3976],{"type":31,"value":3977},"post-quantum cryptography",{"type":31,"value":3979}," protecting data in transit, consistent with Cloudflare's existing production support for ",{"type":21,"tag":103,"props":3981,"children":3983},{"className":3982},[],[3984],{"type":31,"value":3985},"X25519Kyber768",{"type":31,"value":3987}," hybrid key exchange, already covered in ",{"type":21,"tag":26,"props":3989,"children":3990},{"href":3896},[3991],{"type":31,"value":3992},"this site's PQC migration guide",{"type":31,"value":3994},". What FedRAMP High adds isn't new cryptography. It's a government-recognized authorization that the platform carrying that cryptography meets the control requirements needed for the most sensitive class of federal data, at a scale where a real number of agencies already depend on the underlying service.",{"type":21,"tag":41,"props":3996,"children":3998},{"id":3997},"the-customer-base-is-already-large",[3999],{"type":31,"value":4000},"The customer base is already large",{"type":21,"tag":22,"props":4002,"children":4003},{},[4004],{"type":31,"value":4005},"Cloudflare reports that over 100 US government agencies currently use its services, naming the Departments of Commerce, Energy, Health and Human Services, Homeland Security, Interior, Justice, and State specifically, plus partner cloud platforms (Workday, New Relic, Armis Federal, Darktrace Federal, GitLab) that rely on Cloudflare for Government underneath their own federal offerings. FedRAMP High authorization means that existing, already-large customer base is now able to move more sensitive workloads onto the platform than the previous authorization tier allowed, not that this creates a customer relationship from scratch.",{"type":21,"tag":41,"props":4007,"children":4009},{"id":4008},"why-this-matters-beyond-one-companys-compliance-milestone",[4010],{"type":31,"value":4011},"Why this matters beyond one company's compliance milestone",{"type":21,"tag":22,"props":4013,"children":4014},{},[4015,4017,4022],{"type":31,"value":4016},"Entry-quantum migration in government has mostly been discussed in terms of mandates and timelines, covered in our ",{"type":21,"tag":26,"props":4018,"children":4019},{"href":3896},[4020],{"type":31,"value":4021},"PQC guide's own migration-timeline breakdown",{"type":31,"value":4023},". A FedRAMP High authorization for a platform that already carries hybrid post-quantum key exchange in production is a concrete instance of what \"meeting the mandate\" looks like operationally for a specific vendor, at a particular compliance tier, rather than another entry in the list of organizations that have merely announced intent to migrate.",{"type":21,"tag":41,"props":4025,"children":4026},{"id":3474},[4027],{"type":31,"value":3477},{"type":21,"tag":22,"props":4029,"children":4030},{},[4031],{"type":31,"value":4032},"The Department of Defense IL4 authorization Cloudflare says it's pursuing subsequent is the number worth tracking, since IL4 covers a further step up in data sensitivity than FedRAMP High and would extend the same post-quantum-protected infrastructure into defense-certain workloads rather than general federal civilian agencies.",{"title":7,"searchDepth":167,"depth":167,"links":4034},[4035,4036,4037,4038,4039],{"id":3953,"depth":167,"text":3956},{"id":3964,"depth":167,"text":3967},{"id":3997,"depth":167,"text":4000},{"id":4008,"depth":167,"text":4011},{"id":3474,"depth":167,"text":3477},"content:blog:cloudflare-fedramp-high-quantum-safe.md","blog\u002Fcloudflare-fedramp-high-quantum-safe.md","blog\u002Fcloudflare-fedramp-high-quantum-safe",{"_path":4044,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":4045,"description":4046,"date":3942,"author":11,"tags":4047,"readingTime":233,"body":4048,"_type":1193,"_id":4128,"_source":1195,"_file":4129,"_stem":4130,"_extension":1198},"\u002Fblog\u002Fpasqal-photonic-chip-optical-tweezers","Pasqal Moved Its Optical Tweezers Onto a Photonic Chip","Pasqal trapped four rubidium atoms using laser light generated entirely by a photonic integrated circuit, shrinking the optical bench that normally controls neutral-atom qubits by up to 50 times, with atom lifetimes matching existing bulk-optics systems.",[1213,3409],{"type":18,"children":4049,"toc":4121},[4050,4055,4061,4071,4077,4082,4088,4101,4107,4112,4116],{"type":21,"tag":22,"props":4051,"children":4052},{},[4053],{"type":31,"value":4054},"Pasqal demonstrated trapping individual atoms using laser light generated entirely by a photonic integrated circuit (PIC) rather than a free-space optical bench, a result the company describes as a first for neutral-atom quantum computing. The chip generated four optical traps and held four rubidium atoms, with atom lifetimes around 27.5 seconds, matching what existing bulk-optics setups achieve.",{"type":21,"tag":41,"props":4056,"children":4058},{"id":4057},"what-moved-onto-the-chip",[4059],{"type":31,"value":4060},"What moved onto the chip",{"type":21,"tag":22,"props":4062,"children":4063},{},[4064,4069],{"type":21,"tag":26,"props":4065,"children":4066},{"href":3064},[4067],{"type":31,"value":4068},"Neutral-atom",{"type":31,"value":4070}," quantum computers trap individual atoms using tightly focused laser beams, optical tweezers, that today are generated by tables of lenses, mirrors, and modulators occupying real lab space. Pasqal's result replaces that free-space optical setup, at least for the trap-generation step, with a photonic integrated circuit: a chip that routes and shapes the laser light on-die instead of across a bench. The company reports this shrinks the optical footprint by as much as 50 times, a real infrastructure assertion rather than a qubit-count or fidelity claim, and it's infrastructure that matters directly for how many atoms a system fits in a given amount of lab or data center space.",{"type":21,"tag":41,"props":4072,"children":4074},{"id":4073},"built-on-an-18-month-old-acquisition",[4075],{"type":31,"value":4076},"Built on an 18-month-old acquisition",{"type":21,"tag":22,"props":4078,"children":4079},{},[4080],{"type":31,"value":4081},"The chip was co-developed with Aeponyx, a silicon-nitride photonics specialist Pasqal acquired roughly 18 months before this result. That timeline is worth noting on its own: taking an acquired photonics team from acquisition to a working four-atom demonstration in a year and a half is a real execution data point, separate from whether the underlying approach scales.",{"type":21,"tag":41,"props":4083,"children":4085},{"id":4084},"four-atoms-is-a-proof-of-mechanism-not-a-system",[4086],{"type":31,"value":4087},"Four atoms is a proof of mechanism, not a system",{"type":21,"tag":22,"props":4089,"children":4090},{},[4091,4093,4099],{"type":31,"value":4092},"Four trapped atoms is nowhere near Pasqal's own stated roadmap, ",{"type":21,"tag":26,"props":4094,"children":4096},{"href":4095},"\u002Fblog\u002Flogical-qubits-fault-tolerance-explained",[4097],{"type":31,"value":4098},"more than 10,000 atoms and 100 logical qubits",{"type":31,"value":4100}," for a fault-tolerant processor. What this outcome establishes is that the mechanism, generating usable optical traps from an integrated photonic chip instead of bulk optics, works at all, with atom lifetimes that don't degrade relative to the free-space approach. That's the necessary first checkpoint before the real question, whether the approach scales to thousands of traps on a single chip, becomes answerable.",{"type":21,"tag":41,"props":4102,"children":4104},{"id":4103},"why-the-footprint-claim-matters-more-than-it-sounds",[4105],{"type":31,"value":4106},"Why the footprint claim matters more than it sounds",{"type":21,"tag":22,"props":4108,"children":4109},{},[4110],{"type":31,"value":4111},"A smaller optical footprint isn't only a lab-space convenience. Every additional atom a neutral-atom system controls needs its own trap-generation and addressing optics, and if that optics scales with a bulky free-space bench per functional unit, the physical size of the system becomes a real ceiling on how many atoms fit into a practical footprint, separate from any qubit-count or coherence limit. Moving trap generation onto a chip is a bet that the same integration playbook silicon photonics has used elsewhere (routing light through waveguides instead of open space) applies to the specific, precision-sensitive job of generating stable atom traps, and this result is the first concrete evidence that bet produces atoms behaving the same as the bulk-optics baseline.",{"type":21,"tag":41,"props":4113,"children":4114},{"id":3474},[4115],{"type":31,"value":3477},{"type":21,"tag":22,"props":4117,"children":4118},{},[4119],{"type":31,"value":4120},"The number worth tracking isn't four. It's how many optical traps Pasqal (or Aeponyx's technology inside Pasqal) generates from a single chip next, and whether atom lifetime and trap stability hold up as that count grows. A jump from four to a few dozen traps on one chip, with lifetimes still matching bulk optics, would be the real signal this approach scales rather than working only as a small-scale demonstration.",{"title":7,"searchDepth":167,"depth":167,"links":4122},[4123,4124,4125,4126,4127],{"id":4057,"depth":167,"text":4060},{"id":4073,"depth":167,"text":4076},{"id":4084,"depth":167,"text":4087},{"id":4103,"depth":167,"text":4106},{"id":3474,"depth":167,"text":3477},"content:blog:pasqal-photonic-chip-optical-tweezers.md","blog\u002Fpasqal-photonic-chip-optical-tweezers.md","blog\u002Fpasqal-photonic-chip-optical-tweezers",{"_path":4132,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":4133,"description":4134,"date":3942,"author":11,"tags":4135,"readingTime":233,"body":4136,"_type":1193,"_id":4218,"_source":1195,"_file":4219,"_stem":4220,"_extension":1198},"\u002Fblog\u002Fquantum-optics-jena-elvis-qkd-certification","A QKD System Passed the Security Audit That Matters More Than the Physics","Quantum Optics Jena's ELVIS quantum key distribution system completed the first ISO\u002FIEC 23837 hardware security evaluation, a three-month independent audit by TUVIT that found no major vulnerabilities in the physical implementation.",[3863,3862,3864],{"type":18,"children":4137,"toc":4211},[4138,4143,4149,4162,4168,4173,4179,4191,4197,4202,4206],{"type":21,"tag":22,"props":4139,"children":4140},{},[4141],{"type":31,"value":4142},"Quantum Optics Jena's ELVIS quantum key distribution (QKD) system completed the first evaluation under ISO\u002FIEC 23837, an international standard for independently auditing the physical security of QKD hardware, with the three-month assessment by TUV Informationstechnik GmbH (TUVIT) finding no major vulnerabilities or exploitable side-channel weaknesses.",{"type":21,"tag":41,"props":4144,"children":4146},{"id":4145},"why-this-is-a-different-kind-of-security-claim-than-quantum-safe",[4147],{"type":31,"value":4148},"Why this is a different kind of security claim than \"quantum-safe\"",{"type":21,"tag":22,"props":4150,"children":4151},{},[4152,4154,4160],{"type":31,"value":4153},"Most QKD marketing leans on the underlying physics: the ",{"type":21,"tag":26,"props":4155,"children":4157},{"href":4156},"\u002Fglossary\u002Fdecoherence",[4158],{"type":31,"value":4159},"no-cloning theorem",{"type":31,"value":4161}," and the fact that eavesdropping on a quantum channel introduces detectable disturbance. That's a real mathematical guarantee, but it says nothing about whether a specific piece of hardware implementing QKD has exploitable flaws in its actual, physical components, lasers that leak information through timing patterns, detectors with side channels, or implementation shortcuts that undermine the theoretical security model. ISO\u002FIEC 23837 exists specifically to evaluate that gap: not whether quantum key distribution works as physics, but whether a given box built to do it holds up against real-world side-channel attacks.",{"type":21,"tag":41,"props":4163,"children":4165},{"id":4164},"what-tuvit-tested",[4166],{"type":31,"value":4167},"What TUVIT tested",{"type":21,"tag":22,"props":4169,"children":4170},{},[4171],{"type":31,"value":4172},"The audit ran six targeted security assessments over three months, simulating real-world side-channel attacks against physical components like lasers and detectors, the parts of a QKD system where a security flaw would live if one existed. The methodology came out of QuNET+BlueCert, a German federal research initiative built specifically to develop rigorous evaluation methods for quantum communications hardware. Finding no major vulnerabilities is a real result, not a marketing tagline, precisely because the evaluation was designed by a government-linked research effort with the explicit goal of finding problems if they existed.",{"type":21,"tag":41,"props":4174,"children":4176},{"id":4175},"why-an-independent-third-party-matters-here",[4177],{"type":31,"value":4178},"Why an independent third party matters here",{"type":21,"tag":22,"props":4180,"children":4181},{},[4182,4184,4189],{"type":31,"value":4183},"TUVIT isn't Quantum Optics Jena testing its own hardware and reporting the results. It's an independent cybersecurity assessment firm running government-developed methodology against a vendor's product, the same relationship structure that gives FedRAMP authorizations (like ",{"type":21,"tag":26,"props":4185,"children":4186},{"href":3939},[4187],{"type":31,"value":4188},"Cloudflare's recent FedRAMP High milestone",{"type":31,"value":4190},") their weight over a vendor's own security claims. QKD as a field has had a real credibility problem with exactly this gap: strong theoretical security proofs paired with commercial hardware that hadn't been independently stress-tested against implementation-level attacks. This evaluation is a concrete step toward closing that gap for one specific product.",{"type":21,"tag":41,"props":4192,"children":4194},{"id":4193},"what-elvis-is-for",[4195],{"type":31,"value":4196},"What ELVIS is for",{"type":21,"tag":22,"props":4198,"children":4199},{},[4200],{"type":31,"value":4201},"ELVIS is an entanglement-based QKD system built for telecommunications, energy grids, financial networks, and defense institutions, the same class of critical infrastructure customer that shows up across most serious QKD deployments. Quantum Optics Jena positions the ISO\u002FIEC 23837 certification as a template other QKD vendors and evaluators follow, a \"practical framework for certifying quantum communications hardware for commercial and government deployments\" in CEO Kevin Fuschel's framing, worth reading as the company's own positioning but grounded in a certification other vendors don't yet have.",{"type":21,"tag":41,"props":4203,"children":4204},{"id":3474},[4205],{"type":31,"value":3477},{"type":21,"tag":22,"props":4207,"children":4208},{},[4209],{"type":31,"value":4210},"Whether other QKD hardware vendors pursue ISO\u002FIEC 23837 evaluation against the same TUVIT\u002FQuNET+BlueCert methodology, which would turn this from one company's certification into an actual industry baseline for QKD hardware security, the same way FedRAMP authorizations function as a baseline rather than a one-off badge for cloud vendors serving government customers.",{"title":7,"searchDepth":167,"depth":167,"links":4212},[4213,4214,4215,4216,4217],{"id":4145,"depth":167,"text":4148},{"id":4164,"depth":167,"text":4167},{"id":4175,"depth":167,"text":4178},{"id":4193,"depth":167,"text":4196},{"id":3474,"depth":167,"text":3477},"content:blog:quantum-optics-jena-elvis-qkd-certification.md","blog\u002Fquantum-optics-jena-elvis-qkd-certification.md","blog\u002Fquantum-optics-jena-elvis-qkd-certification",{"_path":4222,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":4223,"description":4224,"date":3942,"author":11,"tags":4225,"readingTime":233,"body":4226,"_type":1193,"_id":4308,"_source":1195,"_file":4309,"_stem":4310,"_extension":1198},"\u002Fblog\u002Fqunnect-monarch-quantum-manufacturing-partnership","Qunnect and Monarch Quantum Are Trying to Shrink a Rack-Sized Quantum Network Box","Qunnect partnered with Monarch Quantum to shrink its Carina entanglement-distribution platform from a 36U rack down to 2U or 3U, using robotic, machine-vision-guided manufacturing built for co-packaged optics.",[3409,1213],{"type":18,"children":4227,"toc":4301},[4228,4233,4239,4259,4265,4270,4276,4281,4287,4292,4296],{"type":21,"tag":22,"props":4229,"children":4230},{},[4231],{"type":31,"value":4232},"Qunnect and Monarch Quantum announced a partnership to commercialize and manufacture Qunnect's entanglement-distribution hardware at scale, with a certain, checkable target: shrinking Qunnect's Carina platform from its current 36U rack form factor down to 2U or 3U. That's roughly a tenfold reduction in size for the same function, the kind of claim worth watching for a follow-up demonstration rather than taking as already accomplished.",{"type":21,"tag":41,"props":4234,"children":4236},{"id":4235},"two-different-kinds-of-company-one-product-line",[4237],{"type":31,"value":4238},"Two different kinds of company, one product line",{"type":21,"tag":22,"props":4240,"children":4241},{},[4242,4244,4249,4251,4257],{"type":31,"value":4243},"Qunnect brings the physics: field-deployed ",{"type":21,"tag":26,"props":4245,"children":4246},{"href":1156},[4247],{"type":31,"value":4248},"entanglement",{"type":31,"value":4250}," distribution technology, the identical lineage behind its work with ",{"type":21,"tag":26,"props":4252,"children":4254},{"href":4253},"\u002Fblog\u002Fnist-umd-qunnect-62km-entanglement-metro-fiber",[4255],{"type":31,"value":4256},"NIST and the University of Maryland sustaining entangled photons across 62 km of commercial fiber",{"type":31,"value":4258}," for over 20 hours. Monarch Quantum brings something Qunnect doesn't: photonic system engineering built around robotic, machine-vision-guided manufacturing, co-packaged optics, and precision component alignment at production scale. Pairing a company that proved the physics works in the field with one that manufactures precision photonic hardware for a living is a specific answer to a specific problem, not a general research collaboration.",{"type":21,"tag":41,"props":4260,"children":4262},{"id":4261},"the-manufacturing-side-is-concrete",[4263],{"type":31,"value":4264},"The manufacturing side is concrete",{"type":21,"tag":22,"props":4266,"children":4267},{},[4268],{"type":31,"value":4269},"Monarch is moving to a 60,000 square foot San Diego facility by the end of the year, including an 8,000 square foot cleanroom expansion with 20 to 25 robotic assembly stations expected operational in September. That's real capital infrastructure committed on a real timeline, worth distinguishing from a partnership announcement that's mostly a press release with no manufacturing capacity behind it.",{"type":21,"tag":41,"props":4271,"children":4273},{"id":4272},"what-ships-beyond-the-shrunk-carina",[4274],{"type":31,"value":4275},"What ships beyond the shrunk Carina",{"type":21,"tag":22,"props":4277,"children":4278},{},[4279],{"type":31,"value":4280},"Beyond the size reduction, the partnership names a future product under the codename \"Orian,\" aimed at applications like quantum position verification and a \"quantum alarm\" for network security monitoring, neither of which is a mainstream quantum computing use case. Both point toward defense and infrastructure security markets rather than general-purpose quantum networking, consistent with the target applications named alongside them: satellites, defense platforms, remote infrastructure, telecommunications, and IoT environments.",{"type":21,"tag":41,"props":4282,"children":4284},{"id":4283},"why-size-is-the-actual-bottleneck-here",[4285],{"type":31,"value":4286},"Why size is the actual bottleneck here",{"type":21,"tag":22,"props":4288,"children":4289},{},[4290],{"type":31,"value":4291},"A 36U rack is a full-height server cabinet's worth of hardware for one entanglement-distribution node, which rules out most of the deployment scenarios the goal application list names. A satellite payload, a remote infrastructure site, or an edge telecom location has real constraints on volume, weight, and power that a rack-scale system doesn't fit into, no matter how good the underlying physics is. Getting to 2U or 3U isn't a cosmetic packaging exercise. It's the difference between a lab demonstration and hardware that deploys in the environments Qunnect's own target list names.",{"type":21,"tag":41,"props":4293,"children":4294},{"id":3474},[4295],{"type":31,"value":3477},{"type":21,"tag":22,"props":4297,"children":4298},{},[4299],{"type":31,"value":4300},"The real milestone here isn't the partnership announcement, it's a working 2U or 3U Carina unit demonstrating the same entanglement-distribution performance as the current 36U version. Until that ships, this is a manufacturing capacity and packaging commitment, a real one given the San Diego facility timeline, but not yet a delivered product.",{"title":7,"searchDepth":167,"depth":167,"links":4302},[4303,4304,4305,4306,4307],{"id":4235,"depth":167,"text":4238},{"id":4261,"depth":167,"text":4264},{"id":4272,"depth":167,"text":4275},{"id":4283,"depth":167,"text":4286},{"id":3474,"depth":167,"text":3477},"content:blog:qunnect-monarch-quantum-manufacturing-partnership.md","blog\u002Fqunnect-monarch-quantum-manufacturing-partnership.md","blog\u002Fqunnect-monarch-quantum-manufacturing-partnership",{"_path":4312,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":4313,"description":4314,"date":3942,"author":11,"tags":4315,"readingTime":233,"body":4316,"_type":1193,"_id":4406,"_source":1195,"_file":4407,"_stem":4408,"_extension":1198},"\u002Fblog\u002Fsizhen-chip-photonic-graph-state-china","A Chinese Startup Built a 16-Qubit Graph State on a Single Photonic Chip","Hefei Sizhen Chip Technology and USTC generated a 4-photon, 16-qubit GHZ state and verified 10-qubit entanglement on a self-developed silicon photonic chip, calling it the largest entangled state demonstrated on an optical quantum chip to date.",[3409,1213],{"type":18,"children":4317,"toc":4399},[4318,4330,4336,4349,4355,4360,4366,4371,4377,4390,4394],{"type":21,"tag":22,"props":4319,"children":4320},{},[4321,4323,4328],{"type":31,"value":4322},"Hefei Sizhen Chip Technology, working with researchers from the University of Science and Technology of China, demonstrated on-chip generation of a 4-photon, 16-qubit ",{"type":21,"tag":26,"props":4324,"children":4325},{"href":488},[4326],{"type":31,"value":4327},"GHZ state",{"type":31,"value":4329}," and a single-photon, 4-qubit cluster state on a self-developed programmable silicon photonic chip, verifying genuine entanglement across 10 qubits through entanglement witnessing. The company describes it as the largest entangled state demonstrated on an optical quantum chip to date, and the work is currently posted as an arXiv preprint rather than a peer-reviewed publication.",{"type":21,"tag":41,"props":4331,"children":4333},{"id":4332},"the-approach-measurement-based-not-gate-based",[4334],{"type":31,"value":4335},"The approach: measurement-based, not gate-based",{"type":21,"tag":22,"props":4337,"children":4338},{},[4339,4341,4347],{"type":31,"value":4340},"Sizhen Chip's architecture uses ",{"type":21,"tag":26,"props":4342,"children":4344},{"href":4343},"\u002Fglossary\u002Fquantum-circuit",[4345],{"type":31,"value":4346},"measurement-based quantum computing",{"type":31,"value":4348}," (MBQC), an approach that builds a large entangled resource state up front, then drives the actual computation through a sequence of single-qubit measurements rather than applying gates directly to qubits in sequence. The chip encodes qubits using the high-dimensional path degrees of freedom of single photons, and a four-layer programmable measurement module handles both preparing the multi-qubit graph states and executing the measurements that turn that resource into a computation.",{"type":21,"tag":41,"props":4350,"children":4352},{"id":4351},"what-the-numbers-show",[4353],{"type":31,"value":4354},"What the numbers show",{"type":21,"tag":22,"props":4356,"children":4357},{},[4358],{"type":31,"value":4359},"Sixteen qubits from four photons works because each photon carries multiple qubits of information through its path encoding, not because sixteen separate photons were entangled. The company's own claim to watch for independent replication is the entanglement witnessing result: genuine, verified entanglement across 10 qubits, a smaller but more rigorously checkable figure than the 16-qubit graph state figure headline number. As a demonstration of the architecture's usefulness for computation rather than entanglement generation alone, the team ran Grover's search algorithm on a 4-qubit cluster state and reported a 0.987 average identification probability, a real, specific benchmark number rather than a qualitative claim.",{"type":21,"tag":41,"props":4361,"children":4363},{"id":4362},"a-preprint-not-a-peer-reviewed-result",[4364],{"type":31,"value":4365},"A preprint, not a peer-reviewed result",{"type":21,"tag":22,"props":4367,"children":4368},{},[4369],{"type":31,"value":4370},"This work is posted to arXiv under the title \"On-chip generation of multi-qubit graph states with high-dimensional encoded single photons\" and hasn't gone through peer review at the time of this writing. That doesn't make the outcome wrong, but it does mean the numbers above haven't yet had independent scrutiny applied to them, worth keeping in mind before treating \"largest entangled state on an optical chip to date\" as a settled record rather than a company's own characterization of its result.",{"type":21,"tag":41,"props":4372,"children":4374},{"id":4373},"part-of-a-broader-chinese-photonic-quantum-push",[4375],{"type":31,"value":4376},"Part of a broader Chinese photonic quantum push",{"type":21,"tag":22,"props":4378,"children":4379},{},[4380,4382,4388],{"type":31,"value":4381},"Sizhen Chip calls itself the first domestic optical quantum computing company to achieve large-scale graph state construction on-chip, and frames the result as evidence that a million-qubit optical quantum computer is feasible. That framing lands alongside ",{"type":21,"tag":26,"props":4383,"children":4385},{"href":4384},"\u002Fblog\u002Fturingq-china-first-quantum-ipo",[4386],{"type":31,"value":4387},"TuringQ's move toward a Shanghai STAR Market listing",{"type":31,"value":4389},", another photonic quantum company pursuing commercialization in China. Photonic architecture is a genuinely active area of Chinese quantum investment right now, not a single business's isolated bet.",{"type":21,"tag":41,"props":4391,"children":4392},{"id":3474},[4393],{"type":31,"value":3477},{"type":21,"tag":22,"props":4395,"children":4396},{},[4397],{"type":31,"value":4398},"Peer review of the arXiv preprint is the near-term checkpoint. Past that, the number worth tracking is whether Sizhen Chip's four-layer measurement module scales to more photons and higher path-encoding dimensions without the entanglement fidelity dropping, since that's the actual bottleneck standing between a 16-qubit demonstration and the million-qubit claim the company is making about where this leads.",{"title":7,"searchDepth":167,"depth":167,"links":4400},[4401,4402,4403,4404,4405],{"id":4332,"depth":167,"text":4335},{"id":4351,"depth":167,"text":4354},{"id":4362,"depth":167,"text":4365},{"id":4373,"depth":167,"text":4376},{"id":3474,"depth":167,"text":3477},"content:blog:sizhen-chip-photonic-graph-state-china.md","blog\u002Fsizhen-chip-photonic-graph-state-china.md","blog\u002Fsizhen-chip-photonic-graph-state-china",{"_path":4410,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":4411,"description":4412,"date":3942,"author":11,"tags":4413,"readingTime":233,"body":4414,"_type":1193,"_id":4477,"_source":1195,"_file":4478,"_stem":4479,"_extension":1198},"\u002Fblog\u002Futah-quantum-initiative-executive-order","Utah Becomes the Latest State to Launch Its Own Quantum Initiative","Governor Spencer Cox signed an executive order creating the Utah Quantum Initiative, a coordination council tasked with a statewide quantum assessment report by March 2027, aimed at quantum sensing, workforce development, and defense-sector applications.",[3409],{"type":18,"children":4415,"toc":4471},[4416,4421,4427,4432,4438,4451,4457,4462,4466],{"type":21,"tag":22,"props":4417,"children":4418},{},[4419],{"type":31,"value":4420},"Utah Governor Spencer Cox signed an executive order establishing the Utah Quantum Initiative, creating a Quantum Coordination Council led by the state's Governor's Office of Economic Development (GOED) and inviting the Nucleus Institute to co-lead. The order takes effect immediately and runs through December 31, 2028, with the council required to deliver a statewide quantum assessment report by March 30, 2027, the first concrete, dated deliverable attached to the initiative.",{"type":21,"tag":41,"props":4422,"children":4424},{"id":4423},"what-the-order-creates",[4425],{"type":31,"value":4426},"What the order creates",{"type":21,"tag":22,"props":4428,"children":4429},{},[4430],{"type":31,"value":4431},"Read past the announcement language and the order sets up a coordination body, not a funded research program. No specific dollar figure is attached to the initiative in the announcement. What it does establish is a mandate: build on Utah's existing strengths in quantum sensing, photonics, semiconductor manufacturing, and high-performance computing, develop a quantum-ready workforce through education and apprenticeship pathways, coordinate the state's pursuit of federal quantum funding, and develop defense-sector quantum sensing and communications strategies specifically. Hill Air Force Base and Dugway Proving Ground are named directly, which puts a defense-application focus into the order's text rather than leaving it implied.",{"type":21,"tag":41,"props":4433,"children":4435},{"id":4434},"a-pattern-not-an-isolated-move",[4436],{"type":31,"value":4437},"A pattern, not an isolated move",{"type":21,"tag":22,"props":4439,"children":4440},{},[4441,4443,4449],{"type":31,"value":4442},"Utah joins a growing list of US states and jurisdictions standing up their own quantum coordination efforts, alongside ",{"type":21,"tag":26,"props":4444,"children":4446},{"href":4445},"\u002Fblog\u002Fcompanies-using-quantum-computing-by-industry",[4447],{"type":31,"value":4448},"Canada's $20.3 million Quantum Defence Innovation Secure Hub in Calgary",{"type":31,"value":4450}," covered elsewhere on this site. The through-line across these announcements is consistent: workforce development, coordinating access to federal funding, and defense- or security-adjacent applications, rather than a state directly funding hardware research the way a company or federal agency might. States are positioning themselves to attract quantum companies and federal dollars, not building quantum computers themselves.",{"type":21,"tag":41,"props":4452,"children":4454},{"id":4453},"the-report-due-in-march-2027-is-the-real-checkpoint",[4455],{"type":31,"value":4456},"The report due in March 2027 is the real checkpoint",{"type":21,"tag":22,"props":4458,"children":4459},{},[4460],{"type":31,"value":4461},"An executive order that \"designates\" a priority and \"coordinates\" a council is easy to announce and easy to let quietly underdeliver on without a specific, dated output attached to it. The statewide quantum assessment report due by March 30, 2027, is that dated output here, and it's the first real test of whether the Quantum Coordination Council does the coordinating work the order describes or the initiative stays at the announcement stage. Governor Cox's own framing, that quantum technology \"is going to shift how we compute, communicate, manufacture, discover new medicines and defend our country,\" is the kind of broad statement every state quantum announcement makes. The report is what turns that framing into something checkable.",{"type":21,"tag":41,"props":4463,"children":4464},{"id":3474},[4465],{"type":31,"value":3477},{"type":21,"tag":22,"props":4467,"children":4468},{},[4469],{"type":31,"value":4470},"Whether the March 2027 assessment report lands on schedule, and whether it names specific funding commitments or company relocations rather than restating the executive order's own goals back at itself. Utah's existing base in quantum sensing and semiconductor manufacturing gives this initiative more to build on than a state starting from nothing, which is worth more than the executive order's language on its own.",{"title":7,"searchDepth":167,"depth":167,"links":4472},[4473,4474,4475,4476],{"id":4423,"depth":167,"text":4426},{"id":4434,"depth":167,"text":4437},{"id":4453,"depth":167,"text":4456},{"id":3474,"depth":167,"text":3477},"content:blog:utah-quantum-initiative-executive-order.md","blog\u002Futah-quantum-initiative-executive-order.md","blog\u002Futah-quantum-initiative-executive-order",{"_path":4481,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":4482,"description":4483,"date":4484,"author":11,"tags":4485,"readingTime":308,"body":4488,"_type":1193,"_id":5979,"_source":1195,"_file":5980,"_stem":5981,"_extension":1198},"\u002Fblog\u002Fazure-quantum-cirq-pennylane-guide","Running Cirq and PennyLane Circuits on Azure Quantum","How to submit Cirq circuits directly through the qdk.azure.cirq service, and how PennyLane's Azure Quantum path works differently: compiling through OpenQASM and QIR rather than a plug-and-play device.","2026-08-09",[4486,4487,1213],"Cirq","PennyLane",{"type":18,"children":4489,"toc":5968},[4490,4502,4508,4546,4660,4696,4715,4723,4728,4734,4953,4974,4980,5064,5106,5130,5142,5148,5270,5282,5288,5320,5333,5610,5623,5629,5715,5734,5740,5871,5884,5890,5911,5917,5964],{"type":21,"tag":22,"props":4491,"children":4492},{},[4493,4495,4500],{"type":31,"value":4494},"Our ",{"type":21,"tag":26,"props":4496,"children":4497},{"href":3659},[4498],{"type":31,"value":4499},"Azure Quantum guide for Qiskit",{"type":31,"value":4501}," covers the most direct integration path: a provider object that looks and behaves like any other Qiskit backend. Cirq and PennyLane both reach Azure Quantum too, but through noticeably different mechanisms from each other and from Qiskit's, worth understanding before assuming one pattern transfers to the other.",{"type":21,"tag":41,"props":4503,"children":4505},{"id":4504},"cirq-a-service-object-not-a-provider",[4506],{"type":31,"value":4507},"Cirq: a service object, not a provider",{"type":21,"tag":128,"props":4509,"children":4513},{"code":4510,"language":4511,"meta":7,"className":4512,"style":7},"pip install --upgrade \"qdk[azure,cirq]\" ipykernel\n","bash","language-bash shiki shiki-themes github-dark",[4514],{"type":21,"tag":103,"props":4515,"children":4516},{"__ignoreMap":7},[4517],{"type":21,"tag":138,"props":4518,"children":4519},{"class":140,"line":141},[4520,4526,4531,4536,4541],{"type":21,"tag":138,"props":4521,"children":4523},{"style":4522},"--shiki-default:#B392F0",[4524],{"type":31,"value":4525},"pip",{"type":21,"tag":138,"props":4527,"children":4528},{"style":261},[4529],{"type":31,"value":4530}," install",{"type":21,"tag":138,"props":4532,"children":4533},{"style":213},[4534],{"type":31,"value":4535}," --upgrade",{"type":21,"tag":138,"props":4537,"children":4538},{"style":261},[4539],{"type":31,"value":4540}," \"qdk[azure,cirq]\"",{"type":21,"tag":138,"props":4542,"children":4543},{"style":261},[4544],{"type":31,"value":4545}," ipykernel\n",{"type":21,"tag":128,"props":4547,"children":4549},{"code":4548,"language":132,"meta":7,"className":130,"style":7},"from qdk.azure import Workspace\nfrom qdk.azure.cirq import AzureQuantumService\n\nworkspace = Workspace(resource_id=\"\")  # your workspace's resource ID\nservice = AzureQuantumService(workspace)\n",[4550],{"type":21,"tag":103,"props":4551,"children":4552},{"__ignoreMap":7},[4553,4574,4595,4602,4643],{"type":21,"tag":138,"props":4554,"children":4555},{"class":140,"line":141},[4556,4560,4565,4569],{"type":21,"tag":138,"props":4557,"children":4558},{"style":145},[4559],{"type":31,"value":148},{"type":21,"tag":138,"props":4561,"children":4562},{"style":151},[4563],{"type":31,"value":4564}," qdk.azure ",{"type":21,"tag":138,"props":4566,"children":4567},{"style":145},[4568],{"type":31,"value":159},{"type":21,"tag":138,"props":4570,"children":4571},{"style":151},[4572],{"type":31,"value":4573}," Workspace\n",{"type":21,"tag":138,"props":4575,"children":4576},{"class":140,"line":167},[4577,4581,4586,4590],{"type":21,"tag":138,"props":4578,"children":4579},{"style":145},[4580],{"type":31,"value":148},{"type":21,"tag":138,"props":4582,"children":4583},{"style":151},[4584],{"type":31,"value":4585}," qdk.azure.cirq ",{"type":21,"tag":138,"props":4587,"children":4588},{"style":145},[4589],{"type":31,"value":159},{"type":21,"tag":138,"props":4591,"children":4592},{"style":151},[4593],{"type":31,"value":4594}," AzureQuantumService\n",{"type":21,"tag":138,"props":4596,"children":4597},{"class":140,"line":189},[4598],{"type":21,"tag":138,"props":4599,"children":4600},{"emptyLinePlaceholder":193},[4601],{"type":31,"value":196},{"type":21,"tag":138,"props":4603,"children":4604},{"class":140,"line":199},[4605,4610,4614,4619,4624,4628,4633,4638],{"type":21,"tag":138,"props":4606,"children":4607},{"style":151},[4608],{"type":31,"value":4609},"workspace ",{"type":21,"tag":138,"props":4611,"children":4612},{"style":145},[4613],{"type":31,"value":210},{"type":21,"tag":138,"props":4615,"children":4616},{"style":151},[4617],{"type":31,"value":4618}," Workspace(",{"type":21,"tag":138,"props":4620,"children":4621},{"style":929},[4622],{"type":31,"value":4623},"resource_id",{"type":21,"tag":138,"props":4625,"children":4626},{"style":145},[4627],{"type":31,"value":210},{"type":21,"tag":138,"props":4629,"children":4630},{"style":261},[4631],{"type":31,"value":4632},"\"\"",{"type":21,"tag":138,"props":4634,"children":4635},{"style":151},[4636],{"type":31,"value":4637},")  ",{"type":21,"tag":138,"props":4639,"children":4640},{"style":219},[4641],{"type":31,"value":4642},"# your workspace's resource ID\n",{"type":21,"tag":138,"props":4644,"children":4645},{"class":140,"line":225},[4646,4651,4655],{"type":21,"tag":138,"props":4647,"children":4648},{"style":151},[4649],{"type":31,"value":4650},"service ",{"type":21,"tag":138,"props":4652,"children":4653},{"style":145},[4654],{"type":31,"value":210},{"type":21,"tag":138,"props":4656,"children":4657},{"style":151},[4658],{"type":31,"value":4659}," AzureQuantumService(workspace)\n",{"type":21,"tag":22,"props":4661,"children":4662},{},[4663,4665,4671,4673,4679,4681,4687,4688,4694],{"type":31,"value":4664},"Where Qiskit's integration gives you a ",{"type":21,"tag":103,"props":4666,"children":4668},{"className":4667},[],[4669],{"type":31,"value":4670},"provider.get_backend()",{"type":31,"value":4672}," call returning something that behaves like a standard Qiskit backend, Cirq's integration gives you a ",{"type":21,"tag":103,"props":4674,"children":4676},{"className":4675},[],[4677],{"type":31,"value":4678},"service",{"type":31,"value":4680}," object with its own ",{"type":21,"tag":103,"props":4682,"children":4684},{"className":4683},[],[4685],{"type":31,"value":4686},"run()",{"type":31,"value":3628},{"type":21,"tag":103,"props":4689,"children":4691},{"className":4690},[],[4692],{"type":31,"value":4693},"create_job()",{"type":31,"value":4695}," methods, closer to Cirq's own native execution API than to a backend abstraction.",{"type":21,"tag":128,"props":4697,"children":4699},{"code":4698,"language":132,"meta":7,"className":130,"style":7},"print(service.targets())\n",[4700],{"type":21,"tag":103,"props":4701,"children":4702},{"__ignoreMap":7},[4703],{"type":21,"tag":138,"props":4704,"children":4705},{"class":140,"line":141},[4706,4710],{"type":21,"tag":138,"props":4707,"children":4708},{"style":213},[4709],{"type":31,"value":954},{"type":21,"tag":138,"props":4711,"children":4712},{"style":151},[4713],{"type":31,"value":4714},"(service.targets())\n",{"type":21,"tag":128,"props":4716,"children":4718},{"code":4717},"[\u003CTarget name=\"quantinuum.qpu.h2-1\", avg. queue time=0 s, Degraded>,\n \u003CTarget name=\"ionq.simulator\", avg. queue time=3 s, Available>,\n \u003CTarget name=\"ionq.qpu.aria-1\", avg. queue time=1136774 s, Available>]\n",[4719],{"type":21,"tag":103,"props":4720,"children":4721},{"__ignoreMap":7},[4722],{"type":31,"value":4717},{"type":21,"tag":22,"props":4724,"children":4725},{},[4726],{"type":31,"value":4727},"Listing targets shows real queue times, worth checking before submitting: a queue time in the millions of seconds, as shown above for one example QPU target, means that target is effectively unavailable for anything but a long-running background job, not a hang or an error on your end.",{"type":21,"tag":41,"props":4729,"children":4731},{"id":4730},"running-a-cirq-circuit",[4732],{"type":31,"value":4733},"Running a Cirq circuit",{"type":21,"tag":128,"props":4735,"children":4737},{"code":4736,"language":132,"meta":7,"className":130,"style":7},"import cirq\n\nq0, q1 = cirq.LineQubit.range(2)\ncircuit = cirq.Circuit(\n    cirq.X(q0) ** 0.5,\n    cirq.CX(q0, q1),\n    cirq.measure(q0, q1, key=\"b\"),\n)\n\nresult = service.run(program=circuit, repetitions=100, target=\"ionq.simulator\")\nprint(result)\n",[4738],{"type":21,"tag":103,"props":4739,"children":4740},{"__ignoreMap":7},[4741,4753,4760,4785,4802,4825,4833,4860,4867,4874,4941],{"type":21,"tag":138,"props":4742,"children":4743},{"class":140,"line":141},[4744,4748],{"type":21,"tag":138,"props":4745,"children":4746},{"style":145},[4747],{"type":31,"value":159},{"type":21,"tag":138,"props":4749,"children":4750},{"style":151},[4751],{"type":31,"value":4752}," cirq\n",{"type":21,"tag":138,"props":4754,"children":4755},{"class":140,"line":167},[4756],{"type":21,"tag":138,"props":4757,"children":4758},{"emptyLinePlaceholder":193},[4759],{"type":31,"value":196},{"type":21,"tag":138,"props":4761,"children":4762},{"class":140,"line":189},[4763,4768,4772,4777,4781],{"type":21,"tag":138,"props":4764,"children":4765},{"style":151},[4766],{"type":31,"value":4767},"q0, q1 ",{"type":21,"tag":138,"props":4769,"children":4770},{"style":145},[4771],{"type":31,"value":210},{"type":21,"tag":138,"props":4773,"children":4774},{"style":151},[4775],{"type":31,"value":4776}," cirq.LineQubit.range(",{"type":21,"tag":138,"props":4778,"children":4779},{"style":213},[4780],{"type":31,"value":292},{"type":21,"tag":138,"props":4782,"children":4783},{"style":151},[4784],{"type":31,"value":269},{"type":21,"tag":138,"props":4786,"children":4787},{"class":140,"line":199},[4788,4793,4797],{"type":21,"tag":138,"props":4789,"children":4790},{"style":151},[4791],{"type":31,"value":4792},"circuit ",{"type":21,"tag":138,"props":4794,"children":4795},{"style":145},[4796],{"type":31,"value":210},{"type":21,"tag":138,"props":4798,"children":4799},{"style":151},[4800],{"type":31,"value":4801}," cirq.Circuit(\n",{"type":21,"tag":138,"props":4803,"children":4804},{"class":140,"line":225},[4805,4810,4815,4820],{"type":21,"tag":138,"props":4806,"children":4807},{"style":151},[4808],{"type":31,"value":4809},"    cirq.X(q0) ",{"type":21,"tag":138,"props":4811,"children":4812},{"style":145},[4813],{"type":31,"value":4814},"**",{"type":21,"tag":138,"props":4816,"children":4817},{"style":213},[4818],{"type":31,"value":4819}," 0.5",{"type":21,"tag":138,"props":4821,"children":4822},{"style":151},[4823],{"type":31,"value":4824},",\n",{"type":21,"tag":138,"props":4826,"children":4827},{"class":140,"line":233},[4828],{"type":21,"tag":138,"props":4829,"children":4830},{"style":151},[4831],{"type":31,"value":4832},"    cirq.CX(q0, q1),\n",{"type":21,"tag":138,"props":4834,"children":4835},{"class":140,"line":272},[4836,4841,4846,4850,4855],{"type":21,"tag":138,"props":4837,"children":4838},{"style":151},[4839],{"type":31,"value":4840},"    cirq.measure(q0, q1, ",{"type":21,"tag":138,"props":4842,"children":4843},{"style":929},[4844],{"type":31,"value":4845},"key",{"type":21,"tag":138,"props":4847,"children":4848},{"style":145},[4849],{"type":31,"value":210},{"type":21,"tag":138,"props":4851,"children":4852},{"style":261},[4853],{"type":31,"value":4854},"\"b\"",{"type":21,"tag":138,"props":4856,"children":4857},{"style":151},[4858],{"type":31,"value":4859},"),\n",{"type":21,"tag":138,"props":4861,"children":4862},{"class":140,"line":308},[4863],{"type":21,"tag":138,"props":4864,"children":4865},{"style":151},[4866],{"type":31,"value":269},{"type":21,"tag":138,"props":4868,"children":4869},{"class":140,"line":16},[4870],{"type":21,"tag":138,"props":4871,"children":4872},{"emptyLinePlaceholder":193},[4873],{"type":31,"value":196},{"type":21,"tag":138,"props":4875,"children":4876},{"class":140,"line":360},[4877,4882,4886,4891,4896,4900,4905,4910,4914,4919,4923,4928,4932,4937],{"type":21,"tag":138,"props":4878,"children":4879},{"style":151},[4880],{"type":31,"value":4881},"result ",{"type":21,"tag":138,"props":4883,"children":4884},{"style":145},[4885],{"type":31,"value":210},{"type":21,"tag":138,"props":4887,"children":4888},{"style":151},[4889],{"type":31,"value":4890}," service.run(",{"type":21,"tag":138,"props":4892,"children":4893},{"style":929},[4894],{"type":31,"value":4895},"program",{"type":21,"tag":138,"props":4897,"children":4898},{"style":145},[4899],{"type":31,"value":210},{"type":21,"tag":138,"props":4901,"children":4902},{"style":151},[4903],{"type":31,"value":4904},"circuit, ",{"type":21,"tag":138,"props":4906,"children":4907},{"style":929},[4908],{"type":31,"value":4909},"repetitions",{"type":21,"tag":138,"props":4911,"children":4912},{"style":145},[4913],{"type":31,"value":210},{"type":21,"tag":138,"props":4915,"children":4916},{"style":213},[4917],{"type":31,"value":4918},"100",{"type":21,"tag":138,"props":4920,"children":4921},{"style":151},[4922],{"type":31,"value":258},{"type":21,"tag":138,"props":4924,"children":4925},{"style":929},[4926],{"type":31,"value":4927},"target",{"type":21,"tag":138,"props":4929,"children":4930},{"style":145},[4931],{"type":31,"value":210},{"type":21,"tag":138,"props":4933,"children":4934},{"style":261},[4935],{"type":31,"value":4936},"\"ionq.simulator\"",{"type":21,"tag":138,"props":4938,"children":4939},{"style":151},[4940],{"type":31,"value":269},{"type":21,"tag":138,"props":4942,"children":4943},{"class":140,"line":368},[4944,4948],{"type":21,"tag":138,"props":4945,"children":4946},{"style":213},[4947],{"type":31,"value":954},{"type":21,"tag":138,"props":4949,"children":4950},{"style":151},[4951],{"type":31,"value":4952},"(result)\n",{"type":21,"tag":22,"props":4954,"children":4955},{},[4956,4958,4964,4966,4972],{"type":31,"value":4957},"This returns a ",{"type":21,"tag":103,"props":4959,"children":4961},{"className":4960},[],[4962],{"type":31,"value":4963},"cirq.Result",{"type":31,"value":4965}," object when run through ",{"type":21,"tag":103,"props":4967,"children":4969},{"className":4968},[],[4970],{"type":31,"value":4971},"service.run()",{"type":31,"value":4973}," directly, the object type Cirq code normally expects.",{"type":21,"tag":41,"props":4975,"children":4977},{"id":4976},"the-result-type-changes-with-the-asynchronous-path",[4978],{"type":31,"value":4979},"The result type changes with the asynchronous path",{"type":21,"tag":128,"props":4981,"children":4983},{"code":4982,"language":132,"meta":7,"className":130,"style":7},"job = service.create_job(program=circuit, repetitions=100, target=\"ionq.simulator\")\nresult = job.results()\n",[4984],{"type":21,"tag":103,"props":4985,"children":4986},{"__ignoreMap":7},[4987,5048],{"type":21,"tag":138,"props":4988,"children":4989},{"class":140,"line":141},[4990,4995,4999,5004,5008,5012,5016,5020,5024,5028,5032,5036,5040,5044],{"type":21,"tag":138,"props":4991,"children":4992},{"style":151},[4993],{"type":31,"value":4994},"job ",{"type":21,"tag":138,"props":4996,"children":4997},{"style":145},[4998],{"type":31,"value":210},{"type":21,"tag":138,"props":5000,"children":5001},{"style":151},[5002],{"type":31,"value":5003}," service.create_job(",{"type":21,"tag":138,"props":5005,"children":5006},{"style":929},[5007],{"type":31,"value":4895},{"type":21,"tag":138,"props":5009,"children":5010},{"style":145},[5011],{"type":31,"value":210},{"type":21,"tag":138,"props":5013,"children":5014},{"style":151},[5015],{"type":31,"value":4904},{"type":21,"tag":138,"props":5017,"children":5018},{"style":929},[5019],{"type":31,"value":4909},{"type":21,"tag":138,"props":5021,"children":5022},{"style":145},[5023],{"type":31,"value":210},{"type":21,"tag":138,"props":5025,"children":5026},{"style":213},[5027],{"type":31,"value":4918},{"type":21,"tag":138,"props":5029,"children":5030},{"style":151},[5031],{"type":31,"value":258},{"type":21,"tag":138,"props":5033,"children":5034},{"style":929},[5035],{"type":31,"value":4927},{"type":21,"tag":138,"props":5037,"children":5038},{"style":145},[5039],{"type":31,"value":210},{"type":21,"tag":138,"props":5041,"children":5042},{"style":261},[5043],{"type":31,"value":4936},{"type":21,"tag":138,"props":5045,"children":5046},{"style":151},[5047],{"type":31,"value":269},{"type":21,"tag":138,"props":5049,"children":5050},{"class":140,"line":167},[5051,5055,5059],{"type":21,"tag":138,"props":5052,"children":5053},{"style":151},[5054],{"type":31,"value":4881},{"type":21,"tag":138,"props":5056,"children":5057},{"style":145},[5058],{"type":31,"value":210},{"type":21,"tag":138,"props":5060,"children":5061},{"style":151},[5062],{"type":31,"value":5063}," job.results()\n",{"type":21,"tag":22,"props":5065,"children":5066},{},[5067,5069,5074,5076,5082,5084,5089,5091,5096,5098,5104],{"type":31,"value":5068},"Using the asynchronous ",{"type":21,"tag":103,"props":5070,"children":5072},{"className":5071},[],[5073],{"type":31,"value":4693},{"type":31,"value":5075},"\u002F",{"type":21,"tag":103,"props":5077,"children":5079},{"className":5078},[],[5080],{"type":31,"value":5081},"job.results()",{"type":31,"value":5083}," path instead of the direct ",{"type":21,"tag":103,"props":5085,"children":5087},{"className":5086},[],[5088],{"type":31,"value":4971},{"type":31,"value":5090}," call returns a provider-certain finding object, not a ",{"type":21,"tag":103,"props":5092,"children":5094},{"className":5093},[],[5095],{"type":31,"value":4963},{"type":31,"value":5097},", one of the sharper edges in this integration. On the IonQ simulator target specifically, that means a ",{"type":21,"tag":103,"props":5099,"children":5101},{"className":5100},[],[5102],{"type":31,"value":5103},"cirq_ionq.results.SimulatorResult",{"type":31,"value":5105}," reporting state probabilities rather than raw shot data. Convert it explicitly when downstream code expects Cirq's native format:",{"type":21,"tag":128,"props":5107,"children":5109},{"code":5108,"language":132,"meta":7,"className":130,"style":7},"cirq_result = result.to_cirq_result()\n",[5110],{"type":21,"tag":103,"props":5111,"children":5112},{"__ignoreMap":7},[5113],{"type":21,"tag":138,"props":5114,"children":5115},{"class":140,"line":141},[5116,5121,5125],{"type":21,"tag":138,"props":5117,"children":5118},{"style":151},[5119],{"type":31,"value":5120},"cirq_result ",{"type":21,"tag":138,"props":5122,"children":5123},{"style":145},[5124],{"type":31,"value":210},{"type":21,"tag":138,"props":5126,"children":5127},{"style":151},[5128],{"type":31,"value":5129}," result.to_cirq_result()\n",{"type":21,"tag":22,"props":5131,"children":5132},{},[5133,5135,5140],{"type":31,"value":5134},"Skipping this conversion and treating the result as a ",{"type":21,"tag":103,"props":5136,"children":5138},{"className":5137},[],[5139],{"type":31,"value":4963},{"type":31,"value":5141}," directly is the most likely place code breaks when moving from the synchronous to the asynchronous submission pattern.",{"type":21,"tag":41,"props":5143,"children":5145},{"id":5144},"one-circuit-per-job",[5146],{"type":31,"value":5147},"One circuit per job",{"type":21,"tag":128,"props":5149,"children":5151},{"code":5150,"language":132,"meta":7,"className":130,"style":7},"jobs = [service.create_job(program=c, repetitions=100, target=\"ionq.simulator\") for c in circuits]\nresults = [job.results() for job in jobs]\n",[5152],{"type":21,"tag":103,"props":5153,"children":5154},{"__ignoreMap":7},[5155,5235],{"type":21,"tag":138,"props":5156,"children":5157},{"class":140,"line":141},[5158,5163,5167,5172,5176,5180,5185,5189,5193,5197,5201,5205,5209,5213,5217,5221,5226,5230],{"type":21,"tag":138,"props":5159,"children":5160},{"style":151},[5161],{"type":31,"value":5162},"jobs ",{"type":21,"tag":138,"props":5164,"children":5165},{"style":145},[5166],{"type":31,"value":210},{"type":21,"tag":138,"props":5168,"children":5169},{"style":151},[5170],{"type":31,"value":5171}," [service.create_job(",{"type":21,"tag":138,"props":5173,"children":5174},{"style":929},[5175],{"type":31,"value":4895},{"type":21,"tag":138,"props":5177,"children":5178},{"style":145},[5179],{"type":31,"value":210},{"type":21,"tag":138,"props":5181,"children":5182},{"style":151},[5183],{"type":31,"value":5184},"c, ",{"type":21,"tag":138,"props":5186,"children":5187},{"style":929},[5188],{"type":31,"value":4909},{"type":21,"tag":138,"props":5190,"children":5191},{"style":145},[5192],{"type":31,"value":210},{"type":21,"tag":138,"props":5194,"children":5195},{"style":213},[5196],{"type":31,"value":4918},{"type":21,"tag":138,"props":5198,"children":5199},{"style":151},[5200],{"type":31,"value":258},{"type":21,"tag":138,"props":5202,"children":5203},{"style":929},[5204],{"type":31,"value":4927},{"type":21,"tag":138,"props":5206,"children":5207},{"style":145},[5208],{"type":31,"value":210},{"type":21,"tag":138,"props":5210,"children":5211},{"style":261},[5212],{"type":31,"value":4936},{"type":21,"tag":138,"props":5214,"children":5215},{"style":151},[5216],{"type":31,"value":1533},{"type":21,"tag":138,"props":5218,"children":5219},{"style":145},[5220],{"type":31,"value":1492},{"type":21,"tag":138,"props":5222,"children":5223},{"style":151},[5224],{"type":31,"value":5225}," c ",{"type":21,"tag":138,"props":5227,"children":5228},{"style":145},[5229],{"type":31,"value":1502},{"type":21,"tag":138,"props":5231,"children":5232},{"style":151},[5233],{"type":31,"value":5234}," circuits]\n",{"type":21,"tag":138,"props":5236,"children":5237},{"class":140,"line":167},[5238,5243,5247,5252,5256,5261,5265],{"type":21,"tag":138,"props":5239,"children":5240},{"style":151},[5241],{"type":31,"value":5242},"results ",{"type":21,"tag":138,"props":5244,"children":5245},{"style":145},[5246],{"type":31,"value":210},{"type":21,"tag":138,"props":5248,"children":5249},{"style":151},[5250],{"type":31,"value":5251}," [job.results() ",{"type":21,"tag":138,"props":5253,"children":5254},{"style":145},[5255],{"type":31,"value":1492},{"type":21,"tag":138,"props":5257,"children":5258},{"style":151},[5259],{"type":31,"value":5260}," job ",{"type":21,"tag":138,"props":5262,"children":5263},{"style":145},[5264],{"type":31,"value":1502},{"type":21,"tag":138,"props":5266,"children":5267},{"style":151},[5268],{"type":31,"value":5269}," jobs]\n",{"type":21,"tag":22,"props":5271,"children":5272},{},[5273,5275,5280],{"type":31,"value":5274},"Submitting multiple circuits in a single job isn't supported on this integration. Looping individual ",{"type":21,"tag":103,"props":5276,"children":5278},{"className":5277},[],[5279],{"type":31,"value":4693},{"type":31,"value":5281}," calls, as above, and collecting results afterward is the documented workaround, worth knowing before assuming a batch-submission API exists.",{"type":21,"tag":41,"props":5283,"children":5285},{"id":5284},"pennylane-no-device-plugin-a-compile-pipeline-instead",[5286],{"type":31,"value":5287},"PennyLane: no device plugin, a compile pipeline instead",{"type":21,"tag":128,"props":5289,"children":5291},{"code":5290,"language":4511,"meta":7,"className":4512,"style":7},"pip install --upgrade \"qdk[azure]\" pennylane\n",[5292],{"type":21,"tag":103,"props":5293,"children":5294},{"__ignoreMap":7},[5295],{"type":21,"tag":138,"props":5296,"children":5297},{"class":140,"line":141},[5298,5302,5306,5310,5315],{"type":21,"tag":138,"props":5299,"children":5300},{"style":4522},[5301],{"type":31,"value":4525},{"type":21,"tag":138,"props":5303,"children":5304},{"style":261},[5305],{"type":31,"value":4530},{"type":21,"tag":138,"props":5307,"children":5308},{"style":213},[5309],{"type":31,"value":4535},{"type":21,"tag":138,"props":5311,"children":5312},{"style":261},[5313],{"type":31,"value":5314}," \"qdk[azure]\"",{"type":21,"tag":138,"props":5316,"children":5317},{"style":261},[5318],{"type":31,"value":5319}," pennylane\n",{"type":21,"tag":22,"props":5321,"children":5322},{},[5323,5325,5331],{"type":31,"value":5324},"PennyLane's other backends typically work through ",{"type":21,"tag":103,"props":5326,"children":5328},{"className":5327},[],[5329],{"type":31,"value":5330},"qml.device('vendor.device', ...)",{"type":31,"value":5332},", a plugin abstraction that hides the transport details. Azure Quantum's PennyLane path doesn't follow that pattern. Instead, you build a circuit normally with PennyLane, then explicitly compile it down through OpenQASM and QIR before submitting:",{"type":21,"tag":128,"props":5334,"children":5336},{"code":5335,"language":132,"meta":7,"className":130,"style":7},"import pennylane as qml\nfrom qdk.openqasm import compile\nfrom qdk.azure import Workspace\nfrom qdk import TargetProfile\n\ndevice = qml.device(\"default.qubit\", wires=2)\n\n@qml.qnode(device)\ndef circuit(theta):\n    qml.H(0)\n    qml.CNOT(wires=[0, 1])\n    qml.RY(theta, wires=1)\n    return qml.expval(qml.PauliZ(1))\n",[5337],{"type":21,"tag":103,"props":5338,"children":5339},{"__ignoreMap":7},[5340,5362,5383,5402,5423,5430,5473,5480,5493,5511,5527,5564,5588],{"type":21,"tag":138,"props":5341,"children":5342},{"class":140,"line":141},[5343,5347,5352,5357],{"type":21,"tag":138,"props":5344,"children":5345},{"style":145},[5346],{"type":31,"value":159},{"type":21,"tag":138,"props":5348,"children":5349},{"style":151},[5350],{"type":31,"value":5351}," pennylane ",{"type":21,"tag":138,"props":5353,"children":5354},{"style":145},[5355],{"type":31,"value":5356},"as",{"type":21,"tag":138,"props":5358,"children":5359},{"style":151},[5360],{"type":31,"value":5361}," qml\n",{"type":21,"tag":138,"props":5363,"children":5364},{"class":140,"line":167},[5365,5369,5374,5378],{"type":21,"tag":138,"props":5366,"children":5367},{"style":145},[5368],{"type":31,"value":148},{"type":21,"tag":138,"props":5370,"children":5371},{"style":151},[5372],{"type":31,"value":5373}," qdk.openqasm ",{"type":21,"tag":138,"props":5375,"children":5376},{"style":145},[5377],{"type":31,"value":159},{"type":21,"tag":138,"props":5379,"children":5380},{"style":213},[5381],{"type":31,"value":5382}," compile\n",{"type":21,"tag":138,"props":5384,"children":5385},{"class":140,"line":189},[5386,5390,5394,5398],{"type":21,"tag":138,"props":5387,"children":5388},{"style":145},[5389],{"type":31,"value":148},{"type":21,"tag":138,"props":5391,"children":5392},{"style":151},[5393],{"type":31,"value":4564},{"type":21,"tag":138,"props":5395,"children":5396},{"style":145},[5397],{"type":31,"value":159},{"type":21,"tag":138,"props":5399,"children":5400},{"style":151},[5401],{"type":31,"value":4573},{"type":21,"tag":138,"props":5403,"children":5404},{"class":140,"line":199},[5405,5409,5414,5418],{"type":21,"tag":138,"props":5406,"children":5407},{"style":145},[5408],{"type":31,"value":148},{"type":21,"tag":138,"props":5410,"children":5411},{"style":151},[5412],{"type":31,"value":5413}," qdk ",{"type":21,"tag":138,"props":5415,"children":5416},{"style":145},[5417],{"type":31,"value":159},{"type":21,"tag":138,"props":5419,"children":5420},{"style":151},[5421],{"type":31,"value":5422}," TargetProfile\n",{"type":21,"tag":138,"props":5424,"children":5425},{"class":140,"line":225},[5426],{"type":21,"tag":138,"props":5427,"children":5428},{"emptyLinePlaceholder":193},[5429],{"type":31,"value":196},{"type":21,"tag":138,"props":5431,"children":5432},{"class":140,"line":233},[5433,5438,5442,5447,5452,5456,5461,5465,5469],{"type":21,"tag":138,"props":5434,"children":5435},{"style":151},[5436],{"type":31,"value":5437},"device ",{"type":21,"tag":138,"props":5439,"children":5440},{"style":145},[5441],{"type":31,"value":210},{"type":21,"tag":138,"props":5443,"children":5444},{"style":151},[5445],{"type":31,"value":5446}," qml.device(",{"type":21,"tag":138,"props":5448,"children":5449},{"style":261},[5450],{"type":31,"value":5451},"\"default.qubit\"",{"type":21,"tag":138,"props":5453,"children":5454},{"style":151},[5455],{"type":31,"value":258},{"type":21,"tag":138,"props":5457,"children":5458},{"style":929},[5459],{"type":31,"value":5460},"wires",{"type":21,"tag":138,"props":5462,"children":5463},{"style":145},[5464],{"type":31,"value":210},{"type":21,"tag":138,"props":5466,"children":5467},{"style":213},[5468],{"type":31,"value":292},{"type":21,"tag":138,"props":5470,"children":5471},{"style":151},[5472],{"type":31,"value":269},{"type":21,"tag":138,"props":5474,"children":5475},{"class":140,"line":272},[5476],{"type":21,"tag":138,"props":5477,"children":5478},{"emptyLinePlaceholder":193},[5479],{"type":31,"value":196},{"type":21,"tag":138,"props":5481,"children":5482},{"class":140,"line":308},[5483,5488],{"type":21,"tag":138,"props":5484,"children":5485},{"style":4522},[5486],{"type":31,"value":5487},"@qml.qnode",{"type":21,"tag":138,"props":5489,"children":5490},{"style":151},[5491],{"type":31,"value":5492},"(device)\n",{"type":21,"tag":138,"props":5494,"children":5495},{"class":140,"line":16},[5496,5501,5506],{"type":21,"tag":138,"props":5497,"children":5498},{"style":145},[5499],{"type":31,"value":5500},"def",{"type":21,"tag":138,"props":5502,"children":5503},{"style":4522},[5504],{"type":31,"value":5505}," circuit",{"type":21,"tag":138,"props":5507,"children":5508},{"style":151},[5509],{"type":31,"value":5510},"(theta):\n",{"type":21,"tag":138,"props":5512,"children":5513},{"class":140,"line":360},[5514,5519,5523],{"type":21,"tag":138,"props":5515,"children":5516},{"style":151},[5517],{"type":31,"value":5518},"    qml.H(",{"type":21,"tag":138,"props":5520,"children":5521},{"style":213},[5522],{"type":31,"value":406},{"type":21,"tag":138,"props":5524,"children":5525},{"style":151},[5526],{"type":31,"value":269},{"type":21,"tag":138,"props":5528,"children":5529},{"class":140,"line":368},[5530,5535,5539,5543,5548,5552,5556,5560],{"type":21,"tag":138,"props":5531,"children":5532},{"style":151},[5533],{"type":31,"value":5534},"    qml.CNOT(",{"type":21,"tag":138,"props":5536,"children":5537},{"style":929},[5538],{"type":31,"value":5460},{"type":21,"tag":138,"props":5540,"children":5541},{"style":145},[5542],{"type":31,"value":210},{"type":21,"tag":138,"props":5544,"children":5545},{"style":151},[5546],{"type":31,"value":5547},"[",{"type":21,"tag":138,"props":5549,"children":5550},{"style":213},[5551],{"type":31,"value":406},{"type":21,"tag":138,"props":5553,"children":5554},{"style":151},[5555],{"type":31,"value":258},{"type":21,"tag":138,"props":5557,"children":5558},{"style":213},[5559],{"type":31,"value":327},{"type":21,"tag":138,"props":5561,"children":5562},{"style":151},[5563],{"type":31,"value":598},{"type":21,"tag":138,"props":5565,"children":5566},{"class":140,"line":377},[5567,5572,5576,5580,5584],{"type":21,"tag":138,"props":5568,"children":5569},{"style":151},[5570],{"type":31,"value":5571},"    qml.RY(theta, ",{"type":21,"tag":138,"props":5573,"children":5574},{"style":929},[5575],{"type":31,"value":5460},{"type":21,"tag":138,"props":5577,"children":5578},{"style":145},[5579],{"type":31,"value":210},{"type":21,"tag":138,"props":5581,"children":5582},{"style":213},[5583],{"type":31,"value":327},{"type":21,"tag":138,"props":5585,"children":5586},{"style":151},[5587],{"type":31,"value":269},{"type":21,"tag":138,"props":5589,"children":5590},{"class":140,"line":386},[5591,5596,5601,5605],{"type":21,"tag":138,"props":5592,"children":5593},{"style":145},[5594],{"type":31,"value":5595},"    return",{"type":21,"tag":138,"props":5597,"children":5598},{"style":151},[5599],{"type":31,"value":5600}," qml.expval(qml.PauliZ(",{"type":21,"tag":138,"props":5602,"children":5603},{"style":213},[5604],{"type":31,"value":327},{"type":21,"tag":138,"props":5606,"children":5607},{"style":151},[5608],{"type":31,"value":5609},"))\n",{"type":21,"tag":22,"props":5611,"children":5612},{},[5613,5615,5621],{"type":31,"value":5614},"Note the device here is PennyLane's own local simulator, ",{"type":21,"tag":103,"props":5616,"children":5618},{"className":5617},[],[5619],{"type":31,"value":5620},"default.qubit",{"type":31,"value":5622},", used to build and draw the circuit. It isn't what runs on Azure Quantum hardware. The QASM\u002FQIR conversion below is.",{"type":21,"tag":41,"props":5624,"children":5626},{"id":5625},"compiling-to-qir",[5627],{"type":31,"value":5628},"Compiling to QIR",{"type":21,"tag":128,"props":5630,"children":5632},{"code":5631,"language":132,"meta":7,"className":130,"style":7},"theta = 0.3\nqasm_str = qml.to_openqasm(circuit)(theta)\n\ntarget_profile = TargetProfile.Base\nqir = compile(qasm_str, target_profile)\n",[5633],{"type":21,"tag":103,"props":5634,"children":5635},{"__ignoreMap":7},[5636,5652,5669,5676,5693],{"type":21,"tag":138,"props":5637,"children":5638},{"class":140,"line":141},[5639,5643,5647],{"type":21,"tag":138,"props":5640,"children":5641},{"style":151},[5642],{"type":31,"value":205},{"type":21,"tag":138,"props":5644,"children":5645},{"style":145},[5646],{"type":31,"value":210},{"type":21,"tag":138,"props":5648,"children":5649},{"style":213},[5650],{"type":31,"value":5651}," 0.3\n",{"type":21,"tag":138,"props":5653,"children":5654},{"class":140,"line":167},[5655,5660,5664],{"type":21,"tag":138,"props":5656,"children":5657},{"style":151},[5658],{"type":31,"value":5659},"qasm_str ",{"type":21,"tag":138,"props":5661,"children":5662},{"style":145},[5663],{"type":31,"value":210},{"type":21,"tag":138,"props":5665,"children":5666},{"style":151},[5667],{"type":31,"value":5668}," qml.to_openqasm(circuit)(theta)\n",{"type":21,"tag":138,"props":5670,"children":5671},{"class":140,"line":189},[5672],{"type":21,"tag":138,"props":5673,"children":5674},{"emptyLinePlaceholder":193},[5675],{"type":31,"value":196},{"type":21,"tag":138,"props":5677,"children":5678},{"class":140,"line":199},[5679,5684,5688],{"type":21,"tag":138,"props":5680,"children":5681},{"style":151},[5682],{"type":31,"value":5683},"target_profile ",{"type":21,"tag":138,"props":5685,"children":5686},{"style":145},[5687],{"type":31,"value":210},{"type":21,"tag":138,"props":5689,"children":5690},{"style":151},[5691],{"type":31,"value":5692}," TargetProfile.Base\n",{"type":21,"tag":138,"props":5694,"children":5695},{"class":140,"line":225},[5696,5701,5705,5710],{"type":21,"tag":138,"props":5697,"children":5698},{"style":151},[5699],{"type":31,"value":5700},"qir ",{"type":21,"tag":138,"props":5702,"children":5703},{"style":145},[5704],{"type":31,"value":210},{"type":21,"tag":138,"props":5706,"children":5707},{"style":213},[5708],{"type":31,"value":5709}," compile",{"type":21,"tag":138,"props":5711,"children":5712},{"style":151},[5713],{"type":31,"value":5714},"(qasm_str, target_profile)\n",{"type":21,"tag":22,"props":5716,"children":5717},{},[5718,5724,5726,5732],{"type":21,"tag":103,"props":5719,"children":5721},{"className":5720},[],[5722],{"type":31,"value":5723},"target_profile",{"type":31,"value":5725}," matters here in a way it doesn't for Qiskit or Cirq's integrations: QIR target profiles constrain what a circuit contains (dynamic control flow, mid-circuit measurement, and so on) based on what the specific hardware target supports, so the profile you pick has to match what you intend to submit to. ",{"type":21,"tag":103,"props":5727,"children":5729},{"className":5728},[],[5730],{"type":31,"value":5731},"TargetProfile.Base",{"type":31,"value":5733}," is the most restrictive and broadly compatible option, a reasonable default until a specific target's capabilities call for something more permissive.",{"type":21,"tag":41,"props":5735,"children":5737},{"id":5736},"submitting-the-compiled-circuit",[5738],{"type":31,"value":5739},"Submitting the compiled circuit",{"type":21,"tag":128,"props":5741,"children":5743},{"code":5742,"language":132,"meta":7,"className":130,"style":7},"workspace = Workspace(resource_id=\"\")\n\ntarget = workspace.get_targets(\"rigetti.sim.qvm\")\njob = target.submit(qir, \"pennylane-job\", shots=100)\n\nprint(job.get_results())\n",[5744],{"type":21,"tag":103,"props":5745,"children":5746},{"__ignoreMap":7},[5747,5778,5785,5811,5852,5859],{"type":21,"tag":138,"props":5748,"children":5749},{"class":140,"line":141},[5750,5754,5758,5762,5766,5770,5774],{"type":21,"tag":138,"props":5751,"children":5752},{"style":151},[5753],{"type":31,"value":4609},{"type":21,"tag":138,"props":5755,"children":5756},{"style":145},[5757],{"type":31,"value":210},{"type":21,"tag":138,"props":5759,"children":5760},{"style":151},[5761],{"type":31,"value":4618},{"type":21,"tag":138,"props":5763,"children":5764},{"style":929},[5765],{"type":31,"value":4623},{"type":21,"tag":138,"props":5767,"children":5768},{"style":145},[5769],{"type":31,"value":210},{"type":21,"tag":138,"props":5771,"children":5772},{"style":261},[5773],{"type":31,"value":4632},{"type":21,"tag":138,"props":5775,"children":5776},{"style":151},[5777],{"type":31,"value":269},{"type":21,"tag":138,"props":5779,"children":5780},{"class":140,"line":167},[5781],{"type":21,"tag":138,"props":5782,"children":5783},{"emptyLinePlaceholder":193},[5784],{"type":31,"value":196},{"type":21,"tag":138,"props":5786,"children":5787},{"class":140,"line":189},[5788,5793,5797,5802,5807],{"type":21,"tag":138,"props":5789,"children":5790},{"style":151},[5791],{"type":31,"value":5792},"target ",{"type":21,"tag":138,"props":5794,"children":5795},{"style":145},[5796],{"type":31,"value":210},{"type":21,"tag":138,"props":5798,"children":5799},{"style":151},[5800],{"type":31,"value":5801}," workspace.get_targets(",{"type":21,"tag":138,"props":5803,"children":5804},{"style":261},[5805],{"type":31,"value":5806},"\"rigetti.sim.qvm\"",{"type":21,"tag":138,"props":5808,"children":5809},{"style":151},[5810],{"type":31,"value":269},{"type":21,"tag":138,"props":5812,"children":5813},{"class":140,"line":199},[5814,5818,5822,5827,5832,5836,5840,5844,5848],{"type":21,"tag":138,"props":5815,"children":5816},{"style":151},[5817],{"type":31,"value":4994},{"type":21,"tag":138,"props":5819,"children":5820},{"style":145},[5821],{"type":31,"value":210},{"type":21,"tag":138,"props":5823,"children":5824},{"style":151},[5825],{"type":31,"value":5826}," target.submit(qir, ",{"type":21,"tag":138,"props":5828,"children":5829},{"style":261},[5830],{"type":31,"value":5831},"\"pennylane-job\"",{"type":21,"tag":138,"props":5833,"children":5834},{"style":151},[5835],{"type":31,"value":258},{"type":21,"tag":138,"props":5837,"children":5838},{"style":929},[5839],{"type":31,"value":932},{"type":21,"tag":138,"props":5841,"children":5842},{"style":145},[5843],{"type":31,"value":210},{"type":21,"tag":138,"props":5845,"children":5846},{"style":213},[5847],{"type":31,"value":4918},{"type":21,"tag":138,"props":5849,"children":5850},{"style":151},[5851],{"type":31,"value":269},{"type":21,"tag":138,"props":5853,"children":5854},{"class":140,"line":225},[5855],{"type":21,"tag":138,"props":5856,"children":5857},{"emptyLinePlaceholder":193},[5858],{"type":31,"value":196},{"type":21,"tag":138,"props":5860,"children":5861},{"class":140,"line":233},[5862,5866],{"type":21,"tag":138,"props":5863,"children":5864},{"style":213},[5865],{"type":31,"value":954},{"type":21,"tag":138,"props":5867,"children":5868},{"style":151},[5869],{"type":31,"value":5870},"(job.get_results())\n",{"type":21,"tag":22,"props":5872,"children":5873},{},[5874,5876,5882],{"type":31,"value":5875},"Note this workflow submits pre-compiled QIR directly through ",{"type":21,"tag":103,"props":5877,"children":5879},{"className":5878},[],[5880],{"type":31,"value":5881},"target.submit()",{"type":31,"value":5883},", not through anything resembling a PennyLane execution call. Once the circuit is compiled, PennyLane itself is out of the picture. Everything from here is the same target\u002Fworkspace API the Cirq and Qiskit integrations both build on.",{"type":21,"tag":41,"props":5885,"children":5887},{"id":5886},"why-the-three-integrations-diverge-this-much",[5888],{"type":31,"value":5889},"Why the three integrations diverge this much",{"type":21,"tag":22,"props":5891,"children":5892},{},[5893,5895,5901,5903,5909],{"type":31,"value":5894},"Qiskit gets the deepest integration because Microsoft's QDK is built with it as a first-class target, close enough to a native Qiskit backend that existing Qiskit code mostly works unmodified once the provider and backend are set up. Cirq's ",{"type":21,"tag":103,"props":5896,"children":5898},{"className":5897},[],[5899],{"type":31,"value":5900},"AzureQuantumService",{"type":31,"value":5902}," is a purpose-built bridge, functional but not identical to Cirq's own native execution objects, as the result-type gotcha above shows. PennyLane's path is the least native of the three: rather than a device plugin, it leans on QIR as a common intermediate format, which is a broader engineering choice (QIR is meant to be a vendor-neutral compilation target across numerous frontends) rather than a sign PennyLane support is an afterthought, but it does mean the code looks meaningfully different from PennyLane's typical ",{"type":21,"tag":103,"props":5904,"children":5906},{"className":5905},[],[5907],{"type":31,"value":5908},"qml.device(...)",{"type":31,"value":5910}," pattern elsewhere.",{"type":21,"tag":41,"props":5912,"children":5914},{"id":5913},"try-this-next",[5915],{"type":31,"value":5916},"Try this next",{"type":21,"tag":1118,"props":5918,"children":5919},{},[5920,5939,5951],{"type":21,"tag":71,"props":5921,"children":5922},{},[5923,5925,5930,5931,5937],{"type":31,"value":5924},"Run the same circuit through both ",{"type":21,"tag":103,"props":5926,"children":5928},{"className":5927},[],[5929],{"type":31,"value":4971},{"type":31,"value":3628},{"type":21,"tag":103,"props":5932,"children":5934},{"className":5933},[],[5935],{"type":31,"value":5936},"service.create_job()",{"type":31,"value":5938}," on the Cirq path, and confirm you understand the type difference between the two result objects before writing code that assumes one or the other.",{"type":21,"tag":71,"props":5940,"children":5941},{},[5942,5944,5949],{"type":31,"value":5943},"Try ",{"type":21,"tag":103,"props":5945,"children":5947},{"className":5946},[],[5948],{"type":31,"value":5731},{"type":31,"value":5950}," versus a less restrictive profile on the PennyLane path against a target that supports it, and see what compile-time errors show up when a circuit uses something the stricter profile disallows.",{"type":21,"tag":71,"props":5952,"children":5953},{},[5954,5956,5962],{"type":31,"value":5955},"Compare all three integrations against the same Rigetti or IonQ simulator target and note how much of the setup code (",{"type":21,"tag":103,"props":5957,"children":5959},{"className":5958},[],[5960],{"type":31,"value":5961},"Workspace",{"type":31,"value":5963},", resource ID, target listing) is genuinely shared versus SDK-specific.",{"type":21,"tag":1174,"props":5965,"children":5966},{},[5967],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":5969},[5970,5971,5972,5973,5974,5975,5976,5977,5978],{"id":4504,"depth":167,"text":4507},{"id":4730,"depth":167,"text":4733},{"id":4976,"depth":167,"text":4979},{"id":5144,"depth":167,"text":5147},{"id":5284,"depth":167,"text":5287},{"id":5625,"depth":167,"text":5628},{"id":5736,"depth":167,"text":5739},{"id":5886,"depth":167,"text":5889},{"id":5913,"depth":167,"text":5916},"content:blog:azure-quantum-cirq-pennylane-guide.md","blog\u002Fazure-quantum-cirq-pennylane-guide.md","blog\u002Fazure-quantum-cirq-pennylane-guide",{"_path":3659,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":5983,"description":5984,"date":4484,"author":11,"tags":5985,"readingTime":272,"body":5987,"_type":1193,"_id":6855,"_source":1195,"_file":6856,"_stem":6857,"_extension":1198},"Running Qiskit Circuits on Azure Quantum: A Practical Guide","How to submit Qiskit circuits to Azure Quantum hardware using the current qdk package: connecting to a workspace, listing targets, running on real hardware, handling qubit loss, and running locally on the QDK's sparse simulator without Azure at all.",[14,1213,5986],"Best Practices",{"type":18,"children":5988,"toc":6845},[5989,6010,6041,6047,6052,6058,6127,6132,6138,6245,6250,6256,6541,6554,6560,6565,6641,6661,6667,6679,6685,6690,6785,6790,6794,6841],{"type":21,"tag":22,"props":5990,"children":5991},{},[5992,5994,6000,6002,6008],{"type":31,"value":5993},"Azure Quantum gives Qiskit users access to hardware from multiple vendors, Rigetti, IonQ, and Quantinuum among them, through one workspace and one billing relationship. This walkthrough uses Microsoft's current Quantum Development Kit (QDK) package pattern, which replaced the older standalone ",{"type":21,"tag":103,"props":5995,"children":5997},{"className":5996},[],[5998],{"type":31,"value":5999},"azure-quantum",{"type":31,"value":6001}," package, covered as a migration note in our ",{"type":21,"tag":26,"props":6003,"children":6005},{"href":6004},"\u002Fblog\u002Fcommon-qiskit-errors-and-fixes",[6006],{"type":31,"value":6007},"common Qiskit errors post",{"type":31,"value":6009}," if you're updating existing code.",{"type":21,"tag":128,"props":6011,"children":6013},{"className":4512,"code":6012,"language":4511,"meta":7,"style":7},"pip install --upgrade \"qdk[azure,qiskit]\" ipykernel\n",[6014],{"type":21,"tag":103,"props":6015,"children":6016},{"__ignoreMap":7},[6017],{"type":21,"tag":138,"props":6018,"children":6019},{"class":140,"line":141},[6020,6024,6028,6032,6037],{"type":21,"tag":138,"props":6021,"children":6022},{"style":4522},[6023],{"type":31,"value":4525},{"type":21,"tag":138,"props":6025,"children":6026},{"style":261},[6027],{"type":31,"value":4530},{"type":21,"tag":138,"props":6029,"children":6030},{"style":213},[6031],{"type":31,"value":4535},{"type":21,"tag":138,"props":6033,"children":6034},{"style":261},[6035],{"type":31,"value":6036}," \"qdk[azure,qiskit]\"",{"type":21,"tag":138,"props":6038,"children":6039},{"style":261},[6040],{"type":31,"value":4545},{"type":21,"tag":41,"props":6042,"children":6044},{"id":6043},"prerequisites",[6045],{"type":31,"value":6046},"Prerequisites",{"type":21,"tag":22,"props":6048,"children":6049},{},[6050],{"type":31,"value":6051},"You need an Azure Quantum workspace already created in an Azure subscription, which is where billing, quotas, and provider access (which hardware vendors you've enabled) live. This guide assumes that workspace already exists. Setting one up happens through the Azure portal, not through Qiskit code.",{"type":21,"tag":41,"props":6053,"children":6055},{"id":6054},"connecting-to-your-workspace",[6056],{"type":31,"value":6057},"Connecting to your workspace",{"type":21,"tag":128,"props":6059,"children":6061},{"className":130,"code":6060,"language":132,"meta":7,"style":7},"from qdk.azure import Workspace\n\nworkspace = Workspace(resource_id=\"\")  # your workspace's resource ID, from the Azure portal\n",[6062],{"type":21,"tag":103,"props":6063,"children":6064},{"__ignoreMap":7},[6065,6084,6091],{"type":21,"tag":138,"props":6066,"children":6067},{"class":140,"line":141},[6068,6072,6076,6080],{"type":21,"tag":138,"props":6069,"children":6070},{"style":145},[6071],{"type":31,"value":148},{"type":21,"tag":138,"props":6073,"children":6074},{"style":151},[6075],{"type":31,"value":4564},{"type":21,"tag":138,"props":6077,"children":6078},{"style":145},[6079],{"type":31,"value":159},{"type":21,"tag":138,"props":6081,"children":6082},{"style":151},[6083],{"type":31,"value":4573},{"type":21,"tag":138,"props":6085,"children":6086},{"class":140,"line":167},[6087],{"type":21,"tag":138,"props":6088,"children":6089},{"emptyLinePlaceholder":193},[6090],{"type":31,"value":196},{"type":21,"tag":138,"props":6092,"children":6093},{"class":140,"line":189},[6094,6098,6102,6106,6110,6114,6118,6122],{"type":21,"tag":138,"props":6095,"children":6096},{"style":151},[6097],{"type":31,"value":4609},{"type":21,"tag":138,"props":6099,"children":6100},{"style":145},[6101],{"type":31,"value":210},{"type":21,"tag":138,"props":6103,"children":6104},{"style":151},[6105],{"type":31,"value":4618},{"type":21,"tag":138,"props":6107,"children":6108},{"style":929},[6109],{"type":31,"value":4623},{"type":21,"tag":138,"props":6111,"children":6112},{"style":145},[6113],{"type":31,"value":210},{"type":21,"tag":138,"props":6115,"children":6116},{"style":261},[6117],{"type":31,"value":4632},{"type":21,"tag":138,"props":6119,"children":6120},{"style":151},[6121],{"type":31,"value":4637},{"type":21,"tag":138,"props":6123,"children":6124},{"style":219},[6125],{"type":31,"value":6126},"# your workspace's resource ID, from the Azure portal\n",{"type":21,"tag":22,"props":6128,"children":6129},{},[6130],{"type":31,"value":6131},"The resource ID identifies your specific workspace and is found on its Overview page in the Azure portal. Nothing about this step is Qiskit-specific: it's the identical connection object other language integrations (Cirq, Q#) use too.",{"type":21,"tag":41,"props":6133,"children":6135},{"id":6134},"listing-available-targets",[6136],{"type":31,"value":6137},"Listing available targets",{"type":21,"tag":128,"props":6139,"children":6141},{"className":130,"code":6140,"language":132,"meta":7,"style":7},"from qdk.azure.qiskit import AzureQuantumProvider\n\nprovider = AzureQuantumProvider(workspace)\n\nfor backend in provider.backends():\n    print(\"- \" + backend.name)\n",[6142],{"type":21,"tag":103,"props":6143,"children":6144},{"__ignoreMap":7},[6145,6166,6173,6190,6197,6218],{"type":21,"tag":138,"props":6146,"children":6147},{"class":140,"line":141},[6148,6152,6157,6161],{"type":21,"tag":138,"props":6149,"children":6150},{"style":145},[6151],{"type":31,"value":148},{"type":21,"tag":138,"props":6153,"children":6154},{"style":151},[6155],{"type":31,"value":6156}," qdk.azure.qiskit ",{"type":21,"tag":138,"props":6158,"children":6159},{"style":145},[6160],{"type":31,"value":159},{"type":21,"tag":138,"props":6162,"children":6163},{"style":151},[6164],{"type":31,"value":6165}," AzureQuantumProvider\n",{"type":21,"tag":138,"props":6167,"children":6168},{"class":140,"line":167},[6169],{"type":21,"tag":138,"props":6170,"children":6171},{"emptyLinePlaceholder":193},[6172],{"type":31,"value":196},{"type":21,"tag":138,"props":6174,"children":6175},{"class":140,"line":189},[6176,6181,6185],{"type":21,"tag":138,"props":6177,"children":6178},{"style":151},[6179],{"type":31,"value":6180},"provider ",{"type":21,"tag":138,"props":6182,"children":6183},{"style":145},[6184],{"type":31,"value":210},{"type":21,"tag":138,"props":6186,"children":6187},{"style":151},[6188],{"type":31,"value":6189}," AzureQuantumProvider(workspace)\n",{"type":21,"tag":138,"props":6191,"children":6192},{"class":140,"line":199},[6193],{"type":21,"tag":138,"props":6194,"children":6195},{"emptyLinePlaceholder":193},[6196],{"type":31,"value":196},{"type":21,"tag":138,"props":6198,"children":6199},{"class":140,"line":225},[6200,6204,6209,6213],{"type":21,"tag":138,"props":6201,"children":6202},{"style":145},[6203],{"type":31,"value":1492},{"type":21,"tag":138,"props":6205,"children":6206},{"style":151},[6207],{"type":31,"value":6208}," backend ",{"type":21,"tag":138,"props":6210,"children":6211},{"style":145},[6212],{"type":31,"value":1502},{"type":21,"tag":138,"props":6214,"children":6215},{"style":151},[6216],{"type":31,"value":6217}," provider.backends():\n",{"type":21,"tag":138,"props":6219,"children":6220},{"class":140,"line":233},[6221,6226,6230,6235,6240],{"type":21,"tag":138,"props":6222,"children":6223},{"style":213},[6224],{"type":31,"value":6225},"    print",{"type":21,"tag":138,"props":6227,"children":6228},{"style":151},[6229],{"type":31,"value":959},{"type":21,"tag":138,"props":6231,"children":6232},{"style":261},[6233],{"type":31,"value":6234},"\"- \"",{"type":21,"tag":138,"props":6236,"children":6237},{"style":145},[6238],{"type":31,"value":6239}," +",{"type":21,"tag":138,"props":6241,"children":6242},{"style":151},[6243],{"type":31,"value":6244}," backend.name)\n",{"type":21,"tag":22,"props":6246,"children":6247},{},[6248],{"type":31,"value":6249},"Only the targets enabled for your specific workspace show up here, which depends on which hardware providers you've added in the Azure portal, not on what Azure Quantum offers in general. A workspace with only Rigetti enabled won't list IonQ or Quantinuum targets, regardless of what's technically available on the platform.",{"type":21,"tag":41,"props":6251,"children":6253},{"id":6252},"running-a-circuit",[6254],{"type":31,"value":6255},"Running a circuit",{"type":21,"tag":128,"props":6257,"children":6259},{"className":130,"code":6258,"language":132,"meta":7,"style":7},"from qiskit import QuantumCircuit\n\ncircuit = QuantumCircuit(3, 3)\ncircuit.h(0)\ncircuit.cx(0, 1)\ncircuit.cx(1, 2)\ncircuit.measure([0, 1, 2], [0, 1, 2])\n\nbackend = provider.get_backend(\"rigetti.sim.qvm\")\njob = backend.run(circuit, shots=1000)\n\nresult = job.result()\nprint(result.get_counts(circuit))\n",[6260],{"type":21,"tag":103,"props":6261,"children":6262},{"__ignoreMap":7},[6263,6283,6290,6322,6338,6362,6385,6442,6449,6474,6506,6513,6529],{"type":21,"tag":138,"props":6264,"children":6265},{"class":140,"line":141},[6266,6270,6274,6278],{"type":21,"tag":138,"props":6267,"children":6268},{"style":145},[6269],{"type":31,"value":148},{"type":21,"tag":138,"props":6271,"children":6272},{"style":151},[6273],{"type":31,"value":154},{"type":21,"tag":138,"props":6275,"children":6276},{"style":145},[6277],{"type":31,"value":159},{"type":21,"tag":138,"props":6279,"children":6280},{"style":151},[6281],{"type":31,"value":6282}," QuantumCircuit\n",{"type":21,"tag":138,"props":6284,"children":6285},{"class":140,"line":167},[6286],{"type":21,"tag":138,"props":6287,"children":6288},{"emptyLinePlaceholder":193},[6289],{"type":31,"value":196},{"type":21,"tag":138,"props":6291,"children":6292},{"class":140,"line":189},[6293,6297,6301,6306,6310,6314,6318],{"type":21,"tag":138,"props":6294,"children":6295},{"style":151},[6296],{"type":31,"value":4792},{"type":21,"tag":138,"props":6298,"children":6299},{"style":145},[6300],{"type":31,"value":210},{"type":21,"tag":138,"props":6302,"children":6303},{"style":151},[6304],{"type":31,"value":6305}," QuantumCircuit(",{"type":21,"tag":138,"props":6307,"children":6308},{"style":213},[6309],{"type":31,"value":253},{"type":21,"tag":138,"props":6311,"children":6312},{"style":151},[6313],{"type":31,"value":258},{"type":21,"tag":138,"props":6315,"children":6316},{"style":213},[6317],{"type":31,"value":253},{"type":21,"tag":138,"props":6319,"children":6320},{"style":151},[6321],{"type":31,"value":269},{"type":21,"tag":138,"props":6323,"children":6324},{"class":140,"line":199},[6325,6330,6334],{"type":21,"tag":138,"props":6326,"children":6327},{"style":151},[6328],{"type":31,"value":6329},"circuit.h(",{"type":21,"tag":138,"props":6331,"children":6332},{"style":213},[6333],{"type":31,"value":406},{"type":21,"tag":138,"props":6335,"children":6336},{"style":151},[6337],{"type":31,"value":269},{"type":21,"tag":138,"props":6339,"children":6340},{"class":140,"line":225},[6341,6346,6350,6354,6358],{"type":21,"tag":138,"props":6342,"children":6343},{"style":151},[6344],{"type":31,"value":6345},"circuit.cx(",{"type":21,"tag":138,"props":6347,"children":6348},{"style":213},[6349],{"type":31,"value":406},{"type":21,"tag":138,"props":6351,"children":6352},{"style":151},[6353],{"type":31,"value":258},{"type":21,"tag":138,"props":6355,"children":6356},{"style":213},[6357],{"type":31,"value":327},{"type":21,"tag":138,"props":6359,"children":6360},{"style":151},[6361],{"type":31,"value":269},{"type":21,"tag":138,"props":6363,"children":6364},{"class":140,"line":233},[6365,6369,6373,6377,6381],{"type":21,"tag":138,"props":6366,"children":6367},{"style":151},[6368],{"type":31,"value":6345},{"type":21,"tag":138,"props":6370,"children":6371},{"style":213},[6372],{"type":31,"value":327},{"type":21,"tag":138,"props":6374,"children":6375},{"style":151},[6376],{"type":31,"value":258},{"type":21,"tag":138,"props":6378,"children":6379},{"style":213},[6380],{"type":31,"value":292},{"type":21,"tag":138,"props":6382,"children":6383},{"style":151},[6384],{"type":31,"value":269},{"type":21,"tag":138,"props":6386,"children":6387},{"class":140,"line":272},[6388,6393,6397,6401,6405,6409,6413,6418,6422,6426,6430,6434,6438],{"type":21,"tag":138,"props":6389,"children":6390},{"style":151},[6391],{"type":31,"value":6392},"circuit.measure([",{"type":21,"tag":138,"props":6394,"children":6395},{"style":213},[6396],{"type":31,"value":406},{"type":21,"tag":138,"props":6398,"children":6399},{"style":151},[6400],{"type":31,"value":258},{"type":21,"tag":138,"props":6402,"children":6403},{"style":213},[6404],{"type":31,"value":327},{"type":21,"tag":138,"props":6406,"children":6407},{"style":151},[6408],{"type":31,"value":258},{"type":21,"tag":138,"props":6410,"children":6411},{"style":213},[6412],{"type":31,"value":292},{"type":21,"tag":138,"props":6414,"children":6415},{"style":151},[6416],{"type":31,"value":6417},"], [",{"type":21,"tag":138,"props":6419,"children":6420},{"style":213},[6421],{"type":31,"value":406},{"type":21,"tag":138,"props":6423,"children":6424},{"style":151},[6425],{"type":31,"value":258},{"type":21,"tag":138,"props":6427,"children":6428},{"style":213},[6429],{"type":31,"value":327},{"type":21,"tag":138,"props":6431,"children":6432},{"style":151},[6433],{"type":31,"value":258},{"type":21,"tag":138,"props":6435,"children":6436},{"style":213},[6437],{"type":31,"value":292},{"type":21,"tag":138,"props":6439,"children":6440},{"style":151},[6441],{"type":31,"value":598},{"type":21,"tag":138,"props":6443,"children":6444},{"class":140,"line":308},[6445],{"type":21,"tag":138,"props":6446,"children":6447},{"emptyLinePlaceholder":193},[6448],{"type":31,"value":196},{"type":21,"tag":138,"props":6450,"children":6451},{"class":140,"line":16},[6452,6457,6461,6466,6470],{"type":21,"tag":138,"props":6453,"children":6454},{"style":151},[6455],{"type":31,"value":6456},"backend ",{"type":21,"tag":138,"props":6458,"children":6459},{"style":145},[6460],{"type":31,"value":210},{"type":21,"tag":138,"props":6462,"children":6463},{"style":151},[6464],{"type":31,"value":6465}," provider.get_backend(",{"type":21,"tag":138,"props":6467,"children":6468},{"style":261},[6469],{"type":31,"value":5806},{"type":21,"tag":138,"props":6471,"children":6472},{"style":151},[6473],{"type":31,"value":269},{"type":21,"tag":138,"props":6475,"children":6476},{"class":140,"line":360},[6477,6481,6485,6490,6494,6498,6502],{"type":21,"tag":138,"props":6478,"children":6479},{"style":151},[6480],{"type":31,"value":4994},{"type":21,"tag":138,"props":6482,"children":6483},{"style":145},[6484],{"type":31,"value":210},{"type":21,"tag":138,"props":6486,"children":6487},{"style":151},[6488],{"type":31,"value":6489}," backend.run(circuit, ",{"type":21,"tag":138,"props":6491,"children":6492},{"style":929},[6493],{"type":31,"value":932},{"type":21,"tag":138,"props":6495,"children":6496},{"style":145},[6497],{"type":31,"value":210},{"type":21,"tag":138,"props":6499,"children":6500},{"style":213},[6501],{"type":31,"value":1736},{"type":21,"tag":138,"props":6503,"children":6504},{"style":151},[6505],{"type":31,"value":269},{"type":21,"tag":138,"props":6507,"children":6508},{"class":140,"line":368},[6509],{"type":21,"tag":138,"props":6510,"children":6511},{"emptyLinePlaceholder":193},[6512],{"type":31,"value":196},{"type":21,"tag":138,"props":6514,"children":6515},{"class":140,"line":377},[6516,6520,6524],{"type":21,"tag":138,"props":6517,"children":6518},{"style":151},[6519],{"type":31,"value":4881},{"type":21,"tag":138,"props":6521,"children":6522},{"style":145},[6523],{"type":31,"value":210},{"type":21,"tag":138,"props":6525,"children":6526},{"style":151},[6527],{"type":31,"value":6528}," job.result()\n",{"type":21,"tag":138,"props":6530,"children":6531},{"class":140,"line":386},[6532,6536],{"type":21,"tag":138,"props":6533,"children":6534},{"style":213},[6535],{"type":31,"value":954},{"type":21,"tag":138,"props":6537,"children":6538},{"style":151},[6539],{"type":31,"value":6540},"(result.get_counts(circuit))\n",{"type":21,"tag":22,"props":6542,"children":6543},{},[6544,6546,6552],{"type":31,"value":6545},"This targets Rigetti's simulator, a free target on most workspaces, useful for confirming your circuit and workspace connection both work before spending real budget on QPU time. Swap the backend name for a real QPU target (one of the names printed by ",{"type":21,"tag":103,"props":6547,"children":6549},{"className":6548},[],[6550],{"type":31,"value":6551},"provider.backends()",{"type":31,"value":6553}," above) once you're ready to run on hardware.",{"type":21,"tag":41,"props":6555,"children":6557},{"id":6556},"handling-qubit-loss-in-results",[6558],{"type":31,"value":6559},"Handling qubit loss in results",{"type":21,"tag":22,"props":6561,"children":6562},{},[6563],{"type":31,"value":6564},"Some hardware modalities lose a qubit mid-shot on occasion (an atom escaping an optical trap, for instance), and Azure Quantum's Qiskit results distinguish shots that completed cleanly from the raw total:",{"type":21,"tag":128,"props":6566,"children":6568},{"className":130,"code":6567,"language":132,"meta":7,"style":7},"print(\"Counts:\", result.results[0].data.counts)          # shots without qubit loss\nprint(\"Raw counts:\", result.results[0].data.raw_counts)   # every shot, including lost ones\n",[6569],{"type":21,"tag":103,"props":6570,"children":6571},{"__ignoreMap":7},[6572,6607],{"type":21,"tag":138,"props":6573,"children":6574},{"class":140,"line":141},[6575,6579,6583,6588,6593,6597,6602],{"type":21,"tag":138,"props":6576,"children":6577},{"style":213},[6578],{"type":31,"value":954},{"type":21,"tag":138,"props":6580,"children":6581},{"style":151},[6582],{"type":31,"value":959},{"type":21,"tag":138,"props":6584,"children":6585},{"style":261},[6586],{"type":31,"value":6587},"\"Counts:\"",{"type":21,"tag":138,"props":6589,"children":6590},{"style":151},[6591],{"type":31,"value":6592},", result.results[",{"type":21,"tag":138,"props":6594,"children":6595},{"style":213},[6596],{"type":31,"value":406},{"type":21,"tag":138,"props":6598,"children":6599},{"style":151},[6600],{"type":31,"value":6601},"].data.counts)          ",{"type":21,"tag":138,"props":6603,"children":6604},{"style":219},[6605],{"type":31,"value":6606},"# shots without qubit loss\n",{"type":21,"tag":138,"props":6608,"children":6609},{"class":140,"line":167},[6610,6614,6618,6623,6627,6631,6636],{"type":21,"tag":138,"props":6611,"children":6612},{"style":213},[6613],{"type":31,"value":954},{"type":21,"tag":138,"props":6615,"children":6616},{"style":151},[6617],{"type":31,"value":959},{"type":21,"tag":138,"props":6619,"children":6620},{"style":261},[6621],{"type":31,"value":6622},"\"Raw counts:\"",{"type":21,"tag":138,"props":6624,"children":6625},{"style":151},[6626],{"type":31,"value":6592},{"type":21,"tag":138,"props":6628,"children":6629},{"style":213},[6630],{"type":31,"value":406},{"type":21,"tag":138,"props":6632,"children":6633},{"style":151},[6634],{"type":31,"value":6635},"].data.raw_counts)   ",{"type":21,"tag":138,"props":6637,"children":6638},{"style":219},[6639],{"type":31,"value":6640},"# every shot, including lost ones\n",{"type":21,"tag":22,"props":6642,"children":6643},{},[6644,6646,6652,6653,6659],{"type":31,"value":6645},"If ",{"type":21,"tag":103,"props":6647,"children":6649},{"className":6648},[],[6650],{"type":31,"value":6651},"counts",{"type":31,"value":3628},{"type":21,"tag":103,"props":6654,"children":6656},{"className":6655},[],[6657],{"type":31,"value":6658},"raw_counts",{"type":31,"value":6660}," differ, some fraction of your shots were dropped due to qubit loss during that run, worth checking on unfamiliar hardware before assuming your total shot count matches what you requested. For targets that don't experience qubit loss, the two are identical.",{"type":21,"tag":41,"props":6662,"children":6664},{"id":6663},"estimating-cost-before-running-on-real-hardware",[6665],{"type":31,"value":6666},"Estimating cost before running on real hardware",{"type":21,"tag":22,"props":6668,"children":6669},{},[6670,6672,6677],{"type":31,"value":6671},"Real QPU targets bill per shot or per task depending on the provider, and both IonQ's and Quantinuum's pricing details live in the Azure Quantum documentation rather than in the SDK itself. Check current pricing, and your workspace's specific rate, in the Provider tab of your workspace in the Azure portal before submitting a real hardware job at any meaningful shot count, the same discipline worth applying to any pay-per-shot QPU access, ",{"type":21,"tag":26,"props":6673,"children":6674},{"href":3666},[6675],{"type":31,"value":6676},"Amazon Braket included",{"type":31,"value":6678},".",{"type":21,"tag":41,"props":6680,"children":6682},{"id":6681},"running-locally-without-azure-at-all",[6683],{"type":31,"value":6684},"Running locally without Azure at all",{"type":21,"tag":22,"props":6686,"children":6687},{},[6688],{"type":31,"value":6689},"The QDK also ships a local simulator that needs no Azure connection or workspace, useful for iterating on circuit logic before you're ready to submit anything remotely:",{"type":21,"tag":128,"props":6691,"children":6693},{"className":130,"code":6692,"language":132,"meta":7,"style":7},"from qsharp.interop.qiskit import QSharpBackend\n\nbackend = QSharpBackend()\njob = backend.run(circuit)\ncounts = job.result().get_counts()\nprint(counts)\n",[6694],{"type":21,"tag":103,"props":6695,"children":6696},{"__ignoreMap":7},[6697,6718,6725,6741,6757,6773],{"type":21,"tag":138,"props":6698,"children":6699},{"class":140,"line":141},[6700,6704,6709,6713],{"type":21,"tag":138,"props":6701,"children":6702},{"style":145},[6703],{"type":31,"value":148},{"type":21,"tag":138,"props":6705,"children":6706},{"style":151},[6707],{"type":31,"value":6708}," qsharp.interop.qiskit ",{"type":21,"tag":138,"props":6710,"children":6711},{"style":145},[6712],{"type":31,"value":159},{"type":21,"tag":138,"props":6714,"children":6715},{"style":151},[6716],{"type":31,"value":6717}," QSharpBackend\n",{"type":21,"tag":138,"props":6719,"children":6720},{"class":140,"line":167},[6721],{"type":21,"tag":138,"props":6722,"children":6723},{"emptyLinePlaceholder":193},[6724],{"type":31,"value":196},{"type":21,"tag":138,"props":6726,"children":6727},{"class":140,"line":189},[6728,6732,6736],{"type":21,"tag":138,"props":6729,"children":6730},{"style":151},[6731],{"type":31,"value":6456},{"type":21,"tag":138,"props":6733,"children":6734},{"style":145},[6735],{"type":31,"value":210},{"type":21,"tag":138,"props":6737,"children":6738},{"style":151},[6739],{"type":31,"value":6740}," QSharpBackend()\n",{"type":21,"tag":138,"props":6742,"children":6743},{"class":140,"line":199},[6744,6748,6752],{"type":21,"tag":138,"props":6745,"children":6746},{"style":151},[6747],{"type":31,"value":4994},{"type":21,"tag":138,"props":6749,"children":6750},{"style":145},[6751],{"type":31,"value":210},{"type":21,"tag":138,"props":6753,"children":6754},{"style":151},[6755],{"type":31,"value":6756}," backend.run(circuit)\n",{"type":21,"tag":138,"props":6758,"children":6759},{"class":140,"line":225},[6760,6764,6768],{"type":21,"tag":138,"props":6761,"children":6762},{"style":151},[6763],{"type":31,"value":917},{"type":21,"tag":138,"props":6765,"children":6766},{"style":145},[6767],{"type":31,"value":210},{"type":21,"tag":138,"props":6769,"children":6770},{"style":151},[6771],{"type":31,"value":6772}," job.result().get_counts()\n",{"type":21,"tag":138,"props":6774,"children":6775},{"class":140,"line":233},[6776,6780],{"type":21,"tag":138,"props":6777,"children":6778},{"style":213},[6779],{"type":31,"value":954},{"type":21,"tag":138,"props":6781,"children":6782},{"style":151},[6783],{"type":31,"value":6784},"(counts)\n",{"type":21,"tag":22,"props":6786,"children":6787},{},[6788],{"type":31,"value":6789},"This is a genuinely separate code path from the Azure-connected backend above, worth using during development specifically because it has zero cost and zero queue time, reserving the Azure-connected run for once real hardware or a provider-specific cloud simulator is what you need.",{"type":21,"tag":41,"props":6791,"children":6792},{"id":5913},[6793],{"type":31,"value":5916},{"type":21,"tag":1118,"props":6795,"children":6796},{},[6797,6818,6829],{"type":21,"tag":71,"props":6798,"children":6799},{},[6800,6802,6808,6810,6816],{"type":31,"value":6801},"Run the identical circuit against ",{"type":21,"tag":103,"props":6803,"children":6805},{"className":6804},[],[6806],{"type":31,"value":6807},"rigetti.sim.qvm",{"type":31,"value":6809}," and the local ",{"type":21,"tag":103,"props":6811,"children":6813},{"className":6812},[],[6814],{"type":31,"value":6815},"QSharpBackend",{"type":31,"value":6817},", and confirm the resulting counts distributions match within normal shot noise, a good sanity check that your circuit behaves consistently across both paths.",{"type":21,"tag":71,"props":6819,"children":6820},{},[6821,6823,6828],{"type":31,"value":6822},"List your workspace's available targets and examine queue times before submitting to real hardware, since a busy QPU target behaves like a stuck job the same way it does on ",{"type":21,"tag":26,"props":6824,"children":6825},{"href":1976},[6826],{"type":31,"value":6827},"IBM's free tier",{"type":31,"value":6678},{"type":21,"tag":71,"props":6830,"children":6831},{},[6832,6834,6839],{"type":31,"value":6833},"Compare this workflow against ",{"type":21,"tag":26,"props":6835,"children":6836},{"href":6004},[6837],{"type":31,"value":6838},"running Qiskit on IBM's own Runtime service",{"type":31,"value":6840}," if you're deciding between IBM-direct access and multi-vendor access through Azure Quantum.",{"type":21,"tag":1174,"props":6842,"children":6843},{},[6844],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":6846},[6847,6848,6849,6850,6851,6852,6853,6854],{"id":6043,"depth":167,"text":6046},{"id":6054,"depth":167,"text":6057},{"id":6134,"depth":167,"text":6137},{"id":6252,"depth":167,"text":6255},{"id":6556,"depth":167,"text":6559},{"id":6663,"depth":167,"text":6666},{"id":6681,"depth":167,"text":6684},{"id":5913,"depth":167,"text":5916},"content:blog:azure-quantum-qiskit-practical-guide.md","blog\u002Fazure-quantum-qiskit-practical-guide.md","blog\u002Fazure-quantum-qiskit-practical-guide",{"_path":3666,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":6859,"description":6860,"date":4484,"author":11,"tags":6861,"readingTime":233,"body":6862,"_type":1193,"_id":7220,"_source":1195,"_file":7221,"_stem":7222,"_extension":1198},"Common Amazon Braket Errors and How to Fix Them","The mistakes that trip up Braket users most: missing AWS credentials, S3 bucket region mismatches, IAM permission gaps, device availability windows, and cost surprises on real QPU tasks. Each with the fix.",[3054,5986,1213],{"type":18,"children":6863,"toc":7211},[6864,6869,6879,6961,7004,7016,7044,7050,7103,7142,7148,7169,7175,7196,7202,7207],{"type":21,"tag":22,"props":6865,"children":6866},{},[6867],{"type":31,"value":6868},"Braket's errors are different in character from Qiskit's, Cirq's, or PennyLane's, because Braket rides on top of AWS infrastructure. Most problems aren't about circuit construction. They're about AWS account setup, permissions, and the operational realities of submitting jobs to hardware you don't control the schedule of.",{"type":21,"tag":41,"props":6870,"children":6872},{"id":6871},"nocredentialserror",[6873],{"type":21,"tag":103,"props":6874,"children":6876},{"className":6875},[],[6877],{"type":31,"value":6878},"NoCredentialsError",{"type":21,"tag":128,"props":6880,"children":6882},{"className":130,"code":6881,"language":132,"meta":7,"style":7},"from braket.aws import AwsDevice\ndevice = AwsDevice(\"arn:aws:braket:::device\u002Fquantum-simulator\u002Famazon\u002Fsv1\")\ndevice.run(circuit, shots=100)  # botocore.exceptions.NoCredentialsError\n",[6883],{"type":21,"tag":103,"props":6884,"children":6885},{"__ignoreMap":7},[6886,6907,6932],{"type":21,"tag":138,"props":6887,"children":6888},{"class":140,"line":141},[6889,6893,6898,6902],{"type":21,"tag":138,"props":6890,"children":6891},{"style":145},[6892],{"type":31,"value":148},{"type":21,"tag":138,"props":6894,"children":6895},{"style":151},[6896],{"type":31,"value":6897}," braket.aws ",{"type":21,"tag":138,"props":6899,"children":6900},{"style":145},[6901],{"type":31,"value":159},{"type":21,"tag":138,"props":6903,"children":6904},{"style":151},[6905],{"type":31,"value":6906}," AwsDevice\n",{"type":21,"tag":138,"props":6908,"children":6909},{"class":140,"line":167},[6910,6914,6918,6923,6928],{"type":21,"tag":138,"props":6911,"children":6912},{"style":151},[6913],{"type":31,"value":5437},{"type":21,"tag":138,"props":6915,"children":6916},{"style":145},[6917],{"type":31,"value":210},{"type":21,"tag":138,"props":6919,"children":6920},{"style":151},[6921],{"type":31,"value":6922}," AwsDevice(",{"type":21,"tag":138,"props":6924,"children":6925},{"style":261},[6926],{"type":31,"value":6927},"\"arn:aws:braket:::device\u002Fquantum-simulator\u002Famazon\u002Fsv1\"",{"type":21,"tag":138,"props":6929,"children":6930},{"style":151},[6931],{"type":31,"value":269},{"type":21,"tag":138,"props":6933,"children":6934},{"class":140,"line":189},[6935,6940,6944,6948,6952,6956],{"type":21,"tag":138,"props":6936,"children":6937},{"style":151},[6938],{"type":31,"value":6939},"device.run(circuit, ",{"type":21,"tag":138,"props":6941,"children":6942},{"style":929},[6943],{"type":31,"value":932},{"type":21,"tag":138,"props":6945,"children":6946},{"style":145},[6947],{"type":31,"value":210},{"type":21,"tag":138,"props":6949,"children":6950},{"style":213},[6951],{"type":31,"value":4918},{"type":21,"tag":138,"props":6953,"children":6954},{"style":151},[6955],{"type":31,"value":4637},{"type":21,"tag":138,"props":6957,"children":6958},{"style":219},[6959],{"type":31,"value":6960},"# botocore.exceptions.NoCredentialsError\n",{"type":21,"tag":22,"props":6962,"children":6963},{},[6964,6966,6972,6974,6980,6981,6987,6989,6994,6996,7002],{"type":31,"value":6965},"Braket's SDK authenticates through the same credential chain as any AWS SDK (boto3), not through its own login system. If credentials aren't configured, either via ",{"type":21,"tag":103,"props":6967,"children":6969},{"className":6968},[],[6970],{"type":31,"value":6971},"aws configure",{"type":31,"value":6973},", environment variables (",{"type":21,"tag":103,"props":6975,"children":6977},{"className":6976},[],[6978],{"type":31,"value":6979},"AWS_ACCESS_KEY_ID",{"type":31,"value":258},{"type":21,"tag":103,"props":6982,"children":6984},{"className":6983},[],[6985],{"type":31,"value":6986},"AWS_SECRET_ACCESS_KEY",{"type":31,"value":6988},"), or an attached IAM role if you're running inside AWS infrastructure, every Braket call fails at the authentication step regardless of what the circuit does. Run ",{"type":21,"tag":103,"props":6990,"children":6992},{"className":6991},[],[6993],{"type":31,"value":6971},{"type":31,"value":6995}," once locally, or verify credentials are present with ",{"type":21,"tag":103,"props":6997,"children":6999},{"className":6998},[],[7000],{"type":31,"value":7001},"aws sts get-caller-identity",{"type":31,"value":7003}," before debugging anything circuit-related.",{"type":21,"tag":41,"props":7005,"children":7007},{"id":7006},"accessdeniedexception-on-a-device-or-s3-bucket",[7008,7014],{"type":21,"tag":103,"props":7009,"children":7011},{"className":7010},[],[7012],{"type":31,"value":7013},"AccessDeniedException",{"type":31,"value":7015}," on a device or S3 bucket",{"type":21,"tag":22,"props":7017,"children":7018},{},[7019,7021,7027,7029,7035,7036,7042],{"type":31,"value":7020},"Braket needs two separate permission grants: access to submit tasks to the specific device or simulator ARN, and write access to the S3 bucket where results get stored. An IAM policy that grants one but not the other produces an access-denied error that names the resource but not always clearly which permission is missing. Check that your IAM role or user has both ",{"type":21,"tag":103,"props":7022,"children":7024},{"className":7023},[],[7025],{"type":31,"value":7026},"braket:*",{"type":31,"value":7028}," permissions scoped to the device you're targeting and ",{"type":21,"tag":103,"props":7030,"children":7032},{"className":7031},[],[7033],{"type":31,"value":7034},"s3:PutObject",{"type":31,"value":5075},{"type":21,"tag":103,"props":7037,"children":7039},{"className":7038},[],[7040],{"type":31,"value":7041},"s3:GetObject",{"type":31,"value":7043}," on the results bucket.",{"type":21,"tag":41,"props":7045,"children":7047},{"id":7046},"s3-bucket-region-mismatch",[7048],{"type":31,"value":7049},"S3 bucket region mismatch",{"type":21,"tag":128,"props":7051,"children":7053},{"className":130,"code":7052,"language":132,"meta":7,"style":7},"device.run(circuit, s3_destination_folder=(\"my-bucket\", \"results\"))\n# ClientError: bucket must be in the same region as the device\n",[7054],{"type":21,"tag":103,"props":7055,"children":7056},{"__ignoreMap":7},[7057,7095],{"type":21,"tag":138,"props":7058,"children":7059},{"class":140,"line":141},[7060,7064,7069,7073,7077,7082,7086,7091],{"type":21,"tag":138,"props":7061,"children":7062},{"style":151},[7063],{"type":31,"value":6939},{"type":21,"tag":138,"props":7065,"children":7066},{"style":929},[7067],{"type":31,"value":7068},"s3_destination_folder",{"type":21,"tag":138,"props":7070,"children":7071},{"style":145},[7072],{"type":31,"value":210},{"type":21,"tag":138,"props":7074,"children":7075},{"style":151},[7076],{"type":31,"value":959},{"type":21,"tag":138,"props":7078,"children":7079},{"style":261},[7080],{"type":31,"value":7081},"\"my-bucket\"",{"type":21,"tag":138,"props":7083,"children":7084},{"style":151},[7085],{"type":31,"value":258},{"type":21,"tag":138,"props":7087,"children":7088},{"style":261},[7089],{"type":31,"value":7090},"\"results\"",{"type":21,"tag":138,"props":7092,"children":7093},{"style":151},[7094],{"type":31,"value":5609},{"type":21,"tag":138,"props":7096,"children":7097},{"class":140,"line":167},[7098],{"type":21,"tag":138,"props":7099,"children":7100},{"style":219},[7101],{"type":31,"value":7102},"# ClientError: bucket must be in the same region as the device\n",{"type":21,"tag":22,"props":7104,"children":7105},{},[7106,7108,7114,7116,7122,7124,7130,7132,7140],{"type":31,"value":7107},"Braket requires the S3 bucket storing results to be in the same AWS region as the device you're submitting to. A bucket created in ",{"type":21,"tag":103,"props":7109,"children":7111},{"className":7110},[],[7112],{"type":31,"value":7113},"us-east-1",{"type":31,"value":7115}," won't work with a device only available in ",{"type":21,"tag":103,"props":7117,"children":7119},{"className":7118},[],[7120],{"type":31,"value":7121},"us-west-1",{"type":31,"value":7123},", and the error names the mismatch but not always which region the device needs. Check the device's region with ",{"type":21,"tag":103,"props":7125,"children":7127},{"className":7126},[],[7128],{"type":31,"value":7129},"AwsDevice(...).properties",{"type":31,"value":7131}," or the ",{"type":21,"tag":26,"props":7133,"children":7137},{"href":7134,"rel":7135},"https:\u002F\u002Fconsole.aws.amazon.com\u002Fbraket\u002F",[7136],"nofollow",[7138],{"type":31,"value":7139},"Braket console",{"type":31,"value":7141}," before creating the results bucket, not after.",{"type":21,"tag":41,"props":7143,"children":7145},{"id":7144},"a-task-that-looks-stuck-but-is-only-queued",[7146],{"type":31,"value":7147},"A task that looks stuck but is only queued",{"type":21,"tag":22,"props":7149,"children":7150},{},[7151,7153,7159,7161,7167],{"type":31,"value":7152},"Real QPU devices on Braket (Rigetti, IonQ, QuEra, and others available through it) run on availability windows, not on-demand. A task submitted while a device is offline doesn't error, it queues indefinitely until the device's next window opens, which from the caller's side looks identical to a hang. Check ",{"type":21,"tag":103,"props":7154,"children":7156},{"className":7155},[],[7157],{"type":31,"value":7158},"device.status",{"type":31,"value":7160}," before submitting, and check the specific device's availability schedule on the Braket console rather than assuming a ",{"type":21,"tag":103,"props":7162,"children":7164},{"className":7163},[],[7165],{"type":31,"value":7166},"task.result()",{"type":31,"value":7168}," call that hasn't returned means something broke.",{"type":21,"tag":41,"props":7170,"children":7172},{"id":7171},"unexpected-cost-on-a-qpu-task",[7173],{"type":31,"value":7174},"Unexpected cost on a QPU task",{"type":21,"tag":22,"props":7176,"children":7177},{},[7178,7180,7186,7188,7194],{"type":31,"value":7179},"Simulator tasks on Braket are billed per-task at a flat rate. Real QPU tasks are billed per-shot on top of a per-task fee, and it adds up faster than the free-tier mental model most people bring from IBM Quantum's free minutes. A circuit debugged locally with ",{"type":21,"tag":103,"props":7181,"children":7183},{"className":7182},[],[7184],{"type":31,"value":7185},"shots=10000",{"type":31,"value":7187}," on a free simulator, then pointed at a real QPU device without adjusting shot count, produces a real, sometimes surprising, charge. Set AWS Budget alerts on the Braket service specifically before running QPU tasks at any real shot count, and test circuit logic on ",{"type":21,"tag":103,"props":7189,"children":7191},{"className":7190},[],[7192],{"type":31,"value":7193},"LocalSimulator()",{"type":31,"value":7195}," or the managed simulators (SV1, DM1, TN1) before switching the device ARN to hardware.",{"type":21,"tag":41,"props":7197,"children":7199},{"id":7198},"the-pattern-behind-most-of-these",[7200],{"type":31,"value":7201},"The pattern behind most of these",{"type":21,"tag":22,"props":7203,"children":7204},{},[7205],{"type":31,"value":7206},"Braket's errors are mostly AWS errors wearing a quantum computing costume: credentials, IAM policy, S3 region matching, and billing are the same categories of problem you'd hit running any AWS service, and debugging them means checking the AWS side of the stack before assuming the circuit or the SDK call is wrong.",{"type":21,"tag":1174,"props":7208,"children":7209},{},[7210],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":7212},[7213,7214,7216,7217,7218,7219],{"id":6871,"depth":167,"text":6878},{"id":7006,"depth":167,"text":7215},"AccessDeniedException on a device or S3 bucket",{"id":7046,"depth":167,"text":7049},{"id":7144,"depth":167,"text":7147},{"id":7171,"depth":167,"text":7174},{"id":7198,"depth":167,"text":7201},"content:blog:common-braket-errors-and-fixes.md","blog\u002Fcommon-braket-errors-and-fixes.md","blog\u002Fcommon-braket-errors-and-fixes",{"_path":7224,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":7225,"description":7226,"date":4484,"author":11,"tags":7227,"readingTime":233,"body":7228,"_type":1193,"_id":7924,"_source":1195,"_file":7925,"_stem":7926,"_extension":1198},"\u002Fblog\u002Fcommon-cirq-errors-and-fixes","Common Cirq Errors and How to Fix Them","The mistakes that trip up Cirq users most: mixing qubit types that look equal but aren't, duplicate measurement keys, unexpected moment packing, and unresolved parameters. Each with the fix.",[4486,3054,5986],{"type":18,"children":7229,"toc":7914},[7230,7235,7254,7359,7391,7403,7475,7480,7566,7572,7606,7644,7657,7667,7738,7744,7817,7830,7872,7901,7905,7910],{"type":21,"tag":22,"props":7231,"children":7232},{},[7233],{"type":31,"value":7234},"Cirq's errors tend to come from its data model rather than from API churn. Qubits, moments, and measurement keys behave in specific ways that aren't obvious from the method names, and most confusion traces back to one of a handful of recurring mismatches.",{"type":21,"tag":41,"props":7236,"children":7238},{"id":7237},"mixing-linequbit-and-gridqubit",[7239,7241,7247,7248],{"type":31,"value":7240},"Mixing ",{"type":21,"tag":103,"props":7242,"children":7244},{"className":7243},[],[7245],{"type":31,"value":7246},"LineQubit",{"type":31,"value":3628},{"type":21,"tag":103,"props":7249,"children":7251},{"className":7250},[],[7252],{"type":31,"value":7253},"GridQubit",{"type":21,"tag":128,"props":7255,"children":7257},{"className":130,"code":7256,"language":132,"meta":7,"style":7},"import cirq\n\nq1 = cirq.LineQubit(0)\nq2 = cirq.GridQubit(0, 0)\nq1 == q2  # False, always\n",[7258],{"type":21,"tag":103,"props":7259,"children":7260},{"__ignoreMap":7},[7261,7272,7279,7304,7337],{"type":21,"tag":138,"props":7262,"children":7263},{"class":140,"line":141},[7264,7268],{"type":21,"tag":138,"props":7265,"children":7266},{"style":145},[7267],{"type":31,"value":159},{"type":21,"tag":138,"props":7269,"children":7270},{"style":151},[7271],{"type":31,"value":4752},{"type":21,"tag":138,"props":7273,"children":7274},{"class":140,"line":167},[7275],{"type":21,"tag":138,"props":7276,"children":7277},{"emptyLinePlaceholder":193},[7278],{"type":31,"value":196},{"type":21,"tag":138,"props":7280,"children":7281},{"class":140,"line":189},[7282,7287,7291,7296,7300],{"type":21,"tag":138,"props":7283,"children":7284},{"style":151},[7285],{"type":31,"value":7286},"q1 ",{"type":21,"tag":138,"props":7288,"children":7289},{"style":145},[7290],{"type":31,"value":210},{"type":21,"tag":138,"props":7292,"children":7293},{"style":151},[7294],{"type":31,"value":7295}," cirq.LineQubit(",{"type":21,"tag":138,"props":7297,"children":7298},{"style":213},[7299],{"type":31,"value":406},{"type":21,"tag":138,"props":7301,"children":7302},{"style":151},[7303],{"type":31,"value":269},{"type":21,"tag":138,"props":7305,"children":7306},{"class":140,"line":199},[7307,7312,7316,7321,7325,7329,7333],{"type":21,"tag":138,"props":7308,"children":7309},{"style":151},[7310],{"type":31,"value":7311},"q2 ",{"type":21,"tag":138,"props":7313,"children":7314},{"style":145},[7315],{"type":31,"value":210},{"type":21,"tag":138,"props":7317,"children":7318},{"style":151},[7319],{"type":31,"value":7320}," cirq.GridQubit(",{"type":21,"tag":138,"props":7322,"children":7323},{"style":213},[7324],{"type":31,"value":406},{"type":21,"tag":138,"props":7326,"children":7327},{"style":151},[7328],{"type":31,"value":258},{"type":21,"tag":138,"props":7330,"children":7331},{"style":213},[7332],{"type":31,"value":406},{"type":21,"tag":138,"props":7334,"children":7335},{"style":151},[7336],{"type":31,"value":269},{"type":21,"tag":138,"props":7338,"children":7339},{"class":140,"line":225},[7340,7344,7349,7354],{"type":21,"tag":138,"props":7341,"children":7342},{"style":151},[7343],{"type":31,"value":7286},{"type":21,"tag":138,"props":7345,"children":7346},{"style":145},[7347],{"type":31,"value":7348},"==",{"type":21,"tag":138,"props":7350,"children":7351},{"style":151},[7352],{"type":31,"value":7353}," q2  ",{"type":21,"tag":138,"props":7355,"children":7356},{"style":219},[7357],{"type":31,"value":7358},"# False, always\n",{"type":21,"tag":22,"props":7360,"children":7361},{},[7362,7368,7369,7375,7377,7382,7384,7389],{"type":21,"tag":103,"props":7363,"children":7365},{"className":7364},[],[7366],{"type":31,"value":7367},"LineQubit(0)",{"type":31,"value":3628},{"type":21,"tag":103,"props":7370,"children":7372},{"className":7371},[],[7373],{"type":31,"value":7374},"GridQubit(0, 0)",{"type":31,"value":7376}," are never equal, even though a beginner might mean them as \"the same qubit 0.\" Cirq qubit equality checks type and coordinates together, not index alone. Mixing qubit types across a circuit, one function returning ",{"type":21,"tag":103,"props":7378,"children":7380},{"className":7379},[],[7381],{"type":31,"value":7246},{"type":31,"value":7383},"s and another expecting ",{"type":21,"tag":103,"props":7385,"children":7387},{"className":7386},[],[7388],{"type":31,"value":7253},{"type":31,"value":7390},"s, silently creates a circuit with more distinct qubits than you intended rather than raising an error. Pick one qubit type per circuit and stick to it, and if you're combining code from two sources, check what qubit type each one produces before appending gates.",{"type":21,"tag":41,"props":7392,"children":7394},{"id":7393},"duplicate-measurement-keys-errors",[7395,7401],{"type":21,"tag":103,"props":7396,"children":7398},{"className":7397},[],[7399],{"type":31,"value":7400},"Duplicate measurement keys",{"type":31,"value":7402}," errors",{"type":21,"tag":128,"props":7404,"children":7406},{"className":130,"code":7405,"language":132,"meta":7,"style":7},"for i in range(3):\n    circuit.append(cirq.measure(qubits[i], key='m'))  # same key every loop\n",[7407],{"type":21,"tag":103,"props":7408,"children":7409},{"__ignoreMap":7},[7410,7444],{"type":21,"tag":138,"props":7411,"children":7412},{"class":140,"line":141},[7413,7417,7422,7426,7431,7435,7439],{"type":21,"tag":138,"props":7414,"children":7415},{"style":145},[7416],{"type":31,"value":1492},{"type":21,"tag":138,"props":7418,"children":7419},{"style":151},[7420],{"type":31,"value":7421}," i ",{"type":21,"tag":138,"props":7423,"children":7424},{"style":145},[7425],{"type":31,"value":1502},{"type":21,"tag":138,"props":7427,"children":7428},{"style":213},[7429],{"type":31,"value":7430}," range",{"type":21,"tag":138,"props":7432,"children":7433},{"style":151},[7434],{"type":31,"value":959},{"type":21,"tag":138,"props":7436,"children":7437},{"style":213},[7438],{"type":31,"value":253},{"type":21,"tag":138,"props":7440,"children":7441},{"style":151},[7442],{"type":31,"value":7443},"):\n",{"type":21,"tag":138,"props":7445,"children":7446},{"class":140,"line":167},[7447,7452,7456,7460,7465,7470],{"type":21,"tag":138,"props":7448,"children":7449},{"style":151},[7450],{"type":31,"value":7451},"    circuit.append(cirq.measure(qubits[i], ",{"type":21,"tag":138,"props":7453,"children":7454},{"style":929},[7455],{"type":31,"value":4845},{"type":21,"tag":138,"props":7457,"children":7458},{"style":145},[7459],{"type":31,"value":210},{"type":21,"tag":138,"props":7461,"children":7462},{"style":261},[7463],{"type":31,"value":7464},"'m'",{"type":21,"tag":138,"props":7466,"children":7467},{"style":151},[7468],{"type":31,"value":7469},"))  ",{"type":21,"tag":138,"props":7471,"children":7472},{"style":219},[7473],{"type":31,"value":7474},"# same key every loop\n",{"type":21,"tag":22,"props":7476,"children":7477},{},[7478],{"type":31,"value":7479},"Cirq requires every measurement in a circuit to have a unique key so results are looked up afterward without ambiguity. Reusing the same key string across a loop, easy to do when a placeholder key gets left in, raises an error the moment the circuit tries to build or simulate. Key each measurement uniquely:",{"type":21,"tag":128,"props":7481,"children":7483},{"className":130,"code":7482,"language":132,"meta":7,"style":7},"for i in range(3):\n    circuit.append(cirq.measure(qubits[i], key=f'm{i}'))\n",[7484],{"type":21,"tag":103,"props":7485,"children":7486},{"__ignoreMap":7},[7487,7518],{"type":21,"tag":138,"props":7488,"children":7489},{"class":140,"line":141},[7490,7494,7498,7502,7506,7510,7514],{"type":21,"tag":138,"props":7491,"children":7492},{"style":145},[7493],{"type":31,"value":1492},{"type":21,"tag":138,"props":7495,"children":7496},{"style":151},[7497],{"type":31,"value":7421},{"type":21,"tag":138,"props":7499,"children":7500},{"style":145},[7501],{"type":31,"value":1502},{"type":21,"tag":138,"props":7503,"children":7504},{"style":213},[7505],{"type":31,"value":7430},{"type":21,"tag":138,"props":7507,"children":7508},{"style":151},[7509],{"type":31,"value":959},{"type":21,"tag":138,"props":7511,"children":7512},{"style":213},[7513],{"type":31,"value":253},{"type":21,"tag":138,"props":7515,"children":7516},{"style":151},[7517],{"type":31,"value":7443},{"type":21,"tag":138,"props":7519,"children":7520},{"class":140,"line":167},[7521,7525,7529,7533,7538,7543,7548,7552,7557,7562],{"type":21,"tag":138,"props":7522,"children":7523},{"style":151},[7524],{"type":31,"value":7451},{"type":21,"tag":138,"props":7526,"children":7527},{"style":929},[7528],{"type":31,"value":4845},{"type":21,"tag":138,"props":7530,"children":7531},{"style":145},[7532],{"type":31,"value":210},{"type":21,"tag":138,"props":7534,"children":7535},{"style":145},[7536],{"type":31,"value":7537},"f",{"type":21,"tag":138,"props":7539,"children":7540},{"style":261},[7541],{"type":31,"value":7542},"'m",{"type":21,"tag":138,"props":7544,"children":7545},{"style":213},[7546],{"type":31,"value":7547},"{",{"type":21,"tag":138,"props":7549,"children":7550},{"style":151},[7551],{"type":31,"value":1839},{"type":21,"tag":138,"props":7553,"children":7554},{"style":213},[7555],{"type":31,"value":7556},"}",{"type":21,"tag":138,"props":7558,"children":7559},{"style":261},[7560],{"type":31,"value":7561},"'",{"type":21,"tag":138,"props":7563,"children":7564},{"style":151},[7565],{"type":31,"value":5609},{"type":21,"tag":41,"props":7567,"children":7569},{"id":7568},"gates-packing-closer-together-than-expected",[7570],{"type":31,"value":7571},"Gates packing closer together than expected",{"type":21,"tag":22,"props":7573,"children":7574},{},[7575,7581,7583,7589,7591,7596,7598,7604],{"type":21,"tag":103,"props":7576,"children":7578},{"className":7577},[],[7579],{"type":31,"value":7580},"circuit.append()",{"type":31,"value":7582}," defaults to ",{"type":21,"tag":103,"props":7584,"children":7586},{"className":7585},[],[7587],{"type":31,"value":7588},"InsertStrategy.EARLIEST_OR_NEW",{"type":31,"value":7590},", which slots each new operation into the earliest ",{"type":21,"tag":26,"props":7592,"children":7593},{"href":4343},[7594],{"type":31,"value":7595},"moment",{"type":31,"value":7597}," where it doesn't conflict with an existing operation on the identical qubit, rather than always starting a new moment. If you're assuming one ",{"type":21,"tag":103,"props":7599,"children":7601},{"className":7600},[],[7602],{"type":31,"value":7603},"append()",{"type":31,"value":7605}," call means one moment, and your circuit's depth or hardware-timing assumptions depend on that, the packed layout produces different results than you expect, without an error to flag it. Pass an explicit strategy when moment boundaries matter:",{"type":21,"tag":128,"props":7607,"children":7609},{"className":130,"code":7608,"language":132,"meta":7,"style":7},"circuit.append(ops, strategy=cirq.InsertStrategy.NEW_THEN_INLINE)\n",[7610],{"type":21,"tag":103,"props":7611,"children":7612},{"__ignoreMap":7},[7613],{"type":21,"tag":138,"props":7614,"children":7615},{"class":140,"line":141},[7616,7621,7626,7630,7635,7640],{"type":21,"tag":138,"props":7617,"children":7618},{"style":151},[7619],{"type":31,"value":7620},"circuit.append(ops, ",{"type":21,"tag":138,"props":7622,"children":7623},{"style":929},[7624],{"type":31,"value":7625},"strategy",{"type":21,"tag":138,"props":7627,"children":7628},{"style":145},[7629],{"type":31,"value":210},{"type":21,"tag":138,"props":7631,"children":7632},{"style":151},[7633],{"type":31,"value":7634},"cirq.InsertStrategy.",{"type":21,"tag":138,"props":7636,"children":7637},{"style":213},[7638],{"type":31,"value":7639},"NEW_THEN_INLINE",{"type":21,"tag":138,"props":7641,"children":7642},{"style":151},[7643],{"type":31,"value":269},{"type":21,"tag":22,"props":7645,"children":7646},{},[7647,7649,7655],{"type":31,"value":7648},"or build ",{"type":21,"tag":103,"props":7650,"children":7652},{"className":7651},[],[7653],{"type":31,"value":7654},"cirq.Moment",{"type":31,"value":7656}," objects directly when you need exact control over what runs in parallel.",{"type":21,"tag":41,"props":7658,"children":7660},{"id":7659},"typeerror-gate-was-not-a-cirqgate",[7661],{"type":21,"tag":103,"props":7662,"children":7664},{"className":7663},[],[7665],{"type":31,"value":7666},"TypeError: Gate was not a cirq.Gate",{"type":21,"tag":22,"props":7668,"children":7669},{},[7670,7672,7678,7680,7686,7688,7694,7695,7701,7703,7709,7711,7716,7718,7723,7725,7730,7731,7736],{"type":31,"value":7671},"This shows up when something that isn't a proper ",{"type":21,"tag":103,"props":7673,"children":7675},{"className":7674},[],[7676],{"type":31,"value":7677},"cirq.Gate",{"type":31,"value":7679}," subclass gets applied to qubits with ",{"type":21,"tag":103,"props":7681,"children":7683},{"className":7682},[],[7684],{"type":31,"value":7685},".on()",{"type":31,"value":7687},", commonly a custom gate class missing required methods (",{"type":21,"tag":103,"props":7689,"children":7691},{"className":7690},[],[7692],{"type":31,"value":7693},"_num_qubits_",{"type":31,"value":258},{"type":21,"tag":103,"props":7696,"children":7698},{"className":7697},[],[7699],{"type":31,"value":7700},"_unitary_",{"type":31,"value":7702}," or ",{"type":21,"tag":103,"props":7704,"children":7706},{"className":7705},[],[7707],{"type":31,"value":7708},"_decompose_",{"type":31,"value":7710},"), or a raw numpy array passed where a gate object was expected. Cirq's gate protocol is duck-typed but strict about which methods it checks for. If you're defining a custom gate, subclass ",{"type":21,"tag":103,"props":7712,"children":7714},{"className":7713},[],[7715],{"type":31,"value":7677},{"type":31,"value":7717}," and implement at minimum ",{"type":21,"tag":103,"props":7719,"children":7721},{"className":7720},[],[7722],{"type":31,"value":7693},{"type":31,"value":7724}," plus either ",{"type":21,"tag":103,"props":7726,"children":7728},{"className":7727},[],[7729],{"type":31,"value":7700},{"type":31,"value":7702},{"type":21,"tag":103,"props":7732,"children":7734},{"className":7733},[],[7735],{"type":31,"value":7708},{"type":31,"value":7737},", rather than trying to construct a gate-like object ad hoc.",{"type":21,"tag":41,"props":7739,"children":7741},{"id":7740},"unresolved-parameters-at-simulation-time",[7742],{"type":31,"value":7743},"Unresolved parameters at simulation time",{"type":21,"tag":128,"props":7745,"children":7747},{"className":130,"code":7746,"language":132,"meta":7,"style":7},"import sympy\ntheta = sympy.Symbol('theta')\ncircuit = cirq.Circuit(cirq.rx(theta).on(q))\ncirq.Simulator().simulate(circuit)  # fails: unresolved symbol\n",[7748],{"type":21,"tag":103,"props":7749,"children":7750},{"__ignoreMap":7},[7751,7763,7788,7804],{"type":21,"tag":138,"props":7752,"children":7753},{"class":140,"line":141},[7754,7758],{"type":21,"tag":138,"props":7755,"children":7756},{"style":145},[7757],{"type":31,"value":159},{"type":21,"tag":138,"props":7759,"children":7760},{"style":151},[7761],{"type":31,"value":7762}," sympy\n",{"type":21,"tag":138,"props":7764,"children":7765},{"class":140,"line":167},[7766,7770,7774,7779,7784],{"type":21,"tag":138,"props":7767,"children":7768},{"style":151},[7769],{"type":31,"value":205},{"type":21,"tag":138,"props":7771,"children":7772},{"style":145},[7773],{"type":31,"value":210},{"type":21,"tag":138,"props":7775,"children":7776},{"style":151},[7777],{"type":31,"value":7778}," sympy.Symbol(",{"type":21,"tag":138,"props":7780,"children":7781},{"style":261},[7782],{"type":31,"value":7783},"'theta'",{"type":21,"tag":138,"props":7785,"children":7786},{"style":151},[7787],{"type":31,"value":269},{"type":21,"tag":138,"props":7789,"children":7790},{"class":140,"line":189},[7791,7795,7799],{"type":21,"tag":138,"props":7792,"children":7793},{"style":151},[7794],{"type":31,"value":4792},{"type":21,"tag":138,"props":7796,"children":7797},{"style":145},[7798],{"type":31,"value":210},{"type":21,"tag":138,"props":7800,"children":7801},{"style":151},[7802],{"type":31,"value":7803}," cirq.Circuit(cirq.rx(theta).on(q))\n",{"type":21,"tag":138,"props":7805,"children":7806},{"class":140,"line":199},[7807,7812],{"type":21,"tag":138,"props":7808,"children":7809},{"style":151},[7810],{"type":31,"value":7811},"cirq.Simulator().simulate(circuit)  ",{"type":21,"tag":138,"props":7813,"children":7814},{"style":219},[7815],{"type":31,"value":7816},"# fails: unresolved symbol\n",{"type":21,"tag":22,"props":7818,"children":7819},{},[7820,7822,7828],{"type":31,"value":7821},"A parameterized circuit built with ",{"type":21,"tag":103,"props":7823,"children":7825},{"className":7824},[],[7826],{"type":31,"value":7827},"sympy",{"type":31,"value":7829}," symbols needs its parameters resolved to numeric values before a simulator runs it. Forgetting the resolution step, easy to do when moving from building a variational circuit to evaluating it, raises an error about an unbound symbol rather than a silently wrong outcome:",{"type":21,"tag":128,"props":7831,"children":7833},{"className":130,"code":7832,"language":132,"meta":7,"style":7},"resolved = cirq.resolve_parameters(circuit, {theta: 0.5})\ncirq.Simulator().simulate(resolved)\n",[7834],{"type":21,"tag":103,"props":7835,"children":7836},{"__ignoreMap":7},[7837,7864],{"type":21,"tag":138,"props":7838,"children":7839},{"class":140,"line":141},[7840,7845,7849,7854,7859],{"type":21,"tag":138,"props":7841,"children":7842},{"style":151},[7843],{"type":31,"value":7844},"resolved ",{"type":21,"tag":138,"props":7846,"children":7847},{"style":145},[7848],{"type":31,"value":210},{"type":21,"tag":138,"props":7850,"children":7851},{"style":151},[7852],{"type":31,"value":7853}," cirq.resolve_parameters(circuit, {theta: ",{"type":21,"tag":138,"props":7855,"children":7856},{"style":213},[7857],{"type":31,"value":7858},"0.5",{"type":21,"tag":138,"props":7860,"children":7861},{"style":151},[7862],{"type":31,"value":7863},"})\n",{"type":21,"tag":138,"props":7865,"children":7866},{"class":140,"line":167},[7867],{"type":21,"tag":138,"props":7868,"children":7869},{"style":151},[7870],{"type":31,"value":7871},"cirq.Simulator().simulate(resolved)\n",{"type":21,"tag":22,"props":7873,"children":7874},{},[7875,7877,7883,7885,7891,7893,7899],{"type":31,"value":7876},"or pass a ",{"type":21,"tag":103,"props":7878,"children":7880},{"className":7879},[],[7881],{"type":31,"value":7882},"cirq.ParamResolver",{"type":31,"value":7884}," directly to ",{"type":21,"tag":103,"props":7886,"children":7888},{"className":7887},[],[7889],{"type":31,"value":7890},"simulate()",{"type":31,"value":7892},"'s ",{"type":21,"tag":103,"props":7894,"children":7896},{"className":7895},[],[7897],{"type":31,"value":7898},"param_resolver",{"type":31,"value":7900}," argument instead of resolving the circuit ahead of time.",{"type":21,"tag":41,"props":7902,"children":7903},{"id":7198},[7904],{"type":31,"value":7201},{"type":21,"tag":22,"props":7906,"children":7907},{},[7908],{"type":31,"value":7909},"Cirq's errors mostly come from its explicitness: qubit identity, moment structure, and parameter binding are all things Cirq makes you handle directly rather than inferring for you. That's a deliberate design choice, closer to the underlying hardware model than a higher-level abstraction, and most of what trips people up is code written with a looser mental model than Cirq enforces.",{"type":21,"tag":1174,"props":7911,"children":7912},{},[7913],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":7915},[7916,7918,7920,7921,7922,7923],{"id":7237,"depth":167,"text":7917},"Mixing LineQubit and GridQubit",{"id":7393,"depth":167,"text":7919},"Duplicate measurement keys errors",{"id":7568,"depth":167,"text":7571},{"id":7659,"depth":167,"text":7666},{"id":7740,"depth":167,"text":7743},{"id":7198,"depth":167,"text":7201},"content:blog:common-cirq-errors-and-fixes.md","blog\u002Fcommon-cirq-errors-and-fixes.md","blog\u002Fcommon-cirq-errors-and-fixes",{"_path":7928,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":7929,"description":7930,"date":4484,"author":11,"tags":7931,"readingTime":233,"body":7933,"_type":1193,"_id":8485,"_source":1195,"_file":8486,"_stem":8487,"_extension":1198},"\u002Fblog\u002Fcommon-cudaq-errors-and-fixes","Common CUDA-Q Errors and How to Fix Them","The mistakes that trip up CUDA-Q users most: CUDA toolkit version mismatches, code inside @cudaq.kernel that isn't allowed there, forgetting to set a GPU target, and calling kernels outside the functions that execute them. Each with the fix.",[3054,5986,7932],"GPU",{"type":18,"children":7934,"toc":8477},[7935,7948,7954,7967,7978,8098,8110,8116,8164,8190,8247,8253,8376,8408,8447,8464,8468,8473],{"type":21,"tag":22,"props":7936,"children":7937},{},[7938,7940,7946],{"type":31,"value":7939},"CUDA-Q's errors have a different shape than the other SDKs on this list, because CUDA-Q kernels compile to run on GPU hardware rather than executing as plain Python. Most of what trips people up comes from treating a ",{"type":21,"tag":103,"props":7941,"children":7943},{"className":7942},[],[7944],{"type":31,"value":7945},"@cudaq.kernel",{"type":31,"value":7947}," function like ordinary Python, or from a CUDA toolkit mismatch underneath the SDK entirely.",{"type":21,"tag":41,"props":7949,"children":7951},{"id":7950},"cuda-toolkit-and-driver-version-mismatches",[7952],{"type":31,"value":7953},"CUDA toolkit and driver version mismatches",{"type":21,"tag":22,"props":7955,"children":7956},{},[7957,7959,7965],{"type":31,"value":7958},"CUDA-Q is built against a specific CUDA toolkit major version, and installing it without a matching NVIDIA driver and toolkit on the machine produces install-time or import-time failures that point at CUDA, not at CUDA-Q's own code. Before installing, check ",{"type":21,"tag":103,"props":7960,"children":7962},{"className":7961},[],[7963],{"type":31,"value":7964},"nvidia-smi",{"type":31,"value":7966}," for your driver's supported CUDA version, and install the CUDA-Q build that matches it rather than assuming the latest CUDA-Q release supports whatever CUDA version happens to be on the machine. If GPU execution silently falls back to CPU with no error at all, this mismatch is the first thing worth checking, since CUDA-Q degrades gracefully to CPU simulation rather than failing loudly when it can't find a usable GPU goal.",{"type":21,"tag":41,"props":7968,"children":7970},{"id":7969},"code-that-isnt-allowed-inside-cudaqkernel",[7971,7973],{"type":31,"value":7972},"Code that isn't allowed inside ",{"type":21,"tag":103,"props":7974,"children":7976},{"className":7975},[],[7977],{"type":31,"value":7945},{"type":21,"tag":128,"props":7979,"children":7981},{"className":130,"code":7980,"language":132,"meta":7,"style":7},"@cudaq.kernel\ndef my_kernel():\n    qubits = cudaq.qvector(2)\n    data = [1, 2, 3]  # plain Python list comprehension, unsupported\n    h(qubits[0])\n",[7982],{"type":21,"tag":103,"props":7983,"children":7984},{"__ignoreMap":7},[7985,7993,8010,8035,8082],{"type":21,"tag":138,"props":7986,"children":7987},{"class":140,"line":141},[7988],{"type":21,"tag":138,"props":7989,"children":7990},{"style":4522},[7991],{"type":31,"value":7992},"@cudaq.kernel\n",{"type":21,"tag":138,"props":7994,"children":7995},{"class":140,"line":167},[7996,8000,8005],{"type":21,"tag":138,"props":7997,"children":7998},{"style":145},[7999],{"type":31,"value":5500},{"type":21,"tag":138,"props":8001,"children":8002},{"style":4522},[8003],{"type":31,"value":8004}," my_kernel",{"type":21,"tag":138,"props":8006,"children":8007},{"style":151},[8008],{"type":31,"value":8009},"():\n",{"type":21,"tag":138,"props":8011,"children":8012},{"class":140,"line":189},[8013,8018,8022,8027,8031],{"type":21,"tag":138,"props":8014,"children":8015},{"style":151},[8016],{"type":31,"value":8017},"    qubits ",{"type":21,"tag":138,"props":8019,"children":8020},{"style":145},[8021],{"type":31,"value":210},{"type":21,"tag":138,"props":8023,"children":8024},{"style":151},[8025],{"type":31,"value":8026}," cudaq.qvector(",{"type":21,"tag":138,"props":8028,"children":8029},{"style":213},[8030],{"type":31,"value":292},{"type":21,"tag":138,"props":8032,"children":8033},{"style":151},[8034],{"type":31,"value":269},{"type":21,"tag":138,"props":8036,"children":8037},{"class":140,"line":199},[8038,8043,8047,8052,8056,8060,8064,8068,8072,8077],{"type":21,"tag":138,"props":8039,"children":8040},{"style":151},[8041],{"type":31,"value":8042},"    data ",{"type":21,"tag":138,"props":8044,"children":8045},{"style":145},[8046],{"type":31,"value":210},{"type":21,"tag":138,"props":8048,"children":8049},{"style":151},[8050],{"type":31,"value":8051}," [",{"type":21,"tag":138,"props":8053,"children":8054},{"style":213},[8055],{"type":31,"value":327},{"type":21,"tag":138,"props":8057,"children":8058},{"style":151},[8059],{"type":31,"value":258},{"type":21,"tag":138,"props":8061,"children":8062},{"style":213},[8063],{"type":31,"value":292},{"type":21,"tag":138,"props":8065,"children":8066},{"style":151},[8067],{"type":31,"value":258},{"type":21,"tag":138,"props":8069,"children":8070},{"style":213},[8071],{"type":31,"value":253},{"type":21,"tag":138,"props":8073,"children":8074},{"style":151},[8075],{"type":31,"value":8076},"]  ",{"type":21,"tag":138,"props":8078,"children":8079},{"style":219},[8080],{"type":31,"value":8081},"# plain Python list comprehension, unsupported\n",{"type":21,"tag":138,"props":8083,"children":8084},{"class":140,"line":225},[8085,8090,8094],{"type":21,"tag":138,"props":8086,"children":8087},{"style":151},[8088],{"type":31,"value":8089},"    h(qubits[",{"type":21,"tag":138,"props":8091,"children":8092},{"style":213},[8093],{"type":31,"value":406},{"type":21,"tag":138,"props":8095,"children":8096},{"style":151},[8097],{"type":31,"value":598},{"type":21,"tag":22,"props":8099,"children":8100},{},[8101,8103,8108],{"type":31,"value":8102},"Functions decorated with ",{"type":21,"tag":103,"props":8104,"children":8106},{"className":8105},[],[8107],{"type":31,"value":7945},{"type":31,"value":8109}," get compiled to run on quantum (or simulated quantum) hardware, not interpreted as ordinary Python. That means only a restricted subset of the language is valid inside one: no arbitrary classes, no calls into NumPy or other Python libraries, and limited control-flow patterns compared to a normal function. Code that works fine outside a kernel raises a compile-time error the moment it's moved inside one. Keep classical data preparation (list building, NumPy work, file I\u002FO) outside the kernel function, and pass only the values the kernel needs as arguments.",{"type":21,"tag":41,"props":8111,"children":8113},{"id":8112},"forgetting-to-set-the-target-before-running",[8114],{"type":31,"value":8115},"Forgetting to set the target before running",{"type":21,"tag":128,"props":8117,"children":8119},{"className":130,"code":8118,"language":132,"meta":7,"style":7},"import cudaq\n# no cudaq.set_target(...) call\nresult = cudaq.sample(my_kernel)  # runs on the default target, not necessarily GPU\n",[8120],{"type":21,"tag":103,"props":8121,"children":8122},{"__ignoreMap":7},[8123,8135,8143],{"type":21,"tag":138,"props":8124,"children":8125},{"class":140,"line":141},[8126,8130],{"type":21,"tag":138,"props":8127,"children":8128},{"style":145},[8129],{"type":31,"value":159},{"type":21,"tag":138,"props":8131,"children":8132},{"style":151},[8133],{"type":31,"value":8134}," cudaq\n",{"type":21,"tag":138,"props":8136,"children":8137},{"class":140,"line":167},[8138],{"type":21,"tag":138,"props":8139,"children":8140},{"style":219},[8141],{"type":31,"value":8142},"# no cudaq.set_target(...) call\n",{"type":21,"tag":138,"props":8144,"children":8145},{"class":140,"line":189},[8146,8150,8154,8159],{"type":21,"tag":138,"props":8147,"children":8148},{"style":151},[8149],{"type":31,"value":4881},{"type":21,"tag":138,"props":8151,"children":8152},{"style":145},[8153],{"type":31,"value":210},{"type":21,"tag":138,"props":8155,"children":8156},{"style":151},[8157],{"type":31,"value":8158}," cudaq.sample(my_kernel)  ",{"type":21,"tag":138,"props":8160,"children":8161},{"style":219},[8162],{"type":31,"value":8163},"# runs on the default target, not necessarily GPU\n",{"type":21,"tag":22,"props":8165,"children":8166},{},[8167,8173,8174,8180,8182,8188],{"type":21,"tag":103,"props":8168,"children":8170},{"className":8169},[],[8171],{"type":31,"value":8172},"cudaq.sample()",{"type":31,"value":3628},{"type":21,"tag":103,"props":8175,"children":8177},{"className":8176},[],[8178],{"type":31,"value":8179},"cudaq.observe()",{"type":31,"value":8181}," run against whatever target is currently set, and the default isn't guaranteed to be the GPU-accelerated backend you might be assuming. If code runs correctly but slower than expected, or a colleague's identical code runs meaningfully faster, check whether ",{"type":21,"tag":103,"props":8183,"children":8185},{"className":8184},[],[8186],{"type":31,"value":8187},"cudaq.set_target(\"nvidia\")",{"type":31,"value":8189}," (or whichever GPU target applies to the install) was called before execution:",{"type":21,"tag":128,"props":8191,"children":8193},{"className":130,"code":8192,"language":132,"meta":7,"style":7},"cudaq.set_target(\"nvidia\")\nresult = cudaq.sample(my_kernel, shots_count=1000)\n",[8194],{"type":21,"tag":103,"props":8195,"children":8196},{"__ignoreMap":7},[8197,8214],{"type":21,"tag":138,"props":8198,"children":8199},{"class":140,"line":141},[8200,8205,8210],{"type":21,"tag":138,"props":8201,"children":8202},{"style":151},[8203],{"type":31,"value":8204},"cudaq.set_target(",{"type":21,"tag":138,"props":8206,"children":8207},{"style":261},[8208],{"type":31,"value":8209},"\"nvidia\"",{"type":21,"tag":138,"props":8211,"children":8212},{"style":151},[8213],{"type":31,"value":269},{"type":21,"tag":138,"props":8215,"children":8216},{"class":140,"line":167},[8217,8221,8225,8230,8235,8239,8243],{"type":21,"tag":138,"props":8218,"children":8219},{"style":151},[8220],{"type":31,"value":4881},{"type":21,"tag":138,"props":8222,"children":8223},{"style":145},[8224],{"type":31,"value":210},{"type":21,"tag":138,"props":8226,"children":8227},{"style":151},[8228],{"type":31,"value":8229}," cudaq.sample(my_kernel, ",{"type":21,"tag":138,"props":8231,"children":8232},{"style":929},[8233],{"type":31,"value":8234},"shots_count",{"type":21,"tag":138,"props":8236,"children":8237},{"style":145},[8238],{"type":31,"value":210},{"type":21,"tag":138,"props":8240,"children":8241},{"style":213},[8242],{"type":31,"value":1736},{"type":21,"tag":138,"props":8244,"children":8245},{"style":151},[8246],{"type":31,"value":269},{"type":21,"tag":41,"props":8248,"children":8250},{"id":8249},"calling-a-kernel-like-a-normal-function",[8251],{"type":31,"value":8252},"Calling a kernel like a normal function",{"type":21,"tag":128,"props":8254,"children":8256},{"className":130,"code":8255,"language":132,"meta":7,"style":7},"@cudaq.kernel\ndef bell():\n    q = cudaq.qvector(2)\n    h(q[0])\n    x.ctrl(q[0], q[1])\n\ncounts = bell()  # doesn't do what it looks like it does\n",[8257],{"type":21,"tag":103,"props":8258,"children":8259},{"__ignoreMap":7},[8260,8267,8283,8307,8323,8348,8355],{"type":21,"tag":138,"props":8261,"children":8262},{"class":140,"line":141},[8263],{"type":21,"tag":138,"props":8264,"children":8265},{"style":4522},[8266],{"type":31,"value":7992},{"type":21,"tag":138,"props":8268,"children":8269},{"class":140,"line":167},[8270,8274,8279],{"type":21,"tag":138,"props":8271,"children":8272},{"style":145},[8273],{"type":31,"value":5500},{"type":21,"tag":138,"props":8275,"children":8276},{"style":4522},[8277],{"type":31,"value":8278}," bell",{"type":21,"tag":138,"props":8280,"children":8281},{"style":151},[8282],{"type":31,"value":8009},{"type":21,"tag":138,"props":8284,"children":8285},{"class":140,"line":189},[8286,8291,8295,8299,8303],{"type":21,"tag":138,"props":8287,"children":8288},{"style":151},[8289],{"type":31,"value":8290},"    q ",{"type":21,"tag":138,"props":8292,"children":8293},{"style":145},[8294],{"type":31,"value":210},{"type":21,"tag":138,"props":8296,"children":8297},{"style":151},[8298],{"type":31,"value":8026},{"type":21,"tag":138,"props":8300,"children":8301},{"style":213},[8302],{"type":31,"value":292},{"type":21,"tag":138,"props":8304,"children":8305},{"style":151},[8306],{"type":31,"value":269},{"type":21,"tag":138,"props":8308,"children":8309},{"class":140,"line":199},[8310,8315,8319],{"type":21,"tag":138,"props":8311,"children":8312},{"style":151},[8313],{"type":31,"value":8314},"    h(q[",{"type":21,"tag":138,"props":8316,"children":8317},{"style":213},[8318],{"type":31,"value":406},{"type":21,"tag":138,"props":8320,"children":8321},{"style":151},[8322],{"type":31,"value":598},{"type":21,"tag":138,"props":8324,"children":8325},{"class":140,"line":225},[8326,8331,8335,8340,8344],{"type":21,"tag":138,"props":8327,"children":8328},{"style":151},[8329],{"type":31,"value":8330},"    x.ctrl(q[",{"type":21,"tag":138,"props":8332,"children":8333},{"style":213},[8334],{"type":31,"value":406},{"type":21,"tag":138,"props":8336,"children":8337},{"style":151},[8338],{"type":31,"value":8339},"], q[",{"type":21,"tag":138,"props":8341,"children":8342},{"style":213},[8343],{"type":31,"value":327},{"type":21,"tag":138,"props":8345,"children":8346},{"style":151},[8347],{"type":31,"value":598},{"type":21,"tag":138,"props":8349,"children":8350},{"class":140,"line":233},[8351],{"type":21,"tag":138,"props":8352,"children":8353},{"emptyLinePlaceholder":193},[8354],{"type":31,"value":196},{"type":21,"tag":138,"props":8356,"children":8357},{"class":140,"line":272},[8358,8362,8366,8371],{"type":21,"tag":138,"props":8359,"children":8360},{"style":151},[8361],{"type":31,"value":917},{"type":21,"tag":138,"props":8363,"children":8364},{"style":145},[8365],{"type":31,"value":210},{"type":21,"tag":138,"props":8367,"children":8368},{"style":151},[8369],{"type":31,"value":8370}," bell()  ",{"type":21,"tag":138,"props":8372,"children":8373},{"style":219},[8374],{"type":31,"value":8375},"# doesn't do what it looks like it does\n",{"type":21,"tag":22,"props":8377,"children":8378},{},[8379,8381,8386,8388,8393,8394,8399,8400,8406],{"type":31,"value":8380},"A ",{"type":21,"tag":103,"props":8382,"children":8384},{"className":8383},[],[8385],{"type":31,"value":7945},{"type":31,"value":8387},"-decorated function isn't meant to be called directly the way a normal Python function is. It's meant to be passed to an execution entry point, ",{"type":21,"tag":103,"props":8389,"children":8391},{"className":8390},[],[8392],{"type":31,"value":8172},{"type":31,"value":258},{"type":21,"tag":103,"props":8395,"children":8397},{"className":8396},[],[8398],{"type":31,"value":8179},{"type":31,"value":258},{"type":21,"tag":103,"props":8401,"children":8403},{"className":8402},[],[8404],{"type":31,"value":8405},"cudaq.run()",{"type":31,"value":8407},", which handles compiling and running it against the current target:",{"type":21,"tag":128,"props":8409,"children":8411},{"className":130,"code":8410,"language":132,"meta":7,"style":7},"counts = cudaq.sample(bell, shots_count=1000)\n",[8412],{"type":21,"tag":103,"props":8413,"children":8414},{"__ignoreMap":7},[8415],{"type":21,"tag":138,"props":8416,"children":8417},{"class":140,"line":141},[8418,8422,8426,8431,8435,8439,8443],{"type":21,"tag":138,"props":8419,"children":8420},{"style":151},[8421],{"type":31,"value":917},{"type":21,"tag":138,"props":8423,"children":8424},{"style":145},[8425],{"type":31,"value":210},{"type":21,"tag":138,"props":8427,"children":8428},{"style":151},[8429],{"type":31,"value":8430}," cudaq.sample(bell, ",{"type":21,"tag":138,"props":8432,"children":8433},{"style":929},[8434],{"type":31,"value":8234},{"type":21,"tag":138,"props":8436,"children":8437},{"style":145},[8438],{"type":31,"value":210},{"type":21,"tag":138,"props":8440,"children":8441},{"style":213},[8442],{"type":31,"value":1736},{"type":21,"tag":138,"props":8444,"children":8445},{"style":151},[8446],{"type":31,"value":269},{"type":21,"tag":22,"props":8448,"children":8449},{},[8450,8452,8457,8458,8463],{"type":31,"value":8451},"Calling the kernel directly either raises an error or, depending on the CUDA-Q version, returns something that isn't the measurement result you're expecting. If output looks wrong in a way that doesn't match the circuit logic at all, check whether the kernel is being invoked directly instead of through ",{"type":21,"tag":103,"props":8453,"children":8455},{"className":8454},[],[8456],{"type":31,"value":8172},{"type":31,"value":7702},{"type":21,"tag":103,"props":8459,"children":8461},{"className":8460},[],[8462],{"type":31,"value":8179},{"type":31,"value":6678},{"type":21,"tag":41,"props":8465,"children":8466},{"id":7198},[8467],{"type":31,"value":7201},{"type":21,"tag":22,"props":8469,"children":8470},{},[8471],{"type":31,"value":8472},"CUDA-Q's errors mostly come from the gap between \"looks like Python\" and \"compiles to run on GPU hardware.\" The kernel decorator boundary is where almost everything on this list breaks: what's valid inside it, what target it runs against, and how it gets invoked are all stricter than ordinary Python, because unlike a pure simulator SDK, CUDA-Q is compiling toward real accelerated execution underneath.",{"type":21,"tag":1174,"props":8474,"children":8475},{},[8476],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":8478},[8479,8480,8482,8483,8484],{"id":7950,"depth":167,"text":7953},{"id":7969,"depth":167,"text":8481},"Code that isn't allowed inside @cudaq.kernel",{"id":8112,"depth":167,"text":8115},{"id":8249,"depth":167,"text":8252},{"id":7198,"depth":167,"text":7201},"content:blog:common-cudaq-errors-and-fixes.md","blog\u002Fcommon-cudaq-errors-and-fixes.md","blog\u002Fcommon-cudaq-errors-and-fixes",{"_path":8489,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8490,"description":8491,"date":4484,"author":11,"tags":8492,"readingTime":233,"body":8493,"_type":1193,"_id":9127,"_source":1195,"_file":9128,"_stem":9129,"_extension":1198},"\u002Fblog\u002Fcommon-pennylane-errors-and-fixes","Common PennyLane Errors and How to Fix Them","The mistakes that break PennyLane gradients and circuits most often: using plain NumPy instead of PennyLane's wrapper, wire mismatches, the wrong differentiation method for the device, and plugin version drift. Each with the fix.",[4487,3054,5986],{"type":18,"children":8494,"toc":9116},[8495,8500,8512,8600,8605,8682,8700,8712,8863,8876,8888,8948,8954,9019,9056,9062,9089,9093,9112],{"type":21,"tag":22,"props":8496,"children":8497},{},[8498],{"type":31,"value":8499},"PennyLane's errors cluster around one theme more than any other SDK on this list: differentiability. Because PennyLane exists to make quantum circuits trainable, most of the recurring problems are about gradients silently not flowing, rather than the circuit itself being wrong.",{"type":21,"tag":41,"props":8501,"children":8503},{"id":8502},"using-plain-numpy-instead-of-pennylanenumpy",[8504,8506],{"type":31,"value":8505},"Using plain NumPy instead of ",{"type":21,"tag":103,"props":8507,"children":8509},{"className":8508},[],[8510],{"type":31,"value":8511},"pennylane.numpy",{"type":21,"tag":128,"props":8513,"children":8515},{"className":130,"code":8514,"language":132,"meta":7,"style":7},"import numpy as np  # wrong for trainable parameters\nparams = np.array([0.1, 0.2])\n\nqml.grad(circuit)(params)  # gradient is zero or errors\n",[8516],{"type":21,"tag":103,"props":8517,"children":8518},{"__ignoreMap":7},[8519,8545,8580,8587],{"type":21,"tag":138,"props":8520,"children":8521},{"class":140,"line":141},[8522,8526,8531,8535,8540],{"type":21,"tag":138,"props":8523,"children":8524},{"style":145},[8525],{"type":31,"value":159},{"type":21,"tag":138,"props":8527,"children":8528},{"style":151},[8529],{"type":31,"value":8530}," numpy ",{"type":21,"tag":138,"props":8532,"children":8533},{"style":145},[8534],{"type":31,"value":5356},{"type":21,"tag":138,"props":8536,"children":8537},{"style":151},[8538],{"type":31,"value":8539}," np  ",{"type":21,"tag":138,"props":8541,"children":8542},{"style":219},[8543],{"type":31,"value":8544},"# wrong for trainable parameters\n",{"type":21,"tag":138,"props":8546,"children":8547},{"class":140,"line":167},[8548,8553,8557,8562,8567,8571,8576],{"type":21,"tag":138,"props":8549,"children":8550},{"style":151},[8551],{"type":31,"value":8552},"params ",{"type":21,"tag":138,"props":8554,"children":8555},{"style":145},[8556],{"type":31,"value":210},{"type":21,"tag":138,"props":8558,"children":8559},{"style":151},[8560],{"type":31,"value":8561}," np.array([",{"type":21,"tag":138,"props":8563,"children":8564},{"style":213},[8565],{"type":31,"value":8566},"0.1",{"type":21,"tag":138,"props":8568,"children":8569},{"style":151},[8570],{"type":31,"value":258},{"type":21,"tag":138,"props":8572,"children":8573},{"style":213},[8574],{"type":31,"value":8575},"0.2",{"type":21,"tag":138,"props":8577,"children":8578},{"style":151},[8579],{"type":31,"value":598},{"type":21,"tag":138,"props":8581,"children":8582},{"class":140,"line":189},[8583],{"type":21,"tag":138,"props":8584,"children":8585},{"emptyLinePlaceholder":193},[8586],{"type":31,"value":196},{"type":21,"tag":138,"props":8588,"children":8589},{"class":140,"line":199},[8590,8595],{"type":21,"tag":138,"props":8591,"children":8592},{"style":151},[8593],{"type":31,"value":8594},"qml.grad(circuit)(params)  ",{"type":21,"tag":138,"props":8596,"children":8597},{"style":219},[8598],{"type":31,"value":8599},"# gradient is zero or errors\n",{"type":21,"tag":22,"props":8601,"children":8602},{},[8603],{"type":31,"value":8604},"PennyLane's autodifferentiation tracks which values are trainable through its own NumPy wrapper. Plain NumPy arrays don't carry that tracking, so a circuit built with them looks like it runs fine but produces a zero or wrong gradient, without an error pointing at the cause. Import PennyLane's wrapper instead:",{"type":21,"tag":128,"props":8606,"children":8608},{"className":130,"code":8607,"language":132,"meta":7,"style":7},"import pennylane.numpy as np\nparams = np.array([0.1, 0.2], requires_grad=True)\n",[8609],{"type":21,"tag":103,"props":8610,"children":8611},{"__ignoreMap":7},[8612,8633],{"type":21,"tag":138,"props":8613,"children":8614},{"class":140,"line":141},[8615,8619,8624,8628],{"type":21,"tag":138,"props":8616,"children":8617},{"style":145},[8618],{"type":31,"value":159},{"type":21,"tag":138,"props":8620,"children":8621},{"style":151},[8622],{"type":31,"value":8623}," pennylane.numpy ",{"type":21,"tag":138,"props":8625,"children":8626},{"style":145},[8627],{"type":31,"value":5356},{"type":21,"tag":138,"props":8629,"children":8630},{"style":151},[8631],{"type":31,"value":8632}," np\n",{"type":21,"tag":138,"props":8634,"children":8635},{"class":140,"line":167},[8636,8640,8644,8648,8652,8656,8660,8664,8669,8673,8678],{"type":21,"tag":138,"props":8637,"children":8638},{"style":151},[8639],{"type":31,"value":8552},{"type":21,"tag":138,"props":8641,"children":8642},{"style":145},[8643],{"type":31,"value":210},{"type":21,"tag":138,"props":8645,"children":8646},{"style":151},[8647],{"type":31,"value":8561},{"type":21,"tag":138,"props":8649,"children":8650},{"style":213},[8651],{"type":31,"value":8566},{"type":21,"tag":138,"props":8653,"children":8654},{"style":151},[8655],{"type":31,"value":258},{"type":21,"tag":138,"props":8657,"children":8658},{"style":213},[8659],{"type":31,"value":8575},{"type":21,"tag":138,"props":8661,"children":8662},{"style":151},[8663],{"type":31,"value":697},{"type":21,"tag":138,"props":8665,"children":8666},{"style":929},[8667],{"type":31,"value":8668},"requires_grad",{"type":21,"tag":138,"props":8670,"children":8671},{"style":145},[8672],{"type":31,"value":210},{"type":21,"tag":138,"props":8674,"children":8675},{"style":213},[8676],{"type":31,"value":8677},"True",{"type":21,"tag":138,"props":8679,"children":8680},{"style":151},[8681],{"type":31,"value":269},{"type":21,"tag":22,"props":8683,"children":8684},{},[8685,8691,8693,8698],{"type":21,"tag":103,"props":8686,"children":8688},{"className":8687},[],[8689],{"type":31,"value":8690},"requires_grad=True",{"type":31,"value":8692}," is the default for ",{"type":21,"tag":103,"props":8694,"children":8696},{"className":8695},[],[8697],{"type":31,"value":8511},{"type":31,"value":8699}," arrays, but setting it explicitly makes the intent visible in code review, and it's required if you're mixing trainable and non-trainable parameters in the equivalent array.",{"type":21,"tag":41,"props":8701,"children":8703},{"id":8702},"wireerror-wires-not-contained-in-the-device",[8704,8710],{"type":21,"tag":103,"props":8705,"children":8707},{"className":8706},[],[8708],{"type":31,"value":8709},"WireError",{"type":31,"value":8711},": wires not contained in the device",{"type":21,"tag":128,"props":8713,"children":8715},{"className":130,"code":8714,"language":132,"meta":7,"style":7},"dev = qml.device('default.qubit', wires=2)\n\n@qml.qnode(dev)\ndef circuit():\n    qml.Hadamard(wires=2)  # device only has wires 0 and 1\n    return qml.probs(wires=[0, 1])\n",[8716],{"type":21,"tag":103,"props":8717,"children":8718},{"__ignoreMap":7},[8719,8760,8767,8779,8794,8823],{"type":21,"tag":138,"props":8720,"children":8721},{"class":140,"line":141},[8722,8727,8731,8735,8740,8744,8748,8752,8756],{"type":21,"tag":138,"props":8723,"children":8724},{"style":151},[8725],{"type":31,"value":8726},"dev ",{"type":21,"tag":138,"props":8728,"children":8729},{"style":145},[8730],{"type":31,"value":210},{"type":21,"tag":138,"props":8732,"children":8733},{"style":151},[8734],{"type":31,"value":5446},{"type":21,"tag":138,"props":8736,"children":8737},{"style":261},[8738],{"type":31,"value":8739},"'default.qubit'",{"type":21,"tag":138,"props":8741,"children":8742},{"style":151},[8743],{"type":31,"value":258},{"type":21,"tag":138,"props":8745,"children":8746},{"style":929},[8747],{"type":31,"value":5460},{"type":21,"tag":138,"props":8749,"children":8750},{"style":145},[8751],{"type":31,"value":210},{"type":21,"tag":138,"props":8753,"children":8754},{"style":213},[8755],{"type":31,"value":292},{"type":21,"tag":138,"props":8757,"children":8758},{"style":151},[8759],{"type":31,"value":269},{"type":21,"tag":138,"props":8761,"children":8762},{"class":140,"line":167},[8763],{"type":21,"tag":138,"props":8764,"children":8765},{"emptyLinePlaceholder":193},[8766],{"type":31,"value":196},{"type":21,"tag":138,"props":8768,"children":8769},{"class":140,"line":189},[8770,8774],{"type":21,"tag":138,"props":8771,"children":8772},{"style":4522},[8773],{"type":31,"value":5487},{"type":21,"tag":138,"props":8775,"children":8776},{"style":151},[8777],{"type":31,"value":8778},"(dev)\n",{"type":21,"tag":138,"props":8780,"children":8781},{"class":140,"line":199},[8782,8786,8790],{"type":21,"tag":138,"props":8783,"children":8784},{"style":145},[8785],{"type":31,"value":5500},{"type":21,"tag":138,"props":8787,"children":8788},{"style":4522},[8789],{"type":31,"value":5505},{"type":21,"tag":138,"props":8791,"children":8792},{"style":151},[8793],{"type":31,"value":8009},{"type":21,"tag":138,"props":8795,"children":8796},{"class":140,"line":225},[8797,8802,8806,8810,8814,8818],{"type":21,"tag":138,"props":8798,"children":8799},{"style":151},[8800],{"type":31,"value":8801},"    qml.Hadamard(",{"type":21,"tag":138,"props":8803,"children":8804},{"style":929},[8805],{"type":31,"value":5460},{"type":21,"tag":138,"props":8807,"children":8808},{"style":145},[8809],{"type":31,"value":210},{"type":21,"tag":138,"props":8811,"children":8812},{"style":213},[8813],{"type":31,"value":292},{"type":21,"tag":138,"props":8815,"children":8816},{"style":151},[8817],{"type":31,"value":4637},{"type":21,"tag":138,"props":8819,"children":8820},{"style":219},[8821],{"type":31,"value":8822},"# device only has wires 0 and 1\n",{"type":21,"tag":138,"props":8824,"children":8825},{"class":140,"line":233},[8826,8830,8835,8839,8843,8847,8851,8855,8859],{"type":21,"tag":138,"props":8827,"children":8828},{"style":145},[8829],{"type":31,"value":5595},{"type":21,"tag":138,"props":8831,"children":8832},{"style":151},[8833],{"type":31,"value":8834}," qml.probs(",{"type":21,"tag":138,"props":8836,"children":8837},{"style":929},[8838],{"type":31,"value":5460},{"type":21,"tag":138,"props":8840,"children":8841},{"style":145},[8842],{"type":31,"value":210},{"type":21,"tag":138,"props":8844,"children":8845},{"style":151},[8846],{"type":31,"value":5547},{"type":21,"tag":138,"props":8848,"children":8849},{"style":213},[8850],{"type":31,"value":406},{"type":21,"tag":138,"props":8852,"children":8853},{"style":151},[8854],{"type":31,"value":258},{"type":21,"tag":138,"props":8856,"children":8857},{"style":213},[8858],{"type":31,"value":327},{"type":21,"tag":138,"props":8860,"children":8861},{"style":151},[8862],{"type":31,"value":598},{"type":21,"tag":22,"props":8864,"children":8865},{},[8866,8868,8874],{"type":31,"value":8867},"The device was declared with 2 wires (indices 0 and 1), and the circuit references wire 2, which doesn't exist on it. This happens most often when a circuit gets extended (adding a qubit for an ancilla, for instance) without updating the device declaration to match. Count wires carefully when the circuit changes, or declare the device with a named wire list (",{"type":21,"tag":103,"props":8869,"children":8871},{"className":8870},[],[8872],{"type":31,"value":8873},"wires=['a', 'b', 'ancilla']",{"type":31,"value":8875},") so mismatches are easier to spot than off-by-one integer errors.",{"type":21,"tag":41,"props":8877,"children":8879},{"id":8878},"qmlgrad-fails-or-falls-back-to-a-slow-method-unexpectedly",[8880,8886],{"type":21,"tag":103,"props":8881,"children":8883},{"className":8882},[],[8884],{"type":31,"value":8885},"qml.grad",{"type":31,"value":8887}," fails or falls back to a slow method unexpectedly",{"type":21,"tag":22,"props":8889,"children":8890},{},[8891,8893,8899,8901,8907,8909,8914,8916,8922,8924,8930,8932,8938,8940,8946],{"type":31,"value":8892},"PennyLane picks a differentiation method automatically (",{"type":21,"tag":103,"props":8894,"children":8896},{"className":8895},[],[8897],{"type":31,"value":8898},"diff_method='best'",{"type":31,"value":8900}," by default), and what's available depends on the device. ",{"type":21,"tag":103,"props":8902,"children":8904},{"className":8903},[],[8905],{"type":31,"value":8906},"backprop",{"type":31,"value":8908},", the fast option, only works on simulators that support it (like ",{"type":21,"tag":103,"props":8910,"children":8912},{"className":8911},[],[8913],{"type":31,"value":5620},{"type":31,"value":8915}," in simulation mode), not on shot-based or hardware-backed devices. Running the same circuit against a QPU or a shots-based device silently falls back to ",{"type":21,"tag":103,"props":8917,"children":8919},{"className":8918},[],[8920],{"type":31,"value":8921},"parameter-shift",{"type":31,"value":8923},", which is slower and needs multiple circuit evaluations per gradient. If gradient computation is suddenly much slower after switching devices, check what ",{"type":21,"tag":103,"props":8925,"children":8927},{"className":8926},[],[8928],{"type":31,"value":8929},"diff_method",{"type":31,"value":8931}," the new device supports rather than assuming ",{"type":21,"tag":103,"props":8933,"children":8935},{"className":8934},[],[8936],{"type":31,"value":8937},"'best'",{"type":31,"value":8939}," picked the identical thing both times, and set it explicitly (",{"type":21,"tag":103,"props":8941,"children":8943},{"className":8942},[],[8944],{"type":31,"value":8945},"diff_method='parameter-shift'",{"type":31,"value":8947},") when you need consistent, predictable behavior across devices.",{"type":21,"tag":41,"props":8949,"children":8951},{"id":8950},"plugin-version-drift-after-upgrading",[8952],{"type":31,"value":8953},"Plugin version drift after upgrading",{"type":21,"tag":22,"props":8955,"children":8956},{},[8957,8959,8965,8966,8972,8973,8979,8980,8986,8988,8994,8996,9001,9003,9009,9011,9017],{"type":31,"value":8958},"PennyLane's device backends for other SDKs (",{"type":21,"tag":103,"props":8960,"children":8962},{"className":8961},[],[8963],{"type":31,"value":8964},"pennylane-lightning",{"type":31,"value":258},{"type":21,"tag":103,"props":8967,"children":8969},{"className":8968},[],[8970],{"type":31,"value":8971},"pennylane-qiskit",{"type":31,"value":258},{"type":21,"tag":103,"props":8974,"children":8976},{"className":8975},[],[8977],{"type":31,"value":8978},"pennylane-cirq",{"type":31,"value":258},{"type":21,"tag":103,"props":8981,"children":8983},{"className":8982},[],[8984],{"type":31,"value":8985},"pennylane-braket",{"type":31,"value":8987},") are separate packages with their own version numbers, not bundled with core ",{"type":21,"tag":103,"props":8989,"children":8991},{"className":8990},[],[8992],{"type":31,"value":8993},"pennylane",{"type":31,"value":8995},". Upgrading ",{"type":21,"tag":103,"props":8997,"children":8999},{"className":8998},[],[9000],{"type":31,"value":8993},{"type":31,"value":9002}," without upgrading its plugins, or the reverse, produces ",{"type":21,"tag":103,"props":9004,"children":9006},{"className":9005},[],[9007],{"type":31,"value":9008},"ImportError",{"type":31,"value":9010},"s referencing internal APIs that changed between versions, or silent behavior differences that are much harder to trace. When you upgrade one, check ",{"type":21,"tag":103,"props":9012,"children":9014},{"className":9013},[],[9015],{"type":31,"value":9016},"pip list | grep pennylane",{"type":31,"value":9018}," and upgrade the plugins in the equivalent pass:",{"type":21,"tag":128,"props":9020,"children":9022},{"className":4512,"code":9021,"language":4511,"meta":7,"style":7},"pip install --upgrade pennylane pennylane-lightning pennylane-qiskit\n",[9023],{"type":21,"tag":103,"props":9024,"children":9025},{"__ignoreMap":7},[9026],{"type":21,"tag":138,"props":9027,"children":9028},{"class":140,"line":141},[9029,9033,9037,9041,9046,9051],{"type":21,"tag":138,"props":9030,"children":9031},{"style":4522},[9032],{"type":31,"value":4525},{"type":21,"tag":138,"props":9034,"children":9035},{"style":261},[9036],{"type":31,"value":4530},{"type":21,"tag":138,"props":9038,"children":9039},{"style":213},[9040],{"type":31,"value":4535},{"type":21,"tag":138,"props":9042,"children":9043},{"style":261},[9044],{"type":31,"value":9045}," pennylane",{"type":21,"tag":138,"props":9047,"children":9048},{"style":261},[9049],{"type":31,"value":9050}," pennylane-lightning",{"type":21,"tag":138,"props":9052,"children":9053},{"style":261},[9054],{"type":31,"value":9055}," pennylane-qiskit\n",{"type":21,"tag":41,"props":9057,"children":9059},{"id":9058},"qnode-return-shape-doesnt-match-what-you-expected",[9060],{"type":31,"value":9061},"QNode return shape doesn't match what you expected",{"type":21,"tag":22,"props":9063,"children":9064},{},[9065,9066,9072,9073,9079,9081,9087],{"type":31,"value":7240},{"type":21,"tag":103,"props":9067,"children":9069},{"className":9068},[],[9070],{"type":31,"value":9071},"qml.probs()",{"type":31,"value":3628},{"type":21,"tag":103,"props":9074,"children":9076},{"className":9075},[],[9077],{"type":31,"value":9078},"qml.expval()",{"type":31,"value":9080}," in the same QNode, or forgetting that batched\u002Fbroadcasted inputs adjust a QNode's output from a single array to a stack of arrays, is a common source of shape-mismatch errors downstream in whatever consumes the QNode's output (an optimizer, a loss function). Print ",{"type":21,"tag":103,"props":9082,"children":9084},{"className":9083},[],[9085],{"type":31,"value":9086},"result.shape",{"type":31,"value":9088}," right after calling the QNode when debugging a training loop that's failing on a shape error further down, rather than assuming the QNode's output shape matches your mental model of the circuit.",{"type":21,"tag":41,"props":9090,"children":9091},{"id":7198},[9092],{"type":31,"value":7201},{"type":21,"tag":22,"props":9094,"children":9095},{},[9096,9098,9103,9105,9110],{"type":31,"value":9097},"Most PennyLane errors trace back to the same root cause: something about differentiability, either the wrong NumPy, the wrong ",{"type":21,"tag":103,"props":9099,"children":9101},{"className":9100},[],[9102],{"type":31,"value":8929},{"type":31,"value":9104}," for the device, or plugin versions out of sync, broke silently rather than loudly. Our ",{"type":21,"tag":26,"props":9106,"children":9107},{"href":3623},[9108],{"type":31,"value":9109},"VQE with PennyLane guide",{"type":31,"value":9111}," builds a full optimization loop with the correct patterns if you want a working reference to check code against.",{"type":21,"tag":1174,"props":9113,"children":9114},{},[9115],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":9117},[9118,9120,9122,9124,9125,9126],{"id":8502,"depth":167,"text":9119},"Using plain NumPy instead of pennylane.numpy",{"id":8702,"depth":167,"text":9121},"WireError: wires not contained in the device",{"id":8878,"depth":167,"text":9123},"qml.grad fails or falls back to a slow method unexpectedly",{"id":8950,"depth":167,"text":8953},{"id":9058,"depth":167,"text":9061},{"id":7198,"depth":167,"text":7201},"content:blog:common-pennylane-errors-and-fixes.md","blog\u002Fcommon-pennylane-errors-and-fixes.md","blog\u002Fcommon-pennylane-errors-and-fixes",{"_path":6004,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":9131,"description":9132,"date":4484,"author":11,"tags":9133,"readingTime":308,"body":9134,"_type":1193,"_id":10541,"_source":1195,"_file":10542,"_stem":10543,"_extension":1198},"Common Qiskit Errors and How to Fix Them","The Qiskit errors that trip up beginners and returning users most often: the removed execute() function, the Aer import that moved packages, IBMQ deprecation, register mismatches, and transpiler failures. Each with the fix.",[14,3054,5986],{"type":18,"children":9135,"toc":10524},[9136,9141,9151,9164,9224,9229,9346,9381,9405,9440,9549,9562,9574,9595,9681,9700,9838,9859,9871,9883,9938,9965,9992,10115,10134,10153,10158,10263,10276,10288,10340,10376,10395,10456,10462,10490,10494,10520],{"type":21,"tag":22,"props":9137,"children":9138},{},[9139],{"type":31,"value":9140},"Most Qiskit errors people hit aren't bugs in their circuit logic. They're API surface that moved: a function got removed, a package got split out, an authentication method got replaced, and the error message doesn't always point at the fix. This is a working list of the ones that show up most, gathered from Qiskit's own migration guides and the questions that keep recurring around the SDK, with the fix for each one.",{"type":21,"tag":41,"props":9142,"children":9144},{"id":9143},"importerror-cannot-import-name-execute-from-qiskit",[9145],{"type":21,"tag":103,"props":9146,"children":9148},{"className":9147},[],[9149],{"type":31,"value":9150},"ImportError: cannot import name 'execute' from 'qiskit'",{"type":21,"tag":22,"props":9152,"children":9153},{},[9154,9156,9162],{"type":31,"value":9155},"Qiskit 1.0 removed the top-level ",{"type":21,"tag":103,"props":9157,"children":9159},{"className":9158},[],[9160],{"type":31,"value":9161},"execute()",{"type":31,"value":9163}," function that older tutorials and StackOverflow answers still use. If you copy code like this:",{"type":21,"tag":128,"props":9165,"children":9167},{"className":130,"code":9166,"language":132,"meta":7,"style":7},"from qiskit import execute\nresult = execute(qc, backend, shots=1000).result()\n",[9168],{"type":21,"tag":103,"props":9169,"children":9170},{"__ignoreMap":7},[9171,9191],{"type":21,"tag":138,"props":9172,"children":9173},{"class":140,"line":141},[9174,9178,9182,9186],{"type":21,"tag":138,"props":9175,"children":9176},{"style":145},[9177],{"type":31,"value":148},{"type":21,"tag":138,"props":9179,"children":9180},{"style":151},[9181],{"type":31,"value":154},{"type":21,"tag":138,"props":9183,"children":9184},{"style":145},[9185],{"type":31,"value":159},{"type":21,"tag":138,"props":9187,"children":9188},{"style":151},[9189],{"type":31,"value":9190}," execute\n",{"type":21,"tag":138,"props":9192,"children":9193},{"class":140,"line":167},[9194,9198,9202,9207,9211,9215,9219],{"type":21,"tag":138,"props":9195,"children":9196},{"style":151},[9197],{"type":31,"value":4881},{"type":21,"tag":138,"props":9199,"children":9200},{"style":145},[9201],{"type":31,"value":210},{"type":21,"tag":138,"props":9203,"children":9204},{"style":151},[9205],{"type":31,"value":9206}," execute(qc, backend, ",{"type":21,"tag":138,"props":9208,"children":9209},{"style":929},[9210],{"type":31,"value":932},{"type":21,"tag":138,"props":9212,"children":9213},{"style":145},[9214],{"type":31,"value":210},{"type":21,"tag":138,"props":9216,"children":9217},{"style":213},[9218],{"type":31,"value":1736},{"type":21,"tag":138,"props":9220,"children":9221},{"style":151},[9222],{"type":31,"value":9223},").result()\n",{"type":21,"tag":22,"props":9225,"children":9226},{},[9227],{"type":31,"value":9228},"it fails on any current Qiskit install. The replacement depends on what you're running against. For a local simulator:",{"type":21,"tag":128,"props":9230,"children":9232},{"className":130,"code":9231,"language":132,"meta":7,"style":7},"from qiskit_aer import AerSimulator\nfrom qiskit import transpile\n\nbackend = AerSimulator()\nqc_t = transpile(qc, backend)\nresult = backend.run(qc_t, shots=1000).result()\n",[9233],{"type":21,"tag":103,"props":9234,"children":9235},{"__ignoreMap":7},[9236,9255,9275,9282,9297,9314],{"type":21,"tag":138,"props":9237,"children":9238},{"class":140,"line":141},[9239,9243,9247,9251],{"type":21,"tag":138,"props":9240,"children":9241},{"style":145},[9242],{"type":31,"value":148},{"type":21,"tag":138,"props":9244,"children":9245},{"style":151},[9246],{"type":31,"value":177},{"type":21,"tag":138,"props":9248,"children":9249},{"style":145},[9250],{"type":31,"value":159},{"type":21,"tag":138,"props":9252,"children":9253},{"style":151},[9254],{"type":31,"value":186},{"type":21,"tag":138,"props":9256,"children":9257},{"class":140,"line":167},[9258,9262,9266,9270],{"type":21,"tag":138,"props":9259,"children":9260},{"style":145},[9261],{"type":31,"value":148},{"type":21,"tag":138,"props":9263,"children":9264},{"style":151},[9265],{"type":31,"value":154},{"type":21,"tag":138,"props":9267,"children":9268},{"style":145},[9269],{"type":31,"value":159},{"type":21,"tag":138,"props":9271,"children":9272},{"style":151},[9273],{"type":31,"value":9274}," transpile\n",{"type":21,"tag":138,"props":9276,"children":9277},{"class":140,"line":189},[9278],{"type":21,"tag":138,"props":9279,"children":9280},{"emptyLinePlaceholder":193},[9281],{"type":31,"value":196},{"type":21,"tag":138,"props":9283,"children":9284},{"class":140,"line":199},[9285,9289,9293],{"type":21,"tag":138,"props":9286,"children":9287},{"style":151},[9288],{"type":31,"value":6456},{"type":21,"tag":138,"props":9290,"children":9291},{"style":145},[9292],{"type":31,"value":210},{"type":21,"tag":138,"props":9294,"children":9295},{"style":151},[9296],{"type":31,"value":892},{"type":21,"tag":138,"props":9298,"children":9299},{"class":140,"line":225},[9300,9305,9309],{"type":21,"tag":138,"props":9301,"children":9302},{"style":151},[9303],{"type":31,"value":9304},"qc_t ",{"type":21,"tag":138,"props":9306,"children":9307},{"style":145},[9308],{"type":31,"value":210},{"type":21,"tag":138,"props":9310,"children":9311},{"style":151},[9312],{"type":31,"value":9313}," transpile(qc, backend)\n",{"type":21,"tag":138,"props":9315,"children":9316},{"class":140,"line":233},[9317,9321,9325,9330,9334,9338,9342],{"type":21,"tag":138,"props":9318,"children":9319},{"style":151},[9320],{"type":31,"value":4881},{"type":21,"tag":138,"props":9322,"children":9323},{"style":145},[9324],{"type":31,"value":210},{"type":21,"tag":138,"props":9326,"children":9327},{"style":151},[9328],{"type":31,"value":9329}," backend.run(qc_t, ",{"type":21,"tag":138,"props":9331,"children":9332},{"style":929},[9333],{"type":31,"value":932},{"type":21,"tag":138,"props":9335,"children":9336},{"style":145},[9337],{"type":31,"value":210},{"type":21,"tag":138,"props":9339,"children":9340},{"style":213},[9341],{"type":31,"value":1736},{"type":21,"tag":138,"props":9343,"children":9344},{"style":151},[9345],{"type":31,"value":9223},{"type":21,"tag":22,"props":9347,"children":9348},{},[9349,9351,9357,9358,9364,9366,9372,9374,9379],{"type":31,"value":9350},"For real IBM hardware or IBM's cloud simulators, use the primitives (",{"type":21,"tag":103,"props":9352,"children":9354},{"className":9353},[],[9355],{"type":31,"value":9356},"Sampler",{"type":31,"value":7702},{"type":21,"tag":103,"props":9359,"children":9361},{"className":9360},[],[9362],{"type":31,"value":9363},"Estimator",{"type":31,"value":9365},") through ",{"type":21,"tag":103,"props":9367,"children":9369},{"className":9368},[],[9370],{"type":31,"value":9371},"QiskitRuntimeService",{"type":31,"value":9373}," instead, covered below. ",{"type":21,"tag":103,"props":9375,"children":9377},{"className":9376},[],[9378],{"type":31,"value":9161},{"type":31,"value":9380}," was a convenience wrapper around transpile-then-run, and Qiskit 1.0 made that step explicit rather than implicit.",{"type":21,"tag":41,"props":9382,"children":9384},{"id":9383},"importerror-or-attributeerror-on-from-qiskit-import-aer",[9385,9390,9391,9397,9399],{"type":21,"tag":103,"props":9386,"children":9388},{"className":9387},[],[9389],{"type":31,"value":9008},{"type":31,"value":7702},{"type":21,"tag":103,"props":9392,"children":9394},{"className":9393},[],[9395],{"type":31,"value":9396},"AttributeError",{"type":31,"value":9398}," on ",{"type":21,"tag":103,"props":9400,"children":9402},{"className":9401},[],[9403],{"type":31,"value":9404},"from qiskit import Aer",{"type":21,"tag":22,"props":9406,"children":9407},{},[9408,9410,9416,9418,9424,9426,9431,9432,9438],{"type":31,"value":9409},"Aer, Qiskit's simulator package, moved out of the core ",{"type":21,"tag":103,"props":9411,"children":9413},{"className":9412},[],[9414],{"type":31,"value":9415},"qiskit",{"type":31,"value":9417}," package into its own ",{"type":21,"tag":103,"props":9419,"children":9421},{"className":9420},[],[9422],{"type":31,"value":9423},"qiskit-aer",{"type":31,"value":9425}," package. Any code doing ",{"type":21,"tag":103,"props":9427,"children":9429},{"className":9428},[],[9430],{"type":31,"value":9404},{"type":31,"value":7702},{"type":21,"tag":103,"props":9433,"children":9435},{"className":9434},[],[9436],{"type":31,"value":9437},"Aer.get_backend('qasm_simulator')",{"type":31,"value":9439}," is written against the old, unified package structure.",{"type":21,"tag":128,"props":9441,"children":9443},{"className":130,"code":9442,"language":132,"meta":7,"style":7},"# Old, breaks now\nfrom qiskit import Aer\nsim = Aer.get_backend('qasm_simulator')\n\n# Current\nfrom qiskit_aer import AerSimulator\nsim = AerSimulator()\n",[9444],{"type":21,"tag":103,"props":9445,"children":9446},{"__ignoreMap":7},[9447,9455,9475,9500,9507,9515,9534],{"type":21,"tag":138,"props":9448,"children":9449},{"class":140,"line":141},[9450],{"type":21,"tag":138,"props":9451,"children":9452},{"style":219},[9453],{"type":31,"value":9454},"# Old, breaks now\n",{"type":21,"tag":138,"props":9456,"children":9457},{"class":140,"line":167},[9458,9462,9466,9470],{"type":21,"tag":138,"props":9459,"children":9460},{"style":145},[9461],{"type":31,"value":148},{"type":21,"tag":138,"props":9463,"children":9464},{"style":151},[9465],{"type":31,"value":154},{"type":21,"tag":138,"props":9467,"children":9468},{"style":145},[9469],{"type":31,"value":159},{"type":21,"tag":138,"props":9471,"children":9472},{"style":151},[9473],{"type":31,"value":9474}," Aer\n",{"type":21,"tag":138,"props":9476,"children":9477},{"class":140,"line":189},[9478,9482,9486,9491,9496],{"type":21,"tag":138,"props":9479,"children":9480},{"style":151},[9481],{"type":31,"value":883},{"type":21,"tag":138,"props":9483,"children":9484},{"style":145},[9485],{"type":31,"value":210},{"type":21,"tag":138,"props":9487,"children":9488},{"style":151},[9489],{"type":31,"value":9490}," Aer.get_backend(",{"type":21,"tag":138,"props":9492,"children":9493},{"style":261},[9494],{"type":31,"value":9495},"'qasm_simulator'",{"type":21,"tag":138,"props":9497,"children":9498},{"style":151},[9499],{"type":31,"value":269},{"type":21,"tag":138,"props":9501,"children":9502},{"class":140,"line":199},[9503],{"type":21,"tag":138,"props":9504,"children":9505},{"emptyLinePlaceholder":193},[9506],{"type":31,"value":196},{"type":21,"tag":138,"props":9508,"children":9509},{"class":140,"line":225},[9510],{"type":21,"tag":138,"props":9511,"children":9512},{"style":219},[9513],{"type":31,"value":9514},"# Current\n",{"type":21,"tag":138,"props":9516,"children":9517},{"class":140,"line":233},[9518,9522,9526,9530],{"type":21,"tag":138,"props":9519,"children":9520},{"style":145},[9521],{"type":31,"value":148},{"type":21,"tag":138,"props":9523,"children":9524},{"style":151},[9525],{"type":31,"value":177},{"type":21,"tag":138,"props":9527,"children":9528},{"style":145},[9529],{"type":31,"value":159},{"type":21,"tag":138,"props":9531,"children":9532},{"style":151},[9533],{"type":31,"value":186},{"type":21,"tag":138,"props":9535,"children":9536},{"class":140,"line":272},[9537,9541,9545],{"type":21,"tag":138,"props":9538,"children":9539},{"style":151},[9540],{"type":31,"value":883},{"type":21,"tag":138,"props":9542,"children":9543},{"style":145},[9544],{"type":31,"value":210},{"type":21,"tag":138,"props":9546,"children":9547},{"style":151},[9548],{"type":31,"value":892},{"type":21,"tag":22,"props":9550,"children":9551},{},[9552,9554,9560],{"type":31,"value":9553},"Install with ",{"type":21,"tag":103,"props":9555,"children":9557},{"className":9556},[],[9558],{"type":31,"value":9559},"pip install qiskit-aer",{"type":31,"value":9561}," if it's missing. This is the single most common install-related error, because so much existing tutorial content predates the split.",{"type":21,"tag":41,"props":9563,"children":9565},{"id":9564},"ibmqload_account-no-longer-works",[9566,9572],{"type":21,"tag":103,"props":9567,"children":9569},{"className":9568},[],[9570],{"type":31,"value":9571},"IBMQ.load_account()",{"type":31,"value":9573}," no longer works",{"type":21,"tag":22,"props":9575,"children":9576},{},[9577,9579,9585,9587,9593],{"type":31,"value":9578},"IBM retired the legacy ",{"type":21,"tag":103,"props":9580,"children":9582},{"className":9581},[],[9583],{"type":31,"value":9584},"IBMQ",{"type":31,"value":9586}," provider and its ",{"type":21,"tag":103,"props":9588,"children":9590},{"className":9589},[],[9591],{"type":31,"value":9592},"ibmq_qasm_simulator",{"type":31,"value":9594},". Code written against the old provider pattern:",{"type":21,"tag":128,"props":9596,"children":9598},{"className":130,"code":9597,"language":132,"meta":7,"style":7},"# Old, retired\nfrom qiskit import IBMQ\nIBMQ.load_account()\nprovider = IBMQ.get_provider(hub='ibm-q')\n",[9599],{"type":21,"tag":103,"props":9600,"children":9601},{"__ignoreMap":7},[9602,9610,9630,9642],{"type":21,"tag":138,"props":9603,"children":9604},{"class":140,"line":141},[9605],{"type":21,"tag":138,"props":9606,"children":9607},{"style":219},[9608],{"type":31,"value":9609},"# Old, retired\n",{"type":21,"tag":138,"props":9611,"children":9612},{"class":140,"line":167},[9613,9617,9621,9625],{"type":21,"tag":138,"props":9614,"children":9615},{"style":145},[9616],{"type":31,"value":148},{"type":21,"tag":138,"props":9618,"children":9619},{"style":151},[9620],{"type":31,"value":154},{"type":21,"tag":138,"props":9622,"children":9623},{"style":145},[9624],{"type":31,"value":159},{"type":21,"tag":138,"props":9626,"children":9627},{"style":213},[9628],{"type":31,"value":9629}," IBMQ\n",{"type":21,"tag":138,"props":9631,"children":9632},{"class":140,"line":189},[9633,9637],{"type":21,"tag":138,"props":9634,"children":9635},{"style":213},[9636],{"type":31,"value":9584},{"type":21,"tag":138,"props":9638,"children":9639},{"style":151},[9640],{"type":31,"value":9641},".load_account()\n",{"type":21,"tag":138,"props":9643,"children":9644},{"class":140,"line":199},[9645,9649,9653,9658,9663,9668,9672,9677],{"type":21,"tag":138,"props":9646,"children":9647},{"style":151},[9648],{"type":31,"value":6180},{"type":21,"tag":138,"props":9650,"children":9651},{"style":145},[9652],{"type":31,"value":210},{"type":21,"tag":138,"props":9654,"children":9655},{"style":213},[9656],{"type":31,"value":9657}," IBMQ",{"type":21,"tag":138,"props":9659,"children":9660},{"style":151},[9661],{"type":31,"value":9662},".get_provider(",{"type":21,"tag":138,"props":9664,"children":9665},{"style":929},[9666],{"type":31,"value":9667},"hub",{"type":21,"tag":138,"props":9669,"children":9670},{"style":145},[9671],{"type":31,"value":210},{"type":21,"tag":138,"props":9673,"children":9674},{"style":261},[9675],{"type":31,"value":9676},"'ibm-q'",{"type":21,"tag":138,"props":9678,"children":9679},{"style":151},[9680],{"type":31,"value":269},{"type":21,"tag":22,"props":9682,"children":9683},{},[9684,9686,9691,9693,9698],{"type":31,"value":9685},"needs to move to ",{"type":21,"tag":103,"props":9687,"children":9689},{"className":9688},[],[9690],{"type":31,"value":9371},{"type":31,"value":9692},", the current entry point for both the ",{"type":21,"tag":26,"props":9694,"children":9695},{"href":1976},[9696],{"type":31,"value":9697},"free tier",{"type":31,"value":9699}," and paid access:",{"type":21,"tag":128,"props":9701,"children":9703},{"className":130,"code":9702,"language":132,"meta":7,"style":7},"from qiskit_ibm_runtime import QiskitRuntimeService\n\nservice = QiskitRuntimeService(channel=\"ibm_quantum\", token=\"YOUR_TOKEN\")\nbackend = service.least_busy(operational=True, simulator=False)\n",[9704],{"type":21,"tag":103,"props":9705,"children":9706},{"__ignoreMap":7},[9707,9728,9735,9787],{"type":21,"tag":138,"props":9708,"children":9709},{"class":140,"line":141},[9710,9714,9719,9723],{"type":21,"tag":138,"props":9711,"children":9712},{"style":145},[9713],{"type":31,"value":148},{"type":21,"tag":138,"props":9715,"children":9716},{"style":151},[9717],{"type":31,"value":9718}," qiskit_ibm_runtime ",{"type":21,"tag":138,"props":9720,"children":9721},{"style":145},[9722],{"type":31,"value":159},{"type":21,"tag":138,"props":9724,"children":9725},{"style":151},[9726],{"type":31,"value":9727}," QiskitRuntimeService\n",{"type":21,"tag":138,"props":9729,"children":9730},{"class":140,"line":167},[9731],{"type":21,"tag":138,"props":9732,"children":9733},{"emptyLinePlaceholder":193},[9734],{"type":31,"value":196},{"type":21,"tag":138,"props":9736,"children":9737},{"class":140,"line":189},[9738,9742,9746,9751,9756,9760,9765,9769,9774,9778,9783],{"type":21,"tag":138,"props":9739,"children":9740},{"style":151},[9741],{"type":31,"value":4650},{"type":21,"tag":138,"props":9743,"children":9744},{"style":145},[9745],{"type":31,"value":210},{"type":21,"tag":138,"props":9747,"children":9748},{"style":151},[9749],{"type":31,"value":9750}," QiskitRuntimeService(",{"type":21,"tag":138,"props":9752,"children":9753},{"style":929},[9754],{"type":31,"value":9755},"channel",{"type":21,"tag":138,"props":9757,"children":9758},{"style":145},[9759],{"type":31,"value":210},{"type":21,"tag":138,"props":9761,"children":9762},{"style":261},[9763],{"type":31,"value":9764},"\"ibm_quantum\"",{"type":21,"tag":138,"props":9766,"children":9767},{"style":151},[9768],{"type":31,"value":258},{"type":21,"tag":138,"props":9770,"children":9771},{"style":929},[9772],{"type":31,"value":9773},"token",{"type":21,"tag":138,"props":9775,"children":9776},{"style":145},[9777],{"type":31,"value":210},{"type":21,"tag":138,"props":9779,"children":9780},{"style":261},[9781],{"type":31,"value":9782},"\"YOUR_TOKEN\"",{"type":21,"tag":138,"props":9784,"children":9785},{"style":151},[9786],{"type":31,"value":269},{"type":21,"tag":138,"props":9788,"children":9789},{"class":140,"line":199},[9790,9794,9798,9803,9808,9812,9816,9820,9825,9829,9834],{"type":21,"tag":138,"props":9791,"children":9792},{"style":151},[9793],{"type":31,"value":6456},{"type":21,"tag":138,"props":9795,"children":9796},{"style":145},[9797],{"type":31,"value":210},{"type":21,"tag":138,"props":9799,"children":9800},{"style":151},[9801],{"type":31,"value":9802}," service.least_busy(",{"type":21,"tag":138,"props":9804,"children":9805},{"style":929},[9806],{"type":31,"value":9807},"operational",{"type":21,"tag":138,"props":9809,"children":9810},{"style":145},[9811],{"type":31,"value":210},{"type":21,"tag":138,"props":9813,"children":9814},{"style":213},[9815],{"type":31,"value":8677},{"type":21,"tag":138,"props":9817,"children":9818},{"style":151},[9819],{"type":31,"value":258},{"type":21,"tag":138,"props":9821,"children":9822},{"style":929},[9823],{"type":31,"value":9824},"simulator",{"type":21,"tag":138,"props":9826,"children":9827},{"style":145},[9828],{"type":31,"value":210},{"type":21,"tag":138,"props":9830,"children":9831},{"style":213},[9832],{"type":31,"value":9833},"False",{"type":21,"tag":138,"props":9835,"children":9836},{"style":151},[9837],{"type":31,"value":269},{"type":21,"tag":22,"props":9839,"children":9840},{},[9841,9843,9849,9851,9857],{"type":31,"value":9842},"Save your API token once with ",{"type":21,"tag":103,"props":9844,"children":9846},{"className":9845},[],[9847],{"type":31,"value":9848},"QiskitRuntimeService.save_account(token=\"...\")",{"type":31,"value":9850}," and later calls to ",{"type":21,"tag":103,"props":9852,"children":9854},{"className":9853},[],[9855],{"type":31,"value":9856},"QiskitRuntimeService()",{"type":31,"value":9858}," pick it up automatically without passing the token again.",{"type":21,"tag":41,"props":9860,"children":9862},{"id":9861},"modulenotfounderror-no-module-named-azurequantum-when-submitting-to-azure-quantum",[9863,9869],{"type":21,"tag":103,"props":9864,"children":9866},{"className":9865},[],[9867],{"type":31,"value":9868},"ModuleNotFoundError: No module named 'azure.quantum'",{"type":31,"value":9870}," when submitting to Azure Quantum",{"type":21,"tag":22,"props":9872,"children":9873},{},[9874,9876,9881],{"type":31,"value":9875},"Code written against Microsoft's older Azure Quantum integration imports the standalone ",{"type":21,"tag":103,"props":9877,"children":9879},{"className":9878},[],[9880],{"type":31,"value":5999},{"type":31,"value":9882}," package:",{"type":21,"tag":128,"props":9884,"children":9886},{"className":130,"code":9885,"language":132,"meta":7,"style":7},"# Old pattern\nfrom azure.quantum import Workspace\nfrom azure.quantum.qiskit import AzureQuantumProvider\n",[9887],{"type":21,"tag":103,"props":9888,"children":9889},{"__ignoreMap":7},[9890,9898,9918],{"type":21,"tag":138,"props":9891,"children":9892},{"class":140,"line":141},[9893],{"type":21,"tag":138,"props":9894,"children":9895},{"style":219},[9896],{"type":31,"value":9897},"# Old pattern\n",{"type":21,"tag":138,"props":9899,"children":9900},{"class":140,"line":167},[9901,9905,9910,9914],{"type":21,"tag":138,"props":9902,"children":9903},{"style":145},[9904],{"type":31,"value":148},{"type":21,"tag":138,"props":9906,"children":9907},{"style":151},[9908],{"type":31,"value":9909}," azure.quantum ",{"type":21,"tag":138,"props":9911,"children":9912},{"style":145},[9913],{"type":31,"value":159},{"type":21,"tag":138,"props":9915,"children":9916},{"style":151},[9917],{"type":31,"value":4573},{"type":21,"tag":138,"props":9919,"children":9920},{"class":140,"line":189},[9921,9925,9930,9934],{"type":21,"tag":138,"props":9922,"children":9923},{"style":145},[9924],{"type":31,"value":148},{"type":21,"tag":138,"props":9926,"children":9927},{"style":151},[9928],{"type":31,"value":9929}," azure.quantum.qiskit ",{"type":21,"tag":138,"props":9931,"children":9932},{"style":145},[9933],{"type":31,"value":159},{"type":21,"tag":138,"props":9935,"children":9936},{"style":151},[9937],{"type":31,"value":6165},{"type":21,"tag":22,"props":9939,"children":9940},{},[9941,9943,9949,9951,9957,9958,9963],{"type":31,"value":9942},"Microsoft's current Quantum Development Kit (QDK) folds Azure Quantum support into the unified ",{"type":21,"tag":103,"props":9944,"children":9946},{"className":9945},[],[9947],{"type":31,"value":9948},"qdk",{"type":31,"value":9950}," package instead, installed with the ",{"type":21,"tag":103,"props":9952,"children":9954},{"className":9953},[],[9955],{"type":31,"value":9956},"azure",{"type":31,"value":3628},{"type":21,"tag":103,"props":9959,"children":9961},{"className":9960},[],[9962],{"type":31,"value":9415},{"type":31,"value":9964}," extras:",{"type":21,"tag":128,"props":9966,"children":9968},{"className":4512,"code":9967,"language":4511,"meta":7,"style":7},"pip install --upgrade \"qdk[azure,qiskit]\"\n",[9969],{"type":21,"tag":103,"props":9970,"children":9971},{"__ignoreMap":7},[9972],{"type":21,"tag":138,"props":9973,"children":9974},{"class":140,"line":141},[9975,9979,9983,9987],{"type":21,"tag":138,"props":9976,"children":9977},{"style":4522},[9978],{"type":31,"value":4525},{"type":21,"tag":138,"props":9980,"children":9981},{"style":261},[9982],{"type":31,"value":4530},{"type":21,"tag":138,"props":9984,"children":9985},{"style":213},[9986],{"type":31,"value":4535},{"type":21,"tag":138,"props":9988,"children":9989},{"style":261},[9990],{"type":31,"value":9991}," \"qdk[azure,qiskit]\"\n",{"type":21,"tag":128,"props":9993,"children":9995},{"className":130,"code":9994,"language":132,"meta":7,"style":7},"from qdk.azure import Workspace\nfrom qdk.azure.qiskit import AzureQuantumProvider\n\nworkspace = Workspace(resource_id=\"\u002Fsubscriptions\u002F...\u002FMicrosoft.Quantum\u002FWorkspaces\u002F...\")\nprovider = AzureQuantumProvider(workspace)\nbackend = provider.get_backend(\"quantinuum.qpu.h1-1\")\n",[9996],{"type":21,"tag":103,"props":9997,"children":9998},{"__ignoreMap":7},[9999,10018,10037,10044,10076,10091],{"type":21,"tag":138,"props":10000,"children":10001},{"class":140,"line":141},[10002,10006,10010,10014],{"type":21,"tag":138,"props":10003,"children":10004},{"style":145},[10005],{"type":31,"value":148},{"type":21,"tag":138,"props":10007,"children":10008},{"style":151},[10009],{"type":31,"value":4564},{"type":21,"tag":138,"props":10011,"children":10012},{"style":145},[10013],{"type":31,"value":159},{"type":21,"tag":138,"props":10015,"children":10016},{"style":151},[10017],{"type":31,"value":4573},{"type":21,"tag":138,"props":10019,"children":10020},{"class":140,"line":167},[10021,10025,10029,10033],{"type":21,"tag":138,"props":10022,"children":10023},{"style":145},[10024],{"type":31,"value":148},{"type":21,"tag":138,"props":10026,"children":10027},{"style":151},[10028],{"type":31,"value":6156},{"type":21,"tag":138,"props":10030,"children":10031},{"style":145},[10032],{"type":31,"value":159},{"type":21,"tag":138,"props":10034,"children":10035},{"style":151},[10036],{"type":31,"value":6165},{"type":21,"tag":138,"props":10038,"children":10039},{"class":140,"line":189},[10040],{"type":21,"tag":138,"props":10041,"children":10042},{"emptyLinePlaceholder":193},[10043],{"type":31,"value":196},{"type":21,"tag":138,"props":10045,"children":10046},{"class":140,"line":199},[10047,10051,10055,10059,10063,10067,10072],{"type":21,"tag":138,"props":10048,"children":10049},{"style":151},[10050],{"type":31,"value":4609},{"type":21,"tag":138,"props":10052,"children":10053},{"style":145},[10054],{"type":31,"value":210},{"type":21,"tag":138,"props":10056,"children":10057},{"style":151},[10058],{"type":31,"value":4618},{"type":21,"tag":138,"props":10060,"children":10061},{"style":929},[10062],{"type":31,"value":4623},{"type":21,"tag":138,"props":10064,"children":10065},{"style":145},[10066],{"type":31,"value":210},{"type":21,"tag":138,"props":10068,"children":10069},{"style":261},[10070],{"type":31,"value":10071},"\"\u002Fsubscriptions\u002F...\u002FMicrosoft.Quantum\u002FWorkspaces\u002F...\"",{"type":21,"tag":138,"props":10073,"children":10074},{"style":151},[10075],{"type":31,"value":269},{"type":21,"tag":138,"props":10077,"children":10078},{"class":140,"line":225},[10079,10083,10087],{"type":21,"tag":138,"props":10080,"children":10081},{"style":151},[10082],{"type":31,"value":6180},{"type":21,"tag":138,"props":10084,"children":10085},{"style":145},[10086],{"type":31,"value":210},{"type":21,"tag":138,"props":10088,"children":10089},{"style":151},[10090],{"type":31,"value":6189},{"type":21,"tag":138,"props":10092,"children":10093},{"class":140,"line":233},[10094,10098,10102,10106,10111],{"type":21,"tag":138,"props":10095,"children":10096},{"style":151},[10097],{"type":31,"value":6456},{"type":21,"tag":138,"props":10099,"children":10100},{"style":145},[10101],{"type":31,"value":210},{"type":21,"tag":138,"props":10103,"children":10104},{"style":151},[10105],{"type":31,"value":6465},{"type":21,"tag":138,"props":10107,"children":10108},{"style":261},[10109],{"type":31,"value":10110},"\"quantinuum.qpu.h1-1\"",{"type":21,"tag":138,"props":10112,"children":10113},{"style":151},[10114],{"type":31,"value":269},{"type":21,"tag":22,"props":10116,"children":10117},{},[10118,10120,10125,10126,10132],{"type":31,"value":10119},"The rest of the workflow, ",{"type":21,"tag":103,"props":10121,"children":10123},{"className":10122},[],[10124],{"type":31,"value":4670},{"type":31,"value":3628},{"type":21,"tag":103,"props":10127,"children":10129},{"className":10128},[],[10130],{"type":31,"value":10131},"backend.run()",{"type":31,"value":10133},", stays the same. Only the package and import path changed.",{"type":21,"tag":41,"props":10135,"children":10137},{"id":10136},"circuiterror-on-measure-register-size-mismatch",[10138,10144,10145,10151],{"type":21,"tag":103,"props":10139,"children":10141},{"className":10140},[],[10142],{"type":31,"value":10143},"CircuitError",{"type":31,"value":9398},{"type":21,"tag":103,"props":10146,"children":10148},{"className":10147},[],[10149],{"type":31,"value":10150},".measure()",{"type":31,"value":10152},": register size mismatch",{"type":21,"tag":22,"props":10154,"children":10155},{},[10156],{"type":31,"value":10157},"This one is a genuine circuit bug rather than an API change, and it shows up constantly for beginners:",{"type":21,"tag":128,"props":10159,"children":10161},{"className":130,"code":10160,"language":132,"meta":7,"style":7},"qc = QuantumCircuit(3, 2)  # 3 qubits, only 2 classical bits\nqc.measure([0, 1, 2], [0, 1, 2])  # CircuitError: index 2 out of range\n",[10162],{"type":21,"tag":103,"props":10163,"children":10164},{"__ignoreMap":7},[10165,10201],{"type":21,"tag":138,"props":10166,"children":10167},{"class":140,"line":141},[10168,10172,10176,10180,10184,10188,10192,10196],{"type":21,"tag":138,"props":10169,"children":10170},{"style":151},[10171],{"type":31,"value":348},{"type":21,"tag":138,"props":10173,"children":10174},{"style":145},[10175],{"type":31,"value":210},{"type":21,"tag":138,"props":10177,"children":10178},{"style":151},[10179],{"type":31,"value":6305},{"type":21,"tag":138,"props":10181,"children":10182},{"style":213},[10183],{"type":31,"value":253},{"type":21,"tag":138,"props":10185,"children":10186},{"style":151},[10187],{"type":31,"value":258},{"type":21,"tag":138,"props":10189,"children":10190},{"style":213},[10191],{"type":31,"value":292},{"type":21,"tag":138,"props":10193,"children":10194},{"style":151},[10195],{"type":31,"value":4637},{"type":21,"tag":138,"props":10197,"children":10198},{"style":219},[10199],{"type":31,"value":10200},"# 3 qubits, only 2 classical bits\n",{"type":21,"tag":138,"props":10202,"children":10203},{"class":140,"line":167},[10204,10209,10213,10217,10221,10225,10229,10233,10237,10241,10245,10249,10253,10258],{"type":21,"tag":138,"props":10205,"children":10206},{"style":151},[10207],{"type":31,"value":10208},"qc.measure([",{"type":21,"tag":138,"props":10210,"children":10211},{"style":213},[10212],{"type":31,"value":406},{"type":21,"tag":138,"props":10214,"children":10215},{"style":151},[10216],{"type":31,"value":258},{"type":21,"tag":138,"props":10218,"children":10219},{"style":213},[10220],{"type":31,"value":327},{"type":21,"tag":138,"props":10222,"children":10223},{"style":151},[10224],{"type":31,"value":258},{"type":21,"tag":138,"props":10226,"children":10227},{"style":213},[10228],{"type":31,"value":292},{"type":21,"tag":138,"props":10230,"children":10231},{"style":151},[10232],{"type":31,"value":6417},{"type":21,"tag":138,"props":10234,"children":10235},{"style":213},[10236],{"type":31,"value":406},{"type":21,"tag":138,"props":10238,"children":10239},{"style":151},[10240],{"type":31,"value":258},{"type":21,"tag":138,"props":10242,"children":10243},{"style":213},[10244],{"type":31,"value":327},{"type":21,"tag":138,"props":10246,"children":10247},{"style":151},[10248],{"type":31,"value":258},{"type":21,"tag":138,"props":10250,"children":10251},{"style":213},[10252],{"type":31,"value":292},{"type":21,"tag":138,"props":10254,"children":10255},{"style":151},[10256],{"type":31,"value":10257},"])  ",{"type":21,"tag":138,"props":10259,"children":10260},{"style":219},[10261],{"type":31,"value":10262},"# CircuitError: index 2 out of range\n",{"type":21,"tag":22,"props":10264,"children":10265},{},[10266,10268,10274],{"type":31,"value":10267},"The classical register has fewer bits than the quantity of qubits you're trying to measure into. Either size the classical register to match what you measure, or use ",{"type":21,"tag":103,"props":10269,"children":10271},{"className":10270},[],[10272],{"type":31,"value":10273},"qc.measure_all()",{"type":31,"value":10275},", which auto-creates a matching classical register for every qubit in the circuit.",{"type":21,"tag":41,"props":10277,"children":10279},{"id":10278},"transpilererror-circuit-doesnt-match-backend",[10280,10286],{"type":21,"tag":103,"props":10281,"children":10283},{"className":10282},[],[10284],{"type":31,"value":10285},"TranspilerError",{"type":31,"value":10287},": circuit doesn't match backend",{"type":21,"tag":128,"props":10289,"children":10291},{"className":130,"code":10290,"language":132,"meta":7,"style":7},"qc = QuantumCircuit(20)\n# ... build a 20-qubit circuit ...\ntranspile(qc, backend)  # TranspilerError if backend supports fewer qubits\n",[10292],{"type":21,"tag":103,"props":10293,"children":10294},{"__ignoreMap":7},[10295,10319,10327],{"type":21,"tag":138,"props":10296,"children":10297},{"class":140,"line":141},[10298,10302,10306,10310,10315],{"type":21,"tag":138,"props":10299,"children":10300},{"style":151},[10301],{"type":31,"value":348},{"type":21,"tag":138,"props":10303,"children":10304},{"style":145},[10305],{"type":31,"value":210},{"type":21,"tag":138,"props":10307,"children":10308},{"style":151},[10309],{"type":31,"value":6305},{"type":21,"tag":138,"props":10311,"children":10312},{"style":213},[10313],{"type":31,"value":10314},"20",{"type":21,"tag":138,"props":10316,"children":10317},{"style":151},[10318],{"type":31,"value":269},{"type":21,"tag":138,"props":10320,"children":10321},{"class":140,"line":167},[10322],{"type":21,"tag":138,"props":10323,"children":10324},{"style":219},[10325],{"type":31,"value":10326},"# ... build a 20-qubit circuit ...\n",{"type":21,"tag":138,"props":10328,"children":10329},{"class":140,"line":189},[10330,10335],{"type":21,"tag":138,"props":10331,"children":10332},{"style":151},[10333],{"type":31,"value":10334},"transpile(qc, backend)  ",{"type":21,"tag":138,"props":10336,"children":10337},{"style":219},[10338],{"type":31,"value":10339},"# TranspilerError if backend supports fewer qubits\n",{"type":21,"tag":22,"props":10341,"children":10342},{},[10343,10345,10351,10353,10359,10360,10366,10368,10374],{"type":31,"value":10344},"This means the circuit needs more qubits than the target backend has, or uses a gate outside the backend's basis gate set and ",{"type":21,"tag":26,"props":10346,"children":10348},{"href":10347},"\u002Fglossary\u002Ftranspilation",[10349],{"type":31,"value":10350},"transpilation",{"type":31,"value":10352}," can't find a valid mapping. Check ",{"type":21,"tag":103,"props":10354,"children":10356},{"className":10355},[],[10357],{"type":31,"value":10358},"backend.configuration().n_qubits",{"type":31,"value":3628},{"type":21,"tag":103,"props":10361,"children":10363},{"className":10362},[],[10364],{"type":31,"value":10365},"backend.configuration().basis_gates",{"type":31,"value":10367}," before transpiling, and let ",{"type":21,"tag":103,"props":10369,"children":10371},{"className":10370},[],[10372],{"type":31,"value":10373},"transpile()",{"type":31,"value":10375}," handle the gate decomposition rather than manually inserting gates the backend doesn't natively support.",{"type":21,"tag":41,"props":10377,"children":10379},{"id":10378},"deprecation-warnings-from-qiskitalgorithms-and-qiskitopflow",[10380,10382,10388,10389],{"type":31,"value":10381},"Deprecation warnings from ",{"type":21,"tag":103,"props":10383,"children":10385},{"className":10384},[],[10386],{"type":31,"value":10387},"qiskit.algorithms",{"type":31,"value":3628},{"type":21,"tag":103,"props":10390,"children":10392},{"className":10391},[],[10393],{"type":31,"value":10394},"qiskit.opflow",{"type":21,"tag":22,"props":10396,"children":10397},{},[10398,10400,10406,10408,10413,10415,10420,10422,10428,10430,10435,10436,10441,10443,10448,10449,10454],{"type":31,"value":10399},"If your console fills with ",{"type":21,"tag":103,"props":10401,"children":10403},{"className":10402},[],[10404],{"type":31,"value":10405},"DeprecationWarning",{"type":31,"value":10407}," on every run, the code is almost always importing from ",{"type":21,"tag":103,"props":10409,"children":10411},{"className":10410},[],[10412],{"type":31,"value":10394},{"type":31,"value":10414}," or the older ",{"type":21,"tag":103,"props":10416,"children":10418},{"className":10417},[],[10419],{"type":31,"value":10387},{"type":31,"value":10421}," module structure, both superseded by the separate ",{"type":21,"tag":103,"props":10423,"children":10425},{"className":10424},[],[10426],{"type":31,"value":10427},"qiskit-algorithms",{"type":31,"value":10429}," package and the primitives-based (",{"type":21,"tag":103,"props":10431,"children":10433},{"className":10432},[],[10434],{"type":31,"value":9356},{"type":31,"value":5075},{"type":21,"tag":103,"props":10437,"children":10439},{"className":10438},[],[10440],{"type":31,"value":9363},{"type":31,"value":10442},") pattern. Warnings aren't fatal, but they're a sign the code is one migration behind, and the underlying functions do eventually get removed. Our ",{"type":21,"tag":26,"props":10444,"children":10445},{"href":3623},[10446],{"type":31,"value":10447},"VQE walkthrough",{"type":31,"value":3628},{"type":21,"tag":26,"props":10450,"children":10451},{"href":1250},[10452],{"type":31,"value":10453},"QAOA tutorial",{"type":31,"value":10455}," use the current primitives pattern if you need a working reference to migrate against.",{"type":21,"tag":41,"props":10457,"children":10459},{"id":10458},"jobs-stuck-in-queue-on-the-free-tier",[10460],{"type":31,"value":10461},"Jobs stuck in queue on the free tier",{"type":21,"tag":22,"props":10463,"children":10464},{},[10465,10467,10473,10475,10481,10483,10488],{"type":31,"value":10466},"Not an error message, a silent wait. IBM's free Open Plan queues everyone's jobs on shared hardware, and a job submitted to a busy backend takes real time to return, which looks identical to a hang from the caller's side. Call ",{"type":21,"tag":103,"props":10468,"children":10470},{"className":10469},[],[10471],{"type":31,"value":10472},"service.least_busy(operational=True, simulator=False)",{"type":31,"value":10474}," instead of naming a specific backend, and check ",{"type":21,"tag":103,"props":10476,"children":10478},{"className":10477},[],[10479],{"type":31,"value":10480},"job.status()",{"type":31,"value":10482}," rather than assuming a stuck cell means broken code. Our ",{"type":21,"tag":26,"props":10484,"children":10485},{"href":1976},[10486],{"type":31,"value":10487},"free tier guide",{"type":31,"value":10489}," covers what the 10-minute monthly quantum-time limit does and doesn't cover.",{"type":21,"tag":41,"props":10491,"children":10492},{"id":7198},[10493],{"type":31,"value":7201},{"type":21,"tag":22,"props":10495,"children":10496},{},[10497,10499,10505,10506,10511,10512,10518],{"type":31,"value":10498},"Every API-change error above traces back to the equivalent event: Qiskit 1.0 unified what used to be a scattered set of packages (",{"type":21,"tag":103,"props":10500,"children":10502},{"className":10501},[],[10503],{"type":31,"value":10504},"qiskit-terra",{"type":31,"value":258},{"type":21,"tag":103,"props":10507,"children":10509},{"className":10508},[],[10510],{"type":31,"value":9423},{"type":31,"value":258},{"type":21,"tag":103,"props":10513,"children":10515},{"className":10514},[],[10516],{"type":31,"value":10517},"qiskit-ibmq-provider",{"type":31,"value":10519},", and more) into one restructured, versioned package, and retired several legacy paths in the process. If you're hitting an error that isn't listed here and it comes from code copied from an older tutorial, check whether the import path predates that restructuring before assuming your circuit logic is wrong.",{"type":21,"tag":1174,"props":10521,"children":10522},{},[10523],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":10525},[10526,10527,10529,10531,10533,10535,10537,10539,10540],{"id":9143,"depth":167,"text":9150},{"id":9383,"depth":167,"text":10528},"ImportError or AttributeError on from qiskit import Aer",{"id":9564,"depth":167,"text":10530},"IBMQ.load_account() no longer works",{"id":9861,"depth":167,"text":10532},"ModuleNotFoundError: No module named 'azure.quantum' when submitting to Azure Quantum",{"id":10136,"depth":167,"text":10534},"CircuitError on .measure(): register size mismatch",{"id":10278,"depth":167,"text":10536},"TranspilerError: circuit doesn't match backend",{"id":10378,"depth":167,"text":10538},"Deprecation warnings from qiskit.algorithms and qiskit.opflow",{"id":10458,"depth":167,"text":10461},{"id":7198,"depth":167,"text":7201},"content:blog:common-qiskit-errors-and-fixes.md","blog\u002Fcommon-qiskit-errors-and-fixes.md","blog\u002Fcommon-qiskit-errors-and-fixes",{"_path":10545,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":10546,"description":10547,"date":4484,"author":11,"tags":10548,"readingTime":233,"body":10550,"_type":1193,"_id":10655,"_source":1195,"_file":10656,"_stem":10657,"_extension":1198},"\u002Fblog\u002Featon-afrl-quantum-grid-security","Eaton Won a $7M Air Force Contract to Find Grid Failures Current Standards Miss","Eaton, with Infleqtion and Penn State, won a $7 million AFRL contract to develop hybrid quantum-classical algorithms for power grid security, targeting failure scenarios beyond the N-2 standard grids are built to survive today.",[3409,10549],"Use Cases",{"type":18,"children":10551,"toc":10648},[10552,10565,10571,10584,10590,10602,10608,10620,10626,10639,10643],{"type":21,"tag":22,"props":10553,"children":10554},{},[10555,10557,10563],{"type":31,"value":10556},"Eaton was awarded a $7 million contract by the US Air Force Research Laboratory on August 7, 2026, to develop hybrid quantum-classical algorithms for power grid security, running over 24 months. Eaton is the prime contractor, with ",{"type":21,"tag":26,"props":10558,"children":10560},{"href":10559},"\u002Fblog\u002Finfleqtion-sqale-illinois-quantum-park",[10561],{"type":31,"value":10562},"Infleqtion",{"type":31,"value":10564}," providing quantum hardware and Penn State handling algorithm research. This is a research contract with a defined scope and deliverables, not a deployed system.",{"type":21,"tag":41,"props":10566,"children":10568},{"id":10567},"the-issue-grids-are-built-to-survive-two-failures-not-more",[10569],{"type":31,"value":10570},"The issue: grids are built to survive two failures, not more",{"type":21,"tag":22,"props":10572,"children":10573},{},[10574,10576,10582],{"type":31,"value":10575},"US grid reliability standards, set by NERC, require the grid to withstand two sequential component failures at once, known as N-2 contingency planning. That standard exists because checking every possible combination of simultaneous failures across a real grid is a combinatorial problem that grows too large for classical computers to evaluate in real time as the figure of components increases. Eaton's contract targets exactly that gap: detecting, visualizing, and mitigating simultaneous physical and cyber threats beyond what N-2 planning covers, using ",{"type":21,"tag":26,"props":10577,"children":10579},{"href":10578},"\u002Fblog\u002Fquantum-use-cases-2026",[10580],{"type":31,"value":10581},"hybrid quantum-classical",{"type":31,"value":10583}," methods to evaluate larger combinations of simultaneous failures within useful time.",{"type":21,"tag":41,"props":10585,"children":10587},{"id":10586},"what-the-contract-funds",[10588],{"type":31,"value":10589},"What the contract funds",{"type":21,"tag":22,"props":10591,"children":10592},{},[10593,10595,10600],{"type":31,"value":10594},"The deliverables listed are specific: novel quantum algorithms for the contingency problem, optimized quantum circuits built for hybrid execution, testing protocols across multiple hardware platforms, methods for evaluating error mitigation, and a proof-of-concept demonstration on near-term quantum processors. That list reads as research infrastructure, not a product. A \"proof-of-concept demonstration on near-term processors\" is an explicit acknowledgment that current quantum hardware isn't ready to run this workload in production, which matches where ",{"type":21,"tag":26,"props":10596,"children":10597},{"href":10578},[10598],{"type":31,"value":10599},"quantum computing sits",{"type":31,"value":10601}," on most infrastructure-scale optimization problems today.",{"type":21,"tag":41,"props":10603,"children":10605},{"id":10604},"why-infleqtion-and-penn-state",[10606],{"type":31,"value":10607},"Why Infleqtion and Penn State",{"type":21,"tag":22,"props":10609,"children":10610},{},[10611,10613,10618],{"type":31,"value":10612},"Infleqtion brings neutral-atom quantum hardware, the equivalent category of system it's deploying in Chicago through its ",{"type":21,"tag":26,"props":10614,"children":10615},{"href":10559},[10616],{"type":31,"value":10617},"Illinois Quantum and Microelectronics Park project",{"type":31,"value":10619},", which is itself aimed at energy-grid optimization. That's not a coincidence: Infleqtion has been building a specific position in the energy vertical, and this AFRL contract extends that focus into grid security rather than starting a new line of work. Penn State's role is algorithm research, translating the contingency-analysis problem into a form that runs on quantum hardware, the harder and less visible half of any hybrid quantum-classical project.",{"type":21,"tag":41,"props":10621,"children":10623},{"id":10622},"a-defense-funded-contract-with-a-civilian-grid-problem",[10624],{"type":31,"value":10625},"A defense-funded contract with a civilian-grid problem",{"type":21,"tag":22,"props":10627,"children":10628},{},[10629,10631,10637],{"type":31,"value":10630},"AFRL funding a power-grid security project reflects how the US treats grid resilience as a national security concern and not only a utility operations problem, especially given the physical and cyber threat combination named explicitly in the contract scope. That framing puts this alongside other defense-adjacent quantum contracts this site has covered, like ",{"type":21,"tag":26,"props":10632,"children":10634},{"href":10633},"\u002Fblog\u002Fionq-sandia-national-labs-mou-quantum-co-design",[10635],{"type":31,"value":10636},"IonQ's Sandia MOU",{"type":31,"value":10638},", where government national-security budgets are funding quantum research that has clear civilian infrastructure applications too.",{"type":21,"tag":41,"props":10640,"children":10641},{"id":3474},[10642],{"type":31,"value":3477},{"type":21,"tag":22,"props":10644,"children":10645},{},[10646],{"type":31,"value":10647},"The proof-of-concept demonstration is the deliverable that will show whether this produces a usable result. Twenty-four months is enough time for algorithm development and initial hardware testing, not for a deployed grid-security system, so the real test comes after this contract's timeline ends: whether Eaton or a utility customer picks up the proof-of-concept for a pilot deployment.",{"title":7,"searchDepth":167,"depth":167,"links":10649},[10650,10651,10652,10653,10654],{"id":10567,"depth":167,"text":10570},{"id":10586,"depth":167,"text":10589},{"id":10604,"depth":167,"text":10607},{"id":10622,"depth":167,"text":10625},{"id":3474,"depth":167,"text":3477},"content:blog:eaton-afrl-quantum-grid-security.md","blog\u002Featon-afrl-quantum-grid-security.md","blog\u002Featon-afrl-quantum-grid-security",{"_path":10659,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":10660,"description":10661,"date":4484,"author":11,"tags":10662,"readingTime":308,"body":10663,"_type":1193,"_id":11835,"_source":1195,"_file":11836,"_stem":11837,"_extension":1198},"\u002Fblog\u002Fmeasuring-t1-t2-qiskit-experiments","Measuring T1 and T2 on Real Hardware with Qiskit Experiments","A practical walkthrough of the T1, T2Ramsey, and T2Hahn experiment classes in Qiskit Experiments 0.14: how to build the delay-sweep circuits, run them, and read the fitted coherence times out of the results.",[14,1213,5986],{"type":18,"children":10664,"toc":11826},[10665,10686,10709,10715,10736,10806,10812,10817,11035,11063,11069,11082,11308,11336,11342,11347,11624,11634,11640,11659,11665,11670,11750,11770,11774,11822],{"type":21,"tag":22,"props":10666,"children":10667},{},[10668,10669,10675,10677,10684],{"type":31,"value":4494},{"type":21,"tag":26,"props":10670,"children":10672},{"href":10671},"\u002Fblog\u002Ft1-vs-t2-relaxation-dephasing-explained",[10673],{"type":31,"value":10674},"piece on T1 and T2",{"type":31,"value":10676}," covers what the two numbers mean: T1 as energy relaxation, T2 as the loss of phase information. This post covers the other half, how you measure them, using ",{"type":21,"tag":26,"props":10678,"children":10681},{"href":10679,"rel":10680},"https:\u002F\u002Fqiskit-community.github.io\u002Fqiskit-experiments\u002F",[7136],[10682],{"type":31,"value":10683},"Qiskit Experiments",{"type":31,"value":10685}," (version 0.14 as of this writing), the library that automates the delay sweeps and curve fitting instead of you writing that machinery by hand.",{"type":21,"tag":128,"props":10687,"children":10689},{"className":4512,"code":10688,"language":4511,"meta":7,"style":7},"pip install qiskit-experiments\n",[10690],{"type":21,"tag":103,"props":10691,"children":10692},{"__ignoreMap":7},[10693],{"type":21,"tag":138,"props":10694,"children":10695},{"class":140,"line":141},[10696,10700,10704],{"type":21,"tag":138,"props":10697,"children":10698},{"style":4522},[10699],{"type":31,"value":4525},{"type":21,"tag":138,"props":10701,"children":10702},{"style":261},[10703],{"type":31,"value":4530},{"type":21,"tag":138,"props":10705,"children":10706},{"style":261},[10707],{"type":31,"value":10708}," qiskit-experiments\n",{"type":21,"tag":41,"props":10710,"children":10712},{"id":10711},"why-you-need-a-noisy-backend",[10713],{"type":31,"value":10714},"Why you need a noisy backend",{"type":21,"tag":22,"props":10716,"children":10717},{},[10718,10720,10726,10728,10734],{"type":31,"value":10719},"An ideal, noiseless simulator never decoheres, so running these experiments against a plain ",{"type":21,"tag":103,"props":10721,"children":10723},{"className":10722},[],[10724],{"type":31,"value":10725},"AerSimulator()",{"type":31,"value":10727}," gives you a flat line and nothing to fit. You need either real hardware or a simulator seeded with a realistic noise model. The easiest path for testing the workflow is ",{"type":21,"tag":103,"props":10729,"children":10731},{"className":10730},[],[10732],{"type":31,"value":10733},"AerSimulator.from_backend()",{"type":31,"value":10735}," on a fake backend snapshot, which carries over that device's real calibration data, including its T1 and T2:",{"type":21,"tag":128,"props":10737,"children":10739},{"className":130,"code":10738,"language":132,"meta":7,"style":7},"from qiskit_ibm_runtime.fake_provider import FakePerth\nfrom qiskit_aer import AerSimulator\n\nbackend = AerSimulator.from_backend(FakePerth())\n",[10740],{"type":21,"tag":103,"props":10741,"children":10742},{"__ignoreMap":7},[10743,10764,10783,10790],{"type":21,"tag":138,"props":10744,"children":10745},{"class":140,"line":141},[10746,10750,10755,10759],{"type":21,"tag":138,"props":10747,"children":10748},{"style":145},[10749],{"type":31,"value":148},{"type":21,"tag":138,"props":10751,"children":10752},{"style":151},[10753],{"type":31,"value":10754}," qiskit_ibm_runtime.fake_provider ",{"type":21,"tag":138,"props":10756,"children":10757},{"style":145},[10758],{"type":31,"value":159},{"type":21,"tag":138,"props":10760,"children":10761},{"style":151},[10762],{"type":31,"value":10763}," FakePerth\n",{"type":21,"tag":138,"props":10765,"children":10766},{"class":140,"line":167},[10767,10771,10775,10779],{"type":21,"tag":138,"props":10768,"children":10769},{"style":145},[10770],{"type":31,"value":148},{"type":21,"tag":138,"props":10772,"children":10773},{"style":151},[10774],{"type":31,"value":177},{"type":21,"tag":138,"props":10776,"children":10777},{"style":145},[10778],{"type":31,"value":159},{"type":21,"tag":138,"props":10780,"children":10781},{"style":151},[10782],{"type":31,"value":186},{"type":21,"tag":138,"props":10784,"children":10785},{"class":140,"line":189},[10786],{"type":21,"tag":138,"props":10787,"children":10788},{"emptyLinePlaceholder":193},[10789],{"type":31,"value":196},{"type":21,"tag":138,"props":10791,"children":10792},{"class":140,"line":199},[10793,10797,10801],{"type":21,"tag":138,"props":10794,"children":10795},{"style":151},[10796],{"type":31,"value":6456},{"type":21,"tag":138,"props":10798,"children":10799},{"style":145},[10800],{"type":31,"value":210},{"type":21,"tag":138,"props":10802,"children":10803},{"style":151},[10804],{"type":31,"value":10805}," AerSimulator.from_backend(FakePerth())\n",{"type":21,"tag":41,"props":10807,"children":10809},{"id":10808},"measuring-t1-the-delay-sweep",[10810],{"type":31,"value":10811},"Measuring T1: the delay sweep",{"type":21,"tag":22,"props":10813,"children":10814},{},[10815],{"type":31,"value":10816},"T1 works by preparing |1⟩, waiting a variable delay, then measuring how much population has decayed back to |0⟩:",{"type":21,"tag":128,"props":10818,"children":10820},{"className":130,"code":10819,"language":132,"meta":7,"style":7},"import numpy as np\nfrom qiskit_experiments.library import T1\n\ndelays = np.arange(0, 300e-6, 10e-6)  # 0 to 300 microseconds\nexp = T1(physical_qubits=(0,), delays=delays)\n\nexp_data = exp.run(backend=backend).block_for_results()\nexp_data.analysis_results(dataframe=True)\n",[10821],{"type":21,"tag":103,"props":10822,"children":10823},{"__ignoreMap":7},[10824,10843,10864,10871,10919,10972,10979,11010],{"type":21,"tag":138,"props":10825,"children":10826},{"class":140,"line":141},[10827,10831,10835,10839],{"type":21,"tag":138,"props":10828,"children":10829},{"style":145},[10830],{"type":31,"value":159},{"type":21,"tag":138,"props":10832,"children":10833},{"style":151},[10834],{"type":31,"value":8530},{"type":21,"tag":138,"props":10836,"children":10837},{"style":145},[10838],{"type":31,"value":5356},{"type":21,"tag":138,"props":10840,"children":10841},{"style":151},[10842],{"type":31,"value":8632},{"type":21,"tag":138,"props":10844,"children":10845},{"class":140,"line":167},[10846,10850,10855,10859],{"type":21,"tag":138,"props":10847,"children":10848},{"style":145},[10849],{"type":31,"value":148},{"type":21,"tag":138,"props":10851,"children":10852},{"style":151},[10853],{"type":31,"value":10854}," qiskit_experiments.library ",{"type":21,"tag":138,"props":10856,"children":10857},{"style":145},[10858],{"type":31,"value":159},{"type":21,"tag":138,"props":10860,"children":10861},{"style":151},[10862],{"type":31,"value":10863}," T1\n",{"type":21,"tag":138,"props":10865,"children":10866},{"class":140,"line":189},[10867],{"type":21,"tag":138,"props":10868,"children":10869},{"emptyLinePlaceholder":193},[10870],{"type":31,"value":196},{"type":21,"tag":138,"props":10872,"children":10873},{"class":140,"line":199},[10874,10879,10883,10888,10892,10896,10901,10905,10910,10914],{"type":21,"tag":138,"props":10875,"children":10876},{"style":151},[10877],{"type":31,"value":10878},"delays ",{"type":21,"tag":138,"props":10880,"children":10881},{"style":145},[10882],{"type":31,"value":210},{"type":21,"tag":138,"props":10884,"children":10885},{"style":151},[10886],{"type":31,"value":10887}," np.arange(",{"type":21,"tag":138,"props":10889,"children":10890},{"style":213},[10891],{"type":31,"value":406},{"type":21,"tag":138,"props":10893,"children":10894},{"style":151},[10895],{"type":31,"value":258},{"type":21,"tag":138,"props":10897,"children":10898},{"style":213},[10899],{"type":31,"value":10900},"300e-6",{"type":21,"tag":138,"props":10902,"children":10903},{"style":151},[10904],{"type":31,"value":258},{"type":21,"tag":138,"props":10906,"children":10907},{"style":213},[10908],{"type":31,"value":10909},"10e-6",{"type":21,"tag":138,"props":10911,"children":10912},{"style":151},[10913],{"type":31,"value":4637},{"type":21,"tag":138,"props":10915,"children":10916},{"style":219},[10917],{"type":31,"value":10918},"# 0 to 300 microseconds\n",{"type":21,"tag":138,"props":10920,"children":10921},{"class":140,"line":225},[10922,10927,10931,10936,10941,10945,10949,10953,10958,10963,10967],{"type":21,"tag":138,"props":10923,"children":10924},{"style":151},[10925],{"type":31,"value":10926},"exp ",{"type":21,"tag":138,"props":10928,"children":10929},{"style":145},[10930],{"type":31,"value":210},{"type":21,"tag":138,"props":10932,"children":10933},{"style":151},[10934],{"type":31,"value":10935}," T1(",{"type":21,"tag":138,"props":10937,"children":10938},{"style":929},[10939],{"type":31,"value":10940},"physical_qubits",{"type":21,"tag":138,"props":10942,"children":10943},{"style":145},[10944],{"type":31,"value":210},{"type":21,"tag":138,"props":10946,"children":10947},{"style":151},[10948],{"type":31,"value":959},{"type":21,"tag":138,"props":10950,"children":10951},{"style":213},[10952],{"type":31,"value":406},{"type":21,"tag":138,"props":10954,"children":10955},{"style":151},[10956],{"type":31,"value":10957},",), ",{"type":21,"tag":138,"props":10959,"children":10960},{"style":929},[10961],{"type":31,"value":10962},"delays",{"type":21,"tag":138,"props":10964,"children":10965},{"style":145},[10966],{"type":31,"value":210},{"type":21,"tag":138,"props":10968,"children":10969},{"style":151},[10970],{"type":31,"value":10971},"delays)\n",{"type":21,"tag":138,"props":10973,"children":10974},{"class":140,"line":233},[10975],{"type":21,"tag":138,"props":10976,"children":10977},{"emptyLinePlaceholder":193},[10978],{"type":31,"value":196},{"type":21,"tag":138,"props":10980,"children":10981},{"class":140,"line":272},[10982,10987,10991,10996,11001,11005],{"type":21,"tag":138,"props":10983,"children":10984},{"style":151},[10985],{"type":31,"value":10986},"exp_data ",{"type":21,"tag":138,"props":10988,"children":10989},{"style":145},[10990],{"type":31,"value":210},{"type":21,"tag":138,"props":10992,"children":10993},{"style":151},[10994],{"type":31,"value":10995}," exp.run(",{"type":21,"tag":138,"props":10997,"children":10998},{"style":929},[10999],{"type":31,"value":11000},"backend",{"type":21,"tag":138,"props":11002,"children":11003},{"style":145},[11004],{"type":31,"value":210},{"type":21,"tag":138,"props":11006,"children":11007},{"style":151},[11008],{"type":31,"value":11009},"backend).block_for_results()\n",{"type":21,"tag":138,"props":11011,"children":11012},{"class":140,"line":308},[11013,11018,11023,11027,11031],{"type":21,"tag":138,"props":11014,"children":11015},{"style":151},[11016],{"type":31,"value":11017},"exp_data.analysis_results(",{"type":21,"tag":138,"props":11019,"children":11020},{"style":929},[11021],{"type":31,"value":11022},"dataframe",{"type":21,"tag":138,"props":11024,"children":11025},{"style":145},[11026],{"type":31,"value":210},{"type":21,"tag":138,"props":11028,"children":11029},{"style":213},[11030],{"type":31,"value":8677},{"type":21,"tag":138,"props":11032,"children":11033},{"style":151},[11034],{"type":31,"value":269},{"type":21,"tag":22,"props":11036,"children":11037},{},[11038,11040,11045,11047,11053,11055,11061],{"type":31,"value":11039},"The ",{"type":21,"tag":103,"props":11041,"children":11043},{"className":11042},[],[11044],{"type":31,"value":10940},{"type":31,"value":11046}," argument targets a specific qubit on the device rather than an abstract circuit qubit. The result table's ",{"type":21,"tag":103,"props":11048,"children":11050},{"className":11049},[],[11051],{"type":31,"value":11052},"T1",{"type":31,"value":11054}," row gives the fitted decay constant with its uncertainty, in seconds. ",{"type":21,"tag":103,"props":11056,"children":11058},{"className":11057},[],[11059],{"type":31,"value":11060},"exp_data.figure(0)",{"type":31,"value":11062}," returns the decay curve as a plotted figure if you want to see the exponential fit visually rather than only the fitted number.",{"type":21,"tag":41,"props":11064,"children":11066},{"id":11065},"measuring-t2-ramsey-fringes",[11067],{"type":31,"value":11068},"Measuring T2: Ramsey fringes",{"type":21,"tag":22,"props":11070,"children":11071},{},[11072,11074,11080],{"type":31,"value":11073},"T2Ramsey measures dephasing by preparing a superposition, waiting a delay, then applying a second pulse with a deliberate small detuning (",{"type":21,"tag":103,"props":11075,"children":11077},{"className":11076},[],[11078],{"type":31,"value":11079},"osc_freq",{"type":31,"value":11081},") so the result oscillates as the delay increases. The envelope of that oscillation, not the oscillation itself, decays with T2:",{"type":21,"tag":128,"props":11083,"children":11085},{"className":130,"code":11084,"language":132,"meta":7,"style":7},"from qiskit_experiments.library import T2Ramsey\n\ndelays = list(np.arange(1e-6, 50e-6, 2e-6))\nexp = T2Ramsey((0,), delays, osc_freq=1e5)\nexp.set_transpile_options(scheduling_method=\"asap\")\n\nexp_data = exp.run(backend=backend, shots=2000).block_for_results()\nexp_data.analysis_results(dataframe=True)\n",[11086],{"type":21,"tag":103,"props":11087,"children":11088},{"__ignoreMap":7},[11089,11109,11116,11164,11206,11232,11239,11285],{"type":21,"tag":138,"props":11090,"children":11091},{"class":140,"line":141},[11092,11096,11100,11104],{"type":21,"tag":138,"props":11093,"children":11094},{"style":145},[11095],{"type":31,"value":148},{"type":21,"tag":138,"props":11097,"children":11098},{"style":151},[11099],{"type":31,"value":10854},{"type":21,"tag":138,"props":11101,"children":11102},{"style":145},[11103],{"type":31,"value":159},{"type":21,"tag":138,"props":11105,"children":11106},{"style":151},[11107],{"type":31,"value":11108}," T2Ramsey\n",{"type":21,"tag":138,"props":11110,"children":11111},{"class":140,"line":167},[11112],{"type":21,"tag":138,"props":11113,"children":11114},{"emptyLinePlaceholder":193},[11115],{"type":31,"value":196},{"type":21,"tag":138,"props":11117,"children":11118},{"class":140,"line":189},[11119,11123,11127,11132,11137,11142,11146,11151,11155,11160],{"type":21,"tag":138,"props":11120,"children":11121},{"style":151},[11122],{"type":31,"value":10878},{"type":21,"tag":138,"props":11124,"children":11125},{"style":145},[11126],{"type":31,"value":210},{"type":21,"tag":138,"props":11128,"children":11129},{"style":213},[11130],{"type":31,"value":11131}," list",{"type":21,"tag":138,"props":11133,"children":11134},{"style":151},[11135],{"type":31,"value":11136},"(np.arange(",{"type":21,"tag":138,"props":11138,"children":11139},{"style":213},[11140],{"type":31,"value":11141},"1e-6",{"type":21,"tag":138,"props":11143,"children":11144},{"style":151},[11145],{"type":31,"value":258},{"type":21,"tag":138,"props":11147,"children":11148},{"style":213},[11149],{"type":31,"value":11150},"50e-6",{"type":21,"tag":138,"props":11152,"children":11153},{"style":151},[11154],{"type":31,"value":258},{"type":21,"tag":138,"props":11156,"children":11157},{"style":213},[11158],{"type":31,"value":11159},"2e-6",{"type":21,"tag":138,"props":11161,"children":11162},{"style":151},[11163],{"type":31,"value":5609},{"type":21,"tag":138,"props":11165,"children":11166},{"class":140,"line":199},[11167,11171,11175,11180,11184,11189,11193,11197,11202],{"type":21,"tag":138,"props":11168,"children":11169},{"style":151},[11170],{"type":31,"value":10926},{"type":21,"tag":138,"props":11172,"children":11173},{"style":145},[11174],{"type":31,"value":210},{"type":21,"tag":138,"props":11176,"children":11177},{"style":151},[11178],{"type":31,"value":11179}," T2Ramsey((",{"type":21,"tag":138,"props":11181,"children":11182},{"style":213},[11183],{"type":31,"value":406},{"type":21,"tag":138,"props":11185,"children":11186},{"style":151},[11187],{"type":31,"value":11188},",), delays, ",{"type":21,"tag":138,"props":11190,"children":11191},{"style":929},[11192],{"type":31,"value":11079},{"type":21,"tag":138,"props":11194,"children":11195},{"style":145},[11196],{"type":31,"value":210},{"type":21,"tag":138,"props":11198,"children":11199},{"style":213},[11200],{"type":31,"value":11201},"1e5",{"type":21,"tag":138,"props":11203,"children":11204},{"style":151},[11205],{"type":31,"value":269},{"type":21,"tag":138,"props":11207,"children":11208},{"class":140,"line":225},[11209,11214,11219,11223,11228],{"type":21,"tag":138,"props":11210,"children":11211},{"style":151},[11212],{"type":31,"value":11213},"exp.set_transpile_options(",{"type":21,"tag":138,"props":11215,"children":11216},{"style":929},[11217],{"type":31,"value":11218},"scheduling_method",{"type":21,"tag":138,"props":11220,"children":11221},{"style":145},[11222],{"type":31,"value":210},{"type":21,"tag":138,"props":11224,"children":11225},{"style":261},[11226],{"type":31,"value":11227},"\"asap\"",{"type":21,"tag":138,"props":11229,"children":11230},{"style":151},[11231],{"type":31,"value":269},{"type":21,"tag":138,"props":11233,"children":11234},{"class":140,"line":233},[11235],{"type":21,"tag":138,"props":11236,"children":11237},{"emptyLinePlaceholder":193},[11238],{"type":31,"value":196},{"type":21,"tag":138,"props":11240,"children":11241},{"class":140,"line":272},[11242,11246,11250,11254,11258,11262,11267,11271,11275,11280],{"type":21,"tag":138,"props":11243,"children":11244},{"style":151},[11245],{"type":31,"value":10986},{"type":21,"tag":138,"props":11247,"children":11248},{"style":145},[11249],{"type":31,"value":210},{"type":21,"tag":138,"props":11251,"children":11252},{"style":151},[11253],{"type":31,"value":10995},{"type":21,"tag":138,"props":11255,"children":11256},{"style":929},[11257],{"type":31,"value":11000},{"type":21,"tag":138,"props":11259,"children":11260},{"style":145},[11261],{"type":31,"value":210},{"type":21,"tag":138,"props":11263,"children":11264},{"style":151},[11265],{"type":31,"value":11266},"backend, ",{"type":21,"tag":138,"props":11268,"children":11269},{"style":929},[11270],{"type":31,"value":932},{"type":21,"tag":138,"props":11272,"children":11273},{"style":145},[11274],{"type":31,"value":210},{"type":21,"tag":138,"props":11276,"children":11277},{"style":213},[11278],{"type":31,"value":11279},"2000",{"type":21,"tag":138,"props":11281,"children":11282},{"style":151},[11283],{"type":31,"value":11284},").block_for_results()\n",{"type":21,"tag":138,"props":11286,"children":11287},{"class":140,"line":308},[11288,11292,11296,11300,11304],{"type":21,"tag":138,"props":11289,"children":11290},{"style":151},[11291],{"type":31,"value":11017},{"type":21,"tag":138,"props":11293,"children":11294},{"style":929},[11295],{"type":31,"value":11022},{"type":21,"tag":138,"props":11297,"children":11298},{"style":145},[11299],{"type":31,"value":210},{"type":21,"tag":138,"props":11301,"children":11302},{"style":213},[11303],{"type":31,"value":8677},{"type":21,"tag":138,"props":11305,"children":11306},{"style":151},[11307],{"type":31,"value":269},{"type":21,"tag":22,"props":11309,"children":11310},{},[11311,11313,11319,11321,11327,11329,11334],{"type":31,"value":11312},"The results table reports both a ",{"type":21,"tag":103,"props":11314,"children":11316},{"className":11315},[],[11317],{"type":31,"value":11318},"T2star",{"type":31,"value":11320}," value (T2Ramsey measures what's conventionally written T2*, coherence time without any refocusing) and the fitted ",{"type":21,"tag":103,"props":11322,"children":11324},{"className":11323},[],[11325],{"type":31,"value":11326},"Frequency",{"type":31,"value":11328},", which should land close to the ",{"type":21,"tag":103,"props":11330,"children":11332},{"className":11331},[],[11333],{"type":31,"value":11079},{"type":31,"value":11335}," you set if the detuning was applied correctly.",{"type":21,"tag":41,"props":11337,"children":11339},{"id":11338},"measuring-t2-with-an-echo-t2hahn",[11340],{"type":31,"value":11341},"Measuring T2 with an echo: T2Hahn",{"type":21,"tag":22,"props":11343,"children":11344},{},[11345],{"type":31,"value":11346},"T2* is sensitive to slow, low-frequency noise (like drift in a control field) that a Hahn echo sequence cancels out by inserting a refocusing pulse partway through the delay. T2Hahn measures the longer coherence time that survives once that slow noise is cancelled:",{"type":21,"tag":128,"props":11348,"children":11350},{"className":130,"code":11349,"language":132,"meta":7,"style":7},"from qiskit_experiments.library import T2Hahn\n\ndelays = [round(float(d) * 1e-6, 6) for d in range(0, 51, 5)]\nexp = T2Hahn(physical_qubits=(0,), delays=delays, num_echoes=1)\n\nexp_data = exp.run(backend=backend, shots=2000).block_for_results()\nexp_data.analysis_results(dataframe=True)\n",[11351],{"type":21,"tag":103,"props":11352,"children":11353},{"__ignoreMap":7},[11354,11374,11381,11485,11551,11558,11601],{"type":21,"tag":138,"props":11355,"children":11356},{"class":140,"line":141},[11357,11361,11365,11369],{"type":21,"tag":138,"props":11358,"children":11359},{"style":145},[11360],{"type":31,"value":148},{"type":21,"tag":138,"props":11362,"children":11363},{"style":151},[11364],{"type":31,"value":10854},{"type":21,"tag":138,"props":11366,"children":11367},{"style":145},[11368],{"type":31,"value":159},{"type":21,"tag":138,"props":11370,"children":11371},{"style":151},[11372],{"type":31,"value":11373}," T2Hahn\n",{"type":21,"tag":138,"props":11375,"children":11376},{"class":140,"line":167},[11377],{"type":21,"tag":138,"props":11378,"children":11379},{"emptyLinePlaceholder":193},[11380],{"type":31,"value":196},{"type":21,"tag":138,"props":11382,"children":11383},{"class":140,"line":189},[11384,11388,11392,11396,11401,11405,11410,11415,11420,11425,11429,11434,11438,11442,11447,11451,11455,11459,11463,11467,11472,11476,11481],{"type":21,"tag":138,"props":11385,"children":11386},{"style":151},[11387],{"type":31,"value":10878},{"type":21,"tag":138,"props":11389,"children":11390},{"style":145},[11391],{"type":31,"value":210},{"type":21,"tag":138,"props":11393,"children":11394},{"style":151},[11395],{"type":31,"value":8051},{"type":21,"tag":138,"props":11397,"children":11398},{"style":213},[11399],{"type":31,"value":11400},"round",{"type":21,"tag":138,"props":11402,"children":11403},{"style":151},[11404],{"type":31,"value":959},{"type":21,"tag":138,"props":11406,"children":11407},{"style":213},[11408],{"type":31,"value":11409},"float",{"type":21,"tag":138,"props":11411,"children":11412},{"style":151},[11413],{"type":31,"value":11414},"(d) ",{"type":21,"tag":138,"props":11416,"children":11417},{"style":145},[11418],{"type":31,"value":11419},"*",{"type":21,"tag":138,"props":11421,"children":11422},{"style":213},[11423],{"type":31,"value":11424}," 1e-6",{"type":21,"tag":138,"props":11426,"children":11427},{"style":151},[11428],{"type":31,"value":258},{"type":21,"tag":138,"props":11430,"children":11431},{"style":213},[11432],{"type":31,"value":11433},"6",{"type":21,"tag":138,"props":11435,"children":11436},{"style":151},[11437],{"type":31,"value":1533},{"type":21,"tag":138,"props":11439,"children":11440},{"style":145},[11441],{"type":31,"value":1492},{"type":21,"tag":138,"props":11443,"children":11444},{"style":151},[11445],{"type":31,"value":11446}," d ",{"type":21,"tag":138,"props":11448,"children":11449},{"style":145},[11450],{"type":31,"value":1502},{"type":21,"tag":138,"props":11452,"children":11453},{"style":213},[11454],{"type":31,"value":7430},{"type":21,"tag":138,"props":11456,"children":11457},{"style":151},[11458],{"type":31,"value":959},{"type":21,"tag":138,"props":11460,"children":11461},{"style":213},[11462],{"type":31,"value":406},{"type":21,"tag":138,"props":11464,"children":11465},{"style":151},[11466],{"type":31,"value":258},{"type":21,"tag":138,"props":11468,"children":11469},{"style":213},[11470],{"type":31,"value":11471},"51",{"type":21,"tag":138,"props":11473,"children":11474},{"style":151},[11475],{"type":31,"value":258},{"type":21,"tag":138,"props":11477,"children":11478},{"style":213},[11479],{"type":31,"value":11480},"5",{"type":21,"tag":138,"props":11482,"children":11483},{"style":151},[11484],{"type":31,"value":1460},{"type":21,"tag":138,"props":11486,"children":11487},{"class":140,"line":199},[11488,11492,11496,11501,11505,11509,11513,11517,11521,11525,11529,11534,11539,11543,11547],{"type":21,"tag":138,"props":11489,"children":11490},{"style":151},[11491],{"type":31,"value":10926},{"type":21,"tag":138,"props":11493,"children":11494},{"style":145},[11495],{"type":31,"value":210},{"type":21,"tag":138,"props":11497,"children":11498},{"style":151},[11499],{"type":31,"value":11500}," T2Hahn(",{"type":21,"tag":138,"props":11502,"children":11503},{"style":929},[11504],{"type":31,"value":10940},{"type":21,"tag":138,"props":11506,"children":11507},{"style":145},[11508],{"type":31,"value":210},{"type":21,"tag":138,"props":11510,"children":11511},{"style":151},[11512],{"type":31,"value":959},{"type":21,"tag":138,"props":11514,"children":11515},{"style":213},[11516],{"type":31,"value":406},{"type":21,"tag":138,"props":11518,"children":11519},{"style":151},[11520],{"type":31,"value":10957},{"type":21,"tag":138,"props":11522,"children":11523},{"style":929},[11524],{"type":31,"value":10962},{"type":21,"tag":138,"props":11526,"children":11527},{"style":145},[11528],{"type":31,"value":210},{"type":21,"tag":138,"props":11530,"children":11531},{"style":151},[11532],{"type":31,"value":11533},"delays, ",{"type":21,"tag":138,"props":11535,"children":11536},{"style":929},[11537],{"type":31,"value":11538},"num_echoes",{"type":21,"tag":138,"props":11540,"children":11541},{"style":145},[11542],{"type":31,"value":210},{"type":21,"tag":138,"props":11544,"children":11545},{"style":213},[11546],{"type":31,"value":327},{"type":21,"tag":138,"props":11548,"children":11549},{"style":151},[11550],{"type":31,"value":269},{"type":21,"tag":138,"props":11552,"children":11553},{"class":140,"line":225},[11554],{"type":21,"tag":138,"props":11555,"children":11556},{"emptyLinePlaceholder":193},[11557],{"type":31,"value":196},{"type":21,"tag":138,"props":11559,"children":11560},{"class":140,"line":233},[11561,11565,11569,11573,11577,11581,11585,11589,11593,11597],{"type":21,"tag":138,"props":11562,"children":11563},{"style":151},[11564],{"type":31,"value":10986},{"type":21,"tag":138,"props":11566,"children":11567},{"style":145},[11568],{"type":31,"value":210},{"type":21,"tag":138,"props":11570,"children":11571},{"style":151},[11572],{"type":31,"value":10995},{"type":21,"tag":138,"props":11574,"children":11575},{"style":929},[11576],{"type":31,"value":11000},{"type":21,"tag":138,"props":11578,"children":11579},{"style":145},[11580],{"type":31,"value":210},{"type":21,"tag":138,"props":11582,"children":11583},{"style":151},[11584],{"type":31,"value":11266},{"type":21,"tag":138,"props":11586,"children":11587},{"style":929},[11588],{"type":31,"value":932},{"type":21,"tag":138,"props":11590,"children":11591},{"style":145},[11592],{"type":31,"value":210},{"type":21,"tag":138,"props":11594,"children":11595},{"style":213},[11596],{"type":31,"value":11279},{"type":21,"tag":138,"props":11598,"children":11599},{"style":151},[11600],{"type":31,"value":11284},{"type":21,"tag":138,"props":11602,"children":11603},{"class":140,"line":272},[11604,11608,11612,11616,11620],{"type":21,"tag":138,"props":11605,"children":11606},{"style":151},[11607],{"type":31,"value":11017},{"type":21,"tag":138,"props":11609,"children":11610},{"style":929},[11611],{"type":31,"value":11022},{"type":21,"tag":138,"props":11613,"children":11614},{"style":145},[11615],{"type":31,"value":210},{"type":21,"tag":138,"props":11617,"children":11618},{"style":213},[11619],{"type":31,"value":8677},{"type":21,"tag":138,"props":11621,"children":11622},{"style":151},[11623],{"type":31,"value":269},{"type":21,"tag":22,"props":11625,"children":11626},{},[11627,11632],{"type":21,"tag":103,"props":11628,"children":11630},{"className":11629},[],[11631],{"type":31,"value":11538},{"type":31,"value":11633}," controls how many refocusing pulses get inserted into the delay. More echoes cancel more noise but add more gate error from the extra pulses themselves, so the reported T2Hahn value is one point on a real trade-off, not a single ground-truth number.",{"type":21,"tag":41,"props":11635,"children":11637},{"id":11636},"why-t2-and-t2hahn-disagree",[11638],{"type":31,"value":11639},"Why T2* and T2Hahn disagree",{"type":21,"tag":22,"props":11641,"children":11642},{},[11643,11645,11651,11653,11658],{"type":31,"value":11644},"If you run both experiments on the same qubit, expect T2Hahn to report a longer coherence time than T2Ramsey's T2*. That gap isn't a measurement error. T2* is sensitive to noise sources an echo sequence cancels, so the two experiments are measuring genuinely different things: T2* is closer to what an uncorrected circuit experiences, while T2Hahn shows what's recoverable if your pulse sequence includes refocusing. A third experiment class, ",{"type":21,"tag":103,"props":11646,"children":11648},{"className":11647},[],[11649],{"type":31,"value":11650},"Tphi",{"type":31,"value":11652},", isolates pure dephasing from the T1-driven contribution using the T1 and T2 values together, following the relationship 1\u002FT2 = 1\u002F(2·T1) + 1\u002FTφ covered in our ",{"type":21,"tag":26,"props":11654,"children":11655},{"href":10671},[11656],{"type":31,"value":11657},"T1 vs T2 explainer",{"type":31,"value":6678},{"type":21,"tag":41,"props":11660,"children":11662},{"id":11661},"reading-results-without-guessing-at-column-names",[11663],{"type":31,"value":11664},"Reading results without guessing at column names",{"type":21,"tag":22,"props":11666,"children":11667},{},[11668],{"type":31,"value":11669},"Every experiment above returns its fit through the same interface:",{"type":21,"tag":128,"props":11671,"children":11673},{"className":130,"code":11672,"language":132,"meta":7,"style":7},"df = exp_data.analysis_results(dataframe=True)\nprint(df[[\"name\", \"value\", \"quality\"]])\n",[11674],{"type":21,"tag":103,"props":11675,"children":11676},{"__ignoreMap":7},[11677,11710],{"type":21,"tag":138,"props":11678,"children":11679},{"class":140,"line":141},[11680,11685,11689,11694,11698,11702,11706],{"type":21,"tag":138,"props":11681,"children":11682},{"style":151},[11683],{"type":31,"value":11684},"df ",{"type":21,"tag":138,"props":11686,"children":11687},{"style":145},[11688],{"type":31,"value":210},{"type":21,"tag":138,"props":11690,"children":11691},{"style":151},[11692],{"type":31,"value":11693}," exp_data.analysis_results(",{"type":21,"tag":138,"props":11695,"children":11696},{"style":929},[11697],{"type":31,"value":11022},{"type":21,"tag":138,"props":11699,"children":11700},{"style":145},[11701],{"type":31,"value":210},{"type":21,"tag":138,"props":11703,"children":11704},{"style":213},[11705],{"type":31,"value":8677},{"type":21,"tag":138,"props":11707,"children":11708},{"style":151},[11709],{"type":31,"value":269},{"type":21,"tag":138,"props":11711,"children":11712},{"class":140,"line":167},[11713,11717,11722,11727,11731,11736,11740,11745],{"type":21,"tag":138,"props":11714,"children":11715},{"style":213},[11716],{"type":31,"value":954},{"type":21,"tag":138,"props":11718,"children":11719},{"style":151},[11720],{"type":31,"value":11721},"(df[[",{"type":21,"tag":138,"props":11723,"children":11724},{"style":261},[11725],{"type":31,"value":11726},"\"name\"",{"type":21,"tag":138,"props":11728,"children":11729},{"style":151},[11730],{"type":31,"value":258},{"type":21,"tag":138,"props":11732,"children":11733},{"style":261},[11734],{"type":31,"value":11735},"\"value\"",{"type":21,"tag":138,"props":11737,"children":11738},{"style":151},[11739],{"type":31,"value":258},{"type":21,"tag":138,"props":11741,"children":11742},{"style":261},[11743],{"type":31,"value":11744},"\"quality\"",{"type":21,"tag":138,"props":11746,"children":11747},{"style":151},[11748],{"type":31,"value":11749},"]])\n",{"type":21,"tag":22,"props":11751,"children":11752},{},[11753,11754,11760,11762,11768],{"type":31,"value":11039},{"type":21,"tag":103,"props":11755,"children":11757},{"className":11756},[],[11758],{"type":31,"value":11759},"quality",{"type":31,"value":11761}," column flags whether the fit converged cleanly (",{"type":21,"tag":103,"props":11763,"children":11765},{"className":11764},[],[11766],{"type":31,"value":11767},"good",{"type":31,"value":11769},") or not, worth checking before trusting a number, especially on real hardware where a poorly chosen delay range produces a curve with too few points in the decay region to fit reliably.",{"type":21,"tag":41,"props":11771,"children":11772},{"id":5913},[11773],{"type":31,"value":5916},{"type":21,"tag":1118,"props":11775,"children":11776},{},[11777,11789,11800],{"type":21,"tag":71,"props":11778,"children":11779},{},[11780,11782,11787],{"type":31,"value":11781},"Run ",{"type":21,"tag":103,"props":11783,"children":11785},{"className":11784},[],[11786],{"type":31,"value":11052},{"type":31,"value":11788}," at increasing delay ranges and watch the fit quality degrade once your delays extend well past several multiples of the true T1, where almost every shot has already decayed and there's no curve left to fit.",{"type":21,"tag":71,"props":11790,"children":11791},{},[11792,11794,11799],{"type":31,"value":11793},"Compare T2Ramsey and T2Hahn results on the identical fake-backend qubit and check whether the gap matches what the device's calibration data reports for ",{"type":21,"tag":103,"props":11795,"children":11797},{"className":11796},[],[11798],{"type":31,"value":11650},{"type":31,"value":6678},{"type":21,"tag":71,"props":11801,"children":11802},{},[11803,11805,11812,11814,11820],{"type":31,"value":11804},"Read the ",{"type":21,"tag":26,"props":11806,"children":11809},{"href":11807,"rel":11808},"https:\u002F\u002Fqiskit-community.github.io\u002Fqiskit-experiments\u002Fmanuals\u002Findex.html",[7136],[11810],{"type":31,"value":11811},"Qiskit Experiments manuals",{"type":31,"value":11813}," for the full characterization library: fine-amplitude and fine-frequency experiments, readout error mitigation, and randomized benchmarking, which our ",{"type":21,"tag":26,"props":11815,"children":11817},{"href":11816},"\u002Fblog\u002Frandomized-benchmarking-qiskit-experiments",[11818],{"type":31,"value":11819},"companion post",{"type":31,"value":11821}," covers.",{"type":21,"tag":1174,"props":11823,"children":11824},{},[11825],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":11827},[11828,11829,11830,11831,11832,11833,11834],{"id":10711,"depth":167,"text":10714},{"id":10808,"depth":167,"text":10811},{"id":11065,"depth":167,"text":11068},{"id":11338,"depth":167,"text":11341},{"id":11636,"depth":167,"text":11639},{"id":11661,"depth":167,"text":11664},{"id":5913,"depth":167,"text":5916},"content:blog:measuring-t1-t2-qiskit-experiments.md","blog\u002Fmeasuring-t1-t2-qiskit-experiments.md","blog\u002Fmeasuring-t1-t2-qiskit-experiments",{"_path":11839,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":11840,"description":11841,"date":4484,"author":11,"tags":11842,"readingTime":308,"body":11843,"_type":1193,"_id":12746,"_source":1195,"_file":12747,"_stem":12748,"_extension":1198},"\u002Fblog\u002Fmolecule-ground-state-qiskit-nature","Building Your First Molecule Ground-State Solver with Qiskit Nature","A practical walkthrough of Qiskit Nature 0.8: driving a molecule's electronic structure with PySCF, mapping it to qubits, and solving for the ground-state energy, first classically, then swapping in VQE.",[3497,14,3626],{"type":18,"children":11844,"toc":12738},[11845,11865,11893,11899,11904,12116,12129,12135,12146,12198,12226,12232,12237,12345,12350,12356,12367,12653,12672,12678,12683,12687,12734],{"type":21,"tag":22,"props":11846,"children":11847},{},[11848,11849,11854,11856,11863],{"type":31,"value":4494},{"type":21,"tag":26,"props":11850,"children":11851},{"href":3623},[11852],{"type":31,"value":11853},"PennyLane VQE guide",{"type":31,"value":11855}," builds a variational chemistry solver from PennyLane's side. This post covers the identical problem, finding a molecule's ground-state energy, from the Qiskit ecosystem, using ",{"type":21,"tag":26,"props":11857,"children":11860},{"href":11858,"rel":11859},"https:\u002F\u002Fqiskit-community.github.io\u002Fqiskit-nature\u002F",[7136],[11861],{"type":31,"value":11862},"Qiskit Nature",{"type":31,"value":11864}," (version 0.8), which handles the chemistry-specific plumbing: driving a classical chemistry package, building the molecular Hamiltonian, and mapping it to qubits.",{"type":21,"tag":128,"props":11866,"children":11868},{"className":4512,"code":11867,"language":4511,"meta":7,"style":7},"pip install qiskit-nature pyscf\n",[11869],{"type":21,"tag":103,"props":11870,"children":11871},{"__ignoreMap":7},[11872],{"type":21,"tag":138,"props":11873,"children":11874},{"class":140,"line":141},[11875,11879,11883,11888],{"type":21,"tag":138,"props":11876,"children":11877},{"style":4522},[11878],{"type":31,"value":4525},{"type":21,"tag":138,"props":11880,"children":11881},{"style":261},[11882],{"type":31,"value":4530},{"type":21,"tag":138,"props":11884,"children":11885},{"style":261},[11886],{"type":31,"value":11887}," qiskit-nature",{"type":21,"tag":138,"props":11889,"children":11890},{"style":261},[11891],{"type":31,"value":11892}," pyscf\n",{"type":21,"tag":41,"props":11894,"children":11896},{"id":11895},"driving-the-classical-chemistry",[11897],{"type":31,"value":11898},"Driving the classical chemistry",{"type":21,"tag":22,"props":11900,"children":11901},{},[11902],{"type":31,"value":11903},"Qiskit Nature doesn't compute molecular orbitals itself. It drives an external classical chemistry package, PySCF here, to do that groundwork, then wraps the outcome in a form the rest of the pipeline understands:",{"type":21,"tag":128,"props":11905,"children":11907},{"className":130,"code":11906,"language":132,"meta":7,"style":7},"from qiskit_nature.units import DistanceUnit\nfrom qiskit_nature.second_q.drivers import PySCFDriver\n\ndriver = PySCFDriver(\n    atom=\"H 0 0 0; H 0 0 0.735\",\n    basis=\"sto3g\",\n    charge=0,\n    spin=0,\n    unit=DistanceUnit.ANGSTROM,\n)\n\nproblem = driver.run()\n",[11908],{"type":21,"tag":103,"props":11909,"children":11910},{"__ignoreMap":7},[11911,11932,11953,11960,11977,11998,12019,12039,12059,12085,12092,12099],{"type":21,"tag":138,"props":11912,"children":11913},{"class":140,"line":141},[11914,11918,11923,11927],{"type":21,"tag":138,"props":11915,"children":11916},{"style":145},[11917],{"type":31,"value":148},{"type":21,"tag":138,"props":11919,"children":11920},{"style":151},[11921],{"type":31,"value":11922}," qiskit_nature.units ",{"type":21,"tag":138,"props":11924,"children":11925},{"style":145},[11926],{"type":31,"value":159},{"type":21,"tag":138,"props":11928,"children":11929},{"style":151},[11930],{"type":31,"value":11931}," DistanceUnit\n",{"type":21,"tag":138,"props":11933,"children":11934},{"class":140,"line":167},[11935,11939,11944,11948],{"type":21,"tag":138,"props":11936,"children":11937},{"style":145},[11938],{"type":31,"value":148},{"type":21,"tag":138,"props":11940,"children":11941},{"style":151},[11942],{"type":31,"value":11943}," qiskit_nature.second_q.drivers ",{"type":21,"tag":138,"props":11945,"children":11946},{"style":145},[11947],{"type":31,"value":159},{"type":21,"tag":138,"props":11949,"children":11950},{"style":151},[11951],{"type":31,"value":11952}," PySCFDriver\n",{"type":21,"tag":138,"props":11954,"children":11955},{"class":140,"line":189},[11956],{"type":21,"tag":138,"props":11957,"children":11958},{"emptyLinePlaceholder":193},[11959],{"type":31,"value":196},{"type":21,"tag":138,"props":11961,"children":11962},{"class":140,"line":199},[11963,11968,11972],{"type":21,"tag":138,"props":11964,"children":11965},{"style":151},[11966],{"type":31,"value":11967},"driver ",{"type":21,"tag":138,"props":11969,"children":11970},{"style":145},[11971],{"type":31,"value":210},{"type":21,"tag":138,"props":11973,"children":11974},{"style":151},[11975],{"type":31,"value":11976}," PySCFDriver(\n",{"type":21,"tag":138,"props":11978,"children":11979},{"class":140,"line":225},[11980,11985,11989,11994],{"type":21,"tag":138,"props":11981,"children":11982},{"style":929},[11983],{"type":31,"value":11984},"    atom",{"type":21,"tag":138,"props":11986,"children":11987},{"style":145},[11988],{"type":31,"value":210},{"type":21,"tag":138,"props":11990,"children":11991},{"style":261},[11992],{"type":31,"value":11993},"\"H 0 0 0; H 0 0 0.735\"",{"type":21,"tag":138,"props":11995,"children":11996},{"style":151},[11997],{"type":31,"value":4824},{"type":21,"tag":138,"props":11999,"children":12000},{"class":140,"line":233},[12001,12006,12010,12015],{"type":21,"tag":138,"props":12002,"children":12003},{"style":929},[12004],{"type":31,"value":12005},"    basis",{"type":21,"tag":138,"props":12007,"children":12008},{"style":145},[12009],{"type":31,"value":210},{"type":21,"tag":138,"props":12011,"children":12012},{"style":261},[12013],{"type":31,"value":12014},"\"sto3g\"",{"type":21,"tag":138,"props":12016,"children":12017},{"style":151},[12018],{"type":31,"value":4824},{"type":21,"tag":138,"props":12020,"children":12021},{"class":140,"line":272},[12022,12027,12031,12035],{"type":21,"tag":138,"props":12023,"children":12024},{"style":929},[12025],{"type":31,"value":12026},"    charge",{"type":21,"tag":138,"props":12028,"children":12029},{"style":145},[12030],{"type":31,"value":210},{"type":21,"tag":138,"props":12032,"children":12033},{"style":213},[12034],{"type":31,"value":406},{"type":21,"tag":138,"props":12036,"children":12037},{"style":151},[12038],{"type":31,"value":4824},{"type":21,"tag":138,"props":12040,"children":12041},{"class":140,"line":308},[12042,12047,12051,12055],{"type":21,"tag":138,"props":12043,"children":12044},{"style":929},[12045],{"type":31,"value":12046},"    spin",{"type":21,"tag":138,"props":12048,"children":12049},{"style":145},[12050],{"type":31,"value":210},{"type":21,"tag":138,"props":12052,"children":12053},{"style":213},[12054],{"type":31,"value":406},{"type":21,"tag":138,"props":12056,"children":12057},{"style":151},[12058],{"type":31,"value":4824},{"type":21,"tag":138,"props":12060,"children":12061},{"class":140,"line":16},[12062,12067,12071,12076,12081],{"type":21,"tag":138,"props":12063,"children":12064},{"style":929},[12065],{"type":31,"value":12066},"    unit",{"type":21,"tag":138,"props":12068,"children":12069},{"style":145},[12070],{"type":31,"value":210},{"type":21,"tag":138,"props":12072,"children":12073},{"style":151},[12074],{"type":31,"value":12075},"DistanceUnit.",{"type":21,"tag":138,"props":12077,"children":12078},{"style":213},[12079],{"type":31,"value":12080},"ANGSTROM",{"type":21,"tag":138,"props":12082,"children":12083},{"style":151},[12084],{"type":31,"value":4824},{"type":21,"tag":138,"props":12086,"children":12087},{"class":140,"line":360},[12088],{"type":21,"tag":138,"props":12089,"children":12090},{"style":151},[12091],{"type":31,"value":269},{"type":21,"tag":138,"props":12093,"children":12094},{"class":140,"line":368},[12095],{"type":21,"tag":138,"props":12096,"children":12097},{"emptyLinePlaceholder":193},[12098],{"type":31,"value":196},{"type":21,"tag":138,"props":12100,"children":12101},{"class":140,"line":377},[12102,12107,12111],{"type":21,"tag":138,"props":12103,"children":12104},{"style":151},[12105],{"type":31,"value":12106},"problem ",{"type":21,"tag":138,"props":12108,"children":12109},{"style":145},[12110],{"type":31,"value":210},{"type":21,"tag":138,"props":12112,"children":12113},{"style":151},[12114],{"type":31,"value":12115}," driver.run()\n",{"type":21,"tag":22,"props":12117,"children":12118},{},[12119,12121,12127],{"type":31,"value":12120},"This example builds H₂ at its equilibrium bond length (0.735 Å), the standard first molecule for testing a chemistry pipeline, small enough to solve exactly and check your setup against a known answer. ",{"type":21,"tag":103,"props":12122,"children":12124},{"className":12123},[],[12125],{"type":31,"value":12126},"basis=\"sto3g\"",{"type":31,"value":12128}," sets a minimal basis set, the smallest reasonable choice for orbital representation, which keeps qubit count low at the cost of chemical accuracy, a trade-off worth understanding before scaling to a real molecule of interest.",{"type":21,"tag":41,"props":12130,"children":12132},{"id":12131},"mapping-fermions-to-qubits",[12133],{"type":31,"value":12134},"Mapping fermions to qubits",{"type":21,"tag":22,"props":12136,"children":12137},{},[12138,12144],{"type":21,"tag":103,"props":12139,"children":12141},{"className":12140},[],[12142],{"type":31,"value":12143},"problem",{"type":31,"value":12145}," describes the molecule in terms of fermionic operators, the natural language of electronic structure, which then needs mapping onto qubits:",{"type":21,"tag":128,"props":12147,"children":12149},{"className":130,"code":12148,"language":132,"meta":7,"style":7},"from qiskit_nature.second_q.mappers import JordanWignerMapper\n\nmapper = JordanWignerMapper()\n",[12150],{"type":21,"tag":103,"props":12151,"children":12152},{"__ignoreMap":7},[12153,12174,12181],{"type":21,"tag":138,"props":12154,"children":12155},{"class":140,"line":141},[12156,12160,12165,12169],{"type":21,"tag":138,"props":12157,"children":12158},{"style":145},[12159],{"type":31,"value":148},{"type":21,"tag":138,"props":12161,"children":12162},{"style":151},[12163],{"type":31,"value":12164}," qiskit_nature.second_q.mappers ",{"type":21,"tag":138,"props":12166,"children":12167},{"style":145},[12168],{"type":31,"value":159},{"type":21,"tag":138,"props":12170,"children":12171},{"style":151},[12172],{"type":31,"value":12173}," JordanWignerMapper\n",{"type":21,"tag":138,"props":12175,"children":12176},{"class":140,"line":167},[12177],{"type":21,"tag":138,"props":12178,"children":12179},{"emptyLinePlaceholder":193},[12180],{"type":31,"value":196},{"type":21,"tag":138,"props":12182,"children":12183},{"class":140,"line":189},[12184,12189,12193],{"type":21,"tag":138,"props":12185,"children":12186},{"style":151},[12187],{"type":31,"value":12188},"mapper ",{"type":21,"tag":138,"props":12190,"children":12191},{"style":145},[12192],{"type":31,"value":210},{"type":21,"tag":138,"props":12194,"children":12195},{"style":151},[12196],{"type":31,"value":12197}," JordanWignerMapper()\n",{"type":21,"tag":22,"props":12199,"children":12200},{},[12201,12203,12209,12211,12217,12218,12224],{"type":31,"value":12202},"Jordan-Wigner is the most direct mapping: one spin-orbital maps to one qubit, which makes it the easiest to reason about but not the most qubit-efficient. Our ",{"type":21,"tag":26,"props":12204,"children":12206},{"href":12205},"\u002Fblog\u002Fqubit-mappers-jordan-wigner-parity-explained",[12207],{"type":31,"value":12208},"companion article on qubit mappers",{"type":31,"value":12210}," covers the alternatives (",{"type":21,"tag":103,"props":12212,"children":12214},{"className":12213},[],[12215],{"type":31,"value":12216},"ParityMapper",{"type":31,"value":258},{"type":21,"tag":103,"props":12219,"children":12221},{"className":12220},[],[12222],{"type":31,"value":12223},"BravyiKitaevMapper",{"type":31,"value":12225},") and the qubit-count trade-offs each one makes.",{"type":21,"tag":41,"props":12227,"children":12229},{"id":12228},"solving-classically-first",[12230],{"type":31,"value":12231},"Solving classically first",{"type":21,"tag":22,"props":12233,"children":12234},{},[12235],{"type":31,"value":12236},"Before running anything on a quantum circuit, solve the problem with a classical eigensolver. This gives you a known-correct answer to examine any quantum approach against, and for a molecule this small, it's also faster:",{"type":21,"tag":128,"props":12238,"children":12240},{"className":130,"code":12239,"language":132,"meta":7,"style":7},"from qiskit_algorithms import NumPyMinimumEigensolver\nfrom qiskit_nature.second_q.algorithms import GroundStateEigensolver\n\nsolver = GroundStateEigensolver(mapper, NumPyMinimumEigensolver())\nresult = solver.solve(problem)\n\nprint(result.total_energies)\n",[12241],{"type":21,"tag":103,"props":12242,"children":12243},{"__ignoreMap":7},[12244,12265,12286,12293,12310,12326,12333],{"type":21,"tag":138,"props":12245,"children":12246},{"class":140,"line":141},[12247,12251,12256,12260],{"type":21,"tag":138,"props":12248,"children":12249},{"style":145},[12250],{"type":31,"value":148},{"type":21,"tag":138,"props":12252,"children":12253},{"style":151},[12254],{"type":31,"value":12255}," qiskit_algorithms ",{"type":21,"tag":138,"props":12257,"children":12258},{"style":145},[12259],{"type":31,"value":159},{"type":21,"tag":138,"props":12261,"children":12262},{"style":151},[12263],{"type":31,"value":12264}," NumPyMinimumEigensolver\n",{"type":21,"tag":138,"props":12266,"children":12267},{"class":140,"line":167},[12268,12272,12277,12281],{"type":21,"tag":138,"props":12269,"children":12270},{"style":145},[12271],{"type":31,"value":148},{"type":21,"tag":138,"props":12273,"children":12274},{"style":151},[12275],{"type":31,"value":12276}," qiskit_nature.second_q.algorithms ",{"type":21,"tag":138,"props":12278,"children":12279},{"style":145},[12280],{"type":31,"value":159},{"type":21,"tag":138,"props":12282,"children":12283},{"style":151},[12284],{"type":31,"value":12285}," GroundStateEigensolver\n",{"type":21,"tag":138,"props":12287,"children":12288},{"class":140,"line":189},[12289],{"type":21,"tag":138,"props":12290,"children":12291},{"emptyLinePlaceholder":193},[12292],{"type":31,"value":196},{"type":21,"tag":138,"props":12294,"children":12295},{"class":140,"line":199},[12296,12301,12305],{"type":21,"tag":138,"props":12297,"children":12298},{"style":151},[12299],{"type":31,"value":12300},"solver ",{"type":21,"tag":138,"props":12302,"children":12303},{"style":145},[12304],{"type":31,"value":210},{"type":21,"tag":138,"props":12306,"children":12307},{"style":151},[12308],{"type":31,"value":12309}," GroundStateEigensolver(mapper, NumPyMinimumEigensolver())\n",{"type":21,"tag":138,"props":12311,"children":12312},{"class":140,"line":225},[12313,12317,12321],{"type":21,"tag":138,"props":12314,"children":12315},{"style":151},[12316],{"type":31,"value":4881},{"type":21,"tag":138,"props":12318,"children":12319},{"style":145},[12320],{"type":31,"value":210},{"type":21,"tag":138,"props":12322,"children":12323},{"style":151},[12324],{"type":31,"value":12325}," solver.solve(problem)\n",{"type":21,"tag":138,"props":12327,"children":12328},{"class":140,"line":233},[12329],{"type":21,"tag":138,"props":12330,"children":12331},{"emptyLinePlaceholder":193},[12332],{"type":31,"value":196},{"type":21,"tag":138,"props":12334,"children":12335},{"class":140,"line":272},[12336,12340],{"type":21,"tag":138,"props":12337,"children":12338},{"style":213},[12339],{"type":31,"value":954},{"type":21,"tag":138,"props":12341,"children":12342},{"style":151},[12343],{"type":31,"value":12344},"(result.total_energies)\n",{"type":21,"tag":22,"props":12346,"children":12347},{},[12348],{"type":31,"value":12349},"For H₂ at equilibrium bond length, this returns a ground-state energy close to -1.137 Hartree, the reference value against which any quantum solution should be checked. If your VQE result later doesn't land near this number, the bug is worth chasing before assuming it's a hardware noise issue.",{"type":21,"tag":41,"props":12351,"children":12353},{"id":12352},"swapping-in-vqe",[12354],{"type":31,"value":12355},"Swapping in VQE",{"type":21,"tag":22,"props":12357,"children":12358},{},[12359,12365],{"type":21,"tag":103,"props":12360,"children":12362},{"className":12361},[],[12363],{"type":31,"value":12364},"GroundStateEigensolver",{"type":31,"value":12366}," takes any compatible minimum eigensolver, which is what makes moving from classical to quantum mostly a one-line shift rather than a rewrite:",{"type":21,"tag":128,"props":12368,"children":12370},{"className":130,"code":12369,"language":132,"meta":7,"style":7},"from qiskit_algorithms import VQE\nfrom qiskit_algorithms.optimizers import COBYLA\nfrom qiskit.primitives import Estimator\nfrom qiskit_nature.second_q.circuit.library import UCCSD, HartreeFock\n\nansatz = UCCSD(\n    problem.num_spatial_orbitals,\n    problem.num_particles,\n    mapper,\n    initial_state=HartreeFock(problem.num_spatial_orbitals, problem.num_particles, mapper),\n)\n\nvqe_solver = VQE(Estimator(), ansatz, COBYLA())\nvqe_solver.initial_point = [0.0] * ansatz.num_parameters\n\nsolver = GroundStateEigensolver(mapper, vqe_solver)\nresult = solver.solve(problem)\n\nprint(result.total_energies)\n",[12371],{"type":21,"tag":103,"props":12372,"children":12373},{"__ignoreMap":7},[12374,12394,12415,12436,12462,12469,12486,12494,12502,12510,12527,12534,12541,12558,12593,12600,12617,12633,12641],{"type":21,"tag":138,"props":12375,"children":12376},{"class":140,"line":141},[12377,12381,12385,12389],{"type":21,"tag":138,"props":12378,"children":12379},{"style":145},[12380],{"type":31,"value":148},{"type":21,"tag":138,"props":12382,"children":12383},{"style":151},[12384],{"type":31,"value":12255},{"type":21,"tag":138,"props":12386,"children":12387},{"style":145},[12388],{"type":31,"value":159},{"type":21,"tag":138,"props":12390,"children":12391},{"style":213},[12392],{"type":31,"value":12393}," VQE\n",{"type":21,"tag":138,"props":12395,"children":12396},{"class":140,"line":167},[12397,12401,12406,12410],{"type":21,"tag":138,"props":12398,"children":12399},{"style":145},[12400],{"type":31,"value":148},{"type":21,"tag":138,"props":12402,"children":12403},{"style":151},[12404],{"type":31,"value":12405}," qiskit_algorithms.optimizers ",{"type":21,"tag":138,"props":12407,"children":12408},{"style":145},[12409],{"type":31,"value":159},{"type":21,"tag":138,"props":12411,"children":12412},{"style":213},[12413],{"type":31,"value":12414}," COBYLA\n",{"type":21,"tag":138,"props":12416,"children":12417},{"class":140,"line":189},[12418,12422,12427,12431],{"type":21,"tag":138,"props":12419,"children":12420},{"style":145},[12421],{"type":31,"value":148},{"type":21,"tag":138,"props":12423,"children":12424},{"style":151},[12425],{"type":31,"value":12426}," qiskit.primitives ",{"type":21,"tag":138,"props":12428,"children":12429},{"style":145},[12430],{"type":31,"value":159},{"type":21,"tag":138,"props":12432,"children":12433},{"style":151},[12434],{"type":31,"value":12435}," Estimator\n",{"type":21,"tag":138,"props":12437,"children":12438},{"class":140,"line":199},[12439,12443,12448,12452,12457],{"type":21,"tag":138,"props":12440,"children":12441},{"style":145},[12442],{"type":31,"value":148},{"type":21,"tag":138,"props":12444,"children":12445},{"style":151},[12446],{"type":31,"value":12447}," qiskit_nature.second_q.circuit.library ",{"type":21,"tag":138,"props":12449,"children":12450},{"style":145},[12451],{"type":31,"value":159},{"type":21,"tag":138,"props":12453,"children":12454},{"style":213},[12455],{"type":31,"value":12456}," UCCSD",{"type":21,"tag":138,"props":12458,"children":12459},{"style":151},[12460],{"type":31,"value":12461},", HartreeFock\n",{"type":21,"tag":138,"props":12463,"children":12464},{"class":140,"line":225},[12465],{"type":21,"tag":138,"props":12466,"children":12467},{"emptyLinePlaceholder":193},[12468],{"type":31,"value":196},{"type":21,"tag":138,"props":12470,"children":12471},{"class":140,"line":233},[12472,12477,12481],{"type":21,"tag":138,"props":12473,"children":12474},{"style":151},[12475],{"type":31,"value":12476},"ansatz ",{"type":21,"tag":138,"props":12478,"children":12479},{"style":145},[12480],{"type":31,"value":210},{"type":21,"tag":138,"props":12482,"children":12483},{"style":151},[12484],{"type":31,"value":12485}," UCCSD(\n",{"type":21,"tag":138,"props":12487,"children":12488},{"class":140,"line":272},[12489],{"type":21,"tag":138,"props":12490,"children":12491},{"style":151},[12492],{"type":31,"value":12493},"    problem.num_spatial_orbitals,\n",{"type":21,"tag":138,"props":12495,"children":12496},{"class":140,"line":308},[12497],{"type":21,"tag":138,"props":12498,"children":12499},{"style":151},[12500],{"type":31,"value":12501},"    problem.num_particles,\n",{"type":21,"tag":138,"props":12503,"children":12504},{"class":140,"line":16},[12505],{"type":21,"tag":138,"props":12506,"children":12507},{"style":151},[12508],{"type":31,"value":12509},"    mapper,\n",{"type":21,"tag":138,"props":12511,"children":12512},{"class":140,"line":360},[12513,12518,12522],{"type":21,"tag":138,"props":12514,"children":12515},{"style":929},[12516],{"type":31,"value":12517},"    initial_state",{"type":21,"tag":138,"props":12519,"children":12520},{"style":145},[12521],{"type":31,"value":210},{"type":21,"tag":138,"props":12523,"children":12524},{"style":151},[12525],{"type":31,"value":12526},"HartreeFock(problem.num_spatial_orbitals, problem.num_particles, mapper),\n",{"type":21,"tag":138,"props":12528,"children":12529},{"class":140,"line":368},[12530],{"type":21,"tag":138,"props":12531,"children":12532},{"style":151},[12533],{"type":31,"value":269},{"type":21,"tag":138,"props":12535,"children":12536},{"class":140,"line":377},[12537],{"type":21,"tag":138,"props":12538,"children":12539},{"emptyLinePlaceholder":193},[12540],{"type":31,"value":196},{"type":21,"tag":138,"props":12542,"children":12543},{"class":140,"line":386},[12544,12549,12553],{"type":21,"tag":138,"props":12545,"children":12546},{"style":151},[12547],{"type":31,"value":12548},"vqe_solver ",{"type":21,"tag":138,"props":12550,"children":12551},{"style":145},[12552],{"type":31,"value":210},{"type":21,"tag":138,"props":12554,"children":12555},{"style":151},[12556],{"type":31,"value":12557}," VQE(Estimator(), ansatz, COBYLA())\n",{"type":21,"tag":138,"props":12559,"children":12560},{"class":140,"line":395},[12561,12566,12570,12574,12579,12584,12588],{"type":21,"tag":138,"props":12562,"children":12563},{"style":151},[12564],{"type":31,"value":12565},"vqe_solver.initial_point ",{"type":21,"tag":138,"props":12567,"children":12568},{"style":145},[12569],{"type":31,"value":210},{"type":21,"tag":138,"props":12571,"children":12572},{"style":151},[12573],{"type":31,"value":8051},{"type":21,"tag":138,"props":12575,"children":12576},{"style":213},[12577],{"type":31,"value":12578},"0.0",{"type":21,"tag":138,"props":12580,"children":12581},{"style":151},[12582],{"type":31,"value":12583},"] ",{"type":21,"tag":138,"props":12585,"children":12586},{"style":145},[12587],{"type":31,"value":11419},{"type":21,"tag":138,"props":12589,"children":12590},{"style":151},[12591],{"type":31,"value":12592}," ansatz.num_parameters\n",{"type":21,"tag":138,"props":12594,"children":12595},{"class":140,"line":413},[12596],{"type":21,"tag":138,"props":12597,"children":12598},{"emptyLinePlaceholder":193},[12599],{"type":31,"value":196},{"type":21,"tag":138,"props":12601,"children":12603},{"class":140,"line":12602},16,[12604,12608,12612],{"type":21,"tag":138,"props":12605,"children":12606},{"style":151},[12607],{"type":31,"value":12300},{"type":21,"tag":138,"props":12609,"children":12610},{"style":145},[12611],{"type":31,"value":210},{"type":21,"tag":138,"props":12613,"children":12614},{"style":151},[12615],{"type":31,"value":12616}," GroundStateEigensolver(mapper, vqe_solver)\n",{"type":21,"tag":138,"props":12618,"children":12620},{"class":140,"line":12619},17,[12621,12625,12629],{"type":21,"tag":138,"props":12622,"children":12623},{"style":151},[12624],{"type":31,"value":4881},{"type":21,"tag":138,"props":12626,"children":12627},{"style":145},[12628],{"type":31,"value":210},{"type":21,"tag":138,"props":12630,"children":12631},{"style":151},[12632],{"type":31,"value":12325},{"type":21,"tag":138,"props":12634,"children":12636},{"class":140,"line":12635},18,[12637],{"type":21,"tag":138,"props":12638,"children":12639},{"emptyLinePlaceholder":193},[12640],{"type":31,"value":196},{"type":21,"tag":138,"props":12642,"children":12644},{"class":140,"line":12643},19,[12645,12649],{"type":21,"tag":138,"props":12646,"children":12647},{"style":213},[12648],{"type":31,"value":954},{"type":21,"tag":138,"props":12650,"children":12651},{"style":151},[12652],{"type":31,"value":12344},{"type":21,"tag":22,"props":12654,"children":12655},{},[12656,12662,12664,12670],{"type":21,"tag":103,"props":12657,"children":12659},{"className":12658},[],[12660],{"type":31,"value":12661},"UCCSD",{"type":31,"value":12663}," (Unitary Coupled Cluster Singles and Doubles) is the standard chemistry-motivated ansatz, built to respect the physical structure of electron excitations rather than being a generic parameterized circuit. ",{"type":21,"tag":103,"props":12665,"children":12667},{"className":12666},[],[12668],{"type":31,"value":12669},"HartreeFock",{"type":31,"value":12671}," initializes the circuit in the classical mean-field reference state, a far better starting point than an arbitrary superposition, since the true ground state is usually a comparatively small correction away from it.",{"type":21,"tag":41,"props":12673,"children":12675},{"id":12674},"why-the-two-results-should-nearly-match",[12676],{"type":31,"value":12677},"Why the two results should (nearly) match",{"type":21,"tag":22,"props":12679,"children":12680},{},[12681],{"type":31,"value":12682},"For a small, well-behaved molecule like H₂ in a minimal basis, VQE with UCCSD should converge close to the exact classical answer, since UCCSD is expressive enough to represent the exact ground state for a system this modest. That agreement is the actual point of running the comparison: it validates that the mapping, ansatz, and optimizer are all working correctly before you scale to a molecule too large to check against a classical solver at all, which is the actual regime where a quantum approach would need to earn its keep.",{"type":21,"tag":41,"props":12684,"children":12685},{"id":5913},[12686],{"type":31,"value":5916},{"type":21,"tag":1118,"props":12688,"children":12689},{},[12690,12695,12722],{"type":21,"tag":71,"props":12691,"children":12692},{},[12693],{"type":31,"value":12694},"Sweep the H-H bond length and plot the ground-state energy curve, the classic dissociation-curve exercise that confirms your solver reproduces real molecular behavior rather than a single lucky data point.",{"type":21,"tag":71,"props":12696,"children":12697},{},[12698,12700,12706,12708,12714,12716,12721],{"type":31,"value":12699},"Swap ",{"type":21,"tag":103,"props":12701,"children":12703},{"className":12702},[],[12704],{"type":31,"value":12705},"JordanWignerMapper",{"type":31,"value":12707}," for ",{"type":21,"tag":103,"props":12709,"children":12711},{"className":12710},[],[12712],{"type":31,"value":12713},"ParityMapper(num_particles=problem.num_particles)",{"type":31,"value":12715}," and compare qubit count, covered in our ",{"type":21,"tag":26,"props":12717,"children":12718},{"href":12205},[12719],{"type":31,"value":12720},"qubit mappers post",{"type":31,"value":6678},{"type":21,"tag":71,"props":12723,"children":12724},{},[12725,12727,12732],{"type":31,"value":12726},"Read ",{"type":21,"tag":26,"props":12728,"children":12729},{"href":3518},[12730],{"type":31,"value":12731},"what quantum computers do with molecules in 2026",{"type":31,"value":12733}," for where this kind of pipeline stands on real, larger molecules rather than toy H₂.",{"type":21,"tag":1174,"props":12735,"children":12736},{},[12737],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":12739},[12740,12741,12742,12743,12744,12745],{"id":11895,"depth":167,"text":11898},{"id":12131,"depth":167,"text":12134},{"id":12228,"depth":167,"text":12231},{"id":12352,"depth":167,"text":12355},{"id":12674,"depth":167,"text":12677},{"id":5913,"depth":167,"text":5916},"content:blog:molecule-ground-state-qiskit-nature.md","blog\u002Fmolecule-ground-state-qiskit-nature.md","blog\u002Fmolecule-ground-state-qiskit-nature",{"_path":12750,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":12751,"description":12752,"date":4484,"author":11,"tags":12753,"readingTime":308,"body":12755,"_type":1193,"_id":13468,"_source":1195,"_file":13469,"_stem":13470,"_extension":1198},"\u002Fblog\u002Fquantum-kernel-machine-learning-qiskit","Quantum Kernel Machine Learning with Qiskit: A Practical Guide","How to build a quantum kernel with Qiskit Machine Learning 0.9, plug it into a support vector classifier, and understand what a quantum kernel computes versus a classical one.",[12754,14,13],"QML",{"type":18,"children":12756,"toc":13459},[12757,12784,12807,12813,12818,12824,12927,12940,12946,13123,13142,13148,13169,13260,13273,13364,13384,13390,13402,13408,13413,13417,13455],{"type":21,"tag":22,"props":12758,"children":12759},{},[12760,12761,12766,12768,12773,12775,12782],{"type":31,"value":4494},{"type":21,"tag":26,"props":12762,"children":12763},{"href":3150},[12764],{"type":31,"value":12765},"reality check on quantum machine learning",{"type":31,"value":12767}," covers the caveats: most QML speedup claims assume data already sitting conveniently in a quantum state, an assumption that rarely holds for real classical datasets. Quantum kernel methods sidestep part of that problem, because a kernel-based classifier only ever needs the ",{"type":21,"tag":12769,"props":12770,"children":12771},"em",{},[12772],{"type":31,"value":1009},{"type":31,"value":12774}," of a quantum computation, a similarity score between data points, not the full quantum state itself. This post builds one with ",{"type":21,"tag":26,"props":12776,"children":12779},{"href":12777,"rel":12778},"https:\u002F\u002Fqiskit-community.github.io\u002Fqiskit-machine-learning\u002F",[7136],[12780],{"type":31,"value":12781},"Qiskit Machine Learning",{"type":31,"value":12783}," (version 0.9).",{"type":21,"tag":128,"props":12785,"children":12787},{"className":4512,"code":12786,"language":4511,"meta":7,"style":7},"pip install qiskit-machine-learning\n",[12788],{"type":21,"tag":103,"props":12789,"children":12790},{"__ignoreMap":7},[12791],{"type":21,"tag":138,"props":12792,"children":12793},{"class":140,"line":141},[12794,12798,12802],{"type":21,"tag":138,"props":12795,"children":12796},{"style":4522},[12797],{"type":31,"value":4525},{"type":21,"tag":138,"props":12799,"children":12800},{"style":261},[12801],{"type":31,"value":4530},{"type":21,"tag":138,"props":12803,"children":12804},{"style":261},[12805],{"type":31,"value":12806}," qiskit-machine-learning\n",{"type":21,"tag":41,"props":12808,"children":12810},{"id":12809},"what-a-kernel-does-classical-or-quantum",[12811],{"type":31,"value":12812},"What a kernel does, classical or quantum",{"type":21,"tag":22,"props":12814,"children":12815},{},[12816],{"type":31,"value":12817},"Support vector classifiers separate data by finding a boundary in feature space, and a kernel function is what defines the notion of \"similarity\" the classifier uses to compare data points, without ever explicitly constructing that feature space. Classical kernels (RBF, polynomial) compute similarity using ordinary vector math. A quantum kernel encodes each classical data point into a quantum state via a parameterized circuit, then defines similarity as how much two such states overlap, a quantity that's exponentially expensive to compute classically for a general quantum state but comes directly out of running a simple circuit on real qubits.",{"type":21,"tag":41,"props":12819,"children":12821},{"id":12820},"encoding-data-with-a-feature-map",[12822],{"type":31,"value":12823},"Encoding data with a feature map",{"type":21,"tag":128,"props":12825,"children":12827},{"className":130,"code":12826,"language":132,"meta":7,"style":7},"from qiskit.circuit.library import zz_feature_map\n\nfeature_map = zz_feature_map(feature_dimension=2, reps=2, entanglement=\"linear\")\n",[12828],{"type":21,"tag":103,"props":12829,"children":12830},{"__ignoreMap":7},[12831,12852,12859],{"type":21,"tag":138,"props":12832,"children":12833},{"class":140,"line":141},[12834,12838,12843,12847],{"type":21,"tag":138,"props":12835,"children":12836},{"style":145},[12837],{"type":31,"value":148},{"type":21,"tag":138,"props":12839,"children":12840},{"style":151},[12841],{"type":31,"value":12842}," qiskit.circuit.library ",{"type":21,"tag":138,"props":12844,"children":12845},{"style":145},[12846],{"type":31,"value":159},{"type":21,"tag":138,"props":12848,"children":12849},{"style":151},[12850],{"type":31,"value":12851}," zz_feature_map\n",{"type":21,"tag":138,"props":12853,"children":12854},{"class":140,"line":167},[12855],{"type":21,"tag":138,"props":12856,"children":12857},{"emptyLinePlaceholder":193},[12858],{"type":31,"value":196},{"type":21,"tag":138,"props":12860,"children":12861},{"class":140,"line":189},[12862,12867,12871,12876,12881,12885,12889,12893,12898,12902,12906,12910,12914,12918,12923],{"type":21,"tag":138,"props":12863,"children":12864},{"style":151},[12865],{"type":31,"value":12866},"feature_map ",{"type":21,"tag":138,"props":12868,"children":12869},{"style":145},[12870],{"type":31,"value":210},{"type":21,"tag":138,"props":12872,"children":12873},{"style":151},[12874],{"type":31,"value":12875}," zz_feature_map(",{"type":21,"tag":138,"props":12877,"children":12878},{"style":929},[12879],{"type":31,"value":12880},"feature_dimension",{"type":21,"tag":138,"props":12882,"children":12883},{"style":145},[12884],{"type":31,"value":210},{"type":21,"tag":138,"props":12886,"children":12887},{"style":213},[12888],{"type":31,"value":292},{"type":21,"tag":138,"props":12890,"children":12891},{"style":151},[12892],{"type":31,"value":258},{"type":21,"tag":138,"props":12894,"children":12895},{"style":929},[12896],{"type":31,"value":12897},"reps",{"type":21,"tag":138,"props":12899,"children":12900},{"style":145},[12901],{"type":31,"value":210},{"type":21,"tag":138,"props":12903,"children":12904},{"style":213},[12905],{"type":31,"value":292},{"type":21,"tag":138,"props":12907,"children":12908},{"style":151},[12909],{"type":31,"value":258},{"type":21,"tag":138,"props":12911,"children":12912},{"style":929},[12913],{"type":31,"value":4248},{"type":21,"tag":138,"props":12915,"children":12916},{"style":145},[12917],{"type":31,"value":210},{"type":21,"tag":138,"props":12919,"children":12920},{"style":261},[12921],{"type":31,"value":12922},"\"linear\"",{"type":21,"tag":138,"props":12924,"children":12925},{"style":151},[12926],{"type":31,"value":269},{"type":21,"tag":22,"props":12928,"children":12929},{},[12930,12932,12938],{"type":31,"value":12931},"The feature map is the circuit that turns a classical data vector into a quantum state, parameterized by the data itself. ",{"type":21,"tag":103,"props":12933,"children":12935},{"className":12934},[],[12936],{"type":31,"value":12937},"zz_feature_map",{"type":31,"value":12939}," uses ZZ-interaction gates between qubits, which is a common choice specifically because it's believed hard to simulate classically for enough qubits and repetitions, the same property that would need to hold for a genuine quantum advantage to show up in the kernel's expressiveness.",{"type":21,"tag":41,"props":12941,"children":12943},{"id":12942},"building-the-quantum-kernel",[12944],{"type":31,"value":12945},"Building the quantum kernel",{"type":21,"tag":128,"props":12947,"children":12949},{"className":130,"code":12948,"language":132,"meta":7,"style":7},"from qiskit.primitives import StatevectorSampler as Sampler\nfrom qiskit_machine_learning.state_fidelities import ComputeUncompute\nfrom qiskit_machine_learning.kernels import FidelityQuantumKernel\n\nsampler = Sampler()\nfidelity = ComputeUncompute(sampler=sampler)\nkernel = FidelityQuantumKernel(fidelity=fidelity, feature_map=feature_map)\n",[12950],{"type":21,"tag":103,"props":12951,"children":12952},{"__ignoreMap":7},[12953,12982,13003,13024,13031,13047,13078],{"type":21,"tag":138,"props":12954,"children":12955},{"class":140,"line":141},[12956,12960,12964,12968,12973,12977],{"type":21,"tag":138,"props":12957,"children":12958},{"style":145},[12959],{"type":31,"value":148},{"type":21,"tag":138,"props":12961,"children":12962},{"style":151},[12963],{"type":31,"value":12426},{"type":21,"tag":138,"props":12965,"children":12966},{"style":145},[12967],{"type":31,"value":159},{"type":21,"tag":138,"props":12969,"children":12970},{"style":151},[12971],{"type":31,"value":12972}," StatevectorSampler ",{"type":21,"tag":138,"props":12974,"children":12975},{"style":145},[12976],{"type":31,"value":5356},{"type":21,"tag":138,"props":12978,"children":12979},{"style":151},[12980],{"type":31,"value":12981}," Sampler\n",{"type":21,"tag":138,"props":12983,"children":12984},{"class":140,"line":167},[12985,12989,12994,12998],{"type":21,"tag":138,"props":12986,"children":12987},{"style":145},[12988],{"type":31,"value":148},{"type":21,"tag":138,"props":12990,"children":12991},{"style":151},[12992],{"type":31,"value":12993}," qiskit_machine_learning.state_fidelities ",{"type":21,"tag":138,"props":12995,"children":12996},{"style":145},[12997],{"type":31,"value":159},{"type":21,"tag":138,"props":12999,"children":13000},{"style":151},[13001],{"type":31,"value":13002}," ComputeUncompute\n",{"type":21,"tag":138,"props":13004,"children":13005},{"class":140,"line":189},[13006,13010,13015,13019],{"type":21,"tag":138,"props":13007,"children":13008},{"style":145},[13009],{"type":31,"value":148},{"type":21,"tag":138,"props":13011,"children":13012},{"style":151},[13013],{"type":31,"value":13014}," qiskit_machine_learning.kernels ",{"type":21,"tag":138,"props":13016,"children":13017},{"style":145},[13018],{"type":31,"value":159},{"type":21,"tag":138,"props":13020,"children":13021},{"style":151},[13022],{"type":31,"value":13023}," FidelityQuantumKernel\n",{"type":21,"tag":138,"props":13025,"children":13026},{"class":140,"line":199},[13027],{"type":21,"tag":138,"props":13028,"children":13029},{"emptyLinePlaceholder":193},[13030],{"type":31,"value":196},{"type":21,"tag":138,"props":13032,"children":13033},{"class":140,"line":225},[13034,13038,13042],{"type":21,"tag":138,"props":13035,"children":13036},{"style":151},[13037],{"type":31,"value":1696},{"type":21,"tag":138,"props":13039,"children":13040},{"style":145},[13041],{"type":31,"value":210},{"type":21,"tag":138,"props":13043,"children":13044},{"style":151},[13045],{"type":31,"value":13046}," Sampler()\n",{"type":21,"tag":138,"props":13048,"children":13049},{"class":140,"line":233},[13050,13055,13059,13064,13069,13073],{"type":21,"tag":138,"props":13051,"children":13052},{"style":151},[13053],{"type":31,"value":13054},"fidelity ",{"type":21,"tag":138,"props":13056,"children":13057},{"style":145},[13058],{"type":31,"value":210},{"type":21,"tag":138,"props":13060,"children":13061},{"style":151},[13062],{"type":31,"value":13063}," ComputeUncompute(",{"type":21,"tag":138,"props":13065,"children":13066},{"style":929},[13067],{"type":31,"value":13068},"sampler",{"type":21,"tag":138,"props":13070,"children":13071},{"style":145},[13072],{"type":31,"value":210},{"type":21,"tag":138,"props":13074,"children":13075},{"style":151},[13076],{"type":31,"value":13077},"sampler)\n",{"type":21,"tag":138,"props":13079,"children":13080},{"class":140,"line":272},[13081,13086,13090,13095,13100,13104,13109,13114,13118],{"type":21,"tag":138,"props":13082,"children":13083},{"style":151},[13084],{"type":31,"value":13085},"kernel ",{"type":21,"tag":138,"props":13087,"children":13088},{"style":145},[13089],{"type":31,"value":210},{"type":21,"tag":138,"props":13091,"children":13092},{"style":151},[13093],{"type":31,"value":13094}," FidelityQuantumKernel(",{"type":21,"tag":138,"props":13096,"children":13097},{"style":929},[13098],{"type":31,"value":13099},"fidelity",{"type":21,"tag":138,"props":13101,"children":13102},{"style":145},[13103],{"type":31,"value":210},{"type":21,"tag":138,"props":13105,"children":13106},{"style":151},[13107],{"type":31,"value":13108},"fidelity, ",{"type":21,"tag":138,"props":13110,"children":13111},{"style":929},[13112],{"type":31,"value":13113},"feature_map",{"type":21,"tag":138,"props":13115,"children":13116},{"style":145},[13117],{"type":31,"value":210},{"type":21,"tag":138,"props":13119,"children":13120},{"style":151},[13121],{"type":31,"value":13122},"feature_map)\n",{"type":21,"tag":22,"props":13124,"children":13125},{},[13126,13132,13134,13140],{"type":21,"tag":103,"props":13127,"children":13129},{"className":13128},[],[13130],{"type":31,"value":13131},"ComputeUncompute",{"type":31,"value":13133}," is the mechanism that measures overlap: it runs the feature map circuit for one data point, then the inverse of the feature map circuit for the other, and the probability of landing back in the all-zero state is the fidelity between the two encoded quantum states, exactly the similarity score the kernel needs. ",{"type":21,"tag":103,"props":13135,"children":13137},{"className":13136},[],[13138],{"type":31,"value":13139},"FidelityQuantumKernel",{"type":31,"value":13141}," wraps that computation into the standard kernel interface scikit-learn expects.",{"type":21,"tag":41,"props":13143,"children":13145},{"id":13144},"plugging-into-a-classifier-two-ways",[13146],{"type":31,"value":13147},"Plugging into a classifier two ways",{"type":21,"tag":22,"props":13149,"children":13150},{},[13151,13153,13159,13161,13167],{"type":31,"value":13152},"Directly with scikit-learn's ",{"type":21,"tag":103,"props":13154,"children":13156},{"className":13155},[],[13157],{"type":31,"value":13158},"SVC",{"type":31,"value":13160},", passing the kernel's ",{"type":21,"tag":103,"props":13162,"children":13164},{"className":13163},[],[13165],{"type":31,"value":13166},"evaluate",{"type":31,"value":13168}," method as a callable kernel:",{"type":21,"tag":128,"props":13170,"children":13172},{"className":130,"code":13171,"language":132,"meta":7,"style":7},"from sklearn.svm import SVC\n\nsvc = SVC(kernel=kernel.evaluate)\nsvc.fit(train_features, train_labels)\nscore = svc.score(test_features, test_labels)\n",[13173],{"type":21,"tag":103,"props":13174,"children":13175},{"__ignoreMap":7},[13176,13197,13204,13235,13243],{"type":21,"tag":138,"props":13177,"children":13178},{"class":140,"line":141},[13179,13183,13188,13192],{"type":21,"tag":138,"props":13180,"children":13181},{"style":145},[13182],{"type":31,"value":148},{"type":21,"tag":138,"props":13184,"children":13185},{"style":151},[13186],{"type":31,"value":13187}," sklearn.svm ",{"type":21,"tag":138,"props":13189,"children":13190},{"style":145},[13191],{"type":31,"value":159},{"type":21,"tag":138,"props":13193,"children":13194},{"style":213},[13195],{"type":31,"value":13196}," SVC\n",{"type":21,"tag":138,"props":13198,"children":13199},{"class":140,"line":167},[13200],{"type":21,"tag":138,"props":13201,"children":13202},{"emptyLinePlaceholder":193},[13203],{"type":31,"value":196},{"type":21,"tag":138,"props":13205,"children":13206},{"class":140,"line":189},[13207,13212,13216,13221,13226,13230],{"type":21,"tag":138,"props":13208,"children":13209},{"style":151},[13210],{"type":31,"value":13211},"svc ",{"type":21,"tag":138,"props":13213,"children":13214},{"style":145},[13215],{"type":31,"value":210},{"type":21,"tag":138,"props":13217,"children":13218},{"style":151},[13219],{"type":31,"value":13220}," SVC(",{"type":21,"tag":138,"props":13222,"children":13223},{"style":929},[13224],{"type":31,"value":13225},"kernel",{"type":21,"tag":138,"props":13227,"children":13228},{"style":145},[13229],{"type":31,"value":210},{"type":21,"tag":138,"props":13231,"children":13232},{"style":151},[13233],{"type":31,"value":13234},"kernel.evaluate)\n",{"type":21,"tag":138,"props":13236,"children":13237},{"class":140,"line":199},[13238],{"type":21,"tag":138,"props":13239,"children":13240},{"style":151},[13241],{"type":31,"value":13242},"svc.fit(train_features, train_labels)\n",{"type":21,"tag":138,"props":13244,"children":13245},{"class":140,"line":225},[13246,13251,13255],{"type":21,"tag":138,"props":13247,"children":13248},{"style":151},[13249],{"type":31,"value":13250},"score ",{"type":21,"tag":138,"props":13252,"children":13253},{"style":145},[13254],{"type":31,"value":210},{"type":21,"tag":138,"props":13256,"children":13257},{"style":151},[13258],{"type":31,"value":13259}," svc.score(test_features, test_labels)\n",{"type":21,"tag":22,"props":13261,"children":13262},{},[13263,13265,13271],{"type":31,"value":13264},"Or with ",{"type":21,"tag":103,"props":13266,"children":13268},{"className":13267},[],[13269],{"type":31,"value":13270},"QSVC",{"type":31,"value":13272},", Qiskit Machine Learning's own wrapper that takes the kernel object directly without the callable indirection:",{"type":21,"tag":128,"props":13274,"children":13276},{"className":130,"code":13275,"language":132,"meta":7,"style":7},"from qiskit_machine_learning.algorithms import QSVC\n\nqsvc = QSVC(quantum_kernel=kernel)\nqsvc.fit(train_features, train_labels)\nqsvc_score = qsvc.score(test_features, test_labels)\n",[13277],{"type":21,"tag":103,"props":13278,"children":13279},{"__ignoreMap":7},[13280,13301,13308,13339,13347],{"type":21,"tag":138,"props":13281,"children":13282},{"class":140,"line":141},[13283,13287,13292,13296],{"type":21,"tag":138,"props":13284,"children":13285},{"style":145},[13286],{"type":31,"value":148},{"type":21,"tag":138,"props":13288,"children":13289},{"style":151},[13290],{"type":31,"value":13291}," qiskit_machine_learning.algorithms ",{"type":21,"tag":138,"props":13293,"children":13294},{"style":145},[13295],{"type":31,"value":159},{"type":21,"tag":138,"props":13297,"children":13298},{"style":213},[13299],{"type":31,"value":13300}," QSVC\n",{"type":21,"tag":138,"props":13302,"children":13303},{"class":140,"line":167},[13304],{"type":21,"tag":138,"props":13305,"children":13306},{"emptyLinePlaceholder":193},[13307],{"type":31,"value":196},{"type":21,"tag":138,"props":13309,"children":13310},{"class":140,"line":189},[13311,13316,13320,13325,13330,13334],{"type":21,"tag":138,"props":13312,"children":13313},{"style":151},[13314],{"type":31,"value":13315},"qsvc ",{"type":21,"tag":138,"props":13317,"children":13318},{"style":145},[13319],{"type":31,"value":210},{"type":21,"tag":138,"props":13321,"children":13322},{"style":151},[13323],{"type":31,"value":13324}," QSVC(",{"type":21,"tag":138,"props":13326,"children":13327},{"style":929},[13328],{"type":31,"value":13329},"quantum_kernel",{"type":21,"tag":138,"props":13331,"children":13332},{"style":145},[13333],{"type":31,"value":210},{"type":21,"tag":138,"props":13335,"children":13336},{"style":151},[13337],{"type":31,"value":13338},"kernel)\n",{"type":21,"tag":138,"props":13340,"children":13341},{"class":140,"line":199},[13342],{"type":21,"tag":138,"props":13343,"children":13344},{"style":151},[13345],{"type":31,"value":13346},"qsvc.fit(train_features, train_labels)\n",{"type":21,"tag":138,"props":13348,"children":13349},{"class":140,"line":225},[13350,13355,13359],{"type":21,"tag":138,"props":13351,"children":13352},{"style":151},[13353],{"type":31,"value":13354},"qsvc_score ",{"type":21,"tag":138,"props":13356,"children":13357},{"style":145},[13358],{"type":31,"value":210},{"type":21,"tag":138,"props":13360,"children":13361},{"style":151},[13362],{"type":31,"value":13363}," qsvc.score(test_features, test_labels)\n",{"type":21,"tag":22,"props":13365,"children":13366},{},[13367,13369,13374,13376,13382],{"type":31,"value":13368},"Both produce the same underlying computation. ",{"type":21,"tag":103,"props":13370,"children":13372},{"className":13371},[],[13373],{"type":31,"value":13270},{"type":31,"value":13375}," is the more idiomatic choice inside Qiskit Machine Learning code, while the ",{"type":21,"tag":103,"props":13377,"children":13379},{"className":13378},[],[13380],{"type":31,"value":13381},"SVC(kernel=...)",{"type":31,"value":13383}," route is useful if you're integrating a quantum kernel into an existing scikit-learn pipeline that expects a standard estimator interface.",{"type":21,"tag":41,"props":13385,"children":13387},{"id":13386},"what-made-this-work-and-what-didnt",[13388],{"type":31,"value":13389},"What made this work (and what didn't)",{"type":21,"tag":22,"props":13391,"children":13392},{},[13393,13395,13400],{"type":31,"value":13394},"Qiskit's own tutorial demonstrates this on an \"ad hoc\" dataset specifically constructed so that a quantum kernel achieves separation a classical kernel struggles with, and both approaches above score 100% on it. That result is real, but it's worth reading correctly: the dataset was designed around the feature map's structure to showcase the technique, not sampled from a real-world problem. This is the same caution our ",{"type":21,"tag":26,"props":13396,"children":13397},{"href":3150},[13398],{"type":31,"value":13399},"QML reality check",{"type":31,"value":13401}," raises about the field generally. A quantum kernel's practical advantage on genuinely hard, real-world classification tasks, where you didn't get to choose the data generation process to match the feature map, remains an open, actively studied question rather than a settled one.",{"type":21,"tag":41,"props":13403,"children":13405},{"id":13404},"where-the-cost-lives",[13406],{"type":31,"value":13407},"Where the cost lives",{"type":21,"tag":22,"props":13409,"children":13410},{},[13411],{"type":31,"value":13412},"Every kernel evaluation between two data points costs one circuit execution (state preparation plus its inverse plus measurement), and a training set of size N needs on the order of N² such evaluations to build the full kernel matrix. That's the same quadratic scaling classical kernel methods have, but each individual evaluation now costs a quantum circuit execution rather than a vector dot product, which is why quantum kernel methods are currently pragmatic for small datasets and toy problems rather than production-scale classification, the same NISQ-era constraint that shows up across most near-term QML approaches.",{"type":21,"tag":41,"props":13414,"children":13415},{"id":5913},[13416],{"type":31,"value":5916},{"type":21,"tag":1118,"props":13418,"children":13419},{},[13420,13439,13444],{"type":21,"tag":71,"props":13421,"children":13422},{},[13423,13424,13429,13431,13437],{"type":31,"value":12699},{"type":21,"tag":103,"props":13425,"children":13427},{"className":13426},[],[13428],{"type":31,"value":12937},{"type":31,"value":13430}," for a different feature map (",{"type":21,"tag":103,"props":13432,"children":13434},{"className":13433},[],[13435],{"type":31,"value":13436},"zFeatureMap",{"type":31,"value":13438},", or a custom parameterized circuit) and compare classification accuracy on the equivalent dataset, since the feature map choice is the real design decision that determines what the kernel separates well and what it doesn't.",{"type":21,"tag":71,"props":13440,"children":13441},{},[13442],{"type":31,"value":13443},"Time the kernel matrix computation as you increase the training set size, and watch the quadratic-in-N cost show up directly in wall-clock time.",{"type":21,"tag":71,"props":13445,"children":13446},{},[13447,13449,13453],{"type":31,"value":13448},"Read our ",{"type":21,"tag":26,"props":13450,"children":13451},{"href":3623},[13452],{"type":31,"value":9109},{"type":31,"value":13454}," for a different flavor of hybrid quantum-classical algorithm, one that trains circuit parameters directly rather than using a fixed circuit as a fixed kernel.",{"type":21,"tag":1174,"props":13456,"children":13457},{},[13458],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":13460},[13461,13462,13463,13464,13465,13466,13467],{"id":12809,"depth":167,"text":12812},{"id":12820,"depth":167,"text":12823},{"id":12942,"depth":167,"text":12945},{"id":13144,"depth":167,"text":13147},{"id":13386,"depth":167,"text":13389},{"id":13404,"depth":167,"text":13407},{"id":5913,"depth":167,"text":5916},"content:blog:quantum-kernel-machine-learning-qiskit.md","blog\u002Fquantum-kernel-machine-learning-qiskit.md","blog\u002Fquantum-kernel-machine-learning-qiskit",{"_path":12205,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":13472,"description":13473,"date":4484,"author":11,"tags":13474,"readingTime":272,"body":13475,"_type":1193,"_id":13888,"_source":1195,"_file":13889,"_stem":13890,"_extension":1198},"Qubit Mappers Explained: Jordan-Wigner vs. Parity vs. Bravyi-Kitaev","Why simulating a molecule needs so many qubits, and how the choice of fermion-to-qubit mapping in Qiskit Nature changes that number: Jordan-Wigner, Parity, Bravyi-Kitaev, and the symmetry reductions that shrink H2 to a single qubit.",[3497,15,14],{"type":18,"children":13476,"toc":13878},[13477,13489,13495,13500,13506,13553,13558,13564,13628,13640,13646,13651,13657,13708,13721,13727,13778,13791,13797,13809,13815,13874],{"type":21,"tag":22,"props":13478,"children":13479},{},[13480,13482,13487],{"type":31,"value":13481},"Every quantum chemistry pipeline hits the same translation problem before a single gate runs: electrons are fermions, qubits are not, and the two don't behave the same way under exchange. A fermion-to-qubit mapper is the piece of the pipeline that solves this, and which mapper you pick changes qubit count, gate locality, and how much classical pre-processing happens before touching a circuit at all. ",{"type":21,"tag":26,"props":13483,"children":13485},{"href":11858,"rel":13484},[7136],[13486],{"type":31,"value":11862},{"type":31,"value":13488}," (version 0.8) ships several.",{"type":21,"tag":41,"props":13490,"children":13492},{"id":13491},"why-fermions-need-special-handling",[13493],{"type":31,"value":13494},"Why fermions need special handling",{"type":21,"tag":22,"props":13496,"children":13497},{},[13498],{"type":31,"value":13499},"Swap two electrons and the wavefunction picks up a minus sign, the antisymmetry that underlies the Pauli exclusion principle. Qubits don't do that automatically: swapping two qubits in a circuit doesn't introduce a sign flip on its own. A mapper has to encode that antisymmetry explicitly into how fermionic creation and annihilation operators translate into Pauli operators (X, Y, Z) acting on qubits, which is a nontrivial translation, not a relabeling.",{"type":21,"tag":41,"props":13501,"children":13503},{"id":13502},"jordan-wigner-the-direct-mapping",[13504],{"type":31,"value":13505},"Jordan-Wigner: the direct mapping",{"type":21,"tag":128,"props":13507,"children":13508},{"className":130,"code":12148,"language":132,"meta":7,"style":7},[13509],{"type":21,"tag":103,"props":13510,"children":13511},{"__ignoreMap":7},[13512,13531,13538],{"type":21,"tag":138,"props":13513,"children":13514},{"class":140,"line":141},[13515,13519,13523,13527],{"type":21,"tag":138,"props":13516,"children":13517},{"style":145},[13518],{"type":31,"value":148},{"type":21,"tag":138,"props":13520,"children":13521},{"style":151},[13522],{"type":31,"value":12164},{"type":21,"tag":138,"props":13524,"children":13525},{"style":145},[13526],{"type":31,"value":159},{"type":21,"tag":138,"props":13528,"children":13529},{"style":151},[13530],{"type":31,"value":12173},{"type":21,"tag":138,"props":13532,"children":13533},{"class":140,"line":167},[13534],{"type":21,"tag":138,"props":13535,"children":13536},{"emptyLinePlaceholder":193},[13537],{"type":31,"value":196},{"type":21,"tag":138,"props":13539,"children":13540},{"class":140,"line":189},[13541,13545,13549],{"type":21,"tag":138,"props":13542,"children":13543},{"style":151},[13544],{"type":31,"value":12188},{"type":21,"tag":138,"props":13546,"children":13547},{"style":145},[13548],{"type":31,"value":210},{"type":21,"tag":138,"props":13550,"children":13551},{"style":151},[13552],{"type":31,"value":12197},{"type":21,"tag":22,"props":13554,"children":13555},{},[13556],{"type":31,"value":13557},"Jordan-Wigner is the most literal mapping: one spin-orbital maps to exactly one qubit, and the occupation of that orbital (occupied or empty) maps directly to that qubit's |1⟩ or |0⟩ state. That directness makes it the easiest mapping to reason about and debug. Its cost is locality: encoding the required antisymmetry means a fermionic operator on one orbital turns into a Pauli string spanning every qubit up to that orbital's index in the ordering, a chain of Z operators called a Jordan-Wigner string. Operators that would be local in the fermionic picture become non-local in the qubit picture, which matters directly for circuit depth on real hardware, since non-local Pauli strings need more gates to implement one way or another.",{"type":21,"tag":41,"props":13559,"children":13561},{"id":13560},"parity-trading-locality-for-a-qubit-reduction",[13562],{"type":31,"value":13563},"Parity: trading locality for a qubit reduction",{"type":21,"tag":128,"props":13565,"children":13567},{"className":130,"code":13566,"language":132,"meta":7,"style":7},"from qiskit_nature.second_q.mappers import ParityMapper\n\nmapper = ParityMapper(num_particles=problem.num_particles)\n",[13568],{"type":21,"tag":103,"props":13569,"children":13570},{"__ignoreMap":7},[13571,13591,13598],{"type":21,"tag":138,"props":13572,"children":13573},{"class":140,"line":141},[13574,13578,13582,13586],{"type":21,"tag":138,"props":13575,"children":13576},{"style":145},[13577],{"type":31,"value":148},{"type":21,"tag":138,"props":13579,"children":13580},{"style":151},[13581],{"type":31,"value":12164},{"type":21,"tag":138,"props":13583,"children":13584},{"style":145},[13585],{"type":31,"value":159},{"type":21,"tag":138,"props":13587,"children":13588},{"style":151},[13589],{"type":31,"value":13590}," ParityMapper\n",{"type":21,"tag":138,"props":13592,"children":13593},{"class":140,"line":167},[13594],{"type":21,"tag":138,"props":13595,"children":13596},{"emptyLinePlaceholder":193},[13597],{"type":31,"value":196},{"type":21,"tag":138,"props":13599,"children":13600},{"class":140,"line":189},[13601,13605,13609,13614,13619,13623],{"type":21,"tag":138,"props":13602,"children":13603},{"style":151},[13604],{"type":31,"value":12188},{"type":21,"tag":138,"props":13606,"children":13607},{"style":145},[13608],{"type":31,"value":210},{"type":21,"tag":138,"props":13610,"children":13611},{"style":151},[13612],{"type":31,"value":13613}," ParityMapper(",{"type":21,"tag":138,"props":13615,"children":13616},{"style":929},[13617],{"type":31,"value":13618},"num_particles",{"type":21,"tag":138,"props":13620,"children":13621},{"style":145},[13622],{"type":31,"value":210},{"type":21,"tag":138,"props":13624,"children":13625},{"style":151},[13626],{"type":31,"value":13627},"problem.num_particles)\n",{"type":21,"tag":22,"props":13629,"children":13630},{},[13631,13633,13638],{"type":31,"value":13632},"The parity mapping stores information differently: instead of one qubit per orbital tracking occupation directly, it encodes parity (even or odd electron count) locally on each qubit, while occupation information becomes spread across all of them. The payoff shows up when you also know the total particle quantity ahead of time, a physically reasonable thing to know for a fixed molecule, since passing ",{"type":21,"tag":103,"props":13634,"children":13636},{"className":13635},[],[13637],{"type":31,"value":13618},{"type":31,"value":13639}," lets the mapper drop two qubits that become redundant once electron-number conservation is accounted for. For a small system, two fewer qubits is a meaningful fraction of the total.",{"type":21,"tag":41,"props":13641,"children":13643},{"id":13642},"bravyi-kitaev-splitting-the-difference",[13644],{"type":31,"value":13645},"Bravyi-Kitaev: splitting the difference",{"type":21,"tag":22,"props":13647,"children":13648},{},[13649],{"type":31,"value":13650},"Jordan-Wigner keeps occupation information local but pays for it with non-local operators. Parity does the reverse. Bravyi-Kitaev sits between the two, using a tree-based encoding where both occupation and parity information are partially local, so operators typically act on O(log n) qubits instead of either the fully local (Jordan-Wigner occupation) or fully spread-out (Parity occupation) extremes. It's available in Qiskit Nature alongside the other two, and it's worth reaching for specifically when circuit depth from long Pauli strings is the bottleneck rather than raw qubit count.",{"type":21,"tag":41,"props":13652,"children":13654},{"id":13653},"squeezing-further-tapering-with-symmetries",[13655],{"type":31,"value":13656},"Squeezing further: tapering with symmetries",{"type":21,"tag":128,"props":13658,"children":13660},{"className":130,"code":13659,"language":132,"meta":7,"style":7},"from qiskit_nature.second_q.mappers import TaperedQubitMapper\n\ntapered_mapper = problem.get_tapered_mapper(mapper)\n",[13661],{"type":21,"tag":103,"props":13662,"children":13663},{"__ignoreMap":7},[13664,13684,13691],{"type":21,"tag":138,"props":13665,"children":13666},{"class":140,"line":141},[13667,13671,13675,13679],{"type":21,"tag":138,"props":13668,"children":13669},{"style":145},[13670],{"type":31,"value":148},{"type":21,"tag":138,"props":13672,"children":13673},{"style":151},[13674],{"type":31,"value":12164},{"type":21,"tag":138,"props":13676,"children":13677},{"style":145},[13678],{"type":31,"value":159},{"type":21,"tag":138,"props":13680,"children":13681},{"style":151},[13682],{"type":31,"value":13683}," TaperedQubitMapper\n",{"type":21,"tag":138,"props":13685,"children":13686},{"class":140,"line":167},[13687],{"type":21,"tag":138,"props":13688,"children":13689},{"emptyLinePlaceholder":193},[13690],{"type":31,"value":196},{"type":21,"tag":138,"props":13692,"children":13693},{"class":140,"line":189},[13694,13699,13703],{"type":21,"tag":138,"props":13695,"children":13696},{"style":151},[13697],{"type":31,"value":13698},"tapered_mapper ",{"type":21,"tag":138,"props":13700,"children":13701},{"style":145},[13702],{"type":31,"value":210},{"type":21,"tag":138,"props":13704,"children":13705},{"style":151},[13706],{"type":31,"value":13707}," problem.get_tapered_mapper(mapper)\n",{"type":21,"tag":22,"props":13709,"children":13710},{},[13711,13713,13719],{"type":31,"value":13712},"Beyond the choice of base mapping, a molecule's Hamiltonian often has Z2 symmetries, structural redundancies in how the challenge was encoded, that a ",{"type":21,"tag":103,"props":13714,"children":13716},{"className":13715},[],[13717],{"type":31,"value":13718},"TaperedQubitMapper",{"type":31,"value":13720}," identifies and removes entirely. For H₂ in a minimal basis, mapped with Parity and combined with tapering, the qubit count is reducible all the way down to a single qubit, a dramatic illustration that \"how many qubits does this molecule need\" depends heavily on encoding choices, not only on the molecule's inherent physical complexity.",{"type":21,"tag":41,"props":13722,"children":13724},{"id":13723},"qubit-ordering-matters-too",[13725],{"type":31,"value":13726},"Qubit ordering matters too",{"type":21,"tag":128,"props":13728,"children":13730},{"className":130,"code":13729,"language":132,"meta":7,"style":7},"from qiskit_nature.second_q.mappers import InterleavedQubitMapper\n\ninterleaved = InterleavedQubitMapper(mapper)\n",[13731],{"type":21,"tag":103,"props":13732,"children":13733},{"__ignoreMap":7},[13734,13754,13761],{"type":21,"tag":138,"props":13735,"children":13736},{"class":140,"line":141},[13737,13741,13745,13749],{"type":21,"tag":138,"props":13738,"children":13739},{"style":145},[13740],{"type":31,"value":148},{"type":21,"tag":138,"props":13742,"children":13743},{"style":151},[13744],{"type":31,"value":12164},{"type":21,"tag":138,"props":13746,"children":13747},{"style":145},[13748],{"type":31,"value":159},{"type":21,"tag":138,"props":13750,"children":13751},{"style":151},[13752],{"type":31,"value":13753}," InterleavedQubitMapper\n",{"type":21,"tag":138,"props":13755,"children":13756},{"class":140,"line":167},[13757],{"type":21,"tag":138,"props":13758,"children":13759},{"emptyLinePlaceholder":193},[13760],{"type":31,"value":196},{"type":21,"tag":138,"props":13762,"children":13763},{"class":140,"line":189},[13764,13769,13773],{"type":21,"tag":138,"props":13765,"children":13766},{"style":151},[13767],{"type":31,"value":13768},"interleaved ",{"type":21,"tag":138,"props":13770,"children":13771},{"style":145},[13772],{"type":31,"value":210},{"type":21,"tag":138,"props":13774,"children":13775},{"style":151},[13776],{"type":31,"value":13777}," InterleavedQubitMapper(mapper)\n",{"type":21,"tag":22,"props":13779,"children":13780},{},[13781,13783,13789],{"type":31,"value":13782},"Separately from which mapper you pick, ",{"type":21,"tag":103,"props":13784,"children":13786},{"className":13785},[],[13787],{"type":31,"value":13788},"InterleavedQubitMapper",{"type":31,"value":13790}," changes how spin-up and spin-down orbitals are arranged relative to each other, interleaved rather than the default block ordering (all spin-up orbitals, then all spin-down). Ordering doesn't change the physics, but it changes which operators end up acting on adjacent qubits, which affects how well a mapped Hamiltonian matches real hardware's connectivity graph.",{"type":21,"tag":41,"props":13792,"children":13794},{"id":13793},"the-pragmatic-decision",[13795],{"type":31,"value":13796},"The pragmatic decision",{"type":21,"tag":22,"props":13798,"children":13799},{},[13800,13802,13807],{"type":31,"value":13801},"For learning the pipeline or debugging a new problem, Jordan-Wigner's directness makes mistakes easiest to spot. Once you're optimizing for a real qubit budget or targeting real hardware with limited connectivity, Parity with particle-number reduction (and tapering, if the symmetries are there to exploit) is usually the better default, with Bravyi-Kitaev worth benchmarking specifically when circuit depth, not qubit count, is the binding constraint. None of these choices shift the underlying chemistry. They change how expensive that chemistry is to represent on a real device, which is exactly why ",{"type":21,"tag":26,"props":13803,"children":13804},{"href":11839},[13805],{"type":31,"value":13806},"molecule simulation needs so many qubits",{"type":31,"value":13808}," in the first place, and why the mapper is a real design decision rather than boilerplate.",{"type":21,"tag":41,"props":13810,"children":13812},{"id":13811},"try-this-following",[13813],{"type":31,"value":13814},"Try this following",{"type":21,"tag":1118,"props":13816,"children":13817},{},[13818,13844,13863],{"type":21,"tag":71,"props":13819,"children":13820},{},[13821,13823,13828,13829,13834,13836,13842],{"type":31,"value":13822},"Build the same H₂ Hamiltonian with ",{"type":21,"tag":103,"props":13824,"children":13826},{"className":13825},[],[13827],{"type":31,"value":12705},{"type":31,"value":3628},{"type":21,"tag":103,"props":13830,"children":13832},{"className":13831},[],[13833],{"type":31,"value":12713},{"type":31,"value":13835}," and compare ",{"type":21,"tag":103,"props":13837,"children":13839},{"className":13838},[],[13840],{"type":31,"value":13841},"mapper.map(problem.hamiltonian.second_q_op()).num_qubits",{"type":31,"value":13843}," between them directly.",{"type":21,"tag":71,"props":13845,"children":13846},{},[13847,13849,13854,13856,13861],{"type":31,"value":13848},"Apply ",{"type":21,"tag":103,"props":13850,"children":13852},{"className":13851},[],[13853],{"type":31,"value":13718},{"type":31,"value":13855}," on top of Parity for H₂ and confirm the qubit count drops to one, then check whether ",{"type":21,"tag":103,"props":13857,"children":13859},{"className":13858},[],[13860],{"type":31,"value":12364},{"type":31,"value":13862}," still returns the same ground-state energy as the untapered version.",{"type":21,"tag":71,"props":13864,"children":13865},{},[13866,13867,13872],{"type":31,"value":13448},{"type":21,"tag":26,"props":13868,"children":13869},{"href":11839},[13870],{"type":31,"value":13871},"molecule ground-state solver walkthrough",{"type":31,"value":13873}," to see a mapper plugged into a full VQE pipeline rather than examined in isolation.",{"type":21,"tag":1174,"props":13875,"children":13876},{},[13877],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":13879},[13880,13881,13882,13883,13884,13885,13886,13887],{"id":13491,"depth":167,"text":13494},{"id":13502,"depth":167,"text":13505},{"id":13560,"depth":167,"text":13563},{"id":13642,"depth":167,"text":13645},{"id":13653,"depth":167,"text":13656},{"id":13723,"depth":167,"text":13726},{"id":13793,"depth":167,"text":13796},{"id":13811,"depth":167,"text":13814},"content:blog:qubit-mappers-jordan-wigner-parity-explained.md","blog\u002Fqubit-mappers-jordan-wigner-parity-explained.md","blog\u002Fqubit-mappers-jordan-wigner-parity-explained",{"_path":11816,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":13892,"description":13893,"date":4484,"author":11,"tags":13894,"readingTime":272,"body":13896,"_type":1193,"_id":14725,"_source":1195,"_file":14726,"_stem":14727,"_extension":1198},"Randomized Benchmarking with Qiskit Experiments: Measuring Real Gate Error","How to run StandardRB and InterleavedRB in Qiskit Experiments 0.14 to measure average gate error per Clifford, and how to isolate a single gate's error from the rest of the circuit noise.",[14,13895,5986],"Performance",{"type":18,"children":13897,"toc":14716},[13898,13916,13937,13943,13948,13954,14285,14303,14309,14314,14461,14466,14472,14484,14622,14628,14641,14660,14665,14671,14676,14680,14712],{"type":21,"tag":22,"props":13899,"children":13900},{},[13901,13907,13909,13914],{"type":21,"tag":26,"props":13902,"children":13904},{"href":13903},"\u002Fblog\u002Fquantum-volume-benchmarking-tutorial",[13905],{"type":31,"value":13906},"Quantum Volume",{"type":31,"value":13908}," tells you the largest square circuit a device passes. It doesn't tell you which gate is dragging that number down. Randomized benchmarking (RB) answers a narrower, more actionable question: what's the average error per gate, and is it possible to isolate one certain gate's contribution from everything else. ",{"type":21,"tag":26,"props":13910,"children":13912},{"href":10679,"rel":13911},[7136],[13913],{"type":31,"value":10683},{"type":31,"value":13915}," (version 0.14) implements both the standard version and the interleaved variant that isolates a single gate.",{"type":21,"tag":128,"props":13917,"children":13918},{"className":4512,"code":10688,"language":4511,"meta":7,"style":7},[13919],{"type":21,"tag":103,"props":13920,"children":13921},{"__ignoreMap":7},[13922],{"type":21,"tag":138,"props":13923,"children":13924},{"class":140,"line":141},[13925,13929,13933],{"type":21,"tag":138,"props":13926,"children":13927},{"style":4522},[13928],{"type":31,"value":4525},{"type":21,"tag":138,"props":13930,"children":13931},{"style":261},[13932],{"type":31,"value":4530},{"type":21,"tag":138,"props":13934,"children":13935},{"style":261},[13936],{"type":31,"value":10708},{"type":21,"tag":41,"props":13938,"children":13940},{"id":13939},"the-idea-behind-rb",[13941],{"type":31,"value":13942},"The idea behind RB",{"type":21,"tag":22,"props":13944,"children":13945},{},[13946],{"type":31,"value":13947},"Standard RB runs sequences of random Clifford gates of increasing length, each sequence engineered so the final gate inverts everything before it, meaning a perfect, noiseless device always returns to the initial state. As sequence length grows, accumulated gate error shows up as decaying return-to-ground-state probability. Fit that decay curve, and the decay rate converts directly into an average error per Clifford gate, a single number that reflects the device's gate quality independent of any specific circuit you care about.",{"type":21,"tag":41,"props":13949,"children":13951},{"id":13950},"running-standardrb",[13952],{"type":31,"value":13953},"Running StandardRB",{"type":21,"tag":128,"props":13955,"children":13957},{"className":130,"code":13956,"language":132,"meta":7,"style":7},"import numpy as np\nfrom qiskit_experiments.library import StandardRB\nfrom qiskit_aer import AerSimulator\nfrom qiskit_aer.noise import NoiseModel, depolarizing_error\n\nlengths = [1, 10, 30, 80, 150] + np.arange(200, 1100, 200).tolist()\nnum_samples = 5\nqubits = [0]\n\nexp = StandardRB(qubits, lengths, num_samples=num_samples, seed=1010)\nexp_data = exp.run(backend).block_for_results()\n\nexp_data.analysis_results(dataframe=True)\n",[13958],{"type":21,"tag":103,"props":13959,"children":13960},{"__ignoreMap":7},[13961,13980,14000,14019,14040,14047,14142,14159,14184,14191,14239,14255,14262],{"type":21,"tag":138,"props":13962,"children":13963},{"class":140,"line":141},[13964,13968,13972,13976],{"type":21,"tag":138,"props":13965,"children":13966},{"style":145},[13967],{"type":31,"value":159},{"type":21,"tag":138,"props":13969,"children":13970},{"style":151},[13971],{"type":31,"value":8530},{"type":21,"tag":138,"props":13973,"children":13974},{"style":145},[13975],{"type":31,"value":5356},{"type":21,"tag":138,"props":13977,"children":13978},{"style":151},[13979],{"type":31,"value":8632},{"type":21,"tag":138,"props":13981,"children":13982},{"class":140,"line":167},[13983,13987,13991,13995],{"type":21,"tag":138,"props":13984,"children":13985},{"style":145},[13986],{"type":31,"value":148},{"type":21,"tag":138,"props":13988,"children":13989},{"style":151},[13990],{"type":31,"value":10854},{"type":21,"tag":138,"props":13992,"children":13993},{"style":145},[13994],{"type":31,"value":159},{"type":21,"tag":138,"props":13996,"children":13997},{"style":151},[13998],{"type":31,"value":13999}," StandardRB\n",{"type":21,"tag":138,"props":14001,"children":14002},{"class":140,"line":189},[14003,14007,14011,14015],{"type":21,"tag":138,"props":14004,"children":14005},{"style":145},[14006],{"type":31,"value":148},{"type":21,"tag":138,"props":14008,"children":14009},{"style":151},[14010],{"type":31,"value":177},{"type":21,"tag":138,"props":14012,"children":14013},{"style":145},[14014],{"type":31,"value":159},{"type":21,"tag":138,"props":14016,"children":14017},{"style":151},[14018],{"type":31,"value":186},{"type":21,"tag":138,"props":14020,"children":14021},{"class":140,"line":199},[14022,14026,14031,14035],{"type":21,"tag":138,"props":14023,"children":14024},{"style":145},[14025],{"type":31,"value":148},{"type":21,"tag":138,"props":14027,"children":14028},{"style":151},[14029],{"type":31,"value":14030}," qiskit_aer.noise ",{"type":21,"tag":138,"props":14032,"children":14033},{"style":145},[14034],{"type":31,"value":159},{"type":21,"tag":138,"props":14036,"children":14037},{"style":151},[14038],{"type":31,"value":14039}," NoiseModel, depolarizing_error\n",{"type":21,"tag":138,"props":14041,"children":14042},{"class":140,"line":225},[14043],{"type":21,"tag":138,"props":14044,"children":14045},{"emptyLinePlaceholder":193},[14046],{"type":31,"value":196},{"type":21,"tag":138,"props":14048,"children":14049},{"class":140,"line":233},[14050,14055,14059,14063,14067,14071,14076,14080,14085,14089,14094,14098,14103,14107,14111,14115,14120,14124,14129,14133,14137],{"type":21,"tag":138,"props":14051,"children":14052},{"style":151},[14053],{"type":31,"value":14054},"lengths ",{"type":21,"tag":138,"props":14056,"children":14057},{"style":145},[14058],{"type":31,"value":210},{"type":21,"tag":138,"props":14060,"children":14061},{"style":151},[14062],{"type":31,"value":8051},{"type":21,"tag":138,"props":14064,"children":14065},{"style":213},[14066],{"type":31,"value":327},{"type":21,"tag":138,"props":14068,"children":14069},{"style":151},[14070],{"type":31,"value":258},{"type":21,"tag":138,"props":14072,"children":14073},{"style":213},[14074],{"type":31,"value":14075},"10",{"type":21,"tag":138,"props":14077,"children":14078},{"style":151},[14079],{"type":31,"value":258},{"type":21,"tag":138,"props":14081,"children":14082},{"style":213},[14083],{"type":31,"value":14084},"30",{"type":21,"tag":138,"props":14086,"children":14087},{"style":151},[14088],{"type":31,"value":258},{"type":21,"tag":138,"props":14090,"children":14091},{"style":213},[14092],{"type":31,"value":14093},"80",{"type":21,"tag":138,"props":14095,"children":14096},{"style":151},[14097],{"type":31,"value":258},{"type":21,"tag":138,"props":14099,"children":14100},{"style":213},[14101],{"type":31,"value":14102},"150",{"type":21,"tag":138,"props":14104,"children":14105},{"style":151},[14106],{"type":31,"value":12583},{"type":21,"tag":138,"props":14108,"children":14109},{"style":145},[14110],{"type":31,"value":1605},{"type":21,"tag":138,"props":14112,"children":14113},{"style":151},[14114],{"type":31,"value":10887},{"type":21,"tag":138,"props":14116,"children":14117},{"style":213},[14118],{"type":31,"value":14119},"200",{"type":21,"tag":138,"props":14121,"children":14122},{"style":151},[14123],{"type":31,"value":258},{"type":21,"tag":138,"props":14125,"children":14126},{"style":213},[14127],{"type":31,"value":14128},"1100",{"type":21,"tag":138,"props":14130,"children":14131},{"style":151},[14132],{"type":31,"value":258},{"type":21,"tag":138,"props":14134,"children":14135},{"style":213},[14136],{"type":31,"value":14119},{"type":21,"tag":138,"props":14138,"children":14139},{"style":151},[14140],{"type":31,"value":14141},").tolist()\n",{"type":21,"tag":138,"props":14143,"children":14144},{"class":140,"line":272},[14145,14150,14154],{"type":21,"tag":138,"props":14146,"children":14147},{"style":151},[14148],{"type":31,"value":14149},"num_samples ",{"type":21,"tag":138,"props":14151,"children":14152},{"style":145},[14153],{"type":31,"value":210},{"type":21,"tag":138,"props":14155,"children":14156},{"style":213},[14157],{"type":31,"value":14158}," 5\n",{"type":21,"tag":138,"props":14160,"children":14161},{"class":140,"line":308},[14162,14167,14171,14175,14179],{"type":21,"tag":138,"props":14163,"children":14164},{"style":151},[14165],{"type":31,"value":14166},"qubits ",{"type":21,"tag":138,"props":14168,"children":14169},{"style":145},[14170],{"type":31,"value":210},{"type":21,"tag":138,"props":14172,"children":14173},{"style":151},[14174],{"type":31,"value":8051},{"type":21,"tag":138,"props":14176,"children":14177},{"style":213},[14178],{"type":31,"value":406},{"type":21,"tag":138,"props":14180,"children":14181},{"style":151},[14182],{"type":31,"value":14183},"]\n",{"type":21,"tag":138,"props":14185,"children":14186},{"class":140,"line":16},[14187],{"type":21,"tag":138,"props":14188,"children":14189},{"emptyLinePlaceholder":193},[14190],{"type":31,"value":196},{"type":21,"tag":138,"props":14192,"children":14193},{"class":140,"line":360},[14194,14198,14202,14207,14212,14216,14221,14226,14230,14235],{"type":21,"tag":138,"props":14195,"children":14196},{"style":151},[14197],{"type":31,"value":10926},{"type":21,"tag":138,"props":14199,"children":14200},{"style":145},[14201],{"type":31,"value":210},{"type":21,"tag":138,"props":14203,"children":14204},{"style":151},[14205],{"type":31,"value":14206}," StandardRB(qubits, lengths, ",{"type":21,"tag":138,"props":14208,"children":14209},{"style":929},[14210],{"type":31,"value":14211},"num_samples",{"type":21,"tag":138,"props":14213,"children":14214},{"style":145},[14215],{"type":31,"value":210},{"type":21,"tag":138,"props":14217,"children":14218},{"style":151},[14219],{"type":31,"value":14220},"num_samples, ",{"type":21,"tag":138,"props":14222,"children":14223},{"style":929},[14224],{"type":31,"value":14225},"seed",{"type":21,"tag":138,"props":14227,"children":14228},{"style":145},[14229],{"type":31,"value":210},{"type":21,"tag":138,"props":14231,"children":14232},{"style":213},[14233],{"type":31,"value":14234},"1010",{"type":21,"tag":138,"props":14236,"children":14237},{"style":151},[14238],{"type":31,"value":269},{"type":21,"tag":138,"props":14240,"children":14241},{"class":140,"line":368},[14242,14246,14250],{"type":21,"tag":138,"props":14243,"children":14244},{"style":151},[14245],{"type":31,"value":10986},{"type":21,"tag":138,"props":14247,"children":14248},{"style":145},[14249],{"type":31,"value":210},{"type":21,"tag":138,"props":14251,"children":14252},{"style":151},[14253],{"type":31,"value":14254}," exp.run(backend).block_for_results()\n",{"type":21,"tag":138,"props":14256,"children":14257},{"class":140,"line":377},[14258],{"type":21,"tag":138,"props":14259,"children":14260},{"emptyLinePlaceholder":193},[14261],{"type":31,"value":196},{"type":21,"tag":138,"props":14263,"children":14264},{"class":140,"line":386},[14265,14269,14273,14277,14281],{"type":21,"tag":138,"props":14266,"children":14267},{"style":151},[14268],{"type":31,"value":11017},{"type":21,"tag":138,"props":14270,"children":14271},{"style":929},[14272],{"type":31,"value":11022},{"type":21,"tag":138,"props":14274,"children":14275},{"style":145},[14276],{"type":31,"value":210},{"type":21,"tag":138,"props":14278,"children":14279},{"style":213},[14280],{"type":31,"value":8677},{"type":21,"tag":138,"props":14282,"children":14283},{"style":151},[14284],{"type":31,"value":269},{"type":21,"tag":22,"props":14286,"children":14287},{},[14288,14294,14296,14301],{"type":21,"tag":103,"props":14289,"children":14291},{"className":14290},[],[14292],{"type":31,"value":14293},"lengths",{"type":31,"value":14295}," is the set of sequence lengths to test, and ",{"type":21,"tag":103,"props":14297,"children":14299},{"className":14298},[],[14300],{"type":31,"value":14211},{"type":31,"value":14302}," is how many random sequences to generate at each length, since a single random sequence at a given length is noisy on its own and needs averaging. The results table reports both EPC (error per Clifford) and, where the analysis decomposes it, EPG (error per gate) for the specific single- and two-qubit gates involved.",{"type":21,"tag":41,"props":14304,"children":14306},{"id":14305},"isolating-one-gate-with-interleavedrb",[14307],{"type":31,"value":14308},"Isolating one gate with InterleavedRB",{"type":21,"tag":22,"props":14310,"children":14311},{},[14312],{"type":31,"value":14313},"Standard RB gives you an average across every Clifford gate the device uses. If you want to know specifically how solid the CX (CNOT) gate is, interleave it into the random sequences and compare the decay rate with and without it:",{"type":21,"tag":128,"props":14315,"children":14317},{"className":130,"code":14316,"language":132,"meta":7,"style":7},"from qiskit_experiments.library import InterleavedRB\nfrom qiskit.circuit.library import CXGate\n\nint_exp = InterleavedRB(CXGate(), qubits, lengths, num_samples=num_samples, seed=1010)\nint_exp_data = int_exp.run(backend).block_for_results()\n\nint_exp_data.analysis_results(dataframe=True)\n",[14318],{"type":21,"tag":103,"props":14319,"children":14320},{"__ignoreMap":7},[14321,14341,14361,14368,14413,14430,14437],{"type":21,"tag":138,"props":14322,"children":14323},{"class":140,"line":141},[14324,14328,14332,14336],{"type":21,"tag":138,"props":14325,"children":14326},{"style":145},[14327],{"type":31,"value":148},{"type":21,"tag":138,"props":14329,"children":14330},{"style":151},[14331],{"type":31,"value":10854},{"type":21,"tag":138,"props":14333,"children":14334},{"style":145},[14335],{"type":31,"value":159},{"type":21,"tag":138,"props":14337,"children":14338},{"style":151},[14339],{"type":31,"value":14340}," InterleavedRB\n",{"type":21,"tag":138,"props":14342,"children":14343},{"class":140,"line":167},[14344,14348,14352,14356],{"type":21,"tag":138,"props":14345,"children":14346},{"style":145},[14347],{"type":31,"value":148},{"type":21,"tag":138,"props":14349,"children":14350},{"style":151},[14351],{"type":31,"value":12842},{"type":21,"tag":138,"props":14353,"children":14354},{"style":145},[14355],{"type":31,"value":159},{"type":21,"tag":138,"props":14357,"children":14358},{"style":151},[14359],{"type":31,"value":14360}," CXGate\n",{"type":21,"tag":138,"props":14362,"children":14363},{"class":140,"line":189},[14364],{"type":21,"tag":138,"props":14365,"children":14366},{"emptyLinePlaceholder":193},[14367],{"type":31,"value":196},{"type":21,"tag":138,"props":14369,"children":14370},{"class":140,"line":199},[14371,14376,14380,14385,14389,14393,14397,14401,14405,14409],{"type":21,"tag":138,"props":14372,"children":14373},{"style":151},[14374],{"type":31,"value":14375},"int_exp ",{"type":21,"tag":138,"props":14377,"children":14378},{"style":145},[14379],{"type":31,"value":210},{"type":21,"tag":138,"props":14381,"children":14382},{"style":151},[14383],{"type":31,"value":14384}," InterleavedRB(CXGate(), qubits, lengths, ",{"type":21,"tag":138,"props":14386,"children":14387},{"style":929},[14388],{"type":31,"value":14211},{"type":21,"tag":138,"props":14390,"children":14391},{"style":145},[14392],{"type":31,"value":210},{"type":21,"tag":138,"props":14394,"children":14395},{"style":151},[14396],{"type":31,"value":14220},{"type":21,"tag":138,"props":14398,"children":14399},{"style":929},[14400],{"type":31,"value":14225},{"type":21,"tag":138,"props":14402,"children":14403},{"style":145},[14404],{"type":31,"value":210},{"type":21,"tag":138,"props":14406,"children":14407},{"style":213},[14408],{"type":31,"value":14234},{"type":21,"tag":138,"props":14410,"children":14411},{"style":151},[14412],{"type":31,"value":269},{"type":21,"tag":138,"props":14414,"children":14415},{"class":140,"line":225},[14416,14421,14425],{"type":21,"tag":138,"props":14417,"children":14418},{"style":151},[14419],{"type":31,"value":14420},"int_exp_data ",{"type":21,"tag":138,"props":14422,"children":14423},{"style":145},[14424],{"type":31,"value":210},{"type":21,"tag":138,"props":14426,"children":14427},{"style":151},[14428],{"type":31,"value":14429}," int_exp.run(backend).block_for_results()\n",{"type":21,"tag":138,"props":14431,"children":14432},{"class":140,"line":233},[14433],{"type":21,"tag":138,"props":14434,"children":14435},{"emptyLinePlaceholder":193},[14436],{"type":31,"value":196},{"type":21,"tag":138,"props":14438,"children":14439},{"class":140,"line":272},[14440,14445,14449,14453,14457],{"type":21,"tag":138,"props":14441,"children":14442},{"style":151},[14443],{"type":31,"value":14444},"int_exp_data.analysis_results(",{"type":21,"tag":138,"props":14446,"children":14447},{"style":929},[14448],{"type":31,"value":11022},{"type":21,"tag":138,"props":14450,"children":14451},{"style":145},[14452],{"type":31,"value":210},{"type":21,"tag":138,"props":14454,"children":14455},{"style":213},[14456],{"type":31,"value":8677},{"type":21,"tag":138,"props":14458,"children":14459},{"style":151},[14460],{"type":31,"value":269},{"type":21,"tag":22,"props":14462,"children":14463},{},[14464],{"type":31,"value":14465},"The interleaved variant runs two RB experiments in parallel, one standard, one with the target gate inserted between every random Clifford, and fits the ratio between their decay rates to isolate that specific gate's error. This is the number worth checking when a specific two-qubit gate is suspected of dragging down a circuit's fidelity, rather than the device's blended average.",{"type":21,"tag":41,"props":14467,"children":14469},{"id":14468},"setting-a-realistic-error-scale-for-testing",[14470],{"type":31,"value":14471},"Setting a realistic error scale for testing",{"type":21,"tag":22,"props":14473,"children":14474},{},[14475,14477,14482],{"type":31,"value":14476},"If you're testing the workflow on a simulator rather than real hardware, an ideal ",{"type":21,"tag":103,"props":14478,"children":14480},{"className":14479},[],[14481],{"type":31,"value":10725},{"type":31,"value":14483}," shows no decay at all, equivalent problem as with T1\u002FT2 measurement. Add a depolarizing noise model so there's something to fit:",{"type":21,"tag":128,"props":14485,"children":14487},{"className":130,"code":14486,"language":132,"meta":7,"style":7},"noise_model = NoiseModel()\nnoise_model.add_all_qubit_quantum_error(depolarizing_error(0.01, 1), [\"sx\", \"x\"])\nnoise_model.add_all_qubit_quantum_error(depolarizing_error(0.03, 2), [\"cx\"])\n\nbackend = AerSimulator(noise_model=noise_model)\n",[14488],{"type":21,"tag":103,"props":14489,"children":14490},{"__ignoreMap":7},[14491,14508,14552,14585,14592],{"type":21,"tag":138,"props":14492,"children":14493},{"class":140,"line":141},[14494,14499,14503],{"type":21,"tag":138,"props":14495,"children":14496},{"style":151},[14497],{"type":31,"value":14498},"noise_model ",{"type":21,"tag":138,"props":14500,"children":14501},{"style":145},[14502],{"type":31,"value":210},{"type":21,"tag":138,"props":14504,"children":14505},{"style":151},[14506],{"type":31,"value":14507}," NoiseModel()\n",{"type":21,"tag":138,"props":14509,"children":14510},{"class":140,"line":167},[14511,14516,14521,14525,14529,14534,14539,14543,14548],{"type":21,"tag":138,"props":14512,"children":14513},{"style":151},[14514],{"type":31,"value":14515},"noise_model.add_all_qubit_quantum_error(depolarizing_error(",{"type":21,"tag":138,"props":14517,"children":14518},{"style":213},[14519],{"type":31,"value":14520},"0.01",{"type":21,"tag":138,"props":14522,"children":14523},{"style":151},[14524],{"type":31,"value":258},{"type":21,"tag":138,"props":14526,"children":14527},{"style":213},[14528],{"type":31,"value":327},{"type":21,"tag":138,"props":14530,"children":14531},{"style":151},[14532],{"type":31,"value":14533},"), [",{"type":21,"tag":138,"props":14535,"children":14536},{"style":261},[14537],{"type":31,"value":14538},"\"sx\"",{"type":21,"tag":138,"props":14540,"children":14541},{"style":151},[14542],{"type":31,"value":258},{"type":21,"tag":138,"props":14544,"children":14545},{"style":261},[14546],{"type":31,"value":14547},"\"x\"",{"type":21,"tag":138,"props":14549,"children":14550},{"style":151},[14551],{"type":31,"value":598},{"type":21,"tag":138,"props":14553,"children":14554},{"class":140,"line":189},[14555,14559,14564,14568,14572,14576,14581],{"type":21,"tag":138,"props":14556,"children":14557},{"style":151},[14558],{"type":31,"value":14515},{"type":21,"tag":138,"props":14560,"children":14561},{"style":213},[14562],{"type":31,"value":14563},"0.03",{"type":21,"tag":138,"props":14565,"children":14566},{"style":151},[14567],{"type":31,"value":258},{"type":21,"tag":138,"props":14569,"children":14570},{"style":213},[14571],{"type":31,"value":292},{"type":21,"tag":138,"props":14573,"children":14574},{"style":151},[14575],{"type":31,"value":14533},{"type":21,"tag":138,"props":14577,"children":14578},{"style":261},[14579],{"type":31,"value":14580},"\"cx\"",{"type":21,"tag":138,"props":14582,"children":14583},{"style":151},[14584],{"type":31,"value":598},{"type":21,"tag":138,"props":14586,"children":14587},{"class":140,"line":199},[14588],{"type":21,"tag":138,"props":14589,"children":14590},{"emptyLinePlaceholder":193},[14591],{"type":31,"value":196},{"type":21,"tag":138,"props":14593,"children":14594},{"class":140,"line":225},[14595,14599,14603,14608,14613,14617],{"type":21,"tag":138,"props":14596,"children":14597},{"style":151},[14598],{"type":31,"value":6456},{"type":21,"tag":138,"props":14600,"children":14601},{"style":145},[14602],{"type":31,"value":210},{"type":21,"tag":138,"props":14604,"children":14605},{"style":151},[14606],{"type":31,"value":14607}," AerSimulator(",{"type":21,"tag":138,"props":14609,"children":14610},{"style":929},[14611],{"type":31,"value":14612},"noise_model",{"type":21,"tag":138,"props":14614,"children":14615},{"style":145},[14616],{"type":31,"value":210},{"type":21,"tag":138,"props":14618,"children":14619},{"style":151},[14620],{"type":31,"value":14621},"noise_model)\n",{"type":21,"tag":41,"props":14623,"children":14625},{"id":14624},"reading-the-gate_error_ratio-option",[14626],{"type":31,"value":14627},"Reading the gate_error_ratio option",{"type":21,"tag":22,"props":14629,"children":14630},{},[14631,14633,14639],{"type":31,"value":14632},"The analysis converts EPC into per-gate EPG using an assumed ratio of how much each gate type contributes to total error, configurable through ",{"type":21,"tag":103,"props":14634,"children":14636},{"className":14635},[],[14637],{"type":31,"value":14638},"gate_error_ratio",{"type":31,"value":14640},":",{"type":21,"tag":128,"props":14642,"children":14644},{"className":130,"code":14643,"language":132,"meta":7,"style":7},"print(exp.analysis.options.gate_error_ratio)\n",[14645],{"type":21,"tag":103,"props":14646,"children":14647},{"__ignoreMap":7},[14648],{"type":21,"tag":138,"props":14649,"children":14650},{"class":140,"line":141},[14651,14655],{"type":21,"tag":138,"props":14652,"children":14653},{"style":213},[14654],{"type":31,"value":954},{"type":21,"tag":138,"props":14656,"children":14657},{"style":151},[14658],{"type":31,"value":14659},"(exp.analysis.options.gate_error_ratio)\n",{"type":21,"tag":22,"props":14661,"children":14662},{},[14663],{"type":31,"value":14664},"Leaving this at its default assumes a standard mix of gate types. If your device's gate set differs meaningfully from that default assumption, the reported EPG splits are only as good as that ratio, while the overall EPC number remains solid regardless, since it comes directly from the fitted decay rate rather than from the ratio assumption.",{"type":21,"tag":41,"props":14666,"children":14668},{"id":14667},"rb-versus-quantum-volume-varied-questions",[14669],{"type":31,"value":14670},"RB versus Quantum Volume: varied questions",{"type":21,"tag":22,"props":14672,"children":14673},{},[14674],{"type":31,"value":14675},"Quantum Volume answers \"what's the largest circuit this device handles,\" folding qubit count, connectivity, and fidelity together into one pass\u002Ffail number. RB answers \"how good is a specific gate, on average, independent of circuit structure.\" Neither replaces the other: a device holds excellent RB numbers on every individual gate and a mediocre Quantum Volume if its connectivity forces expensive routing, or the reverse, decent connectivity masking a genuinely noisy two-qubit gate that only shows up once RB isolates it.",{"type":21,"tag":41,"props":14677,"children":14678},{"id":5913},[14679],{"type":31,"value":5916},{"type":21,"tag":1118,"props":14681,"children":14682},{},[14683,14695,14700],{"type":21,"tag":71,"props":14684,"children":14685},{},[14686,14687,14693],{"type":31,"value":11781},{"type":21,"tag":103,"props":14688,"children":14690},{"className":14689},[],[14691],{"type":31,"value":14692},"InterleavedRB",{"type":31,"value":14694}," on both a single-qubit gate and a two-qubit gate on the same simulated device, and compare how much higher the two-qubit EPG comes out, consistent with two-qubit gates almost always being the dominant error source on real hardware.",{"type":21,"tag":71,"props":14696,"children":14697},{},[14698],{"type":31,"value":14699},"Sweep the depolarizing error rate in the noise model and confirm the fitted EPC tracks it linearly, a useful sanity check that the fit itself is trustworthy before running against real hardware.",{"type":21,"tag":71,"props":14701,"children":14702},{},[14703,14705,14710],{"type":31,"value":14704},"Pair this with the ",{"type":21,"tag":26,"props":14706,"children":14707},{"href":13903},[14708],{"type":31,"value":14709},"Quantum Volume tutorial",{"type":31,"value":14711}," to see both benchmarks on the same simulated device and compare what each one reports.",{"type":21,"tag":1174,"props":14713,"children":14714},{},[14715],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":14717},[14718,14719,14720,14721,14722,14723,14724],{"id":13939,"depth":167,"text":13942},{"id":13950,"depth":167,"text":13953},{"id":14305,"depth":167,"text":14308},{"id":14468,"depth":167,"text":14471},{"id":14624,"depth":167,"text":14627},{"id":14667,"depth":167,"text":14670},{"id":5913,"depth":167,"text":5916},"content:blog:randomized-benchmarking-qiskit-experiments.md","blog\u002Frandomized-benchmarking-qiskit-experiments.md","blog\u002Frandomized-benchmarking-qiskit-experiments",{"_path":14729,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":14730,"description":14731,"date":4484,"author":11,"tags":14732,"readingTime":233,"body":14734,"_type":1193,"_id":14804,"_source":1195,"_file":14805,"_stem":14806,"_extension":1198},"\u002Fblog\u002Friverlane-unitary-foundation-deltakit-community-fund","Riverlane Is Paying Outside Developers to Build Its Error Correction Toolkit","Riverlane and the Unitary Foundation launched the Deltakit Community Fund, paying external contributors $2,000 to $4,000 per feature to build out Deltakit, Riverlane's open-source quantum error correction toolkit. Applications for the first cohort open August 17, 2026.",[3409,14733],"Error Correction",{"type":18,"children":14735,"toc":14798},[14736,14748,14754,14767,14773,14778,14784,14789,14793],{"type":21,"tag":22,"props":14737,"children":14738},{},[14739,14741,14746],{"type":31,"value":14740},"Riverlane and the Unitary Foundation launched the Deltakit Community Fund on July 28, 2026, a program that pays external developers $2,000 to $4,000 for building certain features into Deltakit, Riverlane's open-source ",{"type":21,"tag":26,"props":14742,"children":14743},{"href":4095},[14744],{"type":31,"value":14745},"quantum error correction",{"type":31,"value":14747}," toolkit. The fund runs on a rolling, quarterly basis, and the advisory committee starts reviewing applications for the first cohort on August 17, 2026. Two developer projects are already active as a pilot heading into the second half of 2026.",{"type":21,"tag":41,"props":14749,"children":14751},{"id":14750},"what-deltakit-is-and-who-is-behind-the-fund",[14752],{"type":31,"value":14753},"What Deltakit is and who is behind the fund",{"type":21,"tag":22,"props":14755,"children":14756},{},[14757,14759,14765],{"type":31,"value":14758},"Deltakit is Riverlane's toolkit for building production-grade error correction features, covering work like error budgeting bounds, threshold computation, and ZX graph benchmark libraries, the kind of infrastructure that sits underneath a working ",{"type":21,"tag":26,"props":14760,"children":14762},{"href":14761},"\u002Fblog\u002Fquantum-error-decoding-bottleneck",[14763],{"type":31,"value":14764},"decoder",{"type":31,"value":14766}," rather than a user-facing product. Riverlane built its reputation on real-time decoding hardware, and Deltakit is the open-source software layer around that work. The Unitary Foundation, a nonprofit focused on growing the open-source quantum ecosystem, runs the fund's application and merit review process, while Riverlane sets the technical criteria and reviews completed milestones. That split, Riverlane defining what needs building and the Unitary Foundation running the community process, is a specific division of labor rather than Riverlane simply outsourcing engineering work.",{"type":21,"tag":41,"props":14768,"children":14770},{"id":14769},"why-pay-for-open-source-contributions-in-error-correction-specifically",[14771],{"type":31,"value":14772},"Why pay for open-source contributions in error correction specifically",{"type":21,"tag":22,"props":14774,"children":14775},{},[14776],{"type":31,"value":14777},"Error correction is the part of quantum computing furthest from being a solved problem and closest to being where most near-term engineering effort goes. A functioning fault-tolerant machine needs decoders that keep pace with the hardware, and building, testing, and benchmarking that software is a large amount of unglamorous work that a single company's engineering team has limited bandwidth to cover alone. Paying $2,000 to $4,000 per feature is a modest sum next to a full-time engineering salary, but it targets small and medium-scoped pieces of work rather than open-ended research, the kind of task an outside contributor with the right specialization finishes without months of onboarding into Riverlane's internal codebase.",{"type":21,"tag":41,"props":14779,"children":14781},{"id":14780},"a-funding-model-distinct-from-a-grant-or-an-acquisition",[14782],{"type":31,"value":14783},"A funding model distinct from a grant or an acquisition",{"type":21,"tag":22,"props":14785,"children":14786},{},[14787],{"type":31,"value":14788},"This isn't a research grant with a multi-year timeline, and it isn't Riverlane hiring the contributors as employees. It's closer to a bounty program scoped around a single open-source repository, structured with milestone review rather than a lump payment on application. That model has precedent in open-source software generally, but it is a newer approach inside quantum computing specifically, where most cross-organization collaboration this site covers takes the shape of research partnerships or hardware access agreements, not paid community contributions to shared infrastructure.",{"type":21,"tag":41,"props":14790,"children":14791},{"id":3474},[14792],{"type":31,"value":3477},{"type":21,"tag":22,"props":14794,"children":14795},{},[14796],{"type":31,"value":14797},"The real test is whether the pilot's two active projects ship usable features into Deltakit, and whether the August 17 cohort review produces contributors outside Riverlane's existing network. A fund like this succeeds if it grows the pool of people who understand quantum error correction software well enough to contribute independently. It fails quietly if the same small group of already-connected developers ends up claiming most of the awards.",{"title":7,"searchDepth":167,"depth":167,"links":14799},[14800,14801,14802,14803],{"id":14750,"depth":167,"text":14753},{"id":14769,"depth":167,"text":14772},{"id":14780,"depth":167,"text":14783},{"id":3474,"depth":167,"text":3477},"content:blog:riverlane-unitary-foundation-deltakit-community-fund.md","blog\u002Friverlane-unitary-foundation-deltakit-community-fund.md","blog\u002Friverlane-unitary-foundation-deltakit-community-fund",{"_path":14808,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":14809,"description":14810,"date":4484,"author":11,"tags":14811,"readingTime":233,"body":14812,"_type":1193,"_id":15494,"_source":1195,"_file":15495,"_stem":15496,"_extension":1198},"\u002Fblog\u002Fstate-tomography-qiskit-experiments","State Tomography with Qiskit Experiments: Reconstructing What You Built","How to use StateTomography in Qiskit Experiments 0.14 to reconstruct a qubit's density matrix from measurements and compute its fidelity against the state you intended to prepare.",[14,13,5986],{"type":18,"children":14813,"toc":15485},[14814,14846,14867,14873,14886,14892,15168,15180,15186,15255,15274,15280,15285,15388,15399,15405,15417,15423,15439,15443,15481],{"type":21,"tag":22,"props":14815,"children":14816},{},[14817,14819,14823,14824,14829,14831,14836,14838,14844],{"type":31,"value":14818},"Benchmarks like ",{"type":21,"tag":26,"props":14820,"children":14821},{"href":13903},[14822],{"type":31,"value":13906},{"type":31,"value":3628},{"type":21,"tag":26,"props":14825,"children":14826},{"href":11816},[14827],{"type":31,"value":14828},"randomized benchmarking",{"type":31,"value":14830}," tell you how good a device's gates are in general. State tomography answers a narrower, circuit-specific question: for this particular circuit, what state did you prepare, and how close is it to what you intended. ",{"type":21,"tag":26,"props":14832,"children":14834},{"href":10679,"rel":14833},[7136],[14835],{"type":31,"value":10683},{"type":31,"value":14837}," (version 0.14) implements this through the ",{"type":21,"tag":103,"props":14839,"children":14841},{"className":14840},[],[14842],{"type":31,"value":14843},"StateTomography",{"type":31,"value":14845}," class.",{"type":21,"tag":128,"props":14847,"children":14848},{"className":4512,"code":10688,"language":4511,"meta":7,"style":7},[14849],{"type":21,"tag":103,"props":14850,"children":14851},{"__ignoreMap":7},[14852],{"type":21,"tag":138,"props":14853,"children":14854},{"class":140,"line":141},[14855,14859,14863],{"type":21,"tag":138,"props":14856,"children":14857},{"style":4522},[14858],{"type":31,"value":4525},{"type":21,"tag":138,"props":14860,"children":14861},{"style":261},[14862],{"type":31,"value":4530},{"type":21,"tag":138,"props":14864,"children":14865},{"style":261},[14866],{"type":31,"value":10708},{"type":21,"tag":41,"props":14868,"children":14870},{"id":14869},"why-you-cant-measure-the-state-directly",[14871],{"type":31,"value":14872},"Why you can't measure the state directly",{"type":21,"tag":22,"props":14874,"children":14875},{},[14876,14878,14884],{"type":31,"value":14877},"A single measurement collapses a qubit to a classical outcome and destroys the superposition you were trying to characterize. ",{"type":21,"tag":26,"props":14879,"children":14881},{"href":14880},"\u002Fglossary\u002Fmeasurement",[14882],{"type":31,"value":14883},"Measurement",{"type":31,"value":14885}," in the computational basis tells you populations, not phase, the equivalent limitation that makes distinguishing T1 from T2 nontrivial. Tomography works around this by preparing the equivalent state repeatedly and measuring it in different bases (X, Y, and Z), then reconstructing the full density matrix from the combined statistics rather than from any single measurement.",{"type":21,"tag":41,"props":14887,"children":14889},{"id":14888},"running-statetomography-on-a-ghz-state",[14890],{"type":31,"value":14891},"Running StateTomography on a GHZ state",{"type":21,"tag":128,"props":14893,"children":14895},{"className":130,"code":14894,"language":132,"meta":7,"style":7},"import qiskit\nfrom qiskit_experiments.library import StateTomography\nfrom qiskit_aer import AerSimulator\nfrom qiskit_ibm_runtime.fake_provider import FakePerth\n\nbackend = AerSimulator.from_backend(FakePerth())\n\nnq = 2\nqc_ghz = qiskit.QuantumCircuit(nq)\nqc_ghz.h(0)\nqc_ghz.s(0)\nfor i in range(1, nq):\n    qc_ghz.cx(0, i)\n\nexp = StateTomography(qc_ghz)\nexp_data = exp.run(backend, seed_simulation=100).block_for_results()\n",[14896],{"type":21,"tag":103,"props":14897,"children":14898},{"__ignoreMap":7},[14899,14911,14931,14950,14969,14976,14991,14998,15014,15031,15047,15063,15095,15112,15119,15135],{"type":21,"tag":138,"props":14900,"children":14901},{"class":140,"line":141},[14902,14906],{"type":21,"tag":138,"props":14903,"children":14904},{"style":145},[14905],{"type":31,"value":159},{"type":21,"tag":138,"props":14907,"children":14908},{"style":151},[14909],{"type":31,"value":14910}," qiskit\n",{"type":21,"tag":138,"props":14912,"children":14913},{"class":140,"line":167},[14914,14918,14922,14926],{"type":21,"tag":138,"props":14915,"children":14916},{"style":145},[14917],{"type":31,"value":148},{"type":21,"tag":138,"props":14919,"children":14920},{"style":151},[14921],{"type":31,"value":10854},{"type":21,"tag":138,"props":14923,"children":14924},{"style":145},[14925],{"type":31,"value":159},{"type":21,"tag":138,"props":14927,"children":14928},{"style":151},[14929],{"type":31,"value":14930}," StateTomography\n",{"type":21,"tag":138,"props":14932,"children":14933},{"class":140,"line":189},[14934,14938,14942,14946],{"type":21,"tag":138,"props":14935,"children":14936},{"style":145},[14937],{"type":31,"value":148},{"type":21,"tag":138,"props":14939,"children":14940},{"style":151},[14941],{"type":31,"value":177},{"type":21,"tag":138,"props":14943,"children":14944},{"style":145},[14945],{"type":31,"value":159},{"type":21,"tag":138,"props":14947,"children":14948},{"style":151},[14949],{"type":31,"value":186},{"type":21,"tag":138,"props":14951,"children":14952},{"class":140,"line":199},[14953,14957,14961,14965],{"type":21,"tag":138,"props":14954,"children":14955},{"style":145},[14956],{"type":31,"value":148},{"type":21,"tag":138,"props":14958,"children":14959},{"style":151},[14960],{"type":31,"value":10754},{"type":21,"tag":138,"props":14962,"children":14963},{"style":145},[14964],{"type":31,"value":159},{"type":21,"tag":138,"props":14966,"children":14967},{"style":151},[14968],{"type":31,"value":10763},{"type":21,"tag":138,"props":14970,"children":14971},{"class":140,"line":225},[14972],{"type":21,"tag":138,"props":14973,"children":14974},{"emptyLinePlaceholder":193},[14975],{"type":31,"value":196},{"type":21,"tag":138,"props":14977,"children":14978},{"class":140,"line":233},[14979,14983,14987],{"type":21,"tag":138,"props":14980,"children":14981},{"style":151},[14982],{"type":31,"value":6456},{"type":21,"tag":138,"props":14984,"children":14985},{"style":145},[14986],{"type":31,"value":210},{"type":21,"tag":138,"props":14988,"children":14989},{"style":151},[14990],{"type":31,"value":10805},{"type":21,"tag":138,"props":14992,"children":14993},{"class":140,"line":272},[14994],{"type":21,"tag":138,"props":14995,"children":14996},{"emptyLinePlaceholder":193},[14997],{"type":31,"value":196},{"type":21,"tag":138,"props":14999,"children":15000},{"class":140,"line":308},[15001,15006,15010],{"type":21,"tag":138,"props":15002,"children":15003},{"style":151},[15004],{"type":31,"value":15005},"nq ",{"type":21,"tag":138,"props":15007,"children":15008},{"style":145},[15009],{"type":31,"value":210},{"type":21,"tag":138,"props":15011,"children":15012},{"style":213},[15013],{"type":31,"value":1610},{"type":21,"tag":138,"props":15015,"children":15016},{"class":140,"line":16},[15017,15022,15026],{"type":21,"tag":138,"props":15018,"children":15019},{"style":151},[15020],{"type":31,"value":15021},"qc_ghz ",{"type":21,"tag":138,"props":15023,"children":15024},{"style":145},[15025],{"type":31,"value":210},{"type":21,"tag":138,"props":15027,"children":15028},{"style":151},[15029],{"type":31,"value":15030}," qiskit.QuantumCircuit(nq)\n",{"type":21,"tag":138,"props":15032,"children":15033},{"class":140,"line":360},[15034,15039,15043],{"type":21,"tag":138,"props":15035,"children":15036},{"style":151},[15037],{"type":31,"value":15038},"qc_ghz.h(",{"type":21,"tag":138,"props":15040,"children":15041},{"style":213},[15042],{"type":31,"value":406},{"type":21,"tag":138,"props":15044,"children":15045},{"style":151},[15046],{"type":31,"value":269},{"type":21,"tag":138,"props":15048,"children":15049},{"class":140,"line":368},[15050,15055,15059],{"type":21,"tag":138,"props":15051,"children":15052},{"style":151},[15053],{"type":31,"value":15054},"qc_ghz.s(",{"type":21,"tag":138,"props":15056,"children":15057},{"style":213},[15058],{"type":31,"value":406},{"type":21,"tag":138,"props":15060,"children":15061},{"style":151},[15062],{"type":31,"value":269},{"type":21,"tag":138,"props":15064,"children":15065},{"class":140,"line":377},[15066,15070,15074,15078,15082,15086,15090],{"type":21,"tag":138,"props":15067,"children":15068},{"style":145},[15069],{"type":31,"value":1492},{"type":21,"tag":138,"props":15071,"children":15072},{"style":151},[15073],{"type":31,"value":7421},{"type":21,"tag":138,"props":15075,"children":15076},{"style":145},[15077],{"type":31,"value":1502},{"type":21,"tag":138,"props":15079,"children":15080},{"style":213},[15081],{"type":31,"value":7430},{"type":21,"tag":138,"props":15083,"children":15084},{"style":151},[15085],{"type":31,"value":959},{"type":21,"tag":138,"props":15087,"children":15088},{"style":213},[15089],{"type":31,"value":327},{"type":21,"tag":138,"props":15091,"children":15092},{"style":151},[15093],{"type":31,"value":15094},", nq):\n",{"type":21,"tag":138,"props":15096,"children":15097},{"class":140,"line":386},[15098,15103,15107],{"type":21,"tag":138,"props":15099,"children":15100},{"style":151},[15101],{"type":31,"value":15102},"    qc_ghz.cx(",{"type":21,"tag":138,"props":15104,"children":15105},{"style":213},[15106],{"type":31,"value":406},{"type":21,"tag":138,"props":15108,"children":15109},{"style":151},[15110],{"type":31,"value":15111},", i)\n",{"type":21,"tag":138,"props":15113,"children":15114},{"class":140,"line":395},[15115],{"type":21,"tag":138,"props":15116,"children":15117},{"emptyLinePlaceholder":193},[15118],{"type":31,"value":196},{"type":21,"tag":138,"props":15120,"children":15121},{"class":140,"line":413},[15122,15126,15130],{"type":21,"tag":138,"props":15123,"children":15124},{"style":151},[15125],{"type":31,"value":10926},{"type":21,"tag":138,"props":15127,"children":15128},{"style":145},[15129],{"type":31,"value":210},{"type":21,"tag":138,"props":15131,"children":15132},{"style":151},[15133],{"type":31,"value":15134}," StateTomography(qc_ghz)\n",{"type":21,"tag":138,"props":15136,"children":15137},{"class":140,"line":12602},[15138,15142,15146,15151,15156,15160,15164],{"type":21,"tag":138,"props":15139,"children":15140},{"style":151},[15141],{"type":31,"value":10986},{"type":21,"tag":138,"props":15143,"children":15144},{"style":145},[15145],{"type":31,"value":210},{"type":21,"tag":138,"props":15147,"children":15148},{"style":151},[15149],{"type":31,"value":15150}," exp.run(backend, ",{"type":21,"tag":138,"props":15152,"children":15153},{"style":929},[15154],{"type":31,"value":15155},"seed_simulation",{"type":21,"tag":138,"props":15157,"children":15158},{"style":145},[15159],{"type":31,"value":210},{"type":21,"tag":138,"props":15161,"children":15162},{"style":213},[15163],{"type":31,"value":4918},{"type":21,"tag":138,"props":15165,"children":15166},{"style":151},[15167],{"type":31,"value":11284},{"type":21,"tag":22,"props":15169,"children":15170},{},[15171,15173,15178],{"type":31,"value":15172},"You pass the circuit you want characterized directly to ",{"type":21,"tag":103,"props":15174,"children":15176},{"className":15175},[],[15177],{"type":31,"value":14843},{"type":31,"value":15179},". The experiment handles generating the basis-rotation circuits and running all of them for you, so this one call runs several circuit variants under the hood, not only the one you passed in.",{"type":21,"tag":41,"props":15181,"children":15183},{"id":15182},"reading-the-fitted-density-matrix",[15184],{"type":31,"value":15185},"Reading the fitted density matrix",{"type":21,"tag":128,"props":15187,"children":15189},{"className":130,"code":15188,"language":132,"meta":7,"style":7},"state_result = exp_data.analysis_results(\"state\", dataframe=True).iloc[0]\nprint(state_result.value)\n",[15190],{"type":21,"tag":103,"props":15191,"children":15192},{"__ignoreMap":7},[15193,15243],{"type":21,"tag":138,"props":15194,"children":15195},{"class":140,"line":141},[15196,15201,15205,15209,15214,15218,15222,15226,15230,15235,15239],{"type":21,"tag":138,"props":15197,"children":15198},{"style":151},[15199],{"type":31,"value":15200},"state_result ",{"type":21,"tag":138,"props":15202,"children":15203},{"style":145},[15204],{"type":31,"value":210},{"type":21,"tag":138,"props":15206,"children":15207},{"style":151},[15208],{"type":31,"value":11693},{"type":21,"tag":138,"props":15210,"children":15211},{"style":261},[15212],{"type":31,"value":15213},"\"state\"",{"type":21,"tag":138,"props":15215,"children":15216},{"style":151},[15217],{"type":31,"value":258},{"type":21,"tag":138,"props":15219,"children":15220},{"style":929},[15221],{"type":31,"value":11022},{"type":21,"tag":138,"props":15223,"children":15224},{"style":145},[15225],{"type":31,"value":210},{"type":21,"tag":138,"props":15227,"children":15228},{"style":213},[15229],{"type":31,"value":8677},{"type":21,"tag":138,"props":15231,"children":15232},{"style":151},[15233],{"type":31,"value":15234},").iloc[",{"type":21,"tag":138,"props":15236,"children":15237},{"style":213},[15238],{"type":31,"value":406},{"type":21,"tag":138,"props":15240,"children":15241},{"style":151},[15242],{"type":31,"value":14183},{"type":21,"tag":138,"props":15244,"children":15245},{"class":140,"line":167},[15246,15250],{"type":21,"tag":138,"props":15247,"children":15248},{"style":213},[15249],{"type":31,"value":954},{"type":21,"tag":138,"props":15251,"children":15252},{"style":151},[15253],{"type":31,"value":15254},"(state_result.value)\n",{"type":21,"tag":22,"props":15256,"children":15257},{},[15258,15264,15266,15272],{"type":21,"tag":103,"props":15259,"children":15261},{"className":15260},[],[15262],{"type":31,"value":15263},"state_result.value",{"type":31,"value":15265}," is the fitted density matrix, a ",{"type":21,"tag":103,"props":15267,"children":15269},{"className":15268},[],[15270],{"type":31,"value":15271},"DensityMatrix",{"type":31,"value":15273}," object representing the best statistical reconstruction of what the circuit produced, noise and all, not the ideal target state.",{"type":21,"tag":41,"props":15275,"children":15277},{"id":15276},"reading-the-fidelity-number",[15278],{"type":31,"value":15279},"Reading the fidelity number",{"type":21,"tag":22,"props":15281,"children":15282},{},[15283],{"type":31,"value":15284},"The result you usually care about most is a single comparable number, not the full matrix:",{"type":21,"tag":128,"props":15286,"children":15288},{"className":130,"code":15287,"language":132,"meta":7,"style":7},"fid_result = exp_data.analysis_results(\"state_fidelity\", dataframe=True).iloc[0]\nprint(f\"State fidelity = {fid_result.value:.5f}\")\n",[15289],{"type":21,"tag":103,"props":15290,"children":15291},{"__ignoreMap":7},[15292,15341],{"type":21,"tag":138,"props":15293,"children":15294},{"class":140,"line":141},[15295,15300,15304,15308,15313,15317,15321,15325,15329,15333,15337],{"type":21,"tag":138,"props":15296,"children":15297},{"style":151},[15298],{"type":31,"value":15299},"fid_result ",{"type":21,"tag":138,"props":15301,"children":15302},{"style":145},[15303],{"type":31,"value":210},{"type":21,"tag":138,"props":15305,"children":15306},{"style":151},[15307],{"type":31,"value":11693},{"type":21,"tag":138,"props":15309,"children":15310},{"style":261},[15311],{"type":31,"value":15312},"\"state_fidelity\"",{"type":21,"tag":138,"props":15314,"children":15315},{"style":151},[15316],{"type":31,"value":258},{"type":21,"tag":138,"props":15318,"children":15319},{"style":929},[15320],{"type":31,"value":11022},{"type":21,"tag":138,"props":15322,"children":15323},{"style":145},[15324],{"type":31,"value":210},{"type":21,"tag":138,"props":15326,"children":15327},{"style":213},[15328],{"type":31,"value":8677},{"type":21,"tag":138,"props":15330,"children":15331},{"style":151},[15332],{"type":31,"value":15234},{"type":21,"tag":138,"props":15334,"children":15335},{"style":213},[15336],{"type":31,"value":406},{"type":21,"tag":138,"props":15338,"children":15339},{"style":151},[15340],{"type":31,"value":14183},{"type":21,"tag":138,"props":15342,"children":15343},{"class":140,"line":167},[15344,15348,15352,15356,15361,15365,15370,15375,15379,15384],{"type":21,"tag":138,"props":15345,"children":15346},{"style":213},[15347],{"type":31,"value":954},{"type":21,"tag":138,"props":15349,"children":15350},{"style":151},[15351],{"type":31,"value":959},{"type":21,"tag":138,"props":15353,"children":15354},{"style":145},[15355],{"type":31,"value":7537},{"type":21,"tag":138,"props":15357,"children":15358},{"style":261},[15359],{"type":31,"value":15360},"\"State fidelity = ",{"type":21,"tag":138,"props":15362,"children":15363},{"style":213},[15364],{"type":31,"value":7547},{"type":21,"tag":138,"props":15366,"children":15367},{"style":151},[15368],{"type":31,"value":15369},"fid_result.value",{"type":21,"tag":138,"props":15371,"children":15372},{"style":145},[15373],{"type":31,"value":15374},":.5f",{"type":21,"tag":138,"props":15376,"children":15377},{"style":213},[15378],{"type":31,"value":7556},{"type":21,"tag":138,"props":15380,"children":15381},{"style":261},[15382],{"type":31,"value":15383},"\"",{"type":21,"tag":138,"props":15385,"children":15386},{"style":151},[15387],{"type":31,"value":269},{"type":21,"tag":22,"props":15389,"children":15390},{},[15391,15397],{"type":21,"tag":103,"props":15392,"children":15394},{"className":15393},[],[15395],{"type":31,"value":15396},"state_fidelity",{"type":31,"value":15398}," compares the fitted density matrix against the ideal state the input circuit targets, and it's this number, not the matrix itself, that answers \"how close did the circuit come.\" A fidelity of 1.0 means the reconstructed state matches the ideal target exactly. Real hardware GHZ states typically land well below that once qubit count grows past two or three, since every additional entangling gate adds its own error contribution.",{"type":21,"tag":41,"props":15400,"children":15402},{"id":15401},"why-the-reconstructed-state-isnt-automatically-physical",[15403],{"type":31,"value":15404},"Why the reconstructed state isn't automatically physical",{"type":21,"tag":22,"props":15406,"children":15407},{},[15408,15410,15415],{"type":31,"value":15409},"Statistical noise in the measurement data means a naive reconstruction sometimes produces a matrix that isn't a valid quantum state (negative eigenvalues, for instance), an artifact of finite sampling rather than a claim about the actual physics. Qiskit Experiments' default fitter constrains the reconstruction to be a physically valid density matrix (positive semidefinite, trace one), which is why ",{"type":21,"tag":103,"props":15411,"children":15413},{"className":15412},[],[15414],{"type":31,"value":15263},{"type":31,"value":15416}," is always a legitimate quantum state even when the raw measurement counts, taken naively, wouldn't be.",{"type":21,"tag":41,"props":15418,"children":15420},{"id":15419},"when-tomography-is-and-isnt-the-right-tool",[15421],{"type":31,"value":15422},"When tomography is and isn't the right tool",{"type":21,"tag":22,"props":15424,"children":15425},{},[15426,15428,15432,15433,15437],{"type":31,"value":15427},"State tomography's cost grows fast: the number of measurement bases needed scales exponentially with qubit count, which is why it's practical for verifying a two- or three-qubit state and impractical for checking a fifty-qubit one. Reach for it when you need to confirm a specific small circuit is doing what you designed it to do, debugging a state-prep routine, verifying an entangled-state generator, checking a variational circuit's output at a fixed parameter setting. For characterizing a device's general gate quality rather than one circuit's output, ",{"type":21,"tag":26,"props":15429,"children":15430},{"href":11816},[15431],{"type":31,"value":14828},{"type":31,"value":7702},{"type":21,"tag":26,"props":15434,"children":15435},{"href":13903},[15436],{"type":31,"value":13906},{"type":31,"value":15438}," scale better and reply a more useful question for that purpose.",{"type":21,"tag":41,"props":15440,"children":15441},{"id":5913},[15442],{"type":31,"value":5916},{"type":21,"tag":1118,"props":15444,"children":15445},{},[15446,15457,15470],{"type":21,"tag":71,"props":15447,"children":15448},{},[15449,15450,15455],{"type":31,"value":11781},{"type":21,"tag":103,"props":15451,"children":15453},{"className":15452},[],[15454],{"type":31,"value":14843},{"type":31,"value":15456}," on a Bell state and a GHZ state on the same fake-backend simulator, and compare fidelities as you add qubits, watching the fidelity drop as more two-qubit gates enter the circuit.",{"type":21,"tag":71,"props":15458,"children":15459},{},[15460,15462,15468],{"type":31,"value":15461},"Swap in ",{"type":21,"tag":103,"props":15463,"children":15465},{"className":15464},[],[15466],{"type":31,"value":15467},"ProcessTomography",{"type":31,"value":15469}," from the same library to characterize a gate itself rather than a prepared state, useful for checking a custom or calibrated gate rather than a state-prep circuit.",{"type":21,"tag":71,"props":15471,"children":15472},{},[15473,15474,15479],{"type":31,"value":11804},{"type":21,"tag":26,"props":15475,"children":15477},{"href":11807,"rel":15476},[7136],[15478],{"type":31,"value":11811},{"type":31,"value":15480}," for the full verification-experiment library this and the RB post both draw from.",{"type":21,"tag":1174,"props":15482,"children":15483},{},[15484],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":15486},[15487,15488,15489,15490,15491,15492,15493],{"id":14869,"depth":167,"text":14872},{"id":14888,"depth":167,"text":14891},{"id":15182,"depth":167,"text":15185},{"id":15276,"depth":167,"text":15279},{"id":15401,"depth":167,"text":15404},{"id":15419,"depth":167,"text":15422},{"id":5913,"depth":167,"text":5916},"content:blog:state-tomography-qiskit-experiments.md","blog\u002Fstate-tomography-qiskit-experiments.md","blog\u002Fstate-tomography-qiskit-experiments",{"_path":10671,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":15498,"description":15499,"date":4484,"author":11,"tags":15500,"readingTime":272,"body":15501,"_type":1193,"_id":15641,"_source":1195,"_file":15642,"_stem":15643,"_extension":1198},"T1 vs T2: What Decays and What Dephases","T1 and T2 are both called qubit lifetimes, but they measure different physics. T1 is energy relaxation. T2 is the loss of phase information in a superposition, and it's easy to misread what that loss looks like.",[1213,15],{"type":18,"children":15502,"toc":15634},[15503,15516,15522,15527,15532,15538,15543,15548,15553,15558,15564,15569,15574,15579,15585,15590,15596,15615],{"type":21,"tag":22,"props":15504,"children":15505},{},[15506,15508,15514],{"type":31,"value":15507},"Every quantum hardware spec sheet lists ",{"type":21,"tag":26,"props":15509,"children":15511},{"href":15510},"\u002Fglossary\u002Ft1-t2-time",[15512],{"type":31,"value":15513},"T1 and T2",{"type":31,"value":15515}," following to each other, both in microseconds or milliseconds, both described loosely as \"how long the qubit lasts.\" That framing hides a real distinction. T1 and T2 measure varied physical processes, decay toward different things, and mixing them up leads to a specific, common misunderstanding about what T2 describes.",{"type":21,"tag":41,"props":15517,"children":15519},{"id":15518},"t1-energy-leaking-out",[15520],{"type":31,"value":15521},"T1: energy leaking out",{"type":21,"tag":22,"props":15523,"children":15524},{},[15525],{"type":31,"value":15526},"A qubit in the excited state |1⟩ sits at higher energy than the ground state |0⟩. Nothing holds it there forever. Given enough time, it releases that energy, usually as a stray photon into its environment, and relaxes to |0⟩. T1 is the exponential time constant of that decay: the excited-state population falls off as e^(-t\u002FT1). After one T1, roughly 37% of an ensemble prepared in |1⟩ remains there. This is energy relaxation, a qubit losing information to its surroundings the same way an excited atom eventually emits a photon and drops to its ground state.",{"type":21,"tag":22,"props":15528,"children":15529},{},[15530],{"type":31,"value":15531},"T1 is intuitive because it maps onto something familiar: a system loses energy and settles into equilibrium. The population of |1⟩ decays, |0⟩ population grows, and the process only runs one direction.",{"type":21,"tag":41,"props":15533,"children":15535},{"id":15534},"t2-not-a-flip-a-loss-of-phase",[15536],{"type":31,"value":15537},"T2: not a flip, a loss of phase",{"type":21,"tag":22,"props":15539,"children":15540},{},[15541],{"type":31,"value":15542},"T2 covers a different kind of information: not which state a qubit is in, but the phase relationship it holds while in a superposition. Take a qubit prepared as",{"type":21,"tag":22,"props":15544,"children":15545},{},[15546],{"type":31,"value":15547},"√p₀ |0⟩ + e^(iφ) √p₁ |1⟩",{"type":21,"tag":22,"props":15549,"children":15550},{},[15551],{"type":31,"value":15552},"The phase φ carries real information. It's what makes interference-based algorithms work, and it's what a Hadamard-then-Hadamard round trip depends on to cancel correctly. T2 is the timescale over which that phase becomes unrecoverable: the state doesn't stop being a superposition all at once, it gradually loses the definite relationship between its |0⟩ and |1⟩ components until φ is effectively random.",{"type":21,"tag":22,"props":15554,"children":15555},{},[15556],{"type":31,"value":15557},"In the language of density matrices, this shows up as the off-diagonal element of ρ, the coherence term, decaying: ρ₀₁(t) = ρ₀₁(0) · e^(-t\u002FT2). The diagonal elements, the populations p₀ and p₁, are what T1 governs. The off-diagonal element is what T2 governs. They're tracking varied entries in the same matrix.",{"type":21,"tag":41,"props":15559,"children":15561},{"id":15560},"the-misconception-worth-clearing-up",[15562],{"type":31,"value":15563},"The misconception worth clearing up",{"type":21,"tag":22,"props":15565,"children":15566},{},[15567],{"type":31,"value":15568},"It's tempting to picture T2 as the time it takes a qubit prepared in |+⟩ = (|0⟩ + |1⟩)\u002F√2 to flip into |−⟩ = (|0⟩ − |1⟩)\u002F√2, the orthogonal superposition state. That's not what happens, and the distinction matters.",{"type":21,"tag":22,"props":15570,"children":15571},{},[15572],{"type":31,"value":15573},"A flip from |+⟩ to |−⟩ would be a coherent, deterministic process, a rotation, the kind of thing a gate does on purpose. Dephasing isn't that. What happens instead is that the qubit's phase, averaged over repeated runs of the same preparation, becomes uncorrelated with the phase it started with. Run the experiment many times, prepare |+⟩ each time, and wait one T2: you no longer reliably measure |+⟩, but you also don't reliably measure |−⟩. Instead, the outcomes look like a 50\u002F50 classical mixture with no memory of which state you started in. T2 is an autocorrelation time, the point at which the final state stops being correlated with the initial one, not a countdown to a predictable opposite state.",{"type":21,"tag":22,"props":15575,"children":15576},{},[15577],{"type":31,"value":15578},"That distinction is why error correction is hard in the first place. If dephasing flipped |+⟩ to |−⟩ on a fixed clock, waiting out the right interval would correct for it, no error correction needed. Random loss of correlation doesn't offer that shortcut.",{"type":21,"tag":41,"props":15580,"children":15582},{"id":15581},"why-t2-is-capped-by-t1",[15583],{"type":31,"value":15584},"Why T2 is capped by T1",{"type":21,"tag":22,"props":15586,"children":15587},{},[15588],{"type":31,"value":15589},"Hardware specs consistently show T2 ≤ 2·T1, and that inequality isn't a coincidence. It's a consequence of what T1 relaxation does to phase along the way. Energy relaxation, the T1 process, also destroys phase information as a side effect: once a qubit has decayed from |1⟩ to |0⟩, any phase it was carrying relative to |1⟩ is gone too. So T2 has two contributions: relaxation-driven dephasing (bounded by 2T1) and everything else that scrambles phase without any energy loss at all, often written as pure dephasing, T_φ. The combined rate adds: 1\u002FT2 = 1\u002F(2T1) + 1\u002FT_φ. T2 never exceeds what T1 alone would allow, and in practice it's usually shorter, because pure dephasing sources, magnetic field noise, control electronics jitter, nearby two-level defects, are rarely zero.",{"type":21,"tag":41,"props":15591,"children":15593},{"id":15592},"why-the-distinction-matters-for-running-circuits",[15594],{"type":31,"value":15595},"Why the distinction matters for running circuits",{"type":21,"tag":22,"props":15597,"children":15598},{},[15599,15601,15606,15608,15613],{"type":31,"value":15600},"Both numbers cap how long a circuit runs before noise dominates the result, but they cap different kinds of computation. A circuit that only cares about final populations (a bit-flip-heavy algorithm, or a simple readout) is mostly bounded by T1. A circuit that depends on interference between branches of a superposition surviving intact, most genuinely quantum algorithms, is bounded by the shorter of the two, and T2 is usually the shorter one. ",{"type":21,"tag":26,"props":15602,"children":15603},{"href":1106},[15604],{"type":31,"value":15605},"Superconducting qubits",{"type":31,"value":15607}," typically run 50 to 500 microseconds of usable coherence. ",{"type":21,"tag":26,"props":15609,"children":15610},{"href":15510},[15611],{"type":31,"value":15612},"Trapped ions",{"type":31,"value":15614}," reach seconds to minutes, at the cost of slower gates. Either way, circuit depth is a race against whichever of T1 or T2 runs out first, and it's T2, the phase, not T1, the energy, that usually loses that race.",{"type":21,"tag":22,"props":15616,"children":15617},{},[15618,15620,15625,15627,15632],{"type":31,"value":15619},"Understanding this split also clarifies what ",{"type":21,"tag":26,"props":15621,"children":15623},{"href":15622},"\u002Fblog\u002Funderstanding-quantum-error-correction",[15624],{"type":31,"value":14745},{"type":31,"value":15626}," is fighting. A logical qubit built from many physical ones isn't trying to stop T1 and T2 decay from happening. It's trying to detect and undo the damage faster than decoherence accumulates, which is why the physical qubits underneath a fault-tolerant machine still need T1 and T2 long enough, relative to gate speed, for that detection loop to keep up. Our piece on ",{"type":21,"tag":26,"props":15628,"children":15629},{"href":4095},[15630],{"type":31,"value":15631},"logical qubits and fault tolerance",{"type":31,"value":15633}," covers what that overhead costs.",{"title":7,"searchDepth":167,"depth":167,"links":15635},[15636,15637,15638,15639,15640],{"id":15518,"depth":167,"text":15521},{"id":15534,"depth":167,"text":15537},{"id":15560,"depth":167,"text":15563},{"id":15581,"depth":167,"text":15584},{"id":15592,"depth":167,"text":15595},"content:blog:t1-vs-t2-relaxation-dephasing-explained.md","blog\u002Ft1-vs-t2-relaxation-dephasing-explained.md","blog\u002Ft1-vs-t2-relaxation-dephasing-explained",{"_path":4384,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":15645,"description":15646,"date":4484,"author":11,"tags":15647,"readingTime":233,"body":15648,"_type":1193,"_id":15735,"_source":1195,"_file":15736,"_stem":15737,"_extension":1198},"TuringQ Is Filing to Become China's First Publicly Traded Quantum Computing Company","TuringQ, a Shanghai photonic quantum chip maker, entered pre-IPO guidance for Shanghai's STAR Market in August 2026. Here is what the company has built, what the filing does and doesn't confirm, and why China's quantum sector is moving toward public markets now.",[3409,1213],{"type":18,"children":15649,"toc":15729},[15650,15655,15661,15673,15678,15684,15689,15695,15700,15713,15717],{"type":21,"tag":22,"props":15651,"children":15652},{},[15653],{"type":31,"value":15654},"TuringQ entered pre-IPO guidance for Shanghai's STAR Market in August 2026, putting it on track to become the first Chinese quantum computing firm to list on a public exchange. Guotai Haitong Securities is sponsoring the filing, and it now sits with the China Securities Regulatory Commission for review. No listing date or share price range has been set yet. What's confirmed is the company's entry into the pipeline, not a completed IPO.",{"type":21,"tag":41,"props":15656,"children":15658},{"id":15657},"what-turingq-builds",[15659],{"type":31,"value":15660},"What TuringQ builds",{"type":21,"tag":22,"props":15662,"children":15663},{},[15664,15666,15671],{"type":31,"value":15665},"TuringQ, founded in Shanghai in February 2021, makes photonic quantum chips, ",{"type":21,"tag":26,"props":15667,"children":15668},{"href":1137},[15669],{"type":31,"value":15670},"light-based processors",{"type":31,"value":15672}," that run at room temperature instead of the near-absolute-zero cooling superconducting qubits need. The company built a pilot production line in Wuxi in 2025 for wafer-scale lithium niobate photonic chip manufacturing, an existing optical-communications material and process rather than a purpose-built quantum fabrication line. That choice matters for a company chasing manufacturing scale: it borrows an established supply chain instead of building a new one from scratch.",{"type":21,"tag":22,"props":15674,"children":15675},{},[15676],{"type":31,"value":15677},"TuringQ's controlling shareholder is Shanghai Siliang Quantum Technology, holding a 34.1% stake. The business raised roughly 1 billion yuan in 2026 funding, and a Series C round in April 2026 valued it above 7 billion yuan (close to $1 billion).",{"type":21,"tag":41,"props":15679,"children":15681},{"id":15680},"why-a-star-market-listing-not-nasdaq",[15682],{"type":31,"value":15683},"Why a STAR Market listing, not Nasdaq",{"type":21,"tag":22,"props":15685,"children":15686},{},[15687],{"type":31,"value":15688},"Chinese quantum companies pursuing a US listing face a slower, more scrutinized path than they did a few years ago. The STAR Market, Shanghai's tech-focused board launched for companies not yet profitable, gives TuringQ a path to public capital without that friction. It's the same reasoning behind Chinese semiconductor and biotech firms choosing STAR Market listings over ADRs in recent years. TuringQ isn't alone in the pipeline either: Origin Quantum, Ciqtek, and QBoson are all pursuing listings of their own, which points to a coordinated push by China's quantum sector toward public markets rather than one company's individual decision.",{"type":21,"tag":41,"props":15690,"children":15692},{"id":15691},"what-the-filing-confirms-and-what-it-doesnt",[15693],{"type":31,"value":15694},"What the filing confirms and what it doesn't",{"type":21,"tag":22,"props":15696,"children":15697},{},[15698],{"type":31,"value":15699},"Confirmed: pre-IPO guidance status, the sponsoring securities firm, the exchange, and the regulatory body reviewing the application. Not yet confirmed: listing date, offering size, share price, or post-IPO valuation. Pre-IPO guidance in China's system is an early formal step, not a guarantee of a completed listing. Companies spend months or longer in this stage, and some withdraw before reaching a public offering.",{"type":21,"tag":22,"props":15701,"children":15702},{},[15703,15705,15711],{"type":31,"value":15704},"TuringQ's photonic approach puts it in the same broad architecture category as Xanadu and PsiQuantum in the US, and ",{"type":21,"tag":26,"props":15706,"children":15708},{"href":15707},"\u002Fblog\u002Foptqc-ntt-million-qubit-photonic-alliance",[15709],{"type":31,"value":15710},"OptQC in Japan",{"type":31,"value":15712},", companies betting that room-temperature operation and existing optical manufacturing infrastructure outweigh the technical hurdles photonic qubits still face around gate fidelity and loss.",{"type":21,"tag":41,"props":15714,"children":15715},{"id":3474},[15716],{"type":31,"value":3477},{"type":21,"tag":22,"props":15718,"children":15719},{},[15720,15722,15727],{"type":31,"value":15721},"The subsequent real milestone is a set listing date and offering size from the CSRC review, not further funding or valuation news. If TuringQ completes the listing, the number worth tracking afterward is real revenue disclosed in public filings, the identical standard ",{"type":21,"tag":26,"props":15723,"children":15724},{"href":3725},[15725],{"type":31,"value":15726},"this site applies",{"type":31,"value":15728}," to IonQ, Rigetti, and D-Wave, rather than the pre-IPO valuation figures already circulating.",{"title":7,"searchDepth":167,"depth":167,"links":15730},[15731,15732,15733,15734],{"id":15657,"depth":167,"text":15660},{"id":15680,"depth":167,"text":15683},{"id":15691,"depth":167,"text":15694},{"id":3474,"depth":167,"text":3477},"content:blog:turingq-china-first-quantum-ipo.md","blog\u002Fturingq-china-first-quantum-ipo.md","blog\u002Fturingq-china-first-quantum-ipo",{"_path":15739,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":15740,"description":15741,"date":4484,"author":11,"tags":15742,"readingTime":233,"body":15743,"_type":1193,"_id":15813,"_source":1195,"_file":15814,"_stem":15815,"_extension":1198},"\u002Fblog\u002Fxanadu-q2-2026-us-expansion","Xanadu Raised $67.2M Through an Equity Facility to Fund US Chip Production","Xanadu's Q2 2026 results show $312.8 million in cash, a $67.2 million draw from a Yorkville equity facility, and US headcount up more than fivefold since 2023. Here is what the funding structure means and what it doesn't guarantee.",[3409,1213],{"type":18,"children":15744,"toc":15807},[15745,15750,15756,15761,15767,15780,15786,15798,15802],{"type":21,"tag":22,"props":15746,"children":15747},{},[15748],{"type":31,"value":15749},"Xanadu reported its second quarter 2026 results on August 5, 2026, and the number drawing attention is $67.2 million raised during the quarter under a standby equity purchase agreement, not a traditional funding round. The company sold 5.5 million shares at an average net price of $12.28 to Yorkville Advisors under a facility that gives Xanadu the option, not the obligation, to sell up to $300 million in shares over three years. Xanadu ended the quarter with $312.8 million in cash.",{"type":21,"tag":41,"props":15751,"children":15753},{"id":15752},"an-equity-facility-is-not-a-funding-round",[15754],{"type":31,"value":15755},"An equity facility is not a funding round",{"type":21,"tag":22,"props":15757,"children":15758},{},[15759],{"type":31,"value":15760},"A standby equity purchase agreement works differently than a venture round or a public offering. Xanadu entered the agreement with Yorkville earlier in 2026, and the $67.2 million is one draw against it, made opportunistically based on market conditions and share price, not a single negotiated raise with a fixed amount and a lead investor. That structure gives Xanadu flexibility to sell shares when the price is favorable rather than committing to dilute at a set valuation, but it also means the $67.2 million figure reflects one quarter's usage of a facility that has $300 million of headroom left, not a one-time capital event.",{"type":21,"tag":41,"props":15762,"children":15764},{"id":15763},"where-the-cash-is-going",[15765],{"type":31,"value":15766},"Where the cash is going",{"type":21,"tag":22,"props":15768,"children":15769},{},[15770,15772,15778],{"type":31,"value":15771},"Xanadu says the proceeds fund working capital and its quantum computing technology roadmap, and the company points to two concrete uses: engineering headcount and wafer production capacity. US headcount has grown more than fivefold since 2023, with continued expansion planned before the end of 2026, concentrated in Albany, New York, where Xanadu has an existing photonic chip operation. Wafer production is the more consequential of the two. Photonic quantum computing, ",{"type":21,"tag":26,"props":15773,"children":15775},{"href":15774},"\u002Fblog\u002Fclavina-photonic-universal-gate-architecture",[15776],{"type":31,"value":15777},"the architecture Xanadu builds on",{"type":31,"value":15779},", depends on manufacturing chips at scale with consistent optical properties, and cash spent on production capacity is a direct bet on getting from lab-scale to fab-scale output.",{"type":21,"tag":41,"props":15781,"children":15783},{"id":15782},"_3128-million-buys-runway-not-results",[15784],{"type":31,"value":15785},"$312.8 million buys runway, not results",{"type":21,"tag":22,"props":15787,"children":15788},{},[15789,15791,15796],{"type":31,"value":15790},"A cash position this size, next to ",{"type":21,"tag":26,"props":15792,"children":15793},{"href":3725},[15794],{"type":31,"value":15795},"the tighter balance sheets some competitors report",{"type":31,"value":15797},", buys Xanadu time to keep building without an immediate funding crisis. It says nothing on its own about qubit count, gate fidelity, or error rates, the metrics that determine whether photonic hardware closes the gap with superconducting and trapped-ion systems. Xanadu's Q2 filing reports higher revenue and expanded US operations, both real, both worth tracking, and neither a substitute for a hardware milestone.",{"type":21,"tag":41,"props":15799,"children":15800},{"id":3474},[15801],{"type":31,"value":3477},{"type":21,"tag":22,"props":15803,"children":15804},{},[15805],{"type":31,"value":15806},"The figure that will matter more than the cash balance is wafer output from the expanded production capacity, and whether it translates into a qubit-count or fidelity announcement in the next two quarters. Funding buys the ability to build. It doesn't confirm the build works at the scale Xanadu needs.",{"title":7,"searchDepth":167,"depth":167,"links":15808},[15809,15810,15811,15812],{"id":15752,"depth":167,"text":15755},{"id":15763,"depth":167,"text":15766},{"id":15782,"depth":167,"text":15785},{"id":3474,"depth":167,"text":3477},"content:blog:xanadu-q2-2026-us-expansion.md","blog\u002Fxanadu-q2-2026-us-expansion.md","blog\u002Fxanadu-q2-2026-us-expansion",{"_path":2029,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":15817,"description":15818,"date":15819,"author":11,"tags":15820,"readingTime":272,"body":15821,"_type":1193,"_id":15922,"_source":1195,"_file":15923,"_stem":15924,"_extension":1198},"D-Wave Published a Gate-Model Result in Nature. That Is Not Its Usual Business","D-Wave, known for quantum annealing, published a peer-reviewed two-qubit entangling gate for dual-rail erasure qubits in Nature, reporting 99.9% fidelity and a roadmap toward 100 logical qubits by 2032, a real departure from its annealing hardware line.","2026-08-06",[1213,14733,3409],{"type":18,"children":15822,"toc":15914},[15823,15828,15834,15846,15852,15857,15863,15876,15882,15894,15900,15905,15909],{"type":21,"tag":22,"props":15824,"children":15825},{},[15826],{"type":31,"value":15827},"D-Wave published a peer-reviewed paper in Nature on August 6, 2026, titled \"An entangling gate for dual-rail erasure qubits,\" led by Chief Scientist Robert Schoelkopf alongside Chief Development Officer Trevor Lanting and CEO Alan Baratz. The result itself is a two-qubit entangling gate for superconducting dual-rail cavity qubits. The more consequential fact is what kind of hardware it is built on: not the quantum annealing systems D-Wave has sold commercially for over a decade, but a gate-model architecture aimed squarely at fault-tolerant computation.",{"type":21,"tag":41,"props":15829,"children":15831},{"id":15830},"what-a-dual-rail-erasure-qubit-changes",[15832],{"type":31,"value":15833},"What a dual-rail erasure qubit changes",{"type":21,"tag":22,"props":15835,"children":15836},{},[15837,15839,15844],{"type":31,"value":15838},"Most superconducting qubit errors show up as bit-flips or phase-flips at unknown times and unknown locations, which is what makes standard ",{"type":21,"tag":26,"props":15840,"children":15842},{"href":15841},"\u002Fglossary\u002Fquantum-error-correction",[15843],{"type":31,"value":14745},{"type":31,"value":15845}," expensive: the decoder has to identify the error before fixing it. A dual-rail erasure qubit is built so that when a photon is lost, the dominant failure mode in this architecture, the loss converts into a detectable erasure error at a known location in space and time, rather than a silent, unlocated bit-flip. Knowing where and when an error happened is a fundamentally easier correction problem than inferring it, which is the engineering bet behind this qubit type, independent of who is building it.",{"type":21,"tag":41,"props":15847,"children":15849},{"id":15848},"the-numbers-behind-the-claim",[15850],{"type":31,"value":15851},"The numbers behind the claim",{"type":21,"tag":22,"props":15853,"children":15854},{},[15855],{"type":31,"value":15856},"The published gate runs in about 500 nanoseconds with an overall fidelity near 99.9%, an erasure rate around 0.5% per gate, and post-selected residual Pauli errors below 0.1%. D-Wave also reports bit-flip error suppression down to the 10⁻⁶ level and an error-reduction factor of roughly 10 per increment of code distance. That last figure is the one worth watching independently of the rest: a 10x reduction per code-distance step, if it holds as the system scales, is the kind of favorable scaling that makes a fault-tolerant roadmap plausible rather than aspirational. It is also, so far, a result from one paper, not yet reproduced by an outside group.",{"type":21,"tag":41,"props":15858,"children":15860},{"id":15859},"the-roadmap-attached-to-it",[15861],{"type":31,"value":15862},"The roadmap attached to it",{"type":21,"tag":22,"props":15864,"children":15865},{},[15866,15868,15874],{"type":31,"value":15867},"D-Wave laid out specific, dated intermediate systems: a 17-physical-qubit DR17 system in 2026 with roughly 2x logical error reduction, a 49-qubit DR49 system in 2027 at roughly 20x, a 181-qubit DR181 system in 2028 targeting roughly 2,000x error suppression, a 10-",{"type":21,"tag":26,"props":15869,"children":15871},{"href":15870},"\u002Fglossary\u002Flogical-qubit",[15872],{"type":31,"value":15873},"logical-qubit",{"type":31,"value":15875}," system by 2030, and a 100-logical-qubit system by 2032 capable of over a million logical operations for quantum chemistry, materials science, and quantum AI workloads. Naming specific qubit counts and error-suppression targets per year, rather than a single distant milestone, gives outside observers something concrete to verify the company against as each date arrives, which is more than most fault-tolerance roadmaps offer.",{"type":21,"tag":41,"props":15877,"children":15879},{"id":15878},"why-this-matters-coming-from-d-wave-specifically",[15880],{"type":31,"value":15881},"Why this matters coming from D-Wave specifically",{"type":21,"tag":22,"props":15883,"children":15884},{},[15885,15887,15892],{"type":31,"value":15886},"D-Wave's entire commercial identity, and the ",{"type":21,"tag":26,"props":15888,"children":15889},{"href":3725},[15890],{"type":31,"value":15891},"bookings growth covered in our top companies ranking",{"type":31,"value":15893},", rests on quantum annealing: optimization problems solved through an entirely different physical mechanism than the universal gate-model computation this dual-rail work targets. A Nature paper on a gate-model qubit architecture is D-Wave placing a second, structurally varied bet alongside its annealing business rather than doubling down on it, similar in spirit to how IonQ diversified into silicon photonics manufacturing through its SkyWater acquisition. It is a hedge against the possibility that annealing alone does not reach the fault-tolerant, general-purpose computation that chemistry and materials science applications eventually need.",{"type":21,"tag":41,"props":15895,"children":15897},{"id":15896},"what-is-still-unverified",[15898],{"type":31,"value":15899},"What is still unverified",{"type":21,"tag":22,"props":15901,"children":15902},{},[15903],{"type":31,"value":15904},"The fidelity, erasure-rate, and error-suppression numbers are D-Wave's own reported results from its own paper, peer-reviewed but not yet reproduced by an independent lab, the same caveat that applies to most vendor-reported hardware milestones covered on this site. The 2032 roadmap is a target, not a result, and D-Wave's own 2026-2028 intermediate milestones are the nearest, most checkable test of whether the scaling trend in the Nature paper holds up as physical qubit count grows.",{"type":21,"tag":41,"props":15906,"children":15907},{"id":3474},[15908],{"type":31,"value":3477},{"type":21,"tag":22,"props":15910,"children":15911},{},[15912],{"type":31,"value":15913},"DR17, the first named milestone, is dated for this year. Whether D-Wave ships it on schedule, and whether the reported error reduction lands near the claimed 2x, is the first real checkpoint against this roadmap, well before the 2032 target is close enough to matter.",{"title":7,"searchDepth":167,"depth":167,"links":15915},[15916,15917,15918,15919,15920,15921],{"id":15830,"depth":167,"text":15833},{"id":15848,"depth":167,"text":15851},{"id":15859,"depth":167,"text":15862},{"id":15878,"depth":167,"text":15881},{"id":15896,"depth":167,"text":15899},{"id":3474,"depth":167,"text":3477},"content:blog:dwave-dual-rail-erasure-qubit-gate-nature.md","blog\u002Fdwave-dual-rail-erasure-qubit-gate-nature.md","blog\u002Fdwave-dual-rail-erasure-qubit-gate-nature",{"_path":4253,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":15926,"description":15927,"date":15819,"author":11,"tags":15928,"readingTime":233,"body":15929,"_type":1193,"_id":16015,"_source":1195,"_file":16016,"_stem":16017,"_extension":1198},"NIST Kept Two Photons Entangled Across 62 km of Ordinary Commercial Fiber for 20 Hours","NIST, the University of Maryland, and Qunnect distributed polarization-entangled photons over 62 kilometers of live, partially aerial commercial fiber between Gaithersburg and College Park, sustaining a Bell inequality violation for over 20 consecutive hours.",[1213,3409],{"type":18,"children":15930,"toc":16008},[15931,15936,15942,15953,15959,15964,15968,15973,15979,15992,15996],{"type":21,"tag":22,"props":15932,"children":15933},{},[15934],{"type":31,"value":15935},"NIST, the University of Maryland, and Qunnect published results on August 6, 2026, describing a 62-kilometer entanglement distribution experiment run over live commercial telecommunications fiber connecting NIST's Gaithersburg campus to UMD's College Park campus. The result that separates this from a typical lab demonstration is durability, not distance: the setup sustained a Bell inequality violation for more than 20 consecutive hours during a 24-hour continuous stress test, on fiber that was partially aerial and exposed to wind, traffic vibration, and temperature swings the whole time.",{"type":21,"tag":41,"props":15937,"children":15939},{"id":15938},"why-aerial-commercial-fiber-is-the-harder-problem",[15940],{"type":31,"value":15941},"Why aerial commercial fiber is the harder problem",{"type":21,"tag":22,"props":15943,"children":15944},{},[15945,15947,15951],{"type":31,"value":15946},"Most published ",{"type":21,"tag":26,"props":15948,"children":15949},{"href":1156},[15950],{"type":31,"value":4248},{"type":31,"value":15952}," distribution records come from dedicated, environmentally shielded fiber, often buried and purpose-built for the experiment. That is not what most real metropolitan networks look like. Commercial fiber includes aerial spans strung on poles, subject to wind sway and thermal expansion, both of which scramble the polarization state that carries the quantum information. A photon that survives 62 km of buried, temperature-stable fiber is a different achievement than one that survives 62 km of fiber swinging in the wind next to a road. This experiment ran on the second, harder kind.",{"type":21,"tag":41,"props":15954,"children":15956},{"id":15955},"the-engineering-that-made-it-hold-up",[15957],{"type":31,"value":15958},"The engineering that made it hold up",{"type":21,"tag":22,"props":15960,"children":15961},{},[15962],{"type":31,"value":15963},"The team generated entangled signal and idler photon pairs at NIST Gaithersburg, sending the idler photon to a receiver and time-tagging unit at UMD while keeping a polarization analyzer for the signal photon at the source, with a parallel optical link for timing synchronization. The part responsible for the 20-hour stability is Qunnect's automated polarization compensation (APC) hardware, which multiplexes a reference light beam through the equivalent fiber to continuously measure polarization drift and apply a correcting inverse transformation in real time. Without that active correction, aerial fiber's constant polarization drift would degrade entanglement fidelity well before 20 hours.",{"type":21,"tag":41,"props":15965,"children":15966},{"id":3733},[15967],{"type":31,"value":3736},{"type":21,"tag":22,"props":15969,"children":15970},{},[15971],{"type":31,"value":15972},"The system distributed entangled photon pairs at approximately 1,500 pairs per second, with 92.8% operational uptime, meaning only 7.2% of the run went to active recalibration rather than photon transmission. The CHSH Bell inequality parameter measured S = 2.45 ± 0.08, comfortably above the classical threshold of S ≤ 2 that separates genuine quantum entanglement from anything a classical system reproduces, and that separation held for the entire 20-plus-hour window, not a brief peak measurement.",{"type":21,"tag":41,"props":15974,"children":15976},{"id":15975},"what-this-validates-and-what-it-does-not",[15977],{"type":31,"value":15978},"What this validates, and what it does not",{"type":21,"tag":22,"props":15980,"children":15981},{},[15982,15984,15990],{"type":31,"value":15983},"The result is evidence that metropolitan-scale quantum networks, QKD channels, and distributed quantum computing interconnects are deployable on existing, unshielded commercial fiber, without requiring new underground infrastructure built specifically for quantum signals. That is a meaningfully different claim from showing entanglement is possible over 62 km in principle, which has been demonstrated before under more controlled conditions. It is not, on its own, a demonstration of a working QKD system or a distributed computing link. Entanglement distribution is the underlying primitive those applications need, not the finished application itself, similar to how ",{"type":21,"tag":26,"props":15985,"children":15987},{"href":15986},"\u002Fblog\u002Fquantum-corridor-ciena-toshiba-quantum-safe-fiber",[15988],{"type":31,"value":15989},"Quantum Corridor, Ciena, and Toshiba's live PQC-plus-QKD trial",{"type":31,"value":15991}," demonstrated encryption at commercial speed on production fiber a day earlier without claiming to have solved every part of quantum-safe networking at once.",{"type":21,"tag":41,"props":15993,"children":15994},{"id":3474},[15995],{"type":31,"value":3477},{"type":21,"tag":22,"props":15997,"children":15998},{},[15999,16001,16006],{"type":31,"value":16000},"The test for this result is whether Qunnect's polarization-compensation approach gets deployed on a fiber route carrying live QKD or distributed quantum computing traffic, rather than staying a research demonstration between two university campuses. Our ",{"type":21,"tag":26,"props":16002,"children":16003},{"href":1137},[16004],{"type":31,"value":16005},"quantum networking piece",{"type":31,"value":16007}," covers how entanglement distribution, QKD, and distributed quantum computing interconnects fit together as separate but related pieces of the same infrastructure problem.",{"title":7,"searchDepth":167,"depth":167,"links":16009},[16010,16011,16012,16013,16014],{"id":15938,"depth":167,"text":15941},{"id":15955,"depth":167,"text":15958},{"id":3733,"depth":167,"text":3736},{"id":15975,"depth":167,"text":15978},{"id":3474,"depth":167,"text":3477},"content:blog:nist-umd-qunnect-62km-entanglement-metro-fiber.md","blog\u002Fnist-umd-qunnect-62km-entanglement-metro-fiber.md","blog\u002Fnist-umd-qunnect-62km-entanglement-metro-fiber",{"_path":15774,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":16019,"description":16020,"date":16021,"author":11,"tags":16022,"readingTime":233,"body":16023,"_type":1193,"_id":16112,"_source":1195,"_file":16113,"_stem":16114,"_extension":1198},"Researchers Built a Photonic Chip That Finally Combines Linear Optics With Real Nonlinear Gates","Imperial College London and the University of Hong Kong, working with HeliQ Standard CompuTech, built Clavina, a modular photonic architecture that pairs linear optical networks with integrated nonlinear modules to support a universal quantum gate set.","2026-08-05",[1213,3409],{"type":18,"children":16024,"toc":16105},[16025,16030,16036,16049,16055,16060,16066,16078,16084,16096,16100],{"type":21,"tag":22,"props":16026,"children":16027},{},[16028],{"type":31,"value":16029},"A research team from Imperial College London and the University of Hong Kong, working with HeliQ Standard CompuTech Co., Ltd in Hangzhou, published results on August 3, 2026, describing a photonic architecture called Clavina. The name is a nod to classical integrated-circuit design, and the goal behind it is the same: a photonic chip built to be extended module by module rather than redesigned from scratch every time a new capability gets added. Worth noting up front, since coverage elsewhere has blurred this: Clavina is a research architecture from an academic and industry collaboration, not a product from a company called \"Extensible Photonics.\"",{"type":21,"tag":41,"props":16031,"children":16033},{"id":16032},"the-gap-this-closes",[16034],{"type":31,"value":16035},"The gap this closes",{"type":21,"tag":22,"props":16037,"children":16038},{},[16039,16041,16047],{"type":31,"value":16040},"Photonic quantum computing has a structural problem that trapped-ion and superconducting approaches do not share. Linear optical circuits, beam splitters, phase shifters, and the like are relatively easy to build and scale, but on their own they cannot produce a universal ",{"type":21,"tag":26,"props":16042,"children":16044},{"href":16043},"\u002Fglossary\u002Fquantum-gate",[16045],{"type":31,"value":16046},"quantum gate",{"type":31,"value":16048}," set. Universal computation on photons needs a nonlinear resource, some interaction that behaves differently depending on how many photons pass through it, and integrating that nonlinearity into a scalable circuit alongside linear optics has been the field's persistent bottleneck. Clavina's contribution is a design that keeps the linear network scalable while adding nonlinear modules, inline squeezers and Kerr gates, as plug-in components managed by a central quantum photonic control unit that handles phase control and synchronization.",{"type":21,"tag":41,"props":16050,"children":16052},{"id":16051},"what-temporal-multiplexing-buys",[16053],{"type":31,"value":16054},"What temporal multiplexing buys",{"type":21,"tag":22,"props":16056,"children":16057},{},[16058],{"type":31,"value":16059},"Rather than requiring one spatial mode (one physical path) per qubit, Clavina encodes information using temporal multiplexing within single spatial modes. That is a scaling choice: it reduces how much physical hardware, waveguides, detectors, control lines, needs to grow as qubit count grows, which is the same kind of overhead problem that superconducting and trapped-ion architectures are also fighting from varied angles.",{"type":21,"tag":41,"props":16061,"children":16063},{"id":16062},"two-things-it-now-does",[16064],{"type":31,"value":16065},"Two things it now does",{"type":21,"tag":22,"props":16067,"children":16068},{},[16069,16071,16076],{"type":31,"value":16070},"The team demonstrated quasi-deterministic generation of Gottesman-Kitaev-Preskill (GKP) states, a bosonic encoding used for ",{"type":21,"tag":26,"props":16072,"children":16073},{"href":15841},[16074],{"type":31,"value":16075},"error correction",{"type":31,"value":16077}," in photonic systems, previously produced only probabilistically and therefore unreliably. They also simulated the Bose-Hubbard model, a standard test case for quantum dynamics that linear-only photonic hardware never reached. Both results are demonstrations of what the architecture now does, not yet a computation that outperforms a classical method on a problem that matters commercially.",{"type":21,"tag":41,"props":16079,"children":16081},{"id":16080},"read-the-claim-at-the-right-altitude",[16082],{"type":31,"value":16083},"Read the claim at the right altitude",{"type":21,"tag":22,"props":16085,"children":16086},{},[16087,16089,16094],{"type":31,"value":16088},"\"Establishes a viable route towards photonic quantum simulation and fault-tolerant quantum computing\" is the paper's own framing, and it is a reasonable one for what a first working integration of linear and nonlinear photonic resources represents. It is not evidence that photonic hardware has closed the gap with trapped-ion or superconducting qubit counts, and GKP state generation plus a Bose-Hubbard simulation are proof-of-concept results, not a benchmark against a specific application. Our ",{"type":21,"tag":26,"props":16090,"children":16091},{"href":1106},[16092],{"type":31,"value":16093},"hardware overview",{"type":31,"value":16095}," covers where photonic approaches, including Xanadu's and PsiQuantum's, currently stand against the rest of the field.",{"type":21,"tag":41,"props":16097,"children":16098},{"id":3474},[16099],{"type":31,"value":3477},{"type":21,"tag":22,"props":16101,"children":16102},{},[16103],{"type":31,"value":16104},"The next milestone to seem for is Clavina, or a successor built on the same modular approach, running a circuit deep enough to need multiple chained nonlinear operations rather than one demonstration gate at a time. That is the test of whether the plug-in module design scales the way the architecture is meant to, rather than working once in a lab setup built around a single result.",{"title":7,"searchDepth":167,"depth":167,"links":16106},[16107,16108,16109,16110,16111],{"id":16032,"depth":167,"text":16035},{"id":16051,"depth":167,"text":16054},{"id":16062,"depth":167,"text":16065},{"id":16080,"depth":167,"text":16083},{"id":3474,"depth":167,"text":3477},"content:blog:clavina-photonic-universal-gate-architecture.md","blog\u002Fclavina-photonic-universal-gate-architecture.md","blog\u002Fclavina-photonic-universal-gate-architecture",{"_path":4445,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":16116,"description":16117,"date":16021,"author":11,"tags":16118,"readingTime":368,"body":16119,"_type":1193,"_id":16320,"_source":1195,"_file":16321,"_stem":16322,"_extension":1198},"Who Is Using Quantum Computers Right Now, By Industry","Not the vendors building quantum hardware, the customers running real workloads on it. A grounded look at which banks, automakers, aerospace firms, pharma companies, and energy utilities have quantum computing pilots or partnerships, and how far each one has gotten.",[3409,10549],{"type":18,"children":16120,"toc":16310},[16121,16133,16138,16144,16179,16185,16197,16203,16223,16229,16234,16240,16245,16256,16262,16267,16273,16291,16297],{"type":21,"tag":22,"props":16122,"children":16123},{},[16124,16126,16131],{"type":31,"value":16125},"Most coverage of quantum computing, including a lot of what runs on this site, tracks the companies building the hardware: IBM, IonQ, Quantinuum, D-Wave, and the rest of the field our ",{"type":21,"tag":26,"props":16127,"children":16128},{"href":3725},[16129],{"type":31,"value":16130},"top companies ranking",{"type":31,"value":16132}," covers. That is one half of the industry. The other half is the customers, banks, automakers, aerospace manufacturers, drug companies, and utilities paying for hardware access or running joint research, and that side gets covered less carefully, usually as a single line in a provider press release. This piece flips the lens: which companies outside the quantum industry itself are running workloads on quantum hardware, in which verticals, and how far each effort has gotten past the pilot stage.",{"type":21,"tag":22,"props":16134,"children":16135},{},[16136],{"type":31,"value":16137},"The honest framing up front: most of what follows is a pilot, a proof-of-concept, or a research partnership, not a production system replacing a classical one. That is not a criticism of the field. It is the accurate description of where quantum computing sits against most commercial workloads in 2026, and treating a pilot as a deployment is the single most common way quantum coverage overstates itself. Telecom, below, is the one vertical with a documented exception worth reading closely for exactly that reason.",{"type":21,"tag":41,"props":16139,"children":16141},{"id":16140},"finance-fraud-detection-portfolio-risk-and-derivatives-pricing",[16142],{"type":31,"value":16143},"Finance: fraud detection, portfolio risk, and derivatives pricing",{"type":21,"tag":22,"props":16145,"children":16146},{},[16147,16149,16153,16155,16161,16163,16169,16171,16177],{"type":31,"value":16148},"Banking has more active quantum pilots than any other vertical, largely because two of its core problems, portfolio optimization and Monte Carlo-style risk simulation, map naturally onto both quantum annealing and gate-model algorithms like ",{"type":21,"tag":26,"props":16150,"children":16151},{"href":2045},[16152],{"type":31,"value":2048},{"type":31,"value":16154},". D-Wave's new partnership with Nasdaq Verafin, ",{"type":21,"tag":26,"props":16156,"children":16158},{"href":16157},"\u002Fblog\u002Fdwave-nasdaq-verafin-financial-crime-detection",[16159],{"type":31,"value":16160},"covered here",{"type":31,"value":16162},", targets anti-money-laundering pattern detection across a customer base of over 2,800 financial institutions, still at the proof-of-concept stage. Quantinuum and SoftBank's ",{"type":21,"tag":26,"props":16164,"children":16166},{"href":16165},"\u002Fblog\u002Fquantinuum-softbank-white-paper-quantum-value",[16167],{"type":31,"value":16168},"joint white paper",{"type":31,"value":16170}," names telecommunications fraud detection as a graph-analytics use case SoftBank is actively researching on Quantinuum hardware. Our ",{"type":21,"tag":26,"props":16172,"children":16174},{"href":16173},"\u002Fblog\u002Fquantum-portfolio-optimization-business-case",[16175],{"type":31,"value":16176},"portfolio optimization business case",{"type":31,"value":16178}," covers why the same combinatorial structure that makes fraud networks a quantum target also makes portfolio rebalancing one. What is missing across the finance vertical so far is a published head-to-head comparison against a classical baseline. Every announcement describes what is being tested, not a measured improvement over what the bank already runs.",{"type":21,"tag":41,"props":16180,"children":16182},{"id":16181},"automotive-batteries-fuel-cells-and-traffic",[16183],{"type":31,"value":16184},"Automotive: batteries, fuel cells, and traffic",{"type":21,"tag":22,"props":16186,"children":16187},{},[16188,16190,16195],{"type":31,"value":16189},"BMW's relationship with Quantinuum, running since 2021 and ",{"type":21,"tag":26,"props":16191,"children":16192},{"href":3537},[16193],{"type":31,"value":16194},"expanded into a multi-year partnership",{"type":31,"value":16196}," this year, is the automotive sector's longest-running and best-documented quantum effort. The target problem is electrochemistry: simulating the oxygen reduction reaction at platinum catalysts, which determines fuel cell efficiency and is genuinely hard for classical methods because of the electron correlation effects involved. Other automakers have run parallel efforts with less public detail: traffic-flow and production-scheduling optimization work using quantum annealing hardware, and battery-chemistry simulation research with gate-model providers. The pattern across the vertical is consistent with BMW's case: automotive quantum work concentrates on chemistry (batteries, fuel cells, catalysts) and on combinatorial scheduling (traffic, paint-shop sequencing, logistics), not on anything resembling a production deployment replacing existing simulation tools.",{"type":21,"tag":41,"props":16198,"children":16200},{"id":16199},"aerospace-and-defense-fluid-dynamics-and-materials",[16201],{"type":31,"value":16202},"Aerospace and defense: fluid dynamics and materials",{"type":21,"tag":22,"props":16204,"children":16205},{},[16206,16208,16214,16216,16221],{"type":31,"value":16207},"Rolls-Royce, Riverlane, Quantinuum, and the University of Edinburgh's EPCC ",{"type":21,"tag":26,"props":16209,"children":16211},{"href":16210},"\u002Fblog\u002Fquantinuum-rolls-royce-riverlane-edinburgh-industrial-design",[16212],{"type":31,"value":16213},"signed an agreement",{"type":31,"value":16215}," to test computational building blocks for gas turbine design on Quantinuum's Helios system, building on years of prior fluid-dynamics groundwork between Rolls-Royce, Riverlane, and EPCC specifically. Computational fluid dynamics is one of the more frequently cited plausible quantum use cases industry-wide, since classical CFD simulation is already extremely expensive at the fidelity aerospace design needs, but the Rolls-Royce collaboration's own framing, building blocks first, full simulations later, is a more honest scope than most aerospace-quantum announcements set for themselves. Defense-sector interest tends to run through national-security channels rather than public commercial partnerships: IonQ's ",{"type":21,"tag":26,"props":16217,"children":16218},{"href":10633},[16219],{"type":31,"value":16220},"memorandum of understanding with Sandia National Laboratories",{"type":31,"value":16222}," is a hardware co-design relationship rather than an applications pilot, aimed at government use cases that are not disclosed in detail.",{"type":21,"tag":41,"props":16224,"children":16226},{"id":16225},"pharma-and-chemicals-molecule-simulation",[16227],{"type":31,"value":16228},"Pharma and chemicals: molecule simulation",{"type":21,"tag":22,"props":16230,"children":16231},{},[16232],{"type":31,"value":16233},"Drug discovery and materials chemistry are the use case quantum computing's proponents have pointed to longest, on the reasonable logic that simulating molecules is a quantum mechanical problem in the first place, and classical computers approximate it rather than compute it directly. Pharmaceutical and chemical companies have run research collaborations with gate-model quantum providers on molecular dynamics and reaction simulation, generally scoped to specific molecules or reaction pathways rather than end-to-end drug discovery pipelines. The BMW-Quantinuum electrochemistry work sits in this same technical category, chemistry simulation, even though the end application is batteries rather than a drug candidate, and it is the most publicly documented example of this usage case producing incremental, published results over several years rather than a single splashy announcement.",{"type":21,"tag":41,"props":16235,"children":16237},{"id":16236},"energy-and-utilities-grid-optimization-and-materials",[16238],{"type":31,"value":16239},"Energy and utilities: grid optimization and materials",{"type":21,"tag":22,"props":16241,"children":16242},{},[16243],{"type":31,"value":16244},"Energy companies have pursued two distinct quantum use cases that get conflated more often than they should. One is grid and load optimization, a combinatorial problem suited to annealing approaches, similar in shape to the traffic and scheduling problems automakers are testing. The other is materials and chemistry research aimed at things like battery storage and catalysts for cleaner energy production, which overlaps directly with the pharma and automotive chemistry work described above. Utilities exploring quantum computing tend to frame it as multi-year research rather than a near-term operational tool, which is a more accurate characterization than most vendor press releases about the energy vertical offer.",{"type":21,"tag":22,"props":16246,"children":16247},{},[16248,16250,16254],{"type":31,"value":16249},"Grid security is a related but distinct problem from load optimization, and it now has its own named effort. Eaton, ",{"type":21,"tag":26,"props":16251,"children":16252},{"href":10545},[16253],{"type":31,"value":16160},{"type":31,"value":16255},", won a $7 million Air Force Research Laboratory contract in August 2026, with Infleqtion providing hardware and Penn State handling algorithm research, to develop hybrid quantum-classical algorithms for grid contingency analysis beyond the N-2 standard grids are built to survive today. Like most of what appears in this piece, the contract's own deliverable list ends in a proof-of-concept demonstration on near-term hardware, not a production capability, and it runs through defense funding rather than a utility customer paying directly, which puts it closer to IonQ's Sandia relationship above than to AT&T's telecom deployment below.",{"type":21,"tag":41,"props":16257,"children":16259},{"id":16258},"telecom-network-optimization-and-fraud",[16260],{"type":31,"value":16261},"Telecom: network optimization and fraud",{"type":21,"tag":22,"props":16263,"children":16264},{},[16265],{"type":31,"value":16266},"Telecom is where this list's usual caveat, no published comparison against a classical baseline, breaks down, and it is worth reading closely for that reason. AT&T expanded its application of D-Wave's quantum annealing technology on July 27, 2026, moving beyond a pilot into broader network operations: outage detection and response, technician routing, network build planning, and traffic management, with evaluation of D-Wave's forthcoming gate-model systems for quantum security and communications underway alongside it. AT&T's Director of Data Science reported cutting a particular network optimization workload from roughly an hour to under 15 seconds in early testing. That is a real, dated, named-workload number, not a framework or a stated research intent, which puts it in a different category than most of what else is in this piece. It is still a supplier-and-customer-reported figure rather than an independently reproduced benchmark, and \"a specific workload\" is not the same as AT&T's complete network optimization stack, but it is the closest thing in this entire roundup to the classical-baseline comparison the rest of this piece keeps noting as absent. SoftBank's white paper with Quantinuum names two further research areas: quantum chemistry (adjacent to the automotive and pharma use cases above) and large-scale graph analytics for fraud detection, a natural fit given SoftBank's own telecommunications business generates exactly that kind of transaction and network-graph data, though that work remains at the research-intent stage AT&T's has moved past.",{"type":21,"tag":41,"props":16268,"children":16270},{"id":16269},"the-pattern-across-every-vertical",[16271],{"type":31,"value":16272},"The pattern across every vertical",{"type":21,"tag":22,"props":16274,"children":16275},{},[16276,16278,16283,16285,16289],{"type":31,"value":16277},"Look across finance, automotive, aerospace, pharma, energy, and telecom, and the same two problem shapes keep showing up regardless of industry: chemistry and materials simulation (batteries, fuel cells, catalysts, drug molecules), and combinatorial optimization over networks or schedules (fraud detection, traffic, grid load, portfolio risk). That is not a coincidence. Those are the two categories of problem where quantum mechanics or quantum-inspired optimization has a genuine theoretical edge over classical methods, and it is why the same handful of algorithmic approaches, ",{"type":21,"tag":26,"props":16279,"children":16281},{"href":16280},"\u002Fglossary\u002Fvqe",[16282],{"type":31,"value":3626},{"type":31,"value":16284}," and chemistry-specific methods for the first category, ",{"type":21,"tag":26,"props":16286,"children":16287},{"href":2045},[16288],{"type":31,"value":2048},{"type":31,"value":16290}," and annealing for the second, keep reappearing across industries that otherwise share nothing in common.",{"type":21,"tag":41,"props":16292,"children":16294},{"id":16293},"how-to-read-the-next-announcement-in-this-space",[16295],{"type":31,"value":16296},"How to read the next announcement in this space",{"type":21,"tag":22,"props":16298,"children":16299},{},[16300,16302,16308],{"type":31,"value":16301},"Every partnership above is worth the same three questions before treating it as evidence quantum computing works for that use case: is there a published technical result, not only a stated intent, is there a classical baseline it is measured against, and is the assertion coming from the hardware vendor, the customer, or an independent third party. AT&T's telecom result clears the first two bars and still fails the third, a vendor and its customer, not an outside party, which is why one dated speedup quantity changes how far along telecom looks without changing how the other verticals should be read. Our ",{"type":21,"tag":26,"props":16303,"children":16305},{"href":16304},"\u002Fuse-cases",[16306],{"type":31,"value":16307},"use cases overview",{"type":31,"value":16309}," tracks which applications across every industry have moved from research-stage to genuinely near-term, and is a useful cross-examine the next time a company outside the quantum industry announces a new pilot.",{"title":7,"searchDepth":167,"depth":167,"links":16311},[16312,16313,16314,16315,16316,16317,16318,16319],{"id":16140,"depth":167,"text":16143},{"id":16181,"depth":167,"text":16184},{"id":16199,"depth":167,"text":16202},{"id":16225,"depth":167,"text":16228},{"id":16236,"depth":167,"text":16239},{"id":16258,"depth":167,"text":16261},{"id":16269,"depth":167,"text":16272},{"id":16293,"depth":167,"text":16296},"content:blog:companies-using-quantum-computing-by-industry.md","blog\u002Fcompanies-using-quantum-computing-by-industry.md","blog\u002Fcompanies-using-quantum-computing-by-industry",{"_path":16324,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":16325,"description":16326,"date":16021,"author":11,"tags":16327,"readingTime":233,"body":16329,"_type":1193,"_id":16415,"_source":1195,"_file":16416,"_stem":16417,"_extension":1198},"\u002Fblog\u002Fduke-quantum-log-law-entanglement-scaling","A Trapped-Ion Computer Confirmed a Prediction About How Entanglement Scales at Criticality","Duke Quantum Center researchers used a fully-connected trapped-ion processor to confirm, for the first time on real hardware, that entanglement entropy grows logarithmically with subsystem size near a quantum critical point.",[1213,16328,15],"Trapped-Ion",{"type":18,"children":16330,"toc":16408},[16331,16342,16348,16353,16359,16364,16370,16375,16381,16393,16397],{"type":21,"tag":22,"props":16332,"children":16333},{},[16334,16336,16340],{"type":31,"value":16335},"Researchers at Duke Quantum Center published results on July 27, 2026, confirming a decades-old theoretical prediction about how ",{"type":21,"tag":26,"props":16337,"children":16338},{"href":1156},[16339],{"type":31,"value":4248},{"type":31,"value":16341}," behaves near a quantum critical point, and did it on a real quantum processor rather than in simulation. The team, Thomas Barthel, Marko Cetina, Qiang Miao, Tianyi Wang, and Kenneth R. Brown, ran the experiment on a fully-connected trapped-ion computer and tracked how entanglement entropy scales as a system passes through a phase transition.",{"type":21,"tag":41,"props":16343,"children":16345},{"id":16344},"what-log-law-scaling-means",[16346],{"type":31,"value":16347},"What \"log-law scaling\" means",{"type":21,"tag":22,"props":16349,"children":16350},{},[16351],{"type":31,"value":16352},"Physicists have long predicted that at a quantum critical point, the entanglement entropy of a subsystem grows logarithmically with the size of that subsystem, not linearly and not saturating at some fixed value. That distinction matters because it is one of the signatures physicists use to identify and classify phase transitions in quantum systems. Confirming that the log-law holds on an actual device, rather than in a tensor-network simulation of what a device should do, is a different kind of evidence. A simulation assumes the physics it is testing. A quantum computer running the real dynamics does not.",{"type":21,"tag":41,"props":16354,"children":16356},{"id":16355},"why-full-connectivity-mattered-here",[16357],{"type":31,"value":16358},"Why full connectivity mattered here",{"type":21,"tag":22,"props":16360,"children":16361},{},[16362],{"type":31,"value":16363},"The experiment ran on a trapped-ion system with all-to-all qubit connectivity, meaning every qubit interacts directly with every other qubit rather than only its physical neighbors. Most current quantum hardware, including most superconducting chips, only supports nearest-neighbor connections, which forces long-range correlations to be built up through chains of local operations. That adds noise and depth to exactly the kind of circuit this experiment needed. All-to-all connectivity let the team probe long-range entanglement structure directly, without laundering it through extra gates.",{"type":21,"tag":41,"props":16365,"children":16367},{"id":16366},"the-tomography-trick-that-made-small-qubit-counts-work",[16368],{"type":31,"value":16369},"The tomography trick that made small qubit counts work",{"type":21,"tag":22,"props":16371,"children":16372},{},[16373],{"type":31,"value":16374},"Studying a genuine phase transition normally requires a system large enough that boundary effects do not distort the result, which is a hard requirement to meet on any current quantum processor. The Duke team worked around this by combining the multiscale entanglement renormalization ansatz (MERA), a tensor-network method built to represent systems as if they were infinite, with holographic subsystem tomography to reconstruct the entanglement structure from a comparatively small number of qubits. That combination is arguably as much the result here as the log-law confirmation itself: a method for getting infinite-system physics out of a finite, noisy device.",{"type":21,"tag":41,"props":16376,"children":16378},{"id":16377},"what-this-is-not",[16379],{"type":31,"value":16380},"What this is not",{"type":21,"tag":22,"props":16382,"children":16383},{},[16384,16386,16391],{"type":31,"value":16385},"This is not a demonstration of ",{"type":21,"tag":26,"props":16387,"children":16388},{"href":2052},[16389],{"type":31,"value":16390},"quantum advantage",{"type":31,"value":16392},", and the paper does not claim one. Log-law scaling of entanglement at criticality is a well-established theoretical result, tested here to validate that a real device reproduces it, not to solve a problem no classical computer handles. The value is methodological: a technique (MERA plus holographic tomography) with a path toward studying quantum phase transitions and critical phenomena that are harder to simulate classically, in systems too large for exact classical treatment.",{"type":21,"tag":41,"props":16394,"children":16395},{"id":3474},[16396],{"type":31,"value":3477},{"type":21,"tag":22,"props":16398,"children":16399},{},[16400,16402,16406],{"type":31,"value":16401},"The real test of this method is whether it gets applied to a phase transition or many-body system where the classical answer is not already known, which is where a validated experimental technique starts producing new physics rather than confirming old theory. Our ",{"type":21,"tag":26,"props":16403,"children":16404},{"href":1106},[16405],{"type":31,"value":16093},{"type":31,"value":16407}," tracks how trapped-ion connectivity compares with superconducting and neutral-atom approaches for problems like this one.",{"title":7,"searchDepth":167,"depth":167,"links":16409},[16410,16411,16412,16413,16414],{"id":16344,"depth":167,"text":16347},{"id":16355,"depth":167,"text":16358},{"id":16366,"depth":167,"text":16369},{"id":16377,"depth":167,"text":16380},{"id":3474,"depth":167,"text":3477},"content:blog:duke-quantum-log-law-entanglement-scaling.md","blog\u002Fduke-quantum-log-law-entanglement-scaling.md","blog\u002Fduke-quantum-log-law-entanglement-scaling",{"_path":16157,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":16419,"description":16420,"date":16021,"author":11,"tags":16421,"readingTime":233,"body":16422,"_type":1193,"_id":16495,"_source":1195,"_file":16496,"_stem":16497,"_extension":1198},"D-Wave and Nasdaq Verafin Are Testing Quantum Annealing Against Money Laundering Networks","D-Wave and Nasdaq Verafin, whose financial crime software serves over 2,800 institutions, started a proof-of-concept using D-Wave's quantum annealing hardware to detect anomalous transaction patterns across account activity and counterparty networks.",[3409,10549],{"type":18,"children":16423,"toc":16488},[16424,16429,16435,16440,16446,16451,16457,16462,16468,16479,16483],{"type":21,"tag":22,"props":16425,"children":16426},{},[16427],{"type":31,"value":16428},"D-Wave Quantum Inc. and Nasdaq Verafin announced a partnership on August 4, 2026, to test whether quantum annealing improves detection of money laundering, fraud, and scam activity in banking and capital markets data. Nasdaq Verafin is not a modest pilot partner. Its financial crime management software already serves over 2,800 financial institutions representing roughly $13 trillion in collective assets, which means a successful proof-of-concept here has a large, existing commercial pipeline to move into if it works, unlike a partnership that would need to build a customer base from scratch.",{"type":21,"tag":41,"props":16430,"children":16432},{"id":16431},"what-the-proof-of-concept-is-testing",[16433],{"type":31,"value":16434},"What the proof-of-concept is testing",{"type":21,"tag":22,"props":16436,"children":16437},{},[16438],{"type":31,"value":16439},"The collaboration runs on D-Wave's Leap quantum cloud service, using quantum annealing hardware to analyze hundreds of potential data signals at once across account activity, transaction histories, and multi-entity counterparty networks. The approach maps that multi-dimensional network data into combinatorial optimization and quantum machine learning models, aiming to surface hidden behavioral patterns and anomalous signals that classical monitoring tools miss. Financial crime detection at this scale is fundamentally a pattern-matching and network-analysis problem, which is closer to the kind of combinatorial structure quantum annealing is suited to than the general-purpose computation that gate-model quantum computers target.",{"type":21,"tag":41,"props":16441,"children":16443},{"id":16442},"why-annealing-is-a-reasonable-fit-here-on-paper",[16444],{"type":31,"value":16445},"Why annealing is a reasonable fit here, on paper",{"type":21,"tag":22,"props":16447,"children":16448},{},[16449],{"type":31,"value":16450},"D-Wave's hardware is built for optimization problems with many interacting variables, exactly the shape of a transaction network where flagging a laundering scheme means finding patterns across several accounts and counterparties rather than a single anomalous transaction. That structural fit is a real reason to expect this application area to work before full fault-tolerant quantum computing exists, and it lines up with D-Wave's own framing of annealing as a way to test real-world quantum advantages ahead of that fault-tolerant era.",{"type":21,"tag":41,"props":16452,"children":16454},{"id":16453},"what-stage-this-is-at",[16455],{"type":31,"value":16456},"What stage this is at",{"type":21,"tag":22,"props":16458,"children":16459},{},[16460],{"type":31,"value":16461},"This is explicitly a proof-of-concept, not a deployed detection system, and Nasdaq Verafin's own leadership described it as an early test rather than a production capability. The path forward, if the proof-of-concept succeeds, moves to pilot applications integrated into Nasdaq Verafin's commercial software suite, which is still a step before the broad 2,800-institution customer base would see it in their actual compliance workflows. Readers should treat \"leverages quantum annealing\" here the way any vendor-reported early-stage collaboration deserves to be read: a real technical hypothesis being tested, not a claim that quantum computing is already catching money launderers that classical systems miss.",{"type":21,"tag":41,"props":16463,"children":16465},{"id":16464},"how-this-fits-the-annealing-track-record",[16466],{"type":31,"value":16467},"How this fits the annealing track record",{"type":21,"tag":22,"props":16469,"children":16470},{},[16471,16473,16477],{"type":31,"value":16472},"D-Wave's commercial traction elsewhere gives this partnership more credibility than a first-of-its-kind pilot would carry alone. Deals with Florida Atlantic University and a Fortune 100 customer for quantum-cloud access, covered in our ",{"type":21,"tag":26,"props":16474,"children":16475},{"href":3725},[16476],{"type":31,"value":16130},{"type":31,"value":16478},", show D-Wave already has active paying demand for annealing-based optimization outside financial crime specifically, which is the identical category of problem this Verafin proof-of-concept sits in.",{"type":21,"tag":41,"props":16480,"children":16481},{"id":3474},[16482],{"type":31,"value":3477},{"type":21,"tag":22,"props":16484,"children":16485},{},[16486],{"type":31,"value":16487},"The real signal to look for is whether Nasdaq Verafin publishes a comparison, even a rough one, between the quantum-hybrid approach's detection rate and its existing classical monitoring baseline. Without that comparison, \"quantum applications for financial crime detection\" stays a description of what is being tested, not evidence of what quantum annealing adds over what Verafin's institutions already run.",{"title":7,"searchDepth":167,"depth":167,"links":16489},[16490,16491,16492,16493,16494],{"id":16431,"depth":167,"text":16434},{"id":16442,"depth":167,"text":16445},{"id":16453,"depth":167,"text":16456},{"id":16464,"depth":167,"text":16467},{"id":3474,"depth":167,"text":3477},"content:blog:dwave-nasdaq-verafin-financial-crime-detection.md","blog\u002Fdwave-nasdaq-verafin-financial-crime-detection.md","blog\u002Fdwave-nasdaq-verafin-financial-crime-detection",{"_path":16499,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":16500,"description":16501,"date":16021,"author":11,"tags":16502,"readingTime":272,"body":16503,"_type":1193,"_id":16584,"_source":1195,"_file":16585,"_stem":16586,"_extension":1198},"\u002Fblog\u002Fqarakal-pangaea-modular-architecture","An Israeli Startup Claims a 10x Cut in Qubit Overhead With a 3D Modular Architecture","Qarakal Quantum published Pangaea, a modular 3D superconducting architecture that uses a gauge-code quantum bus to connect separate topological code patches, claiming a tenfold reduction in physical qubits needed for a given logical error rate versus planar surface codes.",[3409,1213,14733],{"type":18,"children":16504,"toc":16577},[16505,16517,16523,16528,16534,16539,16545,16550,16556,16568,16572],{"type":21,"tag":22,"props":16506,"children":16507},{},[16508,16510,16515],{"type":31,"value":16509},"Qarakal Quantum Ltd., an Israeli quantum startup, published research on arXiv and launched an architecture called Pangaea on August 5, 2026. The core claim is specific and checkable in principle: in fault-tolerance simulations targeting 50 ",{"type":21,"tag":26,"props":16511,"children":16512},{"href":15870},[16513],{"type":31,"value":16514},"logical qubits",{"type":31,"value":16516},", Pangaea matched the logical error rates of standard planar surface-code architectures while using roughly ten times fewer physical qubits. That is the kind of figure that, if it survives independent scrutiny, would matter more than most hardware announcements this year, because qubit overhead is the single biggest obstacle between today's noisy processors and a fault-tolerant machine.",{"type":21,"tag":41,"props":16518,"children":16520},{"id":16519},"the-problem-pangaea-is-aimed-at",[16521],{"type":31,"value":16522},"The problem Pangaea is aimed at",{"type":21,"tag":22,"props":16524,"children":16525},{},[16526],{"type":31,"value":16527},"Standard 2D surface-code error correction scales physical qubit count roughly as the square of the code distance, written O(d²) per logical qubit, where d determines how well the code suppresses errors. That quadratic relationship is why credible fault-tolerant roadmaps talk about needing physical qubit counts in the hundreds of thousands to millions: the error suppression you need for useful algorithms requires a large d, and the qubit cost of a large d compounds fast under a 2D layout.",{"type":21,"tag":41,"props":16529,"children":16531},{"id":16530},"how-the-architecture-gets-around-it",[16532],{"type":31,"value":16533},"How the architecture gets around it",{"type":21,"tag":22,"props":16535,"children":16536},{},[16537],{"type":31,"value":16538},"Pangaea is a modular, three-dimensional superconducting design that arranges specialized code patches, some running surface codes, some running color codes, as separate physical blocks rather than one flat 2D grid. The connective piece is what Qarakal calls a quantum bus: an auxiliary gauge-code strip that mediates operations between physically separated code patches by reconstructing multi-qubit joint Pauli operators, without needing the patches to sit directly adjacent to each other. That is the mechanism behind the qubit savings. Qarakal describes the resulting scaling for multi-qubit interactions as O(dNL) physical qubits for N logical qubits at distance d, versus O(d²NL) for a standard 2D layout, which is the difference between linear and quadratic growth in d. The architecture also includes a native 15-to-1 magic-state distillation module and measurement-based fault-tolerant CNOT primitives, both aimed at the same overhead problem from the operations side rather than the layout side.",{"type":21,"tag":41,"props":16540,"children":16542},{"id":16541},"what-10x-rests-on",[16543],{"type":31,"value":16544},"What \"10x\" rests on",{"type":21,"tag":22,"props":16546,"children":16547},{},[16548],{"type":31,"value":16549},"The tenfold figure comes from Qarakal's own fault-tolerance simulations, not from a physical device running the architecture, and not from an independent group reproducing the result. Simulated overhead claims in error correction have a mixed track record: some hold up when built, some run into wiring density, control electronics, or cross-talk problems that a simulation does not model well. Qarakal's design does address the wiring question directly by claiming reduced wiring density and control electronics overhead compared to a flat 2D chip, which is a real consideration for a 3D layout, but that claim is also simulation-stage, not hardware-verified.",{"type":21,"tag":41,"props":16551,"children":16553},{"id":16552},"why-this-is-worth-tracking-anyway",[16554],{"type":31,"value":16555},"Why this is worth tracking anyway",{"type":21,"tag":22,"props":16557,"children":16558},{},[16559,16561,16566],{"type":31,"value":16560},"Every credible path to a useful fault-tolerant quantum computer runs through cutting qubit overhead, which is why IBM's move toward qLDPC-style codes, Quantinuum's trapped-ion connectivity advantage, and now Qarakal's 3D modular approach are all answers to the same underlying question from different hardware angles. Our piece on ",{"type":21,"tag":26,"props":16562,"children":16563},{"href":3586},[16564],{"type":31,"value":16565},"Quantinuum's Helios encoding ratio",{"type":31,"value":16567}," covers why the physical-to-logical qubit ratio, not raw qubit count, is the number that indicates real progress, and Pangaea's assertion is trying to move that same ratio with a different technique.",{"type":21,"tag":41,"props":16569,"children":16570},{"id":3474},[16571],{"type":31,"value":3477},{"type":21,"tag":22,"props":16573,"children":16574},{},[16575],{"type":31,"value":16576},"The test for Pangaea is whether Qarakal, or an independent lab, builds a physical device that reproduces the simulated overhead reduction rather than the architecture staying a paper design. A 3D superconducting layout also raises fabrication and cooling questions that a 2D chip does not face, and how Qarakal handles those in practice is the next thing worth checking, not the arXiv numbers alone.",{"title":7,"searchDepth":167,"depth":167,"links":16578},[16579,16580,16581,16582,16583],{"id":16519,"depth":167,"text":16522},{"id":16530,"depth":167,"text":16533},{"id":16541,"depth":167,"text":16544},{"id":16552,"depth":167,"text":16555},{"id":3474,"depth":167,"text":3477},"content:blog:qarakal-pangaea-modular-architecture.md","blog\u002Fqarakal-pangaea-modular-architecture.md","blog\u002Fqarakal-pangaea-modular-architecture",{"_path":16210,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":16588,"description":16589,"date":16021,"author":11,"tags":16590,"readingTime":233,"body":16591,"_type":1193,"_id":16677,"_source":1195,"_file":16678,"_stem":16679,"_extension":1198},"Rolls-Royce Is Testing Whether Quantum Computers Help Design a Jet Engine","Quantinuum, Rolls-Royce, Riverlane, and the University of Edinburgh's EPCC signed an agreement to test quantum computational building blocks for industrial design problems like gas turbine simulation on Quantinuum's Helios system, building on years of prior fluid-dynamics research.",[3409,10549],{"type":18,"children":16592,"toc":16670},[16593,16598,16604,16615,16621,16626,16632,16637,16643,16655,16659],{"type":21,"tag":22,"props":16594,"children":16595},{},[16596],{"type":31,"value":16597},"Quantinuum, Rolls-Royce, Riverlane, and EPCC (the UK's national supercomputing centre, based at the University of Edinburgh) announced an agreement on July 14, 2026, to explore what quantum computing would need to look like to fit into real industrial design workflows, with gas turbine design named as the specific target. This is not a first contact between the parties. It builds on prior work between Rolls-Royce, Riverlane, and EPCC that already laid groundwork on the algorithmic, error-correction, and data requirements for tackling fluid dynamics problems with quantum hardware, which is the detail that separates this from a cold-start pilot.",{"type":21,"tag":41,"props":16599,"children":16601},{"id":16600},"who-is-contributing-what",[16602],{"type":31,"value":16603},"Who is contributing what",{"type":21,"tag":22,"props":16605,"children":16606},{},[16607,16609,16613],{"type":31,"value":16608},"The agreement splits responsibility along each party's own expertise rather than bundling everyone into a vague joint statement. Quantinuum provides access to its quantum systems and software stack. Rolls-Royce contributes the industrial design use cases and the domain knowledge needed to know whether a result is useful to an engineer, not only computationally interesting. Riverlane brings ",{"type":21,"tag":26,"props":16610,"children":16611},{"href":15841},[16612],{"type":31,"value":14745},{"type":31,"value":16614}," and algorithmic expertise, an area it specializes in independent of any single hardware vendor. EPCC contributes supercomputing expertise and the hybrid-workflow integration work needed to connect a quantum processor to a classical simulation pipeline rather than treating it as a standalone tool.",{"type":21,"tag":41,"props":16616,"children":16618},{"id":16617},"why-gas-turbine-design-is-a-real-test-case-not-a-marketing-one",[16619],{"type":31,"value":16620},"Why gas turbine design is a real test case, not a marketing one",{"type":21,"tag":22,"props":16622,"children":16623},{},[16624],{"type":31,"value":16625},"Gas turbine design depends heavily on computational fluid dynamics, a class of problem that is genuinely expensive to simulate classically and has long been cited, correctly, as a plausible quantum use case. That plausibility has not translated into much published, concrete progress industry-wide, which is exactly why the prior Rolls-Royce and Riverlane fluid-dynamics groundwork matters here. The plan under this agreement is to test key computational building blocks, not complete turbine simulations, on Quantinuum's Helios system now, and assess how those building blocks would scale on Quantinuum's planned Sol and Apollo systems.",{"type":21,"tag":41,"props":16627,"children":16629},{"id":16628},"what-computational-building-blocks-signals",[16630],{"type":31,"value":16631},"What \"computational building blocks\" signals",{"type":21,"tag":22,"props":16633,"children":16634},{},[16635],{"type":31,"value":16636},"Naming building blocks rather than a finished application is a narrower and more honest scope than most industrial-quantum announcements set for themselves. It suggests the collaborators are testing whether specific subroutines, the kind of thing that needs to work correctly and efficiently before a full fluid-dynamics algorithm runs on quantum hardware at all, behave the way theory predicts on Helios today. That is a slower, more verifiable path than announcing a turbine simulation result before the underlying pieces are proven out.",{"type":21,"tag":41,"props":16638,"children":16640},{"id":16639},"how-this-compares-to-quantinuums-other-industrial-partnerships",[16641],{"type":31,"value":16642},"How this compares to Quantinuum's other industrial partnerships",{"type":21,"tag":22,"props":16644,"children":16645},{},[16646,16648,16653],{"type":31,"value":16647},"Quantinuum's ",{"type":21,"tag":26,"props":16649,"children":16650},{"href":3537},[16651],{"type":31,"value":16652},"multi-year partnership with BMW",{"type":31,"value":16654}," runs on a similar structure: named hardware generations (Helios, Sol, Apollo), a particular scientific challenge rather than a generic industry reference, and a track record of prior collaboration behind the new announcement. The Rolls-Royce agreement follows the same pattern, industrial design and fluid dynamics in place of electrochemistry, which suggests Quantinuum is running a repeatable playbook for these deals rather than a one-off press moment.",{"type":21,"tag":41,"props":16656,"children":16657},{"id":3474},[16658],{"type":31,"value":3477},{"type":21,"tag":22,"props":16660,"children":16661},{},[16662,16664,16668],{"type":31,"value":16663},"The next real signal is whether Riverlane or EPCC publishes a technical result on which specific building blocks ran successfully on Helios, and how the projected scaling to Sol and Apollo compares against the actual hardware once those systems ship. Our ",{"type":21,"tag":26,"props":16665,"children":16666},{"href":16304},[16667],{"type":31,"value":16307},{"type":31,"value":16669}," tracks which quantum applications, across industries, have moved past the building-blocks stage into results run on real hardware.",{"title":7,"searchDepth":167,"depth":167,"links":16671},[16672,16673,16674,16675,16676],{"id":16600,"depth":167,"text":16603},{"id":16617,"depth":167,"text":16620},{"id":16628,"depth":167,"text":16631},{"id":16639,"depth":167,"text":16642},{"id":3474,"depth":167,"text":3477},"content:blog:quantinuum-rolls-royce-riverlane-edinburgh-industrial-design.md","blog\u002Fquantinuum-rolls-royce-riverlane-edinburgh-industrial-design.md","blog\u002Fquantinuum-rolls-royce-riverlane-edinburgh-industrial-design",{"_path":15986,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":16681,"description":16682,"date":16021,"author":11,"tags":16683,"readingTime":272,"body":16684,"_type":1193,"_id":16772,"_source":1195,"_file":16773,"_stem":16774,"_extension":1198},"A Live Fiber Line Between Chicago and Indiana Ran 1.6 Tb\u002Fs Under Both PQC and QKD at Once","Quantum Corridor, Ciena, and Toshiba completed a field trial encrypting 1.6 Tb\u002Fs of live commercial traffic between Chicago and Hammond, Indiana, using post-quantum cryptography and quantum key distribution simultaneously on the same fiber.",[3862,3863,3864],{"type":18,"children":16685,"toc":16765},[16686,16698,16704,16709,16715,16720,16726,16739,16745,16750,16754],{"type":21,"tag":22,"props":16687,"children":16688},{},[16689,16691,16696],{"type":31,"value":16690},"Quantum Corridor, Ciena, and Toshiba completed a field trial on August 5, 2026, encrypting 1.6 terabits per second of optical capacity between a Chicago data center and a Hammond, Indiana data center, roughly 21.8 kilometers of metro fiber, using two different quantum-era security methods running at the same time on the same network. The trial paired ",{"type":21,"tag":26,"props":16692,"children":16694},{"href":16693},"\u002Fglossary\u002Fpost-quantum-cryptography",[16695],{"type":31,"value":3977},{"type":31,"value":16697}," with quantum key distribution (QKD), rather than choosing one approach over the other, which is itself the more interesting part of this announcement.",{"type":21,"tag":41,"props":16699,"children":16701},{"id":16700},"two-different-answers-to-the-same-threat-run-together",[16702],{"type":31,"value":16703},"Two different answers to the same threat, run together",{"type":21,"tag":22,"props":16705,"children":16706},{},[16707],{"type":31,"value":16708},"Post-quantum cryptography and QKD solve the same underlying problem, protecting encrypted data against decryption by a future large-scale quantum computer, through entirely different mechanisms. PQC uses new classical algorithms, run on ordinary hardware, that are believed to resist quantum attacks. QKD uses the physics of quantum states to detect eavesdropping and distribute encryption keys, which requires dedicated hardware and, in this case, Toshiba's QKD servers generating the quantum-derived symmetric keys. Running both simultaneously over the same dense wavelength-division multiplexing (DWDM) infrastructure, alongside ordinary classical data traffic on the same fiber pairs, is a statement about defense in depth: if one approach turns out to have a weakness that is not currently known, the other is still standing.",{"type":21,"tag":41,"props":16710,"children":16712},{"id":16711},"the-hardware-doing-the-work",[16713],{"type":31,"value":16714},"The hardware doing the work",{"type":21,"tag":22,"props":16716,"children":16717},{},[16718],{"type":31,"value":16719},"The encryption ran on Ciena's Waveserver platform with WaveLogic 6 Extreme coherent optics, applying wire-speed optical-layer AES-256-GCM encryption using NIST-certified post-quantum algorithms for key establishment, layered with Toshiba's QKD-derived keys. That combination matters for a reason beyond the cryptography itself: it ran on live, in-production network infrastructure rather than a lab testbed, and it worked at 1.6 Tb\u002Fs, a real commercial-grade capacity figure, not a demonstration throughput far below what an actual network operator needs.",{"type":21,"tag":41,"props":16721,"children":16723},{"id":16722},"why-harvest-now-decrypt-later-is-the-actual-threat-model-here",[16724],{"type":31,"value":16725},"Why \"harvest now, decrypt later\" is the actual threat model here",{"type":21,"tag":22,"props":16727,"children":16728},{},[16729,16731,16737],{"type":31,"value":16730},"The trial's stated purpose is defending against \"harvest now, decrypt later,\" the practice of an adversary recording encrypted traffic today with the intent of decrypting it once a sufficiently capable quantum computer exists. That threat model is why this trial matters now, well before any quantum computer breaks RSA or ECC at scale. Data encrypted today with vulnerable algorithms is already exposed to a future break, which our ",{"type":21,"tag":26,"props":16732,"children":16734},{"href":16733},"\u002Fblog\u002Fpost-quantum-migration-deadlines",[16735],{"type":31,"value":16736},"PQC migration deadlines piece",{"type":31,"value":16738}," covers in terms of NIST and NSA's published timelines. A field trial proving PQC and QKD run together, at commercial speed, on infrastructure that already exists, is a concrete response to \"we're not ready yet.\"",{"type":21,"tag":41,"props":16740,"children":16742},{"id":16741},"crypto-agility-without-ripping-out-hardware",[16743],{"type":31,"value":16744},"Crypto-agility without ripping out hardware",{"type":21,"tag":22,"props":16746,"children":16747},{},[16748],{"type":31,"value":16749},"The trial also demonstrated the transition working through a software upgrade path rather than a hardware replacement, meaning existing Ciena Waveserver deployments plausibly gain this protection without a physical infrastructure swap. That is directly relevant to organizations facing compliance mandates, the trial specifically cites U.S. and French cybersecurity requirements, since a software-upgrade path is a materially cheaper and faster migration story than a hardware refresh cycle.",{"type":21,"tag":41,"props":16751,"children":16752},{"id":3474},[16753],{"type":31,"value":3477},{"type":21,"tag":22,"props":16755,"children":16756},{},[16757,16759,16763],{"type":31,"value":16758},"The next test is whether this specific PQC-plus-QKD combination gets adopted beyond a single field trial route, into networks carrying traffic for organizations with real regulatory deadlines to hit. Our ",{"type":21,"tag":26,"props":16760,"children":16761},{"href":1137},[16762],{"type":31,"value":16005},{"type":31,"value":16764}," covers how QKD and quantum-safe networking fit into the broader distributed quantum computing picture beyond cryptography alone.",{"title":7,"searchDepth":167,"depth":167,"links":16766},[16767,16768,16769,16770,16771],{"id":16700,"depth":167,"text":16703},{"id":16711,"depth":167,"text":16714},{"id":16722,"depth":167,"text":16725},{"id":16741,"depth":167,"text":16744},{"id":3474,"depth":167,"text":3477},"content:blog:quantum-corridor-ciena-toshiba-quantum-safe-fiber.md","blog\u002Fquantum-corridor-ciena-toshiba-quantum-safe-fiber.md","blog\u002Fquantum-corridor-ciena-toshiba-quantum-safe-fiber",{"_path":16776,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":16777,"description":16778,"date":16779,"author":11,"tags":16780,"readingTime":272,"body":16781,"_type":1193,"_id":16872,"_source":1195,"_file":16873,"_stem":16874,"_extension":1198},"\u002Fblog\u002Fcaltech-oratomic-mitten-codes-qldpc","Caltech and Oratomic's 'Mitten Codes' Hit a Constant 20% Encoding Rate","Caltech and Oratomic introduced mitten codes, a non-abelian qLDPC code family with a constant 20% encoding rate and low check weight. A distinct technical paper from the resource-estimate research behind Oratomic's funding round, not a restatement of it.","2026-08-04",[3409,1213,14733],{"type":18,"children":16782,"toc":16866},[16783,16796,16802,16822,16828,16841,16845,16850,16854],{"type":21,"tag":22,"props":16784,"children":16785},{},[16786,16788,16794],{"type":31,"value":16787},"Caltech and Oratomic introduced mitten codes on August 3, 2026, a new family of non-abelian quantum low-density parity-check codes published on arXiv under the title \"High-rate qLDPC processors.\" This is worth separating clearly from ",{"type":21,"tag":26,"props":16789,"children":16791},{"href":16790},"\u002Fblog\u002Foratomic-300-million-series-a-neutral-atom",[16792],{"type":31,"value":16793},"Oratomic's $300 million Series A",{"type":31,"value":16795},", covered here recently: that article was about a funding round built on an earlier Caltech resource estimate. This is a different, later paper describing an actual code construction.",{"type":21,"tag":41,"props":16797,"children":16799},{"id":16798},"what-a-constant-encoding-rate-buys-you",[16800],{"type":31,"value":16801},"What a constant encoding rate buys you",{"type":21,"tag":22,"props":16803,"children":16804},{},[16805,16807,16812,16814,16820],{"type":31,"value":16806},"Encoding rate is the ratio of logical qubits to physical qubits a code produces, and it's one of the two numbers (alongside check weight) that decide whether a qLDPC code is practical to build. Surface codes, the current default, have encoding rates that shrink as you scale up, which is exactly the overhead problem our ",{"type":21,"tag":26,"props":16808,"children":16809},{"href":4095},[16810],{"type":31,"value":16811},"logical qubits explainer",{"type":31,"value":16813}," covers in general terms. A code family with a ",{"type":21,"tag":16815,"props":16816,"children":16817},"strong",{},[16818],{"type":31,"value":16819},"constant",{"type":31,"value":16821}," rate, here reported at 20%, doesn't lose ground as the code grows larger. That property, combined with low check weight (few qubits involved per parity check, which matters for realistic hardware wiring), is what makes a qLDPC construction worth naming rather than another point in a resource-estimate table.",{"type":21,"tag":41,"props":16823,"children":16825},{"id":16824},"non-abelian-and-why-thats-the-interesting-part",[16826],{"type":31,"value":16827},"Non-abelian, and why that's the interesting part",{"type":21,"tag":22,"props":16829,"children":16830},{},[16831,16833,16839],{"type":31,"value":16832},"Most qLDPC constructions getting attention recently, including the ",{"type":21,"tag":26,"props":16834,"children":16836},{"href":16835},"\u002Fblog\u002Fustc-origin-quantum-routing-codes-qldpc",[16837],{"type":31,"value":16838},"routing codes from USTC and Origin Quantum Computing",{"type":31,"value":16840}," covered here days ago, build on structures where the underlying group operations commute (abelian structures). Mitten codes reportedly use non-abelian group structures instead, a mathematically distinct approach to the same overhead problem. Two independent teams reaching for qLDPC code families from different corners of group theory in the same week is a real signal that this is where the field's attention on error-correction overhead currently sits, not evidence that either outcome is more correct than the other.",{"type":21,"tag":41,"props":16842,"children":16843},{"id":3545},[16844],{"type":31,"value":3548},{"type":21,"tag":22,"props":16846,"children":16847},{},[16848],{"type":31,"value":16849},"What's confirmed: the code family's name, its reported 20% constant encoding rate, low check weight, and the non-abelian construction, all as described in secondary reporting on the arXiv paper. What isn't confirmed here: independent verification of the rate claim, a hardware demonstration, or peer review. Same caveat as the routing codes coverage: this is a real, checkable theoretical contribution, not yet a result from working hardware.",{"type":21,"tag":41,"props":16851,"children":16852},{"id":3474},[16853],{"type":31,"value":3477},{"type":21,"tag":22,"props":16855,"children":16856},{},[16857,16859,16864],{"type":31,"value":16858},"Whether either Oratomic's mitten codes or USTC's routing codes gets picked up by a hardware team and fabricated is the test that matters. Our ",{"type":21,"tag":26,"props":16860,"children":16861},{"href":14761},[16862],{"type":31,"value":16863},"real-time decoding bottleneck piece",{"type":31,"value":16865}," covers the other half of this cost equation: a code with a great encoding rate still needs a decoder fast enough to keep up with it in practice.",{"title":7,"searchDepth":167,"depth":167,"links":16867},[16868,16869,16870,16871],{"id":16798,"depth":167,"text":16801},{"id":16824,"depth":167,"text":16827},{"id":3545,"depth":167,"text":3548},{"id":3474,"depth":167,"text":3477},"content:blog:caltech-oratomic-mitten-codes-qldpc.md","blog\u002Fcaltech-oratomic-mitten-codes-qldpc.md","blog\u002Fcaltech-oratomic-mitten-codes-qldpc",{"_path":16876,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":16877,"description":16878,"date":16779,"author":11,"tags":16879,"readingTime":308,"body":16881,"_type":1193,"_id":17362,"_source":1195,"_file":17363,"_stem":17364,"_extension":1198},"\u002Fblog\u002Fcuda-q-multi-gpu-simulation-guide","Multi-GPU Quantum Simulation with CUDA-Q: A Practical Guide","How CUDA-Q splits a state vector across multiple GPUs to simulate more qubits than one GPU's memory allows, and the real distinction between multi-GPU state simulation and NVIDIA's separate multi-QPU (mqpu) execution platform.",[16880,13895,7932],"Simulators",{"type":18,"children":16882,"toc":17354},[16883,16888,16894,16906,16912,16917,16930,16936,16941,17256,17268,17274,17294,17300,17313,17317,17350],{"type":21,"tag":22,"props":16884,"children":16885},{},[16886],{"type":31,"value":16887},"The code in this guide reflects NVIDIA's documented CUDA-Q API pattern, checked against NVIDIA's own developer documentation. Unlike the Qiskit tutorials elsewhere on this site, it wasn't executed here: CUDA-Q ships Linux-only wheels and needs real NVIDIA GPU hardware, neither of which this environment has. Verify exact target names and flags against NVIDIA's current docs before relying on them.",{"type":21,"tag":41,"props":16889,"children":16891},{"id":16890},"why-one-gpu-runs-out-of-room",[16892],{"type":31,"value":16893},"Why one GPU runs out of room",{"type":21,"tag":22,"props":16895,"children":16896},{},[16897,16899,16904],{"type":31,"value":16898},"A full state-vector simulation stores one complex amplitude per basis state, and the basis state count doubles with every added qubit. At single precision, a 30-qubit state vector needs roughly 8 GB. Add three more qubits and it's 64 GB, past what a single consumer or even most datacenter GPUs hold. This is the same wall covered in our ",{"type":21,"tag":26,"props":16900,"children":16901},{"href":3386},[16902],{"type":31,"value":16903},"free simulators comparison",{"type":31,"value":16905},": a laptop CPU tops out around 30 qubits, and a single GPU pushes that further but still hits a hard memory ceiling.",{"type":21,"tag":41,"props":16907,"children":16909},{"id":16908},"the-fix-split-the-state-vector-not-the-circuit",[16910],{"type":31,"value":16911},"The fix: split the state vector, not the circuit",{"type":21,"tag":22,"props":16913,"children":16914},{},[16915],{"type":31,"value":16916},"CUDA-Q's multi-GPU target distributes the state vector itself across multiple GPUs, each holding a slice of the total amplitude array. A single-qubit gate that only touches amplitudes within one GPU's slice runs locally. A gate acting on a qubit whose index crosses the partition boundary needs data from another GPU's slice, which is where NVLink or NVSwitch interconnect bandwidth between GPUs becomes the practical bottleneck rather than any single GPU's compute throughput.",{"type":21,"tag":22,"props":16918,"children":16919},{},[16920,16922,16928],{"type":31,"value":16921},"This is a fundamentally different kind of parallelism than running many independent circuits at once. CUDA-Q also ships a separate ",{"type":21,"tag":103,"props":16923,"children":16925},{"className":16924},[],[16926],{"type":31,"value":16927},"mqpu",{"type":31,"value":16929}," (multi-QPU) platform for that case: distributing a batch of independent circuit executions, a parameter sweep for a variational algorithm, for instance, across multiple simulated or real QPUs in parallel. Multi-GPU state splitting makes one larger circuit simulable. Multi-QPU distribution makes many independent circuits run faster together. Mixing these two up is an straightforward way to misread a CUDA-Q benchmark.",{"type":21,"tag":41,"props":16931,"children":16933},{"id":16932},"what-the-code-pattern-looks-like",[16934],{"type":31,"value":16935},"What the code pattern looks like",{"type":21,"tag":22,"props":16937,"children":16938},{},[16939],{"type":31,"value":16940},"CUDA-Q's design keeps the kernel itself untouched when the target changes, only the execution backend selection differs:",{"type":21,"tag":128,"props":16942,"children":16944},{"className":130,"code":16943,"language":132,"meta":7,"style":7},"import cudaq\n\n@cudaq.kernel\ndef ghz_state(n: int):\n    qubits = cudaq.qvector(n)\n    h(qubits[0])\n    for i in range(n - 1):\n        x.ctrl(qubits[i], qubits[i + 1])\n    mz(qubits)\n\n# Single GPU\ncudaq.set_target(\"nvidia\")\nresult_single = cudaq.sample(ghz_state, 30, shots_count=1000)\n\n# Multi-GPU, state vector split across all visible GPUs\ncudaq.set_target(\"nvidia\", option=\"mgpu\")\nresult_multi = cudaq.sample(ghz_state, 34, shots_count=1000)\n",[16945],{"type":21,"tag":103,"props":16946,"children":16947},{"__ignoreMap":7},[16948,16959,16966,16973,16999,17015,17030,17068,17088,17096,17103,17111,17126,17167,17174,17182,17215],{"type":21,"tag":138,"props":16949,"children":16950},{"class":140,"line":141},[16951,16955],{"type":21,"tag":138,"props":16952,"children":16953},{"style":145},[16954],{"type":31,"value":159},{"type":21,"tag":138,"props":16956,"children":16957},{"style":151},[16958],{"type":31,"value":8134},{"type":21,"tag":138,"props":16960,"children":16961},{"class":140,"line":167},[16962],{"type":21,"tag":138,"props":16963,"children":16964},{"emptyLinePlaceholder":193},[16965],{"type":31,"value":196},{"type":21,"tag":138,"props":16967,"children":16968},{"class":140,"line":189},[16969],{"type":21,"tag":138,"props":16970,"children":16971},{"style":4522},[16972],{"type":31,"value":7992},{"type":21,"tag":138,"props":16974,"children":16975},{"class":140,"line":199},[16976,16980,16985,16990,16995],{"type":21,"tag":138,"props":16977,"children":16978},{"style":145},[16979],{"type":31,"value":5500},{"type":21,"tag":138,"props":16981,"children":16982},{"style":4522},[16983],{"type":31,"value":16984}," ghz_state",{"type":21,"tag":138,"props":16986,"children":16987},{"style":151},[16988],{"type":31,"value":16989},"(n: ",{"type":21,"tag":138,"props":16991,"children":16992},{"style":213},[16993],{"type":31,"value":16994},"int",{"type":21,"tag":138,"props":16996,"children":16997},{"style":151},[16998],{"type":31,"value":7443},{"type":21,"tag":138,"props":17000,"children":17001},{"class":140,"line":225},[17002,17006,17010],{"type":21,"tag":138,"props":17003,"children":17004},{"style":151},[17005],{"type":31,"value":8017},{"type":21,"tag":138,"props":17007,"children":17008},{"style":145},[17009],{"type":31,"value":210},{"type":21,"tag":138,"props":17011,"children":17012},{"style":151},[17013],{"type":31,"value":17014}," cudaq.qvector(n)\n",{"type":21,"tag":138,"props":17016,"children":17017},{"class":140,"line":233},[17018,17022,17026],{"type":21,"tag":138,"props":17019,"children":17020},{"style":151},[17021],{"type":31,"value":8089},{"type":21,"tag":138,"props":17023,"children":17024},{"style":213},[17025],{"type":31,"value":406},{"type":21,"tag":138,"props":17027,"children":17028},{"style":151},[17029],{"type":31,"value":598},{"type":21,"tag":138,"props":17031,"children":17032},{"class":140,"line":272},[17033,17038,17042,17046,17050,17055,17059,17064],{"type":21,"tag":138,"props":17034,"children":17035},{"style":145},[17036],{"type":31,"value":17037},"    for",{"type":21,"tag":138,"props":17039,"children":17040},{"style":151},[17041],{"type":31,"value":7421},{"type":21,"tag":138,"props":17043,"children":17044},{"style":145},[17045],{"type":31,"value":1502},{"type":21,"tag":138,"props":17047,"children":17048},{"style":213},[17049],{"type":31,"value":7430},{"type":21,"tag":138,"props":17051,"children":17052},{"style":151},[17053],{"type":31,"value":17054},"(n ",{"type":21,"tag":138,"props":17056,"children":17057},{"style":145},[17058],{"type":31,"value":831},{"type":21,"tag":138,"props":17060,"children":17061},{"style":213},[17062],{"type":31,"value":17063}," 1",{"type":21,"tag":138,"props":17065,"children":17066},{"style":151},[17067],{"type":31,"value":7443},{"type":21,"tag":138,"props":17069,"children":17070},{"class":140,"line":308},[17071,17076,17080,17084],{"type":21,"tag":138,"props":17072,"children":17073},{"style":151},[17074],{"type":31,"value":17075},"        x.ctrl(qubits[i], qubits[i ",{"type":21,"tag":138,"props":17077,"children":17078},{"style":145},[17079],{"type":31,"value":1605},{"type":21,"tag":138,"props":17081,"children":17082},{"style":213},[17083],{"type":31,"value":17063},{"type":21,"tag":138,"props":17085,"children":17086},{"style":151},[17087],{"type":31,"value":598},{"type":21,"tag":138,"props":17089,"children":17090},{"class":140,"line":16},[17091],{"type":21,"tag":138,"props":17092,"children":17093},{"style":151},[17094],{"type":31,"value":17095},"    mz(qubits)\n",{"type":21,"tag":138,"props":17097,"children":17098},{"class":140,"line":360},[17099],{"type":21,"tag":138,"props":17100,"children":17101},{"emptyLinePlaceholder":193},[17102],{"type":31,"value":196},{"type":21,"tag":138,"props":17104,"children":17105},{"class":140,"line":368},[17106],{"type":21,"tag":138,"props":17107,"children":17108},{"style":219},[17109],{"type":31,"value":17110},"# Single GPU\n",{"type":21,"tag":138,"props":17112,"children":17113},{"class":140,"line":377},[17114,17118,17122],{"type":21,"tag":138,"props":17115,"children":17116},{"style":151},[17117],{"type":31,"value":8204},{"type":21,"tag":138,"props":17119,"children":17120},{"style":261},[17121],{"type":31,"value":8209},{"type":21,"tag":138,"props":17123,"children":17124},{"style":151},[17125],{"type":31,"value":269},{"type":21,"tag":138,"props":17127,"children":17128},{"class":140,"line":386},[17129,17134,17138,17143,17147,17151,17155,17159,17163],{"type":21,"tag":138,"props":17130,"children":17131},{"style":151},[17132],{"type":31,"value":17133},"result_single ",{"type":21,"tag":138,"props":17135,"children":17136},{"style":145},[17137],{"type":31,"value":210},{"type":21,"tag":138,"props":17139,"children":17140},{"style":151},[17141],{"type":31,"value":17142}," cudaq.sample(ghz_state, ",{"type":21,"tag":138,"props":17144,"children":17145},{"style":213},[17146],{"type":31,"value":14084},{"type":21,"tag":138,"props":17148,"children":17149},{"style":151},[17150],{"type":31,"value":258},{"type":21,"tag":138,"props":17152,"children":17153},{"style":929},[17154],{"type":31,"value":8234},{"type":21,"tag":138,"props":17156,"children":17157},{"style":145},[17158],{"type":31,"value":210},{"type":21,"tag":138,"props":17160,"children":17161},{"style":213},[17162],{"type":31,"value":1736},{"type":21,"tag":138,"props":17164,"children":17165},{"style":151},[17166],{"type":31,"value":269},{"type":21,"tag":138,"props":17168,"children":17169},{"class":140,"line":395},[17170],{"type":21,"tag":138,"props":17171,"children":17172},{"emptyLinePlaceholder":193},[17173],{"type":31,"value":196},{"type":21,"tag":138,"props":17175,"children":17176},{"class":140,"line":413},[17177],{"type":21,"tag":138,"props":17178,"children":17179},{"style":219},[17180],{"type":31,"value":17181},"# Multi-GPU, state vector split across all visible GPUs\n",{"type":21,"tag":138,"props":17183,"children":17184},{"class":140,"line":12602},[17185,17189,17193,17197,17202,17206,17211],{"type":21,"tag":138,"props":17186,"children":17187},{"style":151},[17188],{"type":31,"value":8204},{"type":21,"tag":138,"props":17190,"children":17191},{"style":261},[17192],{"type":31,"value":8209},{"type":21,"tag":138,"props":17194,"children":17195},{"style":151},[17196],{"type":31,"value":258},{"type":21,"tag":138,"props":17198,"children":17199},{"style":929},[17200],{"type":31,"value":17201},"option",{"type":21,"tag":138,"props":17203,"children":17204},{"style":145},[17205],{"type":31,"value":210},{"type":21,"tag":138,"props":17207,"children":17208},{"style":261},[17209],{"type":31,"value":17210},"\"mgpu\"",{"type":21,"tag":138,"props":17212,"children":17213},{"style":151},[17214],{"type":31,"value":269},{"type":21,"tag":138,"props":17216,"children":17217},{"class":140,"line":12619},[17218,17223,17227,17231,17236,17240,17244,17248,17252],{"type":21,"tag":138,"props":17219,"children":17220},{"style":151},[17221],{"type":31,"value":17222},"result_multi ",{"type":21,"tag":138,"props":17224,"children":17225},{"style":145},[17226],{"type":31,"value":210},{"type":21,"tag":138,"props":17228,"children":17229},{"style":151},[17230],{"type":31,"value":17142},{"type":21,"tag":138,"props":17232,"children":17233},{"style":213},[17234],{"type":31,"value":17235},"34",{"type":21,"tag":138,"props":17237,"children":17238},{"style":151},[17239],{"type":31,"value":258},{"type":21,"tag":138,"props":17241,"children":17242},{"style":929},[17243],{"type":31,"value":8234},{"type":21,"tag":138,"props":17245,"children":17246},{"style":145},[17247],{"type":31,"value":210},{"type":21,"tag":138,"props":17249,"children":17250},{"style":213},[17251],{"type":31,"value":1736},{"type":21,"tag":138,"props":17253,"children":17254},{"style":151},[17255],{"type":31,"value":269},{"type":21,"tag":22,"props":17257,"children":17258},{},[17259,17260,17266],{"type":31,"value":11039},{"type":21,"tag":103,"props":17261,"children":17263},{"className":17262},[],[17264],{"type":31,"value":17265},"ghz_state",{"type":31,"value":17267}," kernel is identical in both cases. Only the goal line changes, which is the actual value proposition: the same program that runs on a laptop CPU target during development runs unmodified on a multi-GPU cluster once the circuit outgrows single-GPU memory, without a rewrite.",{"type":21,"tag":41,"props":17269,"children":17271},{"id":17270},"what-needs-verification-before-you-trust-a-claim-here",[17272],{"type":31,"value":17273},"What needs verification before you trust a claim here",{"type":21,"tag":22,"props":17275,"children":17276},{},[17277,17279,17285,17286,17292],{"type":31,"value":17278},"Because this guide wasn't run against real hardware, treat every specific number in NVIDIA's own multi-GPU documentation (scaling efficiency, maximum qubit counts at a given GPU count, interconnect bandwidth requirements) as a vendor assertion to check rather than a fact to repeat, the same standard this site applies to any hardware supplier's own benchmark. What's verifiable without a cluster: that the kernel code above is syntactically valid CUDA-Q, and that the ",{"type":21,"tag":103,"props":17280,"children":17282},{"className":17281},[],[17283],{"type":31,"value":17284},"nvidia",{"type":31,"value":3628},{"type":21,"tag":103,"props":17287,"children":17289},{"className":17288},[],[17290],{"type":31,"value":17291},"mgpu",{"type":31,"value":17293}," targets are real, documented options rather than something invented for this guide. Beyond that, run it on real multi-GPU hardware, or read NVIDIA's own published multi-GPU benchmarks, before citing a specific scaling number.",{"type":21,"tag":41,"props":17295,"children":17297},{"id":17296},"where-this-fits-with-nvqlink",[17298],{"type":31,"value":17299},"Where this fits with NVQLink",{"type":21,"tag":22,"props":17301,"children":17302},{},[17303,17305,17311],{"type":31,"value":17304},"Multi-GPU state simulation and ",{"type":21,"tag":26,"props":17306,"children":17308},{"href":17307},"\u002Fnvqlink",[17309],{"type":31,"value":17310},"NVQLink",{"type":31,"value":17312}," solve two distinct problems that happen to share the equivalent underlying GPU infrastructure. Multi-GPU simulation is about classically simulating a bigger circuit than one GPU holds. NVQLink is about connecting that same GPU infrastructure to a real QPU's control electronics fast enough to do real-time error correction decoding. Read together, they describe NVIDIA's strategy: own the classical compute layer on both sides of the quantum-classical boundary, regardless of whether the workload is simulating a circuit or decoding one from real hardware.",{"type":21,"tag":41,"props":17314,"children":17315},{"id":5913},[17316],{"type":31,"value":5916},{"type":21,"tag":1118,"props":17318,"children":17319},{},[17320,17325,17345],{"type":21,"tag":71,"props":17321,"children":17322},{},[17323],{"type":31,"value":17324},"If you have access to a multi-GPU machine, install CUDA-Q following NVIDIA's own Linux installation guide and reproduce the target-switching pattern above on a circuit sized to outgrow one GPU's memory.",{"type":21,"tag":71,"props":17326,"children":17327},{},[17328,17330,17336,17338,17343],{"type":31,"value":17329},"Compare the CUDA-Q multi-GPU approach against ",{"type":21,"tag":26,"props":17331,"children":17333},{"href":17332},"\u002Fsdks\u002Fpennylane",[17334],{"type":31,"value":17335},"PennyLane's lightning.gpu device",{"type":31,"value":17337}," and Qiskit Aer's GPU backend, both covered in our ",{"type":21,"tag":26,"props":17339,"children":17340},{"href":3386},[17341],{"type":31,"value":17342},"simulator comparison",{"type":31,"value":17344},", to see how three different SDKs handle the same underlying memory-scaling problem.",{"type":21,"tag":71,"props":17346,"children":17347},{},[17348],{"type":31,"value":17349},"Read NVIDIA's own CUDA-Q documentation directly for the current goal names and flags, which change between releases faster than a static guide tracks.",{"type":21,"tag":1174,"props":17351,"children":17352},{},[17353],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":17355},[17356,17357,17358,17359,17360,17361],{"id":16890,"depth":167,"text":16893},{"id":16908,"depth":167,"text":16911},{"id":16932,"depth":167,"text":16935},{"id":17270,"depth":167,"text":17273},{"id":17296,"depth":167,"text":17299},{"id":5913,"depth":167,"text":5916},"content:blog:cuda-q-multi-gpu-simulation-guide.md","blog\u002Fcuda-q-multi-gpu-simulation-guide.md","blog\u002Fcuda-q-multi-gpu-simulation-guide",{"_path":17366,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":17367,"description":17368,"date":16779,"author":11,"tags":17369,"readingTime":16,"body":17370,"_type":1193,"_id":18111,"_source":1195,"_file":18112,"_stem":18113,"_extension":1198},"\u002Fblog\u002Fhamiltonian-simulation-trotter-tutorial","Hamiltonian Simulation and Trotter Decomposition: A Practical Tutorial","Build Trotterized time evolution from scratch in Qiskit: why e^(-iHt) can't be applied directly, how the Trotter-Suzuki formula turns it into real gates, and the error-versus-depth trade-off every simulation has to make.",[13,14,15],{"type":18,"children":17371,"toc":18103},[17372,17385,17391,17396,17401,17407,17412,17420,17425,17430,17436,17441,17949,17969,17975,18016,18022,18042,18046,18099],{"type":21,"tag":22,"props":17373,"children":17374},{},[17375,17377,17383],{"type":31,"value":17376},"Simulating how a quantum system evolves over time was the original reason ",{"type":21,"tag":26,"props":17378,"children":17380},{"href":17379},"\u002Fresearch\u002Ffeynman-simulating-physics-1982",[17381],{"type":31,"value":17382},"Feynman proposed quantum computers",{"type":31,"value":17384}," at all in 1982: a classical computer's memory to represent a quantum state grows exponentially with the quantity of particles, and a quantum computer's doesn't. Hamiltonian simulation is that idea made concrete, and Trotter decomposition is the standard technique that makes it buildable in real gates.",{"type":21,"tag":41,"props":17386,"children":17388},{"id":17387},"the-problem-e-iht-isnt-a-gate",[17389],{"type":31,"value":17390},"The problem: e^(-iHt) isn't a gate",{"type":21,"tag":22,"props":17392,"children":17393},{},[17394],{"type":31,"value":17395},"A quantum system evolves under its Hamiltonian H according to the Schrödinger equation, and the formal solution is the unitary e^(-iHt). If H were a single Pauli string, this would be directly implementable, single-qubit rotations and a chain of CNOTs handle that case cleanly. Real Hamiltonians aren't that simple. A Hamiltonian for an actual system is a sum of many terms, H = H₁ + H₂ + ... + Hₖ, each a different Pauli string acting on distinct qubits, and in general these terms don't commute with each other.",{"type":21,"tag":22,"props":17397,"children":17398},{},[17399],{"type":31,"value":17400},"That non-commutation is the whole obstacle. If A and B commuted, e^(-i(A+B)t) would factor into e^(-iAt)·e^(-iBt), and each term would be implementable separately. They don't, so it doesn't factor cleanly, and there's no exact circuit for the sum as a single unit for an arbitrary Hamiltonian.",{"type":21,"tag":41,"props":17402,"children":17404},{"id":17403},"the-fix-trotter-suzuki-decomposition",[17405],{"type":31,"value":17406},"The fix: Trotter-Suzuki decomposition",{"type":21,"tag":22,"props":17408,"children":17409},{},[17410],{"type":31,"value":17411},"The Lie product formula gives an escape hatch: for any two operators A and B,",{"type":21,"tag":128,"props":17413,"children":17415},{"code":17414},"e^(-i(A+B)t) = lim(n->inf) [e^(-iAt\u002Fn) * e^(-iBt\u002Fn)]^n\n",[17416],{"type":21,"tag":103,"props":17417,"children":17418},{"__ignoreMap":7},[17419],{"type":31,"value":17414},{"type":21,"tag":22,"props":17421,"children":17422},{},[17423],{"type":31,"value":17424},"Split the total evolution time t into n small steps, alternate applying each term's own (easy) evolution for a short slice of time, and repeat. As n grows, the approximation converges to the true evolution. This is first-order Trotterization, and its error scales as O(t²\u002Fn): double the quantity of steps, and the error from non-commuting terms roughly halves.",{"type":21,"tag":22,"props":17426,"children":17427},{},[17428],{"type":31,"value":17429},"A more accurate variant, second-order (symmetric) Trotterization, applies the terms in a palindromic order (A, B, ..., B, A) each half-step, cutting the error to O(t³\u002Fn²) at the cost of roughly double the gates per step. Which one to use is a real engineering trade-off between circuit depth and simulation accuracy, not a settled question with one right answer.",{"type":21,"tag":41,"props":17431,"children":17433},{"id":17432},"building-it-a-2-qubit-heisenberg-model",[17434],{"type":31,"value":17435},"Building it: a 2-qubit Heisenberg model",{"type":21,"tag":22,"props":17437,"children":17438},{},[17439],{"type":31,"value":17440},"The Heisenberg Hamiltonian H = J(XX + YY + ZZ) on two qubits is a standard, small test case: three non-commuting two-qubit terms, small enough to reason about by hand, large enough to show real Trotter error.",{"type":21,"tag":128,"props":17442,"children":17444},{"code":17443,"language":132,"meta":7,"className":130,"style":7},"import numpy as np\nfrom qiskit import QuantumCircuit\nfrom qiskit.circuit.library import PauliEvolutionGate\nfrom qiskit.quantum_info import SparsePauliOp\n\nJ = 1.0\nhamiltonian = SparsePauliOp.from_list([\n    (\"XX\", J),\n    (\"YY\", J),\n    (\"ZZ\", J),\n])\n\ndef trotter_step(qc, dt):\n    \"\"\"One first-order Trotter step: apply each Pauli term's evolution in sequence.\"\"\"\n    for pauli, coeff in zip(hamiltonian.paulis, hamiltonian.coeffs):\n        term = SparsePauliOp(pauli, coeff)\n        qc.append(PauliEvolutionGate(term, time=dt), range(2))\n    return qc\n\ndef trotterized_evolution(t, steps):\n    qc = QuantumCircuit(2)\n    dt = t \u002F steps\n    for _ in range(steps):\n        trotter_step(qc, dt)\n    return qc\n\ncircuit = trotterized_evolution(t=1.0, steps=4)\nprint(circuit.count_ops())\n",[17445],{"type":21,"tag":103,"props":17446,"children":17447},{"__ignoreMap":7},[17448,17467,17486,17506,17527,17534,17551,17568,17586,17602,17618,17625,17632,17649,17657,17683,17700,17739,17751,17758,17776,17801,17828,17854,17863,17875,17883,17936],{"type":21,"tag":138,"props":17449,"children":17450},{"class":140,"line":141},[17451,17455,17459,17463],{"type":21,"tag":138,"props":17452,"children":17453},{"style":145},[17454],{"type":31,"value":159},{"type":21,"tag":138,"props":17456,"children":17457},{"style":151},[17458],{"type":31,"value":8530},{"type":21,"tag":138,"props":17460,"children":17461},{"style":145},[17462],{"type":31,"value":5356},{"type":21,"tag":138,"props":17464,"children":17465},{"style":151},[17466],{"type":31,"value":8632},{"type":21,"tag":138,"props":17468,"children":17469},{"class":140,"line":167},[17470,17474,17478,17482],{"type":21,"tag":138,"props":17471,"children":17472},{"style":145},[17473],{"type":31,"value":148},{"type":21,"tag":138,"props":17475,"children":17476},{"style":151},[17477],{"type":31,"value":154},{"type":21,"tag":138,"props":17479,"children":17480},{"style":145},[17481],{"type":31,"value":159},{"type":21,"tag":138,"props":17483,"children":17484},{"style":151},[17485],{"type":31,"value":6282},{"type":21,"tag":138,"props":17487,"children":17488},{"class":140,"line":189},[17489,17493,17497,17501],{"type":21,"tag":138,"props":17490,"children":17491},{"style":145},[17492],{"type":31,"value":148},{"type":21,"tag":138,"props":17494,"children":17495},{"style":151},[17496],{"type":31,"value":12842},{"type":21,"tag":138,"props":17498,"children":17499},{"style":145},[17500],{"type":31,"value":159},{"type":21,"tag":138,"props":17502,"children":17503},{"style":151},[17504],{"type":31,"value":17505}," PauliEvolutionGate\n",{"type":21,"tag":138,"props":17507,"children":17508},{"class":140,"line":199},[17509,17513,17518,17522],{"type":21,"tag":138,"props":17510,"children":17511},{"style":145},[17512],{"type":31,"value":148},{"type":21,"tag":138,"props":17514,"children":17515},{"style":151},[17516],{"type":31,"value":17517}," qiskit.quantum_info ",{"type":21,"tag":138,"props":17519,"children":17520},{"style":145},[17521],{"type":31,"value":159},{"type":21,"tag":138,"props":17523,"children":17524},{"style":151},[17525],{"type":31,"value":17526}," SparsePauliOp\n",{"type":21,"tag":138,"props":17528,"children":17529},{"class":140,"line":225},[17530],{"type":21,"tag":138,"props":17531,"children":17532},{"emptyLinePlaceholder":193},[17533],{"type":31,"value":196},{"type":21,"tag":138,"props":17535,"children":17536},{"class":140,"line":233},[17537,17542,17546],{"type":21,"tag":138,"props":17538,"children":17539},{"style":151},[17540],{"type":31,"value":17541},"J ",{"type":21,"tag":138,"props":17543,"children":17544},{"style":145},[17545],{"type":31,"value":210},{"type":21,"tag":138,"props":17547,"children":17548},{"style":213},[17549],{"type":31,"value":17550}," 1.0\n",{"type":21,"tag":138,"props":17552,"children":17553},{"class":140,"line":272},[17554,17559,17563],{"type":21,"tag":138,"props":17555,"children":17556},{"style":151},[17557],{"type":31,"value":17558},"hamiltonian ",{"type":21,"tag":138,"props":17560,"children":17561},{"style":145},[17562],{"type":31,"value":210},{"type":21,"tag":138,"props":17564,"children":17565},{"style":151},[17566],{"type":31,"value":17567}," SparsePauliOp.from_list([\n",{"type":21,"tag":138,"props":17569,"children":17570},{"class":140,"line":308},[17571,17576,17581],{"type":21,"tag":138,"props":17572,"children":17573},{"style":151},[17574],{"type":31,"value":17575},"    (",{"type":21,"tag":138,"props":17577,"children":17578},{"style":261},[17579],{"type":31,"value":17580},"\"XX\"",{"type":21,"tag":138,"props":17582,"children":17583},{"style":151},[17584],{"type":31,"value":17585},", J),\n",{"type":21,"tag":138,"props":17587,"children":17588},{"class":140,"line":16},[17589,17593,17598],{"type":21,"tag":138,"props":17590,"children":17591},{"style":151},[17592],{"type":31,"value":17575},{"type":21,"tag":138,"props":17594,"children":17595},{"style":261},[17596],{"type":31,"value":17597},"\"YY\"",{"type":21,"tag":138,"props":17599,"children":17600},{"style":151},[17601],{"type":31,"value":17585},{"type":21,"tag":138,"props":17603,"children":17604},{"class":140,"line":360},[17605,17609,17614],{"type":21,"tag":138,"props":17606,"children":17607},{"style":151},[17608],{"type":31,"value":17575},{"type":21,"tag":138,"props":17610,"children":17611},{"style":261},[17612],{"type":31,"value":17613},"\"ZZ\"",{"type":21,"tag":138,"props":17615,"children":17616},{"style":151},[17617],{"type":31,"value":17585},{"type":21,"tag":138,"props":17619,"children":17620},{"class":140,"line":368},[17621],{"type":21,"tag":138,"props":17622,"children":17623},{"style":151},[17624],{"type":31,"value":598},{"type":21,"tag":138,"props":17626,"children":17627},{"class":140,"line":377},[17628],{"type":21,"tag":138,"props":17629,"children":17630},{"emptyLinePlaceholder":193},[17631],{"type":31,"value":196},{"type":21,"tag":138,"props":17633,"children":17634},{"class":140,"line":386},[17635,17639,17644],{"type":21,"tag":138,"props":17636,"children":17637},{"style":145},[17638],{"type":31,"value":5500},{"type":21,"tag":138,"props":17640,"children":17641},{"style":4522},[17642],{"type":31,"value":17643}," trotter_step",{"type":21,"tag":138,"props":17645,"children":17646},{"style":151},[17647],{"type":31,"value":17648},"(qc, dt):\n",{"type":21,"tag":138,"props":17650,"children":17651},{"class":140,"line":395},[17652],{"type":21,"tag":138,"props":17653,"children":17654},{"style":261},[17655],{"type":31,"value":17656},"    \"\"\"One first-order Trotter step: apply each Pauli term's evolution in sequence.\"\"\"\n",{"type":21,"tag":138,"props":17658,"children":17659},{"class":140,"line":413},[17660,17664,17669,17673,17678],{"type":21,"tag":138,"props":17661,"children":17662},{"style":145},[17663],{"type":31,"value":17037},{"type":21,"tag":138,"props":17665,"children":17666},{"style":151},[17667],{"type":31,"value":17668}," pauli, coeff ",{"type":21,"tag":138,"props":17670,"children":17671},{"style":145},[17672],{"type":31,"value":1502},{"type":21,"tag":138,"props":17674,"children":17675},{"style":213},[17676],{"type":31,"value":17677}," zip",{"type":21,"tag":138,"props":17679,"children":17680},{"style":151},[17681],{"type":31,"value":17682},"(hamiltonian.paulis, hamiltonian.coeffs):\n",{"type":21,"tag":138,"props":17684,"children":17685},{"class":140,"line":12602},[17686,17691,17695],{"type":21,"tag":138,"props":17687,"children":17688},{"style":151},[17689],{"type":31,"value":17690},"        term ",{"type":21,"tag":138,"props":17692,"children":17693},{"style":145},[17694],{"type":31,"value":210},{"type":21,"tag":138,"props":17696,"children":17697},{"style":151},[17698],{"type":31,"value":17699}," SparsePauliOp(pauli, coeff)\n",{"type":21,"tag":138,"props":17701,"children":17702},{"class":140,"line":12619},[17703,17708,17713,17717,17722,17727,17731,17735],{"type":21,"tag":138,"props":17704,"children":17705},{"style":151},[17706],{"type":31,"value":17707},"        qc.append(PauliEvolutionGate(term, ",{"type":21,"tag":138,"props":17709,"children":17710},{"style":929},[17711],{"type":31,"value":17712},"time",{"type":21,"tag":138,"props":17714,"children":17715},{"style":145},[17716],{"type":31,"value":210},{"type":21,"tag":138,"props":17718,"children":17719},{"style":151},[17720],{"type":31,"value":17721},"dt), ",{"type":21,"tag":138,"props":17723,"children":17724},{"style":213},[17725],{"type":31,"value":17726},"range",{"type":21,"tag":138,"props":17728,"children":17729},{"style":151},[17730],{"type":31,"value":959},{"type":21,"tag":138,"props":17732,"children":17733},{"style":213},[17734],{"type":31,"value":292},{"type":21,"tag":138,"props":17736,"children":17737},{"style":151},[17738],{"type":31,"value":5609},{"type":21,"tag":138,"props":17740,"children":17741},{"class":140,"line":12635},[17742,17746],{"type":21,"tag":138,"props":17743,"children":17744},{"style":145},[17745],{"type":31,"value":5595},{"type":21,"tag":138,"props":17747,"children":17748},{"style":151},[17749],{"type":31,"value":17750}," qc\n",{"type":21,"tag":138,"props":17752,"children":17753},{"class":140,"line":12643},[17754],{"type":21,"tag":138,"props":17755,"children":17756},{"emptyLinePlaceholder":193},[17757],{"type":31,"value":196},{"type":21,"tag":138,"props":17759,"children":17761},{"class":140,"line":17760},20,[17762,17766,17771],{"type":21,"tag":138,"props":17763,"children":17764},{"style":145},[17765],{"type":31,"value":5500},{"type":21,"tag":138,"props":17767,"children":17768},{"style":4522},[17769],{"type":31,"value":17770}," trotterized_evolution",{"type":21,"tag":138,"props":17772,"children":17773},{"style":151},[17774],{"type":31,"value":17775},"(t, steps):\n",{"type":21,"tag":138,"props":17777,"children":17779},{"class":140,"line":17778},21,[17780,17785,17789,17793,17797],{"type":21,"tag":138,"props":17781,"children":17782},{"style":151},[17783],{"type":31,"value":17784},"    qc ",{"type":21,"tag":138,"props":17786,"children":17787},{"style":145},[17788],{"type":31,"value":210},{"type":21,"tag":138,"props":17790,"children":17791},{"style":151},[17792],{"type":31,"value":6305},{"type":21,"tag":138,"props":17794,"children":17795},{"style":213},[17796],{"type":31,"value":292},{"type":21,"tag":138,"props":17798,"children":17799},{"style":151},[17800],{"type":31,"value":269},{"type":21,"tag":138,"props":17802,"children":17804},{"class":140,"line":17803},22,[17805,17810,17814,17819,17823],{"type":21,"tag":138,"props":17806,"children":17807},{"style":151},[17808],{"type":31,"value":17809},"    dt ",{"type":21,"tag":138,"props":17811,"children":17812},{"style":145},[17813],{"type":31,"value":210},{"type":21,"tag":138,"props":17815,"children":17816},{"style":151},[17817],{"type":31,"value":17818}," t ",{"type":21,"tag":138,"props":17820,"children":17821},{"style":145},[17822],{"type":31,"value":5075},{"type":21,"tag":138,"props":17824,"children":17825},{"style":151},[17826],{"type":31,"value":17827}," steps\n",{"type":21,"tag":138,"props":17829,"children":17831},{"class":140,"line":17830},23,[17832,17836,17841,17845,17849],{"type":21,"tag":138,"props":17833,"children":17834},{"style":145},[17835],{"type":31,"value":17037},{"type":21,"tag":138,"props":17837,"children":17838},{"style":151},[17839],{"type":31,"value":17840}," _ ",{"type":21,"tag":138,"props":17842,"children":17843},{"style":145},[17844],{"type":31,"value":1502},{"type":21,"tag":138,"props":17846,"children":17847},{"style":213},[17848],{"type":31,"value":7430},{"type":21,"tag":138,"props":17850,"children":17851},{"style":151},[17852],{"type":31,"value":17853},"(steps):\n",{"type":21,"tag":138,"props":17855,"children":17857},{"class":140,"line":17856},24,[17858],{"type":21,"tag":138,"props":17859,"children":17860},{"style":151},[17861],{"type":31,"value":17862},"        trotter_step(qc, dt)\n",{"type":21,"tag":138,"props":17864,"children":17866},{"class":140,"line":17865},25,[17867,17871],{"type":21,"tag":138,"props":17868,"children":17869},{"style":145},[17870],{"type":31,"value":5595},{"type":21,"tag":138,"props":17872,"children":17873},{"style":151},[17874],{"type":31,"value":17750},{"type":21,"tag":138,"props":17876,"children":17878},{"class":140,"line":17877},26,[17879],{"type":21,"tag":138,"props":17880,"children":17881},{"emptyLinePlaceholder":193},[17882],{"type":31,"value":196},{"type":21,"tag":138,"props":17884,"children":17886},{"class":140,"line":17885},27,[17887,17891,17895,17900,17905,17909,17914,17918,17923,17927,17932],{"type":21,"tag":138,"props":17888,"children":17889},{"style":151},[17890],{"type":31,"value":4792},{"type":21,"tag":138,"props":17892,"children":17893},{"style":145},[17894],{"type":31,"value":210},{"type":21,"tag":138,"props":17896,"children":17897},{"style":151},[17898],{"type":31,"value":17899}," trotterized_evolution(",{"type":21,"tag":138,"props":17901,"children":17902},{"style":929},[17903],{"type":31,"value":17904},"t",{"type":21,"tag":138,"props":17906,"children":17907},{"style":145},[17908],{"type":31,"value":210},{"type":21,"tag":138,"props":17910,"children":17911},{"style":213},[17912],{"type":31,"value":17913},"1.0",{"type":21,"tag":138,"props":17915,"children":17916},{"style":151},[17917],{"type":31,"value":258},{"type":21,"tag":138,"props":17919,"children":17920},{"style":929},[17921],{"type":31,"value":17922},"steps",{"type":21,"tag":138,"props":17924,"children":17925},{"style":145},[17926],{"type":31,"value":210},{"type":21,"tag":138,"props":17928,"children":17929},{"style":213},[17930],{"type":31,"value":17931},"4",{"type":21,"tag":138,"props":17933,"children":17934},{"style":151},[17935],{"type":31,"value":269},{"type":21,"tag":138,"props":17937,"children":17939},{"class":140,"line":17938},28,[17940,17944],{"type":21,"tag":138,"props":17941,"children":17942},{"style":213},[17943],{"type":31,"value":954},{"type":21,"tag":138,"props":17945,"children":17946},{"style":151},[17947],{"type":31,"value":17948},"(circuit.count_ops())\n",{"type":21,"tag":22,"props":17950,"children":17951},{},[17952,17954,17960,17962,17967],{"type":31,"value":17953},"Each of the 4 steps applies 3 Pauli-term evolutions, so this circuit contains 12 ",{"type":21,"tag":103,"props":17955,"children":17957},{"className":17956},[],[17958],{"type":31,"value":17959},"PauliEvolutionGate",{"type":31,"value":17961}," instances before decomposition, each of which expands to a small fixed number of CNOTs and single-qubit rotations once transpiled. Doubling ",{"type":21,"tag":103,"props":17963,"children":17965},{"className":17964},[],[17966],{"type":31,"value":17922},{"type":31,"value":17968}," to 8 doubles the gate count in exactly the same way: it's a direct, mechanical consequence of the loop structure, not something that needs simulation to verify.",{"type":21,"tag":41,"props":17970,"children":17972},{"id":17971},"watching-the-error-versus-depth-trade-off",[17973],{"type":31,"value":17974},"Watching the error-versus-depth trade-off",{"type":21,"tag":22,"props":17976,"children":17977},{},[17978,17980,17986,17988,17994,17995,18001,18003,18008,18010,18014],{"type":31,"value":17979},"The error between the Trotterized circuit and the true evolution e^(-iHt) is a real, measurable quantity (compare the Trotterized unitary against ",{"type":21,"tag":103,"props":17981,"children":17983},{"className":17982},[],[17984],{"type":31,"value":17985},"scipy.linalg.expm(-1j * H_matrix * t)",{"type":31,"value":17987}," using ",{"type":21,"tag":103,"props":17989,"children":17991},{"className":17990},[],[17992],{"type":31,"value":17993},"qiskit.quantum_info.Operator",{"type":31,"value":3628},{"type":21,"tag":103,"props":17996,"children":17998},{"className":17997},[],[17999],{"type":31,"value":18000},"process_fidelity",{"type":31,"value":18002},"), and it shrinks as ",{"type":21,"tag":103,"props":18004,"children":18006},{"className":18005},[],[18007],{"type":31,"value":17922},{"type":31,"value":18009}," grows, per the O(t²\u002Fn) scaling for first-order Trotter derived above. What that scaling means in practice: doubling the step count roughly halves the error for a fixed total time t, but doubles the circuit depth too, so on real noisy hardware there's a real crossover point where adding more Trotter steps to reduce approximation error starts adding more hardware noise than it removes. Finding that crossover for your specific device and Hamiltonian is an empirical exercise worth running yourself on a ",{"type":21,"tag":26,"props":18011,"children":18012},{"href":3304},[18013],{"type":31,"value":9824},{"type":31,"value":18015}," with a realistic noise model before trusting either extreme.",{"type":21,"tag":41,"props":18017,"children":18019},{"id":18018},"where-this-gets-used",[18020],{"type":31,"value":18021},"Where this gets used",{"type":21,"tag":22,"props":18023,"children":18024},{},[18025,18027,18033,18035,18040],{"type":31,"value":18026},"Hamiltonian simulation is the substrate underneath several things covered elsewhere on this site. ",{"type":21,"tag":26,"props":18028,"children":18030},{"href":18029},"\u002Fblog\u002Fquantum-fourier-transform-tutorial",[18031],{"type":31,"value":18032},"Quantum phase estimation",{"type":31,"value":18034}," needs controlled powers of e^(-iHt) as its core primitive. The ",{"type":21,"tag":26,"props":18036,"children":18037},{"href":3518},[18038],{"type":31,"value":18039},"quantum chemistry work simulating a 303-atom protein",{"type":31,"value":18041}," depends on efficient Trotterized (or better, non-Trotter product-formula) simulation of a molecular Hamiltonian's active space. Materials science and condensed-matter simulation, the use case IonQ's decoder work and several vendors' roadmaps point toward, is fundamentally \"run Hamiltonian simulation on a Hamiltonian nobody diagonalizes classically at the sizes that matter.\"",{"type":21,"tag":41,"props":18043,"children":18044},{"id":5913},[18045],{"type":31,"value":5916},{"type":21,"tag":1118,"props":18047,"children":18048},{},[18049,18083,18088],{"type":21,"tag":71,"props":18050,"children":18051},{},[18052,18054,18059,18061,18067,18069,18074,18076,18081],{"type":31,"value":18053},"Compute ",{"type":21,"tag":103,"props":18055,"children":18057},{"className":18056},[],[18058],{"type":31,"value":18000},{"type":31,"value":18060}," between the Trotterized circuit above and the exact ",{"type":21,"tag":103,"props":18062,"children":18064},{"className":18063},[],[18065],{"type":31,"value":18066},"expm",{"type":31,"value":18068}," evolution for ",{"type":21,"tag":103,"props":18070,"children":18072},{"className":18071},[],[18073],{"type":31,"value":17922},{"type":31,"value":18075}," in ",{"type":21,"tag":138,"props":18077,"children":18078},{},[18079],{"type":31,"value":18080},"1, 2, 4, 8, 16",{"type":31,"value":18082}," and plot the error curve yourself. It should visibly bend toward the O(t²\u002Fn) prediction.",{"type":21,"tag":71,"props":18084,"children":18085},{},[18086],{"type":31,"value":18087},"Swap the second-order symmetric ordering in for the first-order loop above and compare gate count against error reduction.",{"type":21,"tag":71,"props":18089,"children":18090},{},[18091,18092,18097],{"type":31,"value":13448},{"type":21,"tag":26,"props":18093,"children":18094},{"href":3623},[18095],{"type":31,"value":18096},"VQE guide",{"type":31,"value":18098}," for the companion technique: instead of simulating time evolution, VQE searches directly for a Hamiltonian's ground state.",{"type":21,"tag":1174,"props":18100,"children":18101},{},[18102],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":18104},[18105,18106,18107,18108,18109,18110],{"id":17387,"depth":167,"text":17390},{"id":17403,"depth":167,"text":17406},{"id":17432,"depth":167,"text":17435},{"id":17971,"depth":167,"text":17974},{"id":18018,"depth":167,"text":18021},{"id":5913,"depth":167,"text":5916},"content:blog:hamiltonian-simulation-trotter-tutorial.md","blog\u002Fhamiltonian-simulation-trotter-tutorial.md","blog\u002Fhamiltonian-simulation-trotter-tutorial",{"_path":10633,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":18115,"description":18116,"date":16779,"author":11,"tags":18117,"readingTime":233,"body":18118,"_type":1193,"_id":18216,"_source":1195,"_file":18217,"_stem":18218,"_extension":1198},"IonQ Goes Back to the Lab That Built Its First Ion Traps, This Time for National Security","IonQ signed a memorandum of understanding with Sandia National Laboratories to co-design quantum hardware for government applications, reviving a technical relationship that goes back to IonQ's earliest ion traps.",[3409,1213,16328],{"type":18,"children":18119,"toc":18209},[18120,18133,18139,18151,18157,18170,18176,18181,18187,18200,18204],{"type":21,"tag":22,"props":18121,"children":18122},{},[18123,18125,18131],{"type":31,"value":18124},"IonQ signed a memorandum of understanding with Sandia National Laboratories on August 4, 2026, to jointly develop quantum computing and networking technology for U.S. national security applications. The work centers on Sandia's Quantum Demonstration Facility in New Mexico, and covers ion trap fabrication, silicon photonics, and system integration. No dollar figure, timeline, or specific deliverable is attached to the announcement. That makes this a different kind of story than IonQ's ",{"type":21,"tag":26,"props":18126,"children":18128},{"href":18127},"\u002Fblog\u002Fionq-epb-tennessee-quantum-communications-center",[18129],{"type":31,"value":18130},"$15 million Chattanooga fiber network deal",{"type":31,"value":18132}," from the day before: a stated intent to collaborate, not a funded project with a scope.",{"type":21,"tag":41,"props":18134,"children":18136},{"id":18135},"the-history-behind-the-handshake",[18137],{"type":31,"value":18138},"The history behind the handshake",{"type":21,"tag":22,"props":18140,"children":18141},{},[18142,18144,18149],{"type":31,"value":18143},"The most concrete detail in the announcement is not the MOU itself. It is a line from Dr. Rick Muller, SVP and Chief Scientist at IonQ Federal: Sandia fabricated the ion traps that IonQ's earliest quantum computers were built on. That is a real, checkable technical lineage, not marketing color. IonQ's ",{"type":21,"tag":26,"props":18145,"children":18146},{"href":1106},[18147],{"type":31,"value":18148},"trapped-ion",{"type":31,"value":18150}," architecture traces back to academic work at the University of Maryland and Duke, and Sandia has spent decades as a national fabrication resource for ion trap chips used across that research community. An MOU that brings IonQ back to the lab that fabricated its original hardware is a continuation of an existing relationship, not a new partnership formed from scratch.",{"type":21,"tag":41,"props":18152,"children":18154},{"id":18153},"what-an-mou-commits-to",[18155],{"type":31,"value":18156},"What an MOU commits to",{"type":21,"tag":22,"props":18158,"children":18159},{},[18160,18162,18168],{"type":31,"value":18161},"A memorandum of understanding is a statement of intent between organizations, not a funded contract. It does not obligate either party to specific milestones, headcount, or spending, which is why this announcement reads thinner than IonQ's Tennessee deal or its ",{"type":21,"tag":26,"props":18163,"children":18165},{"href":18164},"\u002Fblog\u002Fionq-skywater-acquisition-explained",[18166],{"type":31,"value":18167},"SkyWater acquisition",{"type":31,"value":18169},", both of which came with dollar amounts attached. What the MOU does establish is scope: co-design of quantum computing and networking capabilities, covering system optimization, device development, characterization, and testing, aimed at government mission applications. Sandia's Quantum Demonstration Facility is described as a hub that offers third-party verification for quantum computing pathways, which matters for a government customer that needs an independent check on supplier performance claims rather than taking a company's own benchmark numbers at face value.",{"type":21,"tag":41,"props":18171,"children":18173},{"id":18172},"ionq-federal-is-doing-the-talking",[18174],{"type":31,"value":18175},"IonQ Federal is doing the talking",{"type":21,"tag":22,"props":18177,"children":18178},{},[18179],{"type":31,"value":18180},"The quote comes from IonQ Federal specifically, not IonQ's general executive team. That is a signal worth noting on its own: IonQ has built out a federal-focused arm, and this MOU is that arm's work, sitting alongside IonQ's existing government and defense-adjacent activity. Pair that with CEO Niccolo de Masi's framing of the deal against the Manhattan Project and the Space Race, and the announcement is doing two things at once. One is a real technical claim about fabrication history and facility access. The other is standard-issue positioning language a company puts out when it wants a national security story to read as bigger than an MOU. Worth separating the two rather than taking the historical framing as evidence the technical outcome is guaranteed.",{"type":21,"tag":41,"props":18182,"children":18184},{"id":18183},"the-fidelity-number-worth-tracking",[18185],{"type":31,"value":18186},"The fidelity number worth tracking",{"type":21,"tag":22,"props":18188,"children":18189},{},[18190,18192,18198],{"type":31,"value":18191},"The announcement mentions IonQ's 2025 result of 99.99% two-qubit ",{"type":21,"tag":26,"props":18193,"children":18195},{"href":18194},"\u002Fglossary\u002Ffidelity",[18196],{"type":31,"value":18197},"gate fidelity",{"type":31,"value":18199}," as background context for why Sandia would want this collaboration. That figure is real and independently notable, but it says nothing about what this specific MOU will produce. If the collaboration is working, the evidence to look for is not another fidelity headline. It is whether Sandia-fabricated hardware or silicon photonics components demonstrate up in a future IonQ system announcement, and whether IonQ Federal names a specific government program using this collaboration's output.",{"type":21,"tag":41,"props":18201,"children":18202},{"id":3474},[18203],{"type":31,"value":3477},{"type":21,"tag":22,"props":18205,"children":18206},{},[18207],{"type":31,"value":18208},"MOUs are cheap to announce and easy to let quietly expire without a follow-up. The test here is a concrete deliverable: a jointly developed component, a named government program, or a technical report from the Quantum Demonstration Facility that references this work. Until one of those shows up, treat this as IonQ formalizing a relationship with a lab it already has history with, aimed at the national security market it has been building IonQ Federal to serve.",{"title":7,"searchDepth":167,"depth":167,"links":18210},[18211,18212,18213,18214,18215],{"id":18135,"depth":167,"text":18138},{"id":18153,"depth":167,"text":18156},{"id":18172,"depth":167,"text":18175},{"id":18183,"depth":167,"text":18186},{"id":3474,"depth":167,"text":3477},"content:blog:ionq-sandia-national-labs-mou-quantum-co-design.md","blog\u002Fionq-sandia-national-labs-mou-quantum-co-design.md","blog\u002Fionq-sandia-national-labs-mou-quantum-co-design",{"_path":18220,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":18221,"description":18222,"date":16779,"author":11,"tags":18223,"readingTime":272,"body":18224,"_type":1193,"_id":18320,"_source":1195,"_file":18321,"_stem":18322,"_extension":1198},"\u002Fblog\u002Fnvidia-cuda-q-accelerated-decoders-ecosystem","NVIDIA's GPU Decoders Are Already Cutting Real Error-Correction Runtimes by 9x","Alice & Bob cut a decoding run from 18 hours to under 2 using NVIDIA CUDA-Q QEC's GPU decoders. Quantum X Labs benchmarked a transformer-based decoder against classical matching. Independent third-party results, not only a vendor's own claim.",[14733,1213,13895],{"type":18,"children":18225,"toc":18313},[18226,18231,18237,18249,18255,18267,18273,18285,18291,18296,18300],{"type":21,"tag":22,"props":18227,"children":18228},{},[18229],{"type":31,"value":18230},"Most GPU-decoder coverage on this site so far has been about NVIDIA's own claims for its own tools. This is a different kind of story: independent companies running their own error-correction workloads on NVIDIA's CUDA-Q QEC library and publishing their own numbers, which carries more weight than a provider benchmarking its own product.",{"type":21,"tag":41,"props":18232,"children":18234},{"id":18233},"alice-bob-18-hours-to-under-2",[18235],{"type":31,"value":18236},"Alice & Bob: 18 hours to under 2",{"type":21,"tag":22,"props":18238,"children":18239},{},[18240,18242,18247],{"type":31,"value":18241},"In March 2026, Alice & Bob reported a 9.25x speedup decoding quantum error correction data by moving the workload onto GPUs through CUDA-Q, cutting a run that took 18 hours on CPU down to under 2 hours. The company reported the GPU-accelerated version produced the same logical error performance as the CPU baseline, meaning the speedup came from throughput, not from a shortcut that traded accuracy for speed. That distinction matters: a decoder that's fast because it's cutting corners isn't solving the ",{"type":21,"tag":26,"props":18243,"children":18244},{"href":14761},[18245],{"type":31,"value":18246},"real-time decoding problem",{"type":31,"value":18248}," this site has covered as the real bottleneck standing between today's hardware and fault tolerance.",{"type":21,"tag":41,"props":18250,"children":18252},{"id":18251},"quantum-x-labs-a-transformer-decoder-against-the-classical-baseline",[18253],{"type":31,"value":18254},"Quantum X Labs: a transformer decoder against the classical baseline",{"type":21,"tag":22,"props":18256,"children":18257},{},[18258,18260,18265],{"type":31,"value":18259},"In July 2026, Quantum X Labs ran its Deep Quantum Error Correction workflow on GPU in an AWS environment, benchmarking a transformer-based decoder called QECCT against minimum-weight perfect matching, the ",{"type":21,"tag":26,"props":18261,"children":18262},{"href":3459},[18263],{"type":31,"value":18264},"classical decoding baseline",{"type":31,"value":18266}," this site already tracks as the maintained standard. QECCT reportedly outperformed MWPM in selected simulated toric-code noise configurations, worth reading precisely: \"outperformed in selected configurations\" is a real, specific, checkable claim, and a narrower one than \"outperforms MWPM,\" which the coverage doesn't say.",{"type":21,"tag":41,"props":18268,"children":18270},{"id":18269},"what-cuda-q-qec-050-added",[18271],{"type":31,"value":18272},"What CUDA-Q QEC 0.5.0 added",{"type":21,"tag":22,"props":18274,"children":18275},{},[18276,18278,18283],{"type":31,"value":18277},"The underlying library both companies built on picked up real capability in its 0.5.0 release: online real-time decoding, GPU-accelerated algorithmic decoders, higher-performance AI decoder inference infrastructure, sliding-window decoder support, and RelayBP, an improvement on BP+OSD decoding for qLDPC codes that adds memory-strength damping per graph node to help convergence. That's the same qLDPC code family our ",{"type":21,"tag":26,"props":18279,"children":18280},{"href":16835},[18281],{"type":31,"value":18282},"coverage of USTC and Origin Quantum's routing codes",{"type":31,"value":18284}," discussed from the code-design side. A better decoder and a better code are separate contributions to the same overhead problem, and both are needed together for either to pay off in practice.",{"type":21,"tag":41,"props":18286,"children":18288},{"id":18287},"why-third-party-adoption-is-the-more-interesting-story-here",[18289],{"type":31,"value":18290},"Why third-party adoption is the more interesting story here",{"type":21,"tag":22,"props":18292,"children":18293},{},[18294],{"type":31,"value":18295},"A vendor's own benchmark tells you what a vendor wants you to know. Two independent companies choosing to build their production decoding workflows on the equivalent GPU infrastructure, and being willing to publish their own numbers rather than only NVIDIA's, is a different and stronger kind of evidence. It doesn't make either company's specific number independently verified in the peer-review sense, but it does mean the underlying tool is getting real use outside NVIDIA's own marketing, which is the actual test for whether infrastructure like this sticks.",{"type":21,"tag":41,"props":18297,"children":18298},{"id":3474},[18299],{"type":31,"value":3477},{"type":21,"tag":22,"props":18301,"children":18302},{},[18303,18305,18311],{"type":31,"value":18304},"Whether more companies publish their own before-and-after numbers using CUDA-Q QEC's decoders, and whether any of these results eventually go through formal peer review rather than only a press release or blog post. Our ",{"type":21,"tag":26,"props":18306,"children":18308},{"href":18307},"\u002Fblog\u002Fquantum-computing-picks-and-shovels-supply-chain",[18309],{"type":31,"value":18310},"picks-and-shovels supply chain piece",{"type":31,"value":18312}," covers NVIDIA's broader infrastructure strategy, of which this decoder ecosystem is one concrete, checkable piece.",{"title":7,"searchDepth":167,"depth":167,"links":18314},[18315,18316,18317,18318,18319],{"id":18233,"depth":167,"text":18236},{"id":18251,"depth":167,"text":18254},{"id":18269,"depth":167,"text":18272},{"id":18287,"depth":167,"text":18290},{"id":3474,"depth":167,"text":3477},"content:blog:nvidia-cuda-q-accelerated-decoders-ecosystem.md","blog\u002Fnvidia-cuda-q-accelerated-decoders-ecosystem.md","blog\u002Fnvidia-cuda-q-accelerated-decoders-ecosystem",{"_path":18324,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":18325,"description":18326,"date":16779,"author":11,"tags":18327,"readingTime":272,"body":18328,"_type":1193,"_id":18427,"_source":1195,"_file":18428,"_stem":18429,"_extension":1198},"\u002Fblog\u002Fnvidia-ising-quantum-ai-models","NVIDIA Ising: AI Models for Quantum Calibration and Error Decoding, Explained","NVIDIA Ising is a pair of open-source AI models targeting the two most tedious parts of running a quantum computer: recalibrating it and decoding its errors. NVIDIA claims days-to-hours calibration and up to 2.5x faster, 3x more accurate decoding than pyMatching.",[14733,1213,13895],{"type":18,"children":18329,"toc":18421},[18330,18335,18341,18351,18375,18381,18386,18392,18405,18409],{"type":21,"tag":22,"props":18331,"children":18332},{},[18333],{"type":31,"value":18334},"NVIDIA launched Ising on April 14, 2026, its first family of open-source quantum AI models. This isn't breaking news anymore, and it's worth covering anyway because it targets two of the least glamorous, most necessary parts of operating a quantum computer: keeping it calibrated and decoding its errors fast enough to matter, both of which this site has covered as real, unglamorous bottlenecks rather than headline-grabbing milestones.",{"type":21,"tag":41,"props":18336,"children":18338},{"id":18337},"the-two-models-and-what-each-does",[18339],{"type":31,"value":18340},"The two models, and what each does",{"type":21,"tag":22,"props":18342,"children":18343},{},[18344,18349],{"type":21,"tag":16815,"props":18345,"children":18346},{},[18347],{"type":31,"value":18348},"Ising Calibration",{"type":31,"value":18350}," is a vision-language model that automates reading and interpreting the measurement data a technician would otherwise inspect by hand to tune a quantum processor's control parameters. NVIDIA's claim: calibration time drops from days to hours. That's a workflow-automation claim, not a physics result, and it's the company's own number rather than something independently reproduced.",{"type":21,"tag":22,"props":18352,"children":18353},{},[18354,18359,18361,18366,18368,18373],{"type":21,"tag":16815,"props":18355,"children":18356},{},[18357],{"type":31,"value":18358},"Ising Decoding",{"type":31,"value":18360}," ships as two variants of a 3D convolutional neural network, one tuned for speed and one for accuracy, targeting the identical ",{"type":21,"tag":26,"props":18362,"children":18363},{"href":14761},[18364],{"type":31,"value":18365},"decoding bottleneck this site has covered directly",{"type":31,"value":18367},": syndrome measurements have to be decoded and acted on inside a hard timing window, or the whole error-correction scheme falls apart regardless of qubit quality. NVIDIA's benchmark claims up to 2.5x faster decoding and 3x higher accuracy against PyMatching, the ",{"type":21,"tag":26,"props":18369,"children":18370},{"href":3459},[18371],{"type":31,"value":18372},"minimum-weight matching decoder",{"type":31,"value":18374}," this site already tracks as a maintained, widely used baseline. Beating the standard baseline by that margin, if it holds up independently, would be a real result. It's still NVIDIA's own comparison until someone outside NVIDIA reproduces it.",{"type":21,"tag":41,"props":18376,"children":18378},{"id":18377},"whos-using-it",[18379],{"type":31,"value":18380},"Who's using it",{"type":21,"tag":22,"props":18382,"children":18383},{},[18384],{"type":31,"value":18385},"The adopter list is a genuine mix of academic and national-lab institutions rather than only commercial partners: Academia Sinica, Fermi National Accelerator Laboratory, Harvard's John A. Paulson School of Engineering and Applied Sciences, Infleqtion, IQM, Lawrence Berkeley National Laboratory's Advanced Quantum Testbed, and the UK's National Physical Laboratory. That spread, spanning multiple countries and both hardware vendors and pure research institutions, is a stronger adoption signal than a partner list drawn entirely from NVIDIA's own commercial relationships, though it still doesn't substitute for a published, independently run benchmark.",{"type":21,"tag":41,"props":18387,"children":18389},{"id":18388},"why-an-ai-model-for-calibration-and-decoding-specifically",[18390],{"type":31,"value":18391},"Why an AI model for calibration and decoding, specifically",{"type":21,"tag":22,"props":18393,"children":18394},{},[18395,18397,18403],{"type":31,"value":18396},"Both problems share a structure that suits machine learning: large amounts of noisy, pattern-rich data (calibration sweeps, syndrome measurement streams) that a classical rules-based system handles slowly, and where a trained model plausibly recognizes the relevant pattern faster than an explicit algorithm re-derives it from scratch each time. That's the same logic behind ",{"type":21,"tag":26,"props":18398,"children":18400},{"href":18399},"\u002Fblog\u002Fgoogle-willow-reinforcement-learning-calibration",[18401],{"type":31,"value":18402},"Google's reinforcement-learning approach to Willow's calibration",{"type":31,"value":18404},", covered here separately: different company, different specific technique, equivalent underlying bet that AI-assisted operation beats hand-tuned classical control loops as systems scale.",{"type":21,"tag":41,"props":18406,"children":18407},{"id":3474},[18408],{"type":31,"value":3477},{"type":21,"tag":22,"props":18410,"children":18411},{},[18412,18414,18419],{"type":31,"value":18413},"The number worth tracking is whether Ising Decoding's 2.5x\u002F3x claims survive contact with a third-party benchmark using a public dataset, the same bar ",{"type":21,"tag":26,"props":18415,"children":18416},{"href":3459},[18417],{"type":31,"value":18418},"Mitiq",{"type":31,"value":18420}," and other maintained error-mitigation tools are held to on this site. Until that happens, treat this as a credible, well-adopted engineering tool with a vendor-reported performance claim attached, not yet an independently confirmed result.",{"title":7,"searchDepth":167,"depth":167,"links":18422},[18423,18424,18425,18426],{"id":18337,"depth":167,"text":18340},{"id":18377,"depth":167,"text":18380},{"id":18388,"depth":167,"text":18391},{"id":3474,"depth":167,"text":3477},"content:blog:nvidia-ising-quantum-ai-models.md","blog\u002Fnvidia-ising-quantum-ai-models.md","blog\u002Fnvidia-ising-quantum-ai-models",{"_path":16790,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":18431,"description":18432,"date":16779,"author":11,"tags":18433,"readingTime":272,"body":18434,"_type":1193,"_id":18498,"_source":1195,"_file":18499,"_stem":18500,"_extension":1198},"Oratomic Raised $300M Betting Fault Tolerance Needs 10,000 Qubits, Not Millions","Oratomic closed a $300 million Series A on July 10, 2026, built on Caltech research suggesting utility-scale fault-tolerant quantum computing needs as few as 10,000 reconfigurable atomic qubits, far below prior million-qubit estimates. A real funding round behind a theoretical resource estimate, not a working machine yet.",[3409,1213],{"type":18,"children":18435,"toc":18493},[18436,18441,18447,18459,18465,18470,18476],{"type":21,"tag":22,"props":18437,"children":18438},{},[18439],{"type":31,"value":18440},"Oratomic closed a $300 million Series A on July 10, 2026, a few weeks before this post, worth stating plainly since the round is no longer breaking news. It's still worth explaining, because the bet underneath it is unusual: Oratomic is building toward fault-tolerant quantum computing on the claim that a useful machine needs roughly 10,000 to 20,000 reconfigurable atomic qubits, not the millions most fault-tolerance roadmaps have assumed for years.",{"type":21,"tag":41,"props":18442,"children":18444},{"id":18443},"the-research-behind-the-number",[18445],{"type":31,"value":18446},"The research behind the number",{"type":21,"tag":22,"props":18448,"children":18449},{},[18450,18452,18457],{"type":31,"value":18451},"The company launched in March 2026 alongside research conducted with Caltech, arguing that utility-scale fault-tolerant quantum computers need around 10,000 reconfigurable atomic qubits, a dramatically lower hardware threshold than the million-plus qubit estimates common in earlier fault-tolerance literature. That's a theoretical resource estimate, the kind of result our ",{"type":21,"tag":26,"props":18453,"children":18454},{"href":4095},[18455],{"type":31,"value":18456},"logical qubits and fault tolerance explainer",{"type":31,"value":18458}," covers in general terms: it describes what a fault-tolerant algorithm requires under a given set of assumptions, not a machine that exists and runs it.",{"type":21,"tag":41,"props":18460,"children":18462},{"id":18461},"why-the-qubit-count-matters-more-than-usual-here",[18463],{"type":31,"value":18464},"Why the qubit count matters more than usual here",{"type":21,"tag":22,"props":18466,"children":18467},{},[18468],{"type":31,"value":18469},"Every fault-tolerance roadmap on this site gets read against the same question: how numerous physical qubits does the stated logical qubit count cost. Oratomic's pitch inverts the usual framing. Instead of a hardware milestone claiming progress toward a known target, it's a claim that the target itself has been overestimated for years, built on neutral-atom qubits' reconfigurability (the ability to rearrange atoms in an optical trap) as the mechanism that closes the gap. If the resource estimate holds up under independent scrutiny, it changes the scale everyone else is racing toward. If it doesn't, Oratomic is still a well-funded neutral-atom entrant competing with QuEra, Infleqtion, and Pasqal on the same physics.",{"type":21,"tag":41,"props":18471,"children":18473},{"id":18472},"what-this-funding-round-is-and-isnt",[18474],{"type":31,"value":18475},"What this funding round is, and isn't",{"type":21,"tag":22,"props":18477,"children":18478},{},[18479,18481,18485,18486,18491],{"type":31,"value":18480},"$300 million is real money and a real vote of confidence from investors, but it funds an engineering effort aimed at a target, not a working fault-tolerant computer. Oratomic has not shipped hardware. The Caltech collaboration is a paper, independently reviewable by anyone in the field, which is a stronger footing than a roadmap slide with no published reasoning behind it. Our ",{"type":21,"tag":26,"props":18482,"children":18483},{"href":1106},[18484],{"type":31,"value":16093},{"type":31,"value":3628},{"type":21,"tag":26,"props":18487,"children":18488},{"href":3725},[18489],{"type":31,"value":18490},"ranking of the top quantum computing companies",{"type":31,"value":18492}," track how Oratomic's claims stack up against the neutral-atom competitors already building toward the same fault-tolerance finish line.",{"title":7,"searchDepth":167,"depth":167,"links":18494},[18495,18496,18497],{"id":18443,"depth":167,"text":18446},{"id":18461,"depth":167,"text":18464},{"id":18472,"depth":167,"text":18475},"content:blog:oratomic-300-million-series-a-neutral-atom.md","blog\u002Foratomic-300-million-series-a-neutral-atom.md","blog\u002Foratomic-300-million-series-a-neutral-atom",{"_path":18502,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":18503,"description":18504,"date":16779,"author":11,"tags":18505,"readingTime":272,"body":18506,"_type":1193,"_id":18613,"_source":1195,"_file":18614,"_stem":18615,"_extension":1198},"\u002Fblog\u002Fqaoa-gpt-generative-circuit-synthesis","QAOA-GPT Replaces the Variational Optimization Loop With a Single Forward Pass","QAOA-GPT trains a generative transformer to output a good QAOA circuit directly, skipping the iterative classical optimization loop that usually dominates runtime. Its extension, DQAOA-GPT, has been evaluated on dense optimization problems with up to 100 decision variables.",[1212,2048,13895],{"type":18,"children":18507,"toc":18606},[18508,18518,18524,18529,18535,18546,18552,18564,18570,18581,18587],{"type":21,"tag":22,"props":18509,"children":18510},{},[18511,18512,18516],{"type":31,"value":4494},{"type":21,"tag":26,"props":18513,"children":18514},{"href":1250},[18515],{"type":31,"value":10453},{"type":31,"value":18517}," builds the algorithm the standard way: a parameterized circuit, a classical optimizer adjusting those parameters over numerous iterations, repeated until the cost function converges. That iterative loop, submit a circuit, measure, update parameters, repeat, is usually where the runtime goes, and it's a well-known bottleneck for scaling QAOA to bigger problems. QAOA-GPT, developed using NVIDIA's CUDA-Q platform, tries a different approach: train a generative model to output a good circuit directly, in one forward pass, and skip the loop.",{"type":21,"tag":41,"props":18519,"children":18521},{"id":18520},"what-changes",[18522],{"type":31,"value":18523},"What changes",{"type":21,"tag":22,"props":18525,"children":18526},{},[18527],{"type":31,"value":18528},"Standard QAOA treats circuit parameters as something to search for, iteration by iteration, guided by a classical optimizer reacting to each measurement. QAOA-GPT instead trains a GPT-style transformer on examples of the relationship between a issue instance (a graph, for Max-Cut) and a solid circuit for it, so that at inference time the model generates a full parameterized circuit for a new problem instance directly, without any per-instance optimization loop running afterward. The computationally expensive part moves from \"optimize this specific instance from scratch every time\" to \"train once, then generate quickly for new instances,\" a trade that only pays off if the training generalizes past the specific instances it saw.",{"type":21,"tag":41,"props":18530,"children":18532},{"id":18531},"why-this-specifically-targets-max-cut-first",[18533],{"type":31,"value":18534},"Why this specifically targets Max-Cut first",{"type":21,"tag":22,"props":18536,"children":18537},{},[18538,18540,18544],{"type":31,"value":18539},"Max-Cut is the standard QAOA benchmark for a reason: it's easy to generate huge numbers of labeled training examples (random graphs plus their known or well-approximated optimal cuts) to train a generative model against, and it's the same problem our own ",{"type":21,"tag":26,"props":18541,"children":18542},{"href":1250},[18543],{"type":31,"value":10453},{"type":31,"value":18545}," uses to build the algorithm from scratch. Starting there lets QAOA-GPT be evaluated against a well-understood, well-benchmarked baseline rather than a problem where \"good\" isn't clearly defined yet.",{"type":21,"tag":41,"props":18547,"children":18549},{"id":18548},"dqaoa-gpt-scaling-to-denser-larger-problems",[18550],{"type":31,"value":18551},"DQAOA-GPT: scaling to denser, larger problems",{"type":21,"tag":22,"props":18553,"children":18554},{},[18555,18557,18562],{"type":31,"value":18556},"A follow-on extension, DQAOA-GPT, was evaluated on dense Higher-Order Unconstrained Binary Optimization (HUBO) problems with up to 100 decision variables, a meaningfully harder and denser issue class than sparse Max-Cut graphs. The contribution there is the same core idea (generative circuit synthesis instead of a variational loop) applied to a problem family that's closer to real-world optimization use cases than a toy graph-cutting benchmark, the kind of problem our ",{"type":21,"tag":26,"props":18558,"children":18559},{"href":16173},[18560],{"type":31,"value":18561},"business case for quantum portfolio optimization",{"type":31,"value":18563}," is built around evaluating honestly against classical baselines.",{"type":21,"tag":41,"props":18565,"children":18567},{"id":18566},"the-obvious-question-this-doesnt-yet-answer",[18568],{"type":31,"value":18569},"The obvious question this doesn't yet answer",{"type":21,"tag":22,"props":18571,"children":18572},{},[18573,18575,18579],{"type":31,"value":18574},"A generative model is only as good as its training distribution. QAOA-GPT and DQAOA-GPT's published evaluations cover certain challenge sizes and structures. Whether a model trained on those generalizes to a genuinely out-of-distribution problem instance, larger, differently structured, or from a different application domain entirely, is the real test of whether this becomes a practical replacement for the variational loop or stays a promising result on the problems it was trained and shown on. That's the identical caveat this site applies to every quantum machine learning claim: read the ",{"type":21,"tag":26,"props":18576,"children":18577},{"href":3150},[18578],{"type":31,"value":12765},{"type":31,"value":18580}," for why \"works on the benchmark it was trained toward\" and \"works in general\" are different claims that gain conflated constantly.",{"type":21,"tag":41,"props":18582,"children":18584},{"id":18583},"why-this-is-worth-tracking-regardless",[18585],{"type":31,"value":18586},"Why this is worth tracking regardless",{"type":21,"tag":22,"props":18588,"children":18589},{},[18590,18592,18598,18600,18604],{"type":31,"value":18591},"Even if QAOA-GPT's specific generalization limits turn out to be real, the underlying idea, replacing a per-instance classical optimization loop with a trained generative model, is a genuinely varied strategy from every other approach to speeding up QAOA covered on this site, including ",{"type":21,"tag":26,"props":18593,"children":18595},{"href":18594},"\u002Fblog\u002Freduce-shot-count",[18596],{"type":31,"value":18597},"shot-count reduction techniques",{"type":31,"value":18599}," that make the loop itself cheaper rather than removing it. It's worth watching whether this pattern gets applied beyond QAOA to other variational algorithms like ",{"type":21,"tag":26,"props":18601,"children":18602},{"href":3623},[18603],{"type":31,"value":3626},{"type":31,"value":18605},", which has the exact same iterative-loop bottleneck at its core.",{"title":7,"searchDepth":167,"depth":167,"links":18607},[18608,18609,18610,18611,18612],{"id":18520,"depth":167,"text":18523},{"id":18531,"depth":167,"text":18534},{"id":18548,"depth":167,"text":18551},{"id":18566,"depth":167,"text":18569},{"id":18583,"depth":167,"text":18586},"content:blog:qaoa-gpt-generative-circuit-synthesis.md","blog\u002Fqaoa-gpt-generative-circuit-synthesis.md","blog\u002Fqaoa-gpt-generative-circuit-synthesis",{"_path":18617,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":18618,"description":18619,"date":16779,"author":11,"tags":18620,"readingTime":308,"body":18621,"_type":1193,"_id":18719,"_source":1195,"_file":18720,"_stem":18721,"_extension":1198},"\u002Fblog\u002Fquantum-computing-career-textbook-questions","Do You Need a PhD for Quantum Computing? Career and Textbook Questions, Answered","Is quantum computing a good career, do you need a PhD, and which textbook should a beginner start with. Real workforce data and real textbook recommendations for the four questions every newcomer asks first.",[3054,3409],{"type":18,"children":18622,"toc":18713},[18623,18628,18634,18639,18644,18650,18663,18669,18674,18680,18708],{"type":21,"tag":22,"props":18624,"children":18625},{},[18626],{"type":31,"value":18627},"Four questions come up first for almost anyone starting in quantum computing: whether the career is worth pursuing, whether a PhD is required, which textbook to start with, and where to begin. They deserve real numbers and real book recommendations.",{"type":21,"tag":41,"props":18629,"children":18631},{"id":18630},"is-quantum-computing-a-growing-job-market",[18632],{"type":31,"value":18633},"Is quantum computing a growing job market?",{"type":21,"tag":22,"props":18635,"children":18636},{},[18637],{"type":31,"value":18638},"Yes, with a real caveat attached. The global pure-play quantum workforce reached roughly 16,500 professionals in 2025, up about 14% in a single year, and quantum-related job and internship listings grew around 11% over the same period. Longer-range economic projections put the sector at 250,000 jobs by 2030 and 840,000 by 2035.",{"type":21,"tag":22,"props":18640,"children":18641},{},[18642],{"type":31,"value":18643},"The caveat: an EPJ Quantum Technology analysis of 3,641 job postings found that 75% of applicants for quantum computing roles lack the skills the posting asks for. That's not a sign the field is oversaturated. It's the opposite, a shortage of qualified candidates projected to exceed 10,000 skilled roles by 2026-27, which is also why senior quantum roles routinely clear $200,000 depending on expertise and location. Demand is real. So is the skills bar.",{"type":21,"tag":41,"props":18645,"children":18647},{"id":18646},"do-you-need-a-phd",[18648],{"type":31,"value":18649},"Do you need a PhD?",{"type":21,"tag":22,"props":18651,"children":18652},{},[18653,18655,18661],{"type":31,"value":18654},"For research roles at a hardware vendor or a national lab studying error correction or new qubit modalities, generally yes, a PhD in physics or a closely related field remains the standard entry point. For software, algorithms, and tooling roles, no. Companies building SDKs, compilers, and application layers hire people with strong linear algebra and software engineering skills who learned quantum computing as a specialty rather than a physics doctorate. ",{"type":21,"tag":26,"props":18656,"children":18658},{"href":18657},"\u002Fblog\u002Fquantum-computing-certifications",[18659],{"type":31,"value":18660},"Our certifications guide",{"type":31,"value":18662}," covers this from the credentialing angle: a demonstrated project (a working VQE implementation, a real error-mitigation writeup) tends to carry more weight in hiring than a credential, PhD included, when the role is software-facing rather than research-facing.",{"type":21,"tag":41,"props":18664,"children":18666},{"id":18665},"what-textbook-should-a-beginner-without-a-physics-background-beginning-with",[18667],{"type":31,"value":18668},"What textbook should a beginner without a physics background beginning with?",{"type":21,"tag":22,"props":18670,"children":18671},{},[18672],{"type":31,"value":18673},"Skip Nielsen and Chuang first. It's the field's standard graduate reference, but it assumes a physics background most beginners don't have yet, and starting there is a common way to stall out in week one. Two better first books for a programmer or a math-comfortable beginner: \"Quantum Computing for Computer Scientists\" by Yanofsky and Mannucci, which requires linear algebra rather than quantum mechanics and is written explicitly for readers coming from computer science, and \"Quantum Computer Science\" by N. David Mermin, which builds up gates, circuits, and algorithms from a computer-science framing rather than a physics one. Save Nielsen and Chuang for after the basics click, as the deeper reference it's meant to be.",{"type":21,"tag":41,"props":18675,"children":18677},{"id":18676},"where-to-start-for-free",[18678],{"type":31,"value":18679},"Where to start, for free",{"type":21,"tag":22,"props":18681,"children":18682},{},[18683,18685,18690,18692,18698,18700,18706],{"type":31,"value":18684},"If a textbook still feels like the wrong first step, start with something interactive instead. Our ",{"type":21,"tag":26,"props":18686,"children":18687},{"href":3346},[18688],{"type":31,"value":18689},"getting-started guide",{"type":31,"value":18691}," walks through running a first circuit in under an hour, no textbook required first. Our ",{"type":21,"tag":26,"props":18693,"children":18695},{"href":18694},"\u002Fguides\u002Fquantum-computing-learning-path-2026",[18696],{"type":31,"value":18697},"full learning path",{"type":31,"value":18699}," sequences prerequisites, first circuit, gates and entanglement, and the classic algorithms in order, and our ",{"type":21,"tag":26,"props":18701,"children":18703},{"href":18702},"\u002Fcourses",[18704],{"type":31,"value":18705},"courses page",{"type":31,"value":18707}," tracks the free options (IBM Quantum Learning, the PennyLane Codebook, MIT's 8.370x) that pair well with either textbook above once you're past the basics.",{"type":21,"tag":22,"props":18709,"children":18710},{},[18711],{"type":31,"value":18712},"Linear algebra, not quantum mechanics, is the actual prerequisite most beginners are missing, the same finding our learning path guide leads with. Fix that gap before picking a textbook, and the textbook question mostly answers itself.",{"title":7,"searchDepth":167,"depth":167,"links":18714},[18715,18716,18717,18718],{"id":18630,"depth":167,"text":18633},{"id":18646,"depth":167,"text":18649},{"id":18665,"depth":167,"text":18668},{"id":18676,"depth":167,"text":18679},"content:blog:quantum-computing-career-textbook-questions.md","blog\u002Fquantum-computing-career-textbook-questions.md","blog\u002Fquantum-computing-career-textbook-questions",{"_path":18723,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":18724,"description":18725,"date":16779,"author":11,"tags":18726,"readingTime":308,"body":18727,"_type":1193,"_id":18858,"_source":1195,"_file":18859,"_stem":18860,"_extension":1198},"\u002Fblog\u002Fquantum-computing-etfs-2026","Quantum Computing ETFs in 2026: What's Inside Each Fund","Five quantum computing ETFs trade today: QTUM, QNTM, WQTM, CHPX, and QANT. Here's what each one holds, how much it costs, and how much they overlap with each other. This is not investment advice, it's a comparison of fund composition.",[3409,1213],{"type":18,"children":18728,"toc":18848},[18729,18734,18740,18752,18758,18770,18776,18781,18787,18792,18798,18803,18809,18814,18820,18831,18837],{"type":21,"tag":22,"props":18730,"children":18731},{},[18732],{"type":31,"value":18733},"Five exchange-traded funds market themselves around quantum computing as of August 2026, and \"quantum computing ETF\" means quite varied things depending on which fund you're looking at.",{"type":21,"tag":41,"props":18735,"children":18737},{"id":18736},"defiance-quantum-etf-qtum",[18738],{"type":31,"value":18739},"Defiance Quantum ETF (QTUM)",{"type":21,"tag":22,"props":18741,"children":18742},{},[18743,18745,18750],{"type":31,"value":18744},"QTUM is the oldest fund in this category by a wide margin, launched September 4, 2018, years before quantum computing became a retail investing theme. It tracks the BlueStar Quantum Computing and Machine Learning Index, charges a 0.40% expense ratio, and held $6.31 billion in assets across 85 holdings as of June 24, 2026, making it by far the largest fund on this list. Read the index name carefully: quantum computing ",{"type":21,"tag":12769,"props":18746,"children":18747},{},[18748],{"type":31,"value":18749},"and",{"type":31,"value":18751}," machine learning. QTUM's holdings include Nvidia, Intel, Micron, and Teradyne alongside pure-play names like IonQ, Rigetti, and D-Wave, which makes it closer to a broad semiconductor-and-AI fund with quantum exposure mixed in than a pure quantum bet.",{"type":21,"tag":41,"props":18753,"children":18755},{"id":18754},"vaneck-quantum-computing-etf-qntm",[18756],{"type":31,"value":18757},"VanEck Quantum Computing ETF (QNTM)",{"type":21,"tag":22,"props":18759,"children":18760},{},[18761,18763,18768],{"type":31,"value":18762},"QNTM tracks the MarketVector Global Quantum Leaders Index, charges a 0.55% expense ratio, and held $811.8 million in assets as of July 31, 2026. Its top holdings as of that date: IonQ at 6.12%, Samsung Electronics at 6.01%, Honeywell at 4.69%, Boeing at 4.65%, and Infineon Technologies at 4.58%. That mix says something about how VanEck's index defines \"quantum leader\": alongside IonQ, a pure-play, it counts large industrial and semiconductor companies with quantum-relevant patent portfolios or business units, the same logic that puts ",{"type":21,"tag":26,"props":18764,"children":18765},{"href":3586},[18766],{"type":31,"value":18767},"Honeywell's Quantinuum stake",{"type":31,"value":18769}," and Samsung's semiconductor manufacturing capacity into a \"quantum\" fund.",{"type":21,"tag":41,"props":18771,"children":18773},{"id":18772},"wisdomtree-quantum-computing-fund-wqtm",[18774],{"type":31,"value":18775},"WisdomTree Quantum Computing Fund (WQTM)",{"type":21,"tag":22,"props":18777,"children":18778},{},[18779],{"type":31,"value":18780},"WQTM is the newest US-listed entrant, launched October 9, 2025, tracking the WisdomTree Classiq Quantum Computing Index with a 0.45% expense ratio and 41 holdings as of March 31, 2026. It's positioned against funds like QTUM specifically by stripping out the mega-cap technology names those funds lean on, aiming for concentration in companies more directly tied to quantum hardware, software, and cryptography. That positioning shows up in performance: WQTM was up roughly 19% year to date in 2026 against the Nasdaq-100's roughly 7% over the identical period, though a single year of outperformance from a fund barely a year old isn't evidence of a durable edge either way.",{"type":21,"tag":41,"props":18782,"children":18784},{"id":18783},"global-x-ai-semiconductor-quantum-etf-chpx",[18785],{"type":31,"value":18786},"Global X AI Semiconductor & Quantum ETF (CHPX)",{"type":21,"tag":22,"props":18788,"children":18789},{},[18790],{"type":31,"value":18791},"CHPX launched its US-listed version on September 30, 2025 (a separate Ireland-domiciled UCITS version launched November 25, 2025, aimed at European investors), and held $235.4 million across 38 holdings as of mid-2026. The name is honest about what it is: an AI-semiconductor fund with quantum computing folded in as a secondary theme, not a quantum-first fund. If you want quantum exposure specifically rather than AI-chip exposure with a quantum label attached, read the holdings before assuming the name means what it sounds like.",{"type":21,"tag":41,"props":18793,"children":18795},{"id":18794},"ishares-quantum-computing-ucits-etf-qant",[18796],{"type":31,"value":18797},"iShares Quantum Computing UCITS ETF (QANT)",{"type":21,"tag":22,"props":18799,"children":18800},{},[18801],{"type":31,"value":18802},"QANT launched December 3, 2025, tracks the STOXX Global Quantum Computing Index, charges a 0.50% expense ratio, and holds 30 positions. It's domiciled in Ireland as a UCITS fund, the European regulatory structure, which means it isn't typically available through an ordinary US brokerage account the way QTUM, QNTM, WQTM, and CHPX's US listing are. One caveat worth stating plainly: the holdings percentages showing up in current aggregator data for QANT are close enough to VanEck's QNTM figures that the overlap looks more like duplicated or miscached data than an independently verified snapshot of QANT's actual portfolio. Check iShares' own factsheet directly before treating any specific QANT holding percentage as confirmed.",{"type":21,"tag":41,"props":18804,"children":18806},{"id":18805},"arkq-isnt-a-quantum-computing-fund",[18807],{"type":31,"value":18808},"ARKQ isn't a quantum computing fund",{"type":21,"tag":22,"props":18810,"children":18811},{},[18812],{"type":31,"value":18813},"The ARK Autonomous Technology & Robotics ETF (ARKQ) appears on several \"best quantum ETFs\" roundups, but it's a broader autonomous-technology and robotics fund with some quantum-adjacent names inside it, not a quantum computing fund by mandate or index construction. Check the actual mandate before assuming a name on a listicle tracks the theme it's filed under.",{"type":21,"tag":41,"props":18815,"children":18817},{"id":18816},"the-overlap-problem",[18818],{"type":31,"value":18819},"The overlap problem",{"type":21,"tag":22,"props":18821,"children":18822},{},[18823,18825,18829],{"type":31,"value":18824},"IonQ and Honeywell show up as top holdings in more than one of these funds. Buying two or three of these ETFs for \"diversification\" often means paying two or three expense ratios for a meaningfully overlapping set of underlying positions, not independent bets. If you're comparing funds, checking the actual top-ten holdings list against each other matters more than the fund's name or marketing description, the equivalent lesson our ",{"type":21,"tag":26,"props":18826,"children":18827},{"href":18307},[18828],{"type":31,"value":18310},{"type":31,"value":18830}," covers from the company side rather than the fund side.",{"type":21,"tag":41,"props":18832,"children":18834},{"id":18833},"expense-ratios-run-well-above-a-typical-index-fund",[18835],{"type":31,"value":18836},"Expense ratios run well above a typical index fund",{"type":21,"tag":22,"props":18838,"children":18839},{},[18840,18842,18846],{"type":31,"value":18841},"Expense ratios here (0.40% to 0.55%) sit well above a typical broad-market index fund, the price of a concentrated, actively curated thematic index instead of a passive market-cap benchmark. This is not investment advice. For firm-level detail on the hardware vendors these funds hold, our ",{"type":21,"tag":26,"props":18843,"children":18844},{"href":3725},[18845],{"type":31,"value":18490},{"type":31,"value":18847}," is the place to go next.",{"title":7,"searchDepth":167,"depth":167,"links":18849},[18850,18851,18852,18853,18854,18855,18856,18857],{"id":18736,"depth":167,"text":18739},{"id":18754,"depth":167,"text":18757},{"id":18772,"depth":167,"text":18775},{"id":18783,"depth":167,"text":18786},{"id":18794,"depth":167,"text":18797},{"id":18805,"depth":167,"text":18808},{"id":18816,"depth":167,"text":18819},{"id":18833,"depth":167,"text":18836},"content:blog:quantum-computing-etfs-2026.md","blog\u002Fquantum-computing-etfs-2026.md","blog\u002Fquantum-computing-etfs-2026",{"_path":18307,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":18862,"description":18863,"date":16779,"author":11,"tags":18864,"readingTime":16,"body":18865,"_type":1193,"_id":19033,"_source":1195,"_file":19034,"_stem":19035,"_extension":1198},"Picks and Shovels for Quantum Computing: The Companies That Supply the Industry","What are the picks and shovels for quantum computing? A checkable supply chain map: dilution refrigerators, control electronics, lasers, and the compute layer connecting QPUs to classical hardware. This is not investment advice, it's a map of who builds the infrastructure.",[3409,1213],{"type":18,"children":18866,"toc":19023},[18867,18881,18887,18892,18898,18903,18909,18914,18920,18939,18945,18965,18971,18983,18989,19000,19006,19011],{"type":21,"tag":22,"props":18868,"children":18869},{},[18870,18872,18879],{"type":31,"value":18871},"\"What are the picks and shovels for quantum computing\" is a question that comes up regularly in investing circles, most recently on ",{"type":21,"tag":26,"props":18873,"children":18876},{"href":18874,"rel":18875},"https:\u002F\u002Fwww.reddit.com\u002Fr\u002FValueInvesting\u002Fcomments\u002F1t0t3wa\u002Fwhat_are_the_picks_and_shovels_for_quantum\u002F",[7136],[18877],{"type":31,"value":18878},"r\u002FValueInvesting",{"type":31,"value":18880},". It's a fair question and a real supply chain sits behind it. This is not stock-picking advice, and nothing here is a recommendation to buy anything. It's a map of who builds the infrastructure every quantum hardware company depends on, checked against real market data and real deployments rather than a forum thread's comments.",{"type":21,"tag":41,"props":18882,"children":18884},{"id":18883},"cryogenics-the-coldest-most-literal-bottleneck",[18885],{"type":31,"value":18886},"Cryogenics: the coldest, most literal bottleneck",{"type":21,"tag":22,"props":18888,"children":18889},{},[18890],{"type":31,"value":18891},"Superconducting qubits run at temperatures colder than deep space, and every superconducting quantum computer needs a dilution refrigerator to get there. Two companies dominate that market: Bluefors, a private Finnish company with roughly 34% global share, and Oxford Instruments (LSE: OXIG), whose NanoScience division holds close to 21% share with its Proteox and TritonXL systems. Together they cover more than 70% of the dilution refrigerator market, and quantum computing now drives roughly 64% of demand for that equipment. Bluefors isn't publicly traded, so Oxford Instruments is the direct public route into this specific bottleneck. It's also a diversified scientific instruments business, so a dilution refrigerator is one product line among several, not the whole business.",{"type":21,"tag":41,"props":18893,"children":18895},{"id":18894},"control-and-readout-electronics",[18896],{"type":31,"value":18897},"Control and readout electronics",{"type":21,"tag":22,"props":18899,"children":18900},{},[18901],{"type":31,"value":18902},"A quantum processor is useless without hardware that generates precisely timed microwave pulses to drive qubits and reads the result back. Keysight Technologies (NASDAQ: KEYS) built its Quantum Control System around exactly that problem, and it isn't a paper product. Keysight's QCS is embedded in Fujitsu and RIKEN's 256-qubit superconducting computer, and in mid-2025 the company installed what it describes as the world's largest commercial quantum control system, capable of driving more than 1,000 superconducting qubits, at Japan's AIST G-QuAT center. Zurich Instruments, a smaller private player, supplies similar control hardware and partnered with IQM and NVIDIA in March 2026 on a real-time error-correction demonstration, worth knowing about even though it isn't separately investable.",{"type":21,"tag":41,"props":18904,"children":18906},{"id":18905},"lasers-photonics-and-vacuum-systems",[18907],{"type":31,"value":18908},"Lasers, photonics, and vacuum systems",{"type":21,"tag":22,"props":18910,"children":18911},{},[18912],{"type":31,"value":18913},"Trapped-ion and neutral-atom qubits run on precisely tuned lasers, and every cryogenic system needs vacuum equipment to hold its insulating vacuum. MKS Instruments (NASDAQ: MKSI) sells both: tunable lasers used in quantum research, and vacuum- and gas-based process equipment used across the cryogenic stack. Coherent Corp (NYSE: COHR) is a direct photonics competitor to MKS. The two nearly merged in 2025, when MKS made a competing bid for Coherent during an acquisition battle Coherent ultimately settled with a different suitor, so they remain separate public companies today rather than one combined photonics supplier.",{"type":21,"tag":41,"props":18915,"children":18917},{"id":18916},"the-compute-layer-connecting-qpus-to-classical-hardware",[18918],{"type":31,"value":18919},"The compute layer connecting QPUs to classical hardware",{"type":21,"tag":22,"props":18921,"children":18922},{},[18923,18925,18930,18932,18937],{"type":31,"value":18924},"NVIDIA (NASDAQ: NVDA) builds no qubits at all, and that's the point of its quantum strategy. Its ",{"type":21,"tag":26,"props":18926,"children":18927},{"href":17307},[18928],{"type":31,"value":18929},"NVQLink architecture",{"type":31,"value":18931},", made generally available through the cudaq-realtime API at GTC 2026, is aimed at being the standard low-latency connection between GPUs and QPUs regardless of which hardware modality wins. The partner list is broad rather than narrow: IQM and Zurich Instruments' joint error-correction demo, Pacific Northwest National Laboratory's open-source GPU-QPU framework, Dell server validation for sub-4-microsecond real-time hosting, and integrations from Quantum Machines, Qblox, SDT, Infleqtion, and Quantinuum. Our ",{"type":21,"tag":26,"props":18933,"children":18934},{"href":14761},[18935],{"type":31,"value":18936},"own coverage of the real-time decoding bottleneck",{"type":31,"value":18938}," covers why that low-latency link matters as much as the qubits themselves. NVIDIA's quantum business is a rounding error against its AI chip revenue today, which cuts both ways: real diversification if quantum stalls, real dilution if it takes off.",{"type":21,"tag":41,"props":18940,"children":18942},{"id":18941},"domestic-semiconductor-fabrication",[18943],{"type":31,"value":18944},"Domestic semiconductor fabrication",{"type":21,"tag":22,"props":18946,"children":18947},{},[18948,18950,18956,18958,18963],{"type":31,"value":18949},"Every ion trap chip, photonic circuit, and control ASIC still needs a foundry, and the government contracts increasingly require a domestic one. GlobalFoundries (NASDAQ: GFS), ",{"type":21,"tag":26,"props":18951,"children":18953},{"href":18952},"\u002Fblog\u002Fglobalfoundries-chips-silicon-photonics-award",[18954],{"type":31,"value":18955},"which we covered in detail",{"type":31,"value":18957},", took a $300 million CHIPS Act award to scale US silicon photonics manufacturing, relevant to photonic quantum hardware even though the award itself targets AI infrastructure broadly. SkyWater Technology used to be the cleanest public solution to \"who fabricates quantum hardware's supporting electronics,\" until IonQ acquired it outright in July 2026. ",{"type":21,"tag":26,"props":18959,"children":18960},{"href":18164},[18961],{"type":31,"value":18962},"We examined what that deal changes here",{"type":31,"value":18964},": SkyWater is now a wholly owned IonQ subsidiary, not a separate, diversified supplier competitors also buy from.",{"type":21,"tag":41,"props":18966,"children":18968},{"id":18967},"indirect-exposure-through-a-diversified-parent",[18969],{"type":31,"value":18970},"Indirect exposure through a diversified parent",{"type":21,"tag":22,"props":18972,"children":18973},{},[18974,18976,18981],{"type":31,"value":18975},"Honeywell (NASDAQ: HON) isn't a supplier in the same sense as the companies above, but it's the closest thing to a backdoor into Quantinuum's technology without buying Quantinuum stock directly. Honeywell retained roughly 48-49% of Quantinuum after its June 2026 IPO, ",{"type":21,"tag":26,"props":18977,"children":18978},{"href":3586},[18979],{"type":31,"value":18980},"which we covered when it happened",{"type":31,"value":18982},", giving HON shareholders real economic exposure to Quantinuum's trapped-ion roadmap folded into a much larger, diversified industrial business.",{"type":21,"tag":41,"props":18984,"children":18986},{"id":18985},"none-of-these-suppliers-need-to-guess-which-qubit-modality-wins",[18987],{"type":31,"value":18988},"None of these suppliers need to guess which qubit modality wins",{"type":21,"tag":22,"props":18990,"children":18991},{},[18992,18994,18998],{"type":31,"value":18993},"A dilution refrigerator, a control system, a laser, and a low-latency compute link are useful whether the winning architecture turns out to be superconducting, trapped-ion, neutral-atom, or photonic. That's a genuinely different risk profile from betting on a single hardware vendor's roadmap, the kind of bet our ",{"type":21,"tag":26,"props":18995,"children":18996},{"href":3725},[18997],{"type":31,"value":18490},{"type":31,"value":18999}," covers directly.",{"type":21,"tag":41,"props":19001,"children":19003},{"id":19002},"quantum-computing-is-a-small-slice-of-these-companies-revenue",[19004],{"type":31,"value":19005},"Quantum computing is a small slice of these companies' revenue",{"type":21,"tag":22,"props":19007,"children":19008},{},[19009],{"type":31,"value":19010},"In an actual gold rush, the shovel seller's whole business was shovels. Here, quantum computing is a minor, early slice of Oxford Instruments', MKS's, Keysight's, and NVIDIA's total revenue, not the main event. That cuts two ways: these companies aren't exposed to quantum computing's risk the way a pure-play hardware vendor is, and quantum computing's success or failure won't move their results by much either, at least not yet. Treating this list as a shortcut to quantum-computing-sized returns from established, diversified industrial companies is a different bet than \"picks and shovels\" investing usually means.",{"type":21,"tag":22,"props":19012,"children":19013},{},[19014,19016,19021],{"type":31,"value":19015},"This is not investment advice. It's a supply chain map, verified against real market share data and real deployed systems. Our ",{"type":21,"tag":26,"props":19017,"children":19018},{"href":3725},[19019],{"type":31,"value":19020},"ranking of the hardware vendors themselves",{"type":31,"value":19022}," covers the firm-level comparison instead.",{"title":7,"searchDepth":167,"depth":167,"links":19024},[19025,19026,19027,19028,19029,19030,19031,19032],{"id":18883,"depth":167,"text":18886},{"id":18894,"depth":167,"text":18897},{"id":18905,"depth":167,"text":18908},{"id":18916,"depth":167,"text":18919},{"id":18941,"depth":167,"text":18944},{"id":18967,"depth":167,"text":18970},{"id":18985,"depth":167,"text":18988},{"id":19002,"depth":167,"text":19005},"content:blog:quantum-computing-picks-and-shovels-supply-chain.md","blog\u002Fquantum-computing-picks-and-shovels-supply-chain.md","blog\u002Fquantum-computing-picks-and-shovels-supply-chain",{"_path":19037,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":19038,"description":19039,"date":16779,"author":11,"tags":19040,"readingTime":233,"body":19041,"_type":1193,"_id":19113,"_source":1195,"_file":19114,"_stem":19115,"_extension":1198},"\u002Fblog\u002Fquantum-elements-orbit-qiskit-function","Quantum Elements' Orbit Automates Error Suppression Inside Qiskit","Quantum Elements launched Orbit, an automated error-suppression tool, as a Qiskit Function in IBM's Qiskit Functions Catalog on July 23, 2026. It bundles dynamical decoupling, hardware-aware transpilation, and measurement error mitigation into one call for IBM Quantum Network members.",[14733,14,13895],{"type":18,"children":19042,"toc":19108},[19043,19048,19054,19066,19072,19091,19097],{"type":21,"tag":22,"props":19044,"children":19045},{},[19046],{"type":31,"value":19047},"Quantum Elements launched Orbit on July 23, 2026, an automated error-suppression tool delivered as a Qiskit Function inside IBM's Qiskit Functions Catalog. The pitch is straightforward: instead of hand-tuning dynamical decoupling sequences, transpilation options, and measurement error mitigation separately for every circuit, Orbit bundles all three into one call, aimed at IBM Quantum Network member organizations running real workloads today rather than research demos.",{"type":21,"tag":41,"props":19049,"children":19051},{"id":19050},"what-orbit-automates",[19052],{"type":31,"value":19053},"What Orbit automates",{"type":21,"tag":22,"props":19055,"children":19056},{},[19057,19058,19064],{"type":31,"value":4494},{"type":21,"tag":26,"props":19059,"children":19061},{"href":19060},"\u002Fblog\u002Ferror-mitigation-practical-guide",[19062],{"type":31,"value":19063},"practical guide to error mitigation",{"type":31,"value":19065}," covers these three techniques individually: dynamical decoupling to suppress idle-qubit decoherence, hardware-aware transpilation to fit a circuit to a specific device's native gate set and connectivity, and measurement error mitigation to correct readout errors after the fact. Getting all three right, and right together, takes real expertise most application developers don't have time to build. Orbit's contribution is automating that combination rather than introducing a new mitigation technique, packaging existing published methods behind a single Qiskit Function call.",{"type":21,"tag":41,"props":19067,"children":19069},{"id":19068},"why-the-delivery-mechanism-is-the-actual-news",[19070],{"type":31,"value":19071},"Why the delivery mechanism is the actual news",{"type":21,"tag":22,"props":19073,"children":19074},{},[19075,19077,19083,19085,19089],{"type":31,"value":19076},"Qiskit Functions are IBM's model for distributing higher-level quantum software as callable services rather than libraries developers integrate by hand. A third party building error-suppression tooling that ships this way, instead of as a standalone package, says something about where the ecosystem is heading: toward fewer developers touching the noise-mitigation layer directly and more of them calling a function that handles it. That's consistent with this site's broader read on the ",{"type":21,"tag":26,"props":19078,"children":19080},{"href":19079},"\u002Fcompare",[19081],{"type":31,"value":19082},"SDK ecosystem",{"type":31,"value":19084},": the practical bottleneck for most teams running real circuits is not access to techniques, since ",{"type":21,"tag":26,"props":19086,"children":19087},{"href":3459},[19088],{"type":31,"value":18418},{"type":31,"value":19090}," and the built-in Qiskit primitives already cover the same ground, but the expertise needed to apply them correctly.",{"type":21,"tag":41,"props":19092,"children":19094},{"id":19093},"whats-still-unverified",[19095],{"type":31,"value":19096},"What's still unverified",{"type":21,"tag":22,"props":19098,"children":19099},{},[19100,19102,19106],{"type":31,"value":19101},"Quantum Elements' own claim is that Orbit \"significantly improves circuit execution fidelity on live processors.\" That's the company's language, not an independently reproduced benchmark, and no specific fidelity numbers or comparison baseline were disclosed in the launch announcement. Whether Orbit meaningfully outperforms a careful developer manually tuning the identical three techniques, or an existing tool like ",{"type":21,"tag":26,"props":19103,"children":19104},{"href":3459},[19105],{"type":31,"value":18418},{"type":31,"value":19107},", is the actual open question, and it's the kind of claim this site treats as a vendor statement until someone publishes a real comparison.",{"title":7,"searchDepth":167,"depth":167,"links":19109},[19110,19111,19112],{"id":19050,"depth":167,"text":19053},{"id":19068,"depth":167,"text":19071},{"id":19093,"depth":167,"text":19096},"content:blog:quantum-elements-orbit-qiskit-function.md","blog\u002Fquantum-elements-orbit-qiskit-function.md","blog\u002Fquantum-elements-orbit-qiskit-function",{"_path":13903,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":19117,"description":19118,"date":16779,"author":11,"tags":19119,"readingTime":308,"body":19120,"_type":1193,"_id":19868,"_source":1195,"_file":19869,"_stem":19870,"_extension":1198},"Quantum Volume: How to Measure It Yourself, Not Recite It","Build IBM's Quantum Volume benchmark from scratch in Qiskit: random square circuits, the heavy-output test, and the pass criterion that turns qubit count, connectivity, and gate fidelity into one comparable number.",[13,14,13895],{"type":18,"children":19121,"toc":19859},[19122,19134,19140,19152,19158,19163,19176,19181,19191,19201,19207,19220,19395,19400,19406,19411,19632,19637,19643,19656,19791,19796,19802,19813,19817,19855],{"type":21,"tag":22,"props":19123,"children":19124},{},[19125,19126,19132],{"type":31,"value":4494},{"type":21,"tag":26,"props":19127,"children":19129},{"href":19128},"\u002Fblog\u002Fquantum-benchmarking-eo-14413",[19130],{"type":31,"value":19131},"piece on the quantum benchmarking executive order",{"type":31,"value":19133}," makes the case that the field's biggest unsolved problem isn't hardware, it's the lack of a trustworthy, vendor-independent way to compare hardware at all. Quantum Volume, introduced by IBM in 2019, was one of the first serious attempts to fix that: a single number that folds qubit count, connectivity, and gate fidelity together into one comparable figure, instead of letting a vendor pick whichever number flatters them most.",{"type":21,"tag":41,"props":19135,"children":19137},{"id":19136},"what-the-number-measures",[19138],{"type":31,"value":19139},"What the number measures",{"type":21,"tag":22,"props":19141,"children":19142},{},[19143,19145,19150],{"type":31,"value":19144},"A device's Quantum Volume is 2ⁿ, where n is the size of the largest ",{"type":21,"tag":16815,"props":19146,"children":19147},{},[19148],{"type":31,"value":19149},"square circuit",{"type":31,"value":19151}," (n qubits, circuit depth also n) that the device executes correctly often enough to pass a defined statistical test. Square is deliberate. A wide, shallow circuit stresses qubit count and connectivity. A narrow, deep one stresses gate fidelity and coherence time. A square circuit stresses both at once, which is the whole point of using it as a single combined metric.",{"type":21,"tag":41,"props":19153,"children":19155},{"id":19154},"the-heavy-output-test",[19156],{"type":31,"value":19157},"The heavy output test",{"type":21,"tag":22,"props":19159,"children":19160},{},[19161],{"type":31,"value":19162},"The test circuit itself is built from randomness by design. For n qubits and depth n:",{"type":21,"tag":67,"props":19164,"children":19165},{},[19166,19171],{"type":21,"tag":71,"props":19167,"children":19168},{},[19169],{"type":31,"value":19170},"At each layer, randomly pair up the n qubits.",{"type":21,"tag":71,"props":19172,"children":19173},{},[19174],{"type":31,"value":19175},"Apply a random SU(4) unitary (a general 2-qubit gate) to each pair.",{"type":21,"tag":22,"props":19177,"children":19178},{},[19179],{"type":31,"value":19180},"That produces an output probability distribution with no special structure to exploit, which is exactly what makes it a fair stress test rather than something a device is specifically tuned to pass.",{"type":21,"tag":22,"props":19182,"children":19183},{},[19184,19189],{"type":21,"tag":16815,"props":19185,"children":19186},{},[19187],{"type":31,"value":19188},"Heavy outputs",{"type":31,"value":19190}," are defined relative to that distribution: compute the ideal (noiseless) output probabilities classically, take the median probability, and call any outcome above the median a \"heavy\" output. In the ideal case, heavy outputs cover a bit more than half the probability mass (a known property of Porter-Thomas-distributed random circuit outputs, not something you have to prove yourself each time).",{"type":21,"tag":22,"props":19192,"children":19193},{},[19194,19199],{"type":21,"tag":16815,"props":19195,"children":19196},{},[19197],{"type":31,"value":19198},"The pass criterion:",{"type":31,"value":19200}," run many random circuits of a given size on the real device, and check whether the fraction of shots landing on a heavy output exceeds 2\u002F3, with enough statistical confidence to rule out lucky guessing. If circuits of size n pass, QV = 2ⁿ. If size n+1 fails, that's the device's Quantum Volume.",{"type":21,"tag":41,"props":19202,"children":19204},{"id":19203},"building-the-circuit-in-qiskit",[19205],{"type":31,"value":19206},"Building the circuit in Qiskit",{"type":21,"tag":22,"props":19208,"children":19209},{},[19210,19212,19218],{"type":31,"value":19211},"Qiskit ships a ",{"type":21,"tag":103,"props":19213,"children":19215},{"className":19214},[],[19216],{"type":31,"value":19217},"QuantumVolume",{"type":31,"value":19219}," circuit class directly, which builds the randomized layer structure described above:",{"type":21,"tag":128,"props":19221,"children":19223},{"className":130,"code":19222,"language":132,"meta":7,"style":7},"from qiskit.circuit.library import QuantumVolume\nfrom qiskit.quantum_info import Statevector\nimport numpy as np\n\nn = 4  # qubits, and circuit depth, for a QV = 16 test\nseed = 42\n\nqv_circuit = QuantumVolume(n, depth=n, seed=seed)\nprint(qv_circuit.decompose().count_ops())\n",[19224],{"type":21,"tag":103,"props":19225,"children":19226},{"__ignoreMap":7},[19227,19247,19267,19286,19293,19315,19332,19339,19383],{"type":21,"tag":138,"props":19228,"children":19229},{"class":140,"line":141},[19230,19234,19238,19242],{"type":21,"tag":138,"props":19231,"children":19232},{"style":145},[19233],{"type":31,"value":148},{"type":21,"tag":138,"props":19235,"children":19236},{"style":151},[19237],{"type":31,"value":12842},{"type":21,"tag":138,"props":19239,"children":19240},{"style":145},[19241],{"type":31,"value":159},{"type":21,"tag":138,"props":19243,"children":19244},{"style":151},[19245],{"type":31,"value":19246}," QuantumVolume\n",{"type":21,"tag":138,"props":19248,"children":19249},{"class":140,"line":167},[19250,19254,19258,19262],{"type":21,"tag":138,"props":19251,"children":19252},{"style":145},[19253],{"type":31,"value":148},{"type":21,"tag":138,"props":19255,"children":19256},{"style":151},[19257],{"type":31,"value":17517},{"type":21,"tag":138,"props":19259,"children":19260},{"style":145},[19261],{"type":31,"value":159},{"type":21,"tag":138,"props":19263,"children":19264},{"style":151},[19265],{"type":31,"value":19266}," Statevector\n",{"type":21,"tag":138,"props":19268,"children":19269},{"class":140,"line":189},[19270,19274,19278,19282],{"type":21,"tag":138,"props":19271,"children":19272},{"style":145},[19273],{"type":31,"value":159},{"type":21,"tag":138,"props":19275,"children":19276},{"style":151},[19277],{"type":31,"value":8530},{"type":21,"tag":138,"props":19279,"children":19280},{"style":145},[19281],{"type":31,"value":5356},{"type":21,"tag":138,"props":19283,"children":19284},{"style":151},[19285],{"type":31,"value":8632},{"type":21,"tag":138,"props":19287,"children":19288},{"class":140,"line":199},[19289],{"type":21,"tag":138,"props":19290,"children":19291},{"emptyLinePlaceholder":193},[19292],{"type":31,"value":196},{"type":21,"tag":138,"props":19294,"children":19295},{"class":140,"line":225},[19296,19301,19305,19310],{"type":21,"tag":138,"props":19297,"children":19298},{"style":151},[19299],{"type":31,"value":19300},"n ",{"type":21,"tag":138,"props":19302,"children":19303},{"style":145},[19304],{"type":31,"value":210},{"type":21,"tag":138,"props":19306,"children":19307},{"style":213},[19308],{"type":31,"value":19309}," 4",{"type":21,"tag":138,"props":19311,"children":19312},{"style":219},[19313],{"type":31,"value":19314},"  # qubits, and circuit depth, for a QV = 16 test\n",{"type":21,"tag":138,"props":19316,"children":19317},{"class":140,"line":233},[19318,19323,19327],{"type":21,"tag":138,"props":19319,"children":19320},{"style":151},[19321],{"type":31,"value":19322},"seed ",{"type":21,"tag":138,"props":19324,"children":19325},{"style":145},[19326],{"type":31,"value":210},{"type":21,"tag":138,"props":19328,"children":19329},{"style":213},[19330],{"type":31,"value":19331}," 42\n",{"type":21,"tag":138,"props":19333,"children":19334},{"class":140,"line":272},[19335],{"type":21,"tag":138,"props":19336,"children":19337},{"emptyLinePlaceholder":193},[19338],{"type":31,"value":196},{"type":21,"tag":138,"props":19340,"children":19341},{"class":140,"line":308},[19342,19347,19351,19356,19361,19365,19370,19374,19378],{"type":21,"tag":138,"props":19343,"children":19344},{"style":151},[19345],{"type":31,"value":19346},"qv_circuit ",{"type":21,"tag":138,"props":19348,"children":19349},{"style":145},[19350],{"type":31,"value":210},{"type":21,"tag":138,"props":19352,"children":19353},{"style":151},[19354],{"type":31,"value":19355}," QuantumVolume(n, ",{"type":21,"tag":138,"props":19357,"children":19358},{"style":929},[19359],{"type":31,"value":19360},"depth",{"type":21,"tag":138,"props":19362,"children":19363},{"style":145},[19364],{"type":31,"value":210},{"type":21,"tag":138,"props":19366,"children":19367},{"style":151},[19368],{"type":31,"value":19369},"n, ",{"type":21,"tag":138,"props":19371,"children":19372},{"style":929},[19373],{"type":31,"value":14225},{"type":21,"tag":138,"props":19375,"children":19376},{"style":145},[19377],{"type":31,"value":210},{"type":21,"tag":138,"props":19379,"children":19380},{"style":151},[19381],{"type":31,"value":19382},"seed)\n",{"type":21,"tag":138,"props":19384,"children":19385},{"class":140,"line":16},[19386,19390],{"type":21,"tag":138,"props":19387,"children":19388},{"style":213},[19389],{"type":31,"value":954},{"type":21,"tag":138,"props":19391,"children":19392},{"style":151},[19393],{"type":31,"value":19394},"(qv_circuit.decompose().count_ops())\n",{"type":21,"tag":22,"props":19396,"children":19397},{},[19398],{"type":31,"value":19399},"Fixing a seed makes the circuit reproducible: the same seed always generates the same random layer structure, which is essential if you want to compare the identical test circuit's behavior on a simulator against real hardware later.",{"type":21,"tag":41,"props":19401,"children":19403},{"id":19402},"computing-the-heavy-outputs-classically",[19404],{"type":31,"value":19405},"Computing the heavy outputs classically",{"type":21,"tag":22,"props":19407,"children":19408},{},[19409],{"type":31,"value":19410},"Before running anything on noisy hardware, compute the ideal distribution to know what \"heavy\" means for this specific circuit:",{"type":21,"tag":128,"props":19412,"children":19414},{"className":130,"code":19413,"language":132,"meta":7,"style":7},"statevector = Statevector(qv_circuit)\nprobabilities = statevector.probabilities_dict()\n\nmedian_prob = np.median(list(probabilities.values()))\nheavy_outputs = {\n    bitstring for bitstring, p in probabilities.items()\n    if p > median_prob\n}\n\nprint(f\"{len(heavy_outputs)} heavy outputs out of {2**n} possible outcomes\")\n",[19415],{"type":21,"tag":103,"props":19416,"children":19417},{"__ignoreMap":7},[19418,19435,19452,19459,19486,19503,19529,19552,19560,19567],{"type":21,"tag":138,"props":19419,"children":19420},{"class":140,"line":141},[19421,19426,19430],{"type":21,"tag":138,"props":19422,"children":19423},{"style":151},[19424],{"type":31,"value":19425},"statevector ",{"type":21,"tag":138,"props":19427,"children":19428},{"style":145},[19429],{"type":31,"value":210},{"type":21,"tag":138,"props":19431,"children":19432},{"style":151},[19433],{"type":31,"value":19434}," Statevector(qv_circuit)\n",{"type":21,"tag":138,"props":19436,"children":19437},{"class":140,"line":167},[19438,19443,19447],{"type":21,"tag":138,"props":19439,"children":19440},{"style":151},[19441],{"type":31,"value":19442},"probabilities ",{"type":21,"tag":138,"props":19444,"children":19445},{"style":145},[19446],{"type":31,"value":210},{"type":21,"tag":138,"props":19448,"children":19449},{"style":151},[19450],{"type":31,"value":19451}," statevector.probabilities_dict()\n",{"type":21,"tag":138,"props":19453,"children":19454},{"class":140,"line":189},[19455],{"type":21,"tag":138,"props":19456,"children":19457},{"emptyLinePlaceholder":193},[19458],{"type":31,"value":196},{"type":21,"tag":138,"props":19460,"children":19461},{"class":140,"line":199},[19462,19467,19471,19476,19481],{"type":21,"tag":138,"props":19463,"children":19464},{"style":151},[19465],{"type":31,"value":19466},"median_prob ",{"type":21,"tag":138,"props":19468,"children":19469},{"style":145},[19470],{"type":31,"value":210},{"type":21,"tag":138,"props":19472,"children":19473},{"style":151},[19474],{"type":31,"value":19475}," np.median(",{"type":21,"tag":138,"props":19477,"children":19478},{"style":213},[19479],{"type":31,"value":19480},"list",{"type":21,"tag":138,"props":19482,"children":19483},{"style":151},[19484],{"type":31,"value":19485},"(probabilities.values()))\n",{"type":21,"tag":138,"props":19487,"children":19488},{"class":140,"line":225},[19489,19494,19498],{"type":21,"tag":138,"props":19490,"children":19491},{"style":151},[19492],{"type":31,"value":19493},"heavy_outputs ",{"type":21,"tag":138,"props":19495,"children":19496},{"style":145},[19497],{"type":31,"value":210},{"type":21,"tag":138,"props":19499,"children":19500},{"style":151},[19501],{"type":31,"value":19502}," {\n",{"type":21,"tag":138,"props":19504,"children":19505},{"class":140,"line":233},[19506,19511,19515,19520,19524],{"type":21,"tag":138,"props":19507,"children":19508},{"style":151},[19509],{"type":31,"value":19510},"    bitstring ",{"type":21,"tag":138,"props":19512,"children":19513},{"style":145},[19514],{"type":31,"value":1492},{"type":21,"tag":138,"props":19516,"children":19517},{"style":151},[19518],{"type":31,"value":19519}," bitstring, p ",{"type":21,"tag":138,"props":19521,"children":19522},{"style":145},[19523],{"type":31,"value":1502},{"type":21,"tag":138,"props":19525,"children":19526},{"style":151},[19527],{"type":31,"value":19528}," probabilities.items()\n",{"type":21,"tag":138,"props":19530,"children":19531},{"class":140,"line":272},[19532,19537,19542,19547],{"type":21,"tag":138,"props":19533,"children":19534},{"style":145},[19535],{"type":31,"value":19536},"    if",{"type":21,"tag":138,"props":19538,"children":19539},{"style":151},[19540],{"type":31,"value":19541}," p ",{"type":21,"tag":138,"props":19543,"children":19544},{"style":145},[19545],{"type":31,"value":19546},">",{"type":21,"tag":138,"props":19548,"children":19549},{"style":151},[19550],{"type":31,"value":19551}," median_prob\n",{"type":21,"tag":138,"props":19553,"children":19554},{"class":140,"line":308},[19555],{"type":21,"tag":138,"props":19556,"children":19557},{"style":151},[19558],{"type":31,"value":19559},"}\n",{"type":21,"tag":138,"props":19561,"children":19562},{"class":140,"line":16},[19563],{"type":21,"tag":138,"props":19564,"children":19565},{"emptyLinePlaceholder":193},[19566],{"type":31,"value":196},{"type":21,"tag":138,"props":19568,"children":19569},{"class":140,"line":360},[19570,19574,19578,19582,19586,19591,19596,19600,19605,19610,19614,19619,19623,19628],{"type":21,"tag":138,"props":19571,"children":19572},{"style":213},[19573],{"type":31,"value":954},{"type":21,"tag":138,"props":19575,"children":19576},{"style":151},[19577],{"type":31,"value":959},{"type":21,"tag":138,"props":19579,"children":19580},{"style":145},[19581],{"type":31,"value":7537},{"type":21,"tag":138,"props":19583,"children":19584},{"style":261},[19585],{"type":31,"value":15383},{"type":21,"tag":138,"props":19587,"children":19588},{"style":213},[19589],{"type":31,"value":19590},"{len",{"type":21,"tag":138,"props":19592,"children":19593},{"style":151},[19594],{"type":31,"value":19595},"(heavy_outputs)",{"type":21,"tag":138,"props":19597,"children":19598},{"style":213},[19599],{"type":31,"value":7556},{"type":21,"tag":138,"props":19601,"children":19602},{"style":261},[19603],{"type":31,"value":19604}," heavy outputs out of ",{"type":21,"tag":138,"props":19606,"children":19607},{"style":213},[19608],{"type":31,"value":19609},"{2",{"type":21,"tag":138,"props":19611,"children":19612},{"style":145},[19613],{"type":31,"value":4814},{"type":21,"tag":138,"props":19615,"children":19616},{"style":151},[19617],{"type":31,"value":19618},"n",{"type":21,"tag":138,"props":19620,"children":19621},{"style":213},[19622],{"type":31,"value":7556},{"type":21,"tag":138,"props":19624,"children":19625},{"style":261},[19626],{"type":31,"value":19627}," possible outcomes\"",{"type":21,"tag":138,"props":19629,"children":19630},{"style":151},[19631],{"type":31,"value":269},{"type":21,"tag":22,"props":19633,"children":19634},{},[19635],{"type":31,"value":19636},"For n = 4, there are 16 possible outcomes. Because heavy outputs are, by construction, everything above the median of a 16-value list, this returns 8 heavy outputs (the top half) for any generic (non-degenerate) probability distribution, a direct consequence of how the median is defined on a list of 16 distinct values, not something that depends on which particular circuit you generated.",{"type":21,"tag":41,"props":19638,"children":19640},{"id":19639},"checking-a-device-against-the-test",[19641],{"type":31,"value":19642},"Checking a device against the test",{"type":21,"tag":22,"props":19644,"children":19645},{},[19646,19648,19654],{"type":31,"value":19647},"The actual pass\u002Ffail check compares a device's measured shot distribution against the ",{"type":21,"tag":103,"props":19649,"children":19651},{"className":19650},[],[19652],{"type":31,"value":19653},"heavy_outputs",{"type":31,"value":19655}," set computed above:",{"type":21,"tag":128,"props":19657,"children":19659},{"className":130,"code":19658,"language":132,"meta":7,"style":7},"def heavy_output_fraction(counts, heavy_outputs, total_shots):\n    heavy_shots = sum(c for bitstring, c in counts.items() if bitstring in heavy_outputs)\n    return heavy_shots \u002F total_shots\n\n# counts = result from running qv_circuit on AerSimulator or real hardware\n# fraction = heavy_output_fraction(counts, heavy_outputs, shots)\n# passes = fraction > 2\u002F3 (with confidence interval accounting for shot noise)\n",[19660],{"type":21,"tag":103,"props":19661,"children":19662},{"__ignoreMap":7},[19663,19680,19739,19760,19767,19775,19783],{"type":21,"tag":138,"props":19664,"children":19665},{"class":140,"line":141},[19666,19670,19675],{"type":21,"tag":138,"props":19667,"children":19668},{"style":145},[19669],{"type":31,"value":5500},{"type":21,"tag":138,"props":19671,"children":19672},{"style":4522},[19673],{"type":31,"value":19674}," heavy_output_fraction",{"type":21,"tag":138,"props":19676,"children":19677},{"style":151},[19678],{"type":31,"value":19679},"(counts, heavy_outputs, total_shots):\n",{"type":21,"tag":138,"props":19681,"children":19682},{"class":140,"line":167},[19683,19688,19692,19697,19702,19706,19711,19715,19720,19725,19730,19734],{"type":21,"tag":138,"props":19684,"children":19685},{"style":151},[19686],{"type":31,"value":19687},"    heavy_shots ",{"type":21,"tag":138,"props":19689,"children":19690},{"style":145},[19691],{"type":31,"value":210},{"type":21,"tag":138,"props":19693,"children":19694},{"style":213},[19695],{"type":31,"value":19696}," sum",{"type":21,"tag":138,"props":19698,"children":19699},{"style":151},[19700],{"type":31,"value":19701},"(c ",{"type":21,"tag":138,"props":19703,"children":19704},{"style":145},[19705],{"type":31,"value":1492},{"type":21,"tag":138,"props":19707,"children":19708},{"style":151},[19709],{"type":31,"value":19710}," bitstring, c ",{"type":21,"tag":138,"props":19712,"children":19713},{"style":145},[19714],{"type":31,"value":1502},{"type":21,"tag":138,"props":19716,"children":19717},{"style":151},[19718],{"type":31,"value":19719}," counts.items() ",{"type":21,"tag":138,"props":19721,"children":19722},{"style":145},[19723],{"type":31,"value":19724},"if",{"type":21,"tag":138,"props":19726,"children":19727},{"style":151},[19728],{"type":31,"value":19729}," bitstring ",{"type":21,"tag":138,"props":19731,"children":19732},{"style":145},[19733],{"type":31,"value":1502},{"type":21,"tag":138,"props":19735,"children":19736},{"style":151},[19737],{"type":31,"value":19738}," heavy_outputs)\n",{"type":21,"tag":138,"props":19740,"children":19741},{"class":140,"line":189},[19742,19746,19751,19755],{"type":21,"tag":138,"props":19743,"children":19744},{"style":145},[19745],{"type":31,"value":5595},{"type":21,"tag":138,"props":19747,"children":19748},{"style":151},[19749],{"type":31,"value":19750}," heavy_shots ",{"type":21,"tag":138,"props":19752,"children":19753},{"style":145},[19754],{"type":31,"value":5075},{"type":21,"tag":138,"props":19756,"children":19757},{"style":151},[19758],{"type":31,"value":19759}," total_shots\n",{"type":21,"tag":138,"props":19761,"children":19762},{"class":140,"line":199},[19763],{"type":21,"tag":138,"props":19764,"children":19765},{"emptyLinePlaceholder":193},[19766],{"type":31,"value":196},{"type":21,"tag":138,"props":19768,"children":19769},{"class":140,"line":225},[19770],{"type":21,"tag":138,"props":19771,"children":19772},{"style":219},[19773],{"type":31,"value":19774},"# counts = result from running qv_circuit on AerSimulator or real hardware\n",{"type":21,"tag":138,"props":19776,"children":19777},{"class":140,"line":233},[19778],{"type":21,"tag":138,"props":19779,"children":19780},{"style":219},[19781],{"type":31,"value":19782},"# fraction = heavy_output_fraction(counts, heavy_outputs, shots)\n",{"type":21,"tag":138,"props":19784,"children":19785},{"class":140,"line":272},[19786],{"type":21,"tag":138,"props":19787,"children":19788},{"style":219},[19789],{"type":31,"value":19790},"# passes = fraction > 2\u002F3 (with confidence interval accounting for shot noise)\n",{"type":21,"tag":22,"props":19792,"children":19793},{},[19794],{"type":31,"value":19795},"Run this at increasing n (5, 6, 7...) against a real device until the pass criterion fails. Whatever the largest passing n was, that device's Quantum Volume is 2ⁿ.",{"type":21,"tag":41,"props":19797,"children":19799},{"id":19798},"why-this-matters-more-than-a-qubit-count",[19800],{"type":31,"value":19801},"Why this matters more than a qubit count",{"type":21,"tag":22,"props":19803,"children":19804},{},[19805,19807,19811],{"type":31,"value":19806},"A device might have a large qubit count and a modest Quantum Volume if its connectivity is poor or its two-qubit gate fidelity is weak, since either forces the transpiler to insert extra SWAP gates that eat into the circuit's effective depth budget. That's the entire reason the metric exists: to catch exactly the kind of headline that reports qubit count alone and lets a weak connectivity graph or a mediocre gate fidelity hide behind it. It has real limits too. Quantum Volume only tests up to the point where the device stops passing, so it says little about behavior far past that threshold, and its randomized-circuit structure doesn't necessarily reflect the specific circuits any particular application runs. Application-oriented benchmarks like the ones tracked on our ",{"type":21,"tag":26,"props":19808,"children":19809},{"href":3459},[19810],{"type":31,"value":3469},{"type":31,"value":19812}," exist partly to fill that gap.",{"type":21,"tag":41,"props":19814,"children":19815},{"id":5913},[19816],{"type":31,"value":5916},{"type":21,"tag":1118,"props":19818,"children":19819},{},[19820,19832,19844],{"type":21,"tag":71,"props":19821,"children":19822},{},[19823,19825,19830],{"type":31,"value":19824},"Generate ",{"type":21,"tag":103,"props":19826,"children":19828},{"className":19827},[],[19829],{"type":31,"value":19217},{"type":31,"value":19831}," circuits at increasing n and watch how quickly the transpiled two-qubit gate count grows once you target a real device's connectivity graph instead of an all-to-all simulator.",{"type":21,"tag":71,"props":19833,"children":19834},{},[19835,19837,19842],{"type":31,"value":19836},"Compare heavy-output fractions between a noiseless ",{"type":21,"tag":103,"props":19838,"children":19840},{"className":19839},[],[19841],{"type":31,"value":1679},{"type":31,"value":19843}," and a noisy one built with a realistic device noise model, and find the n where the pass criterion starts failing.",{"type":21,"tag":71,"props":19845,"children":19846},{},[19847,19848,19853],{"type":31,"value":13448},{"type":21,"tag":26,"props":19849,"children":19850},{"href":19128},[19851],{"type":31,"value":19852},"quantum benchmarking executive order piece",{"type":31,"value":19854}," for why the field still doesn't agree on a single trustworthy way to compare hardware, Quantum Volume included.",{"type":21,"tag":1174,"props":19856,"children":19857},{},[19858],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":19860},[19861,19862,19863,19864,19865,19866,19867],{"id":19136,"depth":167,"text":19139},{"id":19154,"depth":167,"text":19157},{"id":19203,"depth":167,"text":19206},{"id":19402,"depth":167,"text":19405},{"id":19639,"depth":167,"text":19642},{"id":19798,"depth":167,"text":19801},{"id":5913,"depth":167,"text":5916},"content:blog:quantum-volume-benchmarking-tutorial.md","blog\u002Fquantum-volume-benchmarking-tutorial.md","blog\u002Fquantum-volume-benchmarking-tutorial",{"_path":19872,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":19873,"description":19874,"date":16779,"author":11,"tags":19875,"readingTime":233,"body":19876,"_type":1193,"_id":19947,"_source":1195,"_file":19948,"_stem":19949,"_extension":1198},"\u002Fblog\u002Frigetti-hpe-pittsburgh-tanglelab","Rigetti, HPE, and Pittsburgh Build 'TangleLab,' a 9-Qubit Hybrid HPC Testbed","Rigetti, HPE, and the Pittsburgh Supercomputing Center are building TangleLab, an NSF-funded hybrid quantum-classical supercomputer pairing a 9-qubit Novera system with classical HPC. Construction starts September 1, 2026, with full operations targeted for 2027.",[3409,1213],{"type":18,"children":19877,"toc":19941},[19878,19883,19889,19900,19906,19917,19921,19926,19930],{"type":21,"tag":22,"props":19879,"children":19880},{},[19881],{"type":31,"value":19882},"Rigetti announced an expanded collaboration with HPE and the Pittsburgh Supercomputing Center on July 27, 2026, to build TangleLab, a hybrid quantum-classical supercomputing testbed. The project is funded by a $5 million National Science Foundation grant, pairs a 9-qubit Rigetti Novera system with a classical HPC system, and construction begins September 1, 2026, at PSC's new data center, targeting entire operations in 2027.",{"type":21,"tag":41,"props":19884,"children":19886},{"id":19885},"a-small-qubit-count-on-purpose",[19887],{"type":31,"value":19888},"A small qubit count, on purpose",{"type":21,"tag":22,"props":19890,"children":19891},{},[19892,19894,19898],{"type":31,"value":19893},"Nine qubits is a modest number next to the systems this site usually covers, and that's the point of a testbed rather than a production system. TangleLab exists to work out the integration problem, how a real quantum processor and a real classical supercomputer talk to each other under production HPC conditions, not to demonstrate a qubit-count milestone. Our ",{"type":21,"tag":26,"props":19895,"children":19896},{"href":3725},[19897],{"type":31,"value":18490},{"type":31,"value":19899}," already covers where Rigetti sits on pure hardware metrics: behind IBM, Google, IonQ, and Quantinuum on fidelity and commercial traction, with its strongest asset being a solid cash position. A federally funded integration testbed is a different kind of contribution, orthogonal to that ranking rather than a challenge to it.",{"type":21,"tag":41,"props":19901,"children":19903},{"id":19902},"a-varied-integration-model-than-nvidias",[19904],{"type":31,"value":19905},"A varied integration model than NVIDIA's",{"type":21,"tag":22,"props":19907,"children":19908},{},[19909,19910,19915],{"type":31,"value":4494},{"type":21,"tag":26,"props":19911,"children":19912},{"href":17307},[19913],{"type":31,"value":19914},"NVQLink page",{"type":31,"value":19916}," covers NVIDIA's approach to the same general problem, connecting GPU-accelerated classical compute to QPU control electronics with sub-4-microsecond latency, aimed at real-time error correction decoding. TangleLab is a different kind of integration project: an NSF-funded, academically hosted testbed built around one specific vendor's hardware (Rigetti's Novera) rather than an open, provider-agnostic architecture spanning many QPU builders. Both are real answers to \"how does a quantum processor plug into HPC infrastructure,\" built for different purposes, one a broad industry standard, one a focused research testbed.",{"type":21,"tag":41,"props":19918,"children":19919},{"id":3674},[19920],{"type":31,"value":3677},{"type":21,"tag":22,"props":19922,"children":19923},{},[19924],{"type":31,"value":19925},"Confirmed: the $5 million NSF grant, the 9-qubit Novera hardware, the September 1 construction start, and the 2027 full-operations goal. Not yet known: what specific research workloads TangleLab will run first, or what integration lessons it produces that might generalize beyond this one testbed. That's the part worth watching once construction finishes.",{"type":21,"tag":41,"props":19927,"children":19928},{"id":3474},[19929],{"type":31,"value":3477},{"type":21,"tag":22,"props":19931,"children":19932},{},[19933,19935,19939],{"type":31,"value":19934},"Whether TangleLab publishes real integration benchmarks (latency, throughput between the classical and quantum sides) once operational in 2027, the equivalent kind of number this site looks for in any hybrid quantum-classical assertion. Our ",{"type":21,"tag":26,"props":19936,"children":19937},{"href":1106},[19938],{"type":31,"value":16093},{"type":31,"value":19940}," tracks how testbeds like this compare with other paths to real QPU access.",{"title":7,"searchDepth":167,"depth":167,"links":19942},[19943,19944,19945,19946],{"id":19885,"depth":167,"text":19888},{"id":19902,"depth":167,"text":19905},{"id":3674,"depth":167,"text":3677},{"id":3474,"depth":167,"text":3477},"content:blog:rigetti-hpe-pittsburgh-tanglelab.md","blog\u002Frigetti-hpe-pittsburgh-tanglelab.md","blog\u002Frigetti-hpe-pittsburgh-tanglelab",{"_path":19951,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":19952,"description":19953,"date":16779,"author":11,"tags":19954,"readingTime":368,"body":19955,"_type":1193,"_id":21281,"_source":1195,"_file":21282,"_stem":21283,"_extension":1198},"\u002Fblog\u002Fshors-algorithm-tutorial","Shor's Algorithm in Qiskit: A Practical Tutorial","Build Shor's factoring algorithm from scratch in Qiskit: modular exponentiation, the quantum Fourier transform, and the continued-fractions post-processing that turns a measured phase into a real factor of 15.",[13,14,15],{"type":18,"children":19956,"toc":21271},[19957,19977,19982,19988,20008,20013,20019,20024,20421,20426,20432,20444,20697,20702,20708,20713,20721,20727,20732,20959,20964,20970,20975,21182,21187,21193,21218,21222,21267],{"type":21,"tag":22,"props":19958,"children":19959},{},[19960,19962,19968,19970,19975],{"type":31,"value":19961},"Shor's algorithm gets referenced constantly on this site, in our ",{"type":21,"tag":26,"props":19963,"children":19965},{"href":19964},"\u002Fblog\u002Fq-day-breaking-rsa-2048",[19966],{"type":31,"value":19967},"Q-Day piece",{"type":31,"value":19969}," and our ",{"type":21,"tag":26,"props":19971,"children":19972},{"href":18029},[19973],{"type":31,"value":19974},"QFT tutorial",{"type":31,"value":19976},", because it's the algorithm that makes RSA a finite-lifetime cryptosystem. It rarely gets built. This tutorial builds it, using the standard small textbook example (factoring 15) so every piece stays visible instead of disappearing into a circuit too large to reason about.",{"type":21,"tag":22,"props":19978,"children":19979},{},[19980],{"type":31,"value":19981},"A note on the code below: it targets Qiskit 2.5.0 and is written to run as shown. Where a step involves probabilistic measurement, we describe the theoretical distribution the math predicts rather than presenting a specific captured run as if it were the only possible outcome.",{"type":21,"tag":41,"props":19983,"children":19985},{"id":19984},"what-shors-algorithm-reduces-to",[19986],{"type":31,"value":19987},"What Shor's algorithm reduces to",{"type":21,"tag":22,"props":19989,"children":19990},{},[19991,19993,19998,20000,20006],{"type":31,"value":19992},"Factoring N reduces to a different problem: given some a coprime to N, find the smallest r such that a^r ≡ 1 (mod N). This is ",{"type":21,"tag":16815,"props":19994,"children":19995},{},[19996],{"type":31,"value":19997},"order finding",{"type":31,"value":19999},", and once you have r, classical post-processing (a GCD computation) usually hands you a real factor. The ",{"type":21,"tag":26,"props":20001,"children":20003},{"href":20002},"\u002Fresearch\u002Fshor-factoring-1994",[20004],{"type":31,"value":20005},"1994 paper",{"type":31,"value":20007}," is short precisely because almost all of it is number theory. The quantum part exists only to locate r fast, since finding it classically takes exponential time.",{"type":21,"tag":22,"props":20009,"children":20010},{},[20011],{"type":31,"value":20012},"For N = 15, pick a = 7 (coprime to 15, and a well-known example because the period is small enough to see clearly). The sequence 7¹, 7², 7³, 7⁴ mod 15 is 7, 4, 13, 1, so r = 4.",{"type":21,"tag":41,"props":20014,"children":20016},{"id":20015},"step-1-modular-exponentiation-as-a-quantum-operator",[20017],{"type":31,"value":20018},"Step 1: Modular exponentiation as a quantum operator",{"type":21,"tag":22,"props":20020,"children":20021},{},[20022],{"type":31,"value":20023},"The circuit needs a unitary U that maps |x⟩ to |a·x mod N⟩ for a work register, controlled by a counting register. Building a general modular exponentiation circuit is real engineering (see Qiskit's own algorithm library for the entire construction), so this tutorial uses the standard shortcut for the textbook case: since 7 mod 15 has order 4, the controlled-U operations reduce to a small, explicit permutation matrix on 4 qubits (one for the counting register bit being tested, plus a 4-state work register encoded in 2 qubits for the cycle 1 → 7 → 4 → 13 → 1).",{"type":21,"tag":128,"props":20025,"children":20027},{"code":20026,"language":132,"meta":7,"className":130,"style":7},"import numpy as np\nfrom qiskit import QuantumCircuit, transpile\nfrom qiskit.circuit.library import QFTGate\nfrom qiskit_aer import AerSimulator\nfrom fractions import Fraction\n\nN, a = 15, 7\n\ndef c_amod15(power):\n    \"\"\"Controlled multiplication by 7^power mod 15, built from the known 4-cycle.\"\"\"\n    qc = QuantumCircuit(4)\n    for _ in range(power):\n        qc.swap(2, 3)\n        qc.swap(1, 2)\n        qc.swap(0, 1)\n        for q in range(4):\n            qc.x(q)\n    U = qc.to_gate()\n    U.name = f\"7^{power} mod 15\"\n    return U.control()\n",[20028],{"type":21,"tag":103,"props":20029,"children":20030},{"__ignoreMap":7},[20031,20050,20070,20090,20109,20130,20137,20163,20170,20187,20195,20218,20241,20265,20288,20311,20344,20352,20369,20409],{"type":21,"tag":138,"props":20032,"children":20033},{"class":140,"line":141},[20034,20038,20042,20046],{"type":21,"tag":138,"props":20035,"children":20036},{"style":145},[20037],{"type":31,"value":159},{"type":21,"tag":138,"props":20039,"children":20040},{"style":151},[20041],{"type":31,"value":8530},{"type":21,"tag":138,"props":20043,"children":20044},{"style":145},[20045],{"type":31,"value":5356},{"type":21,"tag":138,"props":20047,"children":20048},{"style":151},[20049],{"type":31,"value":8632},{"type":21,"tag":138,"props":20051,"children":20052},{"class":140,"line":167},[20053,20057,20061,20065],{"type":21,"tag":138,"props":20054,"children":20055},{"style":145},[20056],{"type":31,"value":148},{"type":21,"tag":138,"props":20058,"children":20059},{"style":151},[20060],{"type":31,"value":154},{"type":21,"tag":138,"props":20062,"children":20063},{"style":145},[20064],{"type":31,"value":159},{"type":21,"tag":138,"props":20066,"children":20067},{"style":151},[20068],{"type":31,"value":20069}," QuantumCircuit, transpile\n",{"type":21,"tag":138,"props":20071,"children":20072},{"class":140,"line":189},[20073,20077,20081,20085],{"type":21,"tag":138,"props":20074,"children":20075},{"style":145},[20076],{"type":31,"value":148},{"type":21,"tag":138,"props":20078,"children":20079},{"style":151},[20080],{"type":31,"value":12842},{"type":21,"tag":138,"props":20082,"children":20083},{"style":145},[20084],{"type":31,"value":159},{"type":21,"tag":138,"props":20086,"children":20087},{"style":151},[20088],{"type":31,"value":20089}," QFTGate\n",{"type":21,"tag":138,"props":20091,"children":20092},{"class":140,"line":199},[20093,20097,20101,20105],{"type":21,"tag":138,"props":20094,"children":20095},{"style":145},[20096],{"type":31,"value":148},{"type":21,"tag":138,"props":20098,"children":20099},{"style":151},[20100],{"type":31,"value":177},{"type":21,"tag":138,"props":20102,"children":20103},{"style":145},[20104],{"type":31,"value":159},{"type":21,"tag":138,"props":20106,"children":20107},{"style":151},[20108],{"type":31,"value":186},{"type":21,"tag":138,"props":20110,"children":20111},{"class":140,"line":225},[20112,20116,20121,20125],{"type":21,"tag":138,"props":20113,"children":20114},{"style":145},[20115],{"type":31,"value":148},{"type":21,"tag":138,"props":20117,"children":20118},{"style":151},[20119],{"type":31,"value":20120}," fractions ",{"type":21,"tag":138,"props":20122,"children":20123},{"style":145},[20124],{"type":31,"value":159},{"type":21,"tag":138,"props":20126,"children":20127},{"style":151},[20128],{"type":31,"value":20129}," Fraction\n",{"type":21,"tag":138,"props":20131,"children":20132},{"class":140,"line":233},[20133],{"type":21,"tag":138,"props":20134,"children":20135},{"emptyLinePlaceholder":193},[20136],{"type":31,"value":196},{"type":21,"tag":138,"props":20138,"children":20139},{"class":140,"line":272},[20140,20145,20149,20154,20158],{"type":21,"tag":138,"props":20141,"children":20142},{"style":151},[20143],{"type":31,"value":20144},"N, a ",{"type":21,"tag":138,"props":20146,"children":20147},{"style":145},[20148],{"type":31,"value":210},{"type":21,"tag":138,"props":20150,"children":20151},{"style":213},[20152],{"type":31,"value":20153}," 15",{"type":21,"tag":138,"props":20155,"children":20156},{"style":151},[20157],{"type":31,"value":258},{"type":21,"tag":138,"props":20159,"children":20160},{"style":213},[20161],{"type":31,"value":20162},"7\n",{"type":21,"tag":138,"props":20164,"children":20165},{"class":140,"line":308},[20166],{"type":21,"tag":138,"props":20167,"children":20168},{"emptyLinePlaceholder":193},[20169],{"type":31,"value":196},{"type":21,"tag":138,"props":20171,"children":20172},{"class":140,"line":16},[20173,20177,20182],{"type":21,"tag":138,"props":20174,"children":20175},{"style":145},[20176],{"type":31,"value":5500},{"type":21,"tag":138,"props":20178,"children":20179},{"style":4522},[20180],{"type":31,"value":20181}," c_amod15",{"type":21,"tag":138,"props":20183,"children":20184},{"style":151},[20185],{"type":31,"value":20186},"(power):\n",{"type":21,"tag":138,"props":20188,"children":20189},{"class":140,"line":360},[20190],{"type":21,"tag":138,"props":20191,"children":20192},{"style":261},[20193],{"type":31,"value":20194},"    \"\"\"Controlled multiplication by 7^power mod 15, built from the known 4-cycle.\"\"\"\n",{"type":21,"tag":138,"props":20196,"children":20197},{"class":140,"line":368},[20198,20202,20206,20210,20214],{"type":21,"tag":138,"props":20199,"children":20200},{"style":151},[20201],{"type":31,"value":17784},{"type":21,"tag":138,"props":20203,"children":20204},{"style":145},[20205],{"type":31,"value":210},{"type":21,"tag":138,"props":20207,"children":20208},{"style":151},[20209],{"type":31,"value":6305},{"type":21,"tag":138,"props":20211,"children":20212},{"style":213},[20213],{"type":31,"value":17931},{"type":21,"tag":138,"props":20215,"children":20216},{"style":151},[20217],{"type":31,"value":269},{"type":21,"tag":138,"props":20219,"children":20220},{"class":140,"line":377},[20221,20225,20229,20233,20237],{"type":21,"tag":138,"props":20222,"children":20223},{"style":145},[20224],{"type":31,"value":17037},{"type":21,"tag":138,"props":20226,"children":20227},{"style":151},[20228],{"type":31,"value":17840},{"type":21,"tag":138,"props":20230,"children":20231},{"style":145},[20232],{"type":31,"value":1502},{"type":21,"tag":138,"props":20234,"children":20235},{"style":213},[20236],{"type":31,"value":7430},{"type":21,"tag":138,"props":20238,"children":20239},{"style":151},[20240],{"type":31,"value":20186},{"type":21,"tag":138,"props":20242,"children":20243},{"class":140,"line":386},[20244,20249,20253,20257,20261],{"type":21,"tag":138,"props":20245,"children":20246},{"style":151},[20247],{"type":31,"value":20248},"        qc.swap(",{"type":21,"tag":138,"props":20250,"children":20251},{"style":213},[20252],{"type":31,"value":292},{"type":21,"tag":138,"props":20254,"children":20255},{"style":151},[20256],{"type":31,"value":258},{"type":21,"tag":138,"props":20258,"children":20259},{"style":213},[20260],{"type":31,"value":253},{"type":21,"tag":138,"props":20262,"children":20263},{"style":151},[20264],{"type":31,"value":269},{"type":21,"tag":138,"props":20266,"children":20267},{"class":140,"line":395},[20268,20272,20276,20280,20284],{"type":21,"tag":138,"props":20269,"children":20270},{"style":151},[20271],{"type":31,"value":20248},{"type":21,"tag":138,"props":20273,"children":20274},{"style":213},[20275],{"type":31,"value":327},{"type":21,"tag":138,"props":20277,"children":20278},{"style":151},[20279],{"type":31,"value":258},{"type":21,"tag":138,"props":20281,"children":20282},{"style":213},[20283],{"type":31,"value":292},{"type":21,"tag":138,"props":20285,"children":20286},{"style":151},[20287],{"type":31,"value":269},{"type":21,"tag":138,"props":20289,"children":20290},{"class":140,"line":413},[20291,20295,20299,20303,20307],{"type":21,"tag":138,"props":20292,"children":20293},{"style":151},[20294],{"type":31,"value":20248},{"type":21,"tag":138,"props":20296,"children":20297},{"style":213},[20298],{"type":31,"value":406},{"type":21,"tag":138,"props":20300,"children":20301},{"style":151},[20302],{"type":31,"value":258},{"type":21,"tag":138,"props":20304,"children":20305},{"style":213},[20306],{"type":31,"value":327},{"type":21,"tag":138,"props":20308,"children":20309},{"style":151},[20310],{"type":31,"value":269},{"type":21,"tag":138,"props":20312,"children":20313},{"class":140,"line":12602},[20314,20319,20324,20328,20332,20336,20340],{"type":21,"tag":138,"props":20315,"children":20316},{"style":145},[20317],{"type":31,"value":20318},"        for",{"type":21,"tag":138,"props":20320,"children":20321},{"style":151},[20322],{"type":31,"value":20323}," q ",{"type":21,"tag":138,"props":20325,"children":20326},{"style":145},[20327],{"type":31,"value":1502},{"type":21,"tag":138,"props":20329,"children":20330},{"style":213},[20331],{"type":31,"value":7430},{"type":21,"tag":138,"props":20333,"children":20334},{"style":151},[20335],{"type":31,"value":959},{"type":21,"tag":138,"props":20337,"children":20338},{"style":213},[20339],{"type":31,"value":17931},{"type":21,"tag":138,"props":20341,"children":20342},{"style":151},[20343],{"type":31,"value":7443},{"type":21,"tag":138,"props":20345,"children":20346},{"class":140,"line":12619},[20347],{"type":21,"tag":138,"props":20348,"children":20349},{"style":151},[20350],{"type":31,"value":20351},"            qc.x(q)\n",{"type":21,"tag":138,"props":20353,"children":20354},{"class":140,"line":12635},[20355,20360,20364],{"type":21,"tag":138,"props":20356,"children":20357},{"style":151},[20358],{"type":31,"value":20359},"    U ",{"type":21,"tag":138,"props":20361,"children":20362},{"style":145},[20363],{"type":31,"value":210},{"type":21,"tag":138,"props":20365,"children":20366},{"style":151},[20367],{"type":31,"value":20368}," qc.to_gate()\n",{"type":21,"tag":138,"props":20370,"children":20371},{"class":140,"line":12643},[20372,20377,20381,20386,20391,20395,20400,20404],{"type":21,"tag":138,"props":20373,"children":20374},{"style":151},[20375],{"type":31,"value":20376},"    U.name ",{"type":21,"tag":138,"props":20378,"children":20379},{"style":145},[20380],{"type":31,"value":210},{"type":21,"tag":138,"props":20382,"children":20383},{"style":145},[20384],{"type":31,"value":20385}," f",{"type":21,"tag":138,"props":20387,"children":20388},{"style":261},[20389],{"type":31,"value":20390},"\"7^",{"type":21,"tag":138,"props":20392,"children":20393},{"style":213},[20394],{"type":31,"value":7547},{"type":21,"tag":138,"props":20396,"children":20397},{"style":151},[20398],{"type":31,"value":20399},"power",{"type":21,"tag":138,"props":20401,"children":20402},{"style":213},[20403],{"type":31,"value":7556},{"type":21,"tag":138,"props":20405,"children":20406},{"style":261},[20407],{"type":31,"value":20408}," mod 15\"\n",{"type":21,"tag":138,"props":20410,"children":20411},{"class":140,"line":17760},[20412,20416],{"type":21,"tag":138,"props":20413,"children":20414},{"style":145},[20415],{"type":31,"value":5595},{"type":21,"tag":138,"props":20417,"children":20418},{"style":151},[20419],{"type":31,"value":20420}," U.control()\n",{"type":21,"tag":22,"props":20422,"children":20423},{},[20424],{"type":31,"value":20425},"This is the standard construction used in introductory Shor's tutorials for N = 15 specifically. It is not a general modular exponentiation circuit, and it would not extend to a larger N without a real arithmetic circuit behind it, worth being upfront about rather than implying this scales.",{"type":21,"tag":41,"props":20427,"children":20429},{"id":20428},"step-2-the-counting-register-and-inverse-qft",[20430],{"type":31,"value":20431},"Step 2: The counting register and inverse QFT",{"type":21,"tag":22,"props":20433,"children":20434},{},[20435,20437,20442],{"type":31,"value":20436},"Order finding is ",{"type":21,"tag":26,"props":20438,"children":20439},{"href":18029},[20440],{"type":31,"value":20441},"quantum phase estimation",{"type":31,"value":20443}," applied to the operator \"multiply by a mod N.\" Three counting qubits are enough to resolve a period of 4 (since 2³ = 8 gives more than enough resolution for r = 4):",{"type":21,"tag":128,"props":20445,"children":20447},{"code":20446,"language":132,"meta":7,"className":130,"style":7},"n_count = 3\n\nqc = QuantumCircuit(n_count + 4, n_count)\n\nfor q in range(n_count):\n    qc.h(q)\n\nqc.x(n_count)  # work register starts in |1>\n\nfor q in range(n_count):\n    qc.append(c_amod15(2 ** q), [q] + list(range(n_count, n_count + 4)))\n\nqc.append(QFTGate(n_count).inverse(), range(n_count))\nqc.measure(range(n_count), range(n_count))\n",[20448],{"type":21,"tag":103,"props":20449,"children":20450},{"__ignoreMap":7},[20451,20468,20475,20504,20511,20535,20543,20550,20563,20570,20593,20649,20656,20673],{"type":21,"tag":138,"props":20452,"children":20453},{"class":140,"line":141},[20454,20459,20463],{"type":21,"tag":138,"props":20455,"children":20456},{"style":151},[20457],{"type":31,"value":20458},"n_count ",{"type":21,"tag":138,"props":20460,"children":20461},{"style":145},[20462],{"type":31,"value":210},{"type":21,"tag":138,"props":20464,"children":20465},{"style":213},[20466],{"type":31,"value":20467}," 3\n",{"type":21,"tag":138,"props":20469,"children":20470},{"class":140,"line":167},[20471],{"type":21,"tag":138,"props":20472,"children":20473},{"emptyLinePlaceholder":193},[20474],{"type":31,"value":196},{"type":21,"tag":138,"props":20476,"children":20477},{"class":140,"line":189},[20478,20482,20486,20491,20495,20499],{"type":21,"tag":138,"props":20479,"children":20480},{"style":151},[20481],{"type":31,"value":348},{"type":21,"tag":138,"props":20483,"children":20484},{"style":145},[20485],{"type":31,"value":210},{"type":21,"tag":138,"props":20487,"children":20488},{"style":151},[20489],{"type":31,"value":20490}," QuantumCircuit(n_count ",{"type":21,"tag":138,"props":20492,"children":20493},{"style":145},[20494],{"type":31,"value":1605},{"type":21,"tag":138,"props":20496,"children":20497},{"style":213},[20498],{"type":31,"value":19309},{"type":21,"tag":138,"props":20500,"children":20501},{"style":151},[20502],{"type":31,"value":20503},", n_count)\n",{"type":21,"tag":138,"props":20505,"children":20506},{"class":140,"line":199},[20507],{"type":21,"tag":138,"props":20508,"children":20509},{"emptyLinePlaceholder":193},[20510],{"type":31,"value":196},{"type":21,"tag":138,"props":20512,"children":20513},{"class":140,"line":225},[20514,20518,20522,20526,20530],{"type":21,"tag":138,"props":20515,"children":20516},{"style":145},[20517],{"type":31,"value":1492},{"type":21,"tag":138,"props":20519,"children":20520},{"style":151},[20521],{"type":31,"value":20323},{"type":21,"tag":138,"props":20523,"children":20524},{"style":145},[20525],{"type":31,"value":1502},{"type":21,"tag":138,"props":20527,"children":20528},{"style":213},[20529],{"type":31,"value":7430},{"type":21,"tag":138,"props":20531,"children":20532},{"style":151},[20533],{"type":31,"value":20534},"(n_count):\n",{"type":21,"tag":138,"props":20536,"children":20537},{"class":140,"line":233},[20538],{"type":21,"tag":138,"props":20539,"children":20540},{"style":151},[20541],{"type":31,"value":20542},"    qc.h(q)\n",{"type":21,"tag":138,"props":20544,"children":20545},{"class":140,"line":272},[20546],{"type":21,"tag":138,"props":20547,"children":20548},{"emptyLinePlaceholder":193},[20549],{"type":31,"value":196},{"type":21,"tag":138,"props":20551,"children":20552},{"class":140,"line":308},[20553,20558],{"type":21,"tag":138,"props":20554,"children":20555},{"style":151},[20556],{"type":31,"value":20557},"qc.x(n_count)  ",{"type":21,"tag":138,"props":20559,"children":20560},{"style":219},[20561],{"type":31,"value":20562},"# work register starts in |1>\n",{"type":21,"tag":138,"props":20564,"children":20565},{"class":140,"line":16},[20566],{"type":21,"tag":138,"props":20567,"children":20568},{"emptyLinePlaceholder":193},[20569],{"type":31,"value":196},{"type":21,"tag":138,"props":20571,"children":20572},{"class":140,"line":360},[20573,20577,20581,20585,20589],{"type":21,"tag":138,"props":20574,"children":20575},{"style":145},[20576],{"type":31,"value":1492},{"type":21,"tag":138,"props":20578,"children":20579},{"style":151},[20580],{"type":31,"value":20323},{"type":21,"tag":138,"props":20582,"children":20583},{"style":145},[20584],{"type":31,"value":1502},{"type":21,"tag":138,"props":20586,"children":20587},{"style":213},[20588],{"type":31,"value":7430},{"type":21,"tag":138,"props":20590,"children":20591},{"style":151},[20592],{"type":31,"value":20534},{"type":21,"tag":138,"props":20594,"children":20595},{"class":140,"line":368},[20596,20601,20605,20610,20615,20619,20623,20627,20631,20636,20640,20644],{"type":21,"tag":138,"props":20597,"children":20598},{"style":151},[20599],{"type":31,"value":20600},"    qc.append(c_amod15(",{"type":21,"tag":138,"props":20602,"children":20603},{"style":213},[20604],{"type":31,"value":292},{"type":21,"tag":138,"props":20606,"children":20607},{"style":145},[20608],{"type":31,"value":20609}," **",{"type":21,"tag":138,"props":20611,"children":20612},{"style":151},[20613],{"type":31,"value":20614}," q), [q] ",{"type":21,"tag":138,"props":20616,"children":20617},{"style":145},[20618],{"type":31,"value":1605},{"type":21,"tag":138,"props":20620,"children":20621},{"style":213},[20622],{"type":31,"value":11131},{"type":21,"tag":138,"props":20624,"children":20625},{"style":151},[20626],{"type":31,"value":959},{"type":21,"tag":138,"props":20628,"children":20629},{"style":213},[20630],{"type":31,"value":17726},{"type":21,"tag":138,"props":20632,"children":20633},{"style":151},[20634],{"type":31,"value":20635},"(n_count, n_count ",{"type":21,"tag":138,"props":20637,"children":20638},{"style":145},[20639],{"type":31,"value":1605},{"type":21,"tag":138,"props":20641,"children":20642},{"style":213},[20643],{"type":31,"value":19309},{"type":21,"tag":138,"props":20645,"children":20646},{"style":151},[20647],{"type":31,"value":20648},")))\n",{"type":21,"tag":138,"props":20650,"children":20651},{"class":140,"line":377},[20652],{"type":21,"tag":138,"props":20653,"children":20654},{"emptyLinePlaceholder":193},[20655],{"type":31,"value":196},{"type":21,"tag":138,"props":20657,"children":20658},{"class":140,"line":386},[20659,20664,20668],{"type":21,"tag":138,"props":20660,"children":20661},{"style":151},[20662],{"type":31,"value":20663},"qc.append(QFTGate(n_count).inverse(), ",{"type":21,"tag":138,"props":20665,"children":20666},{"style":213},[20667],{"type":31,"value":17726},{"type":21,"tag":138,"props":20669,"children":20670},{"style":151},[20671],{"type":31,"value":20672},"(n_count))\n",{"type":21,"tag":138,"props":20674,"children":20675},{"class":140,"line":395},[20676,20680,20684,20689,20693],{"type":21,"tag":138,"props":20677,"children":20678},{"style":151},[20679],{"type":31,"value":580},{"type":21,"tag":138,"props":20681,"children":20682},{"style":213},[20683],{"type":31,"value":17726},{"type":21,"tag":138,"props":20685,"children":20686},{"style":151},[20687],{"type":31,"value":20688},"(n_count), ",{"type":21,"tag":138,"props":20690,"children":20691},{"style":213},[20692],{"type":31,"value":17726},{"type":21,"tag":138,"props":20694,"children":20695},{"style":151},[20696],{"type":31,"value":20672},{"type":21,"tag":22,"props":20698,"children":20699},{},[20700],{"type":31,"value":20701},"The inverse QFT is doing exactly the job described in our QFT tutorial: pulling a phase that encodes the period out into a measurable computational-basis number.",{"type":21,"tag":41,"props":20703,"children":20705},{"id":20704},"step-3-what-the-counting-register-measures",[20706],{"type":31,"value":20707},"Step 3: What the counting register measures",{"type":21,"tag":22,"props":20709,"children":20710},{},[20711],{"type":31,"value":20712},"With 3 counting qubits and a true period of 4, quantum phase estimation concentrates the measurement outcomes on multiples of 8\u002F4 = 2: the states 0, 2, 4, and 6, each with a theoretical probability of 1\u002F4 in the ideal noiseless case. That's the mathematical prediction from the phase estimation formula, not a specific simulated run, and it's the number to check your own execution against if you run this yourself.",{"type":21,"tag":128,"props":20714,"children":20716},{"code":20715},"Expected measurement distribution (ideal, 3 counting qubits):\n000 (0) -> 1\u002F4\n010 (2) -> 1\u002F4\n100 (4) -> 1\u002F4\n110 (6) -> 1\u002F4\n",[20717],{"type":21,"tag":103,"props":20718,"children":20719},{"__ignoreMap":7},[20720],{"type":31,"value":20715},{"type":21,"tag":41,"props":20722,"children":20724},{"id":20723},"step-4-continued-fractions-turn-a-measurement-into-r",[20725],{"type":31,"value":20726},"Step 4: Continued fractions turn a measurement into r",{"type":21,"tag":22,"props":20728,"children":20729},{},[20730],{"type":31,"value":20731},"Each measured integer m encodes a phase s\u002Fr as m\u002F2^n_count. Continued fractions recovers the fraction in lowest terms:",{"type":21,"tag":128,"props":20733,"children":20735},{"code":20734,"language":132,"meta":7,"className":130,"style":7},"def phase_to_period(measured, n_count, N):\n    phase = measured \u002F (2 ** n_count)\n    frac = Fraction(phase).limit_denominator(N)\n    return frac.denominator\n\nfor measured in [0, 2, 4, 6]:\n    r_candidate = phase_to_period(measured, n_count, N)\n    print(f\"measured={measured}: candidate r = {r_candidate}\")\n",[20736],{"type":21,"tag":103,"props":20737,"children":20738},{"__ignoreMap":7},[20739,20756,20795,20812,20824,20831,20883,20900],{"type":21,"tag":138,"props":20740,"children":20741},{"class":140,"line":141},[20742,20746,20751],{"type":21,"tag":138,"props":20743,"children":20744},{"style":145},[20745],{"type":31,"value":5500},{"type":21,"tag":138,"props":20747,"children":20748},{"style":4522},[20749],{"type":31,"value":20750}," phase_to_period",{"type":21,"tag":138,"props":20752,"children":20753},{"style":151},[20754],{"type":31,"value":20755},"(measured, n_count, N):\n",{"type":21,"tag":138,"props":20757,"children":20758},{"class":140,"line":167},[20759,20764,20768,20773,20777,20782,20786,20790],{"type":21,"tag":138,"props":20760,"children":20761},{"style":151},[20762],{"type":31,"value":20763},"    phase ",{"type":21,"tag":138,"props":20765,"children":20766},{"style":145},[20767],{"type":31,"value":210},{"type":21,"tag":138,"props":20769,"children":20770},{"style":151},[20771],{"type":31,"value":20772}," measured ",{"type":21,"tag":138,"props":20774,"children":20775},{"style":145},[20776],{"type":31,"value":5075},{"type":21,"tag":138,"props":20778,"children":20779},{"style":151},[20780],{"type":31,"value":20781}," (",{"type":21,"tag":138,"props":20783,"children":20784},{"style":213},[20785],{"type":31,"value":292},{"type":21,"tag":138,"props":20787,"children":20788},{"style":145},[20789],{"type":31,"value":20609},{"type":21,"tag":138,"props":20791,"children":20792},{"style":151},[20793],{"type":31,"value":20794}," n_count)\n",{"type":21,"tag":138,"props":20796,"children":20797},{"class":140,"line":189},[20798,20803,20807],{"type":21,"tag":138,"props":20799,"children":20800},{"style":151},[20801],{"type":31,"value":20802},"    frac ",{"type":21,"tag":138,"props":20804,"children":20805},{"style":145},[20806],{"type":31,"value":210},{"type":21,"tag":138,"props":20808,"children":20809},{"style":151},[20810],{"type":31,"value":20811}," Fraction(phase).limit_denominator(N)\n",{"type":21,"tag":138,"props":20813,"children":20814},{"class":140,"line":199},[20815,20819],{"type":21,"tag":138,"props":20816,"children":20817},{"style":145},[20818],{"type":31,"value":5595},{"type":21,"tag":138,"props":20820,"children":20821},{"style":151},[20822],{"type":31,"value":20823}," frac.denominator\n",{"type":21,"tag":138,"props":20825,"children":20826},{"class":140,"line":225},[20827],{"type":21,"tag":138,"props":20828,"children":20829},{"emptyLinePlaceholder":193},[20830],{"type":31,"value":196},{"type":21,"tag":138,"props":20832,"children":20833},{"class":140,"line":233},[20834,20838,20842,20846,20850,20854,20858,20862,20866,20870,20874,20878],{"type":21,"tag":138,"props":20835,"children":20836},{"style":145},[20837],{"type":31,"value":1492},{"type":21,"tag":138,"props":20839,"children":20840},{"style":151},[20841],{"type":31,"value":20772},{"type":21,"tag":138,"props":20843,"children":20844},{"style":145},[20845],{"type":31,"value":1502},{"type":21,"tag":138,"props":20847,"children":20848},{"style":151},[20849],{"type":31,"value":8051},{"type":21,"tag":138,"props":20851,"children":20852},{"style":213},[20853],{"type":31,"value":406},{"type":21,"tag":138,"props":20855,"children":20856},{"style":151},[20857],{"type":31,"value":258},{"type":21,"tag":138,"props":20859,"children":20860},{"style":213},[20861],{"type":31,"value":292},{"type":21,"tag":138,"props":20863,"children":20864},{"style":151},[20865],{"type":31,"value":258},{"type":21,"tag":138,"props":20867,"children":20868},{"style":213},[20869],{"type":31,"value":17931},{"type":21,"tag":138,"props":20871,"children":20872},{"style":151},[20873],{"type":31,"value":258},{"type":21,"tag":138,"props":20875,"children":20876},{"style":213},[20877],{"type":31,"value":11433},{"type":21,"tag":138,"props":20879,"children":20880},{"style":151},[20881],{"type":31,"value":20882},"]:\n",{"type":21,"tag":138,"props":20884,"children":20885},{"class":140,"line":272},[20886,20891,20895],{"type":21,"tag":138,"props":20887,"children":20888},{"style":151},[20889],{"type":31,"value":20890},"    r_candidate ",{"type":21,"tag":138,"props":20892,"children":20893},{"style":145},[20894],{"type":31,"value":210},{"type":21,"tag":138,"props":20896,"children":20897},{"style":151},[20898],{"type":31,"value":20899}," phase_to_period(measured, n_count, N)\n",{"type":21,"tag":138,"props":20901,"children":20902},{"class":140,"line":308},[20903,20907,20911,20915,20920,20924,20929,20933,20938,20942,20947,20951,20955],{"type":21,"tag":138,"props":20904,"children":20905},{"style":213},[20906],{"type":31,"value":6225},{"type":21,"tag":138,"props":20908,"children":20909},{"style":151},[20910],{"type":31,"value":959},{"type":21,"tag":138,"props":20912,"children":20913},{"style":145},[20914],{"type":31,"value":7537},{"type":21,"tag":138,"props":20916,"children":20917},{"style":261},[20918],{"type":31,"value":20919},"\"measured=",{"type":21,"tag":138,"props":20921,"children":20922},{"style":213},[20923],{"type":31,"value":7547},{"type":21,"tag":138,"props":20925,"children":20926},{"style":151},[20927],{"type":31,"value":20928},"measured",{"type":21,"tag":138,"props":20930,"children":20931},{"style":213},[20932],{"type":31,"value":7556},{"type":21,"tag":138,"props":20934,"children":20935},{"style":261},[20936],{"type":31,"value":20937},": candidate r = ",{"type":21,"tag":138,"props":20939,"children":20940},{"style":213},[20941],{"type":31,"value":7547},{"type":21,"tag":138,"props":20943,"children":20944},{"style":151},[20945],{"type":31,"value":20946},"r_candidate",{"type":21,"tag":138,"props":20948,"children":20949},{"style":213},[20950],{"type":31,"value":7556},{"type":21,"tag":138,"props":20952,"children":20953},{"style":261},[20954],{"type":31,"value":15383},{"type":21,"tag":138,"props":20956,"children":20957},{"style":151},[20958],{"type":31,"value":269},{"type":21,"tag":22,"props":20960,"children":20961},{},[20962],{"type":31,"value":20963},"Feeding in 2 or 6 recovers r = 4 directly (measuring 0 gives no information and has to be discarded and retried, a known failure mode of the algorithm, not a bug in this implementation).",{"type":21,"tag":41,"props":20965,"children":20967},{"id":20966},"step-5-from-r-to-an-actual-factor",[20968],{"type":31,"value":20969},"Step 5: From r to an actual factor",{"type":21,"tag":22,"props":20971,"children":20972},{},[20973],{"type":31,"value":20974},"With r = 4 (even, which the algorithm requires) and a = 7:",{"type":21,"tag":128,"props":20976,"children":20978},{"code":20977,"language":132,"meta":7,"className":130,"style":7},"r = 4\nguess1 = np.gcd(a ** (r \u002F\u002F 2) - 1, N)\nguess2 = np.gcd(a ** (r \u002F\u002F 2) + 1, N)\nprint(f\"gcd(7^2 - 1, 15) = {guess1}\")\nprint(f\"gcd(7^2 + 1, 15) = {guess2}\")\n",[20979],{"type":21,"tag":103,"props":20980,"children":20981},{"__ignoreMap":7},[20982,20999,21052,21100,21141],{"type":21,"tag":138,"props":20983,"children":20984},{"class":140,"line":141},[20985,20990,20994],{"type":21,"tag":138,"props":20986,"children":20987},{"style":151},[20988],{"type":31,"value":20989},"r ",{"type":21,"tag":138,"props":20991,"children":20992},{"style":145},[20993],{"type":31,"value":210},{"type":21,"tag":138,"props":20995,"children":20996},{"style":213},[20997],{"type":31,"value":20998}," 4\n",{"type":21,"tag":138,"props":21000,"children":21001},{"class":140,"line":167},[21002,21007,21011,21016,21020,21025,21030,21035,21039,21043,21047],{"type":21,"tag":138,"props":21003,"children":21004},{"style":151},[21005],{"type":31,"value":21006},"guess1 ",{"type":21,"tag":138,"props":21008,"children":21009},{"style":145},[21010],{"type":31,"value":210},{"type":21,"tag":138,"props":21012,"children":21013},{"style":151},[21014],{"type":31,"value":21015}," np.gcd(a ",{"type":21,"tag":138,"props":21017,"children":21018},{"style":145},[21019],{"type":31,"value":4814},{"type":21,"tag":138,"props":21021,"children":21022},{"style":151},[21023],{"type":31,"value":21024}," (r ",{"type":21,"tag":138,"props":21026,"children":21027},{"style":145},[21028],{"type":31,"value":21029},"\u002F\u002F",{"type":21,"tag":138,"props":21031,"children":21032},{"style":213},[21033],{"type":31,"value":21034}," 2",{"type":21,"tag":138,"props":21036,"children":21037},{"style":151},[21038],{"type":31,"value":1533},{"type":21,"tag":138,"props":21040,"children":21041},{"style":145},[21042],{"type":31,"value":831},{"type":21,"tag":138,"props":21044,"children":21045},{"style":213},[21046],{"type":31,"value":17063},{"type":21,"tag":138,"props":21048,"children":21049},{"style":151},[21050],{"type":31,"value":21051},", N)\n",{"type":21,"tag":138,"props":21053,"children":21054},{"class":140,"line":189},[21055,21060,21064,21068,21072,21076,21080,21084,21088,21092,21096],{"type":21,"tag":138,"props":21056,"children":21057},{"style":151},[21058],{"type":31,"value":21059},"guess2 ",{"type":21,"tag":138,"props":21061,"children":21062},{"style":145},[21063],{"type":31,"value":210},{"type":21,"tag":138,"props":21065,"children":21066},{"style":151},[21067],{"type":31,"value":21015},{"type":21,"tag":138,"props":21069,"children":21070},{"style":145},[21071],{"type":31,"value":4814},{"type":21,"tag":138,"props":21073,"children":21074},{"style":151},[21075],{"type":31,"value":21024},{"type":21,"tag":138,"props":21077,"children":21078},{"style":145},[21079],{"type":31,"value":21029},{"type":21,"tag":138,"props":21081,"children":21082},{"style":213},[21083],{"type":31,"value":21034},{"type":21,"tag":138,"props":21085,"children":21086},{"style":151},[21087],{"type":31,"value":1533},{"type":21,"tag":138,"props":21089,"children":21090},{"style":145},[21091],{"type":31,"value":1605},{"type":21,"tag":138,"props":21093,"children":21094},{"style":213},[21095],{"type":31,"value":17063},{"type":21,"tag":138,"props":21097,"children":21098},{"style":151},[21099],{"type":31,"value":21051},{"type":21,"tag":138,"props":21101,"children":21102},{"class":140,"line":199},[21103,21107,21111,21115,21120,21124,21129,21133,21137],{"type":21,"tag":138,"props":21104,"children":21105},{"style":213},[21106],{"type":31,"value":954},{"type":21,"tag":138,"props":21108,"children":21109},{"style":151},[21110],{"type":31,"value":959},{"type":21,"tag":138,"props":21112,"children":21113},{"style":145},[21114],{"type":31,"value":7537},{"type":21,"tag":138,"props":21116,"children":21117},{"style":261},[21118],{"type":31,"value":21119},"\"gcd(7^2 - 1, 15) = ",{"type":21,"tag":138,"props":21121,"children":21122},{"style":213},[21123],{"type":31,"value":7547},{"type":21,"tag":138,"props":21125,"children":21126},{"style":151},[21127],{"type":31,"value":21128},"guess1",{"type":21,"tag":138,"props":21130,"children":21131},{"style":213},[21132],{"type":31,"value":7556},{"type":21,"tag":138,"props":21134,"children":21135},{"style":261},[21136],{"type":31,"value":15383},{"type":21,"tag":138,"props":21138,"children":21139},{"style":151},[21140],{"type":31,"value":269},{"type":21,"tag":138,"props":21142,"children":21143},{"class":140,"line":225},[21144,21148,21152,21156,21161,21165,21170,21174,21178],{"type":21,"tag":138,"props":21145,"children":21146},{"style":213},[21147],{"type":31,"value":954},{"type":21,"tag":138,"props":21149,"children":21150},{"style":151},[21151],{"type":31,"value":959},{"type":21,"tag":138,"props":21153,"children":21154},{"style":145},[21155],{"type":31,"value":7537},{"type":21,"tag":138,"props":21157,"children":21158},{"style":261},[21159],{"type":31,"value":21160},"\"gcd(7^2 + 1, 15) = ",{"type":21,"tag":138,"props":21162,"children":21163},{"style":213},[21164],{"type":31,"value":7547},{"type":21,"tag":138,"props":21166,"children":21167},{"style":151},[21168],{"type":31,"value":21169},"guess2",{"type":21,"tag":138,"props":21171,"children":21172},{"style":213},[21173],{"type":31,"value":7556},{"type":21,"tag":138,"props":21175,"children":21176},{"style":261},[21177],{"type":31,"value":15383},{"type":21,"tag":138,"props":21179,"children":21180},{"style":151},[21181],{"type":31,"value":269},{"type":21,"tag":22,"props":21183,"children":21184},{},[21185],{"type":31,"value":21186},"7² = 49. gcd(48, 15) = 3, and gcd(50, 15) = 5. Both nontrivial factors of 15, found without ever trying to divide 15 by anything directly.",{"type":21,"tag":41,"props":21188,"children":21190},{"id":21189},"why-this-doesnt-threaten-rsa-2048-today",[21191],{"type":31,"value":21192},"Why this doesn't threaten RSA-2048 today",{"type":21,"tag":22,"props":21194,"children":21195},{},[21196,21198,21203,21205,21209,21211,21216],{"type":31,"value":21197},"Everything above ran on 7 qubits for a 4-bit number. Factoring an RSA-2048 modulus needs a register sized to the number of bits in N, meaning thousands of logical qubits, and the ",{"type":21,"tag":26,"props":21199,"children":21200},{"href":4095},[21201],{"type":31,"value":21202},"logical qubit overhead",{"type":31,"value":21204}," to build even one of those on top of noisy physical hardware. Our ",{"type":21,"tag":26,"props":21206,"children":21207},{"href":19964},[21208],{"type":31,"value":19967},{"type":31,"value":21210}," covers the published resource estimates for that gap in detail, and why they disagree with each other by orders of magnitude depending on the assumed error-correction overhead. The algorithm in this tutorial is exactly the algorithm that would eventually run at that scale. The distance between 15 and a 2048-bit modulus is the entire reason ",{"type":21,"tag":26,"props":21212,"children":21213},{"href":3896},[21214],{"type":31,"value":21215},"post-quantum cryptography migration",{"type":31,"value":21217}," has a runway measured in years, not months.",{"type":21,"tag":41,"props":21219,"children":21220},{"id":5913},[21221],{"type":31,"value":5916},{"type":21,"tag":1118,"props":21223,"children":21224},{},[21225,21236,21262],{"type":21,"tag":71,"props":21226,"children":21227},{},[21228,21230,21234],{"type":31,"value":21229},"Run the counting-register measurement on ",{"type":21,"tag":26,"props":21231,"children":21232},{"href":3304},[21233],{"type":31,"value":1679},{"type":31,"value":21235}," yourself and compare your shot counts against the theoretical 1\u002F4, 1\u002F4, 1\u002F4, 1\u002F4 split above.",{"type":21,"tag":71,"props":21237,"children":21238},{},[21239,21240,21246,21247,21253,21254,21260],{"type":31,"value":12699},{"type":21,"tag":103,"props":21241,"children":21243},{"className":21242},[],[21244],{"type":31,"value":21245},"a = 7",{"type":31,"value":12707},{"type":21,"tag":103,"props":21248,"children":21250},{"className":21249},[],[21251],{"type":31,"value":21252},"a = 2",{"type":31,"value":7702},{"type":21,"tag":103,"props":21255,"children":21257},{"className":21256},[],[21258],{"type":31,"value":21259},"a = 4",{"type":31,"value":21261}," against N = 15 and work out the new order by hand first, then check the circuit agrees.",{"type":21,"tag":71,"props":21263,"children":21264},{},[21265],{"type":31,"value":21266},"Read Qiskit's own textbook chapter on Shor's algorithm for the general (non-shortcut) modular exponentiation construction, and compare gate counts against the toy version here.",{"type":21,"tag":1174,"props":21268,"children":21269},{},[21270],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":21272},[21273,21274,21275,21276,21277,21278,21279,21280],{"id":19984,"depth":167,"text":19987},{"id":20015,"depth":167,"text":20018},{"id":20428,"depth":167,"text":20431},{"id":20704,"depth":167,"text":20707},{"id":20723,"depth":167,"text":20726},{"id":20966,"depth":167,"text":20969},{"id":21189,"depth":167,"text":21192},{"id":5913,"depth":167,"text":5916},"content:blog:shors-algorithm-tutorial.md","blog\u002Fshors-algorithm-tutorial.md","blog\u002Fshors-algorithm-tutorial",{"_path":21285,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":21286,"description":21287,"date":16779,"author":11,"tags":21288,"readingTime":233,"body":21289,"_type":1193,"_id":21369,"_source":1195,"_file":21370,"_stem":21371,"_extension":1198},"\u002Fblog\u002Fuc-berkeley-quantrolox-partnership","UC Berkeley and QuantrolOx Sign a 5-Year Deal to Standardize Quantum Calibration","UC Berkeley and QuantrolOx signed a 5-year MOU aimed at standardized data pipelines and automated runtime environments for scaling superconducting quantum computers. An infrastructure partnership, not a hardware milestone, led by Irfan Siddiqi and Vishal Chatrath.",[3409,1213],{"type":18,"children":21290,"toc":21363},[21291,21296,21302,21313,21319,21337,21343,21348,21352],{"type":21,"tag":22,"props":21292,"children":21293},{},[21294],{"type":31,"value":21295},"UC Berkeley and QuantrolOx announced a 5-year memorandum of understanding on August 3, 2026, effective from July 7. The goal: standardized data pipelines and automated runtime environments for scaling superconducting quantum computers toward commercial deployment. The partnership is led by UC Berkeley physics professor Irfan Siddiqi and QuantrolOx CEO Vishal Chatrath, and will use the Roger Herst Quantum Nexus as a shared innovation space.",{"type":21,"tag":41,"props":21297,"children":21299},{"id":21298},"standardization-is-the-actual-news-here",[21300],{"type":31,"value":21301},"Standardization is the actual news here",{"type":21,"tag":22,"props":21303,"children":21304},{},[21305,21307,21311],{"type":31,"value":21306},"Calibration and runtime tooling are unglamorous compared to a qubit-count announcement, and that's exactly why partnerships like this matter more than they sound. Every lab and vendor currently runs its own bespoke calibration pipeline, which makes results hard to compare and hard to reproduce, the equivalent underlying problem our ",{"type":21,"tag":26,"props":21308,"children":21309},{"href":19128},[21310],{"type":31,"value":19852},{"type":31,"value":21312}," covers from the policy side: the field still lacks agreed, standardized ways to measure and operate quantum hardware. A named, multi-year effort to standardize data pipelines specifically for superconducting systems is a direct, useful attempt at that problem, not a research result.",{"type":21,"tag":41,"props":21314,"children":21316},{"id":21315},"where-this-fits-next-to-the-ai-calibration-story",[21317],{"type":31,"value":21318},"Where this fits next to the AI-calibration story",{"type":21,"tag":22,"props":21320,"children":21321},{},[21322,21324,21329,21330,21335],{"type":31,"value":21323},"This site recently covered two AI-driven approaches to the equivalent general calibration problem: ",{"type":21,"tag":26,"props":21325,"children":21326},{"href":18399},[21327],{"type":31,"value":21328},"Google's reinforcement-learning agent recalibrating Willow",{"type":31,"value":3628},{"type":21,"tag":26,"props":21331,"children":21332},{"href":18324},[21333],{"type":31,"value":21334},"NVIDIA Ising's vision-language calibration model",{"type":31,"value":21336},". The UC Berkeley and QuantrolOx partnership is a different kind of effort: building the standardized infrastructure and tooling layer underneath calibration, rather than a specific AI model for doing it. Both approaches point at the same underlying bottleneck (calibration doesn't scale by hand as systems grow), attacked from opposite ends: one with a smarter model, one with better shared infrastructure.",{"type":21,"tag":41,"props":21338,"children":21340},{"id":21339},"what-isnt-disclosed-yet",[21341],{"type":31,"value":21342},"What isn't disclosed yet",{"type":21,"tag":22,"props":21344,"children":21345},{},[21346],{"type":31,"value":21347},"No particular technical deliverable, timeline for a first shared pipeline, or funding figure was disclosed alongside the MOU announcement. This is a structural commitment between a major academic quantum program and a calibration-automation company, worth tracking for what it produces rather than treating the MOU itself as a result.",{"type":21,"tag":41,"props":21349,"children":21350},{"id":3474},[21351],{"type":31,"value":3477},{"type":21,"tag":22,"props":21353,"children":21354},{},[21355,21357,21361],{"type":31,"value":21356},"Whether UC Berkeley and QuantrolOx publish an actual standardized pipeline or toolset that other labs adopt, which would be the real test of whether this partnership changes anything beyond the two organizations involved. Our ",{"type":21,"tag":26,"props":21358,"children":21359},{"href":1106},[21360],{"type":31,"value":16093},{"type":31,"value":21362}," tracks the superconducting platforms this kind of tooling would eventually support.",{"title":7,"searchDepth":167,"depth":167,"links":21364},[21365,21366,21367,21368],{"id":21298,"depth":167,"text":21301},{"id":21315,"depth":167,"text":21318},{"id":21339,"depth":167,"text":21342},{"id":3474,"depth":167,"text":3477},"content:blog:uc-berkeley-quantrolox-partnership.md","blog\u002Fuc-berkeley-quantrolox-partnership.md","blog\u002Fuc-berkeley-quantrolox-partnership",{"_path":16835,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":21373,"description":21374,"date":16779,"author":11,"tags":21375,"readingTime":272,"body":21376,"_type":1193,"_id":21444,"_source":1195,"_file":21445,"_stem":21446,"_extension":1198},"China's 'Routing Codes' Cut Error-Correction Overhead by 8x on Paper","USTC and Origin Quantum Computing designed routing codes, a qLDPC family that simplifies hardware wiring and reduces physical-qubit overhead roughly 8x versus surface codes in circuit-level simulation. Real, but still a simulation result, not a hardware demonstration.",[3409,1213,14733],{"type":18,"children":21377,"toc":21439},[21378,21383,21389,21401,21406,21412,21424,21428],{"type":21,"tag":22,"props":21379,"children":21380},{},[21381],{"type":31,"value":21382},"A team from the University of Science and Technology of China and Origin Quantum Computing published a new family of quantum error-correcting codes on July 22, 2026, called routing codes. The headline number: weight-7 routing codes cut physical-qubit overhead by roughly a factor of 8 compared to surface codes at a similar logical error rate, in circuit-level simulation. That \"in simulation\" qualifier matters, and we'll come back to it.",{"type":21,"tag":41,"props":21384,"children":21386},{"id":21385},"what-routing-codes-change",[21387],{"type":31,"value":21388},"What routing codes change",{"type":21,"tag":22,"props":21390,"children":21391},{},[21392,21394,21399],{"type":31,"value":21393},"Surface codes, the workhorse of most current error-correction roadmaps, need only nearest-neighbor qubit connections, which is easy to build in hardware but expensive in physical-qubit count. The ",{"type":21,"tag":26,"props":21395,"children":21396},{"href":4095},[21397],{"type":31,"value":21398},"qLDPC family",{"type":31,"value":21400}," trades that simplicity for efficiency: qLDPC codes need far fewer physical qubits per logical qubit, but historically at the cost of long-range, non-local connections between qubits that are difficult to fabricate on real chips.",{"type":21,"tag":22,"props":21402,"children":21403},{},[21404],{"type":31,"value":21405},"Routing codes goal that exact trade-off. According to the team, the construction reduces required qubit connectivity and shortens the non-local couplings a qLDPC code otherwise demands, while also enabling parallel data transfer across the chip. That combination is what lets the design apply to both superconducting and neutral-atom platforms, two modalities with different physical connectivity constraints, without needing a bespoke code for each.",{"type":21,"tag":41,"props":21407,"children":21409},{"id":21408},"the-number-and-what-its-a-number-of",[21410],{"type":31,"value":21411},"The number, and what it's a number of",{"type":21,"tag":22,"props":21413,"children":21414},{},[21415,21417,21422],{"type":31,"value":21416},"The 8x overhead reduction comes from comparing weight-7 routing codes against surface codes at a matched logical error rate, using circuit-level noise simulations rather than a physical device. That's the standard, appropriate way to evaluate a new code family before hardware exists to test it on, and it's the equivalent category of result as ",{"type":21,"tag":26,"props":21418,"children":21419},{"href":4095},[21420],{"type":31,"value":21421},"QuEra's 2:1 physical-to-logical ratio work",{"type":31,"value":21423}," covered elsewhere on this site: a real, checkable theoretical contribution, not yet a measured finding from a working machine.",{"type":21,"tag":41,"props":21425,"children":21426},{"id":3474},[21427],{"type":31,"value":3477},{"type":21,"tag":22,"props":21429,"children":21430},{},[21431,21433,21437],{"type":31,"value":21432},"The test that matters is whether a hardware team, superconducting or neutral-atom, fabricates a routing-code-based logical qubit and reports a real logical error rate, not a simulated one. Our ",{"type":21,"tag":26,"props":21434,"children":21435},{"href":14761},[21436],{"type":31,"value":16863},{"type":31,"value":21438}," covers the other half of the fault-tolerance cost equation these overhead numbers feed into: a cheaper code still needs a decoder that keeps up with it in real time. Until a physical demonstration lands, treat the 8x figure as a credible simulation result worth tracking, not yet a hardware milestone.",{"title":7,"searchDepth":167,"depth":167,"links":21440},[21441,21442,21443],{"id":21385,"depth":167,"text":21388},{"id":21408,"depth":167,"text":21411},{"id":3474,"depth":167,"text":3477},"content:blog:ustc-origin-quantum-routing-codes-qldpc.md","blog\u002Fustc-origin-quantum-routing-codes-qldpc.md","blog\u002Fustc-origin-quantum-routing-codes-qldpc",{"_path":21448,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":21449,"description":21450,"date":16779,"author":11,"tags":21451,"readingTime":233,"body":21452,"_type":1193,"_id":21544,"_source":1195,"_file":21545,"_stem":21546,"_extension":1198},"\u002Fblog\u002Fzero-g-pre-decoder-aware-qec-decoder","A New Decoder Called 'Zero-G' Claims to Improve Real-Time QEC by Using Pre-Decoder Data","A preprint posted this week describes Zero-G, a pre-decoder-aware decoder architecture for quantum error correction. Unreviewed, not yet independently verified, covered here as a paper claim rather than a demonstrated result.",[14733,1213,13895],{"type":18,"children":21453,"toc":21538},[21454,21459,21465,21475,21481,21512,21518,21523,21527],{"type":21,"tag":22,"props":21455,"children":21456},{},[21457],{"type":31,"value":21458},"A paper titled \"Zero-G: A Pre-Decoder-Aware Decoder for Quantum Error Correction\" appeared on arXiv this week. Read that framing carefully: this is a preprint, not a peer-reviewed result, and NEWS.md's own standing instruction on arXiv sources is to treat what's there as a paper's claim rather than an established fact. This entry follows that instruction. Everything below describes what the paper reportedly claims, not something independently confirmed.",{"type":21,"tag":41,"props":21460,"children":21462},{"id":21461},"what-pre-decoder-aware-likely-means",[21463],{"type":31,"value":21464},"What \"pre-decoder-aware\" likely means",{"type":21,"tag":22,"props":21466,"children":21467},{},[21468,21469,21473],{"type":31,"value":4494},{"type":21,"tag":26,"props":21470,"children":21471},{"href":14761},[21472],{"type":31,"value":16863},{"type":31,"value":21474}," covers why decoding, turning syndrome measurements into an actual correction, has to happen inside a hard timing window or the whole error-correction scheme collapses. A \"pre-decoder\" step in this context typically refers to a lightweight processing stage that runs before the main decoder, filtering, compressing, or pre-classifying syndrome data so the heavier decoding step downstream has less work to do or better information to work with. A decoder architecture built to specifically account for what that pre-decoder stage already knows, rather than treating incoming syndrome data as raw and undifferentiated, is the general shape of what \"pre-decoder-aware\" suggests, though the paper's exact mechanism isn't something we've independently reviewed here.",{"type":21,"tag":41,"props":21476,"children":21478},{"id":21477},"why-this-is-worth-a-mention-despite-being-unverified",[21479],{"type":31,"value":21480},"Why this is worth a mention despite being unverified",{"type":21,"tag":22,"props":21482,"children":21483},{},[21484,21486,21491,21492,21497,21499,21504,21505,21510],{"type":31,"value":21485},"This site has covered a run of real decoder progress recently: ",{"type":21,"tag":26,"props":21487,"children":21488},{"href":18324},[21489],{"type":31,"value":21490},"NVIDIA's Ising decoding models",{"type":31,"value":258},{"type":21,"tag":26,"props":21493,"children":21494},{"href":18220},[21495],{"type":31,"value":21496},"independent GPU-decoder results from Alice & Bob and Quantum X Labs",{"type":31,"value":21498},", and the ",{"type":21,"tag":26,"props":21500,"children":21501},{"href":16835},[21502],{"type":31,"value":21503},"routing codes",{"type":31,"value":3628},{"type":21,"tag":26,"props":21506,"children":21507},{"href":16776},[21508],{"type":31,"value":21509},"mitten codes",{"type":31,"value":21511}," work on the code-design side. A new decoder architecture claim landing in the same window is consistent with where real engineering attention in the field currently sits, decoding and error-correction overhead, rather than an isolated one-off claim. That pattern is a reason to note it, not a reason to treat this specific paper's claims as confirmed.",{"type":21,"tag":41,"props":21513,"children":21515},{"id":21514},"what-we-dont-know",[21516],{"type":31,"value":21517},"What we don't know",{"type":21,"tag":22,"props":21519,"children":21520},{},[21521],{"type":31,"value":21522},"We don't know the paper's authors, institutional affiliation, what specific speedup or accuracy improvement it claims against which baseline, or whether it includes a hardware demonstration or is purely a simulation study. A fuller writeup would require reading the paper directly rather than relying on a secondary summary, and that's the honest limit of what this post covers.",{"type":21,"tag":41,"props":21524,"children":21525},{"id":3474},[21526],{"type":31,"value":3477},{"type":21,"tag":22,"props":21528,"children":21529},{},[21530,21532,21536],{"type":31,"value":21531},"Whether Zero-G gets picked up, cited, or benchmarked against the decoders already covered here (PyMatching, NVIDIA's Ising Decoding models, CUDA-Q QEC's RelayBP) is the real test of whether this specific claim holds up. Our ",{"type":21,"tag":26,"props":21533,"children":21534},{"href":3459},[21535],{"type":31,"value":3469},{"type":31,"value":21537}," tracks the maintained, working decoders worth relying on today.",{"title":7,"searchDepth":167,"depth":167,"links":21539},[21540,21541,21542,21543],{"id":21461,"depth":167,"text":21464},{"id":21477,"depth":167,"text":21480},{"id":21514,"depth":167,"text":21517},{"id":3474,"depth":167,"text":3477},"content:blog:zero-g-pre-decoder-aware-qec-decoder.md","blog\u002Fzero-g-pre-decoder-aware-qec-decoder.md","blog\u002Fzero-g-pre-decoder-aware-qec-decoder",{"_path":21548,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":21549,"description":21550,"date":16779,"author":11,"tags":21551,"readingTime":233,"body":21552,"_type":1193,"_id":21609,"_source":1195,"_file":21610,"_stem":21611,"_extension":1198},"\u002Fblog\u002Fzhongqi-wuliang-qinghe-server-rack-quantum-computer","A Chinese Startup Packed a Neutral-Atom Quantum Computer Into a Server Rack","Zhongqi Wuliang unveiled Qinghe No. 1 at WAIC 2026, a second-generation neutral-atom quantum computer built to fit inside a standard data-center server rack with no bulky cryogenic refrigeration. A different route to the same 'no cryostat' goal SAXON Q's diamond qubits already cover on this site.",[3409,1213],{"type":18,"children":21553,"toc":21604},[21554,21559,21565,21570,21576,21587,21593],{"type":21,"tag":22,"props":21555,"children":21556},{},[21557],{"type":31,"value":21558},"Zhongqi Wuliang, a spinout from the Chinese Academy of Sciences' Shanghai Institute of Optics and Fine Mechanics, unveiled Qinghe No. 1 at the World Artificial Intelligence Conference on July 18, 2026. The pitch: a second-generation neutral-atom quantum computer engineered to fit inside a standard data-center server rack, removing the bulky cryogenic refrigeration that normally keeps a quantum system physically separate from ordinary compute infrastructure.",{"type":21,"tag":41,"props":21560,"children":21562},{"id":21561},"what-got-packaged",[21563],{"type":31,"value":21564},"What got packaged",{"type":21,"tag":22,"props":21566,"children":21567},{},[21568],{"type":31,"value":21569},"Neutral-atom systems already run at room temperature for the qubits themselves, unlike superconducting platforms that need dilution refrigerators. The engineering problem Zhongqi Wuliang describes solving is packaging: fitting the vacuum chamber, control optics, and laser delivery systems, the parts that normally take up a lab bench, into a single rack-mounted chassis alongside classical servers. Founded by Lu Xudong, the company frames this as the step that lets a cloud provider deploy quantum hardware the same way it deploys any other rack unit, rather than as a separate specialized room.",{"type":21,"tag":41,"props":21571,"children":21573},{"id":21572},"a-distinct-route-to-a-goal-this-site-already-covers",[21574],{"type":31,"value":21575},"A distinct route to a goal this site already covers",{"type":21,"tag":22,"props":21577,"children":21578},{},[21579,21585],{"type":21,"tag":26,"props":21580,"children":21582},{"href":21581},"\u002Fblog\u002Fsaxon-q-room-temperature-diamond-quantum-computer",[21583],{"type":31,"value":21584},"SAXON Q's room-temperature diamond NV-center quantum computers",{"type":31,"value":21586},", covered here earlier, chase the same \"no cryostat\" goal through an entirely different qubit modality. Where SAXON Q eliminates cryogenics by using diamond defects that work at room temperature natively, Zhongqi Wuliang keeps the neutral-atom approach and instead solves the packaging and integration issue around it. Both are legitimate answers to the same practical deployment question, from opposite ends: change the physics, or repackage the hardware around the physics you already have.",{"type":21,"tag":41,"props":21588,"children":21590},{"id":21589},"what-wasnt-disclosed",[21591],{"type":31,"value":21592},"What wasn't disclosed",{"type":21,"tag":22,"props":21594,"children":21595},{},[21596,21598,21602],{"type":31,"value":21597},"The announcement, as reported, doesn't include a qubit count, gate fidelity, or coherence time for Qinghe No. 1, the numbers that would let anyone judge whether the system does useful work rather than only fitting in a rack. Packaging is a real engineering achievement worth tracking, especially from a CAS-affiliated team with direct optics and photonics expertise, but it answers a distinct question than \"how good is this quantum computer.\" Our ",{"type":21,"tag":26,"props":21599,"children":21600},{"href":1106},[21601],{"type":31,"value":16093},{"type":31,"value":21603}," tracks how neutral-atom entrants compare once real performance numbers land.",{"title":7,"searchDepth":167,"depth":167,"links":21605},[21606,21607,21608],{"id":21561,"depth":167,"text":21564},{"id":21572,"depth":167,"text":21575},{"id":21589,"depth":167,"text":21592},"content:blog:zhongqi-wuliang-qinghe-server-rack-quantum-computer.md","blog\u002Fzhongqi-wuliang-qinghe-server-rack-quantum-computer.md","blog\u002Fzhongqi-wuliang-qinghe-server-rack-quantum-computer",{"_path":18127,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":21613,"description":21614,"date":21615,"author":11,"tags":21616,"readingTime":272,"body":21617,"_type":1193,"_id":21713,"_source":1195,"_file":21714,"_stem":21715,"_extension":1198},"IonQ Is Putting a Quantum Memory Inside a Live Fiber Network in Chattanooga","IonQ and EPB are spending $15 million over five years on the Tennessee Quantum Communications Research Center, built around what they call the first commercial quantum memory embedded in a working communications network.","2026-08-03",[3409,1213,16328],{"type":18,"children":21618,"toc":21707},[21619,21624,21630,21647,21652,21658,21663,21668,21674,21685,21689],{"type":21,"tag":22,"props":21620,"children":21621},{},[21622],{"type":31,"value":21623},"IonQ and EPB, Chattanooga's municipal energy and fiber utility, announced the Tennessee Quantum Communications Research Center on August 3, 2026. IonQ is committing $15 million over five years. The center will run on EPB's existing fiber network and sit alongside the EPB Quantum Center, which already houses an IonQ Forte Enterprise system. The University of Tennessee at Chattanooga and Tennessee state officials are also named partners. IonQ's own framing is specific: the first commercial quantum memory embedded in a live, operational communications network, not a lab testbed built to demonstrate the idea once.",{"type":21,"tag":41,"props":21625,"children":21627},{"id":21626},"what-this-is-and-what-it-is-not",[21628],{"type":31,"value":21629},"What this is, and what it is not",{"type":21,"tag":22,"props":21631,"children":21632},{},[21633,21634,21639,21641,21645],{"type":31,"value":4494},{"type":21,"tag":26,"props":21635,"children":21636},{"href":1137},[21637],{"type":31,"value":21638},"quantum networking explainer",{"type":31,"value":21640}," splits \"quantum networking\" into three things that get conflated constantly: (a) linking QPUs so they compute as one machine, (b) quantum key distribution for the \"quantum internet,\" and (c) ordinary classical networking of quantum cloud services over TCP\u002FIP. A research center built around a quantum memory for entanglement distribution is squarely (a), the hard one. It has nothing to do with breaking or replacing encryption. If you're tracking the cryptographic threat instead, that's ",{"type":21,"tag":26,"props":21642,"children":21643},{"href":3896},[21644],{"type":31,"value":3977},{"type":31,"value":21646},", and it's a software migration, not recent fiber.",{"type":21,"tag":22,"props":21648,"children":21649},{},[21650],{"type":31,"value":21651},"A quantum memory is the component that makes entanglement swapping practical over distance. As the networking piece covers, quantum repeaters split a long link into short hops, generate entanglement across each hop independently, and then swap it together at intermediate nodes. That only works if a node holds its half of an entangled pair coherently while the neighboring hop keeps retrying after failures, since photon loss makes most attempts fail. That holding function is the memory. Without one, every hop has to succeed simultaneously, which is why long-distance entanglement distribution has been so hard to demonstrate outside a lab.",{"type":21,"tag":41,"props":21653,"children":21655},{"id":21654},"read-the-announcements-own-numbers-carefully",[21656],{"type":31,"value":21657},"Read the announcement's own numbers carefully",{"type":21,"tag":22,"props":21659,"children":21660},{},[21661],{"type":31,"value":21662},"The stated economic projection is $30-45 million in impact, two to three times the $15 million investment, and about 24 jobs. Treat those as the partnership's own projection, not a measured outcome. They describe an expected regional effect, not a technical result.",{"type":21,"tag":22,"props":21664,"children":21665},{},[21666],{"type":31,"value":21667},"What the announcement does not disclose is the number that would let you judge the science: entanglement generation rate and fidelity over EPB's fiber, or the memory's coherence time under real network conditions rather than lab conditions. That's consistent with how IonQ has described its broader photonic interconnect roadmap, where milestones (first ion-photon entanglement, then remote ion-ion entanglement) get announced without the rate and fidelity figures needed to tell whether a link is fast and clean enough to compute across. This is the same pattern, applied to a memory node instead of a QPU-to-QPU link. Worth watching for follow-up publications or technical reports that fill in those numbers, since a press release naming a location and a dollar figure isn't the same as a demonstrated coherence time.",{"type":21,"tag":41,"props":21669,"children":21671},{"id":21670},"why-chattanooga-specifically",[21672],{"type":31,"value":21673},"Why Chattanooga specifically",{"type":21,"tag":22,"props":21675,"children":21676},{},[21677,21679,21683],{"type":31,"value":21678},"EPB has run one of the first citywide gigabit fiber networks in the United States for over a decade, which makes it an unusually well-suited test bed: an existing, maintained, city-scale fiber plant rather than a purpose-built lab loop. Embedding a quantum memory in infrastructure that already carries real traffic is a meaningfully different claim than doing the same experiment on an isolated fiber spool, since it forces the work to contend with the noise, temperature variation, and splicing of an actual deployed network. That's also consistent with IonQ's post-",{"type":21,"tag":26,"props":21680,"children":21681},{"href":18164},[21682],{"type":31,"value":18167},{"type":31,"value":21684}," pattern of building out physical, domestic infrastructure around its trapped-ion platform rather than keeping everything at the research-paper stage.",{"type":21,"tag":41,"props":21686,"children":21687},{"id":3474},[21688],{"type":31,"value":3477},{"type":21,"tag":22,"props":21690,"children":21691},{},[21692,21694,21698,21700,21705],{"type":31,"value":21693},"The real test is whether this center publishes entanglement rates and fidelities over the live network, the same figures missing from IonQ's other networking milestones. Until those numbers appear, this is a credible, well-funded facility for doing the work, not yet evidence that the work has succeeded. Our ",{"type":21,"tag":26,"props":21695,"children":21696},{"href":4095},[21697],{"type":31,"value":15631},{"type":31,"value":21699}," piece and the ",{"type":21,"tag":26,"props":21701,"children":21702},{"href":1072},[21703],{"type":31,"value":21704},"glossary entry on quantum networks",{"type":31,"value":21706}," cover the vocabulary and the broader stakes if you want to follow the technical reports as they come out.",{"title":7,"searchDepth":167,"depth":167,"links":21708},[21709,21710,21711,21712],{"id":21626,"depth":167,"text":21629},{"id":21654,"depth":167,"text":21657},{"id":21670,"depth":167,"text":21673},{"id":3474,"depth":167,"text":3477},"content:blog:ionq-epb-tennessee-quantum-communications-center.md","blog\u002Fionq-epb-tennessee-quantum-communications-center.md","blog\u002Fionq-epb-tennessee-quantum-communications-center",{"_path":15707,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":21717,"description":21718,"date":21615,"author":11,"tags":21719,"readingTime":272,"body":21720,"_type":1193,"_id":21811,"_source":1195,"_file":21812,"_stem":21813,"_extension":1198},"NTT and OptQC Are Aiming for a Million-Qubit Photonic Computer by 2030","NTT and OptQC signed a capital and business alliance with a phased roadmap toward a fault-tolerant, million-qubit-class optical quantum computer by fiscal year 2030, starting with a 10,000-qubit proof of concept in 2028.",[3409,1213],{"type":18,"children":21721,"toc":21805},[21722,21727,21733,21738,21743,21749,21761,21773,21779,21796,21800],{"type":21,"tag":22,"props":21723,"children":21724},{},[21725],{"type":31,"value":21726},"NTT and OptQC signed a capital and business alliance on August 3, 2026, aimed at a fault-tolerant, million-qubit-class optical quantum computer by fiscal year 2030. What makes this worth reading past the headline number is the roadmap attached to it: a named sequence of milestones with dates, not a single target four years out with nothing in between.",{"type":21,"tag":41,"props":21728,"children":21730},{"id":21729},"the-actual-roadmap",[21731],{"type":31,"value":21732},"The actual roadmap",{"type":21,"tag":22,"props":21734,"children":21735},{},[21736],{"type":31,"value":21737},"The plan runs in phases. Fiscal year 2026 starts co-creation work with prospective users, industry partners, and research institutions to define use cases. Fiscal year 2027 focuses on building a supply chain toward practical application. Fiscal year 2028 is where the roadmap gets a checkable number: proof-of-concept projects with users based on a 10,000-qubit-class optical system. Fiscal year 2029 expands application development and verification, pushing toward real-world implementation. The million-qubit target sits at the end of that sequence, in fiscal year 2030.",{"type":21,"tag":22,"props":21739,"children":21740},{},[21741],{"type":31,"value":21742},"That 10,000-qubit PoC in 2028 is the milestone worth watching. It's roughly two years out, specific, and produces a real system other people get to evaluate directly, rather than a press-release qubit count with no interim checkpoint attached to it.",{"type":21,"tag":41,"props":21744,"children":21746},{"id":21745},"why-photonic-and-why-this-matters-next-to-psiquantum-and-xanadu",[21747],{"type":31,"value":21748},"Why photonic, and why this matters next to PsiQuantum and Xanadu",{"type":21,"tag":22,"props":21750,"children":21751},{},[21752,21754,21759],{"type":31,"value":21753},"Photonic quantum computing uses photons as qubits, encoded in properties like path, polarization, or time-bin. The appeal, and the reason PsiQuantum and Xanadu also work this modality, is that photons don't need the same cryogenic cooling as superconducting qubits and reuse parts of the existing telecom manufacturing base. Our ",{"type":21,"tag":26,"props":21755,"children":21756},{"href":19079},[21757],{"type":31,"value":21758},"modality comparison",{"type":31,"value":21760}," tracks all three companies. A fourth serious, well-capitalized entrant with a dated roadmap is a real data point on whether the photonic bet is paying off, rather than a repeat of a claim two other companies have already made.",{"type":21,"tag":22,"props":21762,"children":21763},{},[21764,21766,21771],{"type":31,"value":21765},"NTT brings something OptQC doesn't have on its own: an existing telecom-scale optical manufacturing and supply chain relationship, the same category of capacity that underlies the ",{"type":21,"tag":26,"props":21767,"children":21768},{"href":18952},[21769],{"type":31,"value":21770},"GlobalFoundries silicon photonics CHIPS Act award",{"type":31,"value":21772}," covered here recently. That overlap is not a coincidence. Photonic quantum hardware and following-generation optical telecom infrastructure draw on the same fabrication base, which is part of why government and corporate investment in one keeps showing up adjacent to the other.",{"type":21,"tag":41,"props":21774,"children":21776},{"id":21775},"what-the-announcement-does-not-commit-to",[21777],{"type":31,"value":21778},"What the announcement does not commit to",{"type":21,"tag":22,"props":21780,"children":21781},{},[21782,21784,21788,21790,21794],{"type":31,"value":21783},"A \"capital and business alliance\" is a real financial commitment, but the release does not disclose the size of NTT's investment, nor does it specify a fidelity, error rate, or gate count target for the 2028 proof of concept, only a qubit count. Qubit count alone tells you little about whether a system is useful, a point this site makes about every hardware headline: see our coverage of ",{"type":21,"tag":26,"props":21785,"children":21786},{"href":4095},[21787],{"type":31,"value":15631},{"type":31,"value":21789}," and of ",{"type":21,"tag":26,"props":21791,"children":21792},{"href":3586},[21793],{"type":31,"value":16565},{"type":31,"value":21795}," for why the ratio between physical and logical, or the error rate per operation, decides whether a number is a real result or a marketing figure.",{"type":21,"tag":41,"props":21797,"children":21798},{"id":3474},[21799],{"type":31,"value":3477},{"type":21,"tag":22,"props":21801,"children":21802},{},[21803],{"type":31,"value":21804},"Fiscal year 2028 is the checkpoint. If the 10,000-qubit proof of concept ships with disclosed error rates and real use-case results from named partners, that is meaningfully different from a slide reused at each fiscal year-end. Until then, treat this as a well-structured, credible roadmap from a company with real telecom manufacturing backing, not yet a hardware outcome.",{"title":7,"searchDepth":167,"depth":167,"links":21806},[21807,21808,21809,21810],{"id":21729,"depth":167,"text":21732},{"id":21745,"depth":167,"text":21748},{"id":21775,"depth":167,"text":21778},{"id":3474,"depth":167,"text":3477},"content:blog:optqc-ntt-million-qubit-photonic-alliance.md","blog\u002Foptqc-ntt-million-qubit-photonic-alliance.md","blog\u002Foptqc-ntt-million-qubit-photonic-alliance",{"_path":21815,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":21816,"description":21817,"date":21818,"author":11,"tags":21819,"readingTime":272,"body":21820,"_type":1193,"_id":21960,"_source":1195,"_file":21961,"_stem":21962,"_extension":1198},"\u002Fzh\u002Fblog\u002Fquantinuum-helios-logical-qubits-2026","Quantinuum Helios：2:1 编码下的48个逻辑量子比特解析","Quantinuum 最新的离子阱系统宣称仅用约96个物理量子比特就实现了48个纠错逻辑量子比特。真正值得关注的不是量子比特数量，而是这个比例。","2026-08-01",[14733,1213,16328],{"type":18,"children":21821,"toc":21954},[21822,21834,21846,21852,21864,21869,21881,21907,21912,21917,21922,21927],{"type":21,"tag":22,"props":21823,"children":21824},{},[21825,21827,21832],{"type":31,"value":21826},"Quantinuum 发布了其最新的离子阱系统 Helios，宣称实现了48个纠错逻辑量子比特，编码比例约为 ",{"type":21,"tag":16815,"props":21828,"children":21829},{},[21830],{"type":31,"value":21831},"2:1",{"type":31,"value":21833},"——即约96个物理量子比特完成了48个逻辑量子比特的工作。关于这一发布的报道大多聚焦于量子比特数量本身，但真正值得深入思考的数字是这个比例。",{"type":21,"tag":22,"props":21835,"children":21836},{},[21837,21839,21844],{"type":31,"value":21838},"如果你读过我们关于",{"type":21,"tag":26,"props":21840,"children":21841},{"href":4095},[21842],{"type":31,"value":21843},"逻辑量子比特与容错性",{"type":31,"value":21845},"的文章，就已经知道原因了。在超导硬件上，表面码的开销估计通常是每个逻辑量子比特需要几百到几千个物理量子比特，具体取决于底层硬件距离纠错阈值有多远。厂商报告的接近2:1的比例并不是这个数字上的渐进式改进——它属于设计空间中完全不同的区域，在你把这个数字当真之前，值得先弄清楚是什么让它成为可能。",{"type":21,"tag":41,"props":21847,"children":21849},{"id":21848},"helios-是什么",[21850],{"type":31,"value":21851},"Helios 是什么",{"type":21,"tag":22,"props":21853,"children":21854},{},[21855,21857,21862],{"type":31,"value":21856},"Helios 是 Quantinuum 最新一代的 H-Series 离子阱系统——这条产品线曾多次保持量子体积（quantum volume）纪录，而 IonQ（Quantinuum 在离子阱领域的主要竞争对手）也一直将其作为主要的对标基准。离子阱硬件通过电磁场囚禁单个离子，并用激光脉冲对其进行操控，这种方式牺牲了门操作速度（微秒到毫秒级，而超导量子比特是纳秒级），换取了两个对纠错至关重要的优势：更高的单门保真度，以及",{"type":21,"tag":16815,"props":21858,"children":21859},{},[21860],{"type":31,"value":21861},"全连接性",{"type":31,"value":21863},"——链中的任意一个离子都可以与任意其他离子纠缠，无需经过中间量子比特中转。",{"type":21,"tag":41,"props":21865,"children":21867},{"id":21866},"为什么这个比例在这里成为可能",[21868],{"type":31,"value":21866},{"type":21,"tag":22,"props":21870,"children":21871},{},[21872,21874,21879],{"type":31,"value":21873},"表面码——用于谷歌 Willow 等超导芯片的主力纠错码——建立在",{"type":21,"tag":16815,"props":21875,"children":21876},{},[21877],{"type":31,"value":21878},"最近邻",{"type":31,"value":21880},"奇偶校验之上，因为这正是一块平面二维超导芯片在物理上所能支持的。这一限制在很大程度上解释了为何其开销如此之高：要在实际错误率下保护一个逻辑量子比特，需要相当规模的二维量子比特网格。",{"type":21,"tag":22,"props":21882,"children":21883},{},[21884,21886,21891,21893,21898,21900,21905],{"type":31,"value":21885},"离子阱系统不受此限制。由于任意离子都可以与任意其他离子相互作用，那些需要",{"type":21,"tag":16815,"props":21887,"children":21888},{},[21889],{"type":31,"value":21890},"非局域",{"type":31,"value":21892},"奇偶校验的编码方案——在平面芯片上实现这类校验的布线成本会高得令人望而却步——在这里可以直接实现。这为更节省量子比特的编码家族（大致可归为 qLDPC 类构造）打开了大门，它们用更慢的门操作换取物理量子比特到逻辑量子比特开销的大幅降低。我们的",{"type":21,"tag":26,"props":21894,"children":21895},{"href":1106},[21896],{"type":31,"value":21897},"硬件概览",{"type":31,"value":21899},"和",{"type":21,"tag":26,"props":21901,"children":21902},{"href":19079},[21903],{"type":31,"value":21904},"模态对比",{"type":31,"value":21906},"对这一权衡做了更一般性的介绍；而 Helios 则是目前已经交付的、对此最鲜明的具体例证。",{"type":21,"tag":41,"props":21908,"children":21910},{"id":21909},"这个比例没有告诉你的事",[21911],{"type":31,"value":21909},{"type":21,"tag":22,"props":21913,"children":21914},{},[21915],{"type":31,"value":21916},"开销只是一个维度，而且不是唯一的维度——每个逻辑量子比特所需的物理量子比特数量少，并不会自动让一台机器变得更实用。正如我们在逻辑量子比特那篇文章中提到的，评价一个逻辑量子比特应当综合考量多个指标：开销、空闲逻辑错误率、逻辑门保真度、逻辑门速度，以及门集的通用性。离子阱的门操作比超导门慢好几个数量级，因此一个每次操作需要几毫秒的2:1编码逻辑量子比特，并不能简单地说就比一个运行速度快上千倍、但开销更高的逻辑量子比特\"更好\"——正确的比较完全取决于你的算法在退相干追上之前需要执行多少次逻辑操作。",{"type":21,"tag":22,"props":21918,"children":21919},{},[21920],{"type":31,"value":21921},"同样，对于这个行业中的任何硬件宣称，在被独立验证之前，都值得将其视为厂商自述的数据来看待。\"2:1 比例下的48个逻辑量子比特\"描述的是特定运行条件下的一次具体演示，而不是一种普遍可用、即插即用的能力。",{"type":21,"tag":41,"props":21923,"children":21925},{"id":21924},"对今天正在学习的你意味着什么",[21926],{"type":31,"value":21924},{"type":21,"tag":22,"props":21928,"children":21929},{},[21930,21932,21937,21939,21944,21946,21952],{"type":31,"value":21931},"Helios 级别的硬件不像 ",{"type":21,"tag":26,"props":21933,"children":21934},{"href":1976},[21935],{"type":31,"value":21936},"IBM 的 Open Plan",{"type":31,"value":21938}," 那样可以在免费队列中排队使用——但无论最终哪种硬件胜出，这些理念都是通用的。Quantinuum 的 TKET 编译器是开源的，无论你面向哪种后端，今天就可以免费使用；而本文中的这些概念——编码开销、连接性限制、阈值定理——正是你评估未来任何相关公告时都会用到的同一套工具。我们的",{"type":21,"tag":26,"props":21940,"children":21941},{"href":15622},[21942],{"type":31,"value":21943},"纠错原理解析",{"type":31,"value":21945},"介绍了其底层机制，",{"type":21,"tag":26,"props":21947,"children":21949},{"href":21948},"\u002Flandscape",[21950],{"type":31,"value":21951},"量子行业全景",{"type":31,"value":21953},"则追踪了各个技术路线上都有谁在做什么，而不仅仅局限于这一种。",{"title":7,"searchDepth":167,"depth":167,"links":21955},[21956,21957,21958,21959],{"id":21848,"depth":167,"text":21851},{"id":21866,"depth":167,"text":21866},{"id":21909,"depth":167,"text":21909},{"id":21924,"depth":167,"text":21924},"content:zh:blog:quantinuum-helios-logical-qubits-2026.md","zh\u002Fblog\u002Fquantinuum-helios-logical-qubits-2026.md","zh\u002Fblog\u002Fquantinuum-helios-logical-qubits-2026",{"_path":21964,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":21965,"description":21966,"date":21818,"author":11,"tags":21967,"readingTime":272,"body":21968,"_type":1193,"_id":22106,"_source":1195,"_file":22107,"_stem":22108,"_extension":1198},"\u002Fzh\u002Fblog\u002Fquantum-chemistry-protein-scale-2026","量子计算机刚刚模拟了一个真实的蛋白质——这意味着什么","克利夫兰诊所与 IBM 在 IBM 的 Heron r2 芯片上运行了一个303原子迷你蛋白质的量子-经典混合模拟——相较于大多数 VQE 演示所用的玩具分子，这是一次真正的规模跃升，同时也伴随着真实的局限。",[3497,3626,1213],{"type":18,"children":21969,"toc":22099},[21970,21982,21987,21992,22016,22021,22027,22032,22038,22064,22069,22074,22080],{"type":21,"tag":22,"props":21971,"children":21972},{},[21973,21975,21980],{"type":31,"value":21974},"你在网上能找到的大多数 VQE 教程——包括",{"type":21,"tag":26,"props":21976,"children":21977},{"href":3623},[21978],{"type":31,"value":21979},"我们自己的",{"type":31,"value":21981},"——模拟的都是氢或氢化锂：只有几个原子的分子，之所以选择它们，是因为这正是当前硬件和噪声水平真正能够处理的规模。2026年3月，克利夫兰诊所与 IBM 发布了一项性质完全不同、规模大得多的成果：使用 IBM 的 Heron r2 处理器，对一个303原子的迷你蛋白质 Trp-cage 的电子结构进行了量子-经典混合建模。",{"type":21,"tag":22,"props":21983,"children":21984},{},[21985],{"type":31,"value":21986},"这是规模上的真正跃升，值得弄清楚这为什么困难，以及这个引人注目的原子数量究竟证明了什么、又没有证明什么。",{"type":21,"tag":41,"props":21988,"children":21990},{"id":21989},"为什么分子大小是问题的核心",[21991],{"type":31,"value":21989},{"type":21,"tag":22,"props":21993,"children":21994},{},[21995,22000,22002,22006,22008,22014],{"type":21,"tag":26,"props":21996,"children":21997},{"href":17379},[21998],{"type":31,"value":21999},"费曼在1982年提出量子计算的最初论证",{"type":31,"value":22001},"正是这一点：在经典计算机上精确模拟量子系统，所需资源会随系统规模呈指数增长，因为电子波函数存在于一个希尔伯特空间中，其维度会随所涉及的轨道数量而急剧膨胀。化学家通常用近似方法绕过这个问题，但对于超出小分子范围的任何体系，精确解在经典计算上都是不可及的。这正是 ",{"type":21,"tag":26,"props":22003,"children":22004},{"href":16280},[22005],{"type":31,"value":3626},{"type":31,"value":22007}," 存在的全部意义——",{"type":21,"tag":26,"props":22009,"children":22011},{"href":22010},"\u002Fresearch\u002Fperuzzo-vqe-2014",[22012],{"type":31,"value":22013},"Peruzzo 于2014年发表的论文",{"type":31,"value":22015},"提出了 VQE，正是因为当时的近期硬件无法独立完成整个计算，才采用了量子-经典混合循环。",{"type":21,"tag":22,"props":22017,"children":22018},{},[22019],{"type":31,"value":22020},"这也是为什么\"有多少个原子？\"对于量子化学演示来说是一个真正有意义的衡量标准——这与随机电路采样基准测试之类的场景不同。从一个2原子分子跃升到一个303原子分子，并不是对同一结果的营销式夸大——而是所攻克问题规模上的真实飞跃。",{"type":21,"tag":41,"props":22022,"children":22024},{"id":22023},"trp-cage-是什么为何选择它",[22025],{"type":31,"value":22026},"Trp-cage 是什么，为何选择它",{"type":21,"tag":22,"props":22028,"children":22029},{},[22030],{"type":31,"value":22031},"Trp-cage 并不是为了新闻稿而随意挑选的大分子——它是一种被充分研究过的20个残基的迷你蛋白质，多年来一直是分子动力学和蛋白质折叠研究中的标准基准体系，正是因为它足够小、易于处理，又足够真实、能够表现出真实蛋白质的行为。使用一个已被广泛验证的参考体系，而非全新的体系，使得这一结果更容易与数十年积累的经典模拟数据进行核对。",{"type":21,"tag":41,"props":22033,"children":22035},{"id":22034},"混合工作流在这里几乎可以肯定意味着什么",[22036],{"type":31,"value":22037},"\"混合工作流\"在这里几乎可以肯定意味着什么",{"type":21,"tag":22,"props":22039,"children":22040},{},[22041,22043,22048,22050,22056,22058,22062],{"type":31,"value":22042},"请仔细审视这个原子数字。一个303原子体系的",{"type":21,"tag":12769,"props":22044,"children":22045},{},[22046],{"type":31,"value":22047},"完整",{"type":31,"value":22049},"电子结构，远远超出当前任何量子处理器能够直接处理的范围，303个原子的所有电子极不可能真的都被表示在量子处理器上。更符合实际的情形——与 IBM 此前在类似大分子研究中公布的方法一致——是一种混合嵌入方案：精心选择的活性空间（对所研究性质最关键的电子和轨道）交由量子硬件处理，其余部分则通过经典计算处理并拼接回整体结果。这并不是在贬低这项成果——目前这个规模范围内所有\"量子计算机模拟真实分子\"的说法，实际上都是以这种方式实现的，这正是该领域在 ",{"type":21,"tag":26,"props":22051,"children":22053},{"href":22052},"\u002Fglossary\u002Fnisq",[22054],{"type":31,"value":22055},"NISQ 时代",{"type":31,"value":22057},"所确立的",{"type":21,"tag":26,"props":22059,"children":22060},{"href":3328},[22061],{"type":31,"value":3331},{"type":31,"value":22063},"模式。诚实的结论是：新闻标题中的数字描述的是所研究的体系，而不是量子处理器对每一个原子都做了同等工作量的证明。",{"type":21,"tag":41,"props":22065,"children":22067},{"id":22066},"为什么它依然是一个有意义的里程碑",[22068],{"type":31,"value":22066},{"type":21,"tag":22,"props":22070,"children":22071},{},[22072],{"type":31,"value":22073},"抛开这些限制不谈，这确实是这类混合流水线处理能力上的一次真正进步。此前大多数\"量子计算机做化学\"的演示，最多只能处理采用最小基组、只有几个原子的分子。将同一类技术扩展到一个具有生物学意义、且已被充分表征的303原子体系——并且是在真实硬件上运行量子部分，而非作为经典的替代演示——表明的是整条流水线本身在规模上的可扩展性，而这正是各厂商都在争相攻克的真正瓶颈。它与2026年其他同方向的化学里程碑并列，包括 Qubit Pharmaceuticals 与 Pasqal 展示的、在蛋白质口袋中进行水分子量子算法定位——这是一项分子生物学级别的任务，而非教科书式的演示。",{"type":21,"tag":41,"props":22075,"children":22077},{"id":22076},"如果你正在学习这意味着什么",[22078],{"type":31,"value":22079},"如果你正在学习，这意味着什么",{"type":21,"tag":22,"props":22081,"children":22082},{},[22083,22085,22090,22092,22097],{"type":31,"value":22084},"你并不需要 Heron r2 的访问权限——甚至不需要任何真实的量子处理器——就能学会这里所使用的技术。同样的 VQE 构建模块（拟设构造、活性空间选择、经典优化循环）无论你是在",{"type":21,"tag":26,"props":22086,"children":22087},{"href":3304},[22088],{"type":31,"value":22089},"免费本地模拟器",{"type":31,"value":22091},"上拟合 H₂，还是在阅读一个303原子的蛋白质案例，都是通用的。如果你想亲自运行小分子版本，可以从我们的 ",{"type":21,"tag":26,"props":22093,"children":22094},{"href":3623},[22095],{"type":31,"value":22096},"PennyLane VQE 指南",{"type":31,"value":22098},"开始；而对于这类报道中出现的原子数字，应当像对待任何其他硬件宣称一样看待它：一个真实的成果，值得被准确理解，但还不是故事的全部。",{"title":7,"searchDepth":167,"depth":167,"links":22100},[22101,22102,22103,22104,22105],{"id":21989,"depth":167,"text":21989},{"id":22023,"depth":167,"text":22026},{"id":22034,"depth":167,"text":22037},{"id":22066,"depth":167,"text":22066},{"id":22076,"depth":167,"text":22079},"content:zh:blog:quantum-chemistry-protein-scale-2026.md","zh\u002Fblog\u002Fquantum-chemistry-protein-scale-2026.md","zh\u002Fblog\u002Fquantum-chemistry-protein-scale-2026",{"_path":22110,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":22111,"description":22112,"date":21818,"author":11,"tags":22113,"readingTime":377,"body":22114,"_type":1193,"_id":22380,"_source":1195,"_file":22381,"_stem":22382,"_extension":1198},"\u002Fzh\u002Fblog\u002Ftop-quantum-computing-companies-2026","2026年7月量子计算领先企业排行与解析","对2026年7月真正重要的量子计算公司进行的一份务实排名：真实营收、真实硬件里程碑、真实现金状况，而非新闻稿式的热情。IonQ的数据配得上它的位置。Rigetti的数据还没能赶上同行。",[3409,1213],{"type":18,"children":22115,"toc":22366},[22116,22121,22133,22139,22159,22165,22170,22176,22181,22200,22205,22211,22223,22229,22234,22240,22245,22250,22256,22261,22267,22272,22278,22283,22289,22294,22299,22336,22341],{"type":21,"tag":22,"props":22117,"children":22118},{},[22119],{"type":31,"value":22120},"大多数\"顶级量子计算公司\"榜单要么按标题里的量子比特数排名，要么按公司最近一次发新闻稿的时间排名。这两者都说明不了什么。没有配套保真度数据的量子比特数，无法说明一台机器是否完成了有用的工作，而新闻稿衡量的是营销预算，不是硬件路线图。",{"type":21,"tag":22,"props":22122,"children":22123},{},[22124,22126,22131],{"type":31,"value":22125},"这份排名改用三项指标：已证实的技术进展（保真度、逻辑量子比特、可独立复现的结果，而不只是标题式的宣称）、商业牵引力（营收、合同、订单储备），以及财务韧性（现金状况相对于烧钱速度）。如果某个数字只来自公司自身的说法，本文会明确说明。我们的",{"type":21,"tag":26,"props":22127,"children":22128},{"href":21948},[22129],{"type":31,"value":22130},"完整行业目录",{"type":31,"value":22132},"收录了每个类别超过60家公司。本文正相反：一份简短、有明确立场的清单，说明谁真正领先，以及为什么一些声量最大的名字并不领先。",{"type":21,"tag":41,"props":22134,"children":22136},{"id":22135},"_1-ibm-quantum",[22137],{"type":31,"value":22138},"1. IBM Quantum",{"type":21,"tag":22,"props":22140,"children":22141},{},[22142,22144,22150,22152,22157],{"type":31,"value":22143},"IBM 仍是业内覆盖面最广的平台，2026年7月是其表现最强劲的月份之一：同一天宣布了三项独立的量子优势成果，涉及三个不同的合作伙伴和三种不同的验证策略。我们",{"type":21,"tag":26,"props":22145,"children":22147},{"href":22146},"\u002Fblog\u002Fibm-quantum-advantage-triple-announcement-2026",[22148],{"type":31,"value":22149},"在这里报道了完整公告",{"type":31,"value":22151},"。Nighthawk 处理器（120量子比特、218个可调耦合器）已投入使用，IBM 的公开路线图通过一系列过渡系统，目标在2029年实现容错，并转向 qLDPC 类型的编码，相比表面码将纠错开销削减约90%。IBM 的 Open Plan 仍是任何人免费在真实硬件上运行电路最简单的方式，这也让 IBM 在下一代量子开发者的学习路径中占据核心位置。如果你想亲自试试，可以看看我们的 ",{"type":21,"tag":26,"props":22153,"children":22154},{"href":1976},[22155],{"type":31,"value":22156},"IBM Quantum 免费套餐指南",{"type":31,"value":22158},"。IBM 的弱点正是其广度的另一面：同时发生的事情太多，每个单独的结果获得的审视都会比来自更专注的小型竞争对手时更少。",{"type":21,"tag":41,"props":22160,"children":22162},{"id":22161},"_2-google-quantum-ai",[22163],{"type":31,"value":22164},"2. Google Quantum AI",{"type":21,"tag":22,"props":22166,"children":22167},{},[22168],{"type":31,"value":22169},"Google 的 Willow 处理器在2025年底交出了 Quantum Echoes 成果（发表于 Nature），论文估计这项计算比现有最佳经典方法快约1.3万倍，而一年前的低于阈值纠错演示至今仍是该领域少数经过完全独立审视的里程碑之一。2026年3月，Google 在其超导工作之外新增了中性原子研究方向，以防超导传输子量子比特并非最终答案。Google 发布的频率低于竞争对手，两次发布之间披露的信息也更少，这是一种可以理解的研究策略，但也让人更难逐月追踪其进展。",{"type":21,"tag":41,"props":22171,"children":22173},{"id":22172},"_3-ionq",[22174],{"type":31,"value":22175},"3. IonQ",{"type":21,"tag":22,"props":22177,"children":22178},{},[22179],{"type":31,"value":22180},"在纯量子硬件公司中，IonQ 的数据是业内最强劲的，这是一个事实陈述，而非宣传语。2026年第一季度营收达到6470万美元，同比增长755%,全年指引上调至2.6亿至2.7亿美元，剩余履约义务达到4.7亿美元，同比增长554%。这不是一家靠希望运转的公司的状态。政府方面的牵引力也印证了这一点：与导弹防御局签下上限高达1510亿美元的合同框架（这是上限而非支出保证，但仍是不寻常的规模）、2026年4月拿下的新DARPA合同，以及与韩国KISTI研究所达成的主权量子高性能计算合作。",{"type":21,"tag":22,"props":22182,"children":22183},{},[22184,22186,22191,22193,22198],{"type":31,"value":22185},"在硬件方面，IonQ 的离子阱路线受益于 Oxford Ionics 收购带来的\"平滑门\"技术，据该公司称，这项技术可将双量子比特门保真度提升到99.99%以上，且无需完整的基态冷却，如果能经受独立测试的检验，这将是一条真正的工程捷径。IonQ 还在2025年12月发布了一项解码器成果（Beam Search，面向量子 LDPC 码），宣称相较标准 BP-OSD 基线可将逻辑错误率降低5.6至17倍，并能在普通CPU核心上实现亚毫秒级解码。如果这项技术能按 IonQ 的预期扩展，相比竞争对手正在追求的 FPGA 和 ASIC 路线，这将是通往实时解码的一条成本低得多的路径，我们在",{"type":21,"tag":26,"props":22187,"children":22188},{"href":14761},[22189],{"type":31,"value":22190},"实时解码瓶颈",{"type":31,"value":22192},"一文中对此有更深入的探讨。而 SkyWater Technology 代工厂的收购，",{"type":21,"tag":26,"props":22194,"children":22195},{"href":18164},[22196],{"type":31,"value":22197},"我们在这篇文章中做过详细分析",{"type":31,"value":22199},"，为 IonQ 围绕其量子比特的电极、光子学和控制硬件提供了一条完全本土、经过国防安全审查的供应链，无论量子比特物理本身如何，这都是面向政府买家的真实优势。",{"type":21,"tag":22,"props":22201,"children":22202},{},[22203],{"type":31,"value":22204},"以上这些都不像 Google 的低于阈值成果那样经过独立验证。IonQ 的保真度、解码器和门速度方面的宣称都是 IonQ 自己给出的数字。但其商业和政府方面的牵引力是外部报道且可核实的，这与营销宣称不同，而且一家如此年轻的硬件公司能在这样的规模上展现出真实的营收增长而非单纯依赖研究资助，这种情况并不常见。这种组合，已证实的商业拉动力加上连贯的硬件路线图，正是 IonQ 排在那些实验室成果或许相当甚至更好、但商业故事薄弱得多的竞争对手之前的原因。",{"type":21,"tag":41,"props":22206,"children":22208},{"id":22207},"_4-quantinuum",[22209],{"type":31,"value":22210},"4. Quantinuum",{"type":21,"tag":22,"props":22212,"children":22213},{},[22214,22216,22221],{"type":31,"value":22215},"Quantinuum 的 Helios 系统宣称从约96个物理量子比特中实现了48个纠错逻辑量子比特，即2:1的比例，如果这一比例成立将具有重要意义，因为超导硬件上的表面码估算通常需要数百甚至数千个物理量子比特才能对应一个逻辑量子比特。我们",{"type":21,"tag":26,"props":22217,"children":22218},{"href":3586},[22219],{"type":31,"value":22220},"在这里解释了这一比例为何可能实现",{"type":31,"value":22222},"：离子阱的全连接特性支持超导平面芯片无法布线实现的非局域奇偶校验。Quantinuum 于2026年上市，估值达156亿美元，比几个月前的最后一轮私募融资高出50%以上，霍尼韦尔保留了约48%的投票权。这次IPO的反响说明市场相信这个技术故事。和 IonQ 的保真度宣称一样，这个2:1的数字也是厂商自报，尚未经过独立复现。",{"type":21,"tag":41,"props":22224,"children":22226},{"id":22225},"_5-d-wave",[22227],{"type":31,"value":22228},"5. D-Wave",{"type":21,"tag":22,"props":22230,"children":22231},{},[22232],{"type":31,"value":22233},"D-Wave 属于另一个类别，退火而非门模型计算，因此很容易被低估。2026年第一季度预订量同比增长近20倍，达到3340万美元，而已确认营收相对较少，为290万美元，这说明订单储备是真实的，但确认周期很长。5.88亿美元的现金储备让公司有足够的时间等待。与佛罗里达大西洋大学和一家财富100强客户达成的量子云访问协议表明，其细分领域，即天然适合退火求解的优化问题，仍有活跃的商业需求。",{"type":21,"tag":41,"props":22235,"children":22237},{"id":22236},"_6-rigetti-computing",[22238],{"type":31,"value":22239},"6. Rigetti Computing",{"type":21,"tag":22,"props":22241,"children":22242},{},[22243],{"type":31,"value":22244},"Rigetti 是本榜单中叙事与数据之间落差最大的公司。其108量子比特超导系统 Cepheus-1 在2026年4月实现全面可用，比原定的2025年第四季度目标有所推迟，原因是可调耦合器的保真度问题。系统发布后，报告的双量子比特保真度约为99%至99.1%，低于 Rigetti 自身99.5%的目标，也明显低于 IonQ 和 Quantinuum 各自平台所宣称的数字。2026年第一季度营收为440万美元，只是 IonQ 同季度6470万美元的一个零头。公开报道还提到其在一项DARPA项目里程碑上出现挫折，这给一家目前大程度依靠自我造血推进路线图的公司带来了更大压力。",{"type":21,"tag":22,"props":22246,"children":22247},{},[22248],{"type":31,"value":22249},"真正的优势只有一个：资产负债表。约5.69亿美元现金、无债务，每季度约2600万美元的烧钱速度，这换来了真实的续航能力。这一点值得直接肯定，因为强劲的现金状况本身就是真实的资产，而非安慰奖。但现金买来的是时间，不是竞争地位，而在真正预示量子计算机能否完成有用工作的指标上，保真度、逻辑量子比特进展、独立的商业牵引力，Rigetti 落后于 IBM、Google、IonQ 和 Quantinuum，并非与它们并驾齐驱。从数字上看，其自身迈向1000+量子比特的公开路线图读起来更像是一场多年的追赶，而非一条并行赛道。",{"type":21,"tag":41,"props":22251,"children":22253},{"id":22252},"_7-psiquantum",[22254],{"type":31,"value":22255},"7. PsiQuantum",{"type":21,"tag":22,"props":22257,"children":22258},{},[22259],{"type":31,"value":22260},"PsiQuantum 的光子学路线以容错为首要目标，2025年9月完成10亿美元的E轮融资，并从澳大利亚和昆士兰政府获得约9.4亿澳元（约6.2亿美元）的承诺资金。其位于布里斯班的工厂于2026年6月开工建设，但交付时间表已从最初的2027年推迟到2029年。PsiQuantum 从未交付过商用系统，几乎把一切都押在一台容错机器能在大规模建成后一次成功运行上，这与本榜单中所有门模型竞争对手都截然不同的风险状况，后者如今都已有（虽然带噪声但确实在运行的）硬件投入使用。",{"type":21,"tag":41,"props":22262,"children":22264},{"id":22263},"_8-xanadu",[22265],{"type":31,"value":22266},"8. Xanadu",{"type":21,"tag":22,"props":22268,"children":22269},{},[22270],{"type":31,"value":22271},"Xanadu 于2026年3月在纳斯达克和多伦多证券交易所上市，融资3.02亿美元，其模块化光子系统 Aurora 宣称具备实时纠错能力，如果得到独立验证，这将是重要的技术进步。其 PennyLane 框架仍是量子机器学习领域使用最广泛的开源工具之一，无论它面向哪家硬件，这都为 Xanadu 提供了不依赖自家芯片获胜的生态立足点。",{"type":21,"tag":41,"props":22273,"children":22275},{"id":22274},"_9-pasqal",[22276],{"type":31,"value":22277},"9. Pasqal",{"type":21,"tag":22,"props":22279,"children":22280},{},[22281],{"type":31,"value":22282},"Pasqal 的中性原子路线融资3.4亿欧元，一项SPAC合并交易将其估值定为20亿美元，预计于2026年下半年完成。其公开路线图目标是在2026年展示250量子比特的优势演示，并通过 Vela 和 Centaurus 系统迈向超过1万个量子比特。中性原子在商业化阶段仍早于离子阱或超导量子比特，但 Pasqal 的融资和政府关系（尤其在欧洲）为其达到这一规模提供了真实的持续能力。",{"type":21,"tag":41,"props":22284,"children":22286},{"id":22285},"_10-quera-computing",[22287],{"type":31,"value":22288},"10. QuEra Computing",{"type":21,"tag":22,"props":22290,"children":22291},{},[22292],{"type":31,"value":22293},"QuEra 在2026年1月的一篇 Nature 论文中报告，在448个物理量子比特上编码出96个逻辑量子比特，如果这一比例能经受住类似 Google 低于阈值成果那样的检验，QuEra 的逻辑量子比特数量将超过 Quantinuum 的 Helios 成果。来自 Google 和软银等投资方超过5.07亿美元的总融资，为其继续推进中性原子路线走向更大规模提供了资源。",{"type":21,"tag":41,"props":22295,"children":22297},{"id":22296},"其余厂商简述",[22298],{"type":31,"value":22296},{"type":21,"tag":22,"props":22300,"children":22301},{},[22302,22307,22309,22314,22316,22320,22322,22327,22329,22334],{"type":21,"tag":16815,"props":22303,"children":22304},{},[22305],{"type":31,"value":22306},"Atom Computing",{"type":31,"value":22308}," 正与微软的 QuNorth 团队在纠错方面合作，目标是到2026年底在超过1200个物理量子比特上实现50个逻辑量子比特。",{"type":21,"tag":16815,"props":22310,"children":22311},{},[22312],{"type":31,"value":22313},"IQM",{"type":31,"value":22315}," 从贝莱德获得5000万欧元融资，SPAC估值达18亿美元，将自己定位为首家在欧盟上市的纯量子硬件公司，已向13家客户售出21套系统。",{"type":21,"tag":16815,"props":22317,"children":22318},{},[22319],{"type":31,"value":10562},{"type":31,"value":22321}," 于2026年2月在纽交所上市，报告拥有1600个物理量子比特，保真度为99.73%。",{"type":21,"tag":16815,"props":22323,"children":22324},{},[22325],{"type":31,"value":22326},"Microsoft",{"type":31,"value":22328}," 在2026年6月发布了 Majorana 2 拓扑量子比特更新，宣称量子比特寿命提升了1000倍，鉴于拓扑量子比特相关宣称历来备受争议，这一结果仍面临物理学界的真实审视。",{"type":21,"tag":16815,"props":22330,"children":22331},{},[22332],{"type":31,"value":22333},"NVIDIA",{"type":31,"value":22335}," 完全不制造量子比特，而是将其 NVQLink 基础设施定位为经典超级计算与来自 Rigetti、SEEQC、Quantinuum 和 IQM 的量子处理器之间的连接层，押注无论哪种硬件路线胜出，它都能掌控这条连接管道。",{"type":21,"tag":41,"props":22337,"children":22339},{"id":22338},"如何使用这份榜单",[22340],{"type":31,"value":22338},{"type":21,"tag":22,"props":22342,"children":22343},{},[22344,22346,22351,22353,22357,22359,22364],{"type":31,"value":22345},"像这样的排名会很快过时，这里的每一个数字都来自某个特定季度或某次特定公告，一年之内就会显得陈旧。不会那么快过时的是这套方法：将营收与指引对照，将保真度与公司自己设定的目标对照，检查某项\"逻辑量子比特\"或\"量子优势\"的宣称是否经过独立复现，还是仍仅停留在厂商自己的说法上。把同样的方法用在你接下来读到的任何公告上，我们的",{"type":21,"tag":26,"props":22347,"children":22348},{"href":19128},[22349],{"type":31,"value":22350},"量子基准测试文章",{"type":31,"value":22352},"更深入地探讨了为什么这个领域至今仍缺乏一种可信、不依赖厂商的硬件比较方式。如果你要决定真正在哪个平台上构建，而不只是观望哪一个，我们的",{"type":21,"tag":26,"props":22354,"children":22355},{"href":1106},[22356],{"type":31,"value":21897},{"type":31,"value":22358},"和 ",{"type":21,"tag":26,"props":22360,"children":22361},{"href":19079},[22362],{"type":31,"value":22363},"SDK 对比",{"type":31,"value":22365},"是下一步该去的地方。",{"title":7,"searchDepth":167,"depth":167,"links":22367},[22368,22369,22370,22371,22372,22373,22374,22375,22376,22377,22378,22379],{"id":22135,"depth":167,"text":22138},{"id":22161,"depth":167,"text":22164},{"id":22172,"depth":167,"text":22175},{"id":22207,"depth":167,"text":22210},{"id":22225,"depth":167,"text":22228},{"id":22236,"depth":167,"text":22239},{"id":22252,"depth":167,"text":22255},{"id":22263,"depth":167,"text":22266},{"id":22274,"depth":167,"text":22277},{"id":22285,"depth":167,"text":22288},{"id":22296,"depth":167,"text":22296},{"id":22338,"depth":167,"text":22338},"content:zh:blog:top-quantum-computing-companies-2026.md","zh\u002Fblog\u002Ftop-quantum-computing-companies-2026.md","zh\u002Fblog\u002Ftop-quantum-computing-companies-2026",{"_path":22384,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":22385,"description":22386,"date":21818,"author":11,"tags":22387,"readingTime":272,"body":22388,"_type":1193,"_id":22475,"_source":1195,"_file":22476,"_stem":22477,"_extension":1198},"\u002Fblog\u002Fadapt-gqe-ai-quantum-circuit-design","AI Now Designs Quantum Chemistry Circuits Faster Than the Standard Method","Quantinuum, NVIDIA, and Pfizer built ADAPT-GQE, a transformer and reinforcement-learning system that generates VQE ansatz circuits an order of magnitude faster than ADAPT-VQE, demonstrated on a real drug molecule and run on Quantinuum's Helios hardware.",[3497,3626,1213],{"type":18,"children":22389,"toc":22469},[22390,22401,22407,22412,22417,22423,22434,22440,22452,22458],{"type":21,"tag":22,"props":22391,"children":22392},{},[22393,22395,22399],{"type":31,"value":22394},"Building a good ",{"type":21,"tag":26,"props":22396,"children":22397},{"href":16280},[22398],{"type":31,"value":3626},{"type":31,"value":22400}," circuit for a certain molecule is itself a hard, expensive search issue, before you ever run the circuit. Researchers from Quantinuum, NVIDIA, and Pfizer published a result on July 30, 2026 that automates that search: a system called ADAPT-GQE, which learns to generate the ansatz circuit directly instead of building it one operator at a time.",{"type":21,"tag":41,"props":22402,"children":22404},{"id":22403},"the-problem-adapt-gqe-targets",[22405],{"type":31,"value":22406},"The problem ADAPT-GQE targets",{"type":21,"tag":22,"props":22408,"children":22409},{},[22410],{"type":31,"value":22411},"The standard method, ADAPT-VQE, builds a molecule-certain ansatz by testing a pool of candidate operators at every step, picking the one that improves the energy estimate most, and repeating. That greedy search works, but it gets expensive fast as molecules expand, since every step re-evaluates the whole operator pool from scratch.",{"type":21,"tag":22,"props":22413,"children":22414},{},[22415],{"type":31,"value":22416},"ADAPT-GQE replaces that per-molecule greedy search with a trained model: a transformer combined with reinforcement learning, trained to generate the state-preparation circuit for a molecule's electronic ground state directly. Once trained, generating a new circuit is a forward pass through a model instead of a fresh greedy search.",{"type":21,"tag":41,"props":22418,"children":22420},{"id":22419},"what-the-results-show",[22421],{"type":31,"value":22422},"What the results show",{"type":21,"tag":22,"props":22424,"children":22425},{},[22426,22428,22433],{"type":31,"value":22427},"The team reports a 234 times speed-up in generating training data for complex molecules, and roughly one order of magnitude reduction in circuit generation time compared to ADAPT-VQE, while matching or improving accuracy in preparing molecular ground states on their benchmarks. They demonstrated the approach on imipramine, an approved tricyclic antidepressant used here as a realistic pharmaceutical test molecule, and ran the AI-generated circuits on Quantinuum's Helios trapped-ion system, the identical hardware we covered in our ",{"type":21,"tag":26,"props":22429,"children":22430},{"href":3586},[22431],{"type":31,"value":22432},"piece on Helios's logical qubit encoding",{"type":31,"value":6678},{"type":21,"tag":41,"props":22435,"children":22437},{"id":22436},"read-the-claim-at-the-scale-it-was-tested",[22438],{"type":31,"value":22439},"Read the claim at the scale it was tested",{"type":21,"tag":22,"props":22441,"children":22442},{},[22443,22445,22450],{"type":31,"value":22444},"This result is about circuit generation, not about simulating a bigger molecule than anyone has before. It is a different kind of advance from the ",{"type":21,"tag":26,"props":22446,"children":22447},{"href":3518},[22448],{"type":31,"value":22449},"Cleveland Clinic and IBM protein-scale simulation",{"type":31,"value":22451}," we covered separately, which pushed the size of the system being simulated. ADAPT-GQE instead pushes the speed and cost of building the circuit for a given molecule, tested here on one well-characterized drug compound. Whether the trained model generalizes to structurally different molecules without retraining, and how it performs as molecule size grows well past imipramine, are the open questions worth watching in follow-up work rather than assuming from this result alone.",{"type":21,"tag":41,"props":22453,"children":22455},{"id":22454},"why-this-fits-a-pattern-worth-naming",[22456],{"type":31,"value":22457},"Why this fits a pattern worth naming",{"type":21,"tag":22,"props":22459,"children":22460},{},[22461,22463,22467],{"type":31,"value":22462},"Pfizer's involvement gives this a real commercial angle instead of a research-only demonstration, and it points at a broader shift already visible across 2026 quantum chemistry news: less effort spent proving quantum computers touch a toy molecule, more effort spent removing the practical bottlenecks, molecule size in IBM's case, circuit design cost here, standing between a working method and something a pharmaceutical team would use. If you want to build the small-molecule version of this yourself on a free simulator, our ",{"type":21,"tag":26,"props":22464,"children":22465},{"href":3623},[22466],{"type":31,"value":11853},{"type":31,"value":22468}," walks through the manual ansatz-construction approach ADAPT-GQE is trying to replace.",{"title":7,"searchDepth":167,"depth":167,"links":22470},[22471,22472,22473,22474],{"id":22403,"depth":167,"text":22406},{"id":22419,"depth":167,"text":22422},{"id":22436,"depth":167,"text":22439},{"id":22454,"depth":167,"text":22457},"content:blog:adapt-gqe-ai-quantum-circuit-design.md","blog\u002Fadapt-gqe-ai-quantum-circuit-design.md","blog\u002Fadapt-gqe-ai-quantum-circuit-design",{"_path":18952,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":22479,"description":22480,"date":21818,"author":11,"tags":22481,"readingTime":233,"body":22482,"_type":1193,"_id":22547,"_source":1195,"_file":22548,"_stem":22549,"_extension":1198},"GlobalFoundries Gets $300 Million to Build Silicon Photonics in the US","GlobalFoundries signed a letter of intent for a $300 million CHIPS Act award to scale US silicon photonics manufacturing. It is not a quantum computing grant, but the manufacturing capacity it builds matters for photonic quantum hardware and quantum networking too.",[3409,1213],{"type":18,"children":22483,"toc":22542},[22484,22489,22495,22500,22506,22531,22537],{"type":21,"tag":22,"props":22485,"children":22486},{},[22487],{"type":31,"value":22488},"GlobalFoundries signed a letter of intent with the US Department of Commerce on July 29, 2026, for a $300 million CHIPS Act award to scale up US silicon photonics manufacturing. Read the headline carefully: this is not quantum computing funding. It is an AI-infrastructure story first. It belongs on this site because the manufacturing capacity it builds is the same capacity photonic quantum computing and quantum networking depend on.",{"type":21,"tag":41,"props":22490,"children":22492},{"id":22491},"what-the-award-funds",[22493],{"type":31,"value":22494},"What the award funds",{"type":21,"tag":22,"props":22496,"children":22497},{},[22498],{"type":31,"value":22499},"Silicon photonics moves data using light instead of electrical signals, which gives AI systems more bandwidth per watt of power drawn. The funding covers co-packaged optics, an approach that places photonic circuitry directly next to processors instead of routing signals through separate optical modules, along with next-generation optical materials, wafer technology, and advanced packaging. GlobalFoundries states target performance of 400 gigabits per second in throughput and energy consumption cut to a fifth of current-generation systems. The Department of Commerce receives roughly a 1 percent equity stake in GlobalFoundries as part of the deal. Work will run through GlobalFoundries' existing facilities in Malta, New York, and Burlington, Vermont.",{"type":21,"tag":41,"props":22501,"children":22503},{"id":22502},"why-a-chipmakers-ai-deal-shows-up-on-a-quantum-computing-site",[22504],{"type":31,"value":22505},"Why a chipmaker's AI deal shows up on a quantum computing site",{"type":21,"tag":22,"props":22507,"children":22508},{},[22509,22511,22516,22518,22523,22525,22530],{"type":31,"value":22510},"Much of today's silicon photonics and advanced optical packaging supply chain sits outside the United States, which is the same domestic-manufacturing motivation behind ",{"type":21,"tag":26,"props":22512,"children":22513},{"href":18164},[22514],{"type":31,"value":22515},"IonQ's acquisition of SkyWater Technology",{"type":31,"value":22517},". The connection to quantum computing is indirect but real: photonic quantum computing companies like Xanadu and PsiQuantum, tracked on our ",{"type":21,"tag":26,"props":22519,"children":22520},{"href":21948},[22521],{"type":31,"value":22522},"industry landscape",{"type":31,"value":22524},", depend on exactly this kind of silicon photonics fabrication and packaging capacity. So do quantum networking efforts aimed at linking separate QPUs with optical interconnects, the subject of our piece on ",{"type":21,"tag":26,"props":22526,"children":22527},{"href":1137},[22528],{"type":31,"value":22529},"quantum networking and distributed quantum computing",{"type":31,"value":6678},{"type":21,"tag":41,"props":22532,"children":22534},{"id":22533},"a-general-purpose-award-with-a-quantum-side-effect",[22535],{"type":31,"value":22536},"A general-purpose award with a quantum side effect",{"type":21,"tag":22,"props":22538,"children":22539},{},[22540],{"type":31,"value":22541},"This award funds general-purpose silicon photonics aimed at AI data centers, not a quantum-specific fabrication line, and no quantum hardware vendor is named as a direct beneficiary. The manufacturing base it builds still matters: photonic and optically networked quantum hardware depends on the same silicon photonics capacity, funded here for reasons that have nothing to do with quantum computing at all. That distinction is worth keeping straight when judging how much of the \"domestic quantum supply chain\" story making the rounds in 2026 is quantum-specific policy versus a broader chip and AI-infrastructure push that quantum hardware happens to benefit from as a side effect.",{"title":7,"searchDepth":167,"depth":167,"links":22543},[22544,22545,22546],{"id":22491,"depth":167,"text":22494},{"id":22502,"depth":167,"text":22505},{"id":22533,"depth":167,"text":22536},"content:blog:globalfoundries-chips-silicon-photonics-award.md","blog\u002Fglobalfoundries-chips-silicon-photonics-award.md","blog\u002Fglobalfoundries-chips-silicon-photonics-award",{"_path":18399,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":22551,"description":22552,"date":21818,"author":11,"tags":22553,"readingTime":308,"body":22554,"_type":1193,"_id":22680,"_source":1195,"_file":22681,"_stem":22682,"_extension":1198},"Google Taught Willow to Calibrate Itself While It Runs Error Correction","Google Quantum AI and DeepMind published a Nature paper showing a reinforcement learning agent recalibrates the Willow processor using the same error-detection data error correction already produces, setting a new logical error rate record for the surface code.",[1213,14733,3409],{"type":18,"children":22555,"toc":22674},[22556,22578,22584,22589,22599,22605,22617,22622,22628,22633,22645,22651,22656],{"type":21,"tag":22,"props":22557,"children":22558},{},[22559,22561,22568,22569,22576],{"type":31,"value":22560},"Google Quantum AI and Google DeepMind published a paper in Nature on July 10, 2026 showing that a reinforcement learning agent keeps a quantum processor calibrated using data the processor was already producing, rather than pausing to run a separate tune-up routine, according to ",{"type":21,"tag":26,"props":22562,"children":22565},{"href":22563,"rel":22564},"https:\u002F\u002Fthequantuminsider.com\u002F2026\u002F07\u002F10\u002Fgoogle-study-shows-quantum-computer-can-learn-from-its-own-errors-while-it-computes\u002F",[7136],[22566],{"type":31,"value":22567},"The Quantum Insider",{"type":31,"value":3628},{"type":21,"tag":26,"props":22570,"children":22573},{"href":22571,"rel":22572},"https:\u002F\u002Fwww.nature.com\u002Farticles\u002Fs41586-026-10759-2",[7136],[22574],{"type":31,"value":22575},"the paper itself",{"type":31,"value":22577},". The work ran on Google's Willow superconducting processor and was led by Volodymyr Sivak and Alexis Morvan, with 299 authors credited in total.",{"type":21,"tag":41,"props":22579,"children":22581},{"id":22580},"the-problem-this-solves",[22582],{"type":31,"value":22583},"The problem this solves",{"type":21,"tag":22,"props":22585,"children":22586},{},[22587],{"type":31,"value":22588},"Every quantum processor drifts. Control parameters, the microwave pulse amplitudes, frequencies, and coupling strengths that drive each qubit, slowly shift due to temperature changes, material aging, and electronic noise. The standard fix is periodic recalibration: pause the machine, run a dedicated tune-up sequence, then resume. That works, but it treats calibration and computation as separate activities competing for the equivalent hardware time, and it only catches drift at the moments you choose to check for it.",{"type":21,"tag":22,"props":22590,"children":22591},{},[22592,22597],{"type":21,"tag":26,"props":22593,"children":22594},{"href":15841},[22595],{"type":31,"value":22596},"Quantum error correction",{"type":31,"value":22598}," already generates a stream of error-detection events as a normal part of running any error-corrected circuit. Google's insight was that this data is not only useful for correcting the logical qubit's state. It also tells you, continuously, how well the underlying hardware is behaving, which is exactly the signal a calibration system needs.",{"type":21,"tag":41,"props":22600,"children":22602},{"id":22601},"what-the-reinforcement-learning-agent-does",[22603],{"type":31,"value":22604},"What the reinforcement learning agent does",{"type":21,"tag":22,"props":22606,"children":22607},{},[22608,22610,22615],{"type":31,"value":22609},"The system trains a reinforcement learning agent to read the error-detection events produced during normal error-correction cycles and use them to continuously adjust more than 1,000 control parameters, without stopping the computation to do it. Google tested the approach on distance-5 and distance-7 ",{"type":21,"tag":26,"props":22611,"children":22612},{"href":15622},[22613],{"type":31,"value":22614},"surface codes",{"type":31,"value":22616}," and a distance-5 color code on the 105-qubit Willow chip, and ran simulations extending to a distance-15 surface code involving roughly 40,000 parameters, to check whether the approach holds up at a scale beyond what current hardware supports.",{"type":21,"tag":22,"props":22618,"children":22619},{},[22620],{"type":31,"value":22621},"The results at the tested scale: a 20% reduction in logical error rate beyond what conventional calibration achieves, even after exhaustive manual tuning. Under artificially injected hardware drift, meant to simulate the kind of degradation a real system experiences over hours of operation, the reinforcement learning approach cut the logical error rate by 24% and made performance 2.4 times more stable than static calibration. Adding decoder-parameter adaptation on top pushed that to a 31% error reduction and 3.5 times more stability. On the distance-7 surface code specifically, the system reached a logical error rate of 7.72 × 10⁻⁴ per cycle, which the authors report as a recent record for that code family.",{"type":21,"tag":41,"props":22623,"children":22625},{"id":22624},"why-this-matters-more-than-the-specific-numbers",[22626],{"type":31,"value":22627},"Why this matters more than the specific numbers",{"type":21,"tag":22,"props":22629,"children":22630},{},[22631],{"type":31,"value":22632},"This is the first demonstration of reinforcement learning controlling error correction at the scale of a full error-corrected processor. Earlier experimental work applied similar reinforcement learning techniques to isolated gates or to bosonic codes, smaller, more contained systems. Running it across a full surface-code processor with over 1,000 live control parameters is a meaningfully harder engineering challenge, and the fact that it improved on hand-tuned calibration rather than merely matching it is the part worth sitting with.",{"type":21,"tag":22,"props":22634,"children":22635},{},[22636,22638,22643],{"type":31,"value":22637},"Drift is a problem that gets worse, not better, as machines scale up. A processor with a few dozen qubits is recalibrated by hand often enough to stay ahead of drift. A processor with thousands of qubits, the scale ",{"type":21,"tag":26,"props":22639,"children":22640},{"href":22146},[22641],{"type":31,"value":22642},"IBM's roadmap",{"type":31,"value":22644}," and others are explicitly building toward, cannot rely on manual tune-up passes keeping pace with how many parameters need adjusting. A system that recalibrates itself continuously, using data the machine produces anyway, is a more plausible path to keeping a much larger processor stable than scaling up the current manual approach.",{"type":21,"tag":41,"props":22646,"children":22648},{"id":22647},"what-is-still-unproven",[22649],{"type":31,"value":22650},"What is still unproven",{"type":21,"tag":22,"props":22652,"children":22653},{},[22654],{"type":31,"value":22655},"This finding was demonstrated on Google's own Willow hardware and published in a peer-reviewed venue, which puts it on firmer ground than a vendor press release. It does not yet tell you whether the same reinforcement learning approach transfers cleanly to a different qubit modality, a varied code family beyond the ones tested, or a processor an order of magnitude larger than Willow's 105 qubits. The distance-15 simulation results are exactly that: simulations, not a demonstration on real hardware at that scale.",{"type":21,"tag":22,"props":22657,"children":22658},{},[22659,22661,22666,22667,22672],{"type":31,"value":22660},"What is established is narrower and still significant: on real hardware, at the scale tested, learning from the error-correction data a processor already generates beats static calibration, and does so by a wide enough margin to set a new record for the surface code. Our ",{"type":21,"tag":26,"props":22662,"children":22663},{"href":15622},[22664],{"type":31,"value":22665},"error correction explainer",{"type":31,"value":3628},{"type":21,"tag":26,"props":22668,"children":22669},{"href":4095},[22670],{"type":31,"value":22671},"logical qubits and fault tolerance piece",{"type":31,"value":22673}," cover the broader context for why keeping a large processor calibrated is as hard a problem as building the qubits in the first place.",{"title":7,"searchDepth":167,"depth":167,"links":22675},[22676,22677,22678,22679],{"id":22580,"depth":167,"text":22583},{"id":22601,"depth":167,"text":22604},{"id":22624,"depth":167,"text":22627},{"id":22647,"depth":167,"text":22650},"content:blog:google-willow-reinforcement-learning-calibration.md","blog\u002Fgoogle-willow-reinforcement-learning-calibration.md","blog\u002Fgoogle-willow-reinforcement-learning-calibration",{"_path":22684,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":22685,"description":22686,"date":21818,"author":11,"tags":22687,"readingTime":272,"body":22688,"_type":1193,"_id":22783,"_source":1195,"_file":22784,"_stem":22785,"_extension":1198},"\u002Fblog\u002Fhrl-self-operating-silicon-quantum-processor","HRL Built a Silicon Quantum Processor That Runs Its Own Error Correction","HRL Laboratories published a silicon quantum processor in Nature that runs error correction with a control chip inside the cryostat, cutting the room-temperature wiring that limits how many qubits a machine holds.",[1213,14733,3409],{"type":18,"children":22689,"toc":22778},[22690,22701,22707,22712,22730,22736,22741,22746,22752,22763],{"type":21,"tag":22,"props":22691,"children":22692},{},[22693,22695,22699],{"type":31,"value":22694},"Most quantum computers depend on racks of room-temperature electronics wired down into a cryostat, one connection per control signal, per qubit. That wiring, not qubit physics, is one of the real limits on how many qubits a machine holds. On July 29, 2026, HRL Laboratories published a result in Nature that attacks this problem directly: a silicon quantum processor with its own control chip living inside the cryostat, running ",{"type":21,"tag":26,"props":22696,"children":22697},{"href":15841},[22698],{"type":31,"value":16075},{"type":31,"value":22700}," on its own.",{"type":21,"tag":41,"props":22702,"children":22704},{"id":22703},"what-hrl-built",[22705],{"type":31,"value":22706},"What HRL built",{"type":21,"tag":22,"props":22708,"children":22709},{},[22710],{"type":31,"value":22711},"The device holds 18 qubits. Next to them, inside the equivalent cryostat, sits a custom CMOS controller operating at around minus 450 degrees Fahrenheit, close to the qubits themselves rather than at room temperature. That controller generates every signal the error-correction routine needs and runs the whole cycle with no real-time input from outside the cold chamber. A high-density ribbon cable, 296 channels of superconducting niobium on polyimide, connects the pieces while managing the heat load a control chip normally cannot tolerate at those temperatures.",{"type":21,"tag":22,"props":22713,"children":22714},{},[22715,22717,22722,22723,22728],{"type":31,"value":22716},"The controller chip itself was manufactured at a commercial foundry, the same kind of manufacturing step behind ",{"type":21,"tag":26,"props":22718,"children":22719},{"href":18164},[22720],{"type":31,"value":22721},"IonQ's recent purchase of SkyWater Technology",{"type":31,"value":3628},{"type":21,"tag":26,"props":22724,"children":22725},{"href":18952},[22726],{"type":31,"value":22727},"GlobalFoundries' new silicon photonics funding",{"type":31,"value":22729},". None of these stories are about qubit physics. All three are about the unglamorous manufacturing and packaging work that decides whether a lab result becomes a machine you scale.",{"type":21,"tag":41,"props":22731,"children":22733},{"id":22732},"why-moving-the-controller-matters-more-than-it-sounds",[22734],{"type":31,"value":22735},"Why moving the controller matters more than it sounds",{"type":21,"tag":22,"props":22737,"children":22738},{},[22739],{"type":31,"value":22740},"Every wire running from room temperature into a cryostat carries heat with it, and heat is the enemy of a qubit that needs to stay near absolute zero. Today's largest machines manage this by keeping wiring counts down, which caps how many qubits fit on one system before the cooling and wiring overhead becomes the bottleneck rather than the qubits themselves. A control chip that lives in the cold zone and runs error correction locally removes a big share of that wiring, one wired connection per function instead of one per qubit.",{"type":21,"tag":22,"props":22742,"children":22743},{},[22744],{"type":31,"value":22745},"That is a real, checkable engineering claim, and it is a different kind of assertion than a qubit count or a fidelity figure. It says nothing about how good HRL's 18 qubits are compared to a superconducting or trapped-ion qubit elsewhere. It says something about whether a silicon-based approach scales its control infrastructure without the wiring problem growing linearly with qubit count.",{"type":21,"tag":41,"props":22747,"children":22749},{"id":22748},"where-this-sits-next-to-other-2026-scaling-work",[22750],{"type":31,"value":22751},"Where this sits next to other 2026 scaling work",{"type":21,"tag":22,"props":22753,"children":22754},{},[22755,22761],{"type":21,"tag":26,"props":22756,"children":22758},{"href":22757},"\u002Fblog\u002Fwarwick-quantum-phononic-links",[22759],{"type":31,"value":22760},"Warwick researchers published a different answer",{"type":31,"value":22762}," to a related scaling problem the identical week: how to let distant qubits on one chip communicate at all, rather than only their nearest neighbors. Read together, the two results point at the same underlying truth. Qubit count and gate fidelity get the headlines, but wiring, control electronics, and qubit-to-qubit communication are the problems that decide whether a design reaches a million qubits or stalls in the hundreds.",{"type":21,"tag":22,"props":22764,"children":22765},{},[22766,22768,22772,22773,22777],{"type":31,"value":22767},"HRL's result is a working 18-qubit device with a published, peer-reviewed result behind it, not a concept paper. That distinction is worth holding onto as you read coverage of scaling claims generally. A demonstrated device at a small scale is a different kind of evidence than a proposed mechanism aimed at a much larger one, even when both are genuine contributions. For more on how silicon-based qubits compare to the trapped-ion, superconducting, and photonic approaches competing for the same scaling problem, see our ",{"type":21,"tag":26,"props":22769,"children":22770},{"href":1106},[22771],{"type":31,"value":16093},{"type":31,"value":3628},{"type":21,"tag":26,"props":22774,"children":22775},{"href":21948},[22776],{"type":31,"value":22522},{"type":31,"value":6678},{"title":7,"searchDepth":167,"depth":167,"links":22779},[22780,22781,22782],{"id":22703,"depth":167,"text":22706},{"id":22732,"depth":167,"text":22735},{"id":22748,"depth":167,"text":22751},"content:blog:hrl-self-operating-silicon-quantum-processor.md","blog\u002Fhrl-self-operating-silicon-quantum-processor.md","blog\u002Fhrl-self-operating-silicon-quantum-processor",{"_path":22787,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":22788,"description":22789,"date":21818,"author":11,"tags":22790,"readingTime":308,"body":22791,"_type":1193,"_id":23019,"_source":1195,"_file":23020,"_stem":23021,"_extension":1198},"\u002Fblog\u002Fibm-hrl-laboratories-acquisition-explained","IBM Is Acquiring HRL Laboratories: What the Silicon Spin Qubit Deal Adds","IBM has signed a definitive agreement to acquire HRL Laboratories from Boeing and General Motors, days before HRL's own paper on a self-correcting 18-qubit silicon processor. Here is what the deal covers and what it does not.",[3409,1213,14733],{"type":18,"children":22792,"toc":23012},[22793,22807,22819,22825,22852,22871,22876,22882,22887,22892,22897,22903,22908,22913,22919,22924,22929,22935,22940,22956],{"type":21,"tag":22,"props":22794,"children":22795},{},[22796,22798,22805],{"type":31,"value":22797},"IBM announced on July 23, 2026 that it signed a definitive agreement to acquire HRL Laboratories, a research institution jointly owned by Boeing and General Motors, according to ",{"type":21,"tag":26,"props":22799,"children":22802},{"href":22800,"rel":22801},"https:\u002F\u002Fnewsroom.ibm.com\u002F2026-07-23-ibm-to-acquire-hrl-laboratories-to-power-the-future-of-quantum",[7136],[22803],{"type":31,"value":22804},"IBM's newsroom announcement",{"type":31,"value":22806},". Deal terms were not disclosed. The transaction is expected to close by the end of the third quarter of 2026, subject to regulatory approval. Boeing and GM will continue to partner with IBM on quantum applications after the deal closes.",{"type":21,"tag":22,"props":22808,"children":22809},{},[22810,22812,22817],{"type":31,"value":22811},"Six days later, HRL published the result that explains why IBM wanted the lab: a silicon quantum processor that runs its own error correction, ",{"type":21,"tag":26,"props":22813,"children":22814},{"href":22684},[22815],{"type":31,"value":22816},"which we covered here",{"type":31,"value":22818},". The timing is not a coincidence worth over-reading, since large acquisitions and peer-reviewed papers run on separate clocks, but it does mean the acquisition announcement and the technical proof point landed in the same week.",{"type":21,"tag":41,"props":22820,"children":22822},{"id":22821},"what-hrl-brings",[22823],{"type":31,"value":22824},"What HRL brings",{"type":21,"tag":22,"props":22826,"children":22827},{},[22828,22830,22837,22839,22844,22846,22851],{"type":31,"value":22829},"HRL specializes in silicon-spin qubit engineering, quantum sensing, and quantum materials, according to ",{"type":21,"tag":26,"props":22831,"children":22834},{"href":22832,"rel":22833},"https:\u002F\u002Fresearch.ibm.com\u002Fblog\u002Fhrl-laboratories-ibm",[7136],[22835],{"type":31,"value":22836},"IBM Research's own writeup",{"type":31,"value":22838},". That is a different qubit modality from IBM's existing superconducting transmon platform, the one behind ",{"type":21,"tag":26,"props":22840,"children":22841},{"href":22146},[22842],{"type":31,"value":22843},"Nighthawk",{"type":31,"value":22845}," and the ",{"type":21,"tag":26,"props":22847,"children":22848},{"href":19128},[22849],{"type":31,"value":22850},"Starling and Blue Jay roadmap",{"type":31,"value":6678},{"type":21,"tag":22,"props":22853,"children":22854},{},[22855,22857,22862,22864,22869],{"type":31,"value":22856},"Spin qubits encode information in the spin state of individual electrons held in quantum dots, tiny confined regions on a silicon chip. IBM Research describes HRL's most recent processor as 56 quantum dots configured to run as 18 ",{"type":21,"tag":26,"props":22858,"children":22859},{"href":3064},[22860],{"type":31,"value":22861},"qubits",{"type":31,"value":22863},", with a CMOS control chip inside the cryostat handling error correction locally instead of routing every signal through room-temperature electronics. Our ",{"type":21,"tag":26,"props":22865,"children":22866},{"href":22684},[22867],{"type":31,"value":22868},"earlier piece on that result",{"type":31,"value":22870}," goes into why moving the controller into the cold zone matters: it cuts the wiring count that otherwise limits how many qubits a machine holds.",{"type":21,"tag":22,"props":22872,"children":22873},{},[22874],{"type":31,"value":22875},"The pitch for spin qubits next to superconducting ones is manufacturing, not raw performance. Both approaches need cryogenic cooling, and both are built with silicon fabrication techniques closer to conventional chipmaking than to anything exotic. Spin qubits also occupy a smaller physical footprint per qubit than superconducting circuits, at least in principle, since a quantum dot is a nanometer-scale feature rather than a micron-scale resonator. Whether that footprint advantage survives contact with a full error-corrected system at scale is exactly the kind of claim this site treats skeptically until independent results confirm it. A demonstrated 18-qubit device is real progress. It is not yet evidence about what a 10,000-qubit spin system costs to build or run.",{"type":21,"tag":41,"props":22877,"children":22879},{"id":22878},"why-ibm-is-buying-instead-of-partnering",[22880],{"type":31,"value":22881},"Why IBM is buying instead of partnering",{"type":21,"tag":22,"props":22883,"children":22884},{},[22885],{"type":31,"value":22886},"IBM already runs the industry's broadest quantum platform on superconducting hardware. Betting on a second qubit modality by acquisition rather than an ordinary research partnership signals that IBM wants the engineering team and the intellectual property inside its own roadmap, not only access to a paper.",{"type":21,"tag":22,"props":22888,"children":22889},{},[22890],{"type":31,"value":22891},"This deal is not IBM's first move in that direction this year. In May 2026, IBM and the U.S. Department of Commerce announced Anderon, described as the first purpose-built quantum wafer foundry in the country, a 300-millimeter facility in Albany, New York, backed by a proposed $1 billion CHIPS Act award alongside $1 billion in IBM's own cash. Then on June 2, 2026, IBM committed more than $10 billion to quantum computing over five years, spanning research, manufacturing, ecosystem partnerships, and explicitly, mergers and acquisitions. The HRL deal, announced seven weeks later, is that acquisitions line item turning into an actual transaction.",{"type":21,"tag":22,"props":22893,"children":22894},{},[22895],{"type":31,"value":22896},"Read together, the sequence looks like a company building the manufacturing base first (Anderon), backing it with capital (the $10 billion commitment), and then acquiring a qubit modality it did not already have in-house (HRL). None of that guarantees the bet pays off. It does mean the acquisition fits a pattern rather than arriving as an isolated headline.",{"type":21,"tag":41,"props":22898,"children":22900},{"id":22899},"the-people-making-the-case",[22901],{"type":31,"value":22902},"The people making the case",{"type":21,"tag":22,"props":22904,"children":22905},{},[22906],{"type":31,"value":22907},"Jay Gambetta, IBM's Director of Research and an IBM Fellow, framed the deal as HRL helping IBM \"advance toward the frontiers of quantum innovation\" and strengthening its \"long-term plans to deliver quantum computing, sensing and networking advances,\" per IBM's announcement. HRL's president and CEO, Rob Vasquez, called the move the \"natural next chapter\" for a team that has spent years exploring how future quantum computers might be built at scales that seem impossible today.",{"type":21,"tag":22,"props":22909,"children":22910},{},[22911],{"type":31,"value":22912},"Those are the kinds of quotes every acquisition announcement produces, and they are worth reading as exactly that: the framing both companies agreed to put in front of the press, not an independent assessment. The parts of this deal that are checkable are the corporate facts (signed agreement, expected close date, the ownership change from Boeing and GM to IBM) and HRL's public research record. The parts that are not yet checkable are whether silicon-spin qubits reach useful scale faster inside IBM than they would have independently.",{"type":21,"tag":41,"props":22914,"children":22916},{"id":22915},"hrls-history-is-longer-than-the-quantum-story-suggests",[22917],{"type":31,"value":22918},"HRL's history is longer than the quantum story suggests",{"type":21,"tag":22,"props":22920,"children":22921},{},[22922],{"type":31,"value":22923},"HRL traces back to Hughes Research Laboratories, founded by Howard Hughes in 1948. Its best-known achievement predates quantum computing by six decades: Theodore Maiman built the world's first working laser at the lab's Malibu facility on May 16, 1960, using a synthetic ruby crystal. The lab reorganized as HRL Laboratories, LLC in 1997, after Hughes Aircraft's ownership was restructured, and has operated since under joint ownership by Boeing and General Motors, serving both commercial and U.S. government customers across sensing, communications, advanced manufacturing, and materials science, not only quantum computing.",{"type":21,"tag":22,"props":22925,"children":22926},{},[22927],{"type":31,"value":22928},"That history matters for one reason: HRL is an established, credentialed lab with a long track record of peer-reviewed, independently reproduced results, not a startup selling a roadmap. When it publishes a Nature paper, as it did on the self-operating silicon processor, the result carries the weight of that track record. That is a different kind of credibility than a press release, and it is worth distinguishing the two when reading coverage of this acquisition.",{"type":21,"tag":41,"props":22930,"children":22932},{"id":22931},"what-to-watch-once-the-deal-closes",[22933],{"type":31,"value":22934},"What to watch once the deal closes",{"type":21,"tag":22,"props":22936,"children":22937},{},[22938],{"type":31,"value":22939},"The close itself, expected by the end of Q3 2026, is the first checkable milestone. After that, watch whether IBM folds HRL's spin-qubit work into a named point on its public roadmap, the way Starling and Blue Jay are already named and dated, or keeps it as a longer-horizon research bet without a committed delivery date. Also watch whether Anderon's foundry plans expand beyond superconducting wafers to cover spin-qubit fabrication, since that would be the concrete sign that IBM intends to manufacture both modalities at scale rather than run HRL as a separate research track.",{"type":21,"tag":22,"props":22941,"children":22942},{},[22943,22945,22949,22950,22954],{"type":31,"value":22944},"For now, the honest summary is narrower than the headlines: IBM bought a credentialed silicon-spin qubit research team and its intellectual property, for an undisclosed price, weeks after committing capital to exactly this kind of move. The technology bet is real. Whether it changes IBM's timeline to a useful quantum computer is not something this announcement, or HRL's paper, answers on its own. Our ",{"type":21,"tag":26,"props":22946,"children":22947},{"href":1106},[22948],{"type":31,"value":16093},{"type":31,"value":3628},{"type":21,"tag":26,"props":22951,"children":22952},{"href":21948},[22953],{"type":31,"value":22522},{"type":31,"value":22955}," are the places to track how this compares against the trapped-ion, photonic, and neutral-atom approaches other companies are betting on instead.",{"type":21,"tag":22,"props":22957,"children":22958},{},[22959,22964,22966,22972,22973,22979,22980,22987,22988,22995,22996,23003,23004,23011],{"type":21,"tag":16815,"props":22960,"children":22961},{},[22962],{"type":31,"value":22963},"Sources:",{"type":31,"value":22965}," ",{"type":21,"tag":26,"props":22967,"children":22969},{"href":22800,"rel":22968},[7136],[22970],{"type":31,"value":22971},"IBM newsroom announcement",{"type":31,"value":258},{"type":21,"tag":26,"props":22974,"children":22976},{"href":22832,"rel":22975},[7136],[22977],{"type":31,"value":22978},"IBM Research blog",{"type":31,"value":258},{"type":21,"tag":26,"props":22981,"children":22984},{"href":22982,"rel":22983},"https:\u002F\u002Fsiliconangle.com\u002F2026\u002F07\u002F23\u002Fibm-acquires-quantum-computing-research-lab-hrl\u002F",[7136],[22985],{"type":31,"value":22986},"SiliconANGLE",{"type":31,"value":258},{"type":21,"tag":26,"props":22989,"children":22992},{"href":22990,"rel":22991},"https:\u002F\u002Fwww.govconwire.com\u002Farticles\u002Fibm-buy-hrl-laboratories-quantum-computing",[7136],[22993],{"type":31,"value":22994},"GovConWire",{"type":31,"value":258},{"type":21,"tag":26,"props":22997,"children":23000},{"href":22998,"rel":22999},"https:\u002F\u002Fnewsroom.ibm.com\u002F2026-06-02-ibm-commits-more-than-10-billion-to-quantum-computing,-funding-its-roadmap-from-todays-leading-systems-to-the-worlds-first-fault-tolerant-quantum-computers",[7136],[23001],{"type":31,"value":23002},"IBM's $10 billion quantum investment announcement",{"type":31,"value":258},{"type":21,"tag":26,"props":23005,"children":23008},{"href":23006,"rel":23007},"https:\u002F\u002Fwww.hrl.com\u002Fabout\u002Fhistory",[7136],[23009],{"type":31,"value":23010},"HRL Laboratories history",{"type":31,"value":6678},{"title":7,"searchDepth":167,"depth":167,"links":23013},[23014,23015,23016,23017,23018],{"id":22821,"depth":167,"text":22824},{"id":22878,"depth":167,"text":22881},{"id":22899,"depth":167,"text":22902},{"id":22915,"depth":167,"text":22918},{"id":22931,"depth":167,"text":22934},"content:blog:ibm-hrl-laboratories-acquisition-explained.md","blog\u002Fibm-hrl-laboratories-acquisition-explained.md","blog\u002Fibm-hrl-laboratories-acquisition-explained",{"_path":22146,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":23023,"description":23024,"date":21818,"author":11,"tags":23025,"readingTime":16,"body":23026,"_type":1193,"_id":23173,"_source":1195,"_file":23174,"_stem":23175,"_extension":1198},"IBM Claimed Quantum Advantage Three Times in One Day: What Each Result Shows","On July 30, 2026, IBM announced three separate quantum advantage results with three different partners. Here is what each one demonstrated, and why the verification method matters more than the headline.",[3409,1213,14],{"type":18,"children":23027,"toc":23166},[23028,23033,23039,23050,23062,23068,23073,23078,23084,23089,23094,23100,23121,23126,23132,23137],{"type":21,"tag":22,"props":23029,"children":23030},{},[23031],{"type":31,"value":23032},"On July 30, 2026, IBM announced three quantum advantage results in a single day. Three different partners. Three different physics problems. Three different verification methods. Notice that pattern before you read any single headline. IBM Research director Jay Gambetta called this \"the quantum advantage era.\" Treat that claim the way we treat every vendor headline on this site. Take the pieces apart. Check each one. Decide what it means for you.",{"type":21,"tag":41,"props":23034,"children":23036},{"id":23035},"result-one-ibm-and-the-university-of-chicago-logical-qubits-at-scale",[23037],{"type":31,"value":23038},"Result one: IBM and the University of Chicago, logical qubits at scale",{"type":21,"tag":22,"props":23040,"children":23041},{},[23042,23044,23048],{"type":31,"value":23043},"The team ran an encoded circuit using 70 ",{"type":21,"tag":26,"props":23045,"children":23046},{"href":15870},[23047],{"type":31,"value":16514},{"type":31,"value":23049}," through thousands of logical operations, with a logical error rate roughly 10 times lower than the physical error rate underneath it. The task finished in about 15 minutes on IBM hardware. Leading classical simulation methods faced runtimes described as prohibitive for the same task.",{"type":21,"tag":22,"props":23051,"children":23052},{},[23053,23055,23060],{"type":31,"value":23054},"Notice what the coverage did not state: the physical qubit count behind those 70 logical qubits. Our ",{"type":21,"tag":26,"props":23056,"children":23057},{"href":4095},[23058],{"type":31,"value":23059},"companion piece on logical qubits and fault tolerance",{"type":31,"value":23061}," covers why that ratio, not the logical qubit count alone, decides whether a result is efficient or brute-forced. Until that number surfaces, read \"70 logical qubits\" as a real result with one open question attached.",{"type":21,"tag":41,"props":23063,"children":23065},{"id":23064},"outcome-two-ibm-and-qedma-a-real-physics-question-checked-two-ways",[23066],{"type":31,"value":23067},"Outcome two: IBM and Qedma, a real physics question checked two ways",{"type":21,"tag":22,"props":23069,"children":23070},{},[23071],{"type":31,"value":23072},"This team simulated a 74-qubit two-dimensional Floquet Ising model on IBM Heron processors, using Qedma's QESEM error-mitigation software. RIKEN contributed, and BlueQubit supported the study. The team compared results against classical simulation methods, including Japan's Fugaku supercomputer, and found the quantum results held steady past the point where classical approaches stopped agreeing with each other.",{"type":21,"tag":22,"props":23074,"children":23075},{},[23076],{"type":31,"value":23077},"The trust-building step here is the part worth remembering. Two independent error-mitigation estimators, one heuristic and one rigorous, agreed with each other. The team then partially reproduced the experiment on a Quantinuum system, a competitor's hardware, and got consistent results. Cross-platform agreement is a stronger form of evidence than one vendor reporting a number from its own machine.",{"type":21,"tag":41,"props":23079,"children":23081},{"id":23080},"result-three-ibm-and-algorithmiq-checking-an-solution-nothing-else-verifies",[23082],{"type":31,"value":23083},"Result three: IBM and Algorithmiq, checking an solution nothing else verifies",{"type":21,"tag":22,"props":23085,"children":23086},{},[23087],{"type":31,"value":23088},"This is the hardest version of the issue. When no classical computer verifies a result at all, how do you know the quantum answer is right? IBM and Algorithmiq simulated a heterogeneous quantum material on IBM Heron hardware and built their case on noise modeling, error mitigation, and cross-platform testing rather than a classical ground truth.",{"type":21,"tag":22,"props":23090,"children":23091},{},[23092],{"type":31,"value":23093},"Algorithmiq also open-sourced a classical simulation package called monoprop, built specifically so outside researchers independently test future advantage claims instead of taking a press release at its word. That release matters more than it might look. It is the one part of this announcement any reader of this site is able to check directly.",{"type":21,"tag":41,"props":23095,"children":23097},{"id":23096},"why-the-trust-framing-matters-more-than-the-speed-framing",[23098],{"type":31,"value":23099},"Why the trust framing matters more than the speed framing",{"type":21,"tag":22,"props":23101,"children":23102},{},[23103,23105,23111,23113,23119],{"type":31,"value":23104},"\"Beyond classical simulation\" is not a fresh assertion. Google made a related claim in 2019 with its ",{"type":21,"tag":26,"props":23106,"children":23108},{"href":23107},"\u002Fresearch\u002Fgoogle-quantum-supremacy-2019",[23109],{"type":31,"value":23110},"quantum supremacy outcome",{"type":31,"value":23112},", and better classical algorithms later closed part of that gap. IBM made a related but weaker claim in 2023 with ",{"type":21,"tag":26,"props":23114,"children":23116},{"href":23115},"\u002Fresearch\u002Fibm-quantum-utility-2023",[23117],{"type":31,"value":23118},"quantum utility",{"type":31,"value":23120},", which did not require beating classical computation outright, only being useful and comparable to it.",{"type":21,"tag":22,"props":23122,"children":23123},{},[23124],{"type":31,"value":23125},"This round targets a harder bar than either: not only \"we finished faster than classical methods,\" but \"here is independently checkable evidence for why you should trust the answer.\" That second half, the verification method, is the actual news in all three results. The raw qubit and gate counts are the part every previous announcement already led with.",{"type":21,"tag":41,"props":23127,"children":23129},{"id":23128},"what-happens-next",[23130],{"type":31,"value":23131},"What happens next",{"type":21,"tag":22,"props":23133,"children":23134},{},[23135],{"type":31,"value":23136},"Peer review and independent replication are the steps that eventually narrowed Google's 2019 assertion, and they are the steps to watch for here too. Three equivalent-day press announcements are not the same thing as three peer-reviewed, independently replicated results. Given Algorithmiq's open monoprop release, at least one path to that independent check already exists. Watch whether other research groups pick it up and whether their numbers match.",{"type":21,"tag":22,"props":23138,"children":23139},{},[23140,23142,23146,23147,23151,23153,23158,23159,23164],{"type":31,"value":23141},"For a broader sense of how IBM's hardware and error-mitigation approach compares with competing modalities, see our ",{"type":21,"tag":26,"props":23143,"children":23144},{"href":1106},[23145],{"type":31,"value":16093},{"type":31,"value":3628},{"type":21,"tag":26,"props":23148,"children":23149},{"href":21948},[23150],{"type":31,"value":22522},{"type":31,"value":23152},". For the mechanics behind logical qubits and why overhead numbers matter more than headline qubit counts, our ",{"type":21,"tag":26,"props":23154,"children":23155},{"href":4095},[23156],{"type":31,"value":23157},"fault tolerance explainer",{"type":31,"value":3628},{"type":21,"tag":26,"props":23160,"children":23161},{"href":3586},[23162],{"type":31,"value":23163},"Quantinuum Helios piece",{"type":31,"value":23165}," cover the same questions from a different vendor's claims.",{"title":7,"searchDepth":167,"depth":167,"links":23167},[23168,23169,23170,23171,23172],{"id":23035,"depth":167,"text":23038},{"id":23064,"depth":167,"text":23067},{"id":23080,"depth":167,"text":23083},{"id":23096,"depth":167,"text":23099},{"id":23128,"depth":167,"text":23131},"content:blog:ibm-quantum-advantage-triple-announcement-2026.md","blog\u002Fibm-quantum-advantage-triple-announcement-2026.md","blog\u002Fibm-quantum-advantage-triple-announcement-2026",{"_path":10559,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":23177,"description":23178,"date":21818,"author":11,"tags":23179,"readingTime":272,"body":23180,"_type":1193,"_id":23294,"_source":1195,"_file":23295,"_stem":23296,"_extension":1198},"Infleqtion Will Put a 50-Logical-Qubit Machine in Chicago by 2027","Infleqtion is deploying Sqale, a neutral-atom quantum computer targeting 50 logical qubits, at the Illinois Quantum and Microelectronics Park in 2027. The company is also opening a Chicago center aimed specifically at energy-grid optimization problems.",[1213,3409],{"type":18,"children":23181,"toc":23289},[23182,23203,23209,23227,23246,23252,23257,23262,23268,23273],{"type":21,"tag":22,"props":23183,"children":23184},{},[23185,23187,23194,23195,23201],{"type":31,"value":23186},"On July 21, 2026, Infleqtion announced it will deploy a fault-tolerant, neutral-atom quantum computer named Sqale at the Illinois Quantum and Microelectronics Park (IQMP), with hardware delivery planned for 2027, according to ",{"type":21,"tag":26,"props":23188,"children":23191},{"href":23189,"rel":23190},"https:\u002F\u002Finfleqtion.com\u002Finfleqtion-to-deploy-fault-tolerant-neutral-atom-quantum-computer-in-illinois\u002F",[7136],[23192],{"type":31,"value":23193},"the company's own announcement",{"type":31,"value":3628},{"type":21,"tag":26,"props":23196,"children":23199},{"href":23197,"rel":23198},"https:\u002F\u002Fthequantuminsider.com\u002F2026\u002F07\u002F23\u002Finfleqtion-neutral-atom-quantum-computer-illinois\u002F",[7136],[23200],{"type":31,"value":22567},{"type":31,"value":23202},". What makes this worth a article rather than a routine roadmap update is how specific the commitment is: a named site, a named delivery year, and a named application area the company is building toward, rather than a general statement about future ambitions.",{"type":21,"tag":41,"props":23204,"children":23206},{"id":23205},"what-sqale-is-supposed-to-do",[23207],{"type":31,"value":23208},"What Sqale is supposed to do",{"type":21,"tag":22,"props":23210,"children":23211},{},[23212,23214,23218,23220,23225],{"type":31,"value":23213},"Sqale is designed to demonstrate more than 50 ",{"type":21,"tag":26,"props":23215,"children":23216},{"href":15870},[23217],{"type":31,"value":16514},{"type":31,"value":23219}," at launch, with a stated path to 100, built on a physical architecture Infleqtion says scales beyond 1,000 physical qubits. Like other ",{"type":21,"tag":26,"props":23221,"children":23222},{"href":1106},[23223],{"type":31,"value":23224},"neutral-atom systems",{"type":31,"value":23226},", it uses lasers to trap and control individual atoms, and Infleqtion says the system will couple with NVIDIA's NVQLink for low-latency communication with classical GPU hardware, a pairing several vendors are now building toward as quantum systems increasingly need fast classical co-processing for error correction and control.",{"type":21,"tag":22,"props":23228,"children":23229},{},[23230,23232,23237,23239,23244],{"type":31,"value":23231},"Fifty logical qubits would be a meaningful jump if it holds up. For comparison, ",{"type":21,"tag":26,"props":23233,"children":23234},{"href":3586},[23235],{"type":31,"value":23236},"Quantinuum's Helios system claims 48 logical qubits",{"type":31,"value":23238}," from roughly 96 physical qubits, and ",{"type":21,"tag":26,"props":23240,"children":23241},{"href":3725},[23242],{"type":31,"value":23243},"QuEra reported 96 logical qubits",{"type":31,"value":23245}," on 448 physical qubits in a January 2026 Nature paper. Sqale's ratio, more than 50 logical qubits on an architecture scaling past 1,000 physical qubits, would sit at a notably higher overhead than either of those results, at least based on the numbers disclosed so far. None of these figures are directly comparable without knowing the exact error rates and code distances each system targets, and Sqale's numbers are a 2027 target, not a measured finding.",{"type":21,"tag":41,"props":23247,"children":23249},{"id":23248},"the-energy-grid-angle-is-the-more-interesting-part",[23250],{"type":31,"value":23251},"The energy grid angle is the more interesting part",{"type":21,"tag":22,"props":23253,"children":23254},{},[23255],{"type":31,"value":23256},"Infleqtion is also opening a Chicago Quantum Innovation Center focused specifically on applying quantum optimization to the electrical grid: unit commitment (deciding which power plants run when), contingency analysis (planning for equipment failures), and nuclear fuel loading. Partners named in the announcement include the National Quantum Algorithm Center, University of Chicago professor Fred Chong, Constellation Energy, and EPRI, alongside existing ARPA-E funding for a related project called ENCODE.",{"type":21,"tag":22,"props":23258,"children":23259},{},[23260],{"type":31,"value":23261},"CTO Pranav Gokhale framed the choice deliberately: \"Energy is one of the best proving grounds for quantum computing because the problems are consequential and immediate.\" That is a more specific and checkable claim than most quantum-for-industry pitches, since grid optimization problems already have well-defined classical benchmarks. If a quantum approach beats those benchmarks on a real utility's data, that is a concrete result. If it does not, that will also be visible, which is more accountability than most quantum use-case announcements carry.",{"type":21,"tag":41,"props":23263,"children":23265},{"id":23264},"the-site-and-partners-are-confirmed-the-qubit-target-is-a-projection",[23266],{"type":31,"value":23267},"The site and partners are confirmed, the qubit target is a projection",{"type":21,"tag":22,"props":23269,"children":23270},{},[23271],{"type":31,"value":23272},"The site, the delivery year, and the named partners are concrete facts. The 50-logical-qubit target and the path to 100 are Infleqtion's own projections for a system that hasn't shipped yet. Infleqtion has a track record to weigh those projections against: the company already operates the only 100-physical-qubit neutral-atom system at the UK's National Quantum Computing Centre, plus a deployment in Japan, working hardware in the field already rather than a pre-revenue startup making a first claim.",{"type":21,"tag":22,"props":23274,"children":23275},{},[23276,23278,23282,23283,23287],{"type":31,"value":23277},"CEO Matthew Kinsella called the deployment \"a landmark moment for quantum computing in Chicago,\" which is the kind of framing every regional deployment announcement uses about itself. The part worth tracking independently of that framing is whether Sqale ships on the stated 2027 timeline, and whether the energy-grid partnership produces a published result against a real utility's optimization problem rather than a simulated one. Our ",{"type":21,"tag":26,"props":23279,"children":23280},{"href":1106},[23281],{"type":31,"value":16093},{"type":31,"value":3628},{"type":21,"tag":26,"props":23284,"children":23285},{"href":21948},[23286],{"type":31,"value":22522},{"type":31,"value":23288}," track how neutral-atom systems like this one compare against the trapped-ion, superconducting, and photonic platforms other companies are betting on.",{"title":7,"searchDepth":167,"depth":167,"links":23290},[23291,23292,23293],{"id":23205,"depth":167,"text":23208},{"id":23248,"depth":167,"text":23251},{"id":23264,"depth":167,"text":23267},"content:blog:infleqtion-sqale-illinois-quantum-park.md","blog\u002Finfleqtion-sqale-illinois-quantum-park.md","blog\u002Finfleqtion-sqale-illinois-quantum-park",{"_path":18164,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":23298,"description":23299,"date":21818,"author":11,"tags":23300,"readingTime":308,"body":23301,"_type":1193,"_id":23441,"_source":1195,"_file":23442,"_stem":23443,"_extension":1198},"IonQ Bought a $1.8 Billion Semiconductor Foundry: Here Is What Changes","IonQ completed its acquisition of SkyWater Technology, the largest US-based semiconductor foundry, and calls itself the only vertically integrated full-stack quantum platform company. Here is what that claim means and what it does not.",[3409,1213,16328],{"type":18,"children":23302,"toc":23433},[23303,23317,23323,23328,23334,23339,23344,23349,23355,23360,23377,23383,23388,23394,23412,23416],{"type":21,"tag":22,"props":23304,"children":23305},{},[23306,23308,23315],{"type":31,"value":23307},"IonQ completed its acquisition of SkyWater Technology on July 31, 2026. SkyWater is the largest semiconductor foundry operating entirely inside the United States. IonQ announced the deal in January 2026. Total equity value: roughly ",{"type":21,"tag":26,"props":23309,"children":23312},{"href":23310,"rel":23311},"https:\u002F\u002Finvestors.ionq.com\u002Fnews\u002Fnews-details\u002F2026\u002FIonQ-Completes-Acquisition-of-SkyWater-Technology\u002Fdefault.aspx",[7136],[23313],{"type":31,"value":23314},"$1.8 billion",{"type":31,"value":23316},". SkyWater shareholders got $15.00 in cash plus IonQ stock, subject to a collar, for each share held. IonQ calls the combined company the only vertically integrated full-stack quantum platform company. That claim is specific and checkable. Read the parts separately before you accept the headline.",{"type":21,"tag":41,"props":23318,"children":23320},{"id":23319},"what-skywater-builds",[23321],{"type":31,"value":23322},"What SkyWater builds",{"type":21,"tag":22,"props":23324,"children":23325},{},[23326],{"type":31,"value":23327},"SkyWater does not chase the newest logic node against TSMC or Samsung. Its specialty is foundational semiconductor nodes and advanced packaging: mature process technology, not leading edge. Facilities sit in Minnesota, Florida, and Texas. Customers include commercial buyers and federal defense agencies. This distinction decides whether the acquisition targets what IonQ's hardware needs.",{"type":21,"tag":41,"props":23329,"children":23331},{"id":23330},"the-part-of-ionqs-stack-this-touches",[23332],{"type":31,"value":23333},"The part of IonQ's stack this touches",{"type":21,"tag":22,"props":23335,"children":23336},{},[23337],{"type":31,"value":23338},"Most coverage of this deal skipped one detail. A trapped-ion qubit is a single atom held in an electromagnetic field. Nobody fabricates the qubit. Ytterbium and barium ions occur naturally. They are identical to each other. No factory improves them. So what does a semiconductor foundry have to do with trapped-ion hardware?",{"type":21,"tag":22,"props":23340,"children":23341},{},[23342],{"type":31,"value":23343},"Everything around the ion. The ion trap chip is a microfabricated electrode structure that confines and shuttles ions across a surface. It is a real semiconductor device. So are the photonic components used for laser addressing and readout, and the cryogenic and RF control electronics that drive the whole system. None of that needs a 3-nanometer process. It needs the mature-node fabrication and advanced packaging SkyWater already sells to other industries.",{"type":21,"tag":22,"props":23345,"children":23346},{},[23347],{"type":31,"value":23348},"Read that way, the acquisition targets a real supply chain need. IonQ is pulling a piece of its existing supply chain in-house instead of buying it from a third party.",{"type":21,"tag":41,"props":23350,"children":23352},{"id":23351},"what-vertically-integrated-means-precisely",[23353],{"type":31,"value":23354},"What \"vertically integrated\" means, precisely",{"type":21,"tag":22,"props":23356,"children":23357},{},[23358],{"type":31,"value":23359},"No other quantum hardware business owns its foundry outright as a subsidiary. IBM has a long history with its own fabs and partners with Albany NanoTech. PsiQuantum's photonic chips come from a partnership with GlobalFoundries, not an owned subsidiary. Quantinuum's manufacturing traces back through Honeywell's aerospace and controls businesses. Owned-and-operated differs from having a good manufacturing partner, and IonQ's claim holds up on that narrow point.",{"type":21,"tag":22,"props":23361,"children":23362},{},[23363,23365,23369,23370,23375],{"type":31,"value":23364},"The assertion does not hold up as a physics claim. Owning a foundry produces no new logical qubit and no fidelity gain by itself. Our ",{"type":21,"tag":26,"props":23366,"children":23367},{"href":1106},[23368],{"type":31,"value":16093},{"type":31,"value":19969},{"type":21,"tag":26,"props":23371,"children":23372},{"href":19079},[23373],{"type":31,"value":23374},"SDK and modality comparison",{"type":31,"value":23376}," cover how IonQ stacks up against competitors across every technology, not only this one.",{"type":21,"tag":41,"props":23378,"children":23380},{"id":23379},"why-the-size-of-the-deal-matters",[23381],{"type":31,"value":23382},"Why the size of the deal matters",{"type":21,"tag":22,"props":23384,"children":23385},{},[23386],{"type":31,"value":23387},"$1.8 billion is large next to IonQ's quantum computing revenue history. A large share of the payment was IonQ stock, not cash. SkyWater brings its own profitable semiconductor business, serving customers who have nothing to do with quantum computing. After this deal, IonQ is not a pure quantum computing company anymore. A real share of its revenue now comes from ordinary foundry services. Whether that helps the hardware roadmap or distracts from it is an open question. Future earnings reports will answer that, not this press release.",{"type":21,"tag":41,"props":23389,"children":23391},{"id":23390},"the-domestic-supply-chain-story-holds-up-best",[23392],{"type":31,"value":23393},"The domestic supply chain story holds up best",{"type":21,"tag":22,"props":23395,"children":23396},{},[23397,23399,23404,23405,23410],{"type":31,"value":23398},"SkyWater's federal defense customers and its US-only footprint match a pattern we track elsewhere on this site: the federal push toward domestically controlled, security-vetted quantum and cryptographic infrastructure. See our posts on the ",{"type":21,"tag":26,"props":23400,"children":23401},{"href":16733},[23402],{"type":31,"value":23403},"accelerated post-quantum migration deadlines",{"type":31,"value":22845},{"type":21,"tag":26,"props":23406,"children":23407},{"href":19128},[23408],{"type":31,"value":23409},"quantum benchmarking executive order",{"type":31,"value":23411},". A quantum hardware vendor with a fully domestic, defense-cleared fabrication and packaging pipeline has a real selling point with government buyers that competitors sourcing through shared or offshore fabs do not have. This part of IonQ's case holds up under scrutiny. It addresses a real, separate requirement: supply chain security, which increasingly gates government contracts regardless of qubit count.",{"type":21,"tag":41,"props":23413,"children":23414},{"id":3474},[23415],{"type":31,"value":3477},{"type":21,"tag":22,"props":23417,"children":23418},{},[23419,23421,23425,23427,23431],{"type":31,"value":23420},"A foundry shortens iteration cycles and cuts supply chain risk. It does not improve gate fidelity, connectivity, or logical qubit overhead on its own. Those are the numbers that show whether trapped-ion hardware is progressing. We cover them in ",{"type":21,"tag":26,"props":23422,"children":23423},{"href":4095},[23424],{"type":31,"value":15631},{"type":31,"value":23426}," and in our look at ",{"type":21,"tag":26,"props":23428,"children":23429},{"href":3586},[23430],{"type":31,"value":16565},{"type":31,"value":23432},". The real test of this acquisition is whether IonQ's next generation of Aria- or Forte-class systems ships faster, or with better specs, than it would have on the old supply chain. That is a multi-year claim, not a same-day one. Until the data arrives, treat \"vertically integrated full-stack quantum platform company\" the way you would treat any vendor headline. Check the structural fact first. SkyWater is now a wholly owned subsidiary. Set the framing aside until results confirm it.",{"title":7,"searchDepth":167,"depth":167,"links":23434},[23435,23436,23437,23438,23439,23440],{"id":23319,"depth":167,"text":23322},{"id":23330,"depth":167,"text":23333},{"id":23351,"depth":167,"text":23354},{"id":23379,"depth":167,"text":23382},{"id":23390,"depth":167,"text":23393},{"id":3474,"depth":167,"text":3477},"content:blog:ionq-skywater-acquisition-explained.md","blog\u002Fionq-skywater-acquisition-explained.md","blog\u002Fionq-skywater-acquisition-explained",{"_path":23445,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":23446,"description":23447,"date":21818,"author":11,"tags":23448,"readingTime":272,"body":23449,"_type":1193,"_id":23538,"_source":1195,"_file":23539,"_stem":23540,"_extension":1198},"\u002Fblog\u002Fiqm-qiss-shallow-circuit-qaoa","IQM's QISS Technique Beat Deep QAOA Using a Shallower Circuit and Classical Post-Processing","IQM ran Quantum-Informed Surrogate Sampling on its 54-qubit Emerald processor and reports that a 3-layer QAOA circuit, combined with classical post-processing, outperformed a 17-layer vanilla QAOA circuit on MaxCut.",[1212,2048,13895],{"type":18,"children":23450,"toc":23532},[23451,23462,23468,23473,23479,23498,23504,23516,23520],{"type":21,"tag":22,"props":23452,"children":23453},{},[23454,23456,23460],{"type":31,"value":23455},"IQM published results on August 1, 2026, from a technique it calls Quantum-Informed Surrogate Sampling, or QISS, run on its 54-qubit Emerald processor. The headline comparison: a QISS setup using a 3-layer (p=3) QAOA circuit reportedly outperformed a standard 17-layer (p=17) QAOA circuit on MaxCut, on average. If you've read our ",{"type":21,"tag":26,"props":23457,"children":23458},{"href":1250},[23459],{"type":31,"value":10453},{"type":31,"value":23461},", that gap should stand out immediately. Circuit depth is one of the main things that kills near-term quantum algorithms on noisy hardware, since every added layer adds more opportunities for error. A method that gets QAOA-level results at a fraction of the depth is worth understanding properly rather than skimming past.",{"type":21,"tag":41,"props":23463,"children":23465},{"id":23464},"what-qiss-does",[23466],{"type":31,"value":23467},"What QISS does",{"type":21,"tag":22,"props":23469,"children":23470},{},[23471],{"type":31,"value":23472},"The core idea is a shift in what the quantum circuit is for. Standard QAOA tries to directly sample the answer: run a deep circuit, measure, and hope the output distribution is concentrated on good solutions. QISS instead uses a shallow circuit to generate statistical data, specifically low-order correlators, that a classical optimizer then uses to search for a solution. IQM's framing is that a shallow circuit's effective capacity exceeds a much deeper one once you add this kind of classical post-processing, because the quantum hardware's job shrinks to producing informative statistics rather than the entire answer. The method requires only O(N) low-order correlators, meaning the amount of quantum-generated data needed scales linearly with the problem size rather than growing combinatorially.",{"type":21,"tag":41,"props":23474,"children":23476},{"id":23475},"why-shallower-matters-more-than-the-maxcut-number-itself",[23477],{"type":31,"value":23478},"Why shallower matters more than the MaxCut number itself",{"type":21,"tag":22,"props":23480,"children":23481},{},[23482,23484,23489,23491,23496],{"type":31,"value":23483},"MaxCut is the standard toy benchmark for this class of algorithm, useful for controlled comparison but not itself the point of the result. The point is what shallow circuits open up on real, noisy hardware. Deeper circuits accumulate gate errors and decoherence faster than today's NISQ-era error correction compensates for, which is the same problem our ",{"type":21,"tag":26,"props":23485,"children":23486},{"href":19060},[23487],{"type":31,"value":23488},"error mitigation guide",{"type":31,"value":23490}," covers from a different angle, and the same reason ",{"type":21,"tag":26,"props":23492,"children":23493},{"href":18594},[23494],{"type":31,"value":23495},"shot-reduction techniques",{"type":31,"value":23497}," matter for variational algorithms generally. A technique that reaches deep-circuit-quality output from a shallow circuit is attacking the noise issue structurally instead of patching around it after the fact.",{"type":21,"tag":41,"props":23499,"children":23501},{"id":23500},"what-to-check-before-taking-the-comparison-at-face-value",[23502],{"type":31,"value":23503},"What to check before taking the comparison at face value",{"type":21,"tag":22,"props":23505,"children":23506},{},[23507,23509,23514],{"type":31,"value":23508},"\"Outperforms on average\" invites the obvious question: average over what problem sizes, and by what margin? IQM's own release frames this as noise-resilience validation on real hardware rather than a simulated finding, which is a meaningfully stronger assertion than a purely theoretical proposal, but the comparison is still against vanilla QAOA specifically, not against every classical or hybrid solver. Our ",{"type":21,"tag":26,"props":23510,"children":23511},{"href":3150},[23512],{"type":31,"value":23513},"quantum machine learning reality check",{"type":31,"value":23515}," makes the general point that near-term quantum advantage claims need a genuine classical baseline, not only a same-hardware quantum comparison, to mean much. Whether QISS beats the best classical MaxCut heuristics on the identical instances is the harder and more useful question, and it isn't the one this result answers.",{"type":21,"tag":41,"props":23517,"children":23518},{"id":3474},[23519],{"type":31,"value":3477},{"type":21,"tag":22,"props":23521,"children":23522},{},[23523,23525,23530],{"type":31,"value":23524},"Two things would move this from \"promising technique validated on one benchmark\" to \"practically useful\": results on problem instances beyond MaxCut, particularly the kind of real-world graph and portfolio problems covered in our ",{"type":21,"tag":26,"props":23526,"children":23527},{"href":16173},[23528],{"type":31,"value":23529},"quantum portfolio optimization business case",{"type":31,"value":23531},", and a head-to-head comparison against strong classical solvers rather than only against deeper QAOA circuits.",{"title":7,"searchDepth":167,"depth":167,"links":23533},[23534,23535,23536,23537],{"id":23464,"depth":167,"text":23467},{"id":23475,"depth":167,"text":23478},{"id":23500,"depth":167,"text":23503},{"id":3474,"depth":167,"text":3477},"content:blog:iqm-qiss-shallow-circuit-qaoa.md","blog\u002Fiqm-qiss-shallow-circuit-qaoa.md","blog\u002Fiqm-qiss-shallow-circuit-qaoa",{"_path":23542,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":23543,"description":23544,"date":21818,"author":11,"tags":23545,"readingTime":272,"body":23546,"_type":1193,"_id":23655,"_source":1195,"_file":23656,"_stem":23657,"_extension":1198},"\u002Fblog\u002Fpsiquantum-darpa-quantum-benchmarking-125-million","DARPA Is Paying PsiQuantum $125 Million to Check Its Own Claims","PsiQuantum signed an expanded $125 million agreement with DARPA's Quantum Benchmarking Initiative, its largest U.S. government contract to date. The money funds outside verification of PsiQuantum's fault-tolerance roadmap, not new research.",[3409,1213],{"type":18,"children":23547,"toc":23649},[23548,23569,23574,23580,23585,23590,23596,23601,23613,23619,23624,23629,23633],{"type":21,"tag":22,"props":23549,"children":23550},{},[23551,23553,23559,23560,23567],{"type":31,"value":23552},"On July 22, 2026, PsiQuantum signed an expanded $125 million agreement with the Defense Advanced Research Projects Agency, its largest U.S. government contract to date, according to ",{"type":21,"tag":26,"props":23554,"children":23557},{"href":23555,"rel":23556},"https:\u002F\u002Fthequantuminsider.com\u002F2026\u002F07\u002F22\u002Fpsiquantum-signs-125-million-agreement-with-darpa\u002F",[7136],[23558],{"type":31,"value":22567},{"type":31,"value":3628},{"type":21,"tag":26,"props":23561,"children":23564},{"href":23562,"rel":23563},"https:\u002F\u002Fwww.psiquantum.com\u002Fnews-import\u002Fpsiquantum-signs-125-million-agreement-with-darpa",[7136],[23565],{"type":31,"value":23566},"PsiQuantum's own announcement",{"type":31,"value":23568},". The money sits under DARPA's Quantum Benchmarking Initiative (QBI), a program built around a specific, unglamorous question: is a practically useful quantum computer achievable by 2033, and does any company's roadmap survive an outside party checking it.",{"type":21,"tag":22,"props":23570,"children":23571},{},[23572],{"type":31,"value":23573},"That framing matters more than the dollar figure. This is not research funding for PsiQuantum to build something recent. It funds DARPA and independent evaluators testing whether what PsiQuantum has already built and claimed holds up.",{"type":21,"tag":41,"props":23575,"children":23577},{"id":23576},"what-qbi-tests",[23578],{"type":31,"value":23579},"What QBI tests",{"type":21,"tag":22,"props":23581,"children":23582},{},[23583],{"type":31,"value":23584},"DARPA started the Quantum Benchmarking Initiative's predecessor program, Underexplored Systems for Utility-Scale Quantum Computing, in January 2023, when it first selected PsiQuantum for an initial evaluation stage. The program has since progressed in stages: PsiQuantum advanced to a second stage in January 2024, then to Stage C in February 2025, the most advanced tier. In November 2025, DARPA moved 11 companies into an earlier stage of the broader QBI program, and PsiQuantum is one of only two companies reported to have reached Stage C, the tier reserved for the most credible utility-scale claims.",{"type":21,"tag":22,"props":23586,"children":23587},{},[23588],{"type":31,"value":23589},"Getting to Stage C is itself informative. DARPA does not let every company's roadmap through to detailed, funded, adversarial testing. A company that fails an earlier stage is quietly out. Reaching the final tier is a signal that PsiQuantum's claims survived scrutiny that most quantum hardware announcements never face at all.",{"type":21,"tag":41,"props":23591,"children":23593},{"id":23592},"what-the-money-funds",[23594],{"type":31,"value":23595},"What the money funds",{"type":21,"tag":22,"props":23597,"children":23598},{},[23599],{"type":31,"value":23600},"The $125 million follows a smaller $31.8 million agreement from September 2025 that funded on-site testing at PsiQuantum's facilities. This expanded agreement funds testing across PsiQuantum's hardware, software, system architecture, and infrastructure, spanning its Milpitas, California and Chicago, Illinois sites. It is structured as a performance-based award, meaning PsiQuantum gets paid for hitting defined technical milestones DARPA and its evaluators check, not simply for showing up.",{"type":21,"tag":22,"props":23602,"children":23603},{},[23604,23606,23611],{"type":31,"value":23605},"That structure is the point. ",{"type":21,"tag":26,"props":23607,"children":23608},{"href":3725},[23609],{"type":31,"value":23610},"PsiQuantum's photonic, fault-tolerance-first approach",{"type":31,"value":23612}," has never shipped a commercial system, and its timeline for a working fault-tolerant machine has already slipped once, from 2027 to 2029. A company at that stage benefits enormously from being able to say a federal agency is independently verifying its numbers rather than taking PsiQuantum's word for them.",{"type":21,"tag":41,"props":23614,"children":23616},{"id":23615},"why-this-is-a-different-kind-of-evidence-than-a-press-release",[23617],{"type":31,"value":23618},"Why this is a different kind of evidence than a press release",{"type":21,"tag":22,"props":23620,"children":23621},{},[23622],{"type":31,"value":23623},"Most of what this site covers about early-stage quantum hardware comes from company announcements: a qubit count, a fidelity number, a funding round. Those numbers are real, but they are self-reported, and this site treats them accordingly until someone outside the company checks them.",{"type":21,"tag":22,"props":23625,"children":23626},{},[23627],{"type":31,"value":23628},"A DARPA QBI contract is structurally different. The agency's stated purpose is separating hype from reality in quantum computing roadmaps, and it does that by paying independent evaluators to test specific claims rather than accepting a business's own benchmarks. That does not mean PsiQuantum's fault-tolerance timeline will hold. It means the timeline is now subject to a level of outside checking that most competitors in this space do not have applied to their own roadmaps.",{"type":21,"tag":41,"props":23630,"children":23631},{"id":3474},[23632],{"type":31,"value":3477},{"type":21,"tag":22,"props":23634,"children":23635},{},[23636,23638,23642,23643,23647],{"type":31,"value":23637},"QBI's own stated horizon is 2033, so there is no near-term result here to wait for. What is worth tracking is whether PsiQuantum publishes or DARPA discloses any of the specific benchmark results from this testing, rather than only the fact that testing is happening. A contract confirms that evaluation is underway. It does not tell you what the evaluation found. Our ",{"type":21,"tag":26,"props":23639,"children":23640},{"href":1106},[23641],{"type":31,"value":16093},{"type":31,"value":3628},{"type":21,"tag":26,"props":23644,"children":23645},{"href":21948},[23646],{"type":31,"value":22522},{"type":31,"value":23648}," track how PsiQuantum's photonic approach compares with the superconducting, trapped-ion, and neutral-atom platforms other companies are betting on for the same fault-tolerance goal.",{"title":7,"searchDepth":167,"depth":167,"links":23650},[23651,23652,23653,23654],{"id":23576,"depth":167,"text":23579},{"id":23592,"depth":167,"text":23595},{"id":23615,"depth":167,"text":23618},{"id":3474,"depth":167,"text":3477},"content:blog:psiquantum-darpa-quantum-benchmarking-125-million.md","blog\u002Fpsiquantum-darpa-quantum-benchmarking-125-million.md","blog\u002Fpsiquantum-darpa-quantum-benchmarking-125-million",{"_path":3537,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":23659,"description":23660,"date":21818,"author":11,"tags":23661,"readingTime":233,"body":23662,"_type":1193,"_id":23755,"_source":1195,"_file":23756,"_stem":23757,"_extension":1198},"Quantinuum and BMW Turned a Five-Year Research Project Into a Roadmap Commitment","Quantinuum and BMW Group expanded their quantum chemistry collaboration, running since 2021, into a multi-year partnership that gives BMW access to Quantinuum's Helios, Sol, and Apollo hardware generations through 2029. Here is what five years of actual results looks like next to a typical pilot announcement.",[3409,1213],{"type":18,"children":23663,"toc":23750},[23664,23685,23691,23696,23701,23707,23718,23723,23729,23734],{"type":21,"tag":22,"props":23665,"children":23666},{},[23667,23669,23676,23677,23683],{"type":31,"value":23668},"On May 5, 2026, Quantinuum and BMW Group announced they were expanding their quantum computing collaboration into a formal multi-year partnership, according to ",{"type":21,"tag":26,"props":23670,"children":23673},{"href":23671,"rel":23672},"https:\u002F\u002Fwww.quantinuum.com\u002Fpress-releases\u002Fquantinuum-and-bmw-group-expand-landmark-quantum-computing-collaboration-with-new-multi-year-partnership",[7136],[23674],{"type":31,"value":23675},"Quantinuum's press release",{"type":31,"value":3628},{"type":21,"tag":26,"props":23678,"children":23681},{"href":23679,"rel":23680},"https:\u002F\u002Fthequantuminsider.com\u002F2026\u002F05\u002F05\u002Fquantinuum-and-bmw-group-expand-quantum-computing-collaboration-with-new-multi-year-partnership\u002F",[7136],[23682],{"type":31,"value":22567},{"type":31,"value":23684},". This is not a new story breaking this week. It is worth covering anyway, because most quantum-for-industry partnerships announced with this much fanfare are pilots with no track record behind them, and this one has run since 2021.",{"type":21,"tag":41,"props":23686,"children":23688},{"id":23687},"five-years-is-the-actual-story-here",[23689],{"type":31,"value":23690},"Five years is the actual story here",{"type":21,"tag":22,"props":23692,"children":23693},{},[23694],{"type":31,"value":23695},"Quantinuum and BMW have collaborated on industrial chemistry problems since 2021, moving from early algorithm development to simulating real molecular systems relevant to next-generation mobility. The specific research area is electrochemistry for fuel cells and batteries, including modeling the oxygen reduction reaction at platinum catalysts, a issue that determines fuel cell efficiency and where classical simulation methods struggle with the electron correlation effects involved.",{"type":21,"tag":22,"props":23697,"children":23698},{},[23699],{"type":31,"value":23700},"That history matters more than the announcement itself. Most quantum industry partnerships get covered at the moment they are signed, before there is any way to know whether the collaboration produces results or quietly fades. A five-year run with published progress from early algorithm work to real molecular simulation is a track record, not a press release promise.",{"type":21,"tag":41,"props":23702,"children":23704},{"id":23703},"what-bmw-gets",[23705],{"type":31,"value":23706},"What BMW gets",{"type":21,"tag":22,"props":23708,"children":23709},{},[23710,23712,23716],{"type":31,"value":23711},"The expanded partnership gives BMW access to successive generations of Quantinuum's ",{"type":21,"tag":26,"props":23713,"children":23714},{"href":3586},[23715],{"type":31,"value":18148},{"type":31,"value":23717}," hardware on a defined timeline: Helios (the current 96-qubit system, available now as hardware-as-a-service), Sol (planned for 2027 as Quantinuum's first commercially available system built on a two-dimensional qubit grid), and Apollo (targeted for 2029 as a fully fault-tolerant system capable of executing millions of gates).",{"type":21,"tag":22,"props":23719,"children":23720},{},[23721],{"type":31,"value":23722},"Quantinuum CEO Rajeeb Hazra framed the deal around \"driving commercial adoption of quantum computing through close collaboration with industry leaders on high-impact applications.\" BMW's Vice President of New Technologies, Martin Tietze, said the companies \"translate advances in quantum hardware into real-world applications.\" Both statements are the kind of framing a joint press release always uses. The part that is independently checkable is the hardware access itself: BMW is committed to Quantinuum's roadmap through at least 2029, which is an unusually long horizon for a customer relationship in a field where most vendor roadmaps get revised within a year or two.",{"type":21,"tag":41,"props":23724,"children":23726},{"id":23725},"why-this-is-a-useful-comparison-point",[23727],{"type":31,"value":23728},"Why this is a useful comparison point",{"type":21,"tag":22,"props":23730,"children":23731},{},[23732],{"type":31,"value":23733},"Announcements about quantum computing partnerships with automakers, banks, and pharmaceutical companies are common, and most of them describe an exploratory pilot with no committed timeline and no disclosed technical finding. This partnership is a useful yardstick against those: a five-year history of published, incremental research progress, a named scientific problem (the oxygen reduction reaction) rather than a vague reference to \"materials science,\" and a hardware access commitment tied to specific, dated system generations rather than an open-ended promise to keep exploring.",{"type":21,"tag":22,"props":23735,"children":23736},{},[23737,23739,23743,23744,23748],{"type":31,"value":23738},"None of that guarantees the electrochemistry results translate into a better BMW battery or fuel cell. It does mean this collaboration has a longer, more specific paper trail than the average industry quantum pilot, and it is worth checking back against as Sol and Apollo ship, since the value of a roadmap commitment depends entirely on whether the hardware behind it arrives on schedule. Our ",{"type":21,"tag":26,"props":23740,"children":23741},{"href":1106},[23742],{"type":31,"value":16093},{"type":31,"value":3628},{"type":21,"tag":26,"props":23745,"children":23746},{"href":21948},[23747],{"type":31,"value":22522},{"type":31,"value":23749}," track how Quantinuum's trapped-ion roadmap compares with the superconducting, neutral-atom, and photonic platforms other vendors are building toward the same industrial-chemistry use cases.",{"title":7,"searchDepth":167,"depth":167,"links":23751},[23752,23753,23754],{"id":23687,"depth":167,"text":23690},{"id":23703,"depth":167,"text":23706},{"id":23725,"depth":167,"text":23728},"content:blog:quantinuum-bmw-multi-year-partnership.md","blog\u002Fquantinuum-bmw-multi-year-partnership.md","blog\u002Fquantinuum-bmw-multi-year-partnership",{"_path":16173,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":23759,"description":23760,"date":21818,"author":11,"tags":23761,"readingTime":16,"body":23762,"_type":1193,"_id":24419,"_source":1195,"_file":24420,"_stem":24421,"_extension":1198},"How to Build a Business Case for Quantum Portfolio Optimization","PortfolioQ is a small open-source tool that runs classical, penalty-method QAOA, and constraint-preserving QAOA side by side on real portfolio data, and produces the one chart every quantum business case needs.",[1212,2048,10549],{"type":18,"children":23763,"toc":24412},[23764,23776,23795,23801,23837,23843,23848,23858,23882,23915,23920,23926,23931,23947,23975,23981,24006,24039,24229,24327,24344,24354,24360,24371,24408],{"type":21,"tag":22,"props":23765,"children":23766},{},[23767,23769,23774],{"type":31,"value":23768},"Writing a QAOA circuit is a solved problem. Dozens of tutorials, including ",{"type":21,"tag":26,"props":23770,"children":23771},{"href":1250},[23772],{"type":31,"value":23773},"our own",{"type":31,"value":23775},", will get you there in an afternoon. Writing the two-page memo that convinces a risk committee to fund a pilot is a completely different skill, and almost nothing teaches it. Most \"quantum computing for finance\" content either stays purely technical (build a circuit, print a result) or purely promotional (quantum will transform portfolio optimization). Neither produces the artifact a real business case needs.",{"type":21,"tag":22,"props":23777,"children":23778},{},[23779,23786,23788,23793],{"type":21,"tag":26,"props":23780,"children":23783},{"href":23781,"rel":23782},"https:\u002F\u002Fgithub.com\u002FAlinDanielFerenczi\u002FPortfolioQ",[7136],[23784],{"type":31,"value":23785},"PortfolioQ",{"type":31,"value":23787}," is a small, open-source FastAPI project built specifically to produce that artifact. It's worth walking through, not because it's a production optimizer (its own README says explicitly that it isn't), but because its structure is a genuinely useful template for how to evaluate ",{"type":21,"tag":12769,"props":23789,"children":23790},{},[23791],{"type":31,"value":23792},"any",{"type":31,"value":23794}," quantum optimization claim honestly, portfolio selection or otherwise.",{"type":21,"tag":41,"props":23796,"children":23798},{"id":23797},"the-problem-it-solves",[23799],{"type":31,"value":23800},"The problem it solves",{"type":21,"tag":22,"props":23802,"children":23803},{},[23804,23806,23811,23813,23819,23821,23827,23829,23835],{"type":31,"value":23805},"PortfolioQ targets ",{"type":21,"tag":16815,"props":23807,"children":23808},{},[23809],{"type":31,"value":23810},"cardinality-constrained portfolio selection",{"type":31,"value":23812},": pick exactly K assets out of N candidates to minimize risk and maximize expected return, using the standard Markowitz mean-variance formulation: minimize ",{"type":21,"tag":103,"props":23814,"children":23816},{"className":23815},[],[23817],{"type":31,"value":23818},"risk_factor * wᵀΣw - μᵀw",{"type":31,"value":23820}," subject to ",{"type":21,"tag":103,"props":23822,"children":23824},{"className":23823},[],[23825],{"type":31,"value":23826},"sum(w) == budget",{"type":31,"value":23828},", with each ",{"type":21,"tag":103,"props":23830,"children":23832},{"className":23831},[],[23833],{"type":31,"value":23834},"w",{"type":31,"value":23836}," binary. That constraint (exactly K assets, not \"up to K\") is what makes this a good test case: it's a real, common portfolio-construction requirement, and it's exactly the kind of constraint that's simple to get wrong in a naive QAOA implementation.",{"type":21,"tag":41,"props":23838,"children":23840},{"id":23839},"three-solvers-run-side-by-side",[23841],{"type":31,"value":23842},"Three solvers, run side by side",{"type":21,"tag":22,"props":23844,"children":23845},{},[23846],{"type":31,"value":23847},"This is the part most quantum finance demos skip, and it's the part that matters for a business case: PortfolioQ doesn't run one method and report a number. It runs three, on the same data, and compares them.",{"type":21,"tag":22,"props":23849,"children":23850},{},[23851,23856],{"type":21,"tag":16815,"props":23852,"children":23853},{},[23854],{"type":31,"value":23855},"Classical exact enumeration.",{"type":31,"value":23857}," Brute-forces every feasible K-of-N combination directly. It's not a strawman. For portfolios in the 10-30 asset range this is fast and exact, which is precisely why it's the right baseline. Any quantum approach has to be measured against this, not against \"no answer at all.\"",{"type":21,"tag":22,"props":23859,"children":23860},{},[23861,23866,23868,23874,23876,23880],{"type":21,"tag":16815,"props":23862,"children":23863},{},[23864],{"type":31,"value":23865},"Penalty-method QAOA.",{"type":31,"value":23867}," The standard textbook approach: convert the constrained problem to a QUBO via ",{"type":21,"tag":103,"props":23869,"children":23871},{"className":23870},[],[23872],{"type":31,"value":23873},"QuadraticProgramToQubo",{"type":31,"value":23875},", encode it as an Ising Hamiltonian, run ",{"type":21,"tag":26,"props":23877,"children":23878},{"href":2045},[23879],{"type":31,"value":2048},{"type":31,"value":23881},". It works, but it spends circuit depth and classical tuning effort enforcing the budget constraint through a penalty term, and some fraction of measured samples violates the constraint outright, silently scored badly rather than rejected. If you're presenting quantum results to people without an SDK background, this is the mode most likely to embarrass you: \"why does the quantum solution sometimes pick the wrong number of stocks?\"",{"type":21,"tag":22,"props":23883,"children":23884},{},[23885,23890,23892,23898,23900,23906,23907,23913],{"type":21,"tag":16815,"props":23886,"children":23887},{},[23888],{"type":31,"value":23889},"Dicke-state \u002F XY-mixer QAOA.",{"type":31,"value":23891}," The constraint-preserving alternative. A Dicke-state initialization (built with a small ancilla \"running count\" register that provably lands on exactly ",{"type":21,"tag":103,"props":23893,"children":23895},{"className":23894},[],[23896],{"type":31,"value":23897},"|budget⟩",{"type":31,"value":23899},") combined with an XY-mixer (",{"type":21,"tag":103,"props":23901,"children":23903},{"className":23902},[],[23904],{"type":31,"value":23905},"RXX",{"type":31,"value":5075},{"type":21,"tag":103,"props":23908,"children":23910},{"className":23909},[],[23911],{"type":31,"value":23912},"RYY",{"type":31,"value":23914}," gates) keeps every single measurement inside the feasible K-of-N subspace by construction. No penalty tuning, no invalid answers to explain away. It's a heavier circuit, but it's the version you'd want in front of a non-technical audience. Every result respects the constraint they asked for, because the ansatz makes anything else geometrically impossible.",{"type":21,"tag":22,"props":23916,"children":23917},{},[23918],{"type":31,"value":23919},"That comparison (one classical baseline, two structurally different quantum approaches) is the shape a credible business case needs. A single quantum result with no classical comparison and no discussion of why the encoding was chosen isn't evidence of anything.",{"type":21,"tag":41,"props":23921,"children":23923},{"id":23922},"the-chart-thats-the-actual-deliverable",[23924],{"type":31,"value":23925},"The chart that's the actual deliverable",{"type":21,"tag":22,"props":23927,"children":23928},{},[23929],{"type":31,"value":23930},"Here's the part of PortfolioQ's own documentation worth repeating verbatim, because it's the most honest sentence you'll read about applied quantum optimization this year:",{"type":21,"tag":23932,"props":23933,"children":23934},"blockquote",{},[23935],{"type":21,"tag":22,"props":23936,"children":23937},{},[23938,23940,23945],{"type":31,"value":23939},"Run the same request against a real IBM backend and chart result quality vs. gate count as you increase ",{"type":21,"tag":103,"props":23941,"children":23943},{"className":23942},[],[23944],{"type":31,"value":12897},{"type":31,"value":23946},". This is the \"signal vs. noise crossover\" chart that's the actual deliverable for a business-case pitch.",{"type":21,"tag":22,"props":23948,"children":23949},{},[23950,23952,23958,23960,23966,23967,23973],{"type":31,"value":23951},"That's the whole exercise. Not \"we ran QAOA and it worked.\" Not \"quantum is X% faster.\" A chart with two axes: how close the quantum answer gets to the true optimum (",{"type":21,"tag":103,"props":23953,"children":23955},{"className":23954},[],[23956],{"type":31,"value":23957},"pct_of_optimal",{"type":31,"value":23959},": 100% means it matched classical exactly), against how much circuit you had to run to get there (",{"type":21,"tag":103,"props":23961,"children":23963},{"className":23962},[],[23964],{"type":31,"value":23965},"circuit_depth",{"type":31,"value":3628},{"type":21,"tag":103,"props":23968,"children":23970},{"className":23969},[],[23971],{"type":31,"value":23972},"two_qubit_gates",{"type":31,"value":23974},", both reported alongside every outcome). Run it on the simulator first, then on real hardware, and watch where the lines cross, or don't.",{"type":21,"tag":41,"props":23976,"children":23978},{"id":23977},"building-the-case-step-by-step",[23979],{"type":31,"value":23980},"Building the case, step by step",{"type":21,"tag":22,"props":23982,"children":23983},{},[23984,23989,23991,23996,23998,24004],{"type":21,"tag":16815,"props":23985,"children":23986},{},[23987],{"type":31,"value":23988},"1. Cap your problem size honestly.",{"type":31,"value":23990}," PortfolioQ's own README recommends 10-30 assets for anything run on real hardware, and explains why: current ",{"type":21,"tag":26,"props":23992,"children":23993},{"href":22052},[23994],{"type":31,"value":23995},"NISQ",{"type":31,"value":23997}," devices simply don't have the qubit count or gate fidelity to go further without the noise dominating the signal. A business case that quietly assumes a 500-stock universe on today's hardware isn't a business case, it's fiction. Start with the candidate universe you'd genuinely consider: real tickers, real historical prices (the tool fetches these automatically via ",{"type":21,"tag":103,"props":23999,"children":24001},{"className":24000},[],[24002],{"type":31,"value":24003},"yfinance",{"type":31,"value":24005}," if you don't supply your own).",{"type":21,"tag":22,"props":24007,"children":24008},{},[24009,24014,24016,24022,24023,24029,24031,24037],{"type":21,"tag":16815,"props":24010,"children":24011},{},[24012],{"type":31,"value":24013},"2. Establish the in-principle baseline on a simulator.",{"type":31,"value":24015}," Run ",{"type":21,"tag":103,"props":24017,"children":24019},{"className":24018},[],[24020],{"type":31,"value":24021},"\u002Foptimize\u002Fcompare-all",{"type":31,"value":9398},{"type":21,"tag":103,"props":24024,"children":24026},{"className":24025},[],[24027],{"type":31,"value":24028},"aer_simulator",{"type":31,"value":24030}," before touching real hardware. Check that ",{"type":21,"tag":103,"props":24032,"children":24034},{"className":24033},[],[24035],{"type":31,"value":24036},"feasible_fraction",{"type":31,"value":24038}," on the XY-mixer result is exactly 1.0. That's your sanity check that the constraint-preserving construction works as designed, with no hardware noise yet in the picture.",{"type":21,"tag":128,"props":24040,"children":24044},{"className":24041,"code":24042,"language":24043,"meta":7,"style":7},"language-json shiki shiki-themes github-dark","POST \u002Foptimize\u002Fcompare-all\n{\n  \"tickers\": [\"AAPL\", \"MSFT\", \"GOOGL\", \"AMZN\", \"NVDA\"],\n  \"budget\": 2,\n  \"risk_factor\": 0.5,\n  \"reps\": 2,\n  \"shots\": 1024,\n  \"backend\": \"aer_simulator\"\n}\n","json",[24045],{"type":21,"tag":103,"props":24046,"children":24047},{"__ignoreMap":7},[24048,24056,24064,24123,24144,24164,24184,24205,24222],{"type":21,"tag":138,"props":24049,"children":24050},{"class":140,"line":141},[24051],{"type":21,"tag":138,"props":24052,"children":24053},{"style":151},[24054],{"type":31,"value":24055},"POST \u002Foptimize\u002Fcompare-all\n",{"type":21,"tag":138,"props":24057,"children":24058},{"class":140,"line":167},[24059],{"type":21,"tag":138,"props":24060,"children":24061},{"style":151},[24062],{"type":31,"value":24063},"{\n",{"type":21,"tag":138,"props":24065,"children":24066},{"class":140,"line":189},[24067,24072,24077,24082,24086,24091,24095,24100,24104,24109,24113,24118],{"type":21,"tag":138,"props":24068,"children":24069},{"style":213},[24070],{"type":31,"value":24071},"  \"tickers\"",{"type":21,"tag":138,"props":24073,"children":24074},{"style":151},[24075],{"type":31,"value":24076},": [",{"type":21,"tag":138,"props":24078,"children":24079},{"style":261},[24080],{"type":31,"value":24081},"\"AAPL\"",{"type":21,"tag":138,"props":24083,"children":24084},{"style":151},[24085],{"type":31,"value":258},{"type":21,"tag":138,"props":24087,"children":24088},{"style":261},[24089],{"type":31,"value":24090},"\"MSFT\"",{"type":21,"tag":138,"props":24092,"children":24093},{"style":151},[24094],{"type":31,"value":258},{"type":21,"tag":138,"props":24096,"children":24097},{"style":261},[24098],{"type":31,"value":24099},"\"GOOGL\"",{"type":21,"tag":138,"props":24101,"children":24102},{"style":151},[24103],{"type":31,"value":258},{"type":21,"tag":138,"props":24105,"children":24106},{"style":261},[24107],{"type":31,"value":24108},"\"AMZN\"",{"type":21,"tag":138,"props":24110,"children":24111},{"style":151},[24112],{"type":31,"value":258},{"type":21,"tag":138,"props":24114,"children":24115},{"style":261},[24116],{"type":31,"value":24117},"\"NVDA\"",{"type":21,"tag":138,"props":24119,"children":24120},{"style":151},[24121],{"type":31,"value":24122},"],\n",{"type":21,"tag":138,"props":24124,"children":24125},{"class":140,"line":199},[24126,24131,24136,24140],{"type":21,"tag":138,"props":24127,"children":24128},{"style":213},[24129],{"type":31,"value":24130},"  \"budget\"",{"type":21,"tag":138,"props":24132,"children":24133},{"style":151},[24134],{"type":31,"value":24135},": ",{"type":21,"tag":138,"props":24137,"children":24138},{"style":213},[24139],{"type":31,"value":292},{"type":21,"tag":138,"props":24141,"children":24142},{"style":151},[24143],{"type":31,"value":4824},{"type":21,"tag":138,"props":24145,"children":24146},{"class":140,"line":225},[24147,24152,24156,24160],{"type":21,"tag":138,"props":24148,"children":24149},{"style":213},[24150],{"type":31,"value":24151},"  \"risk_factor\"",{"type":21,"tag":138,"props":24153,"children":24154},{"style":151},[24155],{"type":31,"value":24135},{"type":21,"tag":138,"props":24157,"children":24158},{"style":213},[24159],{"type":31,"value":7858},{"type":21,"tag":138,"props":24161,"children":24162},{"style":151},[24163],{"type":31,"value":4824},{"type":21,"tag":138,"props":24165,"children":24166},{"class":140,"line":233},[24167,24172,24176,24180],{"type":21,"tag":138,"props":24168,"children":24169},{"style":213},[24170],{"type":31,"value":24171},"  \"reps\"",{"type":21,"tag":138,"props":24173,"children":24174},{"style":151},[24175],{"type":31,"value":24135},{"type":21,"tag":138,"props":24177,"children":24178},{"style":213},[24179],{"type":31,"value":292},{"type":21,"tag":138,"props":24181,"children":24182},{"style":151},[24183],{"type":31,"value":4824},{"type":21,"tag":138,"props":24185,"children":24186},{"class":140,"line":272},[24187,24192,24196,24201],{"type":21,"tag":138,"props":24188,"children":24189},{"style":213},[24190],{"type":31,"value":24191},"  \"shots\"",{"type":21,"tag":138,"props":24193,"children":24194},{"style":151},[24195],{"type":31,"value":24135},{"type":21,"tag":138,"props":24197,"children":24198},{"style":213},[24199],{"type":31,"value":24200},"1024",{"type":21,"tag":138,"props":24202,"children":24203},{"style":151},[24204],{"type":31,"value":4824},{"type":21,"tag":138,"props":24206,"children":24207},{"class":140,"line":308},[24208,24213,24217],{"type":21,"tag":138,"props":24209,"children":24210},{"style":213},[24211],{"type":31,"value":24212},"  \"backend\"",{"type":21,"tag":138,"props":24214,"children":24215},{"style":151},[24216],{"type":31,"value":24135},{"type":21,"tag":138,"props":24218,"children":24219},{"style":261},[24220],{"type":31,"value":24221},"\"aer_simulator\"\n",{"type":21,"tag":138,"props":24223,"children":24224},{"class":140,"line":16},[24225],{"type":21,"tag":138,"props":24226,"children":24227},{"style":151},[24228],{"type":31,"value":19559},{"type":21,"tag":22,"props":24230,"children":24231},{},[24232,24243,24245,24251,24253,24259,24261,24266,24268,24273,24275,24281,24282,24287,24289,24294,24296,24301,24303,24309,24311,24317,24319,24325],{"type":21,"tag":16815,"props":24233,"children":24234},{},[24235,24237,24242],{"type":31,"value":24236},"3. Move to real hardware and vary ",{"type":21,"tag":103,"props":24238,"children":24240},{"className":24239},[],[24241],{"type":31,"value":12897},{"type":31,"value":6678},{"type":31,"value":24244}," This is where the actual data comes from. Point ",{"type":21,"tag":103,"props":24246,"children":24248},{"className":24247},[],[24249],{"type":31,"value":24250},"\"backend\"",{"type":31,"value":24252}," at a real device (",{"type":21,"tag":103,"props":24254,"children":24256},{"className":24255},[],[24257],{"type":31,"value":24258},"\"ibm_torino\"",{"type":31,"value":24260},", for example. See our ",{"type":21,"tag":26,"props":24262,"children":24263},{"href":1976},[24264],{"type":31,"value":24265},"IBM Quantum free tier guide",{"type":31,"value":24267}," if you don't have hardware access set up yet) and rerun the same comparison as you increase ",{"type":21,"tag":103,"props":24269,"children":24271},{"className":24270},[],[24272],{"type":31,"value":12897},{"type":31,"value":24274},". ",{"type":21,"tag":103,"props":24276,"children":24278},{"className":24277},[],[24279],{"type":31,"value":24280},"qaoa_xy_pct_of_optimal",{"type":31,"value":3628},{"type":21,"tag":103,"props":24283,"children":24285},{"className":24284},[],[24286],{"type":31,"value":23972},{"type":31,"value":24288}," climbing together across a handful of ",{"type":21,"tag":103,"props":24290,"children":24292},{"className":24291},[],[24293],{"type":31,"value":12897},{"type":31,"value":24295}," values ",{"type":21,"tag":12769,"props":24297,"children":24298},{},[24299],{"type":31,"value":24300},"is",{"type":31,"value":24302}," the chart. Because each COBYLA iteration blocks on a real hardware job, use PortfolioQ's async ",{"type":21,"tag":103,"props":24304,"children":24306},{"className":24305},[],[24307],{"type":31,"value":24308},"\u002Fsubmit",{"type":31,"value":24310}," + ",{"type":21,"tag":103,"props":24312,"children":24314},{"className":24313},[],[24315],{"type":31,"value":24316},"\u002Fjobs\u002F{id}",{"type":31,"value":24318}," endpoints rather than the blocking ones. A ",{"type":21,"tag":103,"props":24320,"children":24322},{"className":24321},[],[24323],{"type":31,"value":24324},"maxiter",{"type":31,"value":24326}," of 100 means up to 100 hardware round-trips per optimization run, which will outlast most HTTP client timeouts on a queued device.",{"type":21,"tag":22,"props":24328,"children":24329},{},[24330,24335,24337,24342],{"type":21,"tag":16815,"props":24331,"children":24332},{},[24333],{"type":31,"value":24334},"4. Report the noise honestly, including where it breaks the guarantee.",{"type":31,"value":24336}," Expect ",{"type":21,"tag":103,"props":24338,"children":24340},{"className":24339},[],[24341],{"type":31,"value":24036},{"type":31,"value":24343}," to drop below 1.0 on real hardware even for the XY-mixer, despite the simulator showing a clean 1.0. That's not a bug and it's not a reason to hide the result. On real hardware, noise, not the algorithm, is what breaks the Hamming-weight preservation the Dicke-state construction guarantees in theory. That gap between simulator and hardware feasibility is itself a meaningful, quotable data point: it's a direct, measured picture of how much today's error rates cost you, expressed in a metric a risk committee reads directly.",{"type":21,"tag":22,"props":24345,"children":24346},{},[24347,24352],{"type":21,"tag":16815,"props":24348,"children":24349},{},[24350],{"type":31,"value":24351},"5. Write the recommendation the data supports.",{"type":31,"value":24353}," For 10-30 assets on current hardware, that recommendation is almost never \"replace the greedy heuristic in production today\". PortfolioQ's own greedy baseline exists precisely as \"what we'd run in production today,\" and it's rapid, classical, and usually close to optimal at this scale. The honest, defensible business case is: here is the exact crossover point we measured, here is what has to improve (gate fidelity, qubit count, queue economics) before it moves, and here is the monitoring plan for re-running this comparison as hardware improves. That's a real deliverable. \"We're not there yet, and here's precisely how we'll know when we are\" is a stronger memo than an inflated claim that won't survive the first follow-up question.",{"type":21,"tag":41,"props":24355,"children":24357},{"id":24356},"what-this-template-generalizes-to",[24358],{"type":31,"value":24359},"What this template generalizes to",{"type":21,"tag":22,"props":24361,"children":24362},{},[24363,24365,24369],{"type":31,"value":24364},"None of the above is specific to portfolios. The same shape (a credible classical baseline, more than one quantum encoding compared honestly, a simulator sanity check before hardware, and a quality-vs-noise chart instead of a single cherry-picked run) is exactly how you'd build a defensible case for QAOA on any other constrained optimization problem: routing, scheduling, or the Max-Cut-style problems in our ",{"type":21,"tag":26,"props":24366,"children":24367},{"href":1250},[24368],{"type":31,"value":10453},{"type":31,"value":24370},". The specific circuits change. The discipline of comparing against what you already have, and reporting where the noise wins, doesn't.",{"type":21,"tag":22,"props":24372,"children":24373},{},[24374,24376,24382,24384,24390,24392,24398,24400,24406],{"type":31,"value":24375},"If you want to see this pattern extended, PortfolioQ's ",{"type":21,"tag":26,"props":24377,"children":24379},{"href":23781,"rel":24378},[7136],[24380],{"type":31,"value":24381},"source on GitHub",{"type":31,"value":24383}," is modest enough to read end to end in an afternoon: ",{"type":21,"tag":103,"props":24385,"children":24387},{"className":24386},[],[24388],{"type":31,"value":24389},"portfolio.py",{"type":31,"value":24391}," for the QUBO construction, ",{"type":21,"tag":103,"props":24393,"children":24395},{"className":24394},[],[24396],{"type":31,"value":24397},"xy_mixer_solver.py",{"type":31,"value":24399}," for the constraint-preserving ansatz, and ",{"type":21,"tag":103,"props":24401,"children":24403},{"className":24402},[],[24404],{"type":31,"value":24405},"main.py",{"type":31,"value":24407}," for how the comparison endpoints are wired together. It's explicitly a pilot and capability-building scaffold rather than a production system, which, for the purpose of building a business case rather than shipping a trading system, is exactly the point.",{"type":21,"tag":1174,"props":24409,"children":24410},{},[24411],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":24413},[24414,24415,24416,24417,24418],{"id":23797,"depth":167,"text":23800},{"id":23839,"depth":167,"text":23842},{"id":23922,"depth":167,"text":23925},{"id":23977,"depth":167,"text":23980},{"id":24356,"depth":167,"text":24359},"content:blog:quantum-portfolio-optimization-business-case.md","blog\u002Fquantum-portfolio-optimization-business-case.md","blog\u002Fquantum-portfolio-optimization-business-case",{"_path":21581,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":24423,"description":24424,"date":21818,"author":11,"tags":24425,"readingTime":272,"body":24426,"_type":1193,"_id":24570,"_source":1195,"_file":24571,"_stem":24572,"_extension":1198},"SAXON Q Is Selling a Quantum Computer That Skips the Cryostat Entirely","SAXON Q, a Leipzig University spinout, launched the SXQ128 and SXQ512, diamond-based nitrogen-vacancy quantum computers that run at room temperature with no cryogenic cooling. Here is how the qubits work and what the claimed numbers mean.",[1213,3409],{"type":18,"children":24427,"toc":24564},[24428,24449,24454,24460,24474,24479,24485,24497,24502,24508,24520,24525,24531,24543,24559],{"type":21,"tag":22,"props":24429,"children":24430},{},[24431,24433,24439,24440,24447],{"type":31,"value":24432},"On July 21, 2026, SAXON Q announced commercial availability of the SXQ128 and SXQ512, diamond-based quantum computers built around nitrogen-vacancy (NV) centers, according to ",{"type":21,"tag":26,"props":24434,"children":24437},{"href":24435,"rel":24436},"https:\u002F\u002Fthequantuminsider.com\u002F2026\u002F07\u002F21\u002Fsaxon-q-diamond-nv-center-quantum-computers\u002F",[7136],[24438],{"type":31,"value":22567},{"type":31,"value":3628},{"type":21,"tag":26,"props":24441,"children":24444},{"href":24442,"rel":24443},"https:\u002F\u002Fwww.hpcwire.com\u002Foff-the-wire\u002Fsaxon-q-brings-room-temperature-diamond-quantum-computing-to-commercial-market\u002F",[7136],[24445],{"type":31,"value":24446},"HPCwire",{"type":31,"value":24448},". The headline claim is the one worth checking first: both systems run at room temperature, with no cryostat, no vacuum chamber, and no dilution refrigerator, plugged into an ordinary electrical outlet in a standard server rack.",{"type":21,"tag":22,"props":24450,"children":24451},{},[24452],{"type":31,"value":24453},"That single fact separates NV-center qubits from every hardware modality this site usually covers. Superconducting qubits and trapped ions both need cooling to near absolute zero, and most of the engineering difficulty in scaling those platforms traces back to that requirement. A qubit that works at room temperature sidesteps an entire category of problems, if the claim holds up.",{"type":21,"tag":41,"props":24455,"children":24457},{"id":24456},"what-saxon-q-built",[24458],{"type":31,"value":24459},"What SAXON Q built",{"type":21,"tag":22,"props":24461,"children":24462},{},[24463,24465,24472],{"type":31,"value":24464},"SAXON Q is a 2021 spinout from Leipzig University, founded by physicists who spent decades researching NV centers before commercializing the work. Marius Grundmann and Frank Schlichting hold the CEO title jointly, according to ",{"type":21,"tag":26,"props":24466,"children":24469},{"href":24467,"rel":24468},"https:\u002F\u002Fwww.saxonq.com\u002Fen\u002Funternehmen\u002F",[7136],[24470],{"type":31,"value":24471},"the firm's own site",{"type":31,"value":24473},", alongside co-founders Jan Meijer (CTO) and Bernd Burchard (CIPO).",{"type":21,"tag":22,"props":24475,"children":24476},{},[24477],{"type":31,"value":24478},"The SXQ128 packs 128 qubits, arranged as multiple cores of eight fully entangled qubits each. The SXQ512 scales that to 512 qubits across cores of 16. Both are available to order now, with SXQ128 deliveries beginning within three months and SXQ512 shipments starting in the second quarter of 2027.",{"type":21,"tag":41,"props":24480,"children":24482},{"id":24481},"what-an-nv-center-is",[24483],{"type":31,"value":24484},"What an NV center is",{"type":21,"tag":22,"props":24486,"children":24487},{},[24488,24490,24495],{"type":31,"value":24489},"A nitrogen-vacancy center is a specific defect in a diamond's carbon lattice: a nitrogen atom sits subsequent to an empty spot where a carbon atom should be. That defect traps a single electron whose spin state is initialized, manipulated, and read out with lasers and microwaves, and it behaves as a ",{"type":21,"tag":26,"props":24491,"children":24492},{"href":3064},[24493],{"type":31,"value":24494},"qubit",{"type":31,"value":24496}," at room temperature because diamond's rigid lattice isolates the trapped electron from the thermal noise that would otherwise destroy its quantum state.",{"type":21,"tag":22,"props":24498,"children":24499},{},[24500],{"type":31,"value":24501},"The company reports a fidelity of up to 99.92% and describes creating these defects through a proprietary sulfur co-implantation process during ion beam implantation, claiming a conversion yield above 85% (the share of implanted atoms that become working qubits) against a reported 1 to 10% for prior implantation methods. That yield number is the more interesting engineering claim here, since NV centers themselves are decades-old physics. The obstacle was always building enough of them reliably in one piece of diamond, not discovering that they exist.",{"type":21,"tag":41,"props":24503,"children":24505},{"id":24504},"what-to-treat-as-unverified",[24506],{"type":31,"value":24507},"What to treat as unverified",{"type":21,"tag":22,"props":24509,"children":24510},{},[24511,24513,24518],{"type":31,"value":24512},"Every number above comes from SAXON Q's own announcement. None of it has been independently reproduced or published in a peer-reviewed venue the way HRL's recent ",{"type":21,"tag":26,"props":24514,"children":24515},{"href":22684},[24516],{"type":31,"value":24517},"self-operating silicon processor",{"type":31,"value":24519}," was. A fidelity figure is only useful next to a clearly stated definition of which operation it measures, and a yield percentage is only useful once someone outside the company that reports it gets to check the diamond.",{"type":21,"tag":22,"props":24521,"children":24522},{},[24523],{"type":31,"value":24524},"The one data point that is not only a press release is a deployment: Fraunhofer IWU installed a SAXON Q system in mid-2025 for industrial optimization work in material processing and robotics, and the company says it has run continuously at room temperature since. A working deployment at a respected applied-research institute is a stronger signal than a spec sheet, though it still says nothing about how the same architecture performs at 128 or 512 qubits.",{"type":21,"tag":41,"props":24526,"children":24528},{"id":24527},"where-room-temperature-qubits-fit-against-everything-else",[24529],{"type":31,"value":24530},"Where room-temperature qubits fit against everything else",{"type":21,"tag":22,"props":24532,"children":24533},{},[24534,24536,24541],{"type":31,"value":24535},"Room-temperature operation does not automatically mean SAXON Q's qubits outperform cryogenic ones on the metrics that decide whether a quantum computer is useful: gate fidelity under load, coherence time during a real circuit, and how the system behaves as qubit count grows. Trapped ions and superconducting qubits have a multi-year head start on demonstrating those things at scale, with ",{"type":21,"tag":26,"props":24537,"children":24538},{"href":19128},[24539],{"type":31,"value":24540},"independently scrutinized results",{"type":31,"value":24542}," that NV-center systems do not yet have.",{"type":21,"tag":22,"props":24544,"children":24545},{},[24546,24548,24552,24553,24557],{"type":31,"value":24547},"What room temperature does buy, if the claims hold, is dramatically simpler infrastructure. No cryostat means no multi-week cooldown cycle, no liquid helium supply chain, and a system that fits in a standard rack instead of a dedicated lab. For applications like industrial optimization at a manufacturing site, that operational simplicity sometimes matters more than an extra order of magnitude of fidelity. Our ",{"type":21,"tag":26,"props":24549,"children":24550},{"href":1106},[24551],{"type":31,"value":16093},{"type":31,"value":3628},{"type":21,"tag":26,"props":24554,"children":24555},{"href":21948},[24556],{"type":31,"value":22522},{"type":31,"value":24558}," track how each modality trades those priorities differently.",{"type":21,"tag":22,"props":24560,"children":24561},{},[24562],{"type":31,"value":24563},"The honest read on SAXON Q today: a real, shipping product from a team with a genuine research background in the underlying physics, with commercial claims that have not yet been checked by anyone outside the company. That is a normal place for a new hardware vendor to be. It is not yet evidence that diamond NV centers compete with the platforms that have already survived a decade of outside scrutiny.",{"title":7,"searchDepth":167,"depth":167,"links":24565},[24566,24567,24568,24569],{"id":24456,"depth":167,"text":24459},{"id":24481,"depth":167,"text":24484},{"id":24504,"depth":167,"text":24507},{"id":24527,"depth":167,"text":24530},"content:blog:saxon-q-room-temperature-diamond-quantum-computer.md","blog\u002Fsaxon-q-room-temperature-diamond-quantum-computer.md","blog\u002Fsaxon-q-room-temperature-diamond-quantum-computer",{"_path":22757,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":24574,"description":24575,"date":21818,"author":11,"tags":24576,"readingTime":233,"body":24577,"_type":1193,"_id":24659,"_source":1195,"_file":24660,"_stem":24661,"_extension":1198},"Warwick's New Chip Concept Aims to Wire Together a Million Qubits","Warwick and NRC Canada proposed Quantum Phononic Links, a way to carry quantum information across an entire chip using engineered vibrations instead of only connecting neighboring qubits.",[1213,3409,15],{"type":18,"children":24578,"toc":24654},[24579,24584,24590,24595,24614,24620,24632,24637,24643],{"type":21,"tag":22,"props":24580,"children":24581},{},[24582],{"type":31,"value":24583},"Today's leading quantum chips mostly connect a qubit to its immediate neighbors and nothing else. A useful large-scale quantum computer needs coordination across millions of qubits spread over an entire chip, not only clusters sitting subsequent to each other. Researchers at the University of Warwick and NRC Canada published a proposed answer to that gap on July 29, 2026, in APL Quantum: a concept they call Quantum Phononic Links.",{"type":21,"tag":41,"props":24585,"children":24587},{"id":24586},"what-a-phononic-link-is",[24588],{"type":31,"value":24589},"What a phononic link is",{"type":21,"tag":22,"props":24591,"children":24592},{},[24593],{"type":31,"value":24594},"The idea uses phonons, sound-like vibrations traveling through a solid material, to carry quantum information between qubits that sit far apart on the same chip. The material behind it, compressively strained germanium on silicon, was developed at Warwick using advanced epitaxial growth techniques. Engineered correctly, the vibrations carry information whether the qubits involved sit side by side or are separated across a full semiconductor wafer up to 300 millimeters across.",{"type":21,"tag":22,"props":24596,"children":24597},{},[24598,24600,24605,24607,24612],{"type":31,"value":24599},"That distance matters. Nearest-neighbor-only connectivity is exactly the constraint that shapes which ",{"type":21,"tag":26,"props":24601,"children":24602},{"href":15841},[24603],{"type":31,"value":24604},"error-correcting codes",{"type":31,"value":24606}," a chip even attempts. Our ",{"type":21,"tag":26,"props":24608,"children":24609},{"href":3586},[24610],{"type":31,"value":24611},"companion piece on Quantinuum's Helios",{"type":31,"value":24613}," covers why trapped-ion hardware's all-to-all connectivity opens up error-correction codes that a nearest-neighbor superconducting chip cannot application efficiently. A phononic link aimed at chip-scale, non-local connectivity is targeting the same structural limitation from the silicon side.",{"type":21,"tag":41,"props":24615,"children":24617},{"id":24616},"read-the-maturity-level-accurately",[24618],{"type":31,"value":24619},"Read the maturity level accurately",{"type":21,"tag":22,"props":24621,"children":24622},{},[24623,24625,24630],{"type":31,"value":24624},"This is a concept and materials result, not an operating multi-qubit device. The paper proposes a mechanism and demonstrates the underlying material properties. It does not yet show a working chip moving quantum information between distant qubits using this method. That puts it in a different category of evidence than ",{"type":21,"tag":26,"props":24626,"children":24627},{"href":22684},[24628],{"type":31,"value":24629},"HRL's self-operating silicon processor",{"type":31,"value":24631},", published the same week, which is a working 18-qubit device with a control chip already running inside its cryostat.",{"type":21,"tag":22,"props":24633,"children":24634},{},[24635],{"type":31,"value":24636},"Both results matter, and they matter for different reasons. HRL solved a real engineering problem for a small, existing device. Warwick proposed a mechanism aimed at a target two or three orders of magnitude larger, with the harder work of building and testing an actual chip still ahead of it. Neither is more important than the other. They sit at different points on the path from proposal to product, and coverage that treats them as equally proven misses that distinction.",{"type":21,"tag":41,"props":24638,"children":24640},{"id":24639},"why-the-target-size-is-the-real-headline",[24641],{"type":31,"value":24642},"Why the target size is the real headline",{"type":21,"tag":22,"props":24644,"children":24645},{},[24646,24648,24652],{"type":31,"value":24647},"A million qubits is well beyond any current device, superconducting, trapped-ion, or silicon. Getting there needs progress on several fronts at once: qubit quality, error correction overhead, control electronics, and exactly the qubit-to-qubit communication issue this proposal addresses. No single result solves all of it. What is worth tracking is whether Warwick's group, or others building on the same cs-GoS material, demonstrates the mechanism working on an actual multi-qubit chip. That demonstration, not the concept paper, will be the point where this outcome earns a place next to HRL's on the list of things that shipped. See our ",{"type":21,"tag":26,"props":24649,"children":24650},{"href":1106},[24651],{"type":31,"value":16093},{"type":31,"value":24653}," for how silicon-based approaches compare to the rest of the field.",{"title":7,"searchDepth":167,"depth":167,"links":24655},[24656,24657,24658],{"id":24586,"depth":167,"text":24589},{"id":24616,"depth":167,"text":24619},{"id":24639,"depth":167,"text":24642},"content:blog:warwick-quantum-phononic-links.md","blog\u002Fwarwick-quantum-phononic-links.md","blog\u002Fwarwick-quantum-phononic-links",{"_path":24663,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":24664,"description":24665,"date":21818,"author":11,"tags":24666,"readingTime":272,"body":24667,"_type":1193,"_id":24767,"_source":1195,"_file":24768,"_stem":24769,"_extension":1198},"\u002Fblog\u002Fzuriq-2d-trapped-ion-seed-funding","ZuriQ Wants to Fix Trapped-Ion Scaling by Going 2D Instead of 1D","ZuriQ, an ETH Zurich spinout, raised $25.5 million to scale a two-dimensional trapped-ion architecture built on Penning micro-traps, a departure from the linear ion chains IonQ and Quantinuum use. Here is what the nine-ion demonstrator shows.",[1213,3409,16328],{"type":18,"children":24668,"toc":24762},[24669,24689,24700,24706,24718,24723,24729,24734,24739,24745,24750],{"type":21,"tag":22,"props":24670,"children":24671},{},[24672,24674,24680,24681,24687],{"type":31,"value":24673},"On July 28, 2026, ZuriQ announced a $25.5 million seed round to scale a trapped-ion architecture that departs from how every other trapped-ion company builds its qubits, according to ",{"type":21,"tag":26,"props":24675,"children":24678},{"href":24676,"rel":24677},"https:\u002F\u002Fthequantuminsider.com\u002F2026\u002F07\u002F28\u002Fzuriq-raises-25-5-million-2d-trapped-ion-quantum-processors\u002F",[7136],[24679],{"type":31,"value":22567},{"type":31,"value":3628},{"type":21,"tag":26,"props":24682,"children":24685},{"href":24683,"rel":24684},"https:\u002F\u002Fsiliconangle.com\u002F2026\u002F07\u002F28\u002Fquantum-computing-startup-zuriq-gets-25-5m-scale-2d-trapped-ion-processor-design\u002F",[7136],[24686],{"type":31,"value":22986},{"type":31,"value":24688},". The round was led by Quantonation, with Forward.one, Extantia, and Firgun Ventures joining alongside existing investors, following a $4.2 million pre-seed round in 2025.",{"type":21,"tag":22,"props":24690,"children":24691},{},[24692,24694,24698],{"type":31,"value":24693},"ZuriQ is a spinout from ETH Zurich, led by CEO Pavel Hrmo, who spent more than a decade in trapped-ion research before founding the company. Its pitch is narrow and specific: the standard way of building a ",{"type":21,"tag":26,"props":24695,"children":24696},{"href":1106},[24697],{"type":31,"value":18148},{"type":31,"value":24699}," quantum computer, a linear chain of ions connected through junctions, runs into a scaling wall that a two-dimensional layout avoids.",{"type":21,"tag":41,"props":24701,"children":24703},{"id":24702},"why-linear-chains-are-the-default-and-why-they-cap-out",[24704],{"type":31,"value":24705},"Why linear chains are the default and why they cap out",{"type":21,"tag":22,"props":24707,"children":24708},{},[24709,24711,24716],{"type":31,"value":24710},"IonQ and Quantinuum, ",{"type":21,"tag":26,"props":24712,"children":24713},{"href":3725},[24714],{"type":31,"value":24715},"the two companies furthest along commercially",{"type":31,"value":24717}," with trapped ions, both build on one-dimensional ion chains. Ions sit in a line inside a trap, and moving ions between varied zones of the chip requires junctions, physical structures where chains merge and split. Junctions work, but every one adds engineering complexity, and a chip built from linear segments scales roughly with how many segments you wire together, not with the raw area of the chip.",{"type":21,"tag":22,"props":24719,"children":24720},{},[24721],{"type":31,"value":24722},"ZuriQ's approach uses Penning micro-traps, which confine ions with static magnetic fields instead of the oscillating electric fields used in standard linear traps. According to the company, this lets ions move freely across two dimensions rather than being confined to a single line, so qubit density grows with the area of the chip rather than the number of chained segments. That is a real architectural difference, not a rebranding of the same idea, and it is the kind of claim worth watching for independent confirmation as the company scales past its current demonstrator.",{"type":21,"tag":41,"props":24724,"children":24726},{"id":24725},"what-has-been-built-so-far",[24727],{"type":31,"value":24728},"What has been built so far",{"type":21,"tag":22,"props":24730,"children":24731},{},[24732],{"type":31,"value":24733},"The concrete result behind the funding is a working 3-by-3 array of nine individually controlled ions, built in collaboration with ETH Zurich over 18 months and fabricated on Infineon's production lines. ZuriQ describes it as the largest two-dimensional trapped-ion array demonstrated to date, which is a claim about being first at a specific, small scale rather than a claim about being competitive with IonQ's or Quantinuum's qubit counts today.",{"type":21,"tag":22,"props":24735,"children":24736},{},[24737],{"type":31,"value":24738},"Nine ions is a long way from a useful quantum computer. What the demonstrator establishes is that the Penning-trap approach works in a real fabricated chip rather than only on paper, and that Infineon's existing manufacturing lines produce the hardware, which matters for whether the architecture eventually scales past a lab bench. Quantonation partner Nicolas Jurczak framed the round as evidence that real physics breakthroughs are still available in quantum hardware architecture, which is the kind of statement every early-stage investor makes about their own bet and is worth reading as exactly that.",{"type":21,"tag":41,"props":24740,"children":24742},{"id":24741},"a-seed-stage-claim-backed-by-a-working-chip",[24743],{"type":31,"value":24744},"A seed-stage claim, backed by a working chip",{"type":21,"tag":22,"props":24746,"children":24747},{},[24748],{"type":31,"value":24749},"ZuriQ is a seed-stage firm with a nine-qubit demonstrator, not a commercial system, and its scaling claims are projections rather than measured results at any meaningful qubit count. What makes the round worth tracking is the specificity behind it: a named physical mechanism (Penning micro-traps), a working fabricated device, and an industrial manufacturing partner, rather than a roadmap slide with no hardware behind it.",{"type":21,"tag":22,"props":24751,"children":24752},{},[24753,24755,24760],{"type":31,"value":24754},"If ZuriQ's 2D architecture scales the way it projects, it would address one of the structural bottlenecks in ",{"type":21,"tag":26,"props":24756,"children":24757},{"href":1137},[24758],{"type":31,"value":24759},"trapped-ion scaling",{"type":31,"value":24761}," that this site has covered before: connecting qubits without every additional connection point adding its own error budget. Whether it gets there is a multi-year question. For now, the honest summary is a well-funded, technically specific bet from a team with real trapped-ion research credentials, at a scale that proves the mechanism works and nothing more.",{"title":7,"searchDepth":167,"depth":167,"links":24763},[24764,24765,24766],{"id":24702,"depth":167,"text":24705},{"id":24725,"depth":167,"text":24728},{"id":24741,"depth":167,"text":24744},"content:blog:zuriq-2d-trapped-ion-seed-funding.md","blog\u002Fzuriq-2d-trapped-ion-seed-funding.md","blog\u002Fzuriq-2d-trapped-ion-seed-funding",{"_path":24771,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":24772,"description":24773,"date":24774,"author":11,"tags":24775,"readingTime":233,"body":24776,"_type":1193,"_id":24862,"_source":1195,"_file":24863,"_stem":24864,"_extension":1198},"\u002Fblog\u002Fey-on-site-quantum-computer-canada","EY Is Putting a Quantum Computer On-Site in Canada. Here's What's Missing From the Announcement","EY announced an on-site quantum computer in Canada as part of a $3 billion AI and frontier-tech investment, aimed at optimization, fraud detection, and data sovereignty for regulated clients. The release names no hardware vendor and no location.","2026-07-29",[3409,10549,1213],{"type":18,"children":24777,"toc":24855},[24778,24783,24789,24794,24800,24824,24830,24835,24841,24846,24850],{"type":21,"tag":22,"props":24779,"children":24780},{},[24781],{"type":31,"value":24782},"EY announced on July 29, 2026, that it is adding an on-site quantum computer as part of a global investment of more than $3 billion in AI and other frontier technologies, led by EY Canada. The stated goal is secure, in-house quantum application development for use cases including optimization, fraud detection, data protection, and large-scale risk management. Read past the topline number, though, and two important details are missing: which vendor's hardware EY is installing, and where in Canada it will sit.",{"type":21,"tag":41,"props":24784,"children":24786},{"id":24785},"the-actual-case-being-made-data-sovereignty-not-qubit-count",[24787],{"type":31,"value":24788},"The actual case being made: data sovereignty, not qubit count",{"type":21,"tag":22,"props":24790,"children":24791},{},[24792],{"type":31,"value":24793},"Unlike most hardware announcements this site covers, EY's isn't about a technical milestone at all. The argument is about control: hosting a quantum system in-house lets EY keep data location and governance in its own hands, which matters directly for corporate clients operating under strict regulatory regimes, particularly in finance and insurance, EY's core client base. That's a genuinely different pitch than a qubit count or an error rate. It's an argument about where compute happens and who controls the data around it, aimed at clients who need to demonstrate regulators exactly that.",{"type":21,"tag":41,"props":24795,"children":24797},{"id":24796},"what-ey-says-it-will-use-this-for",[24798],{"type":31,"value":24799},"What EY says it will use this for",{"type":21,"tag":22,"props":24801,"children":24802},{},[24803,24805,24809,24811,24816,24818,24822],{"type":31,"value":24804},"The named use cases, optimization, fraud detection, data protection, and large-scale risk management, all sit in the \"near-term, classically-competitive-but-worth-exploring\" bucket our ",{"type":21,"tag":26,"props":24806,"children":24807},{"href":16304},[24808],{"type":31,"value":16307},{"type":31,"value":24810}," tracks across the industry. None of them require fault-tolerant, error-corrected hardware to start experimenting with. That lines up with how ",{"type":21,"tag":26,"props":24812,"children":24813},{"href":16165},[24814],{"type":31,"value":24815},"Quantinuum and SoftBank's white paper",{"type":31,"value":24817},", covered separately, frames the same idea from a hardware vendor's side: real exploration work is possible before full fault tolerance arrives, provided the use case is chosen carefully. If you want a concrete sense of what \"optimization\" and \"risk management\" look like as a quantum use case rather than a buzzword, our ",{"type":21,"tag":26,"props":24819,"children":24820},{"href":16173},[24821],{"type":31,"value":23529},{"type":31,"value":24823}," builds one from real data, classical baseline included.",{"type":21,"tag":41,"props":24825,"children":24827},{"id":24826},"no-hardware-supplier-city-or-qubit-count-disclosed-yet",[24828],{"type":31,"value":24829},"No hardware supplier, city, or qubit count disclosed yet",{"type":21,"tag":22,"props":24831,"children":24832},{},[24833],{"type":31,"value":24834},"No hardware vendor is named. No specific city or facility is disclosed. No qubit count, modality, or timeline for when the system goes live is given. That's a meaningful gap for an announcement centered on a physical machine, closer to a capital allocation and strategic-positioning announcement than a hardware story. Most vendor announcements disclose a qubit count with no context for what it means. Here, it's the reverse: real dollar commitment, no hardware detail at all yet.",{"type":21,"tag":41,"props":24836,"children":24838},{"id":24837},"why-a-consulting-firm-buying-a-quantum-computer-is-still-worth-tracking",[24839],{"type":31,"value":24840},"Why a consulting firm buying a quantum computer is still worth tracking",{"type":21,"tag":22,"props":24842,"children":24843},{},[24844],{"type":31,"value":24845},"EY isn't a hardware or research company. Its business is advising other companies, which makes an internal, on-site quantum system a signal about anticipated client demand rather than a research investment. If EY expects enough regulated clients to need in-house-hosted quantum experimentation soon, that's a data point about market timing worth more attention than the machine itself. Whether that expectation is well-founded is a separate question this announcement doesn't answer.",{"type":21,"tag":41,"props":24847,"children":24848},{"id":3474},[24849],{"type":31,"value":3477},{"type":21,"tag":22,"props":24851,"children":24852},{},[24853],{"type":31,"value":24854},"The follow-up that would make this a complete story: which vendor EY selects, where the system is installed, and whether EY publishes any actual client results from it. Until those details surface, treat this as a funded intention, not yet a deployed capability.",{"title":7,"searchDepth":167,"depth":167,"links":24856},[24857,24858,24859,24860,24861],{"id":24785,"depth":167,"text":24788},{"id":24796,"depth":167,"text":24799},{"id":24826,"depth":167,"text":24829},{"id":24837,"depth":167,"text":24840},{"id":3474,"depth":167,"text":3477},"content:blog:ey-on-site-quantum-computer-canada.md","blog\u002Fey-on-site-quantum-computer-canada.md","blog\u002Fey-on-site-quantum-computer-canada",{"_path":16165,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":24866,"description":24867,"date":24868,"author":11,"tags":24869,"readingTime":272,"body":24870,"_type":1193,"_id":24956,"_source":1195,"_file":24957,"_stem":24958,"_extension":1198},"Quantinuum and SoftBank's White Paper Makes the Case for Quantum Value Before Fault Tolerance","Quantinuum and SoftBank published a joint white paper mapping quantum chemistry and graph analytics use cases to Quantinuum's hardware roadmap, arguing organizations don't need to wait for full fault tolerance to start getting value.","2026-07-22",[3409,10549,13],{"type":18,"children":24871,"toc":24949},[24872,24877,24883,24895,24901,24906,24912,24923,24929,24934,24938],{"type":21,"tag":22,"props":24873,"children":24874},{},[24875],{"type":31,"value":24876},"Quantinuum and SoftBank published a joint white paper on July 22, 2026, titled \"Quantum Computing Frontiers.\" Its central argument is that organizations do not need to wait for large-scale, fault-tolerant quantum computers to start finding real value, provided they map specific usage cases against a hardware roadmap rather than a generic timeline. That is a distinct, and more useful, claim than the usual \"quantum will transform your industry\" framing, because it names two concrete application areas SoftBank is already running on Quantinuum's systems and checks them against a stated hardware progression rather than a vague future.",{"type":21,"tag":41,"props":24878,"children":24880},{"id":24879},"the-two-use-cases-named",[24881],{"type":31,"value":24882},"The two use cases named",{"type":21,"tag":22,"props":24884,"children":24885},{},[24886,24888,24893],{"type":31,"value":24887},"The paper maps two areas SoftBank has been actively researching on Quantinuum hardware. The first is quantum chemistry for materials and energy research, the same general category covered in our piece on ",{"type":21,"tag":26,"props":24889,"children":24890},{"href":3537},[24891],{"type":31,"value":24892},"Quantinuum and BMW's multi-year partnership",{"type":31,"value":24894},", though this white paper is a business framework rather than a specific chemistry result. The second is large-scale graph analytics, with telecommunications fraud detection named as a specific target application, an area where SoftBank's own business gives it a direct commercial interest rather than a purely research one.",{"type":21,"tag":41,"props":24896,"children":24898},{"id":24897},"why-this-differs-from-the-bmw-partnership",[24899],{"type":31,"value":24900},"Why this differs from the BMW partnership",{"type":21,"tag":22,"props":24902,"children":24903},{},[24904],{"type":31,"value":24905},"BMW's collaboration with Quantinuum is a multi-year hardware access and chemistry research relationship running since 2021. This white paper is a different kind of document: a public framework for assessing when particular use cases become practical as hardware improves, explicitly pitched at helping other organizations decide how much quantum readiness to build now versus later. It also goes further afield, considering how quantum computing might integrate with AI and high-performance computing into shared data center infrastructure and future service models, a framing that treats quantum hardware as one component in a larger compute stack rather than a standalone system.",{"type":21,"tag":41,"props":24907,"children":24909},{"id":24908},"read-the-value-before-fault-tolerance-claim-against-the-encoding-numbers",[24910],{"type":31,"value":24911},"Read the \"value before fault tolerance\" claim against the encoding numbers",{"type":21,"tag":22,"props":24913,"children":24914},{},[24915,24917,24921],{"type":31,"value":24916},"\"Practical value before full fault tolerance\" is a real assertion worth taking seriously, and it lines up with how this site already covers Quantinuum's hardware: our piece on ",{"type":21,"tag":26,"props":24918,"children":24919},{"href":3586},[24920],{"type":31,"value":16565},{"type":31,"value":24922}," makes the case that the ratio between physical and logical qubits, not the raw logical qubit count, is what indicates real progress toward useful, error-corrected computation. A white paper arguing for near-term value is only as credible as the hardware roadmap underneath it, and that roadmap is the same one this site has already scrutinized rather than taken at face value.",{"type":21,"tag":41,"props":24924,"children":24926},{"id":24925},"co-published-by-a-vendor-and-its-customer-not-third-party-research",[24927],{"type":31,"value":24928},"Co-published by a vendor and its customer, not third-party research",{"type":21,"tag":22,"props":24930,"children":24931},{},[24932],{"type":31,"value":24933},"This document was co-published by the hardware vendor and a customer with a direct commercial stake in the outcome. That doesn't make its use-case mapping wrong, but the \"when this becomes practical\" timeline reflects Quantinuum's own roadmap projections, filtered through a customer motivated to make the near-term case. Readers evaluating whether to invest in quantum readiness now should treat the two named use cases (chemistry and graph analytics) as reasonable candidates to investigate, not as a guarantee that value arrives on the paper's schedule.",{"type":21,"tag":41,"props":24935,"children":24936},{"id":3474},[24937],{"type":31,"value":3477},{"type":21,"tag":22,"props":24939,"children":24940},{},[24941,24943,24947],{"type":31,"value":24942},"The paper's real test is whether SoftBank publishes actual results, cost comparisons, or fraud-detection outcomes from running these use cases on Quantinuum hardware, rather than only a forward-looking framework. Our ",{"type":21,"tag":26,"props":24944,"children":24945},{"href":16304},[24946],{"type":31,"value":16307},{"type":31,"value":24948}," tracks which quantum applications are production-ready, near-term, or still research-stage across the industry, and is a useful cross-check against any single vendor's roadmap claims.",{"title":7,"searchDepth":167,"depth":167,"links":24950},[24951,24952,24953,24954,24955],{"id":24879,"depth":167,"text":24882},{"id":24897,"depth":167,"text":24900},{"id":24908,"depth":167,"text":24911},{"id":24925,"depth":167,"text":24928},{"id":3474,"depth":167,"text":3477},"content:blog:quantinuum-softbank-white-paper-quantum-value.md","blog\u002Fquantinuum-softbank-white-paper-quantum-value.md","blog\u002Fquantinuum-softbank-white-paper-quantum-value",{"_path":24960,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":24961,"description":24962,"date":24963,"author":11,"tags":24964,"readingTime":272,"body":24965,"_type":1193,"_id":25058,"_source":1195,"_file":25059,"_stem":25060,"_extension":1198},"\u002Fblog\u002Fuchicago-topological-quantum-computing-waffle-circuit","A 'Waffle Grid' Superconducting Circuit Validates a Building Block for Topological Qubits","Researchers at the University of Chicago, Purdue, Boston University, and AppliedTQC built a 3x3 crossbar of Josephson junctions that reproduces a gauge symmetry theorists say topological quantum computing needs, a validated building block, not a working qubit.","2026-07-21",[1213,3409,15],{"type":18,"children":24966,"toc":25051},[24967,24972,24978,24983,24989,24994,25000,25005,25011,25042,25046],{"type":21,"tag":22,"props":24968,"children":24969},{},[24970],{"type":31,"value":24971},"A team from the University of Chicago, Purdue University, Boston University, and the startup AppliedTQC published a superconducting circuit design on July 21, 2026, that reproduces a Z3 combinatorial gauge symmetry, a property theorists consider essential for building topologically protected qubits. Read that sentence carefully. It's a validated building block, not a topological qubit, and the researchers themselves say so.",{"type":21,"tag":41,"props":24973,"children":24975},{"id":24974},"what-they-built",[24976],{"type":31,"value":24977},"What they built",{"type":21,"tag":22,"props":24979,"children":24980},{},[24981],{"type":31,"value":24982},"The device is a 3x3 crossbar array of Josephson junctions, nine junctions total, formed by three horizontal and three vertical superconducting wires crossing on a silicon substrate. The team calls it a \"waffle grid,\" and it deliberately breaks from the planar circuit layouts IBM and Google use in their superconducting processors. Under precisely tuned magnetic fields, the circuit exhibited six equivalent low-energy states, matching what theory predicted for this symmetry. The team validated the measurements using neural-network variational Monte Carlo simulations, and the device is currently operating in the semiclassical regime, meaning quantum tunneling between those states is present but weak.",{"type":21,"tag":41,"props":24984,"children":24986},{"id":24985},"why-gauge-symmetry-matters-for-topological-qubits",[24987],{"type":31,"value":24988},"Why gauge symmetry matters for topological qubits",{"type":21,"tag":22,"props":24990,"children":24991},{},[24992],{"type":31,"value":24993},"Topological qubits store information in the global, non-local properties of a system rather than in the state of any single physical object, which is the theoretical appeal: information encoded this way is supposed to be inherently resistant to the local noise that plagues conventional qubits. Microsoft's long-running, still-contested pursuit of Majorana-based topological qubits is the best-known attempt at this approach. This result is a different route to the same destination: rather than searching for exotic quasiparticles in a material, the UChicago-led team engineered the required symmetry directly into a superconducting circuit built from ordinary Josephson junctions.",{"type":21,"tag":41,"props":24995,"children":24997},{"id":24996},"what-the-researchers-themselves-say-is-next",[24998],{"type":31,"value":24999},"What the researchers themselves say is next",{"type":21,"tag":22,"props":25001,"children":25002},{},[25003],{"type":31,"value":25004},"The team frames this explicitly as validation of a foundational building block, not a functioning topological qubit. Their own stated next step is to push the device deeper into the quantum regime, where tunneling dominates over classical thermal noise, and then tile several of these waffle units into a honeycomb lattice to produce genuinely topologically ordered states. Both of those are separate, harder engineering problems that haven't been demonstrated yet.",{"type":21,"tag":41,"props":25006,"children":25008},{"id":25007},"how-to-read-this-next-to-other-qubit-modality-news",[25009],{"type":31,"value":25010},"How to read this next to other qubit modality news",{"type":21,"tag":22,"props":25012,"children":25013},{},[25014,25016,25021,25022,25027,25029,25034,25036,25040],{"type":31,"value":25015},"This site tracks a lot of \"new qubit modality\" announcements: ",{"type":21,"tag":26,"props":25017,"children":25018},{"href":21581},[25019],{"type":31,"value":25020},"SAXON Q's room-temperature diamond qubits",{"type":31,"value":258},{"type":21,"tag":26,"props":25023,"children":25024},{"href":22684},[25025],{"type":31,"value":25026},"HRL's self-correcting silicon spin processor",{"type":31,"value":25028},", and ",{"type":21,"tag":26,"props":25030,"children":25031},{"href":22757},[25032],{"type":31,"value":25033},"Warwick's phononic interconnect concept",{"type":31,"value":25035}," all landed in the same category: a real, checkable physics result that validates one piece of a much larger, unfinished architecture. None of these results, this one included, is a working error-corrected qubit available to buy or rent. Our ",{"type":21,"tag":26,"props":25037,"children":25038},{"href":19079},[25039],{"type":31,"value":21758},{"type":31,"value":25041}," covers where each approach stands relative to the superconducting and trapped-ion platforms that already have commercial systems in the field.",{"type":21,"tag":41,"props":25043,"children":25044},{"id":3474},[25045],{"type":31,"value":3477},{"type":21,"tag":22,"props":25047,"children":25048},{},[25049],{"type":31,"value":25050},"The two milestones the researchers named themselves are the ones to track: operation deep in the quantum regime, and a working honeycomb lattice of multiple waffle units showing topological order rather than a single cell's symmetry. Until either lands, this is a genuine and welcome physics result, and nothing more than that yet.",{"title":7,"searchDepth":167,"depth":167,"links":25052},[25053,25054,25055,25056,25057],{"id":24974,"depth":167,"text":24977},{"id":24985,"depth":167,"text":24988},{"id":24996,"depth":167,"text":24999},{"id":25007,"depth":167,"text":25010},{"id":3474,"depth":167,"text":3477},"content:blog:uchicago-topological-quantum-computing-waffle-circuit.md","blog\u002Fuchicago-topological-quantum-computing-waffle-circuit.md","blog\u002Fuchicago-topological-quantum-computing-waffle-circuit",{"_path":25062,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":25063,"description":25064,"date":25065,"author":11,"tags":25066,"readingTime":308,"body":25067,"_type":1193,"_id":25920,"_source":1195,"_file":25921,"_stem":25922,"_extension":1198},"\u002Fzh\u002Fblog\u002Fquantum-benchmarking-eo-14413","新版量子行政命令揭示了该领域真正的难题","把 EO 14413 当作技术文件而非政治文件来读，它就变成了一份坦率的清单，列出量子计算至今尚未解决的问题——首当其冲的是：没有人能可靠地衡量一台量子计算机到底有多好。","2026-07-18",[3409,1213,13895],{"type":18,"children":25068,"toc":25911},[25069,25081,25086,25091,25096,25101,25106,25111,25162,25167,25172,25637,25661,25666,25671,25676,25697,25709,25715,25727,25732,25758,25763,25768,25773,25778,25796,25801,25806,25811,25830,25835,25847,25852,25857,25862,25890,25895,25907],{"type":21,"tag":22,"props":25070,"children":25071},{},[25072,25074,25079],{"type":31,"value":25073},"2026 年 6 月 22 日，Executive Order 14413——",{"type":21,"tag":12769,"props":25075,"children":25076},{},[25077],{"type":31,"value":25078},"Ushering in the Next Frontier of Quantum Innovation",{"type":31,"value":25080},"（开启量子创新的下一个前沿）——正式签署。相关报道几乎全都聚焦于政治层面。",{"type":21,"tag":22,"props":25082,"children":25083},{},[25084],{"type":31,"value":25085},"这很可惜，因为更有意思的其实是技术层面的解读。这类政策文件在起草时大量吸收了运营量子项目的一线人员的意见，而他们提出的诉求，相当坦率地勾勒出这个领域至今仍做不到的事情。这样读下来，EO 14413 与其说是一份公告，不如说是一份问题清单。",{"type":21,"tag":22,"props":25087,"children":25088},{},[25089],{"type":31,"value":25090},"以下是其中最值得注意的几点。",{"type":21,"tag":41,"props":25092,"children":25094},{"id":25093},"没有人能可靠地衡量一台量子计算机有多好",[25095],{"type":31,"value":25093},{"type":21,"tag":22,"props":25097,"children":25098},{},[25099],{"type":31,"value":25100},"这份命令中最不动声色却最引人注目的一句话，是要求 Department of Energy 在 180 天内建立\"一个国家级中心，以开发准确评估量子计算系统性能所需的工具与能力\"。",{"type":21,"tag":22,"props":25102,"children":25103},{},[25104],{"type":31,"value":25105},"细想一下。在 Feynman 提出量子计算机约四十五年后、在第一次量子霸权宣称的七年后，一个政府之所以要专门设立一家机构，是因为我们没有一种值得信赖的方式来回答*\"这台量子计算机到底好不好？\"*",{"type":21,"tag":22,"props":25107,"children":25108},{},[25109],{"type":31,"value":25110},"这不是官僚式的场面话。它是真实存在的问题，任何试图比较两台 QPU 的人都撞上过。问题在于每家厂商报告的数字都不一样：",{"type":21,"tag":1118,"props":25112,"children":25113},{},[25114,25124,25137,25147,25157],{"type":21,"tag":71,"props":25115,"children":25116},{},[25117,25122],{"type":21,"tag":16815,"props":25118,"children":25119},{},[25120],{"type":31,"value":25121},"量子比特数量",{"type":31,"value":25123},"单独来看几乎没有意义。对于真实任务，一百个糟糕的量子比特可能还不如二十个好的。",{"type":21,"tag":71,"props":25125,"children":25126},{},[25127,25135],{"type":21,"tag":16815,"props":25128,"children":25129},{},[25130],{"type":21,"tag":26,"props":25131,"children":25133},{"href":25132},"\u002Fglossary\u002Fquantum-volume",[25134],{"type":31,"value":13906},{"type":31,"value":25136}," 把量子比特数量、连通性和错误率打包成一个数字——但它会饱和，而且对于设备如何处理你真正关心的那些特定电路，它几乎说明不了什么。",{"type":21,"tag":71,"props":25138,"children":25139},{},[25140,25145],{"type":21,"tag":16815,"props":25141,"children":25142},{},[25143],{"type":31,"value":25144},"门保真度",{"type":31,"value":25146},"通常是针对孤立的单量子比特门和双量子比特门给出的，这系统性地美化了芯片。当多个门并行运行时，误差的累积方式截然不同，而串扰根本不会体现在那个头条数字里。",{"type":21,"tag":71,"props":25148,"children":25149},{},[25150,25155],{"type":21,"tag":16815,"props":25151,"children":25152},{},[25153],{"type":31,"value":25154},"CLOPS",{"type":31,"value":25156}," 及类似的吞吐量指标衡量的是速度，而非精度——一台快速返回噪声的机器毫无用处。",{"type":21,"tag":71,"props":25158,"children":25159},{},[25160],{"type":31,"value":25161},"**\"算法量子比特\"**以及其他由厂商自定义的指标无法跨厂商比较，而这往往正是它们的用意所在。",{"type":21,"tag":22,"props":25163,"children":25164},{},[25165],{"type":31,"value":25166},"该命令还要求建立一套跨机构的信息共享机制，以\"提升政府评估商业量子计算能力的水平\"——这是一种委婉的说法，意思是厂商的营销宣称目前很难被独立核实。",{"type":21,"tag":22,"props":25168,"children":25169},{},[25170],{"type":31,"value":25171},"如果你要自己评估硬件，实用的经验是：不要再相信任何单一数字，而要针对你自己的工作负载做基准测试。你可以直接拉取真实的设备属性，而不必依赖新闻稿：",{"type":21,"tag":128,"props":25173,"children":25175},{"className":130,"code":25174,"language":132,"meta":7,"style":7},"from qiskit_ibm_runtime import QiskitRuntimeService\n\nservice = QiskitRuntimeService()\nbackend = service.least_busy(operational=True, simulator=False)\n\nprint(f\"Backend:  {backend.name}\")\nprint(f\"Qubits:   {backend.num_qubits}\")\nprint(f\"Basis:    {backend.basis_gates}\")\n\n# Per-qubit error rates vary enormously across a single chip\nprops = backend.properties()\nerrors = [(q, props.readout_error(q)) for q in range(backend.num_qubits)]\nworst = max(errors, key=lambda x: x[1])\nbest = min(errors, key=lambda x: x[1])\nprint(f\"Readout error — best qubit: {best[1]:.4f}, worst: {worst[1]:.4f}\")\n",[25176],{"type":21,"tag":103,"props":25177,"children":25178},{"__ignoreMap":7},[25179,25198,25205,25221,25268,25275,25316,25357,25398,25405,25413,25430,25468,25512,25552],{"type":21,"tag":138,"props":25180,"children":25181},{"class":140,"line":141},[25182,25186,25190,25194],{"type":21,"tag":138,"props":25183,"children":25184},{"style":145},[25185],{"type":31,"value":148},{"type":21,"tag":138,"props":25187,"children":25188},{"style":151},[25189],{"type":31,"value":9718},{"type":21,"tag":138,"props":25191,"children":25192},{"style":145},[25193],{"type":31,"value":159},{"type":21,"tag":138,"props":25195,"children":25196},{"style":151},[25197],{"type":31,"value":9727},{"type":21,"tag":138,"props":25199,"children":25200},{"class":140,"line":167},[25201],{"type":21,"tag":138,"props":25202,"children":25203},{"emptyLinePlaceholder":193},[25204],{"type":31,"value":196},{"type":21,"tag":138,"props":25206,"children":25207},{"class":140,"line":189},[25208,25212,25216],{"type":21,"tag":138,"props":25209,"children":25210},{"style":151},[25211],{"type":31,"value":4650},{"type":21,"tag":138,"props":25213,"children":25214},{"style":145},[25215],{"type":31,"value":210},{"type":21,"tag":138,"props":25217,"children":25218},{"style":151},[25219],{"type":31,"value":25220}," QiskitRuntimeService()\n",{"type":21,"tag":138,"props":25222,"children":25223},{"class":140,"line":199},[25224,25228,25232,25236,25240,25244,25248,25252,25256,25260,25264],{"type":21,"tag":138,"props":25225,"children":25226},{"style":151},[25227],{"type":31,"value":6456},{"type":21,"tag":138,"props":25229,"children":25230},{"style":145},[25231],{"type":31,"value":210},{"type":21,"tag":138,"props":25233,"children":25234},{"style":151},[25235],{"type":31,"value":9802},{"type":21,"tag":138,"props":25237,"children":25238},{"style":929},[25239],{"type":31,"value":9807},{"type":21,"tag":138,"props":25241,"children":25242},{"style":145},[25243],{"type":31,"value":210},{"type":21,"tag":138,"props":25245,"children":25246},{"style":213},[25247],{"type":31,"value":8677},{"type":21,"tag":138,"props":25249,"children":25250},{"style":151},[25251],{"type":31,"value":258},{"type":21,"tag":138,"props":25253,"children":25254},{"style":929},[25255],{"type":31,"value":9824},{"type":21,"tag":138,"props":25257,"children":25258},{"style":145},[25259],{"type":31,"value":210},{"type":21,"tag":138,"props":25261,"children":25262},{"style":213},[25263],{"type":31,"value":9833},{"type":21,"tag":138,"props":25265,"children":25266},{"style":151},[25267],{"type":31,"value":269},{"type":21,"tag":138,"props":25269,"children":25270},{"class":140,"line":225},[25271],{"type":21,"tag":138,"props":25272,"children":25273},{"emptyLinePlaceholder":193},[25274],{"type":31,"value":196},{"type":21,"tag":138,"props":25276,"children":25277},{"class":140,"line":233},[25278,25282,25286,25290,25295,25299,25304,25308,25312],{"type":21,"tag":138,"props":25279,"children":25280},{"style":213},[25281],{"type":31,"value":954},{"type":21,"tag":138,"props":25283,"children":25284},{"style":151},[25285],{"type":31,"value":959},{"type":21,"tag":138,"props":25287,"children":25288},{"style":145},[25289],{"type":31,"value":7537},{"type":21,"tag":138,"props":25291,"children":25292},{"style":261},[25293],{"type":31,"value":25294},"\"Backend:  ",{"type":21,"tag":138,"props":25296,"children":25297},{"style":213},[25298],{"type":31,"value":7547},{"type":21,"tag":138,"props":25300,"children":25301},{"style":151},[25302],{"type":31,"value":25303},"backend.name",{"type":21,"tag":138,"props":25305,"children":25306},{"style":213},[25307],{"type":31,"value":7556},{"type":21,"tag":138,"props":25309,"children":25310},{"style":261},[25311],{"type":31,"value":15383},{"type":21,"tag":138,"props":25313,"children":25314},{"style":151},[25315],{"type":31,"value":269},{"type":21,"tag":138,"props":25317,"children":25318},{"class":140,"line":272},[25319,25323,25327,25331,25336,25340,25345,25349,25353],{"type":21,"tag":138,"props":25320,"children":25321},{"style":213},[25322],{"type":31,"value":954},{"type":21,"tag":138,"props":25324,"children":25325},{"style":151},[25326],{"type":31,"value":959},{"type":21,"tag":138,"props":25328,"children":25329},{"style":145},[25330],{"type":31,"value":7537},{"type":21,"tag":138,"props":25332,"children":25333},{"style":261},[25334],{"type":31,"value":25335},"\"Qubits:   ",{"type":21,"tag":138,"props":25337,"children":25338},{"style":213},[25339],{"type":31,"value":7547},{"type":21,"tag":138,"props":25341,"children":25342},{"style":151},[25343],{"type":31,"value":25344},"backend.num_qubits",{"type":21,"tag":138,"props":25346,"children":25347},{"style":213},[25348],{"type":31,"value":7556},{"type":21,"tag":138,"props":25350,"children":25351},{"style":261},[25352],{"type":31,"value":15383},{"type":21,"tag":138,"props":25354,"children":25355},{"style":151},[25356],{"type":31,"value":269},{"type":21,"tag":138,"props":25358,"children":25359},{"class":140,"line":308},[25360,25364,25368,25372,25377,25381,25386,25390,25394],{"type":21,"tag":138,"props":25361,"children":25362},{"style":213},[25363],{"type":31,"value":954},{"type":21,"tag":138,"props":25365,"children":25366},{"style":151},[25367],{"type":31,"value":959},{"type":21,"tag":138,"props":25369,"children":25370},{"style":145},[25371],{"type":31,"value":7537},{"type":21,"tag":138,"props":25373,"children":25374},{"style":261},[25375],{"type":31,"value":25376},"\"Basis:    ",{"type":21,"tag":138,"props":25378,"children":25379},{"style":213},[25380],{"type":31,"value":7547},{"type":21,"tag":138,"props":25382,"children":25383},{"style":151},[25384],{"type":31,"value":25385},"backend.basis_gates",{"type":21,"tag":138,"props":25387,"children":25388},{"style":213},[25389],{"type":31,"value":7556},{"type":21,"tag":138,"props":25391,"children":25392},{"style":261},[25393],{"type":31,"value":15383},{"type":21,"tag":138,"props":25395,"children":25396},{"style":151},[25397],{"type":31,"value":269},{"type":21,"tag":138,"props":25399,"children":25400},{"class":140,"line":16},[25401],{"type":21,"tag":138,"props":25402,"children":25403},{"emptyLinePlaceholder":193},[25404],{"type":31,"value":196},{"type":21,"tag":138,"props":25406,"children":25407},{"class":140,"line":360},[25408],{"type":21,"tag":138,"props":25409,"children":25410},{"style":219},[25411],{"type":31,"value":25412},"# Per-qubit error rates vary enormously across a single chip\n",{"type":21,"tag":138,"props":25414,"children":25415},{"class":140,"line":368},[25416,25421,25425],{"type":21,"tag":138,"props":25417,"children":25418},{"style":151},[25419],{"type":31,"value":25420},"props ",{"type":21,"tag":138,"props":25422,"children":25423},{"style":145},[25424],{"type":31,"value":210},{"type":21,"tag":138,"props":25426,"children":25427},{"style":151},[25428],{"type":31,"value":25429}," backend.properties()\n",{"type":21,"tag":138,"props":25431,"children":25432},{"class":140,"line":377},[25433,25438,25442,25447,25451,25455,25459,25463],{"type":21,"tag":138,"props":25434,"children":25435},{"style":151},[25436],{"type":31,"value":25437},"errors ",{"type":21,"tag":138,"props":25439,"children":25440},{"style":145},[25441],{"type":31,"value":210},{"type":21,"tag":138,"props":25443,"children":25444},{"style":151},[25445],{"type":31,"value":25446}," [(q, props.readout_error(q)) ",{"type":21,"tag":138,"props":25448,"children":25449},{"style":145},[25450],{"type":31,"value":1492},{"type":21,"tag":138,"props":25452,"children":25453},{"style":151},[25454],{"type":31,"value":20323},{"type":21,"tag":138,"props":25456,"children":25457},{"style":145},[25458],{"type":31,"value":1502},{"type":21,"tag":138,"props":25460,"children":25461},{"style":213},[25462],{"type":31,"value":7430},{"type":21,"tag":138,"props":25464,"children":25465},{"style":151},[25466],{"type":31,"value":25467},"(backend.num_qubits)]\n",{"type":21,"tag":138,"props":25469,"children":25470},{"class":140,"line":386},[25471,25476,25480,25485,25490,25494,25499,25504,25508],{"type":21,"tag":138,"props":25472,"children":25473},{"style":151},[25474],{"type":31,"value":25475},"worst ",{"type":21,"tag":138,"props":25477,"children":25478},{"style":145},[25479],{"type":31,"value":210},{"type":21,"tag":138,"props":25481,"children":25482},{"style":213},[25483],{"type":31,"value":25484}," max",{"type":21,"tag":138,"props":25486,"children":25487},{"style":151},[25488],{"type":31,"value":25489},"(errors, ",{"type":21,"tag":138,"props":25491,"children":25492},{"style":929},[25493],{"type":31,"value":4845},{"type":21,"tag":138,"props":25495,"children":25496},{"style":145},[25497],{"type":31,"value":25498},"=lambda",{"type":21,"tag":138,"props":25500,"children":25501},{"style":151},[25502],{"type":31,"value":25503}," x: x[",{"type":21,"tag":138,"props":25505,"children":25506},{"style":213},[25507],{"type":31,"value":327},{"type":21,"tag":138,"props":25509,"children":25510},{"style":151},[25511],{"type":31,"value":598},{"type":21,"tag":138,"props":25513,"children":25514},{"class":140,"line":395},[25515,25519,25523,25528,25532,25536,25540,25544,25548],{"type":21,"tag":138,"props":25516,"children":25517},{"style":151},[25518],{"type":31,"value":1755},{"type":21,"tag":138,"props":25520,"children":25521},{"style":145},[25522],{"type":31,"value":210},{"type":21,"tag":138,"props":25524,"children":25525},{"style":213},[25526],{"type":31,"value":25527}," min",{"type":21,"tag":138,"props":25529,"children":25530},{"style":151},[25531],{"type":31,"value":25489},{"type":21,"tag":138,"props":25533,"children":25534},{"style":929},[25535],{"type":31,"value":4845},{"type":21,"tag":138,"props":25537,"children":25538},{"style":145},[25539],{"type":31,"value":25498},{"type":21,"tag":138,"props":25541,"children":25542},{"style":151},[25543],{"type":31,"value":25503},{"type":21,"tag":138,"props":25545,"children":25546},{"style":213},[25547],{"type":31,"value":327},{"type":21,"tag":138,"props":25549,"children":25550},{"style":151},[25551],{"type":31,"value":598},{"type":21,"tag":138,"props":25553,"children":25554},{"class":140,"line":413},[25555,25559,25563,25567,25572,25576,25581,25585,25590,25595,25599,25604,25608,25613,25617,25621,25625,25629,25633],{"type":21,"tag":138,"props":25556,"children":25557},{"style":213},[25558],{"type":31,"value":954},{"type":21,"tag":138,"props":25560,"children":25561},{"style":151},[25562],{"type":31,"value":959},{"type":21,"tag":138,"props":25564,"children":25565},{"style":145},[25566],{"type":31,"value":7537},{"type":21,"tag":138,"props":25568,"children":25569},{"style":261},[25570],{"type":31,"value":25571},"\"Readout error — best qubit: ",{"type":21,"tag":138,"props":25573,"children":25574},{"style":213},[25575],{"type":31,"value":7547},{"type":21,"tag":138,"props":25577,"children":25578},{"style":151},[25579],{"type":31,"value":25580},"best[",{"type":21,"tag":138,"props":25582,"children":25583},{"style":213},[25584],{"type":31,"value":327},{"type":21,"tag":138,"props":25586,"children":25587},{"style":151},[25588],{"type":31,"value":25589},"]",{"type":21,"tag":138,"props":25591,"children":25592},{"style":145},[25593],{"type":31,"value":25594},":.4f",{"type":21,"tag":138,"props":25596,"children":25597},{"style":213},[25598],{"type":31,"value":7556},{"type":21,"tag":138,"props":25600,"children":25601},{"style":261},[25602],{"type":31,"value":25603},", worst: ",{"type":21,"tag":138,"props":25605,"children":25606},{"style":213},[25607],{"type":31,"value":7547},{"type":21,"tag":138,"props":25609,"children":25610},{"style":151},[25611],{"type":31,"value":25612},"worst[",{"type":21,"tag":138,"props":25614,"children":25615},{"style":213},[25616],{"type":31,"value":327},{"type":21,"tag":138,"props":25618,"children":25619},{"style":151},[25620],{"type":31,"value":25589},{"type":21,"tag":138,"props":25622,"children":25623},{"style":145},[25624],{"type":31,"value":25594},{"type":21,"tag":138,"props":25626,"children":25627},{"style":213},[25628],{"type":31,"value":7556},{"type":21,"tag":138,"props":25630,"children":25631},{"style":261},[25632],{"type":31,"value":15383},{"type":21,"tag":138,"props":25634,"children":25635},{"style":151},[25636],{"type":31,"value":269},{"type":21,"tag":22,"props":25638,"children":25639},{},[25640,25642,25647,25649,25653,25654,25659],{"type":31,"value":25641},"在几乎任何一台当前设备上运行这段代码，你都会看到",{"type":21,"tag":12769,"props":25643,"children":25644},{},[25645],{"type":31,"value":25646},"同一块芯片",{"type":31,"value":25648},"上最好与最差量子比特之间的差距常常达到五倍甚至更多。这种差异在任何汇总统计量中都是看不见的，而这也正是转译（transpilation）和量子比特选择如此重要的原因。我们的 ",{"type":21,"tag":26,"props":25650,"children":25651},{"href":19079},[25652],{"type":31,"value":22363},{"type":31,"value":21899},{"type":21,"tag":26,"props":25655,"children":25656},{"href":1106},[25657],{"type":31,"value":25658},"硬件指南",{"type":31,"value":25660},"对如何挑选后端有更深入的讲解。",{"type":21,"tag":41,"props":25662,"children":25664},{"id":25663},"这个领域还没有选出胜出的量子比特技术",[25665],{"type":31,"value":25663},{"type":21,"tag":22,"props":25667,"children":25668},{},[25669],{"type":31,"value":25670},"有一点因其缺席而格外醒目：这份命令自始至终没有点名任何一种量子比特技术路线。它没有偏向超导电路、离子阱、光子学、中性原子或自旋量子比特，而是笼统地提到\"量子使能组件技术\"。",{"type":21,"tag":22,"props":25672,"children":25673},{},[25674],{"type":31,"value":25675},"这是一个有意义的信号。当一项技术走向成熟时，采购文件会变得具体。没有人会为\"基于某种开关元件的计算设备\"制定国家战略。这种刻意的含糊反映了真实的现状：截至 2026 年年中，还没有哪条技术路线明确胜出。",{"type":21,"tag":22,"props":25677,"children":25678},{},[25679,25681,25687,25689,25695],{"type":31,"value":25680},"各条路线在不同维度上各自领先——超导芯片在门速度和制造规模上占优，离子阱在保真度和全连通性上占优，中性原子在量子比特数量上占优，光子学则在室温运行和网络互联上占优。2026 年的",{"type":21,"tag":26,"props":25682,"children":25684},{"href":25683},"\u002Fresearch\u002Fholographic-codes-quantum-gravity-2026",[25685],{"type":31,"value":25686},"全息码实验",{"type":31,"value":25688},"是在离子阱上完成的；",{"type":21,"tag":26,"props":25690,"children":25692},{"href":25691},"\u002Fresearch\u002Fgoogle-below-threshold-2024",[25693],{"type":31,"value":25694},"Google 的低于阈值纠错成果",{"type":31,"value":25696},"则运行在超导硬件上。两者都是里程碑式的结果，却出自完全不同的平台。",{"type":21,"tag":22,"props":25698,"children":25699},{},[25700,25702,25707],{"type":31,"value":25701},"对于任何正在学习量子计算的人来说，这其实是好消息，而且有一个具体的启示：",{"type":21,"tag":16815,"props":25703,"children":25704},{},[25705],{"type":31,"value":25706},"不要过度专精于某一家厂商的技术栈。",{"type":31,"value":25708}," 那些抽象概念——电路、门、测量、错误缓解——是可以跨硬件迁移的，而厂商专有的 API 细节则未必。",{"type":21,"tag":41,"props":25710,"children":25712},{"id":25711},"超越当前经典计算能力如今成了标尺",[25713],{"type":31,"value":25714},"\"超越当前经典计算能力\"如今成了标尺",{"type":21,"tag":22,"props":25716,"children":25717},{},[25718,25720,25725],{"type":31,"value":25719},"该命令设立了 ",{"type":21,"tag":16815,"props":25721,"children":25722},{},[25723],{"type":31,"value":25724},"Quantum Computer for Application Development and Discovery Science (QC-ADDS)",{"type":31,"value":25726}," 计划，目标是向 Department of Energy 的某个设施交付至少一台机器，并向科学界开放使用。Secretary of Energy 有 90 天时间来确定这类系统的规格，要求其能够支撑\"变革性的科学应用……并走在通往具有显著经济价值的应用、以及超越当前经典计算机能力的道路上\"。",{"type":21,"tag":22,"props":25728,"children":25729},{},[25730],{"type":31,"value":25731},"这段措辞里有两点值得注意。",{"type":21,"tag":22,"props":25733,"children":25734},{},[25735,25737,25742,25744,25749,25751,25756],{"type":31,"value":25736},"第一，它的立足点是",{"type":21,"tag":16815,"props":25738,"children":25739},{},[25740],{"type":31,"value":25741},"发现型科学",{"type":31,"value":25743},"，而不是商业优势。目标是一台科学仪器——研究人员用来认识世界的机器——而不是一款在商业任务上击败经典计算机的产品。这与证据实际指向的方向是一致的：",{"type":21,"tag":26,"props":25745,"children":25746},{"href":23115},[25747],{"type":31,"value":25748},"IBM 2023 年的量子实用性成果",{"type":31,"value":25750},"和全息码工作，本质上都是",{"type":21,"tag":12769,"props":25752,"children":25753},{},[25754],{"type":31,"value":25755},"物理",{"type":31,"value":25757},"实验。",{"type":21,"tag":22,"props":25759,"children":25760},{},[25761],{"type":31,"value":25762},"第二，\"走在通往……的道路上\"这个说法在句中承担了真正的分量。它等于承认：正在规划的这台机器是一个阶段性台阶，而非终点。",{"type":21,"tag":41,"props":25764,"children":25766},{"id":25765},"分布式量子计算作为一项严肃目标出现",[25767],{"type":31,"value":25765},{"type":21,"tag":22,"props":25769,"children":25770},{},[25771],{"type":31,"value":25772},"在关于网络的章节中，藏着一项要求：DOE 需就服务于\"分布式量子计算\"的量子网络制定规划。",{"type":21,"tag":22,"props":25774,"children":25775},{},[25776],{"type":31,"value":25777},"这一点很重要，因为它是对扩展性问题的一次坦承。造一台超大规模的量子处理器难度极高——随着芯片变大，布线、制冷、串扰和良率都会变得更糟。把若干台较小的处理器连接成一台逻辑上的机器，是另一条可行路线，而它依赖于在彼此独立的设备之间分发保真度足够高、足以真正可用的纠缠。",{"type":21,"tag":22,"props":25779,"children":25780},{},[25781,25783,25788,25790,25794],{"type":31,"value":25782},"其底层原语是",{"type":21,"tag":26,"props":25784,"children":25786},{"href":25785},"\u002Fresearch\u002Fbennett-teleportation-1993",[25787],{"type":31,"value":32},{"type":31,"value":25789},"，它借助共享",{"type":21,"tag":26,"props":25791,"children":25792},{"href":1156},[25793],{"type":31,"value":1159},{"type":31,"value":25795},"加上两个经典比特，把一个量子比特的状态从一处传到另一处。多年来这在实验上已是常规操作——但要做到足够快、足够干净，从而把多台处理器编织在一起，就完全是另一回事了。它被列为五年规划目标，说明\"单块大芯片\"策略并没有被默认为足够。",{"type":21,"tag":41,"props":25797,"children":25799},{"id":25798},"人才缺口被当作瓶颈来对待",[25800],{"type":31,"value":25798},{"type":21,"tag":22,"props":25802,"children":25803},{},[25804],{"type":31,"value":25805},"该命令要求 NSF 在 180 天内启动\"一个 National QIST Workforce Development Institutes 网络\"，并同步制定招募与留才策略。",{"type":21,"tag":22,"props":25807,"children":25808},{},[25809],{"type":31,"value":25810},"人才相关的章节很容易被一眼略过，但它被写进来这件事本身就说明了一个具体问题：制约量子进展的因素并不只是硬件。能够编写、调试并推理量子程序的人手不够——而这一短缺如今已被认为严重到需要设立专门机构来应对。",{"type":21,"tag":22,"props":25812,"children":25813},{},[25814,25816,25821,25823,25828],{"type":31,"value":25815},"对本站的读者来说，这是整份文件中最具可操作性的部分。文件中被描述为稀缺的这些技能，现在就可以免费学习，而且能在真实硬件上练习。我们的",{"type":21,"tag":26,"props":25817,"children":25818},{"href":18702},[25819],{"type":31,"value":25820},"课程页面",{"type":31,"value":25822},"汇集了最优质的结构化学习选项，而",{"type":21,"tag":26,"props":25824,"children":25825},{"href":3346},[25826],{"type":31,"value":25827},"入门指南",{"type":31,"value":25829},"能让你在一个下午之内在真实 QPU 上跑通一个电路。",{"type":21,"tag":41,"props":25831,"children":25833},{"id":25832},"它没有包含什么",[25834],{"type":31,"value":25832},{"type":21,"tag":22,"props":25836,"children":25837},{},[25838,25840,25845],{"type":31,"value":25839},"为了准确起见，有必要明说：这份命令",{"type":21,"tag":16815,"props":25841,"children":25842},{},[25843],{"type":31,"value":25844},"没有给出任何金额数字",{"type":31,"value":25846},"。它确定方向、分派职责、设定期限——各章节分布着 90 天、120 天、180 天和 210 天的时限——但拨款要另行安排。而且，行政命令中的期限也不等于交付的保证。",{"type":21,"tag":22,"props":25848,"children":25849},{},[25850],{"type":31,"value":25851},"请把这些时间表当作意图的表达，而不是可以据以规划的日程。",{"type":21,"tag":41,"props":25853,"children":25855},{"id":25854},"结论",[25856],{"type":31,"value":25854},{"type":21,"tag":22,"props":25858,"children":25859},{},[25860],{"type":31,"value":25861},"剥去政治色彩，EO 14413 读起来就像一份异常坦率的技术评估：",{"type":21,"tag":1118,"props":25863,"children":25864},{},[25865,25870,25875,25880,25885],{"type":21,"tag":71,"props":25866,"children":25867},{},[25868],{"type":31,"value":25869},"我们无法可靠地衡量量子计算机的性能，而这件事如今紧迫到需要设立专门机构。",{"type":21,"tag":71,"props":25871,"children":25872},{},[25873],{"type":31,"value":25874},"没有哪种量子比特技术胜出，因此各方都在对冲下注。",{"type":21,"tag":71,"props":25876,"children":25877},{},[25878],{"type":31,"value":25879},"近期目标是科学发现，而不是商业优势。",{"type":21,"tag":71,"props":25881,"children":25882},{},[25883],{"type":31,"value":25884},"扩展规模可能需要把芯片联网，而不是造一块巨型芯片。",{"type":21,"tag":71,"props":25886,"children":25887},{},[25888],{"type":31,"value":25889},"受过训练的人才不够，而这是一个一阶瓶颈。",{"type":21,"tag":22,"props":25891,"children":25892},{},[25893],{"type":31,"value":25894},"这些结论都算不上悲观。这是一个已经越过\"这东西究竟能不能用\"、进入\"我们该如何衡量它、扩展它、为它配备人手\"阶段的领域——这大致相当于经典计算在 1950 年代经历的那次转变。",{"type":21,"tag":22,"props":25896,"children":25897},{},[25898,25900,25905],{"type":31,"value":25899},"真正值得关注的是衡量问题。跟量子比特数量的纪录相比，基准测试听起来乏味，但你无法工程化你无法衡量的东西，而每一项关于量子优势的严肃宣称，最终都建立在它之上。如果你想了解这个领域实际的走向，请学会读懂错误率，而不是头条新闻——不妨从我们的",{"type":21,"tag":26,"props":25901,"children":25902},{"href":1148},[25903],{"type":31,"value":25904},"关键术语表",{"type":31,"value":25906},"开始。",{"type":21,"tag":1174,"props":25908,"children":25909},{},[25910],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":25912},[25913,25914,25915,25916,25917,25918,25919],{"id":25093,"depth":167,"text":25093},{"id":25663,"depth":167,"text":25663},{"id":25711,"depth":167,"text":25714},{"id":25765,"depth":167,"text":25765},{"id":25798,"depth":167,"text":25798},{"id":25832,"depth":167,"text":25832},{"id":25854,"depth":167,"text":25854},"content:zh:blog:quantum-benchmarking-eo-14413.md","zh\u002Fblog\u002Fquantum-benchmarking-eo-14413.md","zh\u002Fblog\u002Fquantum-benchmarking-eo-14413",{"_path":19060,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":25924,"description":25925,"date":25065,"author":11,"tags":25926,"readingTime":360,"body":25927,"_type":1193,"_id":28996,"_source":1195,"_file":28997,"_stem":28998,"_extension":1198},"Quantum Error Mitigation: A Practical Guide (And When It Lies to You)","Hands-on error mitigation for NISQ hardware: readout calibration, zero-noise extrapolation, Pauli twirling, and dynamical decoupling, plus the ZNE failure mode that manufactures fake improvements.",[14733,14,13895],{"type":18,"children":25928,"toc":28985},[25929,25934,25939,25945,25950,25976,25997,26002,26110,26129,26135,26140,26183,27524,27534,27542,27570,27596,27602,27622,27633,27827,27832,27838,27850,27855,27867,27873,27885,27913,28643,28653,28661,28666,28672,28677,28685,28697,28724,28736,28746,28752,28757,28775,28807,28823,28829,28841,28854,28860,28865,28918,28941,28953,28981],{"type":21,"tag":22,"props":25930,"children":25931},{},[25932],{"type":31,"value":25933},"You ran your circuit on real hardware. The answer is wrong. Not catastrophically wrong. Wrong enough to be useless. Error mitigation is the set of tricks that gets you from \"wrong\" to \"usable\" without waiting a decade for fault tolerance.",{"type":21,"tag":22,"props":25935,"children":25936},{},[25937],{"type":31,"value":25938},"This guide covers what works, in the order you should try it, with runnable Qiskit code. It also covers the part most tutorials skip: how the most popular mitigation technique sometimes produces a convincing improvement that is entirely fictitious, and the one-line sanity check that catches it.",{"type":21,"tag":41,"props":25940,"children":25942},{"id":25941},"mitigation-is-not-correction",[25943],{"type":31,"value":25944},"Mitigation Is Not Correction",{"type":21,"tag":22,"props":25946,"children":25947},{},[25948],{"type":31,"value":25949},"These get conflated constantly, so let's be precise.",{"type":21,"tag":22,"props":25951,"children":25952},{},[25953,25960,25962,25967,25969,25974],{"type":21,"tag":16815,"props":25954,"children":25955},{},[25956],{"type":21,"tag":26,"props":25957,"children":25958},{"href":15841},[25959],{"type":31,"value":22596},{"type":31,"value":25961}," detects and fixes errors ",{"type":21,"tag":12769,"props":25963,"children":25964},{},[25965],{"type":31,"value":25966},"during",{"type":31,"value":25968}," the computation. It encodes one logical qubit across many physical qubits, measures syndromes with ancillas, and applies corrections in real time. It preserves arbitrary quantum states to arbitrary depth, but it demands hardware below the fault-tolerance threshold and roughly 1,000 times qubit overhead. Our ",{"type":21,"tag":26,"props":25970,"children":25971},{"href":15622},[25972],{"type":31,"value":25973},"error correction primer",{"type":31,"value":25975}," walks through how the surface code does this.",{"type":21,"tag":22,"props":25977,"children":25978},{},[25979,25988,25990,25995],{"type":21,"tag":16815,"props":25980,"children":25981},{},[25982],{"type":21,"tag":26,"props":25983,"children":25985},{"href":25984},"\u002Fglossary\u002Ferror-mitigation",[25986],{"type":31,"value":25987},"Error mitigation",{"type":31,"value":25989}," does nothing during the computation. It runs the noisy circuit, collects noisy results, and applies classical statistics afterwards to ",{"type":21,"tag":12769,"props":25991,"children":25992},{},[25993],{"type":31,"value":25994},"estimate",{"type":31,"value":25996}," what a noiseless machine would have said.",{"type":21,"tag":22,"props":25998,"children":25999},{},[26000],{"type":31,"value":26001},"The practical differences matter:",{"type":21,"tag":3162,"props":26003,"children":26004},{},[26005,26024],{"type":21,"tag":3166,"props":26006,"children":26007},{},[26008],{"type":21,"tag":3170,"props":26009,"children":26010},{},[26011,26014,26019],{"type":21,"tag":3174,"props":26012,"children":26013},{},[],{"type":21,"tag":3174,"props":26015,"children":26016},{},[26017],{"type":31,"value":26018},"Correction",{"type":21,"tag":3174,"props":26020,"children":26021},{},[26022],{"type":31,"value":26023},"Mitigation",{"type":21,"tag":3188,"props":26025,"children":26026},{},[26027,26056,26074,26092],{"type":21,"tag":3170,"props":26028,"children":26029},{},[26030,26035,26046],{"type":21,"tag":3195,"props":26031,"children":26032},{},[26033],{"type":31,"value":26034},"Cost",{"type":21,"tag":3195,"props":26036,"children":26037},{},[26038,26040,26044],{"type":31,"value":26039},"Extra ",{"type":21,"tag":16815,"props":26041,"children":26042},{},[26043],{"type":31,"value":22861},{"type":31,"value":26045}," (~1000×)",{"type":21,"tag":3195,"props":26047,"children":26048},{},[26049,26050,26054],{"type":31,"value":26039},{"type":21,"tag":16815,"props":26051,"children":26052},{},[26053],{"type":31,"value":932},{"type":31,"value":26055}," (2–100×)",{"type":21,"tag":3170,"props":26057,"children":26058},{},[26059,26064,26069],{"type":21,"tag":3195,"props":26060,"children":26061},{},[26062],{"type":31,"value":26063},"Recovers",{"type":21,"tag":3195,"props":26065,"children":26066},{},[26067],{"type":31,"value":26068},"The quantum state",{"type":21,"tag":3195,"props":26070,"children":26071},{},[26072],{"type":31,"value":26073},"An expectation value",{"type":21,"tag":3170,"props":26075,"children":26076},{},[26077,26082,26087],{"type":21,"tag":3195,"props":26078,"children":26079},{},[26080],{"type":31,"value":26081},"Scales to",{"type":21,"tag":3195,"props":26083,"children":26084},{},[26085],{"type":31,"value":26086},"Arbitrary depth",{"type":21,"tag":3195,"props":26088,"children":26089},{},[26090],{"type":31,"value":26091},"Shallow-to-moderate depth only",{"type":21,"tag":3170,"props":26093,"children":26094},{},[26095,26100,26105],{"type":21,"tag":3195,"props":26096,"children":26097},{},[26098],{"type":31,"value":26099},"Available today",{"type":21,"tag":3195,"props":26101,"children":26102},{},[26103],{"type":31,"value":26104},"Barely",{"type":21,"tag":3195,"props":26106,"children":26107},{},[26108],{"type":31,"value":26109},"Yes, right now",{"type":21,"tag":22,"props":26111,"children":26112},{},[26113,26115,26120,26122,26127],{"type":31,"value":26114},"That last row is why mitigation dominates ",{"type":21,"tag":26,"props":26116,"children":26117},{"href":22052},[26118],{"type":31,"value":26119},"NISQ-era",{"type":31,"value":26121}," work. But note row three: mitigation's overhead grows ",{"type":21,"tag":12769,"props":26123,"children":26124},{},[26125],{"type":31,"value":26126},"exponentially",{"type":31,"value":26128}," with circuit depth and error rate. There is a depth beyond which no amount of shots rescues you. Knowing where that wall is (for your circuit, on your device) is the entire skill.",{"type":21,"tag":41,"props":26130,"children":26132},{"id":26131},"step-1-readout-error-mitigation-do-this-first",[26133],{"type":31,"value":26134},"Step 1: Readout Error Mitigation (Do This First)",{"type":21,"tag":22,"props":26136,"children":26137},{},[26138],{"type":31,"value":26139},"Measurement errors are the cheapest thing to fix and often the biggest single contributor. A superconducting qubit typically misreads 1–5% of the time. On 4 qubits at 3% each, you're losing ~11% of your signal before any gate error is counted.",{"type":21,"tag":22,"props":26141,"children":26142},{},[26143,26145,26151,26153,26159,26161,26166,26168,26173,26175,26181],{"type":31,"value":26144},"The fix: characterize the readout with calibration circuits, then invert. Prepare each computational basis state, measure it, and record where the counts land. That gives you an assignment matrix ",{"type":21,"tag":103,"props":26146,"children":26148},{"className":26147},[],[26149],{"type":31,"value":26150},"M",{"type":31,"value":26152}," where ",{"type":21,"tag":103,"props":26154,"children":26156},{"className":26155},[],[26157],{"type":31,"value":26158},"M[i][j]",{"type":31,"value":26160}," is the probability of reading ",{"type":21,"tag":103,"props":26162,"children":26164},{"className":26163},[],[26165],{"type":31,"value":1839},{"type":31,"value":26167}," when the true state was ",{"type":21,"tag":103,"props":26169,"children":26171},{"className":26170},[],[26172],{"type":31,"value":1847},{"type":31,"value":26174},". Your observed distribution is ",{"type":21,"tag":103,"props":26176,"children":26178},{"className":26177},[],[26179],{"type":31,"value":26180},"M @ p_true",{"type":31,"value":26182},", so apply the pseudo-inverse.",{"type":21,"tag":128,"props":26184,"children":26186},{"code":26185,"language":132,"meta":7,"className":130,"style":7},"import numpy as np\nfrom qiskit import QuantumCircuit, transpile\nfrom qiskit_aer import AerSimulator\nfrom qiskit_aer.noise import NoiseModel, depolarizing_error, ReadoutError\n\ndef build_noise(p1=0.002, p2=0.02, p_read=0.05):\n    nm = NoiseModel()\n    nm.add_all_qubit_quantum_error(depolarizing_error(p1, 1), [\"rz\", \"sx\", \"x\", \"h\"])\n    nm.add_all_qubit_quantum_error(depolarizing_error(p2, 2), [\"cx\", \"cz\", \"ecr\"])\n    nm.add_all_qubit_readout_error(\n        ReadoutError([[1 - p_read, p_read], [p_read, 1 - p_read]])\n    )\n    return nm\n\nbackend = AerSimulator(noise_model=build_noise())\nSHOTS = 40000\n\ndef calibration_matrix(n, backend, shots=20000):\n    M = np.zeros((2**n, 2**n))\n    for i in range(2**n):\n        qc = QuantumCircuit(n, n)\n        bits = format(i, f\"0{n}b\")[::-1]      # Qiskit is little-endian\n        for q, b in enumerate(bits):\n            if b == \"1\":\n                qc.x(q)\n        qc.measure(range(n), range(n))\n        counts = backend.run(transpile(qc, backend), shots=shots).result().get_counts()\n        for key, v in counts.items():\n            M[int(key, 2), i] = v \u002F shots\n    return M\n\nn = 2\nMinv = np.linalg.pinv(calibration_matrix(n, backend))\n\nbell = QuantumCircuit(2, 2)\nbell.h(0)\nbell.cx(0, 1)\nbell.measure([0, 1], [0, 1])\n\nraw = backend.run(transpile(bell, backend), shots=SHOTS).result().get_counts()\nvec = np.array([raw.get(format(i, f\"0{n}b\"), 0) for i in range(2**n)], float) \u002F SHOTS\n\nmit = np.clip(Minv @ vec, 0, None)\nmit \u002F= mit.sum()\n\nprint(\"raw      :\", {format(i, \"02b\"): round(vec[i], 4) for i in range(4)})\nprint(\"mitigated:\", {format(i, \"02b\"): round(mit[i], 4) for i in range(4)})\n",[26187],{"type":21,"tag":103,"props":26188,"children":26189},{"__ignoreMap":7},[26190,26209,26228,26247,26267,26274,26332,26348,26398,26440,26448,26483,26491,26503,26510,26538,26556,26563,26593,26635,26671,26688,26759,26785,26812,26820,26846,26876,26897,26942,26955,26963,26979,26997,27005,27038,27055,27080,27121,27129,27163,27277,27285,27330,27348,27356,27442],{"type":21,"tag":138,"props":26191,"children":26192},{"class":140,"line":141},[26193,26197,26201,26205],{"type":21,"tag":138,"props":26194,"children":26195},{"style":145},[26196],{"type":31,"value":159},{"type":21,"tag":138,"props":26198,"children":26199},{"style":151},[26200],{"type":31,"value":8530},{"type":21,"tag":138,"props":26202,"children":26203},{"style":145},[26204],{"type":31,"value":5356},{"type":21,"tag":138,"props":26206,"children":26207},{"style":151},[26208],{"type":31,"value":8632},{"type":21,"tag":138,"props":26210,"children":26211},{"class":140,"line":167},[26212,26216,26220,26224],{"type":21,"tag":138,"props":26213,"children":26214},{"style":145},[26215],{"type":31,"value":148},{"type":21,"tag":138,"props":26217,"children":26218},{"style":151},[26219],{"type":31,"value":154},{"type":21,"tag":138,"props":26221,"children":26222},{"style":145},[26223],{"type":31,"value":159},{"type":21,"tag":138,"props":26225,"children":26226},{"style":151},[26227],{"type":31,"value":20069},{"type":21,"tag":138,"props":26229,"children":26230},{"class":140,"line":189},[26231,26235,26239,26243],{"type":21,"tag":138,"props":26232,"children":26233},{"style":145},[26234],{"type":31,"value":148},{"type":21,"tag":138,"props":26236,"children":26237},{"style":151},[26238],{"type":31,"value":177},{"type":21,"tag":138,"props":26240,"children":26241},{"style":145},[26242],{"type":31,"value":159},{"type":21,"tag":138,"props":26244,"children":26245},{"style":151},[26246],{"type":31,"value":186},{"type":21,"tag":138,"props":26248,"children":26249},{"class":140,"line":199},[26250,26254,26258,26262],{"type":21,"tag":138,"props":26251,"children":26252},{"style":145},[26253],{"type":31,"value":148},{"type":21,"tag":138,"props":26255,"children":26256},{"style":151},[26257],{"type":31,"value":14030},{"type":21,"tag":138,"props":26259,"children":26260},{"style":145},[26261],{"type":31,"value":159},{"type":21,"tag":138,"props":26263,"children":26264},{"style":151},[26265],{"type":31,"value":26266}," NoiseModel, depolarizing_error, ReadoutError\n",{"type":21,"tag":138,"props":26268,"children":26269},{"class":140,"line":225},[26270],{"type":21,"tag":138,"props":26271,"children":26272},{"emptyLinePlaceholder":193},[26273],{"type":31,"value":196},{"type":21,"tag":138,"props":26275,"children":26276},{"class":140,"line":233},[26277,26281,26286,26291,26295,26300,26305,26309,26314,26319,26323,26328],{"type":21,"tag":138,"props":26278,"children":26279},{"style":145},[26280],{"type":31,"value":5500},{"type":21,"tag":138,"props":26282,"children":26283},{"style":4522},[26284],{"type":31,"value":26285}," build_noise",{"type":21,"tag":138,"props":26287,"children":26288},{"style":151},[26289],{"type":31,"value":26290},"(p1",{"type":21,"tag":138,"props":26292,"children":26293},{"style":145},[26294],{"type":31,"value":210},{"type":21,"tag":138,"props":26296,"children":26297},{"style":213},[26298],{"type":31,"value":26299},"0.002",{"type":21,"tag":138,"props":26301,"children":26302},{"style":151},[26303],{"type":31,"value":26304},", p2",{"type":21,"tag":138,"props":26306,"children":26307},{"style":145},[26308],{"type":31,"value":210},{"type":21,"tag":138,"props":26310,"children":26311},{"style":213},[26312],{"type":31,"value":26313},"0.02",{"type":21,"tag":138,"props":26315,"children":26316},{"style":151},[26317],{"type":31,"value":26318},", p_read",{"type":21,"tag":138,"props":26320,"children":26321},{"style":145},[26322],{"type":31,"value":210},{"type":21,"tag":138,"props":26324,"children":26325},{"style":213},[26326],{"type":31,"value":26327},"0.05",{"type":21,"tag":138,"props":26329,"children":26330},{"style":151},[26331],{"type":31,"value":7443},{"type":21,"tag":138,"props":26333,"children":26334},{"class":140,"line":272},[26335,26340,26344],{"type":21,"tag":138,"props":26336,"children":26337},{"style":151},[26338],{"type":31,"value":26339},"    nm ",{"type":21,"tag":138,"props":26341,"children":26342},{"style":145},[26343],{"type":31,"value":210},{"type":21,"tag":138,"props":26345,"children":26346},{"style":151},[26347],{"type":31,"value":14507},{"type":21,"tag":138,"props":26349,"children":26350},{"class":140,"line":308},[26351,26356,26360,26364,26369,26373,26377,26381,26385,26389,26394],{"type":21,"tag":138,"props":26352,"children":26353},{"style":151},[26354],{"type":31,"value":26355},"    nm.add_all_qubit_quantum_error(depolarizing_error(p1, ",{"type":21,"tag":138,"props":26357,"children":26358},{"style":213},[26359],{"type":31,"value":327},{"type":21,"tag":138,"props":26361,"children":26362},{"style":151},[26363],{"type":31,"value":14533},{"type":21,"tag":138,"props":26365,"children":26366},{"style":261},[26367],{"type":31,"value":26368},"\"rz\"",{"type":21,"tag":138,"props":26370,"children":26371},{"style":151},[26372],{"type":31,"value":258},{"type":21,"tag":138,"props":26374,"children":26375},{"style":261},[26376],{"type":31,"value":14538},{"type":21,"tag":138,"props":26378,"children":26379},{"style":151},[26380],{"type":31,"value":258},{"type":21,"tag":138,"props":26382,"children":26383},{"style":261},[26384],{"type":31,"value":14547},{"type":21,"tag":138,"props":26386,"children":26387},{"style":151},[26388],{"type":31,"value":258},{"type":21,"tag":138,"props":26390,"children":26391},{"style":261},[26392],{"type":31,"value":26393},"\"h\"",{"type":21,"tag":138,"props":26395,"children":26396},{"style":151},[26397],{"type":31,"value":598},{"type":21,"tag":138,"props":26399,"children":26400},{"class":140,"line":16},[26401,26406,26410,26414,26418,26422,26427,26431,26436],{"type":21,"tag":138,"props":26402,"children":26403},{"style":151},[26404],{"type":31,"value":26405},"    nm.add_all_qubit_quantum_error(depolarizing_error(p2, ",{"type":21,"tag":138,"props":26407,"children":26408},{"style":213},[26409],{"type":31,"value":292},{"type":21,"tag":138,"props":26411,"children":26412},{"style":151},[26413],{"type":31,"value":14533},{"type":21,"tag":138,"props":26415,"children":26416},{"style":261},[26417],{"type":31,"value":14580},{"type":21,"tag":138,"props":26419,"children":26420},{"style":151},[26421],{"type":31,"value":258},{"type":21,"tag":138,"props":26423,"children":26424},{"style":261},[26425],{"type":31,"value":26426},"\"cz\"",{"type":21,"tag":138,"props":26428,"children":26429},{"style":151},[26430],{"type":31,"value":258},{"type":21,"tag":138,"props":26432,"children":26433},{"style":261},[26434],{"type":31,"value":26435},"\"ecr\"",{"type":21,"tag":138,"props":26437,"children":26438},{"style":151},[26439],{"type":31,"value":598},{"type":21,"tag":138,"props":26441,"children":26442},{"class":140,"line":360},[26443],{"type":21,"tag":138,"props":26444,"children":26445},{"style":151},[26446],{"type":31,"value":26447},"    nm.add_all_qubit_readout_error(\n",{"type":21,"tag":138,"props":26449,"children":26450},{"class":140,"line":368},[26451,26456,26460,26465,26470,26474,26478],{"type":21,"tag":138,"props":26452,"children":26453},{"style":151},[26454],{"type":31,"value":26455},"        ReadoutError([[",{"type":21,"tag":138,"props":26457,"children":26458},{"style":213},[26459],{"type":31,"value":327},{"type":21,"tag":138,"props":26461,"children":26462},{"style":145},[26463],{"type":31,"value":26464}," -",{"type":21,"tag":138,"props":26466,"children":26467},{"style":151},[26468],{"type":31,"value":26469}," p_read, p_read], [p_read, ",{"type":21,"tag":138,"props":26471,"children":26472},{"style":213},[26473],{"type":31,"value":327},{"type":21,"tag":138,"props":26475,"children":26476},{"style":145},[26477],{"type":31,"value":26464},{"type":21,"tag":138,"props":26479,"children":26480},{"style":151},[26481],{"type":31,"value":26482}," p_read]])\n",{"type":21,"tag":138,"props":26484,"children":26485},{"class":140,"line":377},[26486],{"type":21,"tag":138,"props":26487,"children":26488},{"style":151},[26489],{"type":31,"value":26490},"    )\n",{"type":21,"tag":138,"props":26492,"children":26493},{"class":140,"line":386},[26494,26498],{"type":21,"tag":138,"props":26495,"children":26496},{"style":145},[26497],{"type":31,"value":5595},{"type":21,"tag":138,"props":26499,"children":26500},{"style":151},[26501],{"type":31,"value":26502}," nm\n",{"type":21,"tag":138,"props":26504,"children":26505},{"class":140,"line":395},[26506],{"type":21,"tag":138,"props":26507,"children":26508},{"emptyLinePlaceholder":193},[26509],{"type":31,"value":196},{"type":21,"tag":138,"props":26511,"children":26512},{"class":140,"line":413},[26513,26517,26521,26525,26529,26533],{"type":21,"tag":138,"props":26514,"children":26515},{"style":151},[26516],{"type":31,"value":6456},{"type":21,"tag":138,"props":26518,"children":26519},{"style":145},[26520],{"type":31,"value":210},{"type":21,"tag":138,"props":26522,"children":26523},{"style":151},[26524],{"type":31,"value":14607},{"type":21,"tag":138,"props":26526,"children":26527},{"style":929},[26528],{"type":31,"value":14612},{"type":21,"tag":138,"props":26530,"children":26531},{"style":145},[26532],{"type":31,"value":210},{"type":21,"tag":138,"props":26534,"children":26535},{"style":151},[26536],{"type":31,"value":26537},"build_noise())\n",{"type":21,"tag":138,"props":26539,"children":26540},{"class":140,"line":12602},[26541,26546,26551],{"type":21,"tag":138,"props":26542,"children":26543},{"style":213},[26544],{"type":31,"value":26545},"SHOTS",{"type":21,"tag":138,"props":26547,"children":26548},{"style":145},[26549],{"type":31,"value":26550}," =",{"type":21,"tag":138,"props":26552,"children":26553},{"style":213},[26554],{"type":31,"value":26555}," 40000\n",{"type":21,"tag":138,"props":26557,"children":26558},{"class":140,"line":12619},[26559],{"type":21,"tag":138,"props":26560,"children":26561},{"emptyLinePlaceholder":193},[26562],{"type":31,"value":196},{"type":21,"tag":138,"props":26564,"children":26565},{"class":140,"line":12635},[26566,26570,26575,26580,26584,26589],{"type":21,"tag":138,"props":26567,"children":26568},{"style":145},[26569],{"type":31,"value":5500},{"type":21,"tag":138,"props":26571,"children":26572},{"style":4522},[26573],{"type":31,"value":26574}," calibration_matrix",{"type":21,"tag":138,"props":26576,"children":26577},{"style":151},[26578],{"type":31,"value":26579},"(n, backend, shots",{"type":21,"tag":138,"props":26581,"children":26582},{"style":145},[26583],{"type":31,"value":210},{"type":21,"tag":138,"props":26585,"children":26586},{"style":213},[26587],{"type":31,"value":26588},"20000",{"type":21,"tag":138,"props":26590,"children":26591},{"style":151},[26592],{"type":31,"value":7443},{"type":21,"tag":138,"props":26594,"children":26595},{"class":140,"line":12643},[26596,26601,26605,26610,26614,26618,26622,26626,26630],{"type":21,"tag":138,"props":26597,"children":26598},{"style":151},[26599],{"type":31,"value":26600},"    M ",{"type":21,"tag":138,"props":26602,"children":26603},{"style":145},[26604],{"type":31,"value":210},{"type":21,"tag":138,"props":26606,"children":26607},{"style":151},[26608],{"type":31,"value":26609}," np.zeros((",{"type":21,"tag":138,"props":26611,"children":26612},{"style":213},[26613],{"type":31,"value":292},{"type":21,"tag":138,"props":26615,"children":26616},{"style":145},[26617],{"type":31,"value":4814},{"type":21,"tag":138,"props":26619,"children":26620},{"style":151},[26621],{"type":31,"value":19369},{"type":21,"tag":138,"props":26623,"children":26624},{"style":213},[26625],{"type":31,"value":292},{"type":21,"tag":138,"props":26627,"children":26628},{"style":145},[26629],{"type":31,"value":4814},{"type":21,"tag":138,"props":26631,"children":26632},{"style":151},[26633],{"type":31,"value":26634},"n))\n",{"type":21,"tag":138,"props":26636,"children":26637},{"class":140,"line":17760},[26638,26642,26646,26650,26654,26658,26662,26666],{"type":21,"tag":138,"props":26639,"children":26640},{"style":145},[26641],{"type":31,"value":17037},{"type":21,"tag":138,"props":26643,"children":26644},{"style":151},[26645],{"type":31,"value":7421},{"type":21,"tag":138,"props":26647,"children":26648},{"style":145},[26649],{"type":31,"value":1502},{"type":21,"tag":138,"props":26651,"children":26652},{"style":213},[26653],{"type":31,"value":7430},{"type":21,"tag":138,"props":26655,"children":26656},{"style":151},[26657],{"type":31,"value":959},{"type":21,"tag":138,"props":26659,"children":26660},{"style":213},[26661],{"type":31,"value":292},{"type":21,"tag":138,"props":26663,"children":26664},{"style":145},[26665],{"type":31,"value":4814},{"type":21,"tag":138,"props":26667,"children":26668},{"style":151},[26669],{"type":31,"value":26670},"n):\n",{"type":21,"tag":138,"props":26672,"children":26673},{"class":140,"line":17778},[26674,26679,26683],{"type":21,"tag":138,"props":26675,"children":26676},{"style":151},[26677],{"type":31,"value":26678},"        qc ",{"type":21,"tag":138,"props":26680,"children":26681},{"style":145},[26682],{"type":31,"value":210},{"type":21,"tag":138,"props":26684,"children":26685},{"style":151},[26686],{"type":31,"value":26687}," QuantumCircuit(n, n)\n",{"type":21,"tag":138,"props":26689,"children":26690},{"class":140,"line":17803},[26691,26696,26700,26705,26710,26714,26719,26723,26727,26731,26736,26741,26745,26749,26754],{"type":21,"tag":138,"props":26692,"children":26693},{"style":151},[26694],{"type":31,"value":26695},"        bits ",{"type":21,"tag":138,"props":26697,"children":26698},{"style":145},[26699],{"type":31,"value":210},{"type":21,"tag":138,"props":26701,"children":26702},{"style":213},[26703],{"type":31,"value":26704}," format",{"type":21,"tag":138,"props":26706,"children":26707},{"style":151},[26708],{"type":31,"value":26709},"(i, ",{"type":21,"tag":138,"props":26711,"children":26712},{"style":145},[26713],{"type":31,"value":7537},{"type":21,"tag":138,"props":26715,"children":26716},{"style":261},[26717],{"type":31,"value":26718},"\"0",{"type":21,"tag":138,"props":26720,"children":26721},{"style":213},[26722],{"type":31,"value":7547},{"type":21,"tag":138,"props":26724,"children":26725},{"style":151},[26726],{"type":31,"value":19618},{"type":21,"tag":138,"props":26728,"children":26729},{"style":213},[26730],{"type":31,"value":7556},{"type":21,"tag":138,"props":26732,"children":26733},{"style":261},[26734],{"type":31,"value":26735},"b\"",{"type":21,"tag":138,"props":26737,"children":26738},{"style":151},[26739],{"type":31,"value":26740},")[::",{"type":21,"tag":138,"props":26742,"children":26743},{"style":145},[26744],{"type":31,"value":831},{"type":21,"tag":138,"props":26746,"children":26747},{"style":213},[26748],{"type":31,"value":327},{"type":21,"tag":138,"props":26750,"children":26751},{"style":151},[26752],{"type":31,"value":26753},"]      ",{"type":21,"tag":138,"props":26755,"children":26756},{"style":219},[26757],{"type":31,"value":26758},"# Qiskit is little-endian\n",{"type":21,"tag":138,"props":26760,"children":26761},{"class":140,"line":17830},[26762,26766,26771,26775,26780],{"type":21,"tag":138,"props":26763,"children":26764},{"style":145},[26765],{"type":31,"value":20318},{"type":21,"tag":138,"props":26767,"children":26768},{"style":151},[26769],{"type":31,"value":26770}," q, b ",{"type":21,"tag":138,"props":26772,"children":26773},{"style":145},[26774],{"type":31,"value":1502},{"type":21,"tag":138,"props":26776,"children":26777},{"style":213},[26778],{"type":31,"value":26779}," enumerate",{"type":21,"tag":138,"props":26781,"children":26782},{"style":151},[26783],{"type":31,"value":26784},"(bits):\n",{"type":21,"tag":138,"props":26786,"children":26787},{"class":140,"line":17856},[26788,26793,26798,26802,26807],{"type":21,"tag":138,"props":26789,"children":26790},{"style":145},[26791],{"type":31,"value":26792},"            if",{"type":21,"tag":138,"props":26794,"children":26795},{"style":151},[26796],{"type":31,"value":26797}," b ",{"type":21,"tag":138,"props":26799,"children":26800},{"style":145},[26801],{"type":31,"value":7348},{"type":21,"tag":138,"props":26803,"children":26804},{"style":261},[26805],{"type":31,"value":26806}," \"1\"",{"type":21,"tag":138,"props":26808,"children":26809},{"style":151},[26810],{"type":31,"value":26811},":\n",{"type":21,"tag":138,"props":26813,"children":26814},{"class":140,"line":17865},[26815],{"type":21,"tag":138,"props":26816,"children":26817},{"style":151},[26818],{"type":31,"value":26819},"                qc.x(q)\n",{"type":21,"tag":138,"props":26821,"children":26822},{"class":140,"line":17877},[26823,26828,26832,26837,26841],{"type":21,"tag":138,"props":26824,"children":26825},{"style":151},[26826],{"type":31,"value":26827},"        qc.measure(",{"type":21,"tag":138,"props":26829,"children":26830},{"style":213},[26831],{"type":31,"value":17726},{"type":21,"tag":138,"props":26833,"children":26834},{"style":151},[26835],{"type":31,"value":26836},"(n), ",{"type":21,"tag":138,"props":26838,"children":26839},{"style":213},[26840],{"type":31,"value":17726},{"type":21,"tag":138,"props":26842,"children":26843},{"style":151},[26844],{"type":31,"value":26845},"(n))\n",{"type":21,"tag":138,"props":26847,"children":26848},{"class":140,"line":17885},[26849,26854,26858,26863,26867,26871],{"type":21,"tag":138,"props":26850,"children":26851},{"style":151},[26852],{"type":31,"value":26853},"        counts ",{"type":21,"tag":138,"props":26855,"children":26856},{"style":145},[26857],{"type":31,"value":210},{"type":21,"tag":138,"props":26859,"children":26860},{"style":151},[26861],{"type":31,"value":26862}," backend.run(transpile(qc, backend), ",{"type":21,"tag":138,"props":26864,"children":26865},{"style":929},[26866],{"type":31,"value":932},{"type":21,"tag":138,"props":26868,"children":26869},{"style":145},[26870],{"type":31,"value":210},{"type":21,"tag":138,"props":26872,"children":26873},{"style":151},[26874],{"type":31,"value":26875},"shots).result().get_counts()\n",{"type":21,"tag":138,"props":26877,"children":26878},{"class":140,"line":17938},[26879,26883,26888,26892],{"type":21,"tag":138,"props":26880,"children":26881},{"style":145},[26882],{"type":31,"value":20318},{"type":21,"tag":138,"props":26884,"children":26885},{"style":151},[26886],{"type":31,"value":26887}," key, v ",{"type":21,"tag":138,"props":26889,"children":26890},{"style":145},[26891],{"type":31,"value":1502},{"type":21,"tag":138,"props":26893,"children":26894},{"style":151},[26895],{"type":31,"value":26896}," counts.items():\n",{"type":21,"tag":138,"props":26898,"children":26900},{"class":140,"line":26899},29,[26901,26906,26910,26915,26919,26924,26928,26933,26937],{"type":21,"tag":138,"props":26902,"children":26903},{"style":151},[26904],{"type":31,"value":26905},"            M[",{"type":21,"tag":138,"props":26907,"children":26908},{"style":213},[26909],{"type":31,"value":16994},{"type":21,"tag":138,"props":26911,"children":26912},{"style":151},[26913],{"type":31,"value":26914},"(key, ",{"type":21,"tag":138,"props":26916,"children":26917},{"style":213},[26918],{"type":31,"value":292},{"type":21,"tag":138,"props":26920,"children":26921},{"style":151},[26922],{"type":31,"value":26923},"), i] ",{"type":21,"tag":138,"props":26925,"children":26926},{"style":145},[26927],{"type":31,"value":210},{"type":21,"tag":138,"props":26929,"children":26930},{"style":151},[26931],{"type":31,"value":26932}," v ",{"type":21,"tag":138,"props":26934,"children":26935},{"style":145},[26936],{"type":31,"value":5075},{"type":21,"tag":138,"props":26938,"children":26939},{"style":151},[26940],{"type":31,"value":26941}," shots\n",{"type":21,"tag":138,"props":26943,"children":26945},{"class":140,"line":26944},30,[26946,26950],{"type":21,"tag":138,"props":26947,"children":26948},{"style":145},[26949],{"type":31,"value":5595},{"type":21,"tag":138,"props":26951,"children":26952},{"style":151},[26953],{"type":31,"value":26954}," M\n",{"type":21,"tag":138,"props":26956,"children":26958},{"class":140,"line":26957},31,[26959],{"type":21,"tag":138,"props":26960,"children":26961},{"emptyLinePlaceholder":193},[26962],{"type":31,"value":196},{"type":21,"tag":138,"props":26964,"children":26966},{"class":140,"line":26965},32,[26967,26971,26975],{"type":21,"tag":138,"props":26968,"children":26969},{"style":151},[26970],{"type":31,"value":19300},{"type":21,"tag":138,"props":26972,"children":26973},{"style":145},[26974],{"type":31,"value":210},{"type":21,"tag":138,"props":26976,"children":26977},{"style":213},[26978],{"type":31,"value":1610},{"type":21,"tag":138,"props":26980,"children":26982},{"class":140,"line":26981},33,[26983,26988,26992],{"type":21,"tag":138,"props":26984,"children":26985},{"style":151},[26986],{"type":31,"value":26987},"Minv ",{"type":21,"tag":138,"props":26989,"children":26990},{"style":145},[26991],{"type":31,"value":210},{"type":21,"tag":138,"props":26993,"children":26994},{"style":151},[26995],{"type":31,"value":26996}," np.linalg.pinv(calibration_matrix(n, backend))\n",{"type":21,"tag":138,"props":26998,"children":27000},{"class":140,"line":26999},34,[27001],{"type":21,"tag":138,"props":27002,"children":27003},{"emptyLinePlaceholder":193},[27004],{"type":31,"value":196},{"type":21,"tag":138,"props":27006,"children":27008},{"class":140,"line":27007},35,[27009,27014,27018,27022,27026,27030,27034],{"type":21,"tag":138,"props":27010,"children":27011},{"style":151},[27012],{"type":31,"value":27013},"bell ",{"type":21,"tag":138,"props":27015,"children":27016},{"style":145},[27017],{"type":31,"value":210},{"type":21,"tag":138,"props":27019,"children":27020},{"style":151},[27021],{"type":31,"value":6305},{"type":21,"tag":138,"props":27023,"children":27024},{"style":213},[27025],{"type":31,"value":292},{"type":21,"tag":138,"props":27027,"children":27028},{"style":151},[27029],{"type":31,"value":258},{"type":21,"tag":138,"props":27031,"children":27032},{"style":213},[27033],{"type":31,"value":292},{"type":21,"tag":138,"props":27035,"children":27036},{"style":151},[27037],{"type":31,"value":269},{"type":21,"tag":138,"props":27039,"children":27041},{"class":140,"line":27040},36,[27042,27047,27051],{"type":21,"tag":138,"props":27043,"children":27044},{"style":151},[27045],{"type":31,"value":27046},"bell.h(",{"type":21,"tag":138,"props":27048,"children":27049},{"style":213},[27050],{"type":31,"value":406},{"type":21,"tag":138,"props":27052,"children":27053},{"style":151},[27054],{"type":31,"value":269},{"type":21,"tag":138,"props":27056,"children":27058},{"class":140,"line":27057},37,[27059,27064,27068,27072,27076],{"type":21,"tag":138,"props":27060,"children":27061},{"style":151},[27062],{"type":31,"value":27063},"bell.cx(",{"type":21,"tag":138,"props":27065,"children":27066},{"style":213},[27067],{"type":31,"value":406},{"type":21,"tag":138,"props":27069,"children":27070},{"style":151},[27071],{"type":31,"value":258},{"type":21,"tag":138,"props":27073,"children":27074},{"style":213},[27075],{"type":31,"value":327},{"type":21,"tag":138,"props":27077,"children":27078},{"style":151},[27079],{"type":31,"value":269},{"type":21,"tag":138,"props":27081,"children":27083},{"class":140,"line":27082},38,[27084,27089,27093,27097,27101,27105,27109,27113,27117],{"type":21,"tag":138,"props":27085,"children":27086},{"style":151},[27087],{"type":31,"value":27088},"bell.measure([",{"type":21,"tag":138,"props":27090,"children":27091},{"style":213},[27092],{"type":31,"value":406},{"type":21,"tag":138,"props":27094,"children":27095},{"style":151},[27096],{"type":31,"value":258},{"type":21,"tag":138,"props":27098,"children":27099},{"style":213},[27100],{"type":31,"value":327},{"type":21,"tag":138,"props":27102,"children":27103},{"style":151},[27104],{"type":31,"value":6417},{"type":21,"tag":138,"props":27106,"children":27107},{"style":213},[27108],{"type":31,"value":406},{"type":21,"tag":138,"props":27110,"children":27111},{"style":151},[27112],{"type":31,"value":258},{"type":21,"tag":138,"props":27114,"children":27115},{"style":213},[27116],{"type":31,"value":327},{"type":21,"tag":138,"props":27118,"children":27119},{"style":151},[27120],{"type":31,"value":598},{"type":21,"tag":138,"props":27122,"children":27124},{"class":140,"line":27123},39,[27125],{"type":21,"tag":138,"props":27126,"children":27127},{"emptyLinePlaceholder":193},[27128],{"type":31,"value":196},{"type":21,"tag":138,"props":27130,"children":27132},{"class":140,"line":27131},40,[27133,27138,27142,27147,27151,27155,27159],{"type":21,"tag":138,"props":27134,"children":27135},{"style":151},[27136],{"type":31,"value":27137},"raw ",{"type":21,"tag":138,"props":27139,"children":27140},{"style":145},[27141],{"type":31,"value":210},{"type":21,"tag":138,"props":27143,"children":27144},{"style":151},[27145],{"type":31,"value":27146}," backend.run(transpile(bell, backend), ",{"type":21,"tag":138,"props":27148,"children":27149},{"style":929},[27150],{"type":31,"value":932},{"type":21,"tag":138,"props":27152,"children":27153},{"style":145},[27154],{"type":31,"value":210},{"type":21,"tag":138,"props":27156,"children":27157},{"style":213},[27158],{"type":31,"value":26545},{"type":21,"tag":138,"props":27160,"children":27161},{"style":151},[27162],{"type":31,"value":946},{"type":21,"tag":138,"props":27164,"children":27166},{"class":140,"line":27165},41,[27167,27172,27176,27181,27186,27190,27194,27198,27202,27206,27210,27214,27219,27223,27227,27231,27235,27239,27243,27247,27251,27255,27260,27264,27268,27272],{"type":21,"tag":138,"props":27168,"children":27169},{"style":151},[27170],{"type":31,"value":27171},"vec ",{"type":21,"tag":138,"props":27173,"children":27174},{"style":145},[27175],{"type":31,"value":210},{"type":21,"tag":138,"props":27177,"children":27178},{"style":151},[27179],{"type":31,"value":27180}," np.array([raw.get(",{"type":21,"tag":138,"props":27182,"children":27183},{"style":213},[27184],{"type":31,"value":27185},"format",{"type":21,"tag":138,"props":27187,"children":27188},{"style":151},[27189],{"type":31,"value":26709},{"type":21,"tag":138,"props":27191,"children":27192},{"style":145},[27193],{"type":31,"value":7537},{"type":21,"tag":138,"props":27195,"children":27196},{"style":261},[27197],{"type":31,"value":26718},{"type":21,"tag":138,"props":27199,"children":27200},{"style":213},[27201],{"type":31,"value":7547},{"type":21,"tag":138,"props":27203,"children":27204},{"style":151},[27205],{"type":31,"value":19618},{"type":21,"tag":138,"props":27207,"children":27208},{"style":213},[27209],{"type":31,"value":7556},{"type":21,"tag":138,"props":27211,"children":27212},{"style":261},[27213],{"type":31,"value":26735},{"type":21,"tag":138,"props":27215,"children":27216},{"style":151},[27217],{"type":31,"value":27218},"), ",{"type":21,"tag":138,"props":27220,"children":27221},{"style":213},[27222],{"type":31,"value":406},{"type":21,"tag":138,"props":27224,"children":27225},{"style":151},[27226],{"type":31,"value":1533},{"type":21,"tag":138,"props":27228,"children":27229},{"style":145},[27230],{"type":31,"value":1492},{"type":21,"tag":138,"props":27232,"children":27233},{"style":151},[27234],{"type":31,"value":7421},{"type":21,"tag":138,"props":27236,"children":27237},{"style":145},[27238],{"type":31,"value":1502},{"type":21,"tag":138,"props":27240,"children":27241},{"style":213},[27242],{"type":31,"value":7430},{"type":21,"tag":138,"props":27244,"children":27245},{"style":151},[27246],{"type":31,"value":959},{"type":21,"tag":138,"props":27248,"children":27249},{"style":213},[27250],{"type":31,"value":292},{"type":21,"tag":138,"props":27252,"children":27253},{"style":145},[27254],{"type":31,"value":4814},{"type":21,"tag":138,"props":27256,"children":27257},{"style":151},[27258],{"type":31,"value":27259},"n)], ",{"type":21,"tag":138,"props":27261,"children":27262},{"style":213},[27263],{"type":31,"value":11409},{"type":21,"tag":138,"props":27265,"children":27266},{"style":151},[27267],{"type":31,"value":1533},{"type":21,"tag":138,"props":27269,"children":27270},{"style":145},[27271],{"type":31,"value":5075},{"type":21,"tag":138,"props":27273,"children":27274},{"style":213},[27275],{"type":31,"value":27276}," SHOTS\n",{"type":21,"tag":138,"props":27278,"children":27280},{"class":140,"line":27279},42,[27281],{"type":21,"tag":138,"props":27282,"children":27283},{"emptyLinePlaceholder":193},[27284],{"type":31,"value":196},{"type":21,"tag":138,"props":27286,"children":27288},{"class":140,"line":27287},43,[27289,27294,27298,27303,27308,27313,27317,27321,27326],{"type":21,"tag":138,"props":27290,"children":27291},{"style":151},[27292],{"type":31,"value":27293},"mit ",{"type":21,"tag":138,"props":27295,"children":27296},{"style":145},[27297],{"type":31,"value":210},{"type":21,"tag":138,"props":27299,"children":27300},{"style":151},[27301],{"type":31,"value":27302}," np.clip(Minv ",{"type":21,"tag":138,"props":27304,"children":27305},{"style":145},[27306],{"type":31,"value":27307},"@",{"type":21,"tag":138,"props":27309,"children":27310},{"style":151},[27311],{"type":31,"value":27312}," vec, ",{"type":21,"tag":138,"props":27314,"children":27315},{"style":213},[27316],{"type":31,"value":406},{"type":21,"tag":138,"props":27318,"children":27319},{"style":151},[27320],{"type":31,"value":258},{"type":21,"tag":138,"props":27322,"children":27323},{"style":213},[27324],{"type":31,"value":27325},"None",{"type":21,"tag":138,"props":27327,"children":27328},{"style":151},[27329],{"type":31,"value":269},{"type":21,"tag":138,"props":27331,"children":27333},{"class":140,"line":27332},44,[27334,27338,27343],{"type":21,"tag":138,"props":27335,"children":27336},{"style":151},[27337],{"type":31,"value":27293},{"type":21,"tag":138,"props":27339,"children":27340},{"style":145},[27341],{"type":31,"value":27342},"\u002F=",{"type":21,"tag":138,"props":27344,"children":27345},{"style":151},[27346],{"type":31,"value":27347}," mit.sum()\n",{"type":21,"tag":138,"props":27349,"children":27351},{"class":140,"line":27350},45,[27352],{"type":21,"tag":138,"props":27353,"children":27354},{"emptyLinePlaceholder":193},[27355],{"type":31,"value":196},{"type":21,"tag":138,"props":27357,"children":27359},{"class":140,"line":27358},46,[27360,27364,27368,27373,27378,27382,27386,27391,27396,27400,27405,27409,27413,27417,27421,27425,27429,27433,27437],{"type":21,"tag":138,"props":27361,"children":27362},{"style":213},[27363],{"type":31,"value":954},{"type":21,"tag":138,"props":27365,"children":27366},{"style":151},[27367],{"type":31,"value":959},{"type":21,"tag":138,"props":27369,"children":27370},{"style":261},[27371],{"type":31,"value":27372},"\"raw      :\"",{"type":21,"tag":138,"props":27374,"children":27375},{"style":151},[27376],{"type":31,"value":27377},", {",{"type":21,"tag":138,"props":27379,"children":27380},{"style":213},[27381],{"type":31,"value":27185},{"type":21,"tag":138,"props":27383,"children":27384},{"style":151},[27385],{"type":31,"value":26709},{"type":21,"tag":138,"props":27387,"children":27388},{"style":261},[27389],{"type":31,"value":27390},"\"02b\"",{"type":21,"tag":138,"props":27392,"children":27393},{"style":151},[27394],{"type":31,"value":27395},"): ",{"type":21,"tag":138,"props":27397,"children":27398},{"style":213},[27399],{"type":31,"value":11400},{"type":21,"tag":138,"props":27401,"children":27402},{"style":151},[27403],{"type":31,"value":27404},"(vec[i], ",{"type":21,"tag":138,"props":27406,"children":27407},{"style":213},[27408],{"type":31,"value":17931},{"type":21,"tag":138,"props":27410,"children":27411},{"style":151},[27412],{"type":31,"value":1533},{"type":21,"tag":138,"props":27414,"children":27415},{"style":145},[27416],{"type":31,"value":1492},{"type":21,"tag":138,"props":27418,"children":27419},{"style":151},[27420],{"type":31,"value":7421},{"type":21,"tag":138,"props":27422,"children":27423},{"style":145},[27424],{"type":31,"value":1502},{"type":21,"tag":138,"props":27426,"children":27427},{"style":213},[27428],{"type":31,"value":7430},{"type":21,"tag":138,"props":27430,"children":27431},{"style":151},[27432],{"type":31,"value":959},{"type":21,"tag":138,"props":27434,"children":27435},{"style":213},[27436],{"type":31,"value":17931},{"type":21,"tag":138,"props":27438,"children":27439},{"style":151},[27440],{"type":31,"value":27441},")})\n",{"type":21,"tag":138,"props":27443,"children":27445},{"class":140,"line":27444},47,[27446,27450,27454,27459,27463,27467,27471,27475,27479,27483,27488,27492,27496,27500,27504,27508,27512,27516,27520],{"type":21,"tag":138,"props":27447,"children":27448},{"style":213},[27449],{"type":31,"value":954},{"type":21,"tag":138,"props":27451,"children":27452},{"style":151},[27453],{"type":31,"value":959},{"type":21,"tag":138,"props":27455,"children":27456},{"style":261},[27457],{"type":31,"value":27458},"\"mitigated:\"",{"type":21,"tag":138,"props":27460,"children":27461},{"style":151},[27462],{"type":31,"value":27377},{"type":21,"tag":138,"props":27464,"children":27465},{"style":213},[27466],{"type":31,"value":27185},{"type":21,"tag":138,"props":27468,"children":27469},{"style":151},[27470],{"type":31,"value":26709},{"type":21,"tag":138,"props":27472,"children":27473},{"style":261},[27474],{"type":31,"value":27390},{"type":21,"tag":138,"props":27476,"children":27477},{"style":151},[27478],{"type":31,"value":27395},{"type":21,"tag":138,"props":27480,"children":27481},{"style":213},[27482],{"type":31,"value":11400},{"type":21,"tag":138,"props":27484,"children":27485},{"style":151},[27486],{"type":31,"value":27487},"(mit[i], ",{"type":21,"tag":138,"props":27489,"children":27490},{"style":213},[27491],{"type":31,"value":17931},{"type":21,"tag":138,"props":27493,"children":27494},{"style":151},[27495],{"type":31,"value":1533},{"type":21,"tag":138,"props":27497,"children":27498},{"style":145},[27499],{"type":31,"value":1492},{"type":21,"tag":138,"props":27501,"children":27502},{"style":151},[27503],{"type":31,"value":7421},{"type":21,"tag":138,"props":27505,"children":27506},{"style":145},[27507],{"type":31,"value":1502},{"type":21,"tag":138,"props":27509,"children":27510},{"style":213},[27511],{"type":31,"value":7430},{"type":21,"tag":138,"props":27513,"children":27514},{"style":151},[27515],{"type":31,"value":959},{"type":21,"tag":138,"props":27517,"children":27518},{"style":213},[27519],{"type":31,"value":17931},{"type":21,"tag":138,"props":27521,"children":27522},{"style":151},[27523],{"type":31,"value":27441},{"type":21,"tag":22,"props":27525,"children":27526},{},[27527,27532],{"type":21,"tag":16815,"props":27528,"children":27529},{},[27530],{"type":31,"value":27531},"Actual output from running this",{"type":31,"value":27533}," (Qiskit 2.5.0, Aer 0.17.2, 5% readout error):",{"type":21,"tag":128,"props":27535,"children":27537},{"code":27536},"raw      : {'00': 0.4456, '01': 0.053, '10': 0.0501, '11': 0.4513}\nmitigated: {'00': 0.4931, '01': 0.0048, '10': 0.0033, '11': 0.4988}\n",[27538],{"type":21,"tag":103,"props":27539,"children":27540},{"__ignoreMap":7},[27541],{"type":31,"value":27536},{"type":21,"tag":22,"props":27543,"children":27544},{},[27545,27547,27553,27554,27560,27562,27568],{"type":31,"value":27546},"A Bell state should produce only ",{"type":21,"tag":103,"props":27548,"children":27550},{"className":27549},[],[27551],{"type":31,"value":27552},"00",{"type":31,"value":3628},{"type":21,"tag":103,"props":27555,"children":27557},{"className":27556},[],[27558],{"type":31,"value":27559},"11",{"type":31,"value":27561},". The raw run leaks 10.3% into forbidden outcomes. After mitigation, 0.8%. That is a 13× reduction in spurious counts for the cost of ",{"type":21,"tag":103,"props":27563,"children":27565},{"className":27564},[],[27566],{"type":31,"value":27567},"2^n",{"type":31,"value":27569}," short calibration circuits.",{"type":21,"tag":22,"props":27571,"children":27572},{},[27573,27575,27580,27582,27587,27589,27594],{"type":31,"value":27574},"Two caveats. The ",{"type":21,"tag":103,"props":27576,"children":27578},{"className":27577},[],[27579],{"type":31,"value":27567},{"type":31,"value":27581}," scaling means full calibration matrices die above ~10 qubits. Beyond that, use tensored (per-qubit) or correlated-subset calibration. And matrix inversion amplifies ",{"type":21,"tag":26,"props":27583,"children":27584},{"href":3115},[27585],{"type":31,"value":27586},"shot noise",{"type":31,"value":27588},", which is why the code clips negatives. Run your calibration circuits with ",{"type":21,"tag":12769,"props":27590,"children":27591},{},[27592],{"type":31,"value":27593},"more",{"type":31,"value":27595}," shots than your actual experiment, not fewer.",{"type":21,"tag":41,"props":27597,"children":27599},{"id":27598},"step-2-dynamical-decoupling-nearly-free",[27600],{"type":31,"value":27601},"Step 2: Dynamical Decoupling (Nearly Free)",{"type":21,"tag":22,"props":27603,"children":27604},{},[27605,27607,27612,27614,27620],{"type":31,"value":27606},"Idle qubits are not safe qubits. While one part of your circuit executes, everything else is dephasing at its ",{"type":21,"tag":26,"props":27608,"children":27609},{"href":15510},[27610],{"type":31,"value":27611},"T2 rate",{"type":31,"value":27613},". Dynamical decoupling inserts pulse sequences (typically ",{"type":21,"tag":103,"props":27615,"children":27617},{"className":27616},[],[27618],{"type":31,"value":27619},"X–delay–X–delay",{"type":31,"value":27621},") into idle windows, echoing away slow, low-frequency noise.",{"type":21,"tag":22,"props":27623,"children":27624},{},[27625,27627,27631],{"type":31,"value":27626},"In Qiskit this is a ",{"type":21,"tag":26,"props":27628,"children":27629},{"href":10347},[27630],{"type":31,"value":10350},{"type":31,"value":27632}," pass, not an algorithm change:",{"type":21,"tag":128,"props":27634,"children":27636},{"code":27635,"language":132,"meta":7,"className":130,"style":7},"from qiskit.transpiler import PassManager\nfrom qiskit.transpiler.passes import ALAPScheduleAnalysis, PadDynamicalDecoupling\nfrom qiskit.circuit.library import XGate\n\npm = PassManager([\n    ALAPScheduleAnalysis(durations=backend.instruction_durations),\n    PadDynamicalDecoupling(\n        durations=backend.instruction_durations,\n        dd_sequence=[XGate(), XGate()],   # XX sequence\n    ),\n])\ndd_circuit = pm.run(transpiled_circuit)\n",[27637],{"type":21,"tag":103,"props":27638,"children":27639},{"__ignoreMap":7},[27640,27661,27682,27702,27709,27726,27748,27756,27773,27795,27803,27810],{"type":21,"tag":138,"props":27641,"children":27642},{"class":140,"line":141},[27643,27647,27652,27656],{"type":21,"tag":138,"props":27644,"children":27645},{"style":145},[27646],{"type":31,"value":148},{"type":21,"tag":138,"props":27648,"children":27649},{"style":151},[27650],{"type":31,"value":27651}," qiskit.transpiler ",{"type":21,"tag":138,"props":27653,"children":27654},{"style":145},[27655],{"type":31,"value":159},{"type":21,"tag":138,"props":27657,"children":27658},{"style":151},[27659],{"type":31,"value":27660}," PassManager\n",{"type":21,"tag":138,"props":27662,"children":27663},{"class":140,"line":167},[27664,27668,27673,27677],{"type":21,"tag":138,"props":27665,"children":27666},{"style":145},[27667],{"type":31,"value":148},{"type":21,"tag":138,"props":27669,"children":27670},{"style":151},[27671],{"type":31,"value":27672}," qiskit.transpiler.passes ",{"type":21,"tag":138,"props":27674,"children":27675},{"style":145},[27676],{"type":31,"value":159},{"type":21,"tag":138,"props":27678,"children":27679},{"style":151},[27680],{"type":31,"value":27681}," ALAPScheduleAnalysis, PadDynamicalDecoupling\n",{"type":21,"tag":138,"props":27683,"children":27684},{"class":140,"line":189},[27685,27689,27693,27697],{"type":21,"tag":138,"props":27686,"children":27687},{"style":145},[27688],{"type":31,"value":148},{"type":21,"tag":138,"props":27690,"children":27691},{"style":151},[27692],{"type":31,"value":12842},{"type":21,"tag":138,"props":27694,"children":27695},{"style":145},[27696],{"type":31,"value":159},{"type":21,"tag":138,"props":27698,"children":27699},{"style":151},[27700],{"type":31,"value":27701}," XGate\n",{"type":21,"tag":138,"props":27703,"children":27704},{"class":140,"line":199},[27705],{"type":21,"tag":138,"props":27706,"children":27707},{"emptyLinePlaceholder":193},[27708],{"type":31,"value":196},{"type":21,"tag":138,"props":27710,"children":27711},{"class":140,"line":225},[27712,27717,27721],{"type":21,"tag":138,"props":27713,"children":27714},{"style":151},[27715],{"type":31,"value":27716},"pm ",{"type":21,"tag":138,"props":27718,"children":27719},{"style":145},[27720],{"type":31,"value":210},{"type":21,"tag":138,"props":27722,"children":27723},{"style":151},[27724],{"type":31,"value":27725}," PassManager([\n",{"type":21,"tag":138,"props":27727,"children":27728},{"class":140,"line":233},[27729,27734,27739,27743],{"type":21,"tag":138,"props":27730,"children":27731},{"style":151},[27732],{"type":31,"value":27733},"    ALAPScheduleAnalysis(",{"type":21,"tag":138,"props":27735,"children":27736},{"style":929},[27737],{"type":31,"value":27738},"durations",{"type":21,"tag":138,"props":27740,"children":27741},{"style":145},[27742],{"type":31,"value":210},{"type":21,"tag":138,"props":27744,"children":27745},{"style":151},[27746],{"type":31,"value":27747},"backend.instruction_durations),\n",{"type":21,"tag":138,"props":27749,"children":27750},{"class":140,"line":272},[27751],{"type":21,"tag":138,"props":27752,"children":27753},{"style":151},[27754],{"type":31,"value":27755},"    PadDynamicalDecoupling(\n",{"type":21,"tag":138,"props":27757,"children":27758},{"class":140,"line":308},[27759,27764,27768],{"type":21,"tag":138,"props":27760,"children":27761},{"style":929},[27762],{"type":31,"value":27763},"        durations",{"type":21,"tag":138,"props":27765,"children":27766},{"style":145},[27767],{"type":31,"value":210},{"type":21,"tag":138,"props":27769,"children":27770},{"style":151},[27771],{"type":31,"value":27772},"backend.instruction_durations,\n",{"type":21,"tag":138,"props":27774,"children":27775},{"class":140,"line":16},[27776,27781,27785,27790],{"type":21,"tag":138,"props":27777,"children":27778},{"style":929},[27779],{"type":31,"value":27780},"        dd_sequence",{"type":21,"tag":138,"props":27782,"children":27783},{"style":145},[27784],{"type":31,"value":210},{"type":21,"tag":138,"props":27786,"children":27787},{"style":151},[27788],{"type":31,"value":27789},"[XGate(), XGate()],   ",{"type":21,"tag":138,"props":27791,"children":27792},{"style":219},[27793],{"type":31,"value":27794},"# XX sequence\n",{"type":21,"tag":138,"props":27796,"children":27797},{"class":140,"line":360},[27798],{"type":21,"tag":138,"props":27799,"children":27800},{"style":151},[27801],{"type":31,"value":27802},"    ),\n",{"type":21,"tag":138,"props":27804,"children":27805},{"class":140,"line":368},[27806],{"type":21,"tag":138,"props":27807,"children":27808},{"style":151},[27809],{"type":31,"value":598},{"type":21,"tag":138,"props":27811,"children":27812},{"class":140,"line":377},[27813,27818,27822],{"type":21,"tag":138,"props":27814,"children":27815},{"style":151},[27816],{"type":31,"value":27817},"dd_circuit ",{"type":21,"tag":138,"props":27819,"children":27820},{"style":145},[27821],{"type":31,"value":210},{"type":21,"tag":138,"props":27823,"children":27824},{"style":151},[27825],{"type":31,"value":27826}," pm.run(transpiled_circuit)\n",{"type":21,"tag":22,"props":27828,"children":27829},{},[27830],{"type":31,"value":27831},"Cost: zero extra shots. Typical gain: 5–20% fidelity improvement on circuits with heterogeneous qubit usage. Circuits where every qubit is busy every cycle see nothing. Try it. It's the best effort-to-payoff ratio in the whole toolkit.",{"type":21,"tag":41,"props":27833,"children":27835},{"id":27834},"step-3-pauli-twirling-randomized-compiling",[27836],{"type":31,"value":27837},"Step 3: Pauli Twirling \u002F Randomized Compiling",{"type":21,"tag":22,"props":27839,"children":27840},{},[27841,27843,27848],{"type":31,"value":27842},"Coherent errors are the nasty kind. A systematic over-rotation of 0.5° per gate doesn't average out. It accumulates ",{"type":21,"tag":12769,"props":27844,"children":27845},{},[27846],{"type":31,"value":27847},"linearly",{"type":31,"value":27849}," in amplitude, so error in the expectation value grows quadratically with depth. Stochastic errors merely accumulate additively.",{"type":21,"tag":22,"props":27851,"children":27852},{},[27853],{"type":31,"value":27854},"Twirling converts the former into the latter. You compile many logically equivalent copies of your circuit, each wrapping the two-qubit gates in randomly chosen Pauli operators (with compensating Paulis so the ideal unitary is unchanged), then average the results. Coherent error terms average toward zero. What survives is a well-behaved stochastic Pauli channel.",{"type":21,"tag":22,"props":27856,"children":27857},{},[27858,27860,27865],{"type":31,"value":27859},"Twirling rarely improves accuracy much on its own. Its real value is that it makes the noise ",{"type":21,"tag":12769,"props":27861,"children":27862},{},[27863],{"type":31,"value":27864},"model-able",{"type":31,"value":27866},", and every other technique on this list (ZNE, PEC) assumes a stochastic noise channel. Twirling is what makes that assumption true. Run it underneath your other mitigation, not instead of it.",{"type":21,"tag":41,"props":27868,"children":27870},{"id":27869},"step-4-zero-noise-extrapolation",[27871],{"type":31,"value":27872},"Step 4: Zero-Noise Extrapolation",{"type":21,"tag":22,"props":27874,"children":27875},{},[27876,27878,27883],{"type":31,"value":27877},"ZNE is the technique behind most headline NISQ results, including IBM's ",{"type":21,"tag":26,"props":27879,"children":27880},{"href":23115},[27881],{"type":31,"value":27882},"quantum utility demonstration",{"type":31,"value":27884}," on a 127-qubit Eagle processor.",{"type":21,"tag":22,"props":27886,"children":27887},{},[27888,27890,27895,27897,27903,27905,27911],{"type":31,"value":27889},"The idea: you can't reduce hardware noise, but you ",{"type":21,"tag":12769,"props":27891,"children":27892},{},[27893],{"type":31,"value":27894},"increase",{"type":31,"value":27896}," it in a controlled way. Run the same circuit at noise scale factors λ = 1, 3, 5 (via unitary folding: replace ",{"type":21,"tag":103,"props":27898,"children":27900},{"className":27899},[],[27901],{"type":31,"value":27902},"U",{"type":31,"value":27904}," with ",{"type":21,"tag":103,"props":27906,"children":27908},{"className":27907},[],[27909],{"type":31,"value":27910},"U(U†U)^k",{"type":31,"value":27912},", which is logically identity-preserving but physically 3× or 5× as noisy), then fit a curve through the results and extrapolate back to λ = 0.",{"type":21,"tag":128,"props":27914,"children":27916},{"code":27915,"language":132,"meta":7,"className":130,"style":7},"def fold_global(qc, scale):\n    \"\"\"Odd integer scale: U -> U (U^dag U)^k\"\"\"\n    k = (scale - 1) \u002F\u002F 2\n    out, inv = qc.copy(), qc.inverse()\n    for _ in range(k):\n        out = out.compose(inv).compose(qc)\n    return out\n\ndef expval_parity(qc, backend, shots=40000):\n    c = qc.copy()\n    c.measure_all()\n    counts = backend.run(\n        transpile(c, backend, optimization_level=0), shots=shots\n    ).result().get_counts()\n    return sum((-1) ** (k.replace(\" \", \"\").count(\"1\") % 2) * v\n               for k, v in counts.items()) \u002F shots\n\n# 4-qubit GHZ padded with cancelling CX pairs, ideal \u003CZZZZ> = +1.0\nbase = QuantumCircuit(4)\nbase.h(0)\nfor q in range(3):\n    base.cx(q, q + 1)\nfor _ in range(4):\n    for q in range(3):\n        base.cx(q, q + 1)\n        base.cx(q, q + 1)\n\nscales = [1, 3, 5]\nvals = [expval_parity(fold_global(base, s), backend) for s in scales]\nzne = np.polyval(np.polyfit(scales, vals, 2), 0)   # Richardson, order 2\nprint(vals, \"->\", zne)\n",[27917],{"type":21,"tag":103,"props":27918,"children":27919},{"__ignoreMap":7},[27920,27937,27945,27982,27999,28023,28040,28052,28059,28089,28106,28114,28131,28169,28177,28263,28293,28300,28308,28332,28348,28379,28399,28430,28461,28481,28500,28507,28547,28582,28621],{"type":21,"tag":138,"props":27921,"children":27922},{"class":140,"line":141},[27923,27927,27932],{"type":21,"tag":138,"props":27924,"children":27925},{"style":145},[27926],{"type":31,"value":5500},{"type":21,"tag":138,"props":27928,"children":27929},{"style":4522},[27930],{"type":31,"value":27931}," fold_global",{"type":21,"tag":138,"props":27933,"children":27934},{"style":151},[27935],{"type":31,"value":27936},"(qc, scale):\n",{"type":21,"tag":138,"props":27938,"children":27939},{"class":140,"line":167},[27940],{"type":21,"tag":138,"props":27941,"children":27942},{"style":261},[27943],{"type":31,"value":27944},"    \"\"\"Odd integer scale: U -> U (U^dag U)^k\"\"\"\n",{"type":21,"tag":138,"props":27946,"children":27947},{"class":140,"line":189},[27948,27953,27957,27962,27966,27970,27974,27978],{"type":21,"tag":138,"props":27949,"children":27950},{"style":151},[27951],{"type":31,"value":27952},"    k ",{"type":21,"tag":138,"props":27954,"children":27955},{"style":145},[27956],{"type":31,"value":210},{"type":21,"tag":138,"props":27958,"children":27959},{"style":151},[27960],{"type":31,"value":27961}," (scale ",{"type":21,"tag":138,"props":27963,"children":27964},{"style":145},[27965],{"type":31,"value":831},{"type":21,"tag":138,"props":27967,"children":27968},{"style":213},[27969],{"type":31,"value":17063},{"type":21,"tag":138,"props":27971,"children":27972},{"style":151},[27973],{"type":31,"value":1533},{"type":21,"tag":138,"props":27975,"children":27976},{"style":145},[27977],{"type":31,"value":21029},{"type":21,"tag":138,"props":27979,"children":27980},{"style":213},[27981],{"type":31,"value":1610},{"type":21,"tag":138,"props":27983,"children":27984},{"class":140,"line":199},[27985,27990,27994],{"type":21,"tag":138,"props":27986,"children":27987},{"style":151},[27988],{"type":31,"value":27989},"    out, inv ",{"type":21,"tag":138,"props":27991,"children":27992},{"style":145},[27993],{"type":31,"value":210},{"type":21,"tag":138,"props":27995,"children":27996},{"style":151},[27997],{"type":31,"value":27998}," qc.copy(), qc.inverse()\n",{"type":21,"tag":138,"props":28000,"children":28001},{"class":140,"line":225},[28002,28006,28010,28014,28018],{"type":21,"tag":138,"props":28003,"children":28004},{"style":145},[28005],{"type":31,"value":17037},{"type":21,"tag":138,"props":28007,"children":28008},{"style":151},[28009],{"type":31,"value":17840},{"type":21,"tag":138,"props":28011,"children":28012},{"style":145},[28013],{"type":31,"value":1502},{"type":21,"tag":138,"props":28015,"children":28016},{"style":213},[28017],{"type":31,"value":7430},{"type":21,"tag":138,"props":28019,"children":28020},{"style":151},[28021],{"type":31,"value":28022},"(k):\n",{"type":21,"tag":138,"props":28024,"children":28025},{"class":140,"line":233},[28026,28031,28035],{"type":21,"tag":138,"props":28027,"children":28028},{"style":151},[28029],{"type":31,"value":28030},"        out ",{"type":21,"tag":138,"props":28032,"children":28033},{"style":145},[28034],{"type":31,"value":210},{"type":21,"tag":138,"props":28036,"children":28037},{"style":151},[28038],{"type":31,"value":28039}," out.compose(inv).compose(qc)\n",{"type":21,"tag":138,"props":28041,"children":28042},{"class":140,"line":272},[28043,28047],{"type":21,"tag":138,"props":28044,"children":28045},{"style":145},[28046],{"type":31,"value":5595},{"type":21,"tag":138,"props":28048,"children":28049},{"style":151},[28050],{"type":31,"value":28051}," out\n",{"type":21,"tag":138,"props":28053,"children":28054},{"class":140,"line":308},[28055],{"type":21,"tag":138,"props":28056,"children":28057},{"emptyLinePlaceholder":193},[28058],{"type":31,"value":196},{"type":21,"tag":138,"props":28060,"children":28061},{"class":140,"line":16},[28062,28066,28071,28076,28080,28085],{"type":21,"tag":138,"props":28063,"children":28064},{"style":145},[28065],{"type":31,"value":5500},{"type":21,"tag":138,"props":28067,"children":28068},{"style":4522},[28069],{"type":31,"value":28070}," expval_parity",{"type":21,"tag":138,"props":28072,"children":28073},{"style":151},[28074],{"type":31,"value":28075},"(qc, backend, shots",{"type":21,"tag":138,"props":28077,"children":28078},{"style":145},[28079],{"type":31,"value":210},{"type":21,"tag":138,"props":28081,"children":28082},{"style":213},[28083],{"type":31,"value":28084},"40000",{"type":21,"tag":138,"props":28086,"children":28087},{"style":151},[28088],{"type":31,"value":7443},{"type":21,"tag":138,"props":28090,"children":28091},{"class":140,"line":360},[28092,28097,28101],{"type":21,"tag":138,"props":28093,"children":28094},{"style":151},[28095],{"type":31,"value":28096},"    c ",{"type":21,"tag":138,"props":28098,"children":28099},{"style":145},[28100],{"type":31,"value":210},{"type":21,"tag":138,"props":28102,"children":28103},{"style":151},[28104],{"type":31,"value":28105}," qc.copy()\n",{"type":21,"tag":138,"props":28107,"children":28108},{"class":140,"line":368},[28109],{"type":21,"tag":138,"props":28110,"children":28111},{"style":151},[28112],{"type":31,"value":28113},"    c.measure_all()\n",{"type":21,"tag":138,"props":28115,"children":28116},{"class":140,"line":377},[28117,28122,28126],{"type":21,"tag":138,"props":28118,"children":28119},{"style":151},[28120],{"type":31,"value":28121},"    counts ",{"type":21,"tag":138,"props":28123,"children":28124},{"style":145},[28125],{"type":31,"value":210},{"type":21,"tag":138,"props":28127,"children":28128},{"style":151},[28129],{"type":31,"value":28130}," backend.run(\n",{"type":21,"tag":138,"props":28132,"children":28133},{"class":140,"line":386},[28134,28139,28144,28148,28152,28156,28160,28164],{"type":21,"tag":138,"props":28135,"children":28136},{"style":151},[28137],{"type":31,"value":28138},"        transpile(c, backend, ",{"type":21,"tag":138,"props":28140,"children":28141},{"style":929},[28142],{"type":31,"value":28143},"optimization_level",{"type":21,"tag":138,"props":28145,"children":28146},{"style":145},[28147],{"type":31,"value":210},{"type":21,"tag":138,"props":28149,"children":28150},{"style":213},[28151],{"type":31,"value":406},{"type":21,"tag":138,"props":28153,"children":28154},{"style":151},[28155],{"type":31,"value":27218},{"type":21,"tag":138,"props":28157,"children":28158},{"style":929},[28159],{"type":31,"value":932},{"type":21,"tag":138,"props":28161,"children":28162},{"style":145},[28163],{"type":31,"value":210},{"type":21,"tag":138,"props":28165,"children":28166},{"style":151},[28167],{"type":31,"value":28168},"shots\n",{"type":21,"tag":138,"props":28170,"children":28171},{"class":140,"line":395},[28172],{"type":21,"tag":138,"props":28173,"children":28174},{"style":151},[28175],{"type":31,"value":28176},"    ).result().get_counts()\n",{"type":21,"tag":138,"props":28178,"children":28179},{"class":140,"line":413},[28180,28184,28188,28193,28197,28201,28205,28209,28214,28219,28223,28227,28232,28237,28241,28246,28250,28254,28258],{"type":21,"tag":138,"props":28181,"children":28182},{"style":145},[28183],{"type":31,"value":5595},{"type":21,"tag":138,"props":28185,"children":28186},{"style":213},[28187],{"type":31,"value":19696},{"type":21,"tag":138,"props":28189,"children":28190},{"style":151},[28191],{"type":31,"value":28192},"((",{"type":21,"tag":138,"props":28194,"children":28195},{"style":145},[28196],{"type":31,"value":831},{"type":21,"tag":138,"props":28198,"children":28199},{"style":213},[28200],{"type":31,"value":327},{"type":21,"tag":138,"props":28202,"children":28203},{"style":151},[28204],{"type":31,"value":1533},{"type":21,"tag":138,"props":28206,"children":28207},{"style":145},[28208],{"type":31,"value":4814},{"type":21,"tag":138,"props":28210,"children":28211},{"style":151},[28212],{"type":31,"value":28213}," (k.replace(",{"type":21,"tag":138,"props":28215,"children":28216},{"style":261},[28217],{"type":31,"value":28218},"\" \"",{"type":21,"tag":138,"props":28220,"children":28221},{"style":151},[28222],{"type":31,"value":258},{"type":21,"tag":138,"props":28224,"children":28225},{"style":261},[28226],{"type":31,"value":4632},{"type":21,"tag":138,"props":28228,"children":28229},{"style":151},[28230],{"type":31,"value":28231},").count(",{"type":21,"tag":138,"props":28233,"children":28234},{"style":261},[28235],{"type":31,"value":28236},"\"1\"",{"type":21,"tag":138,"props":28238,"children":28239},{"style":151},[28240],{"type":31,"value":1533},{"type":21,"tag":138,"props":28242,"children":28243},{"style":145},[28244],{"type":31,"value":28245},"%",{"type":21,"tag":138,"props":28247,"children":28248},{"style":213},[28249],{"type":31,"value":21034},{"type":21,"tag":138,"props":28251,"children":28252},{"style":151},[28253],{"type":31,"value":1533},{"type":21,"tag":138,"props":28255,"children":28256},{"style":145},[28257],{"type":31,"value":11419},{"type":21,"tag":138,"props":28259,"children":28260},{"style":151},[28261],{"type":31,"value":28262}," v\n",{"type":21,"tag":138,"props":28264,"children":28265},{"class":140,"line":12602},[28266,28271,28276,28280,28285,28289],{"type":21,"tag":138,"props":28267,"children":28268},{"style":145},[28269],{"type":31,"value":28270},"               for",{"type":21,"tag":138,"props":28272,"children":28273},{"style":151},[28274],{"type":31,"value":28275}," k, v ",{"type":21,"tag":138,"props":28277,"children":28278},{"style":145},[28279],{"type":31,"value":1502},{"type":21,"tag":138,"props":28281,"children":28282},{"style":151},[28283],{"type":31,"value":28284}," counts.items()) ",{"type":21,"tag":138,"props":28286,"children":28287},{"style":145},[28288],{"type":31,"value":5075},{"type":21,"tag":138,"props":28290,"children":28291},{"style":151},[28292],{"type":31,"value":26941},{"type":21,"tag":138,"props":28294,"children":28295},{"class":140,"line":12619},[28296],{"type":21,"tag":138,"props":28297,"children":28298},{"emptyLinePlaceholder":193},[28299],{"type":31,"value":196},{"type":21,"tag":138,"props":28301,"children":28302},{"class":140,"line":12635},[28303],{"type":21,"tag":138,"props":28304,"children":28305},{"style":219},[28306],{"type":31,"value":28307},"# 4-qubit GHZ padded with cancelling CX pairs, ideal \u003CZZZZ> = +1.0\n",{"type":21,"tag":138,"props":28309,"children":28310},{"class":140,"line":12643},[28311,28316,28320,28324,28328],{"type":21,"tag":138,"props":28312,"children":28313},{"style":151},[28314],{"type":31,"value":28315},"base ",{"type":21,"tag":138,"props":28317,"children":28318},{"style":145},[28319],{"type":31,"value":210},{"type":21,"tag":138,"props":28321,"children":28322},{"style":151},[28323],{"type":31,"value":6305},{"type":21,"tag":138,"props":28325,"children":28326},{"style":213},[28327],{"type":31,"value":17931},{"type":21,"tag":138,"props":28329,"children":28330},{"style":151},[28331],{"type":31,"value":269},{"type":21,"tag":138,"props":28333,"children":28334},{"class":140,"line":17760},[28335,28340,28344],{"type":21,"tag":138,"props":28336,"children":28337},{"style":151},[28338],{"type":31,"value":28339},"base.h(",{"type":21,"tag":138,"props":28341,"children":28342},{"style":213},[28343],{"type":31,"value":406},{"type":21,"tag":138,"props":28345,"children":28346},{"style":151},[28347],{"type":31,"value":269},{"type":21,"tag":138,"props":28349,"children":28350},{"class":140,"line":17778},[28351,28355,28359,28363,28367,28371,28375],{"type":21,"tag":138,"props":28352,"children":28353},{"style":145},[28354],{"type":31,"value":1492},{"type":21,"tag":138,"props":28356,"children":28357},{"style":151},[28358],{"type":31,"value":20323},{"type":21,"tag":138,"props":28360,"children":28361},{"style":145},[28362],{"type":31,"value":1502},{"type":21,"tag":138,"props":28364,"children":28365},{"style":213},[28366],{"type":31,"value":7430},{"type":21,"tag":138,"props":28368,"children":28369},{"style":151},[28370],{"type":31,"value":959},{"type":21,"tag":138,"props":28372,"children":28373},{"style":213},[28374],{"type":31,"value":253},{"type":21,"tag":138,"props":28376,"children":28377},{"style":151},[28378],{"type":31,"value":7443},{"type":21,"tag":138,"props":28380,"children":28381},{"class":140,"line":17803},[28382,28387,28391,28395],{"type":21,"tag":138,"props":28383,"children":28384},{"style":151},[28385],{"type":31,"value":28386},"    base.cx(q, q ",{"type":21,"tag":138,"props":28388,"children":28389},{"style":145},[28390],{"type":31,"value":1605},{"type":21,"tag":138,"props":28392,"children":28393},{"style":213},[28394],{"type":31,"value":17063},{"type":21,"tag":138,"props":28396,"children":28397},{"style":151},[28398],{"type":31,"value":269},{"type":21,"tag":138,"props":28400,"children":28401},{"class":140,"line":17830},[28402,28406,28410,28414,28418,28422,28426],{"type":21,"tag":138,"props":28403,"children":28404},{"style":145},[28405],{"type":31,"value":1492},{"type":21,"tag":138,"props":28407,"children":28408},{"style":151},[28409],{"type":31,"value":17840},{"type":21,"tag":138,"props":28411,"children":28412},{"style":145},[28413],{"type":31,"value":1502},{"type":21,"tag":138,"props":28415,"children":28416},{"style":213},[28417],{"type":31,"value":7430},{"type":21,"tag":138,"props":28419,"children":28420},{"style":151},[28421],{"type":31,"value":959},{"type":21,"tag":138,"props":28423,"children":28424},{"style":213},[28425],{"type":31,"value":17931},{"type":21,"tag":138,"props":28427,"children":28428},{"style":151},[28429],{"type":31,"value":7443},{"type":21,"tag":138,"props":28431,"children":28432},{"class":140,"line":17856},[28433,28437,28441,28445,28449,28453,28457],{"type":21,"tag":138,"props":28434,"children":28435},{"style":145},[28436],{"type":31,"value":17037},{"type":21,"tag":138,"props":28438,"children":28439},{"style":151},[28440],{"type":31,"value":20323},{"type":21,"tag":138,"props":28442,"children":28443},{"style":145},[28444],{"type":31,"value":1502},{"type":21,"tag":138,"props":28446,"children":28447},{"style":213},[28448],{"type":31,"value":7430},{"type":21,"tag":138,"props":28450,"children":28451},{"style":151},[28452],{"type":31,"value":959},{"type":21,"tag":138,"props":28454,"children":28455},{"style":213},[28456],{"type":31,"value":253},{"type":21,"tag":138,"props":28458,"children":28459},{"style":151},[28460],{"type":31,"value":7443},{"type":21,"tag":138,"props":28462,"children":28463},{"class":140,"line":17865},[28464,28469,28473,28477],{"type":21,"tag":138,"props":28465,"children":28466},{"style":151},[28467],{"type":31,"value":28468},"        base.cx(q, q ",{"type":21,"tag":138,"props":28470,"children":28471},{"style":145},[28472],{"type":31,"value":1605},{"type":21,"tag":138,"props":28474,"children":28475},{"style":213},[28476],{"type":31,"value":17063},{"type":21,"tag":138,"props":28478,"children":28479},{"style":151},[28480],{"type":31,"value":269},{"type":21,"tag":138,"props":28482,"children":28483},{"class":140,"line":17877},[28484,28488,28492,28496],{"type":21,"tag":138,"props":28485,"children":28486},{"style":151},[28487],{"type":31,"value":28468},{"type":21,"tag":138,"props":28489,"children":28490},{"style":145},[28491],{"type":31,"value":1605},{"type":21,"tag":138,"props":28493,"children":28494},{"style":213},[28495],{"type":31,"value":17063},{"type":21,"tag":138,"props":28497,"children":28498},{"style":151},[28499],{"type":31,"value":269},{"type":21,"tag":138,"props":28501,"children":28502},{"class":140,"line":17885},[28503],{"type":21,"tag":138,"props":28504,"children":28505},{"emptyLinePlaceholder":193},[28506],{"type":31,"value":196},{"type":21,"tag":138,"props":28508,"children":28509},{"class":140,"line":17938},[28510,28515,28519,28523,28527,28531,28535,28539,28543],{"type":21,"tag":138,"props":28511,"children":28512},{"style":151},[28513],{"type":31,"value":28514},"scales ",{"type":21,"tag":138,"props":28516,"children":28517},{"style":145},[28518],{"type":31,"value":210},{"type":21,"tag":138,"props":28520,"children":28521},{"style":151},[28522],{"type":31,"value":8051},{"type":21,"tag":138,"props":28524,"children":28525},{"style":213},[28526],{"type":31,"value":327},{"type":21,"tag":138,"props":28528,"children":28529},{"style":151},[28530],{"type":31,"value":258},{"type":21,"tag":138,"props":28532,"children":28533},{"style":213},[28534],{"type":31,"value":253},{"type":21,"tag":138,"props":28536,"children":28537},{"style":151},[28538],{"type":31,"value":258},{"type":21,"tag":138,"props":28540,"children":28541},{"style":213},[28542],{"type":31,"value":11480},{"type":21,"tag":138,"props":28544,"children":28545},{"style":151},[28546],{"type":31,"value":14183},{"type":21,"tag":138,"props":28548,"children":28549},{"class":140,"line":26899},[28550,28555,28559,28564,28568,28573,28577],{"type":21,"tag":138,"props":28551,"children":28552},{"style":151},[28553],{"type":31,"value":28554},"vals ",{"type":21,"tag":138,"props":28556,"children":28557},{"style":145},[28558],{"type":31,"value":210},{"type":21,"tag":138,"props":28560,"children":28561},{"style":151},[28562],{"type":31,"value":28563}," [expval_parity(fold_global(base, s), backend) ",{"type":21,"tag":138,"props":28565,"children":28566},{"style":145},[28567],{"type":31,"value":1492},{"type":21,"tag":138,"props":28569,"children":28570},{"style":151},[28571],{"type":31,"value":28572}," s ",{"type":21,"tag":138,"props":28574,"children":28575},{"style":145},[28576],{"type":31,"value":1502},{"type":21,"tag":138,"props":28578,"children":28579},{"style":151},[28580],{"type":31,"value":28581}," scales]\n",{"type":21,"tag":138,"props":28583,"children":28584},{"class":140,"line":26944},[28585,28590,28594,28599,28603,28607,28611,28616],{"type":21,"tag":138,"props":28586,"children":28587},{"style":151},[28588],{"type":31,"value":28589},"zne ",{"type":21,"tag":138,"props":28591,"children":28592},{"style":145},[28593],{"type":31,"value":210},{"type":21,"tag":138,"props":28595,"children":28596},{"style":151},[28597],{"type":31,"value":28598}," np.polyval(np.polyfit(scales, vals, ",{"type":21,"tag":138,"props":28600,"children":28601},{"style":213},[28602],{"type":31,"value":292},{"type":21,"tag":138,"props":28604,"children":28605},{"style":151},[28606],{"type":31,"value":27218},{"type":21,"tag":138,"props":28608,"children":28609},{"style":213},[28610],{"type":31,"value":406},{"type":21,"tag":138,"props":28612,"children":28613},{"style":151},[28614],{"type":31,"value":28615},")   ",{"type":21,"tag":138,"props":28617,"children":28618},{"style":219},[28619],{"type":31,"value":28620},"# Richardson, order 2\n",{"type":21,"tag":138,"props":28622,"children":28623},{"class":140,"line":26957},[28624,28628,28633,28638],{"type":21,"tag":138,"props":28625,"children":28626},{"style":213},[28627],{"type":31,"value":954},{"type":21,"tag":138,"props":28629,"children":28630},{"style":151},[28631],{"type":31,"value":28632},"(vals, ",{"type":21,"tag":138,"props":28634,"children":28635},{"style":261},[28636],{"type":31,"value":28637},"\"->\"",{"type":21,"tag":138,"props":28639,"children":28640},{"style":151},[28641],{"type":31,"value":28642},", zne)\n",{"type":21,"tag":22,"props":28644,"children":28645},{},[28646,28651],{"type":21,"tag":16815,"props":28647,"children":28648},{},[28649],{"type":31,"value":28650},"Real measured output",{"type":31,"value":28652},", same versions, readout error switched off to isolate gate noise. With a 0.4% two-qubit error rate:",{"type":21,"tag":128,"props":28654,"children":28656},{"code":28655},"scale 1: 0.8973   scale 3: 0.7286   scale 5: 0.5767\nZNE estimate: 0.988   (exact: 1.000)\n",[28657],{"type":21,"tag":103,"props":28658,"children":28659},{"__ignoreMap":7},[28660],{"type":31,"value":28655},{"type":21,"tag":22,"props":28662,"children":28663},{},[28664],{"type":31,"value":28665},"Raw error 0.103, mitigated error 0.012. ZNE removed 88% of the bias. This is what the technique looks like when it works.",{"type":21,"tag":41,"props":28667,"children":28669},{"id":28668},"when-zne-lies",[28670],{"type":31,"value":28671},"When ZNE Lies",{"type":21,"tag":22,"props":28673,"children":28674},{},[28675],{"type":31,"value":28676},"Now turn the two-qubit error rate up to 4% and rerun the identical code:",{"type":21,"tag":128,"props":28678,"children":28680},{"code":28679},"scale 1: 0.3311   scale 3: 0.0320   scale 5: 0.0008\nZNE estimate: 0.581   (exact: 1.000)\n",[28681],{"type":21,"tag":103,"props":28682,"children":28683},{"__ignoreMap":7},[28684],{"type":31,"value":28679},{"type":21,"tag":22,"props":28686,"children":28687},{},[28688,28690,28695],{"type":31,"value":28689},"Look at what a results table would show: raw 0.33, mitigated 0.58, ideal 1.00. Mitigation \"recovered\" 76% more signal! It looks like a triumph. It is garbage. The λ=5 point is 0.0008. The signal is ",{"type":21,"tag":12769,"props":28691,"children":28692},{},[28693],{"type":31,"value":28694},"gone",{"type":31,"value":28696},". The fit is being driven by two nearly-zero numbers and one noisy one, and it happens to land somewhere between raw and truth because the curve shape forces it to.",{"type":21,"tag":22,"props":28698,"children":28699},{},[28700,28702,28708,28710,28715,28717,28722],{"type":31,"value":28701},"This is precisely the failure mode Köster and Mauerer characterize in ",{"type":21,"tag":26,"props":28703,"children":28705},{"href":28704},"\u002Fresearch\u002Fzne-artefactual-improvements-2026",[28706],{"type":31,"value":28707},"Artefactual Improvements in Zero-Noise Extrapolation",{"type":31,"value":28709}," (2026). Their finding: once noise amplification pushes past usable signal, ",{"type":21,"tag":16815,"props":28711,"children":28712},{},[28713],{"type":31,"value":28714},"Richardson extrapolation degenerates into a fixed rescaling of a single noisy measurement",{"type":31,"value":28716},". The output is no longer a function of the noise amplification it supposedly corrects for. The amplified points contribute nothing but their own vanishing. On real hardware they measured runs that ",{"type":21,"tag":12769,"props":28718,"children":28719},{},[28720],{"type":31,"value":28721},"overshot",{"type":31,"value":28723}," the ideal value by up to 21%.",{"type":21,"tag":22,"props":28725,"children":28726},{},[28727,28729,28734],{"type":31,"value":28728},"Their sharpest result is a negative control. They defined \"garbage folding\" (circuit modifications with no relationship to the identity-insertion ZNE requires, i.e. deliberately meaningless) and pushed those through the same pipeline. It produced ",{"type":21,"tag":12769,"props":28730,"children":28731},{},[28732],{"type":31,"value":28733},"larger",{"type":31,"value":28735}," apparent improvements than legitimate folding. If nonsense scores better than the real method, the score is not measuring what you think it is.",{"type":21,"tag":22,"props":28737,"children":28738},{},[28739,28744],{"type":21,"tag":16815,"props":28740,"children":28741},{},[28742],{"type":31,"value":28743},"The operational lesson: improvement magnitude never validates a mitigation result.",{"type":31,"value":28745}," A number moving toward the expected answer is not evidence the method worked. It might instead be evidence the method collapsed into a rescaling that happens to move numbers in that direction.",{"type":21,"tag":41,"props":28747,"children":28749},{"id":28748},"the-sanity-checks-that-catch-this",[28750],{"type":31,"value":28751},"The Sanity Checks That Catch This",{"type":21,"tag":22,"props":28753,"children":28754},{},[28755],{"type":31,"value":28756},"Three of them, none expensive:",{"type":21,"tag":22,"props":28758,"children":28759},{},[28760,28765,28767,28773],{"type":21,"tag":16815,"props":28761,"children":28762},{},[28763],{"type":31,"value":28764},"1. Inspect the raw scale-factor points, always.",{"type":31,"value":28766}," If your highest-λ value has collapsed toward the fully-depolarized value (0 for a parity observable, 1\u002F2^n for a probability), discard it. Fitting through dead points is fitting noise. In the failing run above, one glance at ",{"type":21,"tag":103,"props":28768,"children":28770},{"className":28769},[],[28771],{"type":31,"value":28772},"0.0008",{"type":31,"value":28774}," tells you the extrapolation is unsupported.",{"type":21,"tag":22,"props":28776,"children":28777},{},[28778,28783,28785,28790,28792,28798,28800,28805],{"type":21,"tag":16815,"props":28779,"children":28780},{},[28781],{"type":31,"value":28782},"2. Run a negative control.",{"type":31,"value":28784}," Build a variant of your folding that ",{"type":21,"tag":12769,"props":28786,"children":28787},{},[28788],{"type":31,"value":28789},"shouldn't",{"type":31,"value":28791}," work (random gates of comparable depth instead of ",{"type":21,"tag":103,"props":28793,"children":28795},{"className":28794},[],[28796],{"type":31,"value":28797},"U†U",{"type":31,"value":28799}," pairs) and push it through the identical pipeline. In my failing case, garbage folding returned 0.186 against a raw value of 0.329: it moved the answer ",{"type":21,"tag":12769,"props":28801,"children":28802},{},[28803],{"type":31,"value":28804},"away",{"type":31,"value":28806}," from truth. That divergence is the flag. Whether your control produces spurious improvement or spurious degradation, any large response to meaningless input means your pipeline is fitting artifacts.",{"type":21,"tag":22,"props":28808,"children":28809},{},[28810,28821],{"type":21,"tag":16815,"props":28811,"children":28812},{},[28813,28815,28819],{"type":31,"value":28814},"3. Verify against a ",{"type":21,"tag":26,"props":28816,"children":28817},{"href":3304},[28818],{"type":31,"value":9824},{"type":31,"value":28820}," at small scale.",{"type":31,"value":28822}," Run the same mitigation pipeline on a problem size you compute exactly. If ZNE doesn't recover the known response at 6 qubits, nothing about 60 qubits will be trustworthy.",{"type":21,"tag":41,"props":28824,"children":28826},{"id":28825},"probabilistic-error-cancellation-briefly",[28827],{"type":31,"value":28828},"Probabilistic Error Cancellation (Briefly)",{"type":21,"tag":22,"props":28830,"children":28831},{},[28832,28834,28839],{"type":31,"value":28833},"PEC is the rigorous option. Characterize the noise channel precisely, express the ",{"type":21,"tag":12769,"props":28835,"children":28836},{},[28837],{"type":31,"value":28838},"inverse",{"type":31,"value":28840}," channel as a quasi-probability distribution over implementable operations, then sample from it with signed weights. It's unbiased in principle. No extrapolation guesswork.",{"type":21,"tag":22,"props":28842,"children":28843},{},[28844,28846,28852],{"type":31,"value":28845},"The cost is brutal. Sampling overhead scales as γ², where γ grows exponentially in circuit depth × error rate. A modest circuit sometimes needs 100-10,000 times more shots than the unmitigated run, on top of an expensive noise-characterization phase (gate set tomography or cycle benchmarking). PEC is appropriate for small, high-value circuits where you need a trustworthy number and afford the ",{"type":21,"tag":26,"props":28847,"children":28849},{"href":28848},"\u002Fglossary\u002Fshot-budget",[28850],{"type":31,"value":28851},"shot budget",{"type":31,"value":28853},". For most work, it isn't.",{"type":21,"tag":41,"props":28855,"children":28857},{"id":28856},"what-to-do",[28858],{"type":31,"value":28859},"What To Do",{"type":21,"tag":22,"props":28861,"children":28862},{},[28863],{"type":31,"value":28864},"In order:",{"type":21,"tag":67,"props":28866,"children":28867},{},[28868,28878,28888,28898,28908],{"type":21,"tag":71,"props":28869,"children":28870},{},[28871,28876],{"type":21,"tag":16815,"props":28872,"children":28873},{},[28874],{"type":31,"value":28875},"Readout mitigation",{"type":31,"value":28877},": always. Cheap, bounded, low-risk.",{"type":21,"tag":71,"props":28879,"children":28880},{},[28881,28886],{"type":21,"tag":16815,"props":28882,"children":28883},{},[28884],{"type":31,"value":28885},"Dynamical decoupling",{"type":31,"value":28887},": always, if your circuit has idle qubits. Free.",{"type":21,"tag":71,"props":28889,"children":28890},{},[28891,28896],{"type":21,"tag":16815,"props":28892,"children":28893},{},[28894],{"type":31,"value":28895},"Twirling",{"type":31,"value":28897},": if you plan to use ZNE or PEC, so the noise is stochastic.",{"type":21,"tag":71,"props":28899,"children":28900},{},[28901,28906],{"type":21,"tag":16815,"props":28902,"children":28903},{},[28904],{"type":31,"value":28905},"ZNE",{"type":31,"value":28907},": only with scale-factor inspection and a negative control.",{"type":21,"tag":71,"props":28909,"children":28910},{},[28911,28916],{"type":21,"tag":16815,"props":28912,"children":28913},{},[28914],{"type":31,"value":28915},"PEC",{"type":31,"value":28917},": only when the circuit is little and the answer matters more than the cost.",{"type":21,"tag":22,"props":28919,"children":28920},{},[28921,28926,28928,28933,28935,28940],{"type":21,"tag":16815,"props":28922,"children":28923},{},[28924],{"type":31,"value":28925},"Skip mitigation entirely when:",{"type":31,"value":28927}," your raw signal is already below ~0.2 of its ideal magnitude (nothing to extrapolate from), your circuit is deep enough that the λ=3 run is fully depolarized, or you're doing variational optimization where the optimizer only needs the ",{"type":21,"tag":12769,"props":28929,"children":28930},{},[28931],{"type":31,"value":28932},"gradient direction",{"type":31,"value":28934},": bias that's roughly constant across parameter space often cancels out, and you're better off spending those shots on more iterations. Techniques for that are in ",{"type":21,"tag":26,"props":28936,"children":28937},{"href":18594},[28938],{"type":31,"value":28939},"cutting your shot count",{"type":31,"value":6678},{"type":21,"tag":22,"props":28942,"children":28943},{},[28944,28946,28951],{"type":31,"value":28945},"Mitigation buys you a few years of useful computation on machines that shouldn't be useful yet. It does not buy you fault tolerance, and it will happily hand you a confident wrong answer if you skip the controls. Get comfortable with the ",{"type":21,"tag":26,"props":28947,"children":28948},{"href":1126},[28949],{"type":31,"value":28950},"Qiskit tooling",{"type":31,"value":28952},", always sanity-check against exact simulation, and treat any unvalidated improvement as a hypothesis rather than a result.",{"type":21,"tag":22,"props":28954,"children":28955},{},[28956,28961,28962,28967,28969,28974,28975],{"type":21,"tag":16815,"props":28957,"children":28958},{},[28959],{"type":31,"value":28960},"Related:",{"type":31,"value":22965},{"type":21,"tag":26,"props":28963,"children":28964},{"href":15622},[28965],{"type":31,"value":28966},"Error correction explained",{"type":31,"value":28968}," · ",{"type":21,"tag":26,"props":28970,"children":28971},{"href":28704},[28972],{"type":31,"value":28973},"ZNE artefacts paper",{"type":31,"value":28968},{"type":21,"tag":26,"props":28976,"children":28978},{"href":28977},"\u002Fglossary\u002Fquantum-utility",[28979],{"type":31,"value":28980},"Quantum utility",{"type":21,"tag":1174,"props":28982,"children":28983},{},[28984],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":28986},[28987,28988,28989,28990,28991,28992,28993,28994,28995],{"id":25941,"depth":167,"text":25944},{"id":26131,"depth":167,"text":26134},{"id":27598,"depth":167,"text":27601},{"id":27834,"depth":167,"text":27837},{"id":27869,"depth":167,"text":27872},{"id":28668,"depth":167,"text":28671},{"id":28748,"depth":167,"text":28751},{"id":28825,"depth":167,"text":28828},{"id":28856,"depth":167,"text":28859},"content:blog:error-mitigation-practical-guide.md","blog\u002Ferror-mitigation-practical-guide.md","blog\u002Ferror-mitigation-practical-guide",{"_path":29000,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":29001,"description":29002,"date":25065,"author":11,"tags":29003,"readingTime":360,"body":29004,"_type":1193,"_id":30712,"_source":1195,"_file":30713,"_stem":30714,"_extension":1198},"\u002Fblog\u002Fgrover-algorithm-tutorial","Grover's Algorithm in Qiskit: A Practical Tutorial","Build Grover's search algorithm from scratch in Qiskit: oracle, diffuser, and the optimal iteration count, with complete runnable code and honest limits on the quadratic speedup.",[13,14,3054],{"type":18,"children":29005,"toc":30700},[29006,29016,29021,29027,29032,29037,29049,29055,29060,29090,29095,29101,29113,29263,29275,29281,29286,29307,29624,29652,29658,29663,29884,29896,29902,29907,29915,29925,29930,30340,30345,30353,30365,30371,30383,30388,30396,30408,30420,30426,30431,30448,30458,30482,30494,30500,30512,30580,30599,30618,30624,30696],{"type":21,"tag":22,"props":29007,"children":29008},{},[29009,29014],{"type":21,"tag":26,"props":29010,"children":29011},{"href":1229},[29012],{"type":31,"value":29013},"Grover's algorithm",{"type":31,"value":29015}," is the second-most-famous quantum algorithm after Shor's, and it is by far the easier one to build. You implement a working version in about forty lines of Qiskit and watch the marked state emerge from the noise floor.",{"type":21,"tag":22,"props":29017,"children":29018},{},[29019],{"type":31,"value":29020},"It's also the algorithm most commonly misunderstood. This guide builds it step by step, shows the mistake that almost every beginner makes, and is honest about what the speedup does and does not buy you.",{"type":21,"tag":41,"props":29022,"children":29024},{"id":29023},"the-problem-unstructured-search",[29025],{"type":31,"value":29026},"The Problem: Unstructured Search",{"type":21,"tag":22,"props":29028,"children":29029},{},[29030],{"type":31,"value":29031},"You have N possibilities. Exactly one of them (or a few) satisfies some condition. You have no structure to exploit: no sorting, no index, no gradient, nothing that lets you rule out half the space with one look. Your only tool is a checker function: hand it a candidate, it tells you yes or no.",{"type":21,"tag":22,"props":29033,"children":29034},{},[29035],{"type":31,"value":29036},"Classically, you have no choice but to try candidates one at a time. On average that's N\u002F2 checks, and N in the worst case. Grover's algorithm finds the answer in roughly (π\u002F4)√N checks. For N = 1,000,000 that's about 785 instead of 500,000.",{"type":21,"tag":22,"props":29038,"children":29039},{},[29040,29042,29047],{"type":31,"value":29041},"The word ",{"type":21,"tag":16815,"props":29043,"children":29044},{},[29045],{"type":31,"value":29046},"unstructured",{"type":31,"value":29048}," is doing enormous work here. It does not mean \"hard\". It means \"the only thing you do is test candidates\". If your problem has any exploitable structure (sorted data, a hash index, a metric that lets you prune), classical algorithms will use it and will crush Grover. The classic \"search a database of N records\" framing is genuinely misleading, and we'll come back to why.",{"type":21,"tag":41,"props":29050,"children":29052},{"id":29051},"the-core-idea-amplitude-amplification",[29053],{"type":31,"value":29054},"The Core Idea: Amplitude Amplification",{"type":21,"tag":22,"props":29056,"children":29057},{},[29058],{"type":31,"value":29059},"Start with every state equally likely. Then repeat two operations:",{"type":21,"tag":67,"props":29061,"children":29062},{},[29063,29080],{"type":21,"tag":71,"props":29064,"children":29065},{},[29066,29071,29073,29078],{"type":21,"tag":16815,"props":29067,"children":29068},{},[29069],{"type":31,"value":29070},"The oracle",{"type":31,"value":29072}," flips the ",{"type":21,"tag":12769,"props":29074,"children":29075},{},[29076],{"type":31,"value":29077},"sign",{"type":31,"value":29079}," of the amplitude of the marked state, leaving everything else alone. Probabilities don't change (all amplitudes are still ±1\u002F√N) but the marked one now points the other way.",{"type":21,"tag":71,"props":29081,"children":29082},{},[29083,29088],{"type":21,"tag":16815,"props":29084,"children":29085},{},[29086],{"type":31,"value":29087},"The diffusion operator",{"type":31,"value":29089}," reflects every amplitude about their mean. Since the marked amplitude is negative it sits far below the mean, so reflecting it sends it well above. Every other amplitude drops slightly.",{"type":21,"tag":22,"props":29091,"children":29092},{},[29093],{"type":31,"value":29094},"Each round is a rotation of the state vector toward the target by a fixed angle. That's the whole algorithm. The rotation angle is fixed, which is exactly why overshooting is possible. More on that shortly.",{"type":21,"tag":41,"props":29096,"children":29098},{"id":29097},"step-1-uniform-superposition",[29099],{"type":31,"value":29100},"Step 1: Uniform Superposition",{"type":21,"tag":22,"props":29102,"children":29103},{},[29104,29106,29111],{"type":31,"value":29105},"Apply a ",{"type":21,"tag":26,"props":29107,"children":29108},{"href":3096},[29109],{"type":31,"value":29110},"Hadamard gate",{"type":31,"value":29112}," to every qubit. Three qubits give eight basis states each with amplitude 1\u002F√8.",{"type":21,"tag":128,"props":29114,"children":29116},{"code":29115,"language":132,"meta":7,"className":130,"style":7},"from qiskit import QuantumCircuit, transpile\nfrom qiskit_aer import AerSimulator\nimport math\n\nn = 3                # 3 qubits -> N = 8 states\nmarked = \"101\"       # the state we want to find\n\nqc = QuantumCircuit(n, n)\nqc.h(range(n))       # uniform superposition\n",[29117],{"type":21,"tag":103,"props":29118,"children":29119},{"__ignoreMap":7},[29120,29139,29158,29170,29177,29198,29220,29227,29242],{"type":21,"tag":138,"props":29121,"children":29122},{"class":140,"line":141},[29123,29127,29131,29135],{"type":21,"tag":138,"props":29124,"children":29125},{"style":145},[29126],{"type":31,"value":148},{"type":21,"tag":138,"props":29128,"children":29129},{"style":151},[29130],{"type":31,"value":154},{"type":21,"tag":138,"props":29132,"children":29133},{"style":145},[29134],{"type":31,"value":159},{"type":21,"tag":138,"props":29136,"children":29137},{"style":151},[29138],{"type":31,"value":20069},{"type":21,"tag":138,"props":29140,"children":29141},{"class":140,"line":167},[29142,29146,29150,29154],{"type":21,"tag":138,"props":29143,"children":29144},{"style":145},[29145],{"type":31,"value":148},{"type":21,"tag":138,"props":29147,"children":29148},{"style":151},[29149],{"type":31,"value":177},{"type":21,"tag":138,"props":29151,"children":29152},{"style":145},[29153],{"type":31,"value":159},{"type":21,"tag":138,"props":29155,"children":29156},{"style":151},[29157],{"type":31,"value":186},{"type":21,"tag":138,"props":29159,"children":29160},{"class":140,"line":189},[29161,29165],{"type":21,"tag":138,"props":29162,"children":29163},{"style":145},[29164],{"type":31,"value":159},{"type":21,"tag":138,"props":29166,"children":29167},{"style":151},[29168],{"type":31,"value":29169}," math\n",{"type":21,"tag":138,"props":29171,"children":29172},{"class":140,"line":199},[29173],{"type":21,"tag":138,"props":29174,"children":29175},{"emptyLinePlaceholder":193},[29176],{"type":31,"value":196},{"type":21,"tag":138,"props":29178,"children":29179},{"class":140,"line":225},[29180,29184,29188,29193],{"type":21,"tag":138,"props":29181,"children":29182},{"style":151},[29183],{"type":31,"value":19300},{"type":21,"tag":138,"props":29185,"children":29186},{"style":145},[29187],{"type":31,"value":210},{"type":21,"tag":138,"props":29189,"children":29190},{"style":213},[29191],{"type":31,"value":29192}," 3",{"type":21,"tag":138,"props":29194,"children":29195},{"style":219},[29196],{"type":31,"value":29197},"                # 3 qubits -> N = 8 states\n",{"type":21,"tag":138,"props":29199,"children":29200},{"class":140,"line":233},[29201,29206,29210,29215],{"type":21,"tag":138,"props":29202,"children":29203},{"style":151},[29204],{"type":31,"value":29205},"marked ",{"type":21,"tag":138,"props":29207,"children":29208},{"style":145},[29209],{"type":31,"value":210},{"type":21,"tag":138,"props":29211,"children":29212},{"style":261},[29213],{"type":31,"value":29214}," \"101\"",{"type":21,"tag":138,"props":29216,"children":29217},{"style":219},[29218],{"type":31,"value":29219},"       # the state we want to find\n",{"type":21,"tag":138,"props":29221,"children":29222},{"class":140,"line":272},[29223],{"type":21,"tag":138,"props":29224,"children":29225},{"emptyLinePlaceholder":193},[29226],{"type":31,"value":196},{"type":21,"tag":138,"props":29228,"children":29229},{"class":140,"line":308},[29230,29234,29238],{"type":21,"tag":138,"props":29231,"children":29232},{"style":151},[29233],{"type":31,"value":348},{"type":21,"tag":138,"props":29235,"children":29236},{"style":145},[29237],{"type":31,"value":210},{"type":21,"tag":138,"props":29239,"children":29240},{"style":151},[29241],{"type":31,"value":26687},{"type":21,"tag":138,"props":29243,"children":29244},{"class":140,"line":16},[29245,29249,29253,29258],{"type":21,"tag":138,"props":29246,"children":29247},{"style":151},[29248],{"type":31,"value":441},{"type":21,"tag":138,"props":29250,"children":29251},{"style":213},[29252],{"type":31,"value":17726},{"type":21,"tag":138,"props":29254,"children":29255},{"style":151},[29256],{"type":31,"value":29257},"(n))       ",{"type":21,"tag":138,"props":29259,"children":29260},{"style":219},[29261],{"type":31,"value":29262},"# uniform superposition\n",{"type":21,"tag":22,"props":29264,"children":29265},{},[29266,29268,29273],{"type":31,"value":29267},"If you ",{"type":21,"tag":26,"props":29269,"children":29270},{"href":14880},[29271],{"type":31,"value":29272},"measure",{"type":31,"value":29274}," here you get a uniform random bitstring: 12.5% for each of the eight outcomes. That's the baseline to beat.",{"type":21,"tag":41,"props":29276,"children":29278},{"id":29277},"step-2-the-oracle",[29279],{"type":31,"value":29280},"Step 2: The Oracle",{"type":21,"tag":22,"props":29282,"children":29283},{},[29284],{"type":31,"value":29285},"The oracle must apply a phase of −1 to |101⟩ and +1 to everything else. The trick is a multi-controlled Z gate: it flips the sign of |111⟩ only. To mark a different pattern, sandwich it with X gates on the qubits that should be 0.",{"type":21,"tag":22,"props":29287,"children":29288},{},[29289,29291,29297,29299,29305],{"type":31,"value":29290},"Qiskit has no ",{"type":21,"tag":103,"props":29292,"children":29294},{"className":29293},[],[29295],{"type":31,"value":29296},"mcz",{"type":31,"value":29298},", so we build it the standard way: an H on the target, a multi-controlled X (",{"type":21,"tag":26,"props":29300,"children":29302},{"href":29301},"\u002Fglossary\u002Ftoffoli-gate",[29303],{"type":31,"value":29304},"Toffoli",{"type":31,"value":29306}," generalized), an H back:",{"type":21,"tag":128,"props":29308,"children":29310},{"code":29309,"language":132,"meta":7,"className":130,"style":7},"def oracle(n, marked):\n    \"\"\"Phase-flip the marked basis state.\"\"\"\n    qc = QuantumCircuit(n, name=\"Oracle\")\n    rev = marked[::-1]              # Qiskit is little-endian\n    for i, bit in enumerate(rev):\n        if bit == \"0\":\n            qc.x(i)\n    qc.h(n - 1)                     # multi-controlled Z\n    qc.mcx(list(range(n - 1)), n - 1)\n    qc.h(n - 1)\n    for i, bit in enumerate(rev):\n        if bit == \"0\":\n            qc.x(i)\n    return qc\n",[29311],{"type":21,"tag":103,"props":29312,"children":29313},{"__ignoreMap":7},[29314,29331,29339,29373,29407,29432,29458,29466,29492,29541,29560,29583,29606,29613],{"type":21,"tag":138,"props":29315,"children":29316},{"class":140,"line":141},[29317,29321,29326],{"type":21,"tag":138,"props":29318,"children":29319},{"style":145},[29320],{"type":31,"value":5500},{"type":21,"tag":138,"props":29322,"children":29323},{"style":4522},[29324],{"type":31,"value":29325}," oracle",{"type":21,"tag":138,"props":29327,"children":29328},{"style":151},[29329],{"type":31,"value":29330},"(n, marked):\n",{"type":21,"tag":138,"props":29332,"children":29333},{"class":140,"line":167},[29334],{"type":21,"tag":138,"props":29335,"children":29336},{"style":261},[29337],{"type":31,"value":29338},"    \"\"\"Phase-flip the marked basis state.\"\"\"\n",{"type":21,"tag":138,"props":29340,"children":29341},{"class":140,"line":189},[29342,29346,29350,29355,29360,29364,29369],{"type":21,"tag":138,"props":29343,"children":29344},{"style":151},[29345],{"type":31,"value":17784},{"type":21,"tag":138,"props":29347,"children":29348},{"style":145},[29349],{"type":31,"value":210},{"type":21,"tag":138,"props":29351,"children":29352},{"style":151},[29353],{"type":31,"value":29354}," QuantumCircuit(n, ",{"type":21,"tag":138,"props":29356,"children":29357},{"style":929},[29358],{"type":31,"value":29359},"name",{"type":21,"tag":138,"props":29361,"children":29362},{"style":145},[29363],{"type":31,"value":210},{"type":21,"tag":138,"props":29365,"children":29366},{"style":261},[29367],{"type":31,"value":29368},"\"Oracle\"",{"type":21,"tag":138,"props":29370,"children":29371},{"style":151},[29372],{"type":31,"value":269},{"type":21,"tag":138,"props":29374,"children":29375},{"class":140,"line":199},[29376,29381,29385,29390,29394,29398,29403],{"type":21,"tag":138,"props":29377,"children":29378},{"style":151},[29379],{"type":31,"value":29380},"    rev ",{"type":21,"tag":138,"props":29382,"children":29383},{"style":145},[29384],{"type":31,"value":210},{"type":21,"tag":138,"props":29386,"children":29387},{"style":151},[29388],{"type":31,"value":29389}," marked[::",{"type":21,"tag":138,"props":29391,"children":29392},{"style":145},[29393],{"type":31,"value":831},{"type":21,"tag":138,"props":29395,"children":29396},{"style":213},[29397],{"type":31,"value":327},{"type":21,"tag":138,"props":29399,"children":29400},{"style":151},[29401],{"type":31,"value":29402},"]              ",{"type":21,"tag":138,"props":29404,"children":29405},{"style":219},[29406],{"type":31,"value":26758},{"type":21,"tag":138,"props":29408,"children":29409},{"class":140,"line":225},[29410,29414,29419,29423,29427],{"type":21,"tag":138,"props":29411,"children":29412},{"style":145},[29413],{"type":31,"value":17037},{"type":21,"tag":138,"props":29415,"children":29416},{"style":151},[29417],{"type":31,"value":29418}," i, bit ",{"type":21,"tag":138,"props":29420,"children":29421},{"style":145},[29422],{"type":31,"value":1502},{"type":21,"tag":138,"props":29424,"children":29425},{"style":213},[29426],{"type":31,"value":26779},{"type":21,"tag":138,"props":29428,"children":29429},{"style":151},[29430],{"type":31,"value":29431},"(rev):\n",{"type":21,"tag":138,"props":29433,"children":29434},{"class":140,"line":233},[29435,29440,29445,29449,29454],{"type":21,"tag":138,"props":29436,"children":29437},{"style":145},[29438],{"type":31,"value":29439},"        if",{"type":21,"tag":138,"props":29441,"children":29442},{"style":151},[29443],{"type":31,"value":29444}," bit ",{"type":21,"tag":138,"props":29446,"children":29447},{"style":145},[29448],{"type":31,"value":7348},{"type":21,"tag":138,"props":29450,"children":29451},{"style":261},[29452],{"type":31,"value":29453}," \"0\"",{"type":21,"tag":138,"props":29455,"children":29456},{"style":151},[29457],{"type":31,"value":26811},{"type":21,"tag":138,"props":29459,"children":29460},{"class":140,"line":272},[29461],{"type":21,"tag":138,"props":29462,"children":29463},{"style":151},[29464],{"type":31,"value":29465},"            qc.x(i)\n",{"type":21,"tag":138,"props":29467,"children":29468},{"class":140,"line":308},[29469,29474,29478,29482,29487],{"type":21,"tag":138,"props":29470,"children":29471},{"style":151},[29472],{"type":31,"value":29473},"    qc.h(n ",{"type":21,"tag":138,"props":29475,"children":29476},{"style":145},[29477],{"type":31,"value":831},{"type":21,"tag":138,"props":29479,"children":29480},{"style":213},[29481],{"type":31,"value":17063},{"type":21,"tag":138,"props":29483,"children":29484},{"style":151},[29485],{"type":31,"value":29486},")                     ",{"type":21,"tag":138,"props":29488,"children":29489},{"style":219},[29490],{"type":31,"value":29491},"# multi-controlled Z\n",{"type":21,"tag":138,"props":29493,"children":29494},{"class":140,"line":16},[29495,29500,29504,29508,29512,29516,29520,29524,29529,29533,29537],{"type":21,"tag":138,"props":29496,"children":29497},{"style":151},[29498],{"type":31,"value":29499},"    qc.mcx(",{"type":21,"tag":138,"props":29501,"children":29502},{"style":213},[29503],{"type":31,"value":19480},{"type":21,"tag":138,"props":29505,"children":29506},{"style":151},[29507],{"type":31,"value":959},{"type":21,"tag":138,"props":29509,"children":29510},{"style":213},[29511],{"type":31,"value":17726},{"type":21,"tag":138,"props":29513,"children":29514},{"style":151},[29515],{"type":31,"value":17054},{"type":21,"tag":138,"props":29517,"children":29518},{"style":145},[29519],{"type":31,"value":831},{"type":21,"tag":138,"props":29521,"children":29522},{"style":213},[29523],{"type":31,"value":17063},{"type":21,"tag":138,"props":29525,"children":29526},{"style":151},[29527],{"type":31,"value":29528},")), n ",{"type":21,"tag":138,"props":29530,"children":29531},{"style":145},[29532],{"type":31,"value":831},{"type":21,"tag":138,"props":29534,"children":29535},{"style":213},[29536],{"type":31,"value":17063},{"type":21,"tag":138,"props":29538,"children":29539},{"style":151},[29540],{"type":31,"value":269},{"type":21,"tag":138,"props":29542,"children":29543},{"class":140,"line":360},[29544,29548,29552,29556],{"type":21,"tag":138,"props":29545,"children":29546},{"style":151},[29547],{"type":31,"value":29473},{"type":21,"tag":138,"props":29549,"children":29550},{"style":145},[29551],{"type":31,"value":831},{"type":21,"tag":138,"props":29553,"children":29554},{"style":213},[29555],{"type":31,"value":17063},{"type":21,"tag":138,"props":29557,"children":29558},{"style":151},[29559],{"type":31,"value":269},{"type":21,"tag":138,"props":29561,"children":29562},{"class":140,"line":368},[29563,29567,29571,29575,29579],{"type":21,"tag":138,"props":29564,"children":29565},{"style":145},[29566],{"type":31,"value":17037},{"type":21,"tag":138,"props":29568,"children":29569},{"style":151},[29570],{"type":31,"value":29418},{"type":21,"tag":138,"props":29572,"children":29573},{"style":145},[29574],{"type":31,"value":1502},{"type":21,"tag":138,"props":29576,"children":29577},{"style":213},[29578],{"type":31,"value":26779},{"type":21,"tag":138,"props":29580,"children":29581},{"style":151},[29582],{"type":31,"value":29431},{"type":21,"tag":138,"props":29584,"children":29585},{"class":140,"line":377},[29586,29590,29594,29598,29602],{"type":21,"tag":138,"props":29587,"children":29588},{"style":145},[29589],{"type":31,"value":29439},{"type":21,"tag":138,"props":29591,"children":29592},{"style":151},[29593],{"type":31,"value":29444},{"type":21,"tag":138,"props":29595,"children":29596},{"style":145},[29597],{"type":31,"value":7348},{"type":21,"tag":138,"props":29599,"children":29600},{"style":261},[29601],{"type":31,"value":29453},{"type":21,"tag":138,"props":29603,"children":29604},{"style":151},[29605],{"type":31,"value":26811},{"type":21,"tag":138,"props":29607,"children":29608},{"class":140,"line":386},[29609],{"type":21,"tag":138,"props":29610,"children":29611},{"style":151},[29612],{"type":31,"value":29465},{"type":21,"tag":138,"props":29614,"children":29615},{"class":140,"line":395},[29616,29620],{"type":21,"tag":138,"props":29617,"children":29618},{"style":145},[29619],{"type":31,"value":5595},{"type":21,"tag":138,"props":29621,"children":29622},{"style":151},[29623],{"type":31,"value":17750},{"type":21,"tag":22,"props":29625,"children":29626},{},[29627,29629,29634,29636,29642,29644,29650],{"type":31,"value":29628},"Watch the endianness. Qiskit orders bitstrings with qubit 0 on the ",{"type":21,"tag":16815,"props":29630,"children":29631},{},[29632],{"type":31,"value":29633},"right",{"type":31,"value":29635},", so ",{"type":21,"tag":103,"props":29637,"children":29639},{"className":29638},[],[29640],{"type":31,"value":29641},"marked[::-1]",{"type":31,"value":29643}," maps the string to qubit indices. Getting this backwards is the second most common bug in Grover implementations and it fails silently. You'll amplify ",{"type":21,"tag":103,"props":29645,"children":29647},{"className":29646},[],[29648],{"type":31,"value":29649},"101",{"type":31,"value":29651}," reversed and wonder why.",{"type":21,"tag":41,"props":29653,"children":29655},{"id":29654},"step-3-the-diffusion-operator",[29656],{"type":31,"value":29657},"Step 3: The Diffusion Operator",{"type":21,"tag":22,"props":29659,"children":29660},{},[29661],{"type":31,"value":29662},"Inversion about the mean is H⊗n, then X⊗n, then a multi-controlled Z, then X⊗n, then H⊗n. Structurally it's a reflection about the uniform superposition state:",{"type":21,"tag":128,"props":29664,"children":29666},{"code":29665,"language":132,"meta":7,"className":130,"style":7},"def diffuser(n):\n    \"\"\"Inversion about the mean.\"\"\"\n    qc = QuantumCircuit(n, name=\"Diffuser\")\n    qc.h(range(n))\n    qc.x(range(n))\n    qc.h(n - 1)\n    qc.mcx(list(range(n - 1)), n - 1)\n    qc.h(n - 1)\n    qc.x(range(n))\n    qc.h(range(n))\n    return qc\n",[29667],{"type":21,"tag":103,"props":29668,"children":29669},{"__ignoreMap":7},[29670,29687,29695,29727,29743,29758,29777,29824,29843,29858,29873],{"type":21,"tag":138,"props":29671,"children":29672},{"class":140,"line":141},[29673,29677,29682],{"type":21,"tag":138,"props":29674,"children":29675},{"style":145},[29676],{"type":31,"value":5500},{"type":21,"tag":138,"props":29678,"children":29679},{"style":4522},[29680],{"type":31,"value":29681}," diffuser",{"type":21,"tag":138,"props":29683,"children":29684},{"style":151},[29685],{"type":31,"value":29686},"(n):\n",{"type":21,"tag":138,"props":29688,"children":29689},{"class":140,"line":167},[29690],{"type":21,"tag":138,"props":29691,"children":29692},{"style":261},[29693],{"type":31,"value":29694},"    \"\"\"Inversion about the mean.\"\"\"\n",{"type":21,"tag":138,"props":29696,"children":29697},{"class":140,"line":189},[29698,29702,29706,29710,29714,29718,29723],{"type":21,"tag":138,"props":29699,"children":29700},{"style":151},[29701],{"type":31,"value":17784},{"type":21,"tag":138,"props":29703,"children":29704},{"style":145},[29705],{"type":31,"value":210},{"type":21,"tag":138,"props":29707,"children":29708},{"style":151},[29709],{"type":31,"value":29354},{"type":21,"tag":138,"props":29711,"children":29712},{"style":929},[29713],{"type":31,"value":29359},{"type":21,"tag":138,"props":29715,"children":29716},{"style":145},[29717],{"type":31,"value":210},{"type":21,"tag":138,"props":29719,"children":29720},{"style":261},[29721],{"type":31,"value":29722},"\"Diffuser\"",{"type":21,"tag":138,"props":29724,"children":29725},{"style":151},[29726],{"type":31,"value":269},{"type":21,"tag":138,"props":29728,"children":29729},{"class":140,"line":199},[29730,29735,29739],{"type":21,"tag":138,"props":29731,"children":29732},{"style":151},[29733],{"type":31,"value":29734},"    qc.h(",{"type":21,"tag":138,"props":29736,"children":29737},{"style":213},[29738],{"type":31,"value":17726},{"type":21,"tag":138,"props":29740,"children":29741},{"style":151},[29742],{"type":31,"value":26845},{"type":21,"tag":138,"props":29744,"children":29745},{"class":140,"line":225},[29746,29750,29754],{"type":21,"tag":138,"props":29747,"children":29748},{"style":151},[29749],{"type":31,"value":714},{"type":21,"tag":138,"props":29751,"children":29752},{"style":213},[29753],{"type":31,"value":17726},{"type":21,"tag":138,"props":29755,"children":29756},{"style":151},[29757],{"type":31,"value":26845},{"type":21,"tag":138,"props":29759,"children":29760},{"class":140,"line":233},[29761,29765,29769,29773],{"type":21,"tag":138,"props":29762,"children":29763},{"style":151},[29764],{"type":31,"value":29473},{"type":21,"tag":138,"props":29766,"children":29767},{"style":145},[29768],{"type":31,"value":831},{"type":21,"tag":138,"props":29770,"children":29771},{"style":213},[29772],{"type":31,"value":17063},{"type":21,"tag":138,"props":29774,"children":29775},{"style":151},[29776],{"type":31,"value":269},{"type":21,"tag":138,"props":29778,"children":29779},{"class":140,"line":272},[29780,29784,29788,29792,29796,29800,29804,29808,29812,29816,29820],{"type":21,"tag":138,"props":29781,"children":29782},{"style":151},[29783],{"type":31,"value":29499},{"type":21,"tag":138,"props":29785,"children":29786},{"style":213},[29787],{"type":31,"value":19480},{"type":21,"tag":138,"props":29789,"children":29790},{"style":151},[29791],{"type":31,"value":959},{"type":21,"tag":138,"props":29793,"children":29794},{"style":213},[29795],{"type":31,"value":17726},{"type":21,"tag":138,"props":29797,"children":29798},{"style":151},[29799],{"type":31,"value":17054},{"type":21,"tag":138,"props":29801,"children":29802},{"style":145},[29803],{"type":31,"value":831},{"type":21,"tag":138,"props":29805,"children":29806},{"style":213},[29807],{"type":31,"value":17063},{"type":21,"tag":138,"props":29809,"children":29810},{"style":151},[29811],{"type":31,"value":29528},{"type":21,"tag":138,"props":29813,"children":29814},{"style":145},[29815],{"type":31,"value":831},{"type":21,"tag":138,"props":29817,"children":29818},{"style":213},[29819],{"type":31,"value":17063},{"type":21,"tag":138,"props":29821,"children":29822},{"style":151},[29823],{"type":31,"value":269},{"type":21,"tag":138,"props":29825,"children":29826},{"class":140,"line":308},[29827,29831,29835,29839],{"type":21,"tag":138,"props":29828,"children":29829},{"style":151},[29830],{"type":31,"value":29473},{"type":21,"tag":138,"props":29832,"children":29833},{"style":145},[29834],{"type":31,"value":831},{"type":21,"tag":138,"props":29836,"children":29837},{"style":213},[29838],{"type":31,"value":17063},{"type":21,"tag":138,"props":29840,"children":29841},{"style":151},[29842],{"type":31,"value":269},{"type":21,"tag":138,"props":29844,"children":29845},{"class":140,"line":16},[29846,29850,29854],{"type":21,"tag":138,"props":29847,"children":29848},{"style":151},[29849],{"type":31,"value":714},{"type":21,"tag":138,"props":29851,"children":29852},{"style":213},[29853],{"type":31,"value":17726},{"type":21,"tag":138,"props":29855,"children":29856},{"style":151},[29857],{"type":31,"value":26845},{"type":21,"tag":138,"props":29859,"children":29860},{"class":140,"line":360},[29861,29865,29869],{"type":21,"tag":138,"props":29862,"children":29863},{"style":151},[29864],{"type":31,"value":29734},{"type":21,"tag":138,"props":29866,"children":29867},{"style":213},[29868],{"type":31,"value":17726},{"type":21,"tag":138,"props":29870,"children":29871},{"style":151},[29872],{"type":31,"value":26845},{"type":21,"tag":138,"props":29874,"children":29875},{"class":140,"line":368},[29876,29880],{"type":21,"tag":138,"props":29877,"children":29878},{"style":145},[29879],{"type":31,"value":5595},{"type":21,"tag":138,"props":29881,"children":29882},{"style":151},[29883],{"type":31,"value":17750},{"type":21,"tag":22,"props":29885,"children":29886},{},[29887,29889,29894],{"type":31,"value":29888},"Note the diffuser knows nothing about the marked state. It is the same ",{"type":21,"tag":26,"props":29890,"children":29891},{"href":4343},[29892],{"type":31,"value":29893},"circuit",{"type":31,"value":29895}," for every search problem. Only the oracle changes.",{"type":21,"tag":41,"props":29897,"children":29899},{"id":29898},"step-4-iterate-the-right-number-of-times",[29900],{"type":31,"value":29901},"Step 4: Iterate the Right Number of Times",{"type":21,"tag":22,"props":29903,"children":29904},{},[29905],{"type":31,"value":29906},"This is where people go wrong. The optimal count is:",{"type":21,"tag":128,"props":29908,"children":29910},{"code":29909},"k = floor( (π\u002F4) · √(N\u002FM) )\n",[29911],{"type":21,"tag":103,"props":29912,"children":29913},{"__ignoreMap":7},[29914],{"type":31,"value":29909},{"type":21,"tag":22,"props":29916,"children":29917},{},[29918,29920,29924],{"type":31,"value":29919},"where N = 2ⁿ and M is the number of marked states. For N = 8, M = 1: k = floor(2.22) = ",{"type":21,"tag":16815,"props":29921,"children":29922},{},[29923],{"type":31,"value":292},{"type":31,"value":6678},{"type":21,"tag":22,"props":29926,"children":29927},{},[29928],{"type":31,"value":29929},"Here's the complete program:",{"type":21,"tag":128,"props":29931,"children":29933},{"code":29932,"language":132,"meta":7,"className":130,"style":7},"def grover(n, marked, iterations):\n    qc = QuantumCircuit(n, n)\n    qc.h(range(n))                       # uniform superposition\n    orc, dif = oracle(n, marked), diffuser(n)\n    for _ in range(iterations):\n        qc.compose(orc, inplace=True)    # phase-flip the target\n        qc.compose(dif, inplace=True)    # amplify it\n    qc.measure(range(n), range(n))\n    return qc\n\nN = 2 ** n\noptimal = math.floor(math.pi \u002F 4 * math.sqrt(N))\nprint(f\"N = {N}, optimal iterations = {optimal}\")\n\nsim = AerSimulator()\nqc = grover(n, marked, optimal)\ncounts = sim.run(transpile(qc, sim), shots=4096).result().get_counts()\nprint(sorted(counts.items()))\n",[29934],{"type":21,"tag":103,"props":29935,"children":29936},{"__ignoreMap":7},[29937,29954,29969,29989,30006,30030,30061,30090,30114,30125,30132,30157,30192,30251,30258,30273,30289,30321],{"type":21,"tag":138,"props":29938,"children":29939},{"class":140,"line":141},[29940,29944,29949],{"type":21,"tag":138,"props":29941,"children":29942},{"style":145},[29943],{"type":31,"value":5500},{"type":21,"tag":138,"props":29945,"children":29946},{"style":4522},[29947],{"type":31,"value":29948}," grover",{"type":21,"tag":138,"props":29950,"children":29951},{"style":151},[29952],{"type":31,"value":29953},"(n, marked, iterations):\n",{"type":21,"tag":138,"props":29955,"children":29956},{"class":140,"line":167},[29957,29961,29965],{"type":21,"tag":138,"props":29958,"children":29959},{"style":151},[29960],{"type":31,"value":17784},{"type":21,"tag":138,"props":29962,"children":29963},{"style":145},[29964],{"type":31,"value":210},{"type":21,"tag":138,"props":29966,"children":29967},{"style":151},[29968],{"type":31,"value":26687},{"type":21,"tag":138,"props":29970,"children":29971},{"class":140,"line":189},[29972,29976,29980,29985],{"type":21,"tag":138,"props":29973,"children":29974},{"style":151},[29975],{"type":31,"value":29734},{"type":21,"tag":138,"props":29977,"children":29978},{"style":213},[29979],{"type":31,"value":17726},{"type":21,"tag":138,"props":29981,"children":29982},{"style":151},[29983],{"type":31,"value":29984},"(n))                       ",{"type":21,"tag":138,"props":29986,"children":29987},{"style":219},[29988],{"type":31,"value":29262},{"type":21,"tag":138,"props":29990,"children":29991},{"class":140,"line":199},[29992,29997,30001],{"type":21,"tag":138,"props":29993,"children":29994},{"style":151},[29995],{"type":31,"value":29996},"    orc, dif ",{"type":21,"tag":138,"props":29998,"children":29999},{"style":145},[30000],{"type":31,"value":210},{"type":21,"tag":138,"props":30002,"children":30003},{"style":151},[30004],{"type":31,"value":30005}," oracle(n, marked), diffuser(n)\n",{"type":21,"tag":138,"props":30007,"children":30008},{"class":140,"line":225},[30009,30013,30017,30021,30025],{"type":21,"tag":138,"props":30010,"children":30011},{"style":145},[30012],{"type":31,"value":17037},{"type":21,"tag":138,"props":30014,"children":30015},{"style":151},[30016],{"type":31,"value":17840},{"type":21,"tag":138,"props":30018,"children":30019},{"style":145},[30020],{"type":31,"value":1502},{"type":21,"tag":138,"props":30022,"children":30023},{"style":213},[30024],{"type":31,"value":7430},{"type":21,"tag":138,"props":30026,"children":30027},{"style":151},[30028],{"type":31,"value":30029},"(iterations):\n",{"type":21,"tag":138,"props":30031,"children":30032},{"class":140,"line":233},[30033,30038,30043,30047,30051,30056],{"type":21,"tag":138,"props":30034,"children":30035},{"style":151},[30036],{"type":31,"value":30037},"        qc.compose(orc, ",{"type":21,"tag":138,"props":30039,"children":30040},{"style":929},[30041],{"type":31,"value":30042},"inplace",{"type":21,"tag":138,"props":30044,"children":30045},{"style":145},[30046],{"type":31,"value":210},{"type":21,"tag":138,"props":30048,"children":30049},{"style":213},[30050],{"type":31,"value":8677},{"type":21,"tag":138,"props":30052,"children":30053},{"style":151},[30054],{"type":31,"value":30055},")    ",{"type":21,"tag":138,"props":30057,"children":30058},{"style":219},[30059],{"type":31,"value":30060},"# phase-flip the target\n",{"type":21,"tag":138,"props":30062,"children":30063},{"class":140,"line":272},[30064,30069,30073,30077,30081,30085],{"type":21,"tag":138,"props":30065,"children":30066},{"style":151},[30067],{"type":31,"value":30068},"        qc.compose(dif, ",{"type":21,"tag":138,"props":30070,"children":30071},{"style":929},[30072],{"type":31,"value":30042},{"type":21,"tag":138,"props":30074,"children":30075},{"style":145},[30076],{"type":31,"value":210},{"type":21,"tag":138,"props":30078,"children":30079},{"style":213},[30080],{"type":31,"value":8677},{"type":21,"tag":138,"props":30082,"children":30083},{"style":151},[30084],{"type":31,"value":30055},{"type":21,"tag":138,"props":30086,"children":30087},{"style":219},[30088],{"type":31,"value":30089},"# amplify it\n",{"type":21,"tag":138,"props":30091,"children":30092},{"class":140,"line":308},[30093,30098,30102,30106,30110],{"type":21,"tag":138,"props":30094,"children":30095},{"style":151},[30096],{"type":31,"value":30097},"    qc.measure(",{"type":21,"tag":138,"props":30099,"children":30100},{"style":213},[30101],{"type":31,"value":17726},{"type":21,"tag":138,"props":30103,"children":30104},{"style":151},[30105],{"type":31,"value":26836},{"type":21,"tag":138,"props":30107,"children":30108},{"style":213},[30109],{"type":31,"value":17726},{"type":21,"tag":138,"props":30111,"children":30112},{"style":151},[30113],{"type":31,"value":26845},{"type":21,"tag":138,"props":30115,"children":30116},{"class":140,"line":16},[30117,30121],{"type":21,"tag":138,"props":30118,"children":30119},{"style":145},[30120],{"type":31,"value":5595},{"type":21,"tag":138,"props":30122,"children":30123},{"style":151},[30124],{"type":31,"value":17750},{"type":21,"tag":138,"props":30126,"children":30127},{"class":140,"line":360},[30128],{"type":21,"tag":138,"props":30129,"children":30130},{"emptyLinePlaceholder":193},[30131],{"type":31,"value":196},{"type":21,"tag":138,"props":30133,"children":30134},{"class":140,"line":368},[30135,30140,30144,30148,30152],{"type":21,"tag":138,"props":30136,"children":30137},{"style":151},[30138],{"type":31,"value":30139},"N ",{"type":21,"tag":138,"props":30141,"children":30142},{"style":145},[30143],{"type":31,"value":210},{"type":21,"tag":138,"props":30145,"children":30146},{"style":213},[30147],{"type":31,"value":21034},{"type":21,"tag":138,"props":30149,"children":30150},{"style":145},[30151],{"type":31,"value":20609},{"type":21,"tag":138,"props":30153,"children":30154},{"style":151},[30155],{"type":31,"value":30156}," n\n",{"type":21,"tag":138,"props":30158,"children":30159},{"class":140,"line":377},[30160,30165,30169,30174,30178,30182,30187],{"type":21,"tag":138,"props":30161,"children":30162},{"style":151},[30163],{"type":31,"value":30164},"optimal ",{"type":21,"tag":138,"props":30166,"children":30167},{"style":145},[30168],{"type":31,"value":210},{"type":21,"tag":138,"props":30170,"children":30171},{"style":151},[30172],{"type":31,"value":30173}," math.floor(math.pi ",{"type":21,"tag":138,"props":30175,"children":30176},{"style":145},[30177],{"type":31,"value":5075},{"type":21,"tag":138,"props":30179,"children":30180},{"style":213},[30181],{"type":31,"value":19309},{"type":21,"tag":138,"props":30183,"children":30184},{"style":145},[30185],{"type":31,"value":30186}," *",{"type":21,"tag":138,"props":30188,"children":30189},{"style":151},[30190],{"type":31,"value":30191}," math.sqrt(N))\n",{"type":21,"tag":138,"props":30193,"children":30194},{"class":140,"line":386},[30195,30199,30203,30207,30212,30216,30221,30225,30230,30234,30239,30243,30247],{"type":21,"tag":138,"props":30196,"children":30197},{"style":213},[30198],{"type":31,"value":954},{"type":21,"tag":138,"props":30200,"children":30201},{"style":151},[30202],{"type":31,"value":959},{"type":21,"tag":138,"props":30204,"children":30205},{"style":145},[30206],{"type":31,"value":7537},{"type":21,"tag":138,"props":30208,"children":30209},{"style":261},[30210],{"type":31,"value":30211},"\"N = ",{"type":21,"tag":138,"props":30213,"children":30214},{"style":213},[30215],{"type":31,"value":7547},{"type":21,"tag":138,"props":30217,"children":30218},{"style":151},[30219],{"type":31,"value":30220},"N",{"type":21,"tag":138,"props":30222,"children":30223},{"style":213},[30224],{"type":31,"value":7556},{"type":21,"tag":138,"props":30226,"children":30227},{"style":261},[30228],{"type":31,"value":30229},", optimal iterations = ",{"type":21,"tag":138,"props":30231,"children":30232},{"style":213},[30233],{"type":31,"value":7547},{"type":21,"tag":138,"props":30235,"children":30236},{"style":151},[30237],{"type":31,"value":30238},"optimal",{"type":21,"tag":138,"props":30240,"children":30241},{"style":213},[30242],{"type":31,"value":7556},{"type":21,"tag":138,"props":30244,"children":30245},{"style":261},[30246],{"type":31,"value":15383},{"type":21,"tag":138,"props":30248,"children":30249},{"style":151},[30250],{"type":31,"value":269},{"type":21,"tag":138,"props":30252,"children":30253},{"class":140,"line":395},[30254],{"type":21,"tag":138,"props":30255,"children":30256},{"emptyLinePlaceholder":193},[30257],{"type":31,"value":196},{"type":21,"tag":138,"props":30259,"children":30260},{"class":140,"line":413},[30261,30265,30269],{"type":21,"tag":138,"props":30262,"children":30263},{"style":151},[30264],{"type":31,"value":883},{"type":21,"tag":138,"props":30266,"children":30267},{"style":145},[30268],{"type":31,"value":210},{"type":21,"tag":138,"props":30270,"children":30271},{"style":151},[30272],{"type":31,"value":892},{"type":21,"tag":138,"props":30274,"children":30275},{"class":140,"line":12602},[30276,30280,30284],{"type":21,"tag":138,"props":30277,"children":30278},{"style":151},[30279],{"type":31,"value":348},{"type":21,"tag":138,"props":30281,"children":30282},{"style":145},[30283],{"type":31,"value":210},{"type":21,"tag":138,"props":30285,"children":30286},{"style":151},[30287],{"type":31,"value":30288}," grover(n, marked, optimal)\n",{"type":21,"tag":138,"props":30290,"children":30291},{"class":140,"line":12619},[30292,30296,30300,30305,30309,30313,30317],{"type":21,"tag":138,"props":30293,"children":30294},{"style":151},[30295],{"type":31,"value":917},{"type":21,"tag":138,"props":30297,"children":30298},{"style":145},[30299],{"type":31,"value":210},{"type":21,"tag":138,"props":30301,"children":30302},{"style":151},[30303],{"type":31,"value":30304}," sim.run(transpile(qc, sim), ",{"type":21,"tag":138,"props":30306,"children":30307},{"style":929},[30308],{"type":31,"value":932},{"type":21,"tag":138,"props":30310,"children":30311},{"style":145},[30312],{"type":31,"value":210},{"type":21,"tag":138,"props":30314,"children":30315},{"style":213},[30316],{"type":31,"value":941},{"type":21,"tag":138,"props":30318,"children":30319},{"style":151},[30320],{"type":31,"value":946},{"type":21,"tag":138,"props":30322,"children":30323},{"class":140,"line":12635},[30324,30328,30332,30336],{"type":21,"tag":138,"props":30325,"children":30326},{"style":213},[30327],{"type":31,"value":954},{"type":21,"tag":138,"props":30329,"children":30330},{"style":151},[30331],{"type":31,"value":959},{"type":21,"tag":138,"props":30333,"children":30334},{"style":213},[30335],{"type":31,"value":964},{"type":21,"tag":138,"props":30337,"children":30338},{"style":151},[30339],{"type":31,"value":969},{"type":21,"tag":22,"props":30341,"children":30342},{},[30343],{"type":31,"value":30344},"Real output from this exact code (Qiskit 2.5, Aer 0.17):",{"type":21,"tag":128,"props":30346,"children":30348},{"code":30347},"N = 8, optimal iterations = 2\n[('000', 35), ('001', 34), ('010', 33), ('011', 27),\n ('100', 33), ('101', 3866), ('110', 35), ('111', 33)]\n",[30349],{"type":21,"tag":103,"props":30350,"children":30351},{"__ignoreMap":7},[30352],{"type":31,"value":30347},{"type":21,"tag":22,"props":30354,"children":30355},{},[30356,30358,30363],{"type":31,"value":30357},"94.4% on ",{"type":21,"tag":103,"props":30359,"children":30361},{"className":30360},[],[30362],{"type":31,"value":29649},{"type":31,"value":30364},", versus 12.5% by chance. Two oracle calls where classical search would need 4.5 on average.",{"type":21,"tag":41,"props":30366,"children":30368},{"id":30367},"the-mistake-more-iterations-make-it-worse",[30369],{"type":31,"value":30370},"The Mistake: More Iterations Make It Worse",{"type":21,"tag":22,"props":30372,"children":30373},{},[30374,30376,30381],{"type":31,"value":30375},"The intuition \"more amplification is better\" is wrong, and it's the single biggest trap in Grover's algorithm. Each iteration rotates the state by a ",{"type":21,"tag":16815,"props":30377,"children":30378},{},[30379],{"type":31,"value":30380},"fixed",{"type":31,"value":30382}," angle θ where sin(θ\u002F2) = √(M\u002FN). After the optimal number of rounds you're aligned with the target. Keep going and you rotate straight past it, back down toward the unmarked states, and eventually back to where you started. Success probability oscillates as sin²((2k+1)·θ\u002F2).",{"type":21,"tag":22,"props":30384,"children":30385},{},[30386],{"type":31,"value":30387},"Loop the iteration count and watch. Measured counts over 4096 shots each:",{"type":21,"tag":128,"props":30389,"children":30391},{"code":30390},"iters=0  P(101)=0.127   \u003C- uniform, no better than guessing\niters=1  P(101)=0.779\niters=2  P(101)=0.944   \u003C- optimal\niters=3  P(101)=0.320   \u003C- overshooting\niters=4  P(101)=0.013   \u003C- worse than random guessing!\niters=5  P(101)=0.556\niters=6  P(101)=1.000   \u003C- period brings it back around\niters=7  P(101)=0.586\n",[30392],{"type":21,"tag":103,"props":30393,"children":30394},{"__ignoreMap":7},[30395],{"type":31,"value":30390},{"type":21,"tag":22,"props":30397,"children":30398},{},[30399,30401,30406],{"type":31,"value":30400},"Four iterations gives you a 1.3% success rate. You did ",{"type":21,"tag":12769,"props":30402,"children":30403},{},[30404],{"type":31,"value":30405},"twice",{"type":31,"value":30407}," the optimal work and ended up nine times worse than doing nothing at all. This is not noise or a bug. It is exactly what the math says should happen, and it's the reason you must compute k in advance rather than \"running it a while\".",{"type":21,"tag":22,"props":30409,"children":30410},{},[30411,30413,30418],{"type":31,"value":30412},"The awkward corollary: computing k requires knowing M, the number of solutions. If you don't know how many marked states exist, you need ",{"type":21,"tag":16815,"props":30414,"children":30415},{},[30416],{"type":31,"value":30417},"quantum counting",{"type":31,"value":30419}," (an amplitude-estimation routine) first, or you employ randomized iteration counts, which costs you a constant factor. Textbook presentations tend to skip this.",{"type":21,"tag":41,"props":30421,"children":30423},{"id":30422},"what-the-speedup-buys-you",[30424],{"type":31,"value":30425},"What the Speedup Buys You",{"type":21,"tag":22,"props":30427,"children":30428},{},[30429],{"type":31,"value":30430},"Be precise about this, because a lot of writing on Grover is not.",{"type":21,"tag":22,"props":30432,"children":30433},{},[30434,30439,30441,30446],{"type":21,"tag":16815,"props":30435,"children":30436},{},[30437],{"type":31,"value":30438},"It is quadratic, not exponential.",{"type":31,"value":30440}," √N versus N. ",{"type":21,"tag":26,"props":30442,"children":30443},{"href":20002},[30444],{"type":31,"value":30445},"Shor's factoring algorithm",{"type":31,"value":30447}," is exponential. That's a categorically varied thing. A quadratic speedup is real and provably optimal (no quantum algorithm beats √N for unstructured search), but it is fragile: error correction's constant-factor overhead often eats it entirely, and that overhead is substantial.",{"type":21,"tag":22,"props":30449,"children":30450},{},[30451,30456],{"type":21,"tag":16815,"props":30452,"children":30453},{},[30454],{"type":31,"value":30455},"It does not make NP-hard problems easy.",{"type":31,"value":30457}," Apply Grover to brute-force SAT and go from 2ⁿ to 2^(n\u002F2). That's a genuine improvement, and it is also still exponential. NP-hard problems remain NP-hard. Real SAT solvers use clause learning and structure that Grover, by definition, cannot exploit. That is why classical solvers routinely handle instances with millions of variables.",{"type":21,"tag":22,"props":30459,"children":30460},{},[30461,30466,30468,30473,30475,30480],{"type":21,"tag":16815,"props":30462,"children":30463},{},[30464],{"type":31,"value":30465},"The \"database search\" framing is misleading.",{"type":31,"value":30467}," Grover needs an ",{"type":21,"tag":12769,"props":30469,"children":30470},{},[30471],{"type":31,"value":30472},"oracle",{"type":31,"value":30474}," (a circuit that recognizes the answer), not a stored database. If you had N records in memory, you would first need to load them into quantum superposition, which costs O(N) and destroys the speedup outright. Grover is useful when the marked item is ",{"type":21,"tag":12769,"props":30476,"children":30477},{},[30478],{"type":31,"value":30479},"defined by a computable property",{"type":31,"value":30481}," (this key decrypts the ciphertext, this input hashes to that digest) rather than looked up in a table.",{"type":21,"tag":22,"props":30483,"children":30484},{},[30485,30487,30493],{"type":31,"value":30486},"The real applications: cryptanalysis (Grover halves the effective key length of symmetric ciphers, which is exactly why AES-256 is recommended over AES-128 for post-quantum security), and as a subroutine inside larger algorithms via amplitude amplification. Grover's original 1996 paper is worth reading directly. See our ",{"type":21,"tag":26,"props":30488,"children":30490},{"href":30489},"\u002Fresearch\u002Fgrover-search-1996",[30491],{"type":31,"value":30492},"breakdown of the paper",{"type":31,"value":6678},{"type":21,"tag":41,"props":30495,"children":30497},{"id":30496},"running-on-real-hardware",[30498],{"type":31,"value":30499},"Running on Real Hardware",{"type":21,"tag":22,"props":30501,"children":30502},{},[30503,30505,30510],{"type":31,"value":30504},"Moving to a QPU, the picture changes fast. Multi-controlled X gates are not native to any hardware. ",{"type":21,"tag":26,"props":30506,"children":30507},{"href":10347},[30508],{"type":31,"value":30509},"Transpilation",{"type":31,"value":30511}," decomposes each one into a cascade of CNOTs and single-qubit rotations, and the cost grows steeply with the number of controls. A 4-qubit MCX becomes 20+ two-qubit gates. Multiply that by two per Grover iteration, times k iterations, and depth explodes.",{"type":21,"tag":128,"props":30513,"children":30515},{"code":30514,"language":132,"meta":7,"className":130,"style":7},"# Check what your circuit costs before submitting\nqc = grover(3, \"101\", 2)\nprint(qc.decompose().count_ops())\n",[30516],{"type":21,"tag":103,"props":30517,"children":30518},{"__ignoreMap":7},[30519,30527,30568],{"type":21,"tag":138,"props":30520,"children":30521},{"class":140,"line":141},[30522],{"type":21,"tag":138,"props":30523,"children":30524},{"style":219},[30525],{"type":31,"value":30526},"# Check what your circuit costs before submitting\n",{"type":21,"tag":138,"props":30528,"children":30529},{"class":140,"line":167},[30530,30534,30538,30543,30547,30551,30556,30560,30564],{"type":21,"tag":138,"props":30531,"children":30532},{"style":151},[30533],{"type":31,"value":348},{"type":21,"tag":138,"props":30535,"children":30536},{"style":145},[30537],{"type":31,"value":210},{"type":21,"tag":138,"props":30539,"children":30540},{"style":151},[30541],{"type":31,"value":30542}," grover(",{"type":21,"tag":138,"props":30544,"children":30545},{"style":213},[30546],{"type":31,"value":253},{"type":21,"tag":138,"props":30548,"children":30549},{"style":151},[30550],{"type":31,"value":258},{"type":21,"tag":138,"props":30552,"children":30553},{"style":261},[30554],{"type":31,"value":30555},"\"101\"",{"type":21,"tag":138,"props":30557,"children":30558},{"style":151},[30559],{"type":31,"value":258},{"type":21,"tag":138,"props":30561,"children":30562},{"style":213},[30563],{"type":31,"value":292},{"type":21,"tag":138,"props":30565,"children":30566},{"style":151},[30567],{"type":31,"value":269},{"type":21,"tag":138,"props":30569,"children":30570},{"class":140,"line":189},[30571,30575],{"type":21,"tag":138,"props":30572,"children":30573},{"style":213},[30574],{"type":31,"value":954},{"type":21,"tag":138,"props":30576,"children":30577},{"style":151},[30578],{"type":31,"value":30579},"(qc.decompose().count_ops())\n",{"type":21,"tag":22,"props":30581,"children":30582},{},[30583,30585,30591,30593,30597],{"type":31,"value":30584},"On ",{"type":21,"tag":26,"props":30586,"children":30588},{"href":30587},"\u002Fresearch\u002Fpreskill-nisq-2018",[30589],{"type":31,"value":30590},"NISQ devices",{"type":31,"value":30592},", two-qubit gate error sits around 0.5–1%. A few hundred entangling gates and your output is indistinguishable from uniform random. Published hardware demonstrations of Grover are almost all 2–3 qubits, and they are demonstrations, not useful computations. Add ",{"type":21,"tag":26,"props":30594,"children":30595},{"href":3115},[30596],{"type":31,"value":27586},{"type":31,"value":30598}," on top and you need enough samples to distinguish a modest peak from the floor.",{"type":21,"tag":22,"props":30600,"children":30601},{},[30602,30604,30609,30611,30616],{"type":31,"value":30603},"The practical advice: develop and debug on ",{"type":21,"tag":26,"props":30605,"children":30606},{"href":3304},[30607],{"type":31,"value":30608},"simulators",{"type":31,"value":30610},", where you verify correctness exactly. Only move to ",{"type":21,"tag":26,"props":30612,"children":30613},{"href":1106},[30614],{"type":31,"value":30615},"real hardware",{"type":31,"value":30617}," when you understand what your circuit costs in native gates, and expect degraded results.",{"type":21,"tag":41,"props":30619,"children":30621},{"id":30620},"next-steps",[30622],{"type":31,"value":30623},"Next Steps",{"type":21,"tag":1118,"props":30625,"children":30626},{},[30627,30640,30652,30672],{"type":21,"tag":71,"props":30628,"children":30629},{},[30630,30638],{"type":21,"tag":16815,"props":30631,"children":30632},{},[30633],{"type":21,"tag":26,"props":30634,"children":30635},{"href":1126},[30636],{"type":31,"value":30637},"Qiskit SDK guide",{"type":31,"value":30639},": full setup, backends, and transpiler options",{"type":21,"tag":71,"props":30641,"children":30642},{},[30643,30650],{"type":21,"tag":16815,"props":30644,"children":30645},{},[30646],{"type":21,"tag":26,"props":30647,"children":30648},{"href":1250},[30649],{"type":31,"value":10453},{"type":31,"value":30651},": the other sizable near-term algorithm, applied to Max-Cut",{"type":21,"tag":71,"props":30653,"children":30654},{},[30655,30663,30665,30670],{"type":21,"tag":16815,"props":30656,"children":30657},{},[30658],{"type":21,"tag":26,"props":30659,"children":30660},{"href":19079},[30661],{"type":31,"value":30662},"Compare the SDKs",{"type":31,"value":30664},": the same Grover circuit in ",{"type":21,"tag":26,"props":30666,"children":30668},{"href":30667},"\u002Fsdks\u002Fcirq",[30669],{"type":31,"value":4486},{"type":31,"value":30671}," or PennyLane",{"type":21,"tag":71,"props":30673,"children":30674},{},[30675,30683,30684,30689,30690,30694],{"type":21,"tag":16815,"props":30676,"children":30677},{},[30678],{"type":21,"tag":26,"props":30679,"children":30680},{"href":1148},[30681],{"type":31,"value":30682},"Glossary",{"type":31,"value":24135},{"type":21,"tag":26,"props":30685,"children":30686},{"href":3083},[30687],{"type":31,"value":30688},"superposition",{"type":31,"value":258},{"type":21,"tag":26,"props":30691,"children":30692},{"href":2052},[30693],{"type":31,"value":16390},{"type":31,"value":30695},", and the rest of the vocabulary",{"type":21,"tag":1174,"props":30697,"children":30698},{},[30699],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":30701},[30702,30703,30704,30705,30706,30707,30708,30709,30710,30711],{"id":29023,"depth":167,"text":29026},{"id":29051,"depth":167,"text":29054},{"id":29097,"depth":167,"text":29100},{"id":29277,"depth":167,"text":29280},{"id":29654,"depth":167,"text":29657},{"id":29898,"depth":167,"text":29901},{"id":30367,"depth":167,"text":30370},{"id":30422,"depth":167,"text":30425},{"id":30496,"depth":167,"text":30499},{"id":30620,"depth":167,"text":30623},"content:blog:grover-algorithm-tutorial.md","blog\u002Fgrover-algorithm-tutorial.md","blog\u002Fgrover-algorithm-tutorial",{"_path":4095,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":30716,"description":30717,"date":25065,"author":11,"tags":30718,"readingTime":308,"body":30720,"_type":1193,"_id":31161,"_source":1195,"_file":31162,"_stem":31163,"_extension":1198},"Logical Qubits and Fault Tolerance: What the Qubit Count Doesn't Tell You","A physical qubit is hardware. A logical qubit is an error-protected qubit built out of many of them. Understanding the difference is the fastest way to see through quantum computing headlines.",[14733,1213,30719],"QPU",{"type":18,"children":30721,"toc":31151},[30722,30727,30739,30745,30769,30783,30809,30815,30827,30832,30843,30861,30867,30872,30883,30896,30901,30906,30912,30924,30929,30948,30953,30959,30964,30974,30983,31005,31011,31016,31026,31036,31046,31056,31061,31067,31072,31077,31103,31121,31127,31139],{"type":21,"tag":22,"props":30723,"children":30724},{},[30725],{"type":31,"value":30726},"Every few months a press release announces a new record qubit count. Almost none of them tell you the number that decides whether the machine does anything: the error rate.",{"type":21,"tag":22,"props":30728,"children":30729},{},[30730,30732,30737],{"type":31,"value":30731},"This is not a pedantic complaint. The relationship between qubit count and computational power in quantum computing is not merely noisy. It sometimes inverts. Under the right conditions, a machine with more qubits is ",{"type":21,"tag":12769,"props":30733,"children":30734},{},[30735],{"type":31,"value":30736},"worse",{"type":31,"value":30738}," than one with fewer. Understanding why requires one distinction, and once you have it, most quantum computing news becomes far easier to read.",{"type":21,"tag":41,"props":30740,"children":30742},{"id":30741},"two-things-called-qubit",[30743],{"type":31,"value":30744},"Two things called \"qubit\"",{"type":21,"tag":22,"props":30746,"children":30747},{},[30748,30749,30754,30756,30761,30762,30767],{"type":31,"value":8380},{"type":21,"tag":16815,"props":30750,"children":30751},{},[30752],{"type":31,"value":30753},"physical qubit",{"type":31,"value":30755}," is a piece of hardware: a superconducting circuit on a chip, a trapped ion held in an electromagnetic field, a neutral atom in an optical tweezer. It is a real object subject to real physics, which means it drifts, absorbs stray energy, and loses its quantum state on a timescale measured in microseconds to seconds. That decay is ",{"type":21,"tag":26,"props":30757,"children":30758},{"href":4156},[30759],{"type":31,"value":30760},"decoherence",{"type":31,"value":21498},{"type":21,"tag":26,"props":30763,"children":30764},{"href":15510},[30765],{"type":31,"value":30766},"T1 and T2 times",{"type":31,"value":30768}," that quantify it are among the few hardware specs worth reading closely.",{"type":21,"tag":22,"props":30770,"children":30771},{},[30772,30773,30781],{"type":31,"value":8380},{"type":21,"tag":16815,"props":30774,"children":30775},{},[30776],{"type":21,"tag":26,"props":30777,"children":30778},{"href":15870},[30779],{"type":31,"value":30780},"logical qubit",{"type":31,"value":30782}," is not hardware. It is a qubit's worth of quantum information spread across many physical qubits, arranged so that errors on individual members are detected and undone without ever measuring, and thereby destroying, the encoded state. IonQ describes logical qubits as software-defined, and that framing is a good one: the logical qubit is a construction that hardware supports rather than a thing you point to.",{"type":21,"tag":22,"props":30784,"children":30785},{},[30786,30788,30792,30794,30799,30801,30807],{"type":31,"value":30787},"The technique is ",{"type":21,"tag":26,"props":30789,"children":30790},{"href":15841},[30791],{"type":31,"value":14745},{"type":31,"value":30793},", and our ",{"type":21,"tag":26,"props":30795,"children":30796},{"href":15622},[30797],{"type":31,"value":30798},"companion post on QEC",{"type":31,"value":30800}," covers the mechanics: parity checks, ",{"type":21,"tag":26,"props":30802,"children":30804},{"href":30803},"\u002Fglossary\u002Fancilla-qubit",[30805],{"type":31,"value":30806},"ancilla qubits",{"type":31,"value":30808},", the surface code lattice. This post is about the accounting: what encoding costs, when it pays off, and what else fault tolerance demands beyond the encoding itself.",{"type":21,"tag":41,"props":30810,"children":30812},{"id":30811},"why-how-many-qubits-is-nearly-meaningless",[30813],{"type":31,"value":30814},"Why \"how many qubits?\" is nearly meaningless",{"type":21,"tag":22,"props":30816,"children":30817},{},[30818,30820,30825],{"type":31,"value":30819},"Here is the uncomfortable arithmetic. If your physical error rate is above the threshold of your error-correcting code, encoding does not help. The extra qubits and the extra gates needed to perform parity checks each introduce errors of their own. Add more of them and you add more noise than you remove. A headline of 1,000 physical qubits with mediocre fidelity is compatible with ",{"type":21,"tag":16815,"props":30821,"children":30822},{},[30823],{"type":31,"value":30824},"zero",{"type":31,"value":30826}," logical qubits, not few, zero.",{"type":21,"tag":22,"props":30828,"children":30829},{},[30830],{"type":31,"value":30831},"Meanwhile a smaller, cleaner machine is sometimes strictly more useful. IonQ argues this point aggressively, claiming that a system of 100 physical qubits at 99.99% two-qubit gate fidelity would likely outperform a 10,000-qubit system of lower-quality qubits encoding 100 logical ones: on overhead, gate speed, universality, and energy. That's a vendor making a case for its own architecture and should be read as such, but the underlying logic is sound and widely accepted: quality compounds in a way that quantity does not.",{"type":21,"tag":22,"props":30833,"children":30834},{},[30835,30837,30841],{"type":31,"value":30836},"The compounding is the key mechanism. In a code that corrects one error, roughly speaking, halving the physical error rate quarters the logical error rate. In a code correcting two errors the same improvement gives about an eight-fold gain. IonQ makes this multiplicative argument explicitly, and it explains why hardware teams chase ",{"type":21,"tag":26,"props":30838,"children":30839},{"href":18194},[30840],{"type":31,"value":13099},{"type":31,"value":30842}," improvements that look small in isolation. A 2x hardware win is a 4x or 8x win after encoding.",{"type":21,"tag":22,"props":30844,"children":30845},{},[30846,30848,30852,30854,30859],{"type":31,"value":30847},"This is also why single-number benchmarks keep failing the field. ",{"type":21,"tag":26,"props":30849,"children":30850},{"href":25132},[30851],{"type":31,"value":13906},{"type":31,"value":30853},", algorithmic qubits, gate counts: each captures a slice and hides the rest. We wrote about that measurement problem ",{"type":21,"tag":26,"props":30855,"children":30856},{"href":19128},[30857],{"type":31,"value":30858},"in the context of EO 14413",{"type":31,"value":30860},", and it applies with full force here.",{"type":21,"tag":41,"props":30862,"children":30864},{"id":30863},"the-overhead-is-the-whole-story",[30865],{"type":31,"value":30866},"The overhead is the whole story",{"type":21,"tag":22,"props":30868,"children":30869},{},[30870],{"type":31,"value":30871},"How many physical qubits does one logical qubit cost? The honest answer is that it depends on two numbers you have to state together: your physical error rate and the logical error rate you're targeting.",{"type":21,"tag":22,"props":30873,"children":30874},{},[30875,30881],{"type":21,"tag":26,"props":30876,"children":30878},{"href":30877},"\u002Fresearch\u002Fshor-error-correction-1995",[30879],{"type":31,"value":30880},"Shor's 1995 code",{"type":31,"value":30882},", the first quantum error-correcting code ever written down, used nine physical qubits to protect one logical qubit against an arbitrary single-qubit error. That was a proof that the thing was possible at all. Before it, many physicists believed no-cloning made quantum computing hopeless in principle.",{"type":21,"tag":22,"props":30884,"children":30885},{},[30886,30888,30894],{"type":31,"value":30887},"Nine turned out to be optimistic for practical machines. ",{"type":21,"tag":26,"props":30889,"children":30891},{"href":30890},"\u002Fresearch\u002Fkitaev-anyons-1997",[30892],{"type":31,"value":30893},"Kitaev's 1997 work on anyons",{"type":31,"value":30895}," introduced topological codes, including the surface code, which stores information in global properties of a 2D lattice rather than in any individual site. Its great virtue is that every parity check involves only neighbouring qubits, which maps cleanly onto flat chips, and it tolerates physical error rates around 1%, high enough that real hardware plausibly reaches it.",{"type":21,"tag":22,"props":30897,"children":30898},{},[30899],{"type":31,"value":30900},"The price is scale. Surface code overhead grows with code distance, and realistic estimates for running a cryptographically relevant algorithm land at hundreds to a few thousand physical qubits per logical qubit, with total system requirements often quoted in the millions. Push your physical error rate down and that ratio falls fast. Let it drift up toward threshold and the ratio explodes. Overhead is not a fixed constant of the technology. It is a function of how good your hardware is.",{"type":21,"tag":22,"props":30902,"children":30903},{},[30904],{"type":31,"value":30905},"Newer code families are attacking the ratio directly. IonQ has promoted a bivariate bicycle variant it calls BB5, claiming an idle logical error rate around 5x10⁻⁵ using 50 physical qubits, roughly four times smaller than standard BB codes. Vendor-reported figures like that are worth tracking but not worth treating as settled until independently reproduced.",{"type":21,"tag":41,"props":30907,"children":30909},{"id":30908},"the-threshold-theorem-and-why-2024-mattered",[30910],{"type":31,"value":30911},"The threshold theorem, and why 2024 mattered",{"type":21,"tag":22,"props":30913,"children":30914},{},[30915,30917,30922],{"type":31,"value":30916},"The theoretical foundation under all of this is the ",{"type":21,"tag":16815,"props":30918,"children":30919},{},[30920],{"type":31,"value":30921},"threshold theorem",{"type":31,"value":30923},". It says there exists a critical physical error rate. Below it, increasing the size of your code suppresses logical errors exponentially. You build them as small as you like by spending more qubits. Above it, the opposite: bigger codes are worse codes.",{"type":21,"tag":22,"props":30925,"children":30926},{},[30927],{"type":31,"value":30928},"For decades this was a theorem without an experiment. Every roadmap in the industry assumed the crossing was achievable. None had demonstrated it.",{"type":21,"tag":22,"props":30930,"children":30931},{},[30932,30934,30939,30941,30946],{"type":31,"value":30933},"That changed with ",{"type":21,"tag":26,"props":30935,"children":30936},{"href":25691},[30937],{"type":31,"value":30938},"Google's below-threshold result in 2024",{"type":31,"value":30940},". Running surface codes at distances 3, 5, and 7 on its 105-qubit Willow processor, the team observed each increase in code distance roughly ",{"type":21,"tag":16815,"props":30942,"children":30943},{},[30944],{"type":31,"value":30945},"halving",{"type":31,"value":30947}," the logical error rate, the direction fault tolerance requires. Critically, the encoded logical qubit outlived the best individual physical qubit on the chip, which is the concrete test of whether error correction is a net win rather than an expensive way to add noise.",{"type":21,"tag":22,"props":30949,"children":30950},{},[30951],{"type":31,"value":30952},"It's hard to overstate the significance. That experiment converted large-scale quantum computing from an open physics question into a scaling and engineering problem. Engineering problems are hard, but they are a different category of hard.",{"type":21,"tag":41,"props":30954,"children":30956},{"id":30955},"different-hardware-different-arithmetic",[30957],{"type":31,"value":30958},"Different hardware, different arithmetic",{"type":21,"tag":22,"props":30960,"children":30961},{},[30962],{"type":31,"value":30963},"The threshold is not a single universal number. It depends on the code, and which codes are practical depends on your hardware's connectivity. This is where modality differences stop being trivia.",{"type":21,"tag":22,"props":30965,"children":30966},{},[30967,30972],{"type":21,"tag":16815,"props":30968,"children":30969},{},[30970],{"type":31,"value":30971},"Superconducting",{"type":31,"value":30973}," processors offer rapid gates (nanoseconds) and mature fabrication, but qubits interact only with their planar neighbours and fidelities are typically lower. That planar constraint is precisely what the surface code was designed around, which is why superconducting roadmaps are built on it.",{"type":21,"tag":22,"props":30975,"children":30976},{},[30977,30981],{"type":21,"tag":16815,"props":30978,"children":30979},{},[30980],{"type":31,"value":15612},{"type":31,"value":30982}," invert the trade: gates are far slower (microseconds to milliseconds), but fidelities are the highest of any modality and connectivity is effectively all-to-all: any ion in a chain is entangled with any other without a chain of intervening swap operations. IonQ argues this connectivity is a structural advantage for error correction, because codes requiring non-local checks become implementable rather than prohibitively expensive, and it has claimed 99.99% physical two-qubit gate fidelity via its Oxford Ionics acquisition. Again: vendor claim, vendor benchmark conditions.",{"type":21,"tag":22,"props":30984,"children":30985},{},[30986,30988,30992,30993,30997,30999,31003],{"type":31,"value":30987},"Neither is obviously winning. Our ",{"type":21,"tag":26,"props":30989,"children":30990},{"href":1106},[30991],{"type":31,"value":16093},{"type":31,"value":3628},{"type":21,"tag":26,"props":30994,"children":30995},{"href":19079},[30996],{"type":31,"value":21758},{"type":31,"value":30998}," go into the specifics, and the broader ",{"type":21,"tag":26,"props":31000,"children":31001},{"href":21948},[31002],{"type":31,"value":22522},{"type":31,"value":31004}," tracks who is betting on what. The practical takeaway for anyone learning is that connectivity and fidelity, not qubit count, are the specs that determine which error-correction strategies a machine even attempts.",{"type":21,"tag":41,"props":31006,"children":31008},{"id":31007},"encoding-is-necessary-not-sufficient",[31009],{"type":31,"value":31010},"Encoding is necessary, not sufficient",{"type":21,"tag":22,"props":31012,"children":31013},{},[31014],{"type":31,"value":31015},"A subtlety that gets lost in coverage: storing a logical qubit is the easy part of fault tolerance. Computing on one is harder. A genuinely fault-tolerant machine needs all of the following:",{"type":21,"tag":22,"props":31017,"children":31018},{},[31019,31024],{"type":21,"tag":16815,"props":31020,"children":31021},{},[31022],{"type":31,"value":31023},"Fault-tolerant gate operations.",{"type":31,"value":31025}," Logical gates must be implemented so that a single physical fault cannot propagate into an uncorrectable logical error. Some gates are cheap in a given code. Others are not.",{"type":21,"tag":22,"props":31027,"children":31028},{},[31029,31034],{"type":21,"tag":16815,"props":31030,"children":31031},{},[31032],{"type":31,"value":31033},"Continuous syndrome extraction.",{"type":31,"value":31035}," Parity checks run constantly, in rounds, throughout the computation. The measurement circuits are themselves noisy, so the scheme has to tolerate faults in its own error detection.",{"type":21,"tag":22,"props":31037,"children":31038},{},[31039,31044],{"type":21,"tag":16815,"props":31040,"children":31041},{},[31042],{"type":31,"value":31043},"Magic state distillation.",{"type":31,"value":31045}," Surface codes give you Clifford gates relatively cheaply, but Clifford gates alone are classically simulable. Universality needs a non-Clifford gate, typically T, and those are produced by distilling noisy \"magic states\" into clean ones. Distillation factories consume a large fraction of the total qubit budget in realistic architectures.",{"type":21,"tag":22,"props":31047,"children":31048},{},[31049,31054],{"type":21,"tag":16815,"props":31050,"children":31051},{},[31052],{"type":31,"value":31053},"Real-time decoding.",{"type":31,"value":31055}," Syndrome data must be interpreted and corrections applied faster than errors accumulate. This is a classical computing problem, running at microsecond latency alongside the QPU, and it's a serious engineering constraint in its own right.",{"type":21,"tag":22,"props":31057,"children":31058},{},[31059],{"type":31,"value":31060},"IonQ's framing here is useful regardless of the vendor context: a logical qubit should be characterised by several attributes together: overhead, idle logical error rate, logical gate fidelity, logical gate speed, and gate-set universality, rather than counted. A logical qubit that is stored but not usefully operated on is not much of a logical qubit.",{"type":21,"tag":41,"props":31062,"children":31064},{"id":31063},"where-the-field-stands",[31065],{"type":31,"value":31066},"Where the field stands",{"type":21,"tag":22,"props":31068,"children":31069},{},[31070],{"type":31,"value":31071},"Honest summary as of mid-2026: logical qubits are real, demonstrated, and few.",{"type":21,"tag":22,"props":31073,"children":31074},{},[31075],{"type":31,"value":31076},"Multiple groups have encoded them. Google has shown error suppression scaling in the right direction. Trapped-ion and neutral-atom teams have run algorithms on minor numbers of encoded qubits. These are genuine milestones, not marketing.",{"type":21,"tag":22,"props":31078,"children":31079},{},[31080,31082,31087,31089,31094,31096,31101],{"type":31,"value":31081},"But useful fault-tolerant computation needs hundreds to thousands of logical qubits executing millions of logical operations, and that means physical qubit counts several orders of magnitude beyond anything running today, with error rates comfortably below threshold across the whole device rather than on the best-behaved corner of a chip. Most working hardware remains firmly in the ",{"type":21,"tag":26,"props":31083,"children":31084},{"href":22052},[31085],{"type":31,"value":31086},"NISQ regime",{"type":31,"value":31088}," that ",{"type":21,"tag":26,"props":31090,"children":31091},{"href":30587},[31092],{"type":31,"value":31093},"Preskill named in 2018",{"type":31,"value":31095},", where ",{"type":21,"tag":26,"props":31097,"children":31098},{"href":25984},[31099],{"type":31,"value":31100},"error mitigation",{"type":31,"value":31102}," (statistical post-processing rather than true correction) is the practical tool.",{"type":21,"tag":22,"props":31104,"children":31105},{},[31106,31108,31113,31115,31119],{"type":31,"value":31107},"None of which means waiting around. The abstractions transfer: circuits, gates, measurement, and noise behave the equivalent way whether you're on a simulator or a fault-tolerant machine a decade out. You begin on ",{"type":21,"tag":26,"props":31109,"children":31110},{"href":3304},[31111],{"type":31,"value":31112},"free simulators",{"type":31,"value":31114}," or real QPUs today, and the ",{"type":21,"tag":26,"props":31116,"children":31117},{"href":18702},[31118],{"type":31,"value":18705},{"type":31,"value":31120}," collects structured routes in.",{"type":21,"tag":41,"props":31122,"children":31124},{"id":31123},"the-one-habit-worth-forming",[31125],{"type":31,"value":31126},"The one habit worth forming",{"type":21,"tag":22,"props":31128,"children":31129},{},[31130,31132,31137],{"type":31,"value":31131},"When you following see a qubit-count headline, ask three questions: what is the two-qubit gate fidelity, is it below the relevant threshold, and how many ",{"type":21,"tag":12769,"props":31133,"children":31134},{},[31135],{"type":31,"value":31136},"logical",{"type":31,"value":31138}," qubits does that imply?",{"type":21,"tag":22,"props":31140,"children":31141},{},[31142,31144,31149],{"type":31,"value":31143},"Frequently the answer to the third is zero, and the article won't have mentioned it. Learning to notice that gap is most of what separates informed reading from press-release reading. The ",{"type":21,"tag":26,"props":31145,"children":31146},{"href":1148},[31147],{"type":31,"value":31148},"glossary",{"type":31,"value":31150}," is a decent place to build the vocabulary for it.",{"title":7,"searchDepth":167,"depth":167,"links":31152},[31153,31154,31155,31156,31157,31158,31159,31160],{"id":30741,"depth":167,"text":30744},{"id":30811,"depth":167,"text":30814},{"id":30863,"depth":167,"text":30866},{"id":30908,"depth":167,"text":30911},{"id":30955,"depth":167,"text":30958},{"id":31007,"depth":167,"text":31010},{"id":31063,"depth":167,"text":31066},{"id":31123,"depth":167,"text":31126},"content:blog:logical-qubits-fault-tolerance-explained.md","blog\u002Flogical-qubits-fault-tolerance-explained.md","blog\u002Flogical-qubits-fault-tolerance-explained",{"_path":16733,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":31165,"description":31166,"date":25065,"author":11,"tags":31167,"readingTime":308,"body":31168,"_type":1193,"_id":32259,"_source":1195,"_file":32260,"_stem":32261,"_extension":1198},"The Post-Quantum Migration Clock: Real Deadlines and How to Plan Against Them","NIST says RSA and ECC are deprecated after 2030 and disallowed after 2035. NSA's CNSA 2.0 moves faster. Here's what the published timelines require, and how to build a migration plan that survives them.",[3862,3863,3864],{"type":18,"children":31169,"toc":32249},[31170,31188,31200,31206,31211,31321,31326,31345,31351,31356,31385,31395,31405,31417,31422,31428,31447,31452,31478,31489,31495,31500,31543,31549,31554,31972,31984,31990,32002,32014,32064,32069,32075,32080,32189,32195,32207,32212,32245],{"type":21,"tag":22,"props":31171,"children":31172},{},[31173,31175,31179,31181,31186],{"type":31,"value":31174},"Most discussions of ",{"type":21,"tag":26,"props":31176,"children":31177},{"href":16693},[31178],{"type":31,"value":3977},{"type":31,"value":31180}," stall at the same place: ",{"type":21,"tag":12769,"props":31182,"children":31183},{},[31184],{"type":31,"value":31185},"when do we have to do this?",{"type":31,"value":31187}," The honest answer used to be \"nobody knows.\" That's no longer true. Not because anyone predicts when a cryptographically relevant quantum computer arrives, but because regulators stopped waiting for that prediction and published dates anyway.",{"type":21,"tag":22,"props":31189,"children":31190},{},[31191,31193,31198],{"type":31,"value":31192},"If you already understand what PQC is and which algorithms replace which, our ",{"type":21,"tag":26,"props":31194,"children":31195},{"href":3896},[31196],{"type":31,"value":31197},"guide to post-quantum cryptography",{"type":31,"value":31199}," covers that ground. This post is about the calendar and the project plan.",{"type":21,"tag":41,"props":31201,"children":31203},{"id":31202},"the-standards-are-settled",[31204],{"type":31,"value":31205},"The standards are settled",{"type":21,"tag":22,"props":31207,"children":31208},{},[31209],{"type":31,"value":31210},"NIST finalized three post-quantum standards on August 13, 2024, after an eight-year competition:",{"type":21,"tag":3162,"props":31212,"children":31213},{},[31214,31240],{"type":21,"tag":3166,"props":31215,"children":31216},{},[31217],{"type":21,"tag":3170,"props":31218,"children":31219},{},[31220,31225,31230,31235],{"type":21,"tag":3174,"props":31221,"children":31222},{},[31223],{"type":31,"value":31224},"Standard",{"type":21,"tag":3174,"props":31226,"children":31227},{},[31228],{"type":31,"value":31229},"Algorithm",{"type":21,"tag":3174,"props":31231,"children":31232},{},[31233],{"type":31,"value":31234},"Formerly",{"type":21,"tag":3174,"props":31236,"children":31237},{},[31238],{"type":31,"value":31239},"Replaces",{"type":21,"tag":3188,"props":31241,"children":31242},{},[31243,31269,31295],{"type":21,"tag":3170,"props":31244,"children":31245},{},[31246,31254,31259,31264],{"type":21,"tag":3195,"props":31247,"children":31248},{},[31249],{"type":21,"tag":16815,"props":31250,"children":31251},{},[31252],{"type":31,"value":31253},"FIPS 203",{"type":21,"tag":3195,"props":31255,"children":31256},{},[31257],{"type":31,"value":31258},"ML-KEM",{"type":21,"tag":3195,"props":31260,"children":31261},{},[31262],{"type":31,"value":31263},"CRYSTALS-Kyber",{"type":21,"tag":3195,"props":31265,"children":31266},{},[31267],{"type":31,"value":31268},"RSA key transport, ECDH",{"type":21,"tag":3170,"props":31270,"children":31271},{},[31272,31280,31285,31290],{"type":21,"tag":3195,"props":31273,"children":31274},{},[31275],{"type":21,"tag":16815,"props":31276,"children":31277},{},[31278],{"type":31,"value":31279},"FIPS 204",{"type":21,"tag":3195,"props":31281,"children":31282},{},[31283],{"type":31,"value":31284},"ML-DSA",{"type":21,"tag":3195,"props":31286,"children":31287},{},[31288],{"type":31,"value":31289},"CRYSTALS-Dilithium",{"type":21,"tag":3195,"props":31291,"children":31292},{},[31293],{"type":31,"value":31294},"ECDSA, RSA-PSS signatures",{"type":21,"tag":3170,"props":31296,"children":31297},{},[31298,31306,31311,31316],{"type":21,"tag":3195,"props":31299,"children":31300},{},[31301],{"type":21,"tag":16815,"props":31302,"children":31303},{},[31304],{"type":31,"value":31305},"FIPS 205",{"type":21,"tag":3195,"props":31307,"children":31308},{},[31309],{"type":31,"value":31310},"SLH-DSA",{"type":21,"tag":3195,"props":31312,"children":31313},{},[31314],{"type":31,"value":31315},"SPHINCS+",{"type":21,"tag":3195,"props":31317,"children":31318},{},[31319],{"type":31,"value":31320},"Conservative hash-based signing",{"type":21,"tag":22,"props":31322,"children":31323},{},[31324],{"type":31,"value":31325},"Use the FIPS names in procurement documents and internal specs. \"Kyber\" and \"Dilithium\" refer to the competition submissions, which differ in little but real ways from the standardized versions. A provider claiming \"Kyber support\" does or doesn't mean FIPS 203 compliance, and that ambiguity has already caused interop problems.",{"type":21,"tag":22,"props":31327,"children":31328},{},[31329,31331,31336,31338,31343],{"type":31,"value":31330},"Two more are in flight. NIST selected ",{"type":21,"tag":16815,"props":31332,"children":31333},{},[31334],{"type":31,"value":31335},"HQC",{"type":31,"value":31337}," in March 2025 as a code-based backup KEM with different mathematical foundations from ML-KEM, with a draft standard expected around 2026 and finalization targeted for 2027. ",{"type":21,"tag":16815,"props":31339,"children":31340},{},[31341],{"type":31,"value":31342},"FN-DSA",{"type":31,"value":31344}," (FALCON) remains slated for standardization as a compact-signature option. Neither should hold up your migration. ML-KEM and ML-DSA are the workhorses.",{"type":21,"tag":41,"props":31346,"children":31348},{"id":31347},"the-deadlines-that-exist-on-paper",[31349],{"type":31,"value":31350},"The deadlines that exist on paper",{"type":21,"tag":22,"props":31352,"children":31353},{},[31354],{"type":31,"value":31355},"Three separate sets of dates matter, and they don't line up.",{"type":21,"tag":22,"props":31357,"children":31358},{},[31359,31364,31365,31370,31372,31377,31378,31383],{"type":21,"tag":16815,"props":31360,"children":31361},{},[31362],{"type":31,"value":31363},"NIST IR 8547",{"type":31,"value":20781},{"type":21,"tag":12769,"props":31366,"children":31367},{},[31368],{"type":31,"value":31369},"Transition to Post-Quantum Cryptography Standards",{"type":31,"value":31371},", initial public draft November 2024) is the broadest. It proposes that RSA, ECDSA, EdDSA, ECDH, DSA, and finite-field Diffie-Hellman become ",{"type":21,"tag":16815,"props":31373,"children":31374},{},[31375],{"type":31,"value":31376},"deprecated after 2030",{"type":31,"value":3628},{"type":21,"tag":16815,"props":31379,"children":31380},{},[31381],{"type":31,"value":31382},"disallowed after 2035",{"type":31,"value":31384},". Deprecated means continued use requires the data owner to document a risk acceptance. Disallowed means the option to accept that risk goes away.",{"type":21,"tag":22,"props":31386,"children":31387},{},[31388,31393],{"type":21,"tag":16815,"props":31389,"children":31390},{},[31391],{"type":31,"value":31392},"NSA's CNSA 2.0",{"type":31,"value":31394}," applies to National Security Systems and moves faster, with a staged schedule by product category. As published and updated through May 2025, software and firmware signing is the leading edge (exclusive use of CNSA 2.0 algorithms from January 1, 2027), with networking equipment following around 2030, and operating systems, custom applications, and cloud services around 2033. Full quantum resistance across NSS is expected by 2035.",{"type":21,"tag":22,"props":31396,"children":31397},{},[31398,31403],{"type":21,"tag":16815,"props":31399,"children":31400},{},[31401],{"type":31,"value":31402},"OMB M-23-02",{"type":31,"value":31404}," (November 2022) is the one that already bit. It directed federal agencies to inventory cryptography on prioritized systems, produce funding estimates, and report annually, with entire federal migration targeted for 2035.",{"type":21,"tag":22,"props":31406,"children":31407},{},[31408,31410,31415],{"type":31,"value":31409},"Two things follow from this. First, if you sell to the US federal government, especially anything involving signed firmware, your effective deadline is ",{"type":21,"tag":16815,"props":31411,"children":31412},{},[31413],{"type":31,"value":31414},"2027, not 2035",{"type":31,"value":31416},". Second, even for purely commercial work, NIST's deprecation calendar becomes the de facto compliance baseline the moment auditors and insurers start citing it, which historically happens well before the date itself.",{"type":21,"tag":22,"props":31418,"children":31419},{},[31420],{"type":31,"value":31421},"Note that none of these dates are predictions about quantum hardware. They are engineering schedules working backward from the migration itself taking a decade.",{"type":21,"tag":41,"props":31423,"children":31425},{"id":31424},"why-the-threat-model-has-no-start-date",[31426],{"type":31,"value":31427},"Why the threat model has no start date",{"type":21,"tag":22,"props":31429,"children":31430},{},[31431,31433,31438,31440,31445],{"type":31,"value":31432},"The reason a 2030 deadline is defensible even though nobody expects a code-breaking quantum computer by 2030 is ",{"type":21,"tag":16815,"props":31434,"children":31435},{},[31436],{"type":31,"value":31437},"harvest now, decrypt later",{"type":31,"value":31439},". An adversary records encrypted traffic today and decrypts it whenever ",{"type":21,"tag":26,"props":31441,"children":31442},{"href":1237},[31443],{"type":31,"value":31444},"Shor's algorithm",{"type":31,"value":31446}," becomes runnable at scale. Any data whose confidentiality must outlive that moment is already exposed.",{"type":21,"tag":22,"props":31448,"children":31449},{},[31450],{"type":31,"value":31451},"The practical calculation is Mosca's inequality: if the time your data must stay secret plus the time your migration takes exceeds the time until a capable quantum computer exists, you are already late. For medical records with a 50-year sensitivity horizon and a five-year migration, you needed to start before the standards existed.",{"type":21,"tag":22,"props":31453,"children":31454},{},[31455,31457,31462,31464,31468,31470,31476],{"type":31,"value":31456},"What makes this hard to plan against is that the hardware estimate keeps moving. ",{"type":21,"tag":26,"props":31458,"children":31459},{"href":20002},[31460],{"type":31,"value":31461},"Shor's 1994 paper",{"type":31,"value":31463}," established the algorithm. The resource question (how numerous ",{"type":21,"tag":26,"props":31465,"children":31466},{"href":15870},[31467],{"type":31,"value":16514},{"type":31,"value":31469}," and how many gates to break RSA-2048) has been re-estimated downward repeatedly as compilation techniques improved. Recent work ",{"type":21,"tag":26,"props":31471,"children":31473},{"href":31472},"\u002Fresearch\u002Fshor-lean-formalization-2026",[31474],{"type":31,"value":31475},"machine-checking those estimates in Lean",{"type":31,"value":31477}," is valuable precisely because it removes hand-waving from a figure that security planning depends on. The estimates remain far beyond current devices, but \"far\" has been shrinking, and the direction of travel is one-way.",{"type":21,"tag":22,"props":31479,"children":31480},{},[31481,31483,31487],{"type":31,"value":31482},"For the record: symmetric cryptography is fine. ",{"type":21,"tag":26,"props":31484,"children":31485},{"href":1229},[31486],{"type":31,"value":29013},{"type":31,"value":31488}," gives only a quadratic speedup, so AES-256 retains 128-bit effective security. The migration is an asymmetric-crypto migration.",{"type":21,"tag":41,"props":31490,"children":31492},{"id":31491},"why-this-takes-years",[31493],{"type":31,"value":31494},"Why this takes years",{"type":21,"tag":22,"props":31496,"children":31497},{},[31498],{"type":31,"value":31499},"Migration is slow for reasons that have nothing to do with the algorithms:",{"type":21,"tag":1118,"props":31501,"children":31502},{},[31503,31513,31523,31533],{"type":21,"tag":71,"props":31504,"children":31505},{},[31506,31511],{"type":21,"tag":16815,"props":31507,"children":31508},{},[31509],{"type":31,"value":31510},"You don't know where your crypto is.",{"type":31,"value":31512}," It's in TLS terminators, JWT libraries, database TDE, backup encryption, VPN tunnels, code-signing pipelines, HSMs, IoT firmware, and vendor SDKs you don't control.",{"type":21,"tag":71,"props":31514,"children":31515},{},[31516,31521],{"type":21,"tag":16815,"props":31517,"children":31518},{},[31519],{"type":31,"value":31520},"Key and signature sizes change.",{"type":31,"value":31522}," ML-DSA public keys are roughly 1.3 KB versus 32 bytes for Ed25519, and SLH-DSA signatures sometimes run tens of kilobytes. Protocols with fixed-size fields, embedded devices with constrained flash, and certificate chains with MTU assumptions all break.",{"type":21,"tag":71,"props":31524,"children":31525},{},[31526,31531],{"type":21,"tag":16815,"props":31527,"children":31528},{},[31529],{"type":31,"value":31530},"Both endpoints must upgrade.",{"type":31,"value":31532}," You migrate at the speed of your slowest counterparty.",{"type":21,"tag":71,"props":31534,"children":31535},{},[31536,31541],{"type":21,"tag":16815,"props":31537,"children":31538},{},[31539],{"type":31,"value":31540},"Hardware has a decade-long tail.",{"type":31,"value":31542}," HSMs and embedded devices deployed today will still be running in 2035.",{"type":21,"tag":41,"props":31544,"children":31546},{"id":31545},"inventory-first-a-starting-point",[31547],{"type":31,"value":31548},"Inventory first: a starting point",{"type":21,"tag":22,"props":31550,"children":31551},{},[31552],{"type":31,"value":31553},"You cannot migrate an unknown. Outset with automated discovery of what's negotiated in production, not what your architecture diagram claims.",{"type":21,"tag":128,"props":31555,"children":31557},{"className":4512,"code":31556,"language":4511,"meta":7,"style":7},"# What key exchange and signature algorithms is this endpoint using?\nopenssl s_client -connect example.com:443 -brief \u003C\u002Fdev\u002Fnull 2>&1 \\\n  | grep -Ei 'protocol|ciphersuite|group|peer signature'\n\n# Does the endpoint support hybrid post-quantum key exchange?\n# Requires OpenSSL 3.5+, which ships ML-KEM natively.\nopenssl s_client -connect example.com:443 \\\n  -groups X25519MLKEM768 \u003C\u002Fdev\u002Fnull 2>&1 | grep -i 'group\\|error'\n\n# Inventory certificate signature algorithms across an internal fleet\nwhile read -r host; do\n  alg=$(echo | openssl s_client -connect \"$host:443\" 2>\u002Fdev\u002Fnull \\\n    | openssl x509 -noout -text 2>\u002Fdev\u002Fnull \\\n    | awk '\u002FSignature Algorithm\u002F {print $3; exit}')\n  printf '%s\\t%s\\n' \"$host\" \"${alg:-UNREACHABLE}\"\ndone \u003C hosts.txt\n",[31558],{"type":21,"tag":103,"props":31559,"children":31560},{"__ignoreMap":7},[31561,31569,31617,31640,31647,31655,31663,31686,31730,31737,31745,31778,31845,31884,31905,31955],{"type":21,"tag":138,"props":31562,"children":31563},{"class":140,"line":141},[31564],{"type":21,"tag":138,"props":31565,"children":31566},{"style":219},[31567],{"type":31,"value":31568},"# What key exchange and signature algorithms is this endpoint using?\n",{"type":21,"tag":138,"props":31570,"children":31571},{"class":140,"line":167},[31572,31577,31582,31587,31592,31597,31602,31607,31612],{"type":21,"tag":138,"props":31573,"children":31574},{"style":4522},[31575],{"type":31,"value":31576},"openssl",{"type":21,"tag":138,"props":31578,"children":31579},{"style":261},[31580],{"type":31,"value":31581}," s_client",{"type":21,"tag":138,"props":31583,"children":31584},{"style":213},[31585],{"type":31,"value":31586}," -connect",{"type":21,"tag":138,"props":31588,"children":31589},{"style":261},[31590],{"type":31,"value":31591}," example.com:443",{"type":21,"tag":138,"props":31593,"children":31594},{"style":213},[31595],{"type":31,"value":31596}," -brief",{"type":21,"tag":138,"props":31598,"children":31599},{"style":145},[31600],{"type":31,"value":31601}," \u003C",{"type":21,"tag":138,"props":31603,"children":31604},{"style":261},[31605],{"type":31,"value":31606},"\u002Fdev\u002Fnull",{"type":21,"tag":138,"props":31608,"children":31609},{"style":145},[31610],{"type":31,"value":31611}," 2>&1",{"type":21,"tag":138,"props":31613,"children":31614},{"style":213},[31615],{"type":31,"value":31616}," \\\n",{"type":21,"tag":138,"props":31618,"children":31619},{"class":140,"line":189},[31620,31625,31630,31635],{"type":21,"tag":138,"props":31621,"children":31622},{"style":145},[31623],{"type":31,"value":31624},"  |",{"type":21,"tag":138,"props":31626,"children":31627},{"style":4522},[31628],{"type":31,"value":31629}," grep",{"type":21,"tag":138,"props":31631,"children":31632},{"style":213},[31633],{"type":31,"value":31634}," -Ei",{"type":21,"tag":138,"props":31636,"children":31637},{"style":261},[31638],{"type":31,"value":31639}," 'protocol|ciphersuite|group|peer signature'\n",{"type":21,"tag":138,"props":31641,"children":31642},{"class":140,"line":199},[31643],{"type":21,"tag":138,"props":31644,"children":31645},{"emptyLinePlaceholder":193},[31646],{"type":31,"value":196},{"type":21,"tag":138,"props":31648,"children":31649},{"class":140,"line":225},[31650],{"type":21,"tag":138,"props":31651,"children":31652},{"style":219},[31653],{"type":31,"value":31654},"# Does the endpoint support hybrid post-quantum key exchange?\n",{"type":21,"tag":138,"props":31656,"children":31657},{"class":140,"line":233},[31658],{"type":21,"tag":138,"props":31659,"children":31660},{"style":219},[31661],{"type":31,"value":31662},"# Requires OpenSSL 3.5+, which ships ML-KEM natively.\n",{"type":21,"tag":138,"props":31664,"children":31665},{"class":140,"line":272},[31666,31670,31674,31678,31682],{"type":21,"tag":138,"props":31667,"children":31668},{"style":4522},[31669],{"type":31,"value":31576},{"type":21,"tag":138,"props":31671,"children":31672},{"style":261},[31673],{"type":31,"value":31581},{"type":21,"tag":138,"props":31675,"children":31676},{"style":213},[31677],{"type":31,"value":31586},{"type":21,"tag":138,"props":31679,"children":31680},{"style":261},[31681],{"type":31,"value":31591},{"type":21,"tag":138,"props":31683,"children":31684},{"style":213},[31685],{"type":31,"value":31616},{"type":21,"tag":138,"props":31687,"children":31688},{"class":140,"line":308},[31689,31694,31699,31703,31707,31711,31716,31720,31725],{"type":21,"tag":138,"props":31690,"children":31691},{"style":213},[31692],{"type":31,"value":31693},"  -groups",{"type":21,"tag":138,"props":31695,"children":31696},{"style":261},[31697],{"type":31,"value":31698}," X25519MLKEM768",{"type":21,"tag":138,"props":31700,"children":31701},{"style":145},[31702],{"type":31,"value":31601},{"type":21,"tag":138,"props":31704,"children":31705},{"style":261},[31706],{"type":31,"value":31606},{"type":21,"tag":138,"props":31708,"children":31709},{"style":145},[31710],{"type":31,"value":31611},{"type":21,"tag":138,"props":31712,"children":31713},{"style":145},[31714],{"type":31,"value":31715}," |",{"type":21,"tag":138,"props":31717,"children":31718},{"style":4522},[31719],{"type":31,"value":31629},{"type":21,"tag":138,"props":31721,"children":31722},{"style":213},[31723],{"type":31,"value":31724}," -i",{"type":21,"tag":138,"props":31726,"children":31727},{"style":261},[31728],{"type":31,"value":31729}," 'group\\|error'\n",{"type":21,"tag":138,"props":31731,"children":31732},{"class":140,"line":16},[31733],{"type":21,"tag":138,"props":31734,"children":31735},{"emptyLinePlaceholder":193},[31736],{"type":31,"value":196},{"type":21,"tag":138,"props":31738,"children":31739},{"class":140,"line":360},[31740],{"type":21,"tag":138,"props":31741,"children":31742},{"style":219},[31743],{"type":31,"value":31744},"# Inventory certificate signature algorithms across an internal fleet\n",{"type":21,"tag":138,"props":31746,"children":31747},{"class":140,"line":368},[31748,31753,31758,31763,31768,31773],{"type":21,"tag":138,"props":31749,"children":31750},{"style":145},[31751],{"type":31,"value":31752},"while",{"type":21,"tag":138,"props":31754,"children":31755},{"style":213},[31756],{"type":31,"value":31757}," read",{"type":21,"tag":138,"props":31759,"children":31760},{"style":213},[31761],{"type":31,"value":31762}," -r",{"type":21,"tag":138,"props":31764,"children":31765},{"style":261},[31766],{"type":31,"value":31767}," host",{"type":21,"tag":138,"props":31769,"children":31770},{"style":151},[31771],{"type":31,"value":31772},"; ",{"type":21,"tag":138,"props":31774,"children":31775},{"style":145},[31776],{"type":31,"value":31777},"do\n",{"type":21,"tag":138,"props":31779,"children":31780},{"class":140,"line":377},[31781,31786,31790,31795,31800,31804,31809,31813,31817,31822,31827,31832,31837,31841],{"type":21,"tag":138,"props":31782,"children":31783},{"style":151},[31784],{"type":31,"value":31785},"  alg",{"type":21,"tag":138,"props":31787,"children":31788},{"style":145},[31789],{"type":31,"value":210},{"type":21,"tag":138,"props":31791,"children":31792},{"style":151},[31793],{"type":31,"value":31794},"$(",{"type":21,"tag":138,"props":31796,"children":31797},{"style":213},[31798],{"type":31,"value":31799},"echo",{"type":21,"tag":138,"props":31801,"children":31802},{"style":145},[31803],{"type":31,"value":31715},{"type":21,"tag":138,"props":31805,"children":31806},{"style":4522},[31807],{"type":31,"value":31808}," openssl",{"type":21,"tag":138,"props":31810,"children":31811},{"style":261},[31812],{"type":31,"value":31581},{"type":21,"tag":138,"props":31814,"children":31815},{"style":213},[31816],{"type":31,"value":31586},{"type":21,"tag":138,"props":31818,"children":31819},{"style":261},[31820],{"type":31,"value":31821}," \"",{"type":21,"tag":138,"props":31823,"children":31824},{"style":151},[31825],{"type":31,"value":31826},"$host",{"type":21,"tag":138,"props":31828,"children":31829},{"style":261},[31830],{"type":31,"value":31831},":443\"",{"type":21,"tag":138,"props":31833,"children":31834},{"style":145},[31835],{"type":31,"value":31836}," 2>",{"type":21,"tag":138,"props":31838,"children":31839},{"style":261},[31840],{"type":31,"value":31606},{"type":21,"tag":138,"props":31842,"children":31843},{"style":213},[31844],{"type":31,"value":31616},{"type":21,"tag":138,"props":31846,"children":31847},{"class":140,"line":386},[31848,31853,31857,31862,31867,31872,31876,31880],{"type":21,"tag":138,"props":31849,"children":31850},{"style":145},[31851],{"type":31,"value":31852},"    |",{"type":21,"tag":138,"props":31854,"children":31855},{"style":4522},[31856],{"type":31,"value":31808},{"type":21,"tag":138,"props":31858,"children":31859},{"style":261},[31860],{"type":31,"value":31861}," x509",{"type":21,"tag":138,"props":31863,"children":31864},{"style":213},[31865],{"type":31,"value":31866}," -noout",{"type":21,"tag":138,"props":31868,"children":31869},{"style":213},[31870],{"type":31,"value":31871}," -text",{"type":21,"tag":138,"props":31873,"children":31874},{"style":145},[31875],{"type":31,"value":31836},{"type":21,"tag":138,"props":31877,"children":31878},{"style":261},[31879],{"type":31,"value":31606},{"type":21,"tag":138,"props":31881,"children":31882},{"style":213},[31883],{"type":31,"value":31616},{"type":21,"tag":138,"props":31885,"children":31886},{"class":140,"line":395},[31887,31891,31896,31901],{"type":21,"tag":138,"props":31888,"children":31889},{"style":145},[31890],{"type":31,"value":31852},{"type":21,"tag":138,"props":31892,"children":31893},{"style":4522},[31894],{"type":31,"value":31895}," awk",{"type":21,"tag":138,"props":31897,"children":31898},{"style":261},[31899],{"type":31,"value":31900}," '\u002FSignature Algorithm\u002F {print $3; exit}'",{"type":21,"tag":138,"props":31902,"children":31903},{"style":151},[31904],{"type":31,"value":269},{"type":21,"tag":138,"props":31906,"children":31907},{"class":140,"line":413},[31908,31913,31918,31922,31926,31930,31935,31940,31945,31950],{"type":21,"tag":138,"props":31909,"children":31910},{"style":213},[31911],{"type":31,"value":31912},"  printf",{"type":21,"tag":138,"props":31914,"children":31915},{"style":261},[31916],{"type":31,"value":31917}," '%s\\t%s\\n'",{"type":21,"tag":138,"props":31919,"children":31920},{"style":261},[31921],{"type":31,"value":31821},{"type":21,"tag":138,"props":31923,"children":31924},{"style":151},[31925],{"type":31,"value":31826},{"type":21,"tag":138,"props":31927,"children":31928},{"style":261},[31929],{"type":31,"value":15383},{"type":21,"tag":138,"props":31931,"children":31932},{"style":261},[31933],{"type":31,"value":31934}," \"${",{"type":21,"tag":138,"props":31936,"children":31937},{"style":151},[31938],{"type":31,"value":31939},"alg",{"type":21,"tag":138,"props":31941,"children":31942},{"style":145},[31943],{"type":31,"value":31944},":-",{"type":21,"tag":138,"props":31946,"children":31947},{"style":151},[31948],{"type":31,"value":31949},"UNREACHABLE",{"type":21,"tag":138,"props":31951,"children":31952},{"style":261},[31953],{"type":31,"value":31954},"}\"\n",{"type":21,"tag":138,"props":31956,"children":31957},{"class":140,"line":12602},[31958,31963,31967],{"type":21,"tag":138,"props":31959,"children":31960},{"style":145},[31961],{"type":31,"value":31962},"done",{"type":21,"tag":138,"props":31964,"children":31965},{"style":145},[31966],{"type":31,"value":31601},{"type":21,"tag":138,"props":31968,"children":31969},{"style":151},[31970],{"type":31,"value":31971}," hosts.txt\n",{"type":21,"tag":22,"props":31973,"children":31974},{},[31975,31977,31982],{"type":31,"value":31976},"Feed the results into a register that records, per system: the algorithm, key size, protocol, certificate authority, library and version, the owner, and, most importantly, ",{"type":21,"tag":16815,"props":31978,"children":31979},{},[31980],{"type":31,"value":31981},"how long the data it protects must stay confidential",{"type":31,"value":31983},". That last column is what turns an inventory into a prioritized migration order.",{"type":21,"tag":41,"props":31985,"children":31987},{"id":31986},"hybrid-deployment-is-the-low-risk-path",[31988],{"type":31,"value":31989},"Hybrid deployment is the low-risk path",{"type":21,"tag":22,"props":31991,"children":31992},{},[31993,31995,32000],{"type":31,"value":31994},"The consensus deployment pattern is hybrid: run a classical and a post-quantum key exchange together and combine both shared secrets, so the connection is safe unless ",{"type":21,"tag":12769,"props":31996,"children":31997},{},[31998],{"type":31,"value":31999},"both",{"type":31,"value":32001}," are broken. This hedges against implementation bugs and undiscovered cryptanalysis in the newer lattice schemes.",{"type":21,"tag":22,"props":32003,"children":32004},{},[32005,32007,32012],{"type":31,"value":32006},"This is no longer experimental. ",{"type":21,"tag":16815,"props":32008,"children":32009},{},[32010],{"type":31,"value":32011},"X25519MLKEM768",{"type":31,"value":32013}," is the standardized hybrid group, enabled by default in Chrome since version 131 and Firefox since 132, and OpenSSL 3.5 (April 2025) ships ML-KEM natively. Its default group list prefers the hybrid, meaning two OpenSSL 3.5 endpoints negotiate post-quantum key exchange with no configuration at all.",{"type":21,"tag":128,"props":32015,"children":32017},{"className":4512,"code":32016,"language":4511,"meta":7,"style":7},"# nginx with OpenSSL 3.5+: explicit hybrid preference, classical fallback\nssl_protocols TLSv1.3;\nssl_ecdh_curve X25519MLKEM768:X25519:P-256;\n",[32018],{"type":21,"tag":103,"props":32019,"children":32020},{"__ignoreMap":7},[32021,32029,32047],{"type":21,"tag":138,"props":32022,"children":32023},{"class":140,"line":141},[32024],{"type":21,"tag":138,"props":32025,"children":32026},{"style":219},[32027],{"type":31,"value":32028},"# nginx with OpenSSL 3.5+: explicit hybrid preference, classical fallback\n",{"type":21,"tag":138,"props":32030,"children":32031},{"class":140,"line":167},[32032,32037,32042],{"type":21,"tag":138,"props":32033,"children":32034},{"style":4522},[32035],{"type":31,"value":32036},"ssl_protocols",{"type":21,"tag":138,"props":32038,"children":32039},{"style":261},[32040],{"type":31,"value":32041}," TLSv1.3",{"type":21,"tag":138,"props":32043,"children":32044},{"style":151},[32045],{"type":31,"value":32046},";\n",{"type":21,"tag":138,"props":32048,"children":32049},{"class":140,"line":189},[32050,32055,32060],{"type":21,"tag":138,"props":32051,"children":32052},{"style":4522},[32053],{"type":31,"value":32054},"ssl_ecdh_curve",{"type":21,"tag":138,"props":32056,"children":32057},{"style":261},[32058],{"type":31,"value":32059}," X25519MLKEM768:X25519:P-256",{"type":21,"tag":138,"props":32061,"children":32062},{"style":151},[32063],{"type":31,"value":32046},{"type":21,"tag":22,"props":32065,"children":32066},{},[32067],{"type":31,"value":32068},"Signatures are further behind. Public CAs are not yet issuing ML-DSA certificates at scale, so key exchange is where you gain real HNDL protection today, and it's the cheapest win available.",{"type":21,"tag":41,"props":32070,"children":32072},{"id":32071},"what-to-do-this-quarter",[32073],{"type":31,"value":32074},"What to do this quarter",{"type":21,"tag":22,"props":32076,"children":32077},{},[32078],{"type":31,"value":32079},"A realistic 90-day slice:",{"type":21,"tag":67,"props":32081,"children":32082},{},[32083,32093,32132,32142,32152,32162,32179],{"type":21,"tag":71,"props":32084,"children":32085},{},[32086,32091],{"type":21,"tag":16815,"props":32087,"children":32088},{},[32089],{"type":31,"value":32090},"Appoint an owner.",{"type":31,"value":32092}," Migrations without a named accountable person do not happen. This is a multi-year program, not a ticket.",{"type":21,"tag":71,"props":32094,"children":32095},{},[32096,32101,32103,32109,32110,32116,32117,32123,32124,32130],{"type":21,"tag":16815,"props":32097,"children":32098},{},[32099],{"type":31,"value":32100},"Run automated discovery",{"type":31,"value":32102}," across external endpoints, internal service mesh, and code repositories. Grep your codebases for ",{"type":21,"tag":103,"props":32104,"children":32106},{"className":32105},[],[32107],{"type":31,"value":32108},"RSA",{"type":31,"value":258},{"type":21,"tag":103,"props":32111,"children":32113},{"className":32112},[],[32114],{"type":31,"value":32115},"ECDSA",{"type":31,"value":258},{"type":21,"tag":103,"props":32118,"children":32120},{"className":32119},[],[32121],{"type":31,"value":32122},"secp256",{"type":31,"value":258},{"type":21,"tag":103,"props":32125,"children":32127},{"className":32126},[],[32128],{"type":31,"value":32129},"PKCS1",{"type":31,"value":32131},", and hardcoded algorithm identifiers.",{"type":21,"tag":71,"props":32133,"children":32134},{},[32135,32140],{"type":21,"tag":16815,"props":32136,"children":32137},{},[32138],{"type":31,"value":32139},"Classify by data lifetime.",{"type":31,"value":32141}," Sort systems by how long their data must stay secret. Anything over ten years is priority one.",{"type":21,"tag":71,"props":32143,"children":32144},{},[32145,32150],{"type":21,"tag":16815,"props":32146,"children":32147},{},[32148],{"type":31,"value":32149},"Turn on hybrid TLS where it's free.",{"type":31,"value":32151}," Upgrade to OpenSSL 3.5+ or a TLS terminator that supports X25519MLKEM768. For numerous organizations this is a load-balancer config change covering the majority of traffic.",{"type":21,"tag":71,"props":32153,"children":32154},{},[32155,32160],{"type":21,"tag":16815,"props":32156,"children":32157},{},[32158],{"type":31,"value":32159},"Send the supplier questionnaire.",{"type":31,"value":32161}," Ask every crypto-touching vendor for their FIPS 203\u002F204\u002F205 roadmap with dates. Slow answers are your long pole. You need them on record now.",{"type":21,"tag":71,"props":32163,"children":32164},{},[32165,32170,32172,32177],{"type":21,"tag":16815,"props":32166,"children":32167},{},[32168],{"type":31,"value":32169},"Fix crypto-agility in new code.",{"type":31,"value":32171}," Stop hardcoding algorithms. Route every operation through an abstraction that takes the algorithm from configuration, so the ",{"type":21,"tag":12769,"props":32173,"children":32174},{},[32175],{"type":31,"value":32176},"next",{"type":31,"value":32178}," transition (HQC, FN-DSA, or whatever follows) is a config change rather than a rewrite. This is the single highest-leverage engineering change, because the 2035 deadline is not the last one.",{"type":21,"tag":71,"props":32180,"children":32181},{},[32182,32187],{"type":21,"tag":16815,"props":32183,"children":32184},{},[32185],{"type":31,"value":32186},"Move code signing early.",{"type":31,"value":32188}," It has the earliest federal deadline, the longest verification tail, and signatures that must remain verifiable for decades.",{"type":21,"tag":41,"props":32190,"children":32192},{"id":32191},"the-bottom-line",[32193],{"type":31,"value":32194},"The bottom line",{"type":21,"tag":22,"props":32196,"children":32197},{},[32198,32200,32205],{"type":31,"value":32199},"The deadlines are published, they're closer than the hardware timeline suggests, and they were set by people who assume migration takes ten years. Two dates are worth memorizing: ",{"type":21,"tag":16815,"props":32201,"children":32202},{},[32203],{"type":31,"value":32204},"after 2030, classical asymmetric crypto is deprecated, and after 2035, it's disallowed",{"type":31,"value":32206},", with federal national-security systems running years ahead of that.",{"type":21,"tag":22,"props":32208,"children":32209},{},[32210],{"type":31,"value":32211},"The work that pays off regardless of when quantum hardware arrives is the boring part: knowing where your cryptography lives and being able to change it without a rewrite. Everything else is a config flag.",{"type":21,"tag":22,"props":32213,"children":32214},{},[32215,32220,32221,32226,32227,32232,32233,32238,32239],{"type":21,"tag":16815,"props":32216,"children":32217},{},[32218],{"type":31,"value":32219},"Further reading:",{"type":31,"value":22965},{"type":21,"tag":26,"props":32222,"children":32223},{"href":3896},[32224],{"type":31,"value":32225},"What PQC is",{"type":31,"value":28968},{"type":21,"tag":26,"props":32228,"children":32229},{"href":19128},[32230],{"type":31,"value":32231},"Reading policy documents as technical assessments",{"type":31,"value":28968},{"type":21,"tag":26,"props":32234,"children":32235},{"href":1148},[32236],{"type":31,"value":32237},"Quantum computing glossary",{"type":31,"value":28968},{"type":21,"tag":26,"props":32240,"children":32242},{"href":32241},"\u002Fnews",[32243],{"type":31,"value":32244},"Latest developments",{"type":21,"tag":1174,"props":32246,"children":32247},{},[32248],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":32250},[32251,32252,32253,32254,32255,32256,32257,32258],{"id":31202,"depth":167,"text":31205},{"id":31347,"depth":167,"text":31350},{"id":31424,"depth":167,"text":31427},{"id":31491,"depth":167,"text":31494},{"id":31545,"depth":167,"text":31548},{"id":31986,"depth":167,"text":31989},{"id":32071,"depth":167,"text":32074},{"id":32191,"depth":167,"text":32194},"content:blog:post-quantum-migration-deadlines.md","blog\u002Fpost-quantum-migration-deadlines.md","blog\u002Fpost-quantum-migration-deadlines",{"_path":19964,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":32263,"description":32264,"date":25065,"author":11,"tags":32265,"readingTime":16,"body":32266,"_type":1193,"_id":32831,"_source":1195,"_file":32832,"_stem":32833,"_extension":1198},"Q-Day and What Breaking RSA-2048 Requires","Q-Day is one of the most abused terms in quantum computing. Here's a precise definition, the published resource estimates for factoring RSA-2048 with Shor's algorithm, and why those estimates disagree by orders of magnitude.",[3862,3863,3864],{"type":18,"children":32267,"toc":32821},[32268,32273,32278,32284,32308,32320,32325,32331,32349,32361,32367,32386,32425,32454,32460,32494,32521,32547,32573,32578,32631,32641,32647,32671,32683,32689,32694,32706,32712,32717,32743,32755,32761,32766,32778,32790],{"type":21,"tag":22,"props":32269,"children":32270},{},[32271],{"type":31,"value":32272},"\"Q-Day\" appears in vendor decks, government strategy documents, and newspaper headlines, usually with a countdown clock attached. It is rarely defined. That vagueness is doing a lot of work, because the term is used to mean at least two distinct things, and the gap between them is measured in years and billions of dollars of engineering.",{"type":21,"tag":22,"props":32274,"children":32275},{},[32276],{"type":31,"value":32277},"This article does the part that most coverage skips: what a machine capable of breaking RSA-2048 would have to be, according to published estimates, and why those estimates have ranged from twenty million qubits to under one million within six years.",{"type":21,"tag":41,"props":32279,"children":32281},{"id":32280},"defining-the-term-precisely",[32282],{"type":31,"value":32283},"Defining the term precisely",{"type":21,"tag":22,"props":32285,"children":32286},{},[32287,32293,32295,32300,32302,32306],{"type":21,"tag":26,"props":32288,"children":32290},{"href":32289},"\u002Fglossary\u002Fq-day",[32291],{"type":31,"value":32292},"Q-Day",{"type":31,"value":32294}," is most usefully defined as ",{"type":21,"tag":16815,"props":32296,"children":32297},{},[32298],{"type":31,"value":32299},"the day a cryptographically relevant quantum computer (CRQC) first exists",{"type":31,"value":32301},": a machine that runs ",{"type":21,"tag":26,"props":32303,"children":32304},{"href":1237},[32305],{"type":31,"value":31444},{"type":31,"value":32307}," against real-world key sizes within an operationally useful time.",{"type":21,"tag":22,"props":32309,"children":32310},{},[32311,32313,32318],{"type":31,"value":32312},"The looseness creeps in around \"real-world key sizes.\" Some writers use Q-Day to mean specifically ",{"type":21,"tag":12769,"props":32314,"children":32315},{},[32316],{"type":31,"value":32317},"RSA-2048 is broken",{"type":31,"value":32319},". Others use it for any CRQC, which would include a machine that breaks NIST P-256 elliptic-curve keys, a meaningfully easier goal, since ECC uses far smaller keys for equivalent classical security, and the elliptic-curve variant of Shor's needs a smaller register. A third group uses it loosely for \"quantum computers become scary,\" which is not a technical claim at all.",{"type":21,"tag":22,"props":32321,"children":32322},{},[32323],{"type":31,"value":32324},"Precision matters because these events do not happen on the same day. If P-256 falls before RSA-2048, the practical consequences differ sharply: ECDSA underpins TLS certificates, SSH, code signing, and most cryptocurrency, while RSA-2048 still guards a large installed base of older infrastructure. A plan built around one date risks being badly calibrated for the other.",{"type":21,"tag":41,"props":32326,"children":32328},{"id":32327},"why-the-date-matters-less-than-youd-think",[32329],{"type":31,"value":32330},"Why the date matters less than you'd think",{"type":21,"tag":22,"props":32332,"children":32333},{},[32334,32336,32340,32342,32347],{"type":31,"value":32335},"The instinct on hearing \"Q-Day\" is to ask when. That question is less decision-relevant than it feels, because of ",{"type":21,"tag":16815,"props":32337,"children":32338},{},[32339],{"type":31,"value":31437},{"type":31,"value":32341},": an adversary records encrypted traffic today and stores it until a CRQC exists. Any data whose confidentiality must outlive Q-Day is exposed ",{"type":21,"tag":12769,"props":32343,"children":32344},{},[32345],{"type":31,"value":32346},"now",{"type":31,"value":32348},", regardless of when Q-Day lands.",{"type":21,"tag":22,"props":32350,"children":32351},{},[32352,32354,32359],{"type":31,"value":32353},"So the question that drives decisions is not \"when is Q-Day\" but \"how long must this data stay secret, and how long will my migration take.\" Regulators have already answered on organizations' behalf with published deprecation dates. We cover those in detail in ",{"type":21,"tag":26,"props":32355,"children":32356},{"href":16733},[32357],{"type":31,"value":32358},"the entry-quantum migration clock",{"type":31,"value":32360},", and they are deliberately independent of any hardware forecast.",{"type":21,"tag":41,"props":32362,"children":32364},{"id":32363},"the-core-question-what-would-the-machine-look-like",[32365],{"type":31,"value":32366},"The core question: what would the machine look like?",{"type":21,"tag":22,"props":32368,"children":32369},{},[32370,32372,32377,32379,32384],{"type":31,"value":32371},"Shor's algorithm, ",{"type":21,"tag":26,"props":32373,"children":32374},{"href":20002},[32375],{"type":31,"value":32376},"introduced in 1994",{"type":31,"value":32378},", reduces factoring to period-finding, which it solves using ",{"type":21,"tag":26,"props":32380,"children":32382},{"href":32381},"\u002Fglossary\u002Fphase-estimation",[32383],{"type":31,"value":20441},{"type":31,"value":32385}," over a modular exponentiation circuit. The algorithmic cost is polynomial. The engineering cost is where the difficulty lives, and it splits into two different numbers.",{"type":21,"tag":22,"props":32387,"children":32388},{},[32389,32394,32396,32402,32404,32408,32410,32415,32417,32423],{"type":21,"tag":16815,"props":32390,"children":32391},{},[32392],{"type":31,"value":32393},"Logical qubits",{"type":31,"value":32395}," are the idealized, error-free qubits the algorithm is written against. Gidney and Ekerå's 2019 construction expresses this as ",{"type":21,"tag":103,"props":32397,"children":32399},{"className":32398},[],[32400],{"type":31,"value":32401},"3n + 0.002·n·lg n",{"type":31,"value":32403}," logical qubits for an ",{"type":21,"tag":12769,"props":32405,"children":32406},{},[32407],{"type":31,"value":19618},{"type":31,"value":32409},"-bit modulus. For RSA-2048 that works out to roughly ",{"type":21,"tag":16815,"props":32411,"children":32412},{},[32413],{"type":31,"value":32414},"6,200 logical qubits",{"type":31,"value":32416},", alongside a Toffoli gate count on the order of ",{"type":21,"tag":103,"props":32418,"children":32420},{"className":32419},[],[32421],{"type":31,"value":32422},"0.3n³",{"type":31,"value":32424},", billions of gates.",{"type":21,"tag":22,"props":32426,"children":32427},{},[32428,32433,32435,32439,32441,32445,32447,32452],{"type":21,"tag":16815,"props":32429,"children":32430},{},[32431],{"type":31,"value":32432},"Physical qubits",{"type":31,"value":32434}," are what you build. The ratio between them is the overhead imposed by ",{"type":21,"tag":26,"props":32436,"children":32437},{"href":15841},[32438],{"type":31,"value":14745},{"type":31,"value":32440},", and it is brutal. Under the surface code, each ",{"type":21,"tag":26,"props":32442,"children":32443},{"href":15870},[32444],{"type":31,"value":30780},{"type":31,"value":32446}," is encoded across a patch of physical qubits whose size grows with the ",{"type":21,"tag":12769,"props":32448,"children":32449},{},[32450],{"type":31,"value":32451},"code distance",{"type":31,"value":32453},", which must be chosen large enough that the total error across billions of gates stays below one. Getting from ~6,200 logical qubits to a working machine is where the millions come from.",{"type":21,"tag":41,"props":32455,"children":32457},{"id":32456},"the-published-estimates-and-why-they-moved",[32458],{"type":31,"value":32459},"The published estimates, and why they moved",{"type":21,"tag":22,"props":32461,"children":32462},{},[32463,32465,32470,32472,32477,32478,32485,32487,32492],{"type":31,"value":32464},"The most-cited figure comes from ",{"type":21,"tag":16815,"props":32466,"children":32467},{},[32468],{"type":31,"value":32469},"Gidney and Ekerå (2019)",{"type":31,"value":32471},": factoring a 2048-bit RSA integer in ",{"type":21,"tag":16815,"props":32473,"children":32474},{},[32475],{"type":31,"value":32476},"8 hours using 20 million noisy physical qubits",{"type":31,"value":20781},{"type":21,"tag":26,"props":32479,"children":32482},{"href":32480,"rel":32481},"https:\u002F\u002Farxiv.org\u002Fabs\u002F1905.09749",[7136],[32483],{"type":31,"value":32484},"arXiv:1905.09749",{"type":31,"value":32486},", later published in ",{"type":21,"tag":12769,"props":32488,"children":32489},{},[32490],{"type":31,"value":32491},"Quantum",{"type":31,"value":32493},"). That was already a hundredfold reduction in spacetime volume over prior proposals.",{"type":21,"tag":22,"props":32495,"children":32496},{},[32497,32499,32504,32506,32511,32512,32519],{"type":31,"value":32498},"In May 2025, ",{"type":21,"tag":16815,"props":32500,"children":32501},{},[32502],{"type":31,"value":32503},"Gidney",{"type":31,"value":32505}," published a revised analysis: ",{"type":21,"tag":16815,"props":32507,"children":32508},{},[32509],{"type":31,"value":32510},"fewer than one million noisy physical qubits, running for under a week",{"type":31,"value":20781},{"type":21,"tag":26,"props":32513,"children":32516},{"href":32514,"rel":32515},"https:\u002F\u002Farxiv.org\u002Fabs\u002F2505.15917",[7136],[32517],{"type":31,"value":32518},"arXiv:2505.15917",{"type":31,"value":32520},"). That is roughly a 20× reduction in qubit count against his own earlier number, traded for a longer runtime.",{"type":21,"tag":22,"props":32522,"children":32523},{},[32524,32526,32531,32533,32538,32540,32545],{"type":31,"value":32525},"Both papers assume broadly the same hardware model: a planar square grid of superconducting qubits with nearest-neighbour connectivity, a ",{"type":21,"tag":16815,"props":32527,"children":32528},{},[32529],{"type":31,"value":32530},"0.1% gate error rate",{"type":31,"value":32532},", a ",{"type":21,"tag":16815,"props":32534,"children":32535},{},[32536],{"type":31,"value":32537},"1 microsecond",{"type":31,"value":32539}," surface code cycle, and a ",{"type":21,"tag":16815,"props":32541,"children":32542},{},[32543],{"type":31,"value":32544},"10 microsecond",{"type":31,"value":32546}," control-system reaction time.",{"type":21,"tag":22,"props":32548,"children":32549},{},[32550,32552,32557,32559,32564,32566,32571],{"type":31,"value":32551},"That is the key insight about the discrepancy: ",{"type":21,"tag":16815,"props":32553,"children":32554},{},[32555],{"type":31,"value":32556},"the hardware assumptions barely changed. The algorithms and codes did.",{"type":31,"value":32558}," The 2025 reduction comes from three certain advances: approximate residue arithmetic (fewer operations), ",{"type":21,"tag":12769,"props":32560,"children":32561},{},[32562],{"type":31,"value":32563},"yoked surface codes",{"type":31,"value":32565}," (roughly tripling storage density for idle logical qubits), and ",{"type":21,"tag":12769,"props":32567,"children":32568},{},[32569],{"type":31,"value":32570},"magic state cultivation",{"type":31,"value":32572},", which makes producing the high-fidelity non-Clifford resource states that dominate the cost far cheaper than traditional distillation.",{"type":21,"tag":22,"props":32574,"children":32575},{},[32576],{"type":31,"value":32577},"This is why estimates in the wild vary so wildly. Any published number is a function of at least five assumptions:",{"type":21,"tag":1118,"props":32579,"children":32580},{},[32581,32591,32601,32611,32621],{"type":21,"tag":71,"props":32582,"children":32583},{},[32584,32589],{"type":21,"tag":16815,"props":32585,"children":32586},{},[32587],{"type":31,"value":32588},"Physical error rate.",{"type":31,"value":32590}," The required code distance depends on how far below threshold the hardware sits. A 10× better physical error rate cuts the overhead dramatically.",{"type":21,"tag":71,"props":32592,"children":32593},{},[32594,32599],{"type":21,"tag":16815,"props":32595,"children":32596},{},[32597],{"type":31,"value":32598},"Code choice.",{"type":31,"value":32600}," Surface codes are the conservative baseline. Higher-rate qLDPC codes are likely to reduce overhead substantially, at the cost of harder connectivity requirements.",{"type":21,"tag":71,"props":32602,"children":32603},{},[32604,32609],{"type":21,"tag":16815,"props":32605,"children":32606},{},[32607],{"type":31,"value":32608},"Cycle and reaction time.",{"type":31,"value":32610}," These set wall-clock runtime, and runtime feeds back into how much error correction you need.",{"type":21,"tag":71,"props":32612,"children":32613},{},[32614,32619],{"type":21,"tag":16815,"props":32615,"children":32616},{},[32617],{"type":31,"value":32618},"Magic state strategy.",{"type":31,"value":32620}," Distillation factories historically consumed the majority of the machine's footprint. Cultivation changes that budget.",{"type":21,"tag":71,"props":32622,"children":32623},{},[32624,32629],{"type":21,"tag":16815,"props":32625,"children":32626},{},[32627],{"type":31,"value":32628},"Space–time tradeoff.",{"type":31,"value":32630}," You nearly always buy fewer qubits with more hours, which is exactly what happened between the 2019 and 2025 papers. Quoting a qubit count without a runtime is meaningless.",{"type":21,"tag":22,"props":32632,"children":32633},{},[32634,32639],{"type":21,"tag":16815,"props":32635,"children":32636},{},[32637],{"type":31,"value":32638},"The direction of travel is the important dynamic.",{"type":31,"value":32640}," Over three decades, published estimates have moved consistently downward, driven by compilation and error-correction improvements rather than by hardware surprises. A migration plan that assumes today's estimate is the floor is planning against a number that has never yet stopped falling.",{"type":21,"tag":41,"props":32642,"children":32644},{"id":32643},"where-hardware-stands",[32645],{"type":31,"value":32646},"Where hardware stands",{"type":21,"tag":22,"props":32648,"children":32649},{},[32650,32652,32657,32659,32663,32665,32669],{"type":31,"value":32651},"Current devices carry roughly 100 to 1,000 physical qubits. Google's Willow processor, used in the 2024 ",{"type":21,"tag":26,"props":32653,"children":32654},{"href":25691},[32655],{"type":31,"value":32656},"below-threshold demonstration",{"type":31,"value":32658},", has 105. Even against the optimistic 2025 estimate, that is three orders of magnitude short in qubit count, before accounting for the ",{"type":21,"tag":26,"props":32660,"children":32661},{"href":18194},[32662],{"type":31,"value":13099},{"type":31,"value":32664},", connectivity, and control requirements those papers assume. Our ",{"type":21,"tag":26,"props":32666,"children":32667},{"href":1106},[32668],{"type":31,"value":16093},{"type":31,"value":32670}," tracks what is available.",{"type":21,"tag":22,"props":32672,"children":32673},{},[32674,32676,32681],{"type":31,"value":32675},"But the 2024 result matters more than the raw gap suggests. Google ran surface codes at distances 3, 5, and 7 and showed each increase roughly ",{"type":21,"tag":12769,"props":32677,"children":32678},{},[32679],{"type":31,"value":32680},"halved",{"type":31,"value":32682}," the logical error rate: the logical qubit outperformed its best constituent physical qubit. Every fault-tolerance roadmap assumes that adding qubits makes the encoded qubit better rather than worse. Until that experiment, it was an assumption. Crossing the threshold converted the remaining problem from an open physics question into a scaling and manufacturing one. Scaling problems are still extremely hard and sometimes take decades. They are a varied category of tough.",{"type":21,"tag":41,"props":32684,"children":32686},{"id":32685},"machine-checking-the-numbers",[32687],{"type":31,"value":32688},"Machine-checking the numbers",{"type":21,"tag":22,"props":32690,"children":32691},{},[32692],{"type":31,"value":32693},"A subtlety that rarely surfaces: these resource estimates are long, detailed, hand-written analyses, and migration budgets running into the billions are set on the basis of them. An arithmetic slip or an unstated assumption in a compilation argument propagates straight into policy.",{"type":21,"tag":22,"props":32695,"children":32696},{},[32697,32699,32704],{"type":31,"value":32698},"That is why the 2026 ",{"type":21,"tag":26,"props":32700,"children":32701},{"href":31472},[32702],{"type":31,"value":32703},"Lean formalization of Shor's algorithm",{"type":31,"value":32705}," is worth attention beyond its novelty. It formalizes order finding and the reversible circuits for modular and elliptic-curve arithmetic in a proof assistant, and machine-checks the logical resource estimates for both RSA-2048 and P-256. It does not settle the physical-qubit question (that still depends on the hardware assumptions above), but it puts the logical layer on an auditable footing. When a number drives a budget, \"a machine verified this derivation\" is a meaningfully stronger claim than \"several experts read the appendix.\"",{"type":21,"tag":41,"props":32707,"children":32709},{"id":32708},"the-vendor-perspective-clearly-labelled",[32710],{"type":31,"value":32711},"The vendor perspective, clearly labelled",{"type":21,"tag":22,"props":32713,"children":32714},{},[32715],{"type":31,"value":32716},"Quantum hardware companies publish extensively on Q-Day, and their framing deserves an explicit caveat: they sell the machines whose urgency they are describing.",{"type":21,"tag":22,"props":32718,"children":32719},{},[32720,32722,32727,32729,32734,32736,32741],{"type":31,"value":32721},"IonQ's December 2024 post ",{"type":21,"tag":12769,"props":32723,"children":32724},{},[32725],{"type":31,"value":32726},"Q-Day and the Impact of Breaking RSA2048",{"type":31,"value":32728},", by SVP of Product and Applications Ariel Braunstein, is a reasonable example. ",{"type":21,"tag":16815,"props":32730,"children":32731},{},[32732],{"type":31,"value":32733},"IonQ argues",{"type":31,"value":32735}," that harvest-now-decrypt-later is already underway, describing nation states collecting encrypted data in anticipation of future decryption capability, and that the unpredictability of algorithmic breakthroughs is itself a reason not to wait. To its credit, the post declines to name a year, presenting a spread of estimates across research organizations instead, and ",{"type":21,"tag":16815,"props":32737,"children":32738},{},[32739],{"type":31,"value":32740},"IonQ's recommendation",{"type":31,"value":32742}," (that organizations begin exploring quantum-resistant algorithms now, while acknowledging urgency varies with the timeline one assumes) is close to the mainstream security-community position.",{"type":21,"tag":22,"props":32744,"children":32745},{},[32746,32748,32753],{"type":31,"value":32747},"Note also what it does not contain. ",{"type":21,"tag":16815,"props":32749,"children":32750},{},[32751],{"type":31,"value":32752},"The IonQ post cites no qubit count or resource estimate for RSA-2048 at all.",{"type":31,"value":32754}," Its one concrete figure is an unrelated materials-simulation algorithm reduced from 1.5 trillion gate operations to 410,000. That is a genuine result about a varied workload, and it is not evidence about factoring. Treat provider content as a directionally useful signal about industry expectations, not as a neutral source for the resource question.",{"type":21,"tag":41,"props":32756,"children":32758},{"id":32757},"how-to-reason-about-it-yourself",[32759],{"type":31,"value":32760},"How to reason about it yourself",{"type":21,"tag":22,"props":32762,"children":32763},{},[32764],{"type":31,"value":32765},"The framing that survives contact with the uncertainty is Mosca's inequality: if your data's required confidentiality lifetime plus your migration time exceeds the time until a CRQC exists, you are already late. Only the third term is unknown, and the first two are usually large enough that the third barely changes the answer.",{"type":21,"tag":22,"props":32767,"children":32768},{},[32769,32771,32776],{"type":31,"value":32770},"So the honest conclusion is an uncomfortable one: ",{"type":21,"tag":16815,"props":32772,"children":32773},{},[32774],{"type":31,"value":32775},"nobody credible gives you a date, and anyone who does is telling you about their business model or their priors, not about physics.",{"type":31,"value":32777}," What we say precisely is what the machine would need to be, that the requirement has been revised downward repeatedly, and that the error-correction threshold has been crossed.",{"type":21,"tag":22,"props":32779,"children":32780},{},[32781,32783,32788],{"type":31,"value":32782},"The responsible posture is to migrate on a schedule that does not depend on knowing the date. Start with ",{"type":21,"tag":26,"props":32784,"children":32785},{"href":3896},[32786],{"type":31,"value":32787},"what PQC is",{"type":31,"value":32789},", then work the calendar. If your plan breaks when the estimate drops another 10×, it was never a plan.",{"type":21,"tag":22,"props":32791,"children":32792},{},[32793,32797,32798,32803,32804,32809,32810,32816,32817],{"type":21,"tag":16815,"props":32794,"children":32795},{},[32796],{"type":31,"value":32219},{"type":31,"value":22965},{"type":21,"tag":26,"props":32799,"children":32800},{"href":16733},[32801],{"type":31,"value":32802},"Post-quantum migration deadlines",{"type":31,"value":28968},{"type":21,"tag":26,"props":32805,"children":32806},{"href":15622},[32807],{"type":31,"value":32808},"Quantum error correction explained",{"type":31,"value":28968},{"type":21,"tag":26,"props":32811,"children":32813},{"href":32812},"\u002Fresearch",[32814],{"type":31,"value":32815},"Landmark research papers",{"type":31,"value":28968},{"type":21,"tag":26,"props":32818,"children":32819},{"href":32241},[32820],{"type":31,"value":32244},{"title":7,"searchDepth":167,"depth":167,"links":32822},[32823,32824,32825,32826,32827,32828,32829,32830],{"id":32280,"depth":167,"text":32283},{"id":32327,"depth":167,"text":32330},{"id":32363,"depth":167,"text":32366},{"id":32456,"depth":167,"text":32459},{"id":32643,"depth":167,"text":32646},{"id":32685,"depth":167,"text":32688},{"id":32708,"depth":167,"text":32711},{"id":32757,"depth":167,"text":32760},"content:blog:q-day-breaking-rsa-2048.md","blog\u002Fq-day-breaking-rsa-2048.md","blog\u002Fq-day-breaking-rsa-2048",{"_path":14761,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":32835,"description":32836,"date":25065,"author":11,"tags":32837,"readingTime":16,"body":32838,"_type":1193,"_id":33327,"_source":1195,"_file":33328,"_stem":33329,"_extension":1198},"The Real-Time Decoding Bottleneck: Quantum Error Correction's Classical Problem","Syndrome measurement tells you something broke, not what broke. Working that out is decoding, and if your classical decoder can't keep pace with the syndrome stream, the whole error-correction scheme collapses.",[14733,1213,13895],{"type":18,"children":32839,"toc":33317},[32840,32857,32869,32875,32886,32899,32911,32923,32929,32934,32939,32944,32956,32968,32980,32992,32998,33003,33013,33023,33033,33039,33044,33049,33061,33080,33085,33090,33096,33107,33112,33143,33155,33161,33166,33198,33203,33209,33221,33226,33245,33251,33256,33261,33272],{"type":21,"tag":22,"props":32841,"children":32842},{},[32843,32845,32849,32851,32855],{"type":31,"value":32844},"Most explanations of ",{"type":21,"tag":26,"props":32846,"children":32847},{"href":15841},[32848],{"type":31,"value":14745},{"type":31,"value":32850}," end at the same place. You encode a logical qubit across several physical ones, you run parity checks with ",{"type":21,"tag":26,"props":32852,"children":32853},{"href":30803},[32854],{"type":31,"value":30806},{"type":31,"value":32856},", you detect errors without collapsing the state, and then the article stops, having implied that detection is correction.",{"type":21,"tag":22,"props":32858,"children":32859},{},[32860,32862,32867],{"type":31,"value":32861},"It isn't. In our ",{"type":21,"tag":26,"props":32863,"children":32864},{"href":4095},[32865],{"type":31,"value":32866},"companion post on logical qubits and fault tolerance",{"type":31,"value":32868},", we listed real-time decoding as one of four things a fault-tolerant machine needs, and then moved on. This post picks up that thread, because it is the requirement least likely to be explained anywhere else, and it has a property the others don't: it is not fundamentally a quantum problem at all. It is a classical computing problem sitting inside the quantum computer, and it is currently one of the harder ones.",{"type":21,"tag":41,"props":32870,"children":32872},{"id":32871},"what-syndrome-measurement-gives-you",[32873],{"type":31,"value":32874},"What syndrome measurement gives you",{"type":21,"tag":22,"props":32876,"children":32877},{},[32878,32879,32884],{"type":31,"value":11039},{"type":21,"tag":26,"props":32880,"children":32881},{"href":15622},[32882],{"type":31,"value":32883},"QEC basics post",{"type":31,"value":32885}," covers the mechanics of parity checks, so we won't re-derive them. The relevant point is what comes out.",{"type":21,"tag":22,"props":32887,"children":32888},{},[32889,32891,32897],{"type":31,"value":32890},"A round of syndrome extraction hands you a list of bits. Each bit says whether one particular parity check agreed with its previous value or flipped. A flipped check means an error touched at least one of the qubits it monitors. That's it. You do not learn which qubit. You do not learn whether it was an X, Z, or Y error. See the ",{"type":21,"tag":26,"props":32892,"children":32894},{"href":32893},"\u002Fglossary\u002Fpauli-operators",[32895],{"type":31,"value":32896},"Pauli operator",{"type":31,"value":32898}," breakdown for why those are the only cases that matter. You learn only that the parity structure has been violated somewhere in the neighbourhood of that check.",{"type":21,"tag":22,"props":32900,"children":32901},{},[32902,32904,32909],{"type":31,"value":32903},"Worse, the ",{"type":21,"tag":26,"props":32905,"children":32906},{"href":14880},[32907],{"type":31,"value":32908},"measurement",{"type":31,"value":32910}," circuits are themselves noisy, so some flipped checks correspond to no data error at all. The check itself misfired. And errors that happen to straddle two checks flip both, while an error in the middle of a chain of errors sometimes flips nothing, because two violations cancel.",{"type":21,"tag":22,"props":32912,"children":32913},{},[32914,32916,32921],{"type":31,"value":32915},"So the syndrome is not a diagnosis. It is a constraint. The job is to find the most probable physical error consistent with that constraint, then apply (or, more often, simply record) the correction. That inference step is ",{"type":21,"tag":16815,"props":32917,"children":32918},{},[32919],{"type":31,"value":32920},"decoding",{"type":31,"value":32922},", and it is a genuine combinatorial optimisation problem.",{"type":21,"tag":41,"props":32924,"children":32926},{"id":32925},"the-part-that-makes-it-urgent",[32927],{"type":31,"value":32928},"The part that makes it urgent",{"type":21,"tag":22,"props":32930,"children":32931},{},[32932],{"type":31,"value":32933},"Here is where it stops being an interesting algorithms question and becomes an engineering crisis.",{"type":21,"tag":22,"props":32935,"children":32936},{},[32937],{"type":31,"value":32938},"Syndrome extraction is not a one-off. It runs continuously, in rounds, for the entire duration of the computation. On superconducting hardware a round takes roughly a microsecond. Google's Willow experiments ran a cycle time of about 1.1 µs. Every one of those cycles emits a fresh syndrome frame from every logical qubit on the chip. For a machine of any interesting size, the syndrome data rate runs into millions of measurements per second.",{"type":21,"tag":22,"props":32940,"children":32941},{},[32942],{"type":31,"value":32943},"Your decoder has to consume that stream at least as fast as it arrives. Not \"reasonably fast.\" At least as fast, sustained, forever.",{"type":21,"tag":22,"props":32945,"children":32946},{},[32947,32949,32954],{"type":31,"value":32948},"If it doesn't, you get the ",{"type":21,"tag":16815,"props":32950,"children":32951},{},[32952],{"type":31,"value":32953},"backlog problem",{"type":31,"value":32955},", and the backlog problem does not degrade gracefully. Suppose your decoder processes each round 10% slower than rounds are produced. Undecoded frames pile up. The queue grows linearly in wall-clock time, which sounds survivable until you remember why you needed the decode result in the first place.",{"type":21,"tag":22,"props":32957,"children":32958},{},[32959,32961,32966],{"type":31,"value":32960},"Certain operations in a fault-tolerant computation are ",{"type":21,"tag":12769,"props":32962,"children":32963},{},[32964],{"type":31,"value":32965},"conditional",{"type":31,"value":32967},": what gate you apply next depends on the decoded outcome of measurements already taken. The canonical case is a non-Clifford gate implemented via magic state injection, where a correction is applied or not depending on a measurement result that must first be decoded. At each such branch point, the machine must stop and wait for the decoder to catch up to the present moment. But while it waits, more syndrome rounds are being produced. The qubits don't stop decohering only because the classical side is busy. So the wait itself extends the backlog, which lengthens the next wait, which extends the backlog further.",{"type":21,"tag":22,"props":32969,"children":32970},{},[32971,32973,32978],{"type":31,"value":32972},"The result is an ",{"type":21,"tag":16815,"props":32974,"children":32975},{},[32976],{"type":31,"value":32977},"exponential slowdown",{"type":31,"value":32979},". Each conditional operation takes longer than the last by a compounding factor, and the computation grinds to a halt long before it finishes. A decoder that is 10% too slow doesn't cost you 10%. It costs you the entire computation. The requirement is a difficult throughput threshold, not a performance preference.",{"type":21,"tag":22,"props":32981,"children":32982},{},[32983,32985,32990],{"type":31,"value":32984},"This is why the word \"real-time\" is load-bearing. Offline decoding (recording the syndrome stream and analysing it afterwards) is perfectly fine for a ",{"type":21,"tag":12769,"props":32986,"children":32987},{},[32988],{"type":31,"value":32989},"memory",{"type":31,"value":32991}," experiment, where you only want to know whether the stored state survived. It is useless for computation.",{"type":21,"tag":41,"props":32993,"children":32995},{"id":32994},"the-decoder-families-and-their-bargains",[32996],{"type":31,"value":32997},"The decoder families, and their bargains",{"type":21,"tag":22,"props":32999,"children":33000},{},[33001],{"type":31,"value":33002},"The decoding challenge has a beautiful structure in the surface code, and a much uglier one elsewhere.",{"type":21,"tag":22,"props":33004,"children":33005},{},[33006,33011],{"type":21,"tag":16815,"props":33007,"children":33008},{},[33009],{"type":31,"value":33010},"Minimum-weight perfect matching (MWPM).",{"type":31,"value":33012}," In the surface code, errors have a geometric signature: a chain of errors flips exactly the two checks at its endpoints. Syndrome violations therefore come in pairs, and finding the most likely error reduces to pairing up the flipped checks so that the total length of the connecting paths is minimised. That's a classic graph problem with a classic polynomial-time solution, Edmonds' blossom algorithm. MWPM has long been the accuracy benchmark for surface-code decoding: roughly a 0.94% threshold on weighted decoder graphs in commonly cited comparisons. Its problem is speed: polynomial time is not the same as fast enough, and the constant factors are unfriendly at microsecond deadlines.",{"type":21,"tag":22,"props":33014,"children":33015},{},[33016,33021],{"type":21,"tag":16815,"props":33017,"children":33018},{},[33019],{"type":31,"value":33020},"Union-find.",{"type":31,"value":33022}," The pragmatic answer. Union-find grows clusters around syndrome violations until each cluster is explained by an internal error, using disjoint-set data structures that run in almost-linear time. It's a rapid approximation of what matching does, and the accuracy cost is real but modest, with reported thresholds around 0.83% weighted versus MWPM's 0.94%. That trade has made it the workhorse for hardware implementations, particularly FPGA ones.",{"type":21,"tag":22,"props":33024,"children":33025},{},[33026,33031],{"type":21,"tag":16815,"props":33027,"children":33028},{},[33029],{"type":31,"value":33030},"Belief propagation plus ordered statistics (BP-OSD).",{"type":31,"value":33032}," This is what you reach for when the matching trick stops working, which is exactly what happens with quantum LDPC codes.",{"type":21,"tag":41,"props":33034,"children":33036},{"id":33035},"why-qldpc-decoding-is-genuinely-harder",[33037],{"type":31,"value":33038},"Why qLDPC decoding is genuinely harder",{"type":21,"tag":22,"props":33040,"children":33041},{},[33042],{"type":31,"value":33043},"The surface code's decoding advantage comes from a property most codes don't share: each error chain flips precisely two checks, so the syndrome maps onto a matching problem. Take that away and you're back to general belief propagation over a Tanner graph: the same message-passing machinery used for classical LDPC codes in modern telecoms.",{"type":21,"tag":22,"props":33045,"children":33046},{},[33047],{"type":31,"value":33048},"Except it works worse in the quantum case, for two structural reasons.",{"type":21,"tag":22,"props":33050,"children":33051},{},[33052,33054,33059],{"type":31,"value":33053},"First, ",{"type":21,"tag":16815,"props":33055,"children":33056},{},[33057],{"type":31,"value":33058},"short cycles",{"type":31,"value":33060},". Belief propagation assumes the graph is locally tree-like. The loops in quantum code Tanner graphs break that assumption and hurt convergence.",{"type":21,"tag":22,"props":33062,"children":33063},{},[33064,33066,33071,33073,33078],{"type":31,"value":33065},"Second, and more fundamentally, ",{"type":21,"tag":16815,"props":33067,"children":33068},{},[33069],{"type":31,"value":33070},"degeneracy",{"type":31,"value":33072},". In a quantum code, genuinely different physical error patterns are sometimes ",{"type":21,"tag":12769,"props":33074,"children":33075},{},[33076],{"type":31,"value":33077},"equivalent",{"type":31,"value":33079},": they differ by a stabilizer and therefore have identical syndromes and identical effects on the logical state. Classically, this doesn't happen. Each syndrome points toward one most likely error. Quantum mechanically, belief propagation gets stuck oscillating between equally valid candidates it has no basis to choose between. It's not that the decoder can't find the answer. It's that there are several answers and the algorithm's tie-breaking machinery wasn't designed for that.",{"type":21,"tag":22,"props":33081,"children":33082},{},[33083],{"type":31,"value":33084},"The standard fix is to bolt ordered statistics decoding onto the back: when BP fails to converge, OSD solves a linear system to pick a candidate. It works, and it costs you. Plain BP scales roughly linearly in code size. The OSD post-processing step is around O(N³). For a decoder on a microsecond budget, cubic scaling is precisely the wrong shape.",{"type":21,"tag":22,"props":33086,"children":33087},{},[33088],{"type":31,"value":33089},"So qLDPC codes present the field with an awkward bargain: better codes, worse decoders.",{"type":21,"tag":41,"props":33091,"children":33093},{"id":33092},"why-anyone-puts-up-with-it",[33094],{"type":31,"value":33095},"Why anyone puts up with it",{"type":21,"tag":22,"props":33097,"children":33098},{},[33099,33101,33105],{"type":31,"value":33100},"Because the encoding rate is dramatically better. Surface codes are extravagant: the ",{"type":21,"tag":26,"props":33102,"children":33103},{"href":15870},[33104],{"type":31,"value":21202},{"type":31,"value":33106}," runs to hundreds or thousands of physical qubits each, and the fault-tolerance estimates that produce headline figures of millions of physical qubits are mostly surface-code estimates. qLDPC codes, including the bivariate bicycle family, promise far more logical qubits per physical qubit. If that holds up, it moves the timeline for useful fault tolerance by a large margin. That is a prize worth accepting a harder decoding problem for.",{"type":21,"tag":22,"props":33108,"children":33109},{},[33110],{"type":31,"value":33111},"This is where vendors have entered the picture, and where the claims need careful handling.",{"type":21,"tag":22,"props":33113,"children":33114},{},[33115,33120,33122,33127,33129,33134,33136,33141],{"type":21,"tag":16815,"props":33116,"children":33117},{},[33118],{"type":31,"value":33119},"IonQ reports",{"type":31,"value":33121}," having developed a \"Beam Search\" decoder intended to replace BP-OSD for quantum LDPC codes. On bivariate bicycle codes, ",{"type":21,"tag":16815,"props":33123,"children":33124},{},[33125],{"type":31,"value":33126},"IonQ claims",{"type":31,"value":33128}," a 17x reduction in logical error rate relative to standard BP-OSD, along with a 26x reduction in worst-case (99.9th percentile) runtime, which ",{"type":21,"tag":16815,"props":33130,"children":33131},{},[33132],{"type":31,"value":33133},"IonQ states",{"type":31,"value":33135}," it brought under one millisecond on a single core of a commercial CPU. ",{"type":21,"tag":16815,"props":33137,"children":33138},{},[33139],{"type":31,"value":33140},"IonQ further estimates",{"type":31,"value":33142}," that three 32-core CPUs would suffice to decode 1,000 logical qubits in its trapped-ion architecture, contrasting that with roughly 1,000 FPGAs for surface-code approaches and 84 FPGAs for superconducting LDPC implementations.",{"type":21,"tag":22,"props":33144,"children":33145},{},[33146,33148,33153],{"type":31,"value":33147},"Those are vendor-reported figures, measured under vendor-chosen conditions, on vendor-selected codes and noise models, and IonQ is a hardware company with a commercial interest in the conclusion that its architecture needs less classical support than its competitors'. The direction of the work is credible and the problem is real. The particular multipliers should be treated as claims pending independent reproduction, in the same way we'd treat any ",{"type":21,"tag":26,"props":33149,"children":33150},{"href":19128},[33151],{"type":31,"value":33152},"benchmark",{"type":31,"value":33154}," that hasn't been replicated by a disinterested party.",{"type":21,"tag":41,"props":33156,"children":33158},{"id":33157},"why-you-cant-simply-pick-the-fast-decoder",[33159],{"type":31,"value":33160},"Why you can't simply pick the fast decoder",{"type":21,"tag":22,"props":33162,"children":33163},{},[33164],{"type":31,"value":33165},"The obvious response to a latency problem is to accept a worse answer faster. In decoding, that instinct is sometimes fatal.",{"type":21,"tag":22,"props":33167,"children":33168},{},[33169,33171,33176,33178,33183,33185,33190,33192,33196],{"type":31,"value":33170},"A less accurate decoder produces a higher logical error rate for the same physical error rate. And the logical error rate is exactly the quantity the threshold theorem is about. ",{"type":21,"tag":26,"props":33172,"children":33173},{"href":25691},[33174],{"type":31,"value":33175},"Google's 2024 below-threshold result",{"type":31,"value":33177}," (the first experimental demonstration that increasing code distance suppresses logical errors rather than amplifying them, descending from ",{"type":21,"tag":26,"props":33179,"children":33180},{"href":30890},[33181],{"type":31,"value":33182},"Kitaev's topological codes",{"type":31,"value":33184}," and ultimately ",{"type":21,"tag":26,"props":33186,"children":33187},{"href":30877},[33188],{"type":31,"value":33189},"Shor's original 1995 code",{"type":31,"value":33191},") was a narrow win. Each distance increase roughly halved the error rate. A decoder that degrades logical ",{"type":21,"tag":26,"props":33193,"children":33194},{"href":18194},[33195],{"type":31,"value":13099},{"type":31,"value":33197}," enough eats that margin entirely and puts you back above threshold, at which point adding qubits makes things worse and the whole exercise inverts.",{"type":21,"tag":22,"props":33199,"children":33200},{},[33201],{"type":31,"value":33202},"So the decoder isn't a peripheral. It sits inside the threshold calculation. You cannot report a threshold crossing without saying which decoder produced it, and a below-threshold result obtained with an offline MWPM decoder is a weaker claim than the identical result obtained in real time. Notably, Google's experiment did decode in real time, reporting average decoder latency around 63 µs at distance 5 while sustaining below-threshold performance across up to a million cycles, using an ensemble of neural-network and matching approaches rather than a single clean algorithm.",{"type":21,"tag":41,"props":33204,"children":33206},{"id":33205},"where-the-decoder-physically-lives",[33207],{"type":31,"value":33208},"Where the decoder physically lives",{"type":21,"tag":22,"props":33210,"children":33211},{},[33212,33214,33219],{"type":31,"value":33213},"The last constraint is a plumbing one. Syndrome bits have to travel from the ",{"type":21,"tag":26,"props":33215,"children":33217},{"href":33216},"\u002Fglossary\u002Fqpu",[33218],{"type":31,"value":30719},{"type":31,"value":33220}," to whatever computes on them, and the answer has to travel back, inside the error-correction cycle time.",{"type":21,"tag":22,"props":33222,"children":33223},{},[33224],{"type":31,"value":33225},"That budget covers readout, digitisation, transmission over the classical link, the decode itself, and the return trip. On superconducting hardware the qubits sit in a dilution refrigerator and the classical processor generally doesn't, so the link crosses a temperature boundary. Implementations split roughly three ways: software decoders on CPUs or GPUs (flexible and straightforward to iterate on, but carrying OS-level latency jitter), FPGA decoders (the current sweet spot for real-time surface-code work), and ASICs (fastest, but freezing your algorithm into silicon in a field where decoding algorithms are still actively improving).",{"type":21,"tag":22,"props":33227,"children":33228},{},[33229,33231,33236,33238,33243],{"type":31,"value":33230},"Slower gate speeds change the maths considerably. Trapped-ion systems operate on microsecond-to-millisecond gate timescales rather than nanoseconds, which relaxes the per-round decoding deadline by orders of magnitude. Part of why a sub-millisecond software decoder is a plausible proposition in that setting and not in a superconducting one. This is another place where ",{"type":21,"tag":26,"props":33232,"children":33233},{"href":19079},[33234],{"type":31,"value":33235},"modality differences",{"type":31,"value":33237}," drive architecture rather than being incidental, and it's visible in the ",{"type":21,"tag":26,"props":33239,"children":33240},{"href":21948},[33241],{"type":31,"value":33242},"hardware landscape",{"type":31,"value":33244}," if you know to appear for it.",{"type":21,"tag":41,"props":33246,"children":33248},{"id":33247},"the-honest-state-of-things",[33249],{"type":31,"value":33250},"The honest state of things",{"type":21,"tag":22,"props":33252,"children":33253},{},[33254],{"type":31,"value":33255},"Real-time decoding is not solved. It is an active, competitive, genuinely open engineering problem, and it scales in an uncomfortable direction: more logical qubits means more syndrome streams, and the classical side has to grow with the quantum side.",{"type":21,"tag":22,"props":33257,"children":33258},{},[33259],{"type":31,"value":33260},"What makes it worth understanding is what it reveals about the shape of the machine. A fault-tolerant quantum computer is not a QPU with a control rack attached. It is a quantum processor and a substantial classical real-time computing system operating as one device, where the classical half's throughput is a hard constraint on whether the quantum half works at all. The decoder is not support equipment. It is part of the computer.",{"type":21,"tag":22,"props":33262,"children":33263},{},[33264,33266,33271],{"type":31,"value":33265},"That framing also explains why progress here is slower to make headlines than qubit counts. There is no satisfying number to announce. But if you're tracking whether fault tolerance is arriving, decoder latency and accuracy under real-time conditions are among the more informative things to watch, more so than most of what appears in ",{"type":21,"tag":26,"props":33267,"children":33268},{"href":32241},[33269],{"type":31,"value":33270},"quantum news",{"type":31,"value":6678},{"type":21,"tag":22,"props":33273,"children":33274},{},[33275,33277,33281,33283,33287,33289,33293,33295,33300,33302,33308,33310,33315],{"type":31,"value":33276},"None of this is a reason to wait. The concepts underneath (noise, ",{"type":21,"tag":26,"props":33278,"children":33279},{"href":4156},[33280],{"type":31,"value":30760},{"type":31,"value":33282},", what a ",{"type":21,"tag":26,"props":33284,"children":33285},{"href":3064},[33286],{"type":31,"value":24494},{"type":31,"value":33288}," does under measurement) are the same ones you'd work with on a fault-tolerant machine, and you build that intuition now on ",{"type":21,"tag":26,"props":33290,"children":33291},{"href":3304},[33292],{"type":31,"value":31112},{"type":31,"value":33294},". The ",{"type":21,"tag":26,"props":33296,"children":33297},{"href":32812},[33298],{"type":31,"value":33299},"research library",{"type":31,"value":33301}," has the primary sources, ",{"type":21,"tag":26,"props":33303,"children":33305},{"href":33304},"\u002Fglossary\u002Fsyndrome-decoding",[33306],{"type":31,"value":33307},"syndrome decoding",{"type":31,"value":33309}," has the compact definition, and if you want to see what problems this infrastructure is ultimately being built for, the ",{"type":21,"tag":26,"props":33311,"children":33312},{"href":16304},[33313],{"type":31,"value":33314},"use cases page",{"type":31,"value":33316}," is the place to begin.",{"title":7,"searchDepth":167,"depth":167,"links":33318},[33319,33320,33321,33322,33323,33324,33325,33326],{"id":32871,"depth":167,"text":32874},{"id":32925,"depth":167,"text":32928},{"id":32994,"depth":167,"text":32997},{"id":33035,"depth":167,"text":33038},{"id":33092,"depth":167,"text":33095},{"id":33157,"depth":167,"text":33160},{"id":33205,"depth":167,"text":33208},{"id":33247,"depth":167,"text":33250},"content:blog:quantum-error-decoding-bottleneck.md","blog\u002Fquantum-error-decoding-bottleneck.md","blog\u002Fquantum-error-decoding-bottleneck",{"_path":18029,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":33331,"description":33332,"date":25065,"author":11,"tags":33333,"readingTime":360,"body":33334,"_type":1193,"_id":35565,"_source":1195,"_file":35566,"_stem":35567,"_extension":1198},"The Quantum Fourier Transform: Build It Yourself in Qiskit","A hands-on tutorial that builds the QFT gate by gate in Qiskit, verifies it against the library implementation, and explains why an exponentially faster Fourier transform gives you no speedup on its own.",[13,14,15],{"type":18,"children":33335,"toc":35554},[33336,33348,33353,33361,33367,33379,33384,33392,33420,33431,33437,33449,33454,33477,33489,33495,33500,33551,33568,33574,33585,33613,33618,34181,34186,34194,34199,34205,34217,34397,34401,34409,34429,34435,34446,34784,34788,34796,34808,34813,34987,34991,34999,35004,35010,35033,35043,35068,35073,35079,35091,35395,35400,35491,35502,35506,35545,35550],{"type":21,"tag":22,"props":33337,"children":33338},{},[33339,33340,33346],{"type":31,"value":11039},{"type":21,"tag":26,"props":33341,"children":33343},{"href":33342},"\u002Fglossary\u002Fqft",[33344],{"type":31,"value":33345},"Quantum Fourier Transform",{"type":31,"value":33347}," is the single most significant subroutine in quantum computing. It's the engine inside Shor's factoring algorithm, quantum phase estimation, and order finding. It's also the most commonly misunderstood algorithm in the field, because on paper it looks like an exponentially faster FFT, and it absolutely is not.",{"type":21,"tag":22,"props":33349,"children":33350},{},[33351],{"type":31,"value":33352},"This tutorial builds the QFT from scratch in Qiskit, proves the implementation is correct against Qiskit's own, and then explains carefully where the speedup goes.",{"type":21,"tag":22,"props":33354,"children":33355},{},[33356],{"type":21,"tag":16815,"props":33357,"children":33358},{},[33359],{"type":31,"value":33360},"All code in this post was executed against Qiskit 2.5.0 and Qiskit Aer 0.17.2 on Python 3.11. The outputs shown are real.",{"type":21,"tag":41,"props":33362,"children":33364},{"id":33363},"what-the-qft-does",[33365],{"type":31,"value":33366},"What the QFT does",{"type":21,"tag":22,"props":33368,"children":33369},{},[33370,33372,33377],{"type":31,"value":33371},"The classical Discrete Fourier Transform takes a vector of N numbers and returns N Fourier coefficients. The QFT does exactly the same linear map, but the input vector is the ",{"type":21,"tag":12769,"props":33373,"children":33374},{},[33375],{"type":31,"value":33376},"amplitude vector",{"type":31,"value":33378}," of an n-qubit state, so N = 2ⁿ.",{"type":21,"tag":22,"props":33380,"children":33381},{},[33382],{"type":31,"value":33383},"On basis states it acts as:",{"type":21,"tag":128,"props":33385,"children":33387},{"code":33386},"QFT |x⟩ = (1\u002F√N) Σ_{k=0}^{N-1} e^{2πi·xk\u002FN} |k⟩\n",[33388],{"type":21,"tag":103,"props":33389,"children":33390},{"__ignoreMap":7},[33391],{"type":31,"value":33386},{"type":21,"tag":22,"props":33393,"children":33394},{},[33395,33397,33402,33404,33410,33412,33418],{"type":31,"value":33396},"Notice what's on the right: every basis state gets amplitude of the ",{"type":21,"tag":12769,"props":33398,"children":33399},{},[33400],{"type":31,"value":33401},"same magnitude",{"type":31,"value":33403}," (1\u002F√N), and all the information about ",{"type":21,"tag":103,"props":33405,"children":33407},{"className":33406},[],[33408],{"type":31,"value":33409},"x",{"type":31,"value":33411}," lives in the complex phase ",{"type":21,"tag":103,"props":33413,"children":33415},{"className":33414},[],[33416],{"type":31,"value":33417},"e^{2πi·xk\u002FN}",{"type":31,"value":33419},". The QFT takes information that was sitting in the computational basis and pushes it into the phases.",{"type":21,"tag":22,"props":33421,"children":33422},{},[33423,33425,33429],{"type":31,"value":33424},"That single fact is the whole story of the QFT. It's a perfectly uniform state, as far as any ",{"type":21,"tag":26,"props":33426,"children":33427},{"href":14880},[33428],{"type":31,"value":32908},{"type":31,"value":33430}," in the computational basis is concerned. If you QFT a basis state and measure, you get a uniformly random n-bit string. Every time. You learn nothing.",{"type":21,"tag":41,"props":33432,"children":33434},{"id":33433},"the-readout-problem-stated-plainly",[33435],{"type":31,"value":33436},"The readout problem, stated plainly",{"type":21,"tag":22,"props":33438,"children":33439},{},[33440,33442,33447],{"type":31,"value":33441},"Here's the trap. The QFT on n qubits takes O(n²) gates. Classically, an FFT on the same 2ⁿ amplitudes takes O(n·2ⁿ) operations. That is a genuine exponential gap in ",{"type":21,"tag":12769,"props":33443,"children":33444},{},[33445],{"type":31,"value":33446},"gate count",{"type":31,"value":33448},", and it's the number everybody quotes.",{"type":21,"tag":22,"props":33450,"children":33451},{},[33452],{"type":31,"value":33453},"But it isn't a usable speedup, for two reasons:",{"type":21,"tag":67,"props":33455,"children":33456},{},[33457,33467],{"type":21,"tag":71,"props":33458,"children":33459},{},[33460,33465],{"type":21,"tag":16815,"props":33461,"children":33462},{},[33463],{"type":31,"value":33464},"You can't load the input.",{"type":31,"value":33466}," Getting 2ⁿ arbitrary classical amplitudes into a quantum register generally costs O(2ⁿ) gates, wiping out the advantage before you start.",{"type":21,"tag":71,"props":33468,"children":33469},{},[33470,33475],{"type":21,"tag":16815,"props":33471,"children":33472},{},[33473],{"type":31,"value":33474},"You can't read the output.",{"type":31,"value":33476}," The Fourier coefficients are amplitudes. You cannot look at amplitudes. You only sample from their squared magnitudes, one n-bit string per shot. Extracting all 2ⁿ coefficients would take exponentially many repetitions.",{"type":21,"tag":22,"props":33478,"children":33479},{},[33480,33482,33487],{"type":31,"value":33481},"So the QFT is never a drop-in replacement for the FFT. It is a ",{"type":21,"tag":12769,"props":33483,"children":33484},{},[33485],{"type":31,"value":33486},"transform you apply in the middle of a larger circuit",{"type":31,"value":33488},", where the goal isn't to read the spectrum but to convert a periodicity that was hidden in phases into a peak you sample directly. That's the shape every real application takes.",{"type":21,"tag":41,"props":33490,"children":33492},{"id":33491},"the-circuit-hadamard-rotate-recurse-swap",[33493],{"type":31,"value":33494},"The circuit: Hadamard, rotate, recurse, swap",{"type":21,"tag":22,"props":33496,"children":33497},{},[33498],{"type":31,"value":33499},"The construction follows directly from factoring the exponential above into a product over qubits. For the most significant qubit:",{"type":21,"tag":67,"props":33501,"children":33502},{},[33503,33520,33541,33546],{"type":21,"tag":71,"props":33504,"children":33505},{},[33506,33507,33512,33514,33518],{"type":31,"value":29105},{"type":21,"tag":26,"props":33508,"children":33509},{"href":3096},[33510],{"type":31,"value":33511},"Hadamard",{"type":31,"value":33513},". This creates a ",{"type":21,"tag":26,"props":33515,"children":33516},{"href":3083},[33517],{"type":31,"value":30688},{"type":31,"value":33519}," whose relative phase encodes one bit of the input.",{"type":21,"tag":71,"props":33521,"children":33522},{},[33523,33525,33531,33533,33539],{"type":31,"value":33524},"Apply controlled-phase gates ",{"type":21,"tag":103,"props":33526,"children":33528},{"className":33527},[],[33529],{"type":31,"value":33530},"CP(π\u002F2^k)",{"type":31,"value":33532}," from each less significant qubit, controlled onto that same qubit. Qubit distance ",{"type":21,"tag":103,"props":33534,"children":33536},{"className":33535},[],[33537],{"type":31,"value":33538},"k",{"type":31,"value":33540}," contributes a rotation of π\u002F2^k: the further away, the smaller the correction.",{"type":21,"tag":71,"props":33542,"children":33543},{},[33544],{"type":31,"value":33545},"Recurse on the remaining n−1 qubits.",{"type":21,"tag":71,"props":33547,"children":33548},{},[33549],{"type":31,"value":33550},"Swap the qubit order at the end.",{"type":21,"tag":22,"props":33552,"children":33553},{},[33554,33559,33561,33566],{"type":21,"tag":16815,"props":33555,"children":33556},{},[33557],{"type":31,"value":33558},"Why the swaps?",{"type":31,"value":33560}," The recursion naturally produces the output register in reverse bit order. Qubit 0 ends up holding what should be the most significant output bit, and vice versa. This is a real bug, not a bookkeeping convention. If you feed an unswapped QFT into phase estimation you obtain a bit-reversed answer. The swaps fix it. (In hardware-aware compilation you sometimes ",{"type":21,"tag":12769,"props":33562,"children":33563},{},[33564],{"type":31,"value":33565},"do",{"type":31,"value":33567}," drop the swaps and relabel the wires downstream instead, which is free. But if your QFT is a standalone reusable block, keep them.)",{"type":21,"tag":41,"props":33569,"children":33571},{"id":33570},"building-it-in-qiskit",[33572],{"type":31,"value":33573},"Building it in Qiskit",{"type":21,"tag":22,"props":33575,"children":33576},{},[33577,33579,33583],{"type":31,"value":33578},"Make sure you have ",{"type":21,"tag":26,"props":33580,"children":33581},{"href":1126},[33582],{"type":31,"value":14},{"type":31,"value":33584}," and the Aer simulator installed:",{"type":21,"tag":128,"props":33586,"children":33588},{"code":33587,"language":4511,"meta":7,"className":4512,"style":7},"pip install qiskit qiskit-aer\n",[33589],{"type":21,"tag":103,"props":33590,"children":33591},{"__ignoreMap":7},[33592],{"type":21,"tag":138,"props":33593,"children":33594},{"class":140,"line":141},[33595,33599,33603,33608],{"type":21,"tag":138,"props":33596,"children":33597},{"style":4522},[33598],{"type":31,"value":4525},{"type":21,"tag":138,"props":33600,"children":33601},{"style":261},[33602],{"type":31,"value":4530},{"type":21,"tag":138,"props":33604,"children":33605},{"style":261},[33606],{"type":31,"value":33607}," qiskit",{"type":21,"tag":138,"props":33609,"children":33610},{"style":261},[33611],{"type":31,"value":33612}," qiskit-aer\n",{"type":21,"tag":22,"props":33614,"children":33615},{},[33616],{"type":31,"value":33617},"Now the construction, written recursively so it mirrors the math:",{"type":21,"tag":128,"props":33619,"children":33621},{"code":33620,"language":132,"meta":7,"className":130,"style":7},"import numpy as np\nfrom qiskit import QuantumCircuit, transpile\nfrom qiskit.quantum_info import Statevector, Operator\nfrom qiskit_aer import AerSimulator\n\n\ndef qft_rotations(circuit, n):\n    \"\"\"Hadamard + controlled phases on the top qubit, then recurse.\"\"\"\n    if n == 0:\n        return circuit\n    n -= 1                      # index of the most significant qubit\n    circuit.h(n)\n    for qubit in range(n):\n        # qubit is (n - qubit) positions below the target\n        circuit.cp(np.pi \u002F 2 ** (n - qubit), qubit, n)\n    qft_rotations(circuit, n)   # recurse on the rest\n    return circuit\n\n\ndef swap_registers(circuit, n):\n    \"\"\"Reverse the qubit order to undo the bit reversal.\"\"\"\n    for qubit in range(n \u002F\u002F 2):\n        circuit.swap(qubit, n - qubit - 1)\n    return circuit\n\n\ndef qft(n):\n    qc = QuantumCircuit(n, name=\"QFT\")\n    qft_rotations(qc, n)\n    swap_registers(qc, n)\n    return qc\n\n\nmy_qft = qft(4)\nprint(my_qft.draw(output=\"text\"))\nprint(my_qft.count_ops())\n",[33622],{"type":21,"tag":103,"props":33623,"children":33624},{"__ignoreMap":7},[33625,33644,33663,33683,33702,33709,33716,33733,33741,33766,33779,33801,33809,33833,33841,33875,33888,33899,33906,33913,33929,33937,33972,34000,34011,34018,34025,34041,34073,34081,34089,34100,34107,34114,34139,34169],{"type":21,"tag":138,"props":33626,"children":33627},{"class":140,"line":141},[33628,33632,33636,33640],{"type":21,"tag":138,"props":33629,"children":33630},{"style":145},[33631],{"type":31,"value":159},{"type":21,"tag":138,"props":33633,"children":33634},{"style":151},[33635],{"type":31,"value":8530},{"type":21,"tag":138,"props":33637,"children":33638},{"style":145},[33639],{"type":31,"value":5356},{"type":21,"tag":138,"props":33641,"children":33642},{"style":151},[33643],{"type":31,"value":8632},{"type":21,"tag":138,"props":33645,"children":33646},{"class":140,"line":167},[33647,33651,33655,33659],{"type":21,"tag":138,"props":33648,"children":33649},{"style":145},[33650],{"type":31,"value":148},{"type":21,"tag":138,"props":33652,"children":33653},{"style":151},[33654],{"type":31,"value":154},{"type":21,"tag":138,"props":33656,"children":33657},{"style":145},[33658],{"type":31,"value":159},{"type":21,"tag":138,"props":33660,"children":33661},{"style":151},[33662],{"type":31,"value":20069},{"type":21,"tag":138,"props":33664,"children":33665},{"class":140,"line":189},[33666,33670,33674,33678],{"type":21,"tag":138,"props":33667,"children":33668},{"style":145},[33669],{"type":31,"value":148},{"type":21,"tag":138,"props":33671,"children":33672},{"style":151},[33673],{"type":31,"value":17517},{"type":21,"tag":138,"props":33675,"children":33676},{"style":145},[33677],{"type":31,"value":159},{"type":21,"tag":138,"props":33679,"children":33680},{"style":151},[33681],{"type":31,"value":33682}," Statevector, Operator\n",{"type":21,"tag":138,"props":33684,"children":33685},{"class":140,"line":199},[33686,33690,33694,33698],{"type":21,"tag":138,"props":33687,"children":33688},{"style":145},[33689],{"type":31,"value":148},{"type":21,"tag":138,"props":33691,"children":33692},{"style":151},[33693],{"type":31,"value":177},{"type":21,"tag":138,"props":33695,"children":33696},{"style":145},[33697],{"type":31,"value":159},{"type":21,"tag":138,"props":33699,"children":33700},{"style":151},[33701],{"type":31,"value":186},{"type":21,"tag":138,"props":33703,"children":33704},{"class":140,"line":225},[33705],{"type":21,"tag":138,"props":33706,"children":33707},{"emptyLinePlaceholder":193},[33708],{"type":31,"value":196},{"type":21,"tag":138,"props":33710,"children":33711},{"class":140,"line":233},[33712],{"type":21,"tag":138,"props":33713,"children":33714},{"emptyLinePlaceholder":193},[33715],{"type":31,"value":196},{"type":21,"tag":138,"props":33717,"children":33718},{"class":140,"line":272},[33719,33723,33728],{"type":21,"tag":138,"props":33720,"children":33721},{"style":145},[33722],{"type":31,"value":5500},{"type":21,"tag":138,"props":33724,"children":33725},{"style":4522},[33726],{"type":31,"value":33727}," qft_rotations",{"type":21,"tag":138,"props":33729,"children":33730},{"style":151},[33731],{"type":31,"value":33732},"(circuit, n):\n",{"type":21,"tag":138,"props":33734,"children":33735},{"class":140,"line":308},[33736],{"type":21,"tag":138,"props":33737,"children":33738},{"style":261},[33739],{"type":31,"value":33740},"    \"\"\"Hadamard + controlled phases on the top qubit, then recurse.\"\"\"\n",{"type":21,"tag":138,"props":33742,"children":33743},{"class":140,"line":16},[33744,33748,33753,33757,33762],{"type":21,"tag":138,"props":33745,"children":33746},{"style":145},[33747],{"type":31,"value":19536},{"type":21,"tag":138,"props":33749,"children":33750},{"style":151},[33751],{"type":31,"value":33752}," n ",{"type":21,"tag":138,"props":33754,"children":33755},{"style":145},[33756],{"type":31,"value":7348},{"type":21,"tag":138,"props":33758,"children":33759},{"style":213},[33760],{"type":31,"value":33761}," 0",{"type":21,"tag":138,"props":33763,"children":33764},{"style":151},[33765],{"type":31,"value":26811},{"type":21,"tag":138,"props":33767,"children":33768},{"class":140,"line":360},[33769,33774],{"type":21,"tag":138,"props":33770,"children":33771},{"style":145},[33772],{"type":31,"value":33773},"        return",{"type":21,"tag":138,"props":33775,"children":33776},{"style":151},[33777],{"type":31,"value":33778}," circuit\n",{"type":21,"tag":138,"props":33780,"children":33781},{"class":140,"line":368},[33782,33787,33792,33796],{"type":21,"tag":138,"props":33783,"children":33784},{"style":151},[33785],{"type":31,"value":33786},"    n ",{"type":21,"tag":138,"props":33788,"children":33789},{"style":145},[33790],{"type":31,"value":33791},"-=",{"type":21,"tag":138,"props":33793,"children":33794},{"style":213},[33795],{"type":31,"value":17063},{"type":21,"tag":138,"props":33797,"children":33798},{"style":219},[33799],{"type":31,"value":33800},"                      # index of the most significant qubit\n",{"type":21,"tag":138,"props":33802,"children":33803},{"class":140,"line":377},[33804],{"type":21,"tag":138,"props":33805,"children":33806},{"style":151},[33807],{"type":31,"value":33808},"    circuit.h(n)\n",{"type":21,"tag":138,"props":33810,"children":33811},{"class":140,"line":386},[33812,33816,33821,33825,33829],{"type":21,"tag":138,"props":33813,"children":33814},{"style":145},[33815],{"type":31,"value":17037},{"type":21,"tag":138,"props":33817,"children":33818},{"style":151},[33819],{"type":31,"value":33820}," qubit ",{"type":21,"tag":138,"props":33822,"children":33823},{"style":145},[33824],{"type":31,"value":1502},{"type":21,"tag":138,"props":33826,"children":33827},{"style":213},[33828],{"type":31,"value":7430},{"type":21,"tag":138,"props":33830,"children":33831},{"style":151},[33832],{"type":31,"value":29686},{"type":21,"tag":138,"props":33834,"children":33835},{"class":140,"line":395},[33836],{"type":21,"tag":138,"props":33837,"children":33838},{"style":219},[33839],{"type":31,"value":33840},"        # qubit is (n - qubit) positions below the target\n",{"type":21,"tag":138,"props":33842,"children":33843},{"class":140,"line":413},[33844,33849,33853,33857,33861,33866,33870],{"type":21,"tag":138,"props":33845,"children":33846},{"style":151},[33847],{"type":31,"value":33848},"        circuit.cp(np.pi ",{"type":21,"tag":138,"props":33850,"children":33851},{"style":145},[33852],{"type":31,"value":5075},{"type":21,"tag":138,"props":33854,"children":33855},{"style":213},[33856],{"type":31,"value":21034},{"type":21,"tag":138,"props":33858,"children":33859},{"style":145},[33860],{"type":31,"value":20609},{"type":21,"tag":138,"props":33862,"children":33863},{"style":151},[33864],{"type":31,"value":33865}," (n ",{"type":21,"tag":138,"props":33867,"children":33868},{"style":145},[33869],{"type":31,"value":831},{"type":21,"tag":138,"props":33871,"children":33872},{"style":151},[33873],{"type":31,"value":33874}," qubit), qubit, n)\n",{"type":21,"tag":138,"props":33876,"children":33877},{"class":140,"line":12602},[33878,33883],{"type":21,"tag":138,"props":33879,"children":33880},{"style":151},[33881],{"type":31,"value":33882},"    qft_rotations(circuit, n)   ",{"type":21,"tag":138,"props":33884,"children":33885},{"style":219},[33886],{"type":31,"value":33887},"# recurse on the rest\n",{"type":21,"tag":138,"props":33889,"children":33890},{"class":140,"line":12619},[33891,33895],{"type":21,"tag":138,"props":33892,"children":33893},{"style":145},[33894],{"type":31,"value":5595},{"type":21,"tag":138,"props":33896,"children":33897},{"style":151},[33898],{"type":31,"value":33778},{"type":21,"tag":138,"props":33900,"children":33901},{"class":140,"line":12635},[33902],{"type":21,"tag":138,"props":33903,"children":33904},{"emptyLinePlaceholder":193},[33905],{"type":31,"value":196},{"type":21,"tag":138,"props":33907,"children":33908},{"class":140,"line":12643},[33909],{"type":21,"tag":138,"props":33910,"children":33911},{"emptyLinePlaceholder":193},[33912],{"type":31,"value":196},{"type":21,"tag":138,"props":33914,"children":33915},{"class":140,"line":17760},[33916,33920,33925],{"type":21,"tag":138,"props":33917,"children":33918},{"style":145},[33919],{"type":31,"value":5500},{"type":21,"tag":138,"props":33921,"children":33922},{"style":4522},[33923],{"type":31,"value":33924}," swap_registers",{"type":21,"tag":138,"props":33926,"children":33927},{"style":151},[33928],{"type":31,"value":33732},{"type":21,"tag":138,"props":33930,"children":33931},{"class":140,"line":17778},[33932],{"type":21,"tag":138,"props":33933,"children":33934},{"style":261},[33935],{"type":31,"value":33936},"    \"\"\"Reverse the qubit order to undo the bit reversal.\"\"\"\n",{"type":21,"tag":138,"props":33938,"children":33939},{"class":140,"line":17803},[33940,33944,33948,33952,33956,33960,33964,33968],{"type":21,"tag":138,"props":33941,"children":33942},{"style":145},[33943],{"type":31,"value":17037},{"type":21,"tag":138,"props":33945,"children":33946},{"style":151},[33947],{"type":31,"value":33820},{"type":21,"tag":138,"props":33949,"children":33950},{"style":145},[33951],{"type":31,"value":1502},{"type":21,"tag":138,"props":33953,"children":33954},{"style":213},[33955],{"type":31,"value":7430},{"type":21,"tag":138,"props":33957,"children":33958},{"style":151},[33959],{"type":31,"value":17054},{"type":21,"tag":138,"props":33961,"children":33962},{"style":145},[33963],{"type":31,"value":21029},{"type":21,"tag":138,"props":33965,"children":33966},{"style":213},[33967],{"type":31,"value":21034},{"type":21,"tag":138,"props":33969,"children":33970},{"style":151},[33971],{"type":31,"value":7443},{"type":21,"tag":138,"props":33973,"children":33974},{"class":140,"line":17830},[33975,33980,33984,33988,33992,33996],{"type":21,"tag":138,"props":33976,"children":33977},{"style":151},[33978],{"type":31,"value":33979},"        circuit.swap(qubit, n ",{"type":21,"tag":138,"props":33981,"children":33982},{"style":145},[33983],{"type":31,"value":831},{"type":21,"tag":138,"props":33985,"children":33986},{"style":151},[33987],{"type":31,"value":33820},{"type":21,"tag":138,"props":33989,"children":33990},{"style":145},[33991],{"type":31,"value":831},{"type":21,"tag":138,"props":33993,"children":33994},{"style":213},[33995],{"type":31,"value":17063},{"type":21,"tag":138,"props":33997,"children":33998},{"style":151},[33999],{"type":31,"value":269},{"type":21,"tag":138,"props":34001,"children":34002},{"class":140,"line":17856},[34003,34007],{"type":21,"tag":138,"props":34004,"children":34005},{"style":145},[34006],{"type":31,"value":5595},{"type":21,"tag":138,"props":34008,"children":34009},{"style":151},[34010],{"type":31,"value":33778},{"type":21,"tag":138,"props":34012,"children":34013},{"class":140,"line":17865},[34014],{"type":21,"tag":138,"props":34015,"children":34016},{"emptyLinePlaceholder":193},[34017],{"type":31,"value":196},{"type":21,"tag":138,"props":34019,"children":34020},{"class":140,"line":17877},[34021],{"type":21,"tag":138,"props":34022,"children":34023},{"emptyLinePlaceholder":193},[34024],{"type":31,"value":196},{"type":21,"tag":138,"props":34026,"children":34027},{"class":140,"line":17885},[34028,34032,34037],{"type":21,"tag":138,"props":34029,"children":34030},{"style":145},[34031],{"type":31,"value":5500},{"type":21,"tag":138,"props":34033,"children":34034},{"style":4522},[34035],{"type":31,"value":34036}," qft",{"type":21,"tag":138,"props":34038,"children":34039},{"style":151},[34040],{"type":31,"value":29686},{"type":21,"tag":138,"props":34042,"children":34043},{"class":140,"line":17938},[34044,34048,34052,34056,34060,34064,34069],{"type":21,"tag":138,"props":34045,"children":34046},{"style":151},[34047],{"type":31,"value":17784},{"type":21,"tag":138,"props":34049,"children":34050},{"style":145},[34051],{"type":31,"value":210},{"type":21,"tag":138,"props":34053,"children":34054},{"style":151},[34055],{"type":31,"value":29354},{"type":21,"tag":138,"props":34057,"children":34058},{"style":929},[34059],{"type":31,"value":29359},{"type":21,"tag":138,"props":34061,"children":34062},{"style":145},[34063],{"type":31,"value":210},{"type":21,"tag":138,"props":34065,"children":34066},{"style":261},[34067],{"type":31,"value":34068},"\"QFT\"",{"type":21,"tag":138,"props":34070,"children":34071},{"style":151},[34072],{"type":31,"value":269},{"type":21,"tag":138,"props":34074,"children":34075},{"class":140,"line":26899},[34076],{"type":21,"tag":138,"props":34077,"children":34078},{"style":151},[34079],{"type":31,"value":34080},"    qft_rotations(qc, n)\n",{"type":21,"tag":138,"props":34082,"children":34083},{"class":140,"line":26944},[34084],{"type":21,"tag":138,"props":34085,"children":34086},{"style":151},[34087],{"type":31,"value":34088},"    swap_registers(qc, n)\n",{"type":21,"tag":138,"props":34090,"children":34091},{"class":140,"line":26957},[34092,34096],{"type":21,"tag":138,"props":34093,"children":34094},{"style":145},[34095],{"type":31,"value":5595},{"type":21,"tag":138,"props":34097,"children":34098},{"style":151},[34099],{"type":31,"value":17750},{"type":21,"tag":138,"props":34101,"children":34102},{"class":140,"line":26965},[34103],{"type":21,"tag":138,"props":34104,"children":34105},{"emptyLinePlaceholder":193},[34106],{"type":31,"value":196},{"type":21,"tag":138,"props":34108,"children":34109},{"class":140,"line":26981},[34110],{"type":21,"tag":138,"props":34111,"children":34112},{"emptyLinePlaceholder":193},[34113],{"type":31,"value":196},{"type":21,"tag":138,"props":34115,"children":34116},{"class":140,"line":26999},[34117,34122,34126,34131,34135],{"type":21,"tag":138,"props":34118,"children":34119},{"style":151},[34120],{"type":31,"value":34121},"my_qft ",{"type":21,"tag":138,"props":34123,"children":34124},{"style":145},[34125],{"type":31,"value":210},{"type":21,"tag":138,"props":34127,"children":34128},{"style":151},[34129],{"type":31,"value":34130}," qft(",{"type":21,"tag":138,"props":34132,"children":34133},{"style":213},[34134],{"type":31,"value":17931},{"type":21,"tag":138,"props":34136,"children":34137},{"style":151},[34138],{"type":31,"value":269},{"type":21,"tag":138,"props":34140,"children":34141},{"class":140,"line":27007},[34142,34146,34151,34156,34160,34165],{"type":21,"tag":138,"props":34143,"children":34144},{"style":213},[34145],{"type":31,"value":954},{"type":21,"tag":138,"props":34147,"children":34148},{"style":151},[34149],{"type":31,"value":34150},"(my_qft.draw(",{"type":21,"tag":138,"props":34152,"children":34153},{"style":929},[34154],{"type":31,"value":34155},"output",{"type":21,"tag":138,"props":34157,"children":34158},{"style":145},[34159],{"type":31,"value":210},{"type":21,"tag":138,"props":34161,"children":34162},{"style":261},[34163],{"type":31,"value":34164},"\"text\"",{"type":21,"tag":138,"props":34166,"children":34167},{"style":151},[34168],{"type":31,"value":5609},{"type":21,"tag":138,"props":34170,"children":34171},{"class":140,"line":27040},[34172,34176],{"type":21,"tag":138,"props":34173,"children":34174},{"style":213},[34175],{"type":31,"value":954},{"type":21,"tag":138,"props":34177,"children":34178},{"style":151},[34179],{"type":31,"value":34180},"(my_qft.count_ops())\n",{"type":21,"tag":22,"props":34182,"children":34183},{},[34184],{"type":31,"value":34185},"Real output:",{"type":21,"tag":128,"props":34187,"children":34189},{"code":34188},"                                                                          ┌───┐»\nq_0: ──────■───────────────────────────────■──────────────────────■───────┤ H ├»\n           │                               │                ┌───┐ │P(π\u002F2) └───┘»\nq_1: ──────┼────────■──────────────────────┼────────■───────┤ H ├─■─────────X──»\n           │        │                ┌───┐ │P(π\u002F4)  │P(π\u002F2) └───┘           │  »\nq_2: ──────┼────────┼────────■───────┤ H ├─■────────■───────────────────────X──»\n     ┌───┐ │P(π\u002F8)  │P(π\u002F4)  │P(π\u002F2) └───┘                                     »\nq_3: ┤ H ├─■────────■────────■─────────────────────────────────────────────────»\n     └───┘\n\nOrderedDict([('cp', 6), ('h', 4), ('swap', 2)])\n",[34190],{"type":21,"tag":103,"props":34191,"children":34192},{"__ignoreMap":7},[34193],{"type":31,"value":34188},{"type":21,"tag":22,"props":34195,"children":34196},{},[34197],{"type":31,"value":34198},"Four Hadamards, six controlled-phase gates, two swaps. That matches the count: n Hadamards and n(n−1)\u002F2 = 6 rotations. The angles descend π\u002F2, π\u002F4, π\u002F8 as the control qubit gets further from the target, exactly as expected.",{"type":21,"tag":41,"props":34200,"children":34202},{"id":34201},"proving-its-correct",[34203],{"type":31,"value":34204},"Proving it's correct",{"type":21,"tag":22,"props":34206,"children":34207},{},[34208,34210,34216],{"type":31,"value":34209},"Never trust a hand-built QFT. Compare the full unitary against Qiskit's ",{"type":21,"tag":103,"props":34211,"children":34213},{"className":34212},[],[34214],{"type":31,"value":34215},"QFTGate",{"type":31,"value":14640},{"type":21,"tag":128,"props":34218,"children":34220},{"code":34219,"language":132,"meta":7,"className":130,"style":7},"from qiskit.circuit.library import QFTGate\n\nn = 4\nmine = qft(n)\n\nreference = QuantumCircuit(n)\nreference.append(QFTGate(n), range(n))\n\na, b = Operator(mine), Operator(reference)\nprint(\"Equivalent:\", a.equiv(b))\nprint(\"Max element difference:\", np.abs(a.data - b.data).max())\n",[34221],{"type":21,"tag":103,"props":34222,"children":34223},{"__ignoreMap":7},[34224,34243,34250,34265,34282,34289,34306,34322,34329,34346,34367],{"type":21,"tag":138,"props":34225,"children":34226},{"class":140,"line":141},[34227,34231,34235,34239],{"type":21,"tag":138,"props":34228,"children":34229},{"style":145},[34230],{"type":31,"value":148},{"type":21,"tag":138,"props":34232,"children":34233},{"style":151},[34234],{"type":31,"value":12842},{"type":21,"tag":138,"props":34236,"children":34237},{"style":145},[34238],{"type":31,"value":159},{"type":21,"tag":138,"props":34240,"children":34241},{"style":151},[34242],{"type":31,"value":20089},{"type":21,"tag":138,"props":34244,"children":34245},{"class":140,"line":167},[34246],{"type":21,"tag":138,"props":34247,"children":34248},{"emptyLinePlaceholder":193},[34249],{"type":31,"value":196},{"type":21,"tag":138,"props":34251,"children":34252},{"class":140,"line":189},[34253,34257,34261],{"type":21,"tag":138,"props":34254,"children":34255},{"style":151},[34256],{"type":31,"value":19300},{"type":21,"tag":138,"props":34258,"children":34259},{"style":145},[34260],{"type":31,"value":210},{"type":21,"tag":138,"props":34262,"children":34263},{"style":213},[34264],{"type":31,"value":20998},{"type":21,"tag":138,"props":34266,"children":34267},{"class":140,"line":199},[34268,34273,34277],{"type":21,"tag":138,"props":34269,"children":34270},{"style":151},[34271],{"type":31,"value":34272},"mine ",{"type":21,"tag":138,"props":34274,"children":34275},{"style":145},[34276],{"type":31,"value":210},{"type":21,"tag":138,"props":34278,"children":34279},{"style":151},[34280],{"type":31,"value":34281}," qft(n)\n",{"type":21,"tag":138,"props":34283,"children":34284},{"class":140,"line":225},[34285],{"type":21,"tag":138,"props":34286,"children":34287},{"emptyLinePlaceholder":193},[34288],{"type":31,"value":196},{"type":21,"tag":138,"props":34290,"children":34291},{"class":140,"line":233},[34292,34297,34301],{"type":21,"tag":138,"props":34293,"children":34294},{"style":151},[34295],{"type":31,"value":34296},"reference ",{"type":21,"tag":138,"props":34298,"children":34299},{"style":145},[34300],{"type":31,"value":210},{"type":21,"tag":138,"props":34302,"children":34303},{"style":151},[34304],{"type":31,"value":34305}," QuantumCircuit(n)\n",{"type":21,"tag":138,"props":34307,"children":34308},{"class":140,"line":272},[34309,34314,34318],{"type":21,"tag":138,"props":34310,"children":34311},{"style":151},[34312],{"type":31,"value":34313},"reference.append(QFTGate(n), ",{"type":21,"tag":138,"props":34315,"children":34316},{"style":213},[34317],{"type":31,"value":17726},{"type":21,"tag":138,"props":34319,"children":34320},{"style":151},[34321],{"type":31,"value":26845},{"type":21,"tag":138,"props":34323,"children":34324},{"class":140,"line":308},[34325],{"type":21,"tag":138,"props":34326,"children":34327},{"emptyLinePlaceholder":193},[34328],{"type":31,"value":196},{"type":21,"tag":138,"props":34330,"children":34331},{"class":140,"line":16},[34332,34337,34341],{"type":21,"tag":138,"props":34333,"children":34334},{"style":151},[34335],{"type":31,"value":34336},"a, b ",{"type":21,"tag":138,"props":34338,"children":34339},{"style":145},[34340],{"type":31,"value":210},{"type":21,"tag":138,"props":34342,"children":34343},{"style":151},[34344],{"type":31,"value":34345}," Operator(mine), Operator(reference)\n",{"type":21,"tag":138,"props":34347,"children":34348},{"class":140,"line":360},[34349,34353,34357,34362],{"type":21,"tag":138,"props":34350,"children":34351},{"style":213},[34352],{"type":31,"value":954},{"type":21,"tag":138,"props":34354,"children":34355},{"style":151},[34356],{"type":31,"value":959},{"type":21,"tag":138,"props":34358,"children":34359},{"style":261},[34360],{"type":31,"value":34361},"\"Equivalent:\"",{"type":21,"tag":138,"props":34363,"children":34364},{"style":151},[34365],{"type":31,"value":34366},", a.equiv(b))\n",{"type":21,"tag":138,"props":34368,"children":34369},{"class":140,"line":368},[34370,34374,34378,34383,34388,34392],{"type":21,"tag":138,"props":34371,"children":34372},{"style":213},[34373],{"type":31,"value":954},{"type":21,"tag":138,"props":34375,"children":34376},{"style":151},[34377],{"type":31,"value":959},{"type":21,"tag":138,"props":34379,"children":34380},{"style":261},[34381],{"type":31,"value":34382},"\"Max element difference:\"",{"type":21,"tag":138,"props":34384,"children":34385},{"style":151},[34386],{"type":31,"value":34387},", np.abs(a.data ",{"type":21,"tag":138,"props":34389,"children":34390},{"style":145},[34391],{"type":31,"value":831},{"type":21,"tag":138,"props":34393,"children":34394},{"style":151},[34395],{"type":31,"value":34396}," b.data).max())\n",{"type":21,"tag":22,"props":34398,"children":34399},{},[34400],{"type":31,"value":34185},{"type":21,"tag":128,"props":34402,"children":34404},{"code":34403},"Equivalent: True\nMax element difference: 2.285583597498884e-15\n",[34405],{"type":21,"tag":103,"props":34406,"children":34407},{"__ignoreMap":7},[34408],{"type":31,"value":34403},{"type":21,"tag":22,"props":34410,"children":34411},{},[34412,34414,34420,34421,34427],{"type":31,"value":34413},"Identical to floating-point precision, not merely equal up to a global phase. If you're on an older Qiskit, use ",{"type":21,"tag":103,"props":34415,"children":34417},{"className":34416},[],[34418],{"type":31,"value":34419},"from qiskit.circuit.library import QFT",{"type":31,"value":3628},{"type":21,"tag":103,"props":34422,"children":34424},{"className":34423},[],[34425],{"type":31,"value":34426},"QFT(n).decompose()",{"type":31,"value":34428}," instead.",{"type":21,"tag":41,"props":34430,"children":34432},{"id":34431},"seeing-it-identify-a-period",[34433],{"type":31,"value":34434},"Seeing it identify a period",{"type":21,"tag":22,"props":34436,"children":34437},{},[34438,34440,34444],{"type":31,"value":34439},"This is the one demonstration that shows what the QFT is ",{"type":21,"tag":12769,"props":34441,"children":34442},{},[34443],{"type":31,"value":1492},{"type":31,"value":34445},". Prepare a state that's a uniform superposition over multiples of 4 (a comb with period 4) and transform it:",{"type":21,"tag":128,"props":34447,"children":34449},{"code":34448,"language":132,"meta":7,"className":130,"style":7},"n = 4\npsi = np.zeros(2 ** n, dtype=complex)\nfor x in range(0, 2 ** n, 4):   # |0> + |4> + |8> + |12>\n    psi[x] = 1\npsi \u002F= np.linalg.norm(psi)\n\nout = Statevector(psi).evolve(qft(n))\nfor i, p in enumerate(out.probabilities()):\n    if p > 1e-6:\n        print(f\"|{i:0{n}b}> = {i:2d}   p = {p:.4f}\")\n",[34450],{"type":21,"tag":103,"props":34451,"children":34452},{"__ignoreMap":7},[34453,34468,34516,34574,34590,34606,34613,34630,34655,34678],{"type":21,"tag":138,"props":34454,"children":34455},{"class":140,"line":141},[34456,34460,34464],{"type":21,"tag":138,"props":34457,"children":34458},{"style":151},[34459],{"type":31,"value":19300},{"type":21,"tag":138,"props":34461,"children":34462},{"style":145},[34463],{"type":31,"value":210},{"type":21,"tag":138,"props":34465,"children":34466},{"style":213},[34467],{"type":31,"value":20998},{"type":21,"tag":138,"props":34469,"children":34470},{"class":140,"line":167},[34471,34476,34480,34485,34489,34493,34498,34503,34507,34512],{"type":21,"tag":138,"props":34472,"children":34473},{"style":151},[34474],{"type":31,"value":34475},"psi ",{"type":21,"tag":138,"props":34477,"children":34478},{"style":145},[34479],{"type":31,"value":210},{"type":21,"tag":138,"props":34481,"children":34482},{"style":151},[34483],{"type":31,"value":34484}," np.zeros(",{"type":21,"tag":138,"props":34486,"children":34487},{"style":213},[34488],{"type":31,"value":292},{"type":21,"tag":138,"props":34490,"children":34491},{"style":145},[34492],{"type":31,"value":20609},{"type":21,"tag":138,"props":34494,"children":34495},{"style":151},[34496],{"type":31,"value":34497}," n, ",{"type":21,"tag":138,"props":34499,"children":34500},{"style":929},[34501],{"type":31,"value":34502},"dtype",{"type":21,"tag":138,"props":34504,"children":34505},{"style":145},[34506],{"type":31,"value":210},{"type":21,"tag":138,"props":34508,"children":34509},{"style":213},[34510],{"type":31,"value":34511},"complex",{"type":21,"tag":138,"props":34513,"children":34514},{"style":151},[34515],{"type":31,"value":269},{"type":21,"tag":138,"props":34517,"children":34518},{"class":140,"line":189},[34519,34523,34528,34532,34536,34540,34544,34548,34552,34556,34560,34564,34569],{"type":21,"tag":138,"props":34520,"children":34521},{"style":145},[34522],{"type":31,"value":1492},{"type":21,"tag":138,"props":34524,"children":34525},{"style":151},[34526],{"type":31,"value":34527}," x ",{"type":21,"tag":138,"props":34529,"children":34530},{"style":145},[34531],{"type":31,"value":1502},{"type":21,"tag":138,"props":34533,"children":34534},{"style":213},[34535],{"type":31,"value":7430},{"type":21,"tag":138,"props":34537,"children":34538},{"style":151},[34539],{"type":31,"value":959},{"type":21,"tag":138,"props":34541,"children":34542},{"style":213},[34543],{"type":31,"value":406},{"type":21,"tag":138,"props":34545,"children":34546},{"style":151},[34547],{"type":31,"value":258},{"type":21,"tag":138,"props":34549,"children":34550},{"style":213},[34551],{"type":31,"value":292},{"type":21,"tag":138,"props":34553,"children":34554},{"style":145},[34555],{"type":31,"value":20609},{"type":21,"tag":138,"props":34557,"children":34558},{"style":151},[34559],{"type":31,"value":34497},{"type":21,"tag":138,"props":34561,"children":34562},{"style":213},[34563],{"type":31,"value":17931},{"type":21,"tag":138,"props":34565,"children":34566},{"style":151},[34567],{"type":31,"value":34568},"):   ",{"type":21,"tag":138,"props":34570,"children":34571},{"style":219},[34572],{"type":31,"value":34573},"# |0> + |4> + |8> + |12>\n",{"type":21,"tag":138,"props":34575,"children":34576},{"class":140,"line":199},[34577,34582,34586],{"type":21,"tag":138,"props":34578,"children":34579},{"style":151},[34580],{"type":31,"value":34581},"    psi[x] ",{"type":21,"tag":138,"props":34583,"children":34584},{"style":145},[34585],{"type":31,"value":210},{"type":21,"tag":138,"props":34587,"children":34588},{"style":213},[34589],{"type":31,"value":1542},{"type":21,"tag":138,"props":34591,"children":34592},{"class":140,"line":225},[34593,34597,34601],{"type":21,"tag":138,"props":34594,"children":34595},{"style":151},[34596],{"type":31,"value":34475},{"type":21,"tag":138,"props":34598,"children":34599},{"style":145},[34600],{"type":31,"value":27342},{"type":21,"tag":138,"props":34602,"children":34603},{"style":151},[34604],{"type":31,"value":34605}," np.linalg.norm(psi)\n",{"type":21,"tag":138,"props":34607,"children":34608},{"class":140,"line":233},[34609],{"type":21,"tag":138,"props":34610,"children":34611},{"emptyLinePlaceholder":193},[34612],{"type":31,"value":196},{"type":21,"tag":138,"props":34614,"children":34615},{"class":140,"line":272},[34616,34621,34625],{"type":21,"tag":138,"props":34617,"children":34618},{"style":151},[34619],{"type":31,"value":34620},"out ",{"type":21,"tag":138,"props":34622,"children":34623},{"style":145},[34624],{"type":31,"value":210},{"type":21,"tag":138,"props":34626,"children":34627},{"style":151},[34628],{"type":31,"value":34629}," Statevector(psi).evolve(qft(n))\n",{"type":21,"tag":138,"props":34631,"children":34632},{"class":140,"line":308},[34633,34637,34642,34646,34650],{"type":21,"tag":138,"props":34634,"children":34635},{"style":145},[34636],{"type":31,"value":1492},{"type":21,"tag":138,"props":34638,"children":34639},{"style":151},[34640],{"type":31,"value":34641}," i, p ",{"type":21,"tag":138,"props":34643,"children":34644},{"style":145},[34645],{"type":31,"value":1502},{"type":21,"tag":138,"props":34647,"children":34648},{"style":213},[34649],{"type":31,"value":26779},{"type":21,"tag":138,"props":34651,"children":34652},{"style":151},[34653],{"type":31,"value":34654},"(out.probabilities()):\n",{"type":21,"tag":138,"props":34656,"children":34657},{"class":140,"line":16},[34658,34662,34666,34670,34674],{"type":21,"tag":138,"props":34659,"children":34660},{"style":145},[34661],{"type":31,"value":19536},{"type":21,"tag":138,"props":34663,"children":34664},{"style":151},[34665],{"type":31,"value":19541},{"type":21,"tag":138,"props":34667,"children":34668},{"style":145},[34669],{"type":31,"value":19546},{"type":21,"tag":138,"props":34671,"children":34672},{"style":213},[34673],{"type":31,"value":11424},{"type":21,"tag":138,"props":34675,"children":34676},{"style":151},[34677],{"type":31,"value":26811},{"type":21,"tag":138,"props":34679,"children":34680},{"class":140,"line":360},[34681,34686,34690,34694,34699,34703,34707,34712,34716,34720,34724,34729,34733,34738,34742,34746,34751,34755,34760,34764,34768,34772,34776,34780],{"type":21,"tag":138,"props":34682,"children":34683},{"style":213},[34684],{"type":31,"value":34685},"        print",{"type":21,"tag":138,"props":34687,"children":34688},{"style":151},[34689],{"type":31,"value":959},{"type":21,"tag":138,"props":34691,"children":34692},{"style":145},[34693],{"type":31,"value":7537},{"type":21,"tag":138,"props":34695,"children":34696},{"style":261},[34697],{"type":31,"value":34698},"\"|",{"type":21,"tag":138,"props":34700,"children":34701},{"style":213},[34702],{"type":31,"value":7547},{"type":21,"tag":138,"props":34704,"children":34705},{"style":151},[34706],{"type":31,"value":1839},{"type":21,"tag":138,"props":34708,"children":34709},{"style":145},[34710],{"type":31,"value":34711},":0",{"type":21,"tag":138,"props":34713,"children":34714},{"style":213},[34715],{"type":31,"value":7547},{"type":21,"tag":138,"props":34717,"children":34718},{"style":151},[34719],{"type":31,"value":19618},{"type":21,"tag":138,"props":34721,"children":34722},{"style":213},[34723],{"type":31,"value":7556},{"type":21,"tag":138,"props":34725,"children":34726},{"style":145},[34727],{"type":31,"value":34728},"b",{"type":21,"tag":138,"props":34730,"children":34731},{"style":213},[34732],{"type":31,"value":7556},{"type":21,"tag":138,"props":34734,"children":34735},{"style":261},[34736],{"type":31,"value":34737},"> = ",{"type":21,"tag":138,"props":34739,"children":34740},{"style":213},[34741],{"type":31,"value":7547},{"type":21,"tag":138,"props":34743,"children":34744},{"style":151},[34745],{"type":31,"value":1839},{"type":21,"tag":138,"props":34747,"children":34748},{"style":145},[34749],{"type":31,"value":34750},":2d",{"type":21,"tag":138,"props":34752,"children":34753},{"style":213},[34754],{"type":31,"value":7556},{"type":21,"tag":138,"props":34756,"children":34757},{"style":261},[34758],{"type":31,"value":34759},"   p = ",{"type":21,"tag":138,"props":34761,"children":34762},{"style":213},[34763],{"type":31,"value":7547},{"type":21,"tag":138,"props":34765,"children":34766},{"style":151},[34767],{"type":31,"value":22},{"type":21,"tag":138,"props":34769,"children":34770},{"style":145},[34771],{"type":31,"value":25594},{"type":21,"tag":138,"props":34773,"children":34774},{"style":213},[34775],{"type":31,"value":7556},{"type":21,"tag":138,"props":34777,"children":34778},{"style":261},[34779],{"type":31,"value":15383},{"type":21,"tag":138,"props":34781,"children":34782},{"style":151},[34783],{"type":31,"value":269},{"type":21,"tag":22,"props":34785,"children":34786},{},[34787],{"type":31,"value":34185},{"type":21,"tag":128,"props":34789,"children":34791},{"code":34790},"|0000> =  0   p = 0.2500\n|0100> =  4   p = 0.2500\n|1000> =  8   p = 0.2500\n|1100> = 12   p = 0.2500\n",[34792],{"type":21,"tag":103,"props":34793,"children":34794},{"__ignoreMap":7},[34795],{"type":31,"value":34790},{"type":21,"tag":22,"props":34797,"children":34798},{},[34799,34801,34806],{"type":31,"value":34800},"The input had period 4 in position space. The output is concentrated on multiples of 16\u002F4 = 4 in frequency space. Sample this a few times, take the greatest common divisor of the outcomes, and you recover the period. ",{"type":21,"tag":16815,"props":34802,"children":34803},{},[34804],{"type":31,"value":34805},"That",{"type":31,"value":34807}," is the readable signal: not the coefficients, but a periodicity converted into a sampling distribution.",{"type":21,"tag":22,"props":34809,"children":34810},{},[34811],{"type":31,"value":34812},"Confirm it on the simulator with actual shots:",{"type":21,"tag":128,"props":34814,"children":34816},{"code":34815,"language":132,"meta":7,"className":130,"style":7},"qc = QuantumCircuit(n)\nqc.initialize(psi, range(n))\nqc.compose(qft(n), inplace=True)\nqc.measure_all()\n\nsim = AerSimulator()\ncounts = sim.run(transpile(qc, sim), shots=4096).result().get_counts()\nprint(sorted(counts.items(), key=lambda kv: -kv[1]))\n",[34817],{"type":21,"tag":103,"props":34818,"children":34819},{"__ignoreMap":7},[34820,34835,34851,34875,34883,34890,34905,34936],{"type":21,"tag":138,"props":34821,"children":34822},{"class":140,"line":141},[34823,34827,34831],{"type":21,"tag":138,"props":34824,"children":34825},{"style":151},[34826],{"type":31,"value":348},{"type":21,"tag":138,"props":34828,"children":34829},{"style":145},[34830],{"type":31,"value":210},{"type":21,"tag":138,"props":34832,"children":34833},{"style":151},[34834],{"type":31,"value":34305},{"type":21,"tag":138,"props":34836,"children":34837},{"class":140,"line":167},[34838,34843,34847],{"type":21,"tag":138,"props":34839,"children":34840},{"style":151},[34841],{"type":31,"value":34842},"qc.initialize(psi, ",{"type":21,"tag":138,"props":34844,"children":34845},{"style":213},[34846],{"type":31,"value":17726},{"type":21,"tag":138,"props":34848,"children":34849},{"style":151},[34850],{"type":31,"value":26845},{"type":21,"tag":138,"props":34852,"children":34853},{"class":140,"line":189},[34854,34859,34863,34867,34871],{"type":21,"tag":138,"props":34855,"children":34856},{"style":151},[34857],{"type":31,"value":34858},"qc.compose(qft(n), ",{"type":21,"tag":138,"props":34860,"children":34861},{"style":929},[34862],{"type":31,"value":30042},{"type":21,"tag":138,"props":34864,"children":34865},{"style":145},[34866],{"type":31,"value":210},{"type":21,"tag":138,"props":34868,"children":34869},{"style":213},[34870],{"type":31,"value":8677},{"type":21,"tag":138,"props":34872,"children":34873},{"style":151},[34874],{"type":31,"value":269},{"type":21,"tag":138,"props":34876,"children":34877},{"class":140,"line":199},[34878],{"type":21,"tag":138,"props":34879,"children":34880},{"style":151},[34881],{"type":31,"value":34882},"qc.measure_all()\n",{"type":21,"tag":138,"props":34884,"children":34885},{"class":140,"line":225},[34886],{"type":21,"tag":138,"props":34887,"children":34888},{"emptyLinePlaceholder":193},[34889],{"type":31,"value":196},{"type":21,"tag":138,"props":34891,"children":34892},{"class":140,"line":233},[34893,34897,34901],{"type":21,"tag":138,"props":34894,"children":34895},{"style":151},[34896],{"type":31,"value":883},{"type":21,"tag":138,"props":34898,"children":34899},{"style":145},[34900],{"type":31,"value":210},{"type":21,"tag":138,"props":34902,"children":34903},{"style":151},[34904],{"type":31,"value":892},{"type":21,"tag":138,"props":34906,"children":34907},{"class":140,"line":272},[34908,34912,34916,34920,34924,34928,34932],{"type":21,"tag":138,"props":34909,"children":34910},{"style":151},[34911],{"type":31,"value":917},{"type":21,"tag":138,"props":34913,"children":34914},{"style":145},[34915],{"type":31,"value":210},{"type":21,"tag":138,"props":34917,"children":34918},{"style":151},[34919],{"type":31,"value":30304},{"type":21,"tag":138,"props":34921,"children":34922},{"style":929},[34923],{"type":31,"value":932},{"type":21,"tag":138,"props":34925,"children":34926},{"style":145},[34927],{"type":31,"value":210},{"type":21,"tag":138,"props":34929,"children":34930},{"style":213},[34931],{"type":31,"value":941},{"type":21,"tag":138,"props":34933,"children":34934},{"style":151},[34935],{"type":31,"value":946},{"type":21,"tag":138,"props":34937,"children":34938},{"class":140,"line":308},[34939,34943,34947,34951,34956,34960,34964,34969,34973,34978,34982],{"type":21,"tag":138,"props":34940,"children":34941},{"style":213},[34942],{"type":31,"value":954},{"type":21,"tag":138,"props":34944,"children":34945},{"style":151},[34946],{"type":31,"value":959},{"type":21,"tag":138,"props":34948,"children":34949},{"style":213},[34950],{"type":31,"value":964},{"type":21,"tag":138,"props":34952,"children":34953},{"style":151},[34954],{"type":31,"value":34955},"(counts.items(), ",{"type":21,"tag":138,"props":34957,"children":34958},{"style":929},[34959],{"type":31,"value":4845},{"type":21,"tag":138,"props":34961,"children":34962},{"style":145},[34963],{"type":31,"value":25498},{"type":21,"tag":138,"props":34965,"children":34966},{"style":151},[34967],{"type":31,"value":34968}," kv: ",{"type":21,"tag":138,"props":34970,"children":34971},{"style":145},[34972],{"type":31,"value":831},{"type":21,"tag":138,"props":34974,"children":34975},{"style":151},[34976],{"type":31,"value":34977},"kv[",{"type":21,"tag":138,"props":34979,"children":34980},{"style":213},[34981],{"type":31,"value":327},{"type":21,"tag":138,"props":34983,"children":34984},{"style":151},[34985],{"type":31,"value":34986},"]))\n",{"type":21,"tag":22,"props":34988,"children":34989},{},[34990],{"type":31,"value":34185},{"type":21,"tag":128,"props":34992,"children":34994},{"code":34993},"[('0100', 1079), ('1000', 1030), ('0000', 1018), ('1100', 969)]\n",[34995],{"type":21,"tag":103,"props":34996,"children":34997},{"__ignoreMap":7},[34998],{"type":31,"value":34993},{"type":21,"tag":22,"props":35000,"children":35001},{},[35002],{"type":31,"value":35003},"Four peaks, roughly 1024 counts each. Nothing else appears.",{"type":21,"tag":41,"props":35005,"children":35007},{"id":35006},"where-the-qft-earns-its-keep",[35008],{"type":31,"value":35009},"Where the QFT earns its keep",{"type":21,"tag":22,"props":35011,"children":35012},{},[35013,35018,35020,35024,35026,35032],{"type":21,"tag":16815,"props":35014,"children":35015},{},[35016],{"type":31,"value":35017},"Quantum phase estimation (QPE).",{"type":31,"value":35019}," Given a unitary U and an eigenstate |ψ⟩ with U|ψ⟩ = e^{2πiθ}|ψ⟩, QPE writes θ into a register's phases using controlled-U powers, then applies the ",{"type":21,"tag":12769,"props":35021,"children":35022},{},[35023],{"type":31,"value":28838},{"type":31,"value":35025}," QFT to convert those phases into a binary number you measure. Note the direction: QPE uses QFT⁻¹, because the phases are already there and the job is to pull them out. In Qiskit that's ",{"type":21,"tag":103,"props":35027,"children":35029},{"className":35028},[],[35030],{"type":31,"value":35031},"qft(n).inverse()",{"type":31,"value":6678},{"type":21,"tag":22,"props":35034,"children":35035},{},[35036,35041],{"type":21,"tag":16815,"props":35037,"children":35038},{},[35039],{"type":31,"value":35040},"Order finding.",{"type":31,"value":35042}," Given a and N, find the smallest r with a^r ≡ 1 (mod N). Modular exponentiation creates a register periodic in r. The QFT turns that period into measurable peaks, exactly as in the demo above.",{"type":21,"tag":22,"props":35044,"children":35045},{},[35046,35054,35056,35060,35062,35066],{"type":21,"tag":16815,"props":35047,"children":35048},{},[35049,35053],{"type":21,"tag":26,"props":35050,"children":35051},{"href":1237},[35052],{"type":31,"value":31444},{"type":31,"value":6678},{"type":31,"value":35055}," Factoring reduces to order finding, so Shor's is order finding plus classical post-processing (continued fractions and a GCD). The ",{"type":21,"tag":26,"props":35057,"children":35058},{"href":20002},[35059],{"type":31,"value":20005},{"type":31,"value":35061}," is worth reading precisely because the QFT is the only quantum part: everything else is figure theory. This is also why the algorithm threatens RSA, and why ",{"type":21,"tag":26,"props":35063,"children":35064},{"href":3896},[35065],{"type":31,"value":3977},{"type":31,"value":35067}," migration is happening now rather than later.",{"type":21,"tag":22,"props":35069,"children":35070},{},[35071],{"type":31,"value":35072},"In all three cases the QFT is doing the identical job: turning phase information into position information so a measurement sees it.",{"type":21,"tag":41,"props":35074,"children":35076},{"id":35075},"approximate-qft-drop-the-tiny-rotations",[35077],{"type":31,"value":35078},"Approximate QFT: drop the tiny rotations",{"type":21,"tag":22,"props":35080,"children":35081},{},[35082,35084,35089],{"type":31,"value":35083},"On real hardware, ",{"type":21,"tag":103,"props":35085,"children":35087},{"className":35086},[],[35088],{"type":31,"value":33530},{"type":31,"value":35090}," for large k is a rotation smaller than your gate error. Executing it adds noise and buys nothing. The Approximate QFT (AQFT) simply skips every rotation with k above a cutoff, reducing the gate count from O(n²) to O(n log n):",{"type":21,"tag":128,"props":35092,"children":35094},{"code":35093,"language":132,"meta":7,"className":130,"style":7},"def aqft(n, k_max):\n    qc = QuantumCircuit(n, name=\"AQFT\")\n    for size in range(n, 0, -1):\n        m = size - 1\n        qc.h(m)\n        for qubit in range(m):\n            k = m - qubit\n            if k \u003C= k_max:\n                qc.cp(np.pi \u002F 2 ** k, qubit, m)\n    for q in range(n \u002F\u002F 2):\n        qc.swap(q, n - q - 1)\n    return qc\n",[35095],{"type":21,"tag":103,"props":35096,"children":35097},{"__ignoreMap":7},[35098,35115,35147,35192,35216,35224,35248,35274,35296,35321,35356,35384],{"type":21,"tag":138,"props":35099,"children":35100},{"class":140,"line":141},[35101,35105,35110],{"type":21,"tag":138,"props":35102,"children":35103},{"style":145},[35104],{"type":31,"value":5500},{"type":21,"tag":138,"props":35106,"children":35107},{"style":4522},[35108],{"type":31,"value":35109}," aqft",{"type":21,"tag":138,"props":35111,"children":35112},{"style":151},[35113],{"type":31,"value":35114},"(n, k_max):\n",{"type":21,"tag":138,"props":35116,"children":35117},{"class":140,"line":167},[35118,35122,35126,35130,35134,35138,35143],{"type":21,"tag":138,"props":35119,"children":35120},{"style":151},[35121],{"type":31,"value":17784},{"type":21,"tag":138,"props":35123,"children":35124},{"style":145},[35125],{"type":31,"value":210},{"type":21,"tag":138,"props":35127,"children":35128},{"style":151},[35129],{"type":31,"value":29354},{"type":21,"tag":138,"props":35131,"children":35132},{"style":929},[35133],{"type":31,"value":29359},{"type":21,"tag":138,"props":35135,"children":35136},{"style":145},[35137],{"type":31,"value":210},{"type":21,"tag":138,"props":35139,"children":35140},{"style":261},[35141],{"type":31,"value":35142},"\"AQFT\"",{"type":21,"tag":138,"props":35144,"children":35145},{"style":151},[35146],{"type":31,"value":269},{"type":21,"tag":138,"props":35148,"children":35149},{"class":140,"line":189},[35150,35154,35159,35163,35167,35172,35176,35180,35184,35188],{"type":21,"tag":138,"props":35151,"children":35152},{"style":145},[35153],{"type":31,"value":17037},{"type":21,"tag":138,"props":35155,"children":35156},{"style":151},[35157],{"type":31,"value":35158}," size ",{"type":21,"tag":138,"props":35160,"children":35161},{"style":145},[35162],{"type":31,"value":1502},{"type":21,"tag":138,"props":35164,"children":35165},{"style":213},[35166],{"type":31,"value":7430},{"type":21,"tag":138,"props":35168,"children":35169},{"style":151},[35170],{"type":31,"value":35171},"(n, ",{"type":21,"tag":138,"props":35173,"children":35174},{"style":213},[35175],{"type":31,"value":406},{"type":21,"tag":138,"props":35177,"children":35178},{"style":151},[35179],{"type":31,"value":258},{"type":21,"tag":138,"props":35181,"children":35182},{"style":145},[35183],{"type":31,"value":831},{"type":21,"tag":138,"props":35185,"children":35186},{"style":213},[35187],{"type":31,"value":327},{"type":21,"tag":138,"props":35189,"children":35190},{"style":151},[35191],{"type":31,"value":7443},{"type":21,"tag":138,"props":35193,"children":35194},{"class":140,"line":199},[35195,35200,35204,35208,35212],{"type":21,"tag":138,"props":35196,"children":35197},{"style":151},[35198],{"type":31,"value":35199},"        m ",{"type":21,"tag":138,"props":35201,"children":35202},{"style":145},[35203],{"type":31,"value":210},{"type":21,"tag":138,"props":35205,"children":35206},{"style":151},[35207],{"type":31,"value":35158},{"type":21,"tag":138,"props":35209,"children":35210},{"style":145},[35211],{"type":31,"value":831},{"type":21,"tag":138,"props":35213,"children":35214},{"style":213},[35215],{"type":31,"value":1542},{"type":21,"tag":138,"props":35217,"children":35218},{"class":140,"line":225},[35219],{"type":21,"tag":138,"props":35220,"children":35221},{"style":151},[35222],{"type":31,"value":35223},"        qc.h(m)\n",{"type":21,"tag":138,"props":35225,"children":35226},{"class":140,"line":233},[35227,35231,35235,35239,35243],{"type":21,"tag":138,"props":35228,"children":35229},{"style":145},[35230],{"type":31,"value":20318},{"type":21,"tag":138,"props":35232,"children":35233},{"style":151},[35234],{"type":31,"value":33820},{"type":21,"tag":138,"props":35236,"children":35237},{"style":145},[35238],{"type":31,"value":1502},{"type":21,"tag":138,"props":35240,"children":35241},{"style":213},[35242],{"type":31,"value":7430},{"type":21,"tag":138,"props":35244,"children":35245},{"style":151},[35246],{"type":31,"value":35247},"(m):\n",{"type":21,"tag":138,"props":35249,"children":35250},{"class":140,"line":272},[35251,35256,35260,35265,35269],{"type":21,"tag":138,"props":35252,"children":35253},{"style":151},[35254],{"type":31,"value":35255},"            k ",{"type":21,"tag":138,"props":35257,"children":35258},{"style":145},[35259],{"type":31,"value":210},{"type":21,"tag":138,"props":35261,"children":35262},{"style":151},[35263],{"type":31,"value":35264}," m ",{"type":21,"tag":138,"props":35266,"children":35267},{"style":145},[35268],{"type":31,"value":831},{"type":21,"tag":138,"props":35270,"children":35271},{"style":151},[35272],{"type":31,"value":35273}," qubit\n",{"type":21,"tag":138,"props":35275,"children":35276},{"class":140,"line":308},[35277,35281,35286,35291],{"type":21,"tag":138,"props":35278,"children":35279},{"style":145},[35280],{"type":31,"value":26792},{"type":21,"tag":138,"props":35282,"children":35283},{"style":151},[35284],{"type":31,"value":35285}," k ",{"type":21,"tag":138,"props":35287,"children":35288},{"style":145},[35289],{"type":31,"value":35290},"\u003C=",{"type":21,"tag":138,"props":35292,"children":35293},{"style":151},[35294],{"type":31,"value":35295}," k_max:\n",{"type":21,"tag":138,"props":35297,"children":35298},{"class":140,"line":16},[35299,35304,35308,35312,35316],{"type":21,"tag":138,"props":35300,"children":35301},{"style":151},[35302],{"type":31,"value":35303},"                qc.cp(np.pi ",{"type":21,"tag":138,"props":35305,"children":35306},{"style":145},[35307],{"type":31,"value":5075},{"type":21,"tag":138,"props":35309,"children":35310},{"style":213},[35311],{"type":31,"value":21034},{"type":21,"tag":138,"props":35313,"children":35314},{"style":145},[35315],{"type":31,"value":20609},{"type":21,"tag":138,"props":35317,"children":35318},{"style":151},[35319],{"type":31,"value":35320}," k, qubit, m)\n",{"type":21,"tag":138,"props":35322,"children":35323},{"class":140,"line":360},[35324,35328,35332,35336,35340,35344,35348,35352],{"type":21,"tag":138,"props":35325,"children":35326},{"style":145},[35327],{"type":31,"value":17037},{"type":21,"tag":138,"props":35329,"children":35330},{"style":151},[35331],{"type":31,"value":20323},{"type":21,"tag":138,"props":35333,"children":35334},{"style":145},[35335],{"type":31,"value":1502},{"type":21,"tag":138,"props":35337,"children":35338},{"style":213},[35339],{"type":31,"value":7430},{"type":21,"tag":138,"props":35341,"children":35342},{"style":151},[35343],{"type":31,"value":17054},{"type":21,"tag":138,"props":35345,"children":35346},{"style":145},[35347],{"type":31,"value":21029},{"type":21,"tag":138,"props":35349,"children":35350},{"style":213},[35351],{"type":31,"value":21034},{"type":21,"tag":138,"props":35353,"children":35354},{"style":151},[35355],{"type":31,"value":7443},{"type":21,"tag":138,"props":35357,"children":35358},{"class":140,"line":368},[35359,35364,35368,35372,35376,35380],{"type":21,"tag":138,"props":35360,"children":35361},{"style":151},[35362],{"type":31,"value":35363},"        qc.swap(q, n ",{"type":21,"tag":138,"props":35365,"children":35366},{"style":145},[35367],{"type":31,"value":831},{"type":21,"tag":138,"props":35369,"children":35370},{"style":151},[35371],{"type":31,"value":20323},{"type":21,"tag":138,"props":35373,"children":35374},{"style":145},[35375],{"type":31,"value":831},{"type":21,"tag":138,"props":35377,"children":35378},{"style":213},[35379],{"type":31,"value":17063},{"type":21,"tag":138,"props":35381,"children":35382},{"style":151},[35383],{"type":31,"value":269},{"type":21,"tag":138,"props":35385,"children":35386},{"class":140,"line":377},[35387,35391],{"type":21,"tag":138,"props":35388,"children":35389},{"style":145},[35390],{"type":31,"value":5595},{"type":21,"tag":138,"props":35392,"children":35393},{"style":151},[35394],{"type":31,"value":17750},{"type":21,"tag":22,"props":35396,"children":35397},{},[35398],{"type":31,"value":35399},"Measured fidelity against the exact 4-qubit QFT:",{"type":21,"tag":3162,"props":35401,"children":35402},{},[35403,35424],{"type":21,"tag":3166,"props":35404,"children":35405},{},[35406],{"type":21,"tag":3170,"props":35407,"children":35408},{},[35409,35414,35419],{"type":21,"tag":3174,"props":35410,"children":35411},{},[35412],{"type":31,"value":35413},"k_max",{"type":21,"tag":3174,"props":35415,"children":35416},{},[35417],{"type":31,"value":35418},"CP gates",{"type":21,"tag":3174,"props":35420,"children":35421},{},[35422],{"type":31,"value":35423},"Fidelity",{"type":21,"tag":3188,"props":35425,"children":35426},{},[35427,35443,35459,35475],{"type":21,"tag":3170,"props":35428,"children":35429},{},[35430,35434,35438],{"type":21,"tag":3195,"props":35431,"children":35432},{},[35433],{"type":31,"value":327},{"type":21,"tag":3195,"props":35435,"children":35436},{},[35437],{"type":31,"value":253},{"type":21,"tag":3195,"props":35439,"children":35440},{},[35441],{"type":31,"value":35442},"0.8456",{"type":21,"tag":3170,"props":35444,"children":35445},{},[35446,35450,35454],{"type":21,"tag":3195,"props":35447,"children":35448},{},[35449],{"type":31,"value":292},{"type":21,"tag":3195,"props":35451,"children":35452},{},[35453],{"type":31,"value":11480},{"type":21,"tag":3195,"props":35455,"children":35456},{},[35457],{"type":31,"value":35458},"0.9856",{"type":21,"tag":3170,"props":35460,"children":35461},{},[35462,35466,35470],{"type":21,"tag":3195,"props":35463,"children":35464},{},[35465],{"type":31,"value":253},{"type":21,"tag":3195,"props":35467,"children":35468},{},[35469],{"type":31,"value":11433},{"type":21,"tag":3195,"props":35471,"children":35472},{},[35473],{"type":31,"value":35474},"1.0000",{"type":21,"tag":3170,"props":35476,"children":35477},{},[35478,35483,35487],{"type":21,"tag":3195,"props":35479,"children":35480},{},[35481],{"type":31,"value":35482},"exact",{"type":21,"tag":3195,"props":35484,"children":35485},{},[35486],{"type":31,"value":11433},{"type":21,"tag":3195,"props":35488,"children":35489},{},[35490],{"type":31,"value":35474},{"type":21,"tag":22,"props":35492,"children":35493},{},[35494,35496,35500],{"type":31,"value":35495},"Keeping rotations down to π\u002F4 recovers 98.6% fidelity with 17% fewer two-qubit gates. On larger registers the saving is dramatic: keeping only k ≤ O(log n) rotations is provably enough for Shor's algorithm to succeed, and on a noisy device the AQFT often outperforms the exact QFT because the errors you avoid outweigh the approximation you introduce. Always benchmark both on a ",{"type":21,"tag":26,"props":35497,"children":35498},{"href":3304},[35499],{"type":31,"value":9824},{"type":31,"value":35501}," with a realistic noise model before committing.",{"type":21,"tag":41,"props":35503,"children":35504},{"id":5913},[35505],{"type":31,"value":5916},{"type":21,"tag":1118,"props":35507,"children":35508},{},[35509,35521,35534],{"type":21,"tag":71,"props":35510,"children":35511},{},[35512,35514,35519],{"type":31,"value":35513},"Build ",{"type":21,"tag":103,"props":35515,"children":35517},{"className":35516},[],[35518],{"type":31,"value":35031},{"type":31,"value":35520}," and use it to implement phase estimation on a T gate. You should recover θ = 1\u002F8 exactly with 3 counting qubits.",{"type":21,"tag":71,"props":35522,"children":35523},{},[35524,35526,35532],{"type":31,"value":35525},"Run the 4-qubit QFT through ",{"type":21,"tag":103,"props":35527,"children":35529},{"className":35528},[],[35530],{"type":31,"value":35531},"transpile(qc, backend, optimization_level=3)",{"type":31,"value":35533}," for a real device and watch the CP gates decompose into CNOTs. The depth increase is sobering.",{"type":21,"tag":71,"props":35535,"children":35536},{},[35537,35539,35543],{"type":31,"value":35538},"Compare against a variational algorithm like ",{"type":21,"tag":26,"props":35540,"children":35541},{"href":1250},[35542],{"type":31,"value":2048},{"type":31,"value":35544}," to see the contrast between structured algorithms with proven speedups and heuristic NISQ ones.",{"type":21,"tag":22,"props":35546,"children":35547},{},[35548],{"type":31,"value":35549},"The takeaway to keep: the QFT is rapid, exact, and useless by itself. Its power is entirely in what you wrap around it.",{"type":21,"tag":1174,"props":35551,"children":35552},{},[35553],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":35555},[35556,35557,35558,35559,35560,35561,35562,35563,35564],{"id":33363,"depth":167,"text":33366},{"id":33433,"depth":167,"text":33436},{"id":33491,"depth":167,"text":33494},{"id":33570,"depth":167,"text":33573},{"id":34201,"depth":167,"text":34204},{"id":34431,"depth":167,"text":34434},{"id":35006,"depth":167,"text":35009},{"id":35075,"depth":167,"text":35078},{"id":5913,"depth":167,"text":5916},"content:blog:quantum-fourier-transform-tutorial.md","blog\u002Fquantum-fourier-transform-tutorial.md","blog\u002Fquantum-fourier-transform-tutorial",{"_path":3150,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":35569,"description":35570,"date":25065,"author":11,"tags":35571,"readingTime":16,"body":35572,"_type":1193,"_id":37403,"_source":1195,"_file":37404,"_stem":37405,"_extension":1198},"Quantum Machine Learning: A Reality Check","What QML is, what the evidence currently shows about whether it beats classical models, and which parts of it are genuinely promising: grounded in the Biamonte review, the barren plateaus result, and a 2026 head-to-head comparison.",[12754,4487,13],{"type":18,"children":35573,"toc":37394},[35574,35579,35591,35596,35602,35607,35638,35648,35664,35674,35680,35692,35704,35709,35719,35725,35737,35749,35760,35765,35771,35776,35787,35792,35825,35830,35842,35848,35859,37176,37188,37243,37255,37274,37280,37285,37308,37318,37328,37334,37350,37362,37372,37390],{"type":21,"tag":22,"props":35575,"children":35576},{},[35577],{"type":31,"value":35578},"\"Quantum computing will supercharge AI\" is the single most repeated claim in quantum marketing. It is also the claim with the weakest evidence behind it.",{"type":21,"tag":22,"props":35580,"children":35581},{},[35582,35584,35589],{"type":31,"value":35583},"This isn't a takedown. Quantum machine learning is a real research area with real results and a handful of genuinely interesting open directions. But the gap between what QML is often ",{"type":21,"tag":12769,"props":35585,"children":35586},{},[35587],{"type":31,"value":35588},"said",{"type":31,"value":35590}," to do and what has been demonstrated is wider than in almost any other corner of the field. If you're deciding whether to invest time here, you deserve the honest version.",{"type":21,"tag":22,"props":35592,"children":35593},{},[35594],{"type":31,"value":35595},"So: what QML is, what the evidence shows, and what's still worth watching.",{"type":21,"tag":41,"props":35597,"children":35599},{"id":35598},"what-quantum-machine-learning-means",[35600],{"type":31,"value":35601},"What quantum machine learning means",{"type":21,"tag":22,"props":35603,"children":35604},{},[35605],{"type":31,"value":35606},"The term covers several quite distinct things that get blurred together.",{"type":21,"tag":22,"props":35608,"children":35609},{},[35610,35615,35617,35623,35625,35630,35632,35636],{"type":21,"tag":16815,"props":35611,"children":35612},{},[35613],{"type":31,"value":35614},"Variational circuits as trainable models.",{"type":31,"value":35616}," This is what most people building QML today are doing. You write a parameterized quantum circuit, a ",{"type":21,"tag":26,"props":35618,"children":35620},{"href":35619},"\u002Fglossary\u002Fvariational-circuit",[35621],{"type":31,"value":35622},"variational circuit",{"type":31,"value":35624},", feed data in, measure an output, and use a classical optimizer to adjust the parameters until the output matches your labels. Structurally it's the same ",{"type":21,"tag":26,"props":35626,"children":35627},{"href":3328},[35628],{"type":31,"value":35629},"hybrid algorithm",{"type":31,"value":35631}," pattern as ",{"type":21,"tag":26,"props":35633,"children":35634},{"href":16280},[35635],{"type":31,"value":3626},{"type":31,"value":35637},", only with a loss function instead of an energy. The circuit is the model. The rotation angles are the weights.",{"type":21,"tag":22,"props":35639,"children":35640},{},[35641,35646],{"type":21,"tag":16815,"props":35642,"children":35643},{},[35644],{"type":31,"value":35645},"Quantum kernels.",{"type":31,"value":35647}," Instead of training a quantum model directly, you use the quantum computer only to compute similarities between data points: encode two inputs into quantum states and measure their overlap. That similarity matrix then feeds an entirely classical support vector machine. The quantum device does one narrow job, which makes this approach far more resilient to noise than end-to-end variational training.",{"type":21,"tag":22,"props":35649,"children":35650},{},[35651,35656,35658,35662],{"type":21,"tag":16815,"props":35652,"children":35653},{},[35654],{"type":31,"value":35655},"Data encoding.",{"type":31,"value":35657}," Both approaches need classical numbers turned into quantum states, and this choice matters more than anything else in the pipeline. Angle encoding maps each feature to a rotation angle. Simple, but it needs one ",{"type":21,"tag":26,"props":35659,"children":35660},{"href":3064},[35661],{"type":31,"value":24494},{"type":31,"value":35663}," per feature. Amplitude encoding packs 2ⁿ values into n qubits, which sounds magical until you look at the circuit depth required to prepare that state.",{"type":21,"tag":22,"props":35665,"children":35666},{},[35667,35672],{"type":21,"tag":16815,"props":35668,"children":35669},{},[35670],{"type":31,"value":35671},"Quantum-accelerated linear algebra.",{"type":31,"value":35673}," The original, most theoretically ambitious branch: algorithms like HHL for solving linear systems with exponential speedups on paper. This is where the big speedup numbers in QML pitches come from, and where the caveats bite hardest.",{"type":21,"tag":41,"props":35675,"children":35677},{"id":35676},"the-data-loading-bottleneck",[35678],{"type":31,"value":35679},"The data-loading bottleneck",{"type":21,"tag":22,"props":35681,"children":35682},{},[35683,35684,35690],{"type":31,"value":11039},{"type":21,"tag":26,"props":35685,"children":35687},{"href":35686},"\u002Fresearch\u002Fbiamonte-quantum-machine-learning-2017",[35688],{"type":31,"value":35689},"Biamonte et al. review",{"type":31,"value":35691},", still the standard reference for the field, is unusually direct about the central problem, and it applies to that fourth category above.",{"type":21,"tag":22,"props":35693,"children":35694},{},[35695,35697,35702],{"type":31,"value":35696},"Many quantum ML algorithms with proven exponential speedups assume your data is ",{"type":21,"tag":12769,"props":35698,"children":35699},{},[35700],{"type":31,"value":35701},"already",{"type":31,"value":35703}," sitting in quantum RAM, in a convenient superposition, ready to be operated on. That's a big assumption. If you have to load N classical data points into a quantum state, and loading takes time proportional to N, then an algorithm that runs in log(N) time once loaded still costs you O(N) overall. The speedup evaporates in the preprocessing step.",{"type":21,"tag":22,"props":35705,"children":35706},{},[35707],{"type":31,"value":35708},"This isn't a hardware engineering problem that better devices will fix. It's structural. And it got worse: over the past decade, a series of \"dequantization\" results showed that several proposed quantum ML speedups had classical algorithms achieving comparable scaling once you granted the classical side similar sampling access to the data. The quantum advantage in those cases turned out to be an artifact of comparing a quantum algorithm with quantum data access against a classical algorithm without equivalent access.",{"type":21,"tag":22,"props":35710,"children":35711},{},[35712,35714],{"type":31,"value":35713},"The pragmatic rule: ",{"type":21,"tag":16815,"props":35715,"children":35716},{},[35717],{"type":31,"value":35718},"be suspicious of any quantum ML speedup claim that doesn't account for how the data got in.",{"type":21,"tag":41,"props":35720,"children":35722},{"id":35721},"barren-plateaus",[35723],{"type":31,"value":35724},"Barren plateaus",{"type":21,"tag":22,"props":35726,"children":35727},{},[35728,35730,35736],{"type":31,"value":35729},"The variational approach (the one most people build with) has its own structural obstacle, and it's the one described in ",{"type":21,"tag":26,"props":35731,"children":35733},{"href":35732},"\u002Fresearch\u002Fmcclean-barren-plateaus-2018",[35734],{"type":31,"value":35735},"McClean et al.",{"type":31,"value":6678},{"type":21,"tag":22,"props":35738,"children":35739},{},[35740,35742,35747],{"type":31,"value":35741},"Training a variational model means computing gradients and stepping downhill. McClean and colleagues showed that for randomly initialized circuits, the ",{"type":21,"tag":12769,"props":35743,"children":35744},{},[35745],{"type":31,"value":35746},"variance",{"type":31,"value":35748}," of the gradient shrinks exponentially as you add qubits. The optimization terrain flattens into a featureless plain (a barren plateau) where every direction looks the same.",{"type":21,"tag":22,"props":35750,"children":35751},{},[35752,35754,35758],{"type":31,"value":35753},"Why this is fatal rather than merely annoying: gradients on quantum hardware are estimated from measurement statistics, so they come with ",{"type":21,"tag":26,"props":35755,"children":35756},{"href":3115},[35757],{"type":31,"value":27586},{"type":31,"value":35759},". Once the true gradient is smaller than your sampling error, you need exponentially many shots only to tell which way is down. At a few dozen qubits with a generic ansatz, the training signal is gone.",{"type":21,"tag":22,"props":35761,"children":35762},{},[35763],{"type":31,"value":35764},"Mitigations exist and are actively researched: structured problem-informed ansätze, layerwise training, smart initialization, local rather than global cost functions. None is a general solution. Any assertion that a variational quantum model scales to useful problem sizes has to explain how it escapes this, and most don't.",{"type":21,"tag":41,"props":35766,"children":35768},{"id":35767},"the-2026-head-to-head-comparison",[35769],{"type":31,"value":35770},"The 2026 head-to-head comparison",{"type":21,"tag":22,"props":35772,"children":35773},{},[35774],{"type":31,"value":35775},"Theoretical caveats are one thing. The more useful question is what happens when someone runs the models side by side, and that's rarer than you'd expect. QML papers usually benchmark against other QML papers.",{"type":21,"tag":22,"props":35777,"children":35778},{},[35779,35785],{"type":21,"tag":26,"props":35780,"children":35782},{"href":35781},"\u002Fresearch\u002Fquantum-vs-classical-ml-2026",[35783],{"type":31,"value":35784},"Yu et al. (2026)",{"type":31,"value":35786}," did the like-for-like version: seven matched quantum\u002Fclassical model pairs, spanning both supervised learning and reinforcement learning, run on the same problems with the comparison held as fair as possible.",{"type":21,"tag":22,"props":35788,"children":35789},{},[35790],{"type":31,"value":35791},"The quantum models lost. Not on one axis: on three:",{"type":21,"tag":1118,"props":35793,"children":35794},{},[35795,35805,35815],{"type":21,"tag":71,"props":35796,"children":35797},{},[35798,35803],{"type":21,"tag":16815,"props":35799,"children":35800},{},[35801],{"type":31,"value":35802},"Prediction performance.",{"type":31,"value":35804}," Classical baselines were more accurate.",{"type":21,"tag":71,"props":35806,"children":35807},{},[35808,35813],{"type":21,"tag":16815,"props":35809,"children":35810},{},[35811],{"type":31,"value":35812},"Policy stability.",{"type":31,"value":35814}," In the reinforcement learning tasks, the quantum models produced less stable policies.",{"type":21,"tag":71,"props":35816,"children":35817},{},[35818,35823],{"type":21,"tag":16815,"props":35819,"children":35820},{},[35821],{"type":31,"value":35822},"Training time.",{"type":31,"value":35824}," The quantum models were slower to train.",{"type":21,"tag":22,"props":35826,"children":35827},{},[35828],{"type":31,"value":35829},"That last one deserves emphasis, because \"quantum is slower\" is the opposite of the entire pitch. Circuit execution overhead, the shot counts needed for gradient estimation, and the classical-quantum round trips add up.",{"type":21,"tag":22,"props":35831,"children":35832},{},[35833,35835,35840],{"type":31,"value":35834},"One careful negative result doesn't close a research field. But it's the right kind of evidence, and it points the same direction as the theory. ",{"type":21,"tag":16815,"props":35836,"children":35837},{},[35838],{"type":31,"value":35839},"As of mid-2026, \"quantum will make AI faster\" is not supported by the evidence.",{"type":31,"value":35841}," If someone tells you otherwise, ask them for the head-to-head benchmark.",{"type":21,"tag":41,"props":35843,"children":35845},{"id":35844},"try-it-yourself",[35846],{"type":31,"value":35847},"Try it yourself",{"type":21,"tag":22,"props":35849,"children":35850},{},[35851,35853,35857],{"type":31,"value":35852},"The best way to develop intuition here is to build one. This is a complete variational quantum classifier in ",{"type":21,"tag":26,"props":35854,"children":35855},{"href":17332},[35856],{"type":31,"value":4487},{"type":31,"value":35858},": angle encoding, a trainable entangling ansatz, and a gradient-descent loop:",{"type":21,"tag":128,"props":35860,"children":35862},{"className":130,"code":35861,"language":132,"meta":7,"style":7},"import pennylane as qml\nfrom pennylane import numpy as np\nfrom sklearn.datasets import make_moons\nfrom sklearn.model_selection import train_test_split\n\nn_qubits = 2\nn_layers = 3\n\ndev = qml.device(\"default.qubit\", wires=n_qubits)\n\n@qml.qnode(dev)\ndef circuit(weights, x):\n    # Data encoding: each feature becomes a rotation angle\n    qml.AngleEmbedding(x, wires=range(n_qubits), rotation=\"Y\")\n\n    # Trainable ansatz: rotations plus entangling CNOTs\n    qml.BasicEntanglerLayers(weights, wires=range(n_qubits))\n\n    return qml.expval(qml.PauliZ(0))\n\ndef variational_classifier(weights, bias, x):\n    return circuit(weights, x) + bias\n\ndef square_loss(labels, preds):\n    return np.mean((labels - qml.math.stack(preds)) ** 2)\n\ndef cost(weights, bias, X, Y):\n    preds = [variational_classifier(weights, bias, x) for x in X]\n    return square_loss(Y, preds)\n\n# Two-moons dataset, labels mapped to -1 \u002F +1 to match \u003CZ>\nX, y = make_moons(n_samples=200, noise=0.15, random_state=42)\ny = 2 * y - 1\nX_train, X_test, y_train, y_test = train_test_split(\n    X, y, test_size=0.3, random_state=42\n)\n\nshape = qml.BasicEntanglerLayers.shape(n_layers=n_layers, n_wires=n_qubits)\nrng = np.random.default_rng(42)\nweights = np.array(rng.normal(0, 0.1, shape), requires_grad=True)\nbias = np.array(0.0, requires_grad=True)\n\nopt = qml.AdamOptimizer(stepsize=0.1)\nbatch_size = 20\n\nfor step in range(60):\n    idx = np.random.randint(0, len(X_train), (batch_size,))\n    X_batch, y_batch = X_train[idx], y_train[idx]\n    weights, bias, _, _ = opt.step(cost, weights, bias, X_batch, y_batch)\n\n    if step % 15 == 0:\n        preds = [np.sign(variational_classifier(weights, bias, x)) for x in X_train]\n        acc = np.mean(np.array(preds) == y_train)\n        print(f\"Step {step:2d} | cost {cost(weights, bias, X_train, y_train):.4f} | acc {acc:.3f}\")\n\ntest_preds = [np.sign(variational_classifier(weights, bias, x)) for x in X_test]\nprint(f\"\\nTest accuracy: {np.mean(np.array(test_preds) == y_test):.3f}\")\n",[35863],{"type":21,"tag":103,"props":35864,"children":35865},{"__ignoreMap":7},[35866,35885,35912,35933,35954,35961,35977,35993,36000,36036,36043,36054,36070,36078,36121,36128,36136,36161,36168,36187,36194,36211,36232,36239,36256,36289,36296,36313,36347,36359,36366,36374,36444,36477,36494,36533,36540,36547,36591,36616,36666,36707,36714,36748,36765,36772,36805,36840,36858,36876,36884,36917,36952,36979,37070,37078,37112],{"type":21,"tag":138,"props":35867,"children":35868},{"class":140,"line":141},[35869,35873,35877,35881],{"type":21,"tag":138,"props":35870,"children":35871},{"style":145},[35872],{"type":31,"value":159},{"type":21,"tag":138,"props":35874,"children":35875},{"style":151},[35876],{"type":31,"value":5351},{"type":21,"tag":138,"props":35878,"children":35879},{"style":145},[35880],{"type":31,"value":5356},{"type":21,"tag":138,"props":35882,"children":35883},{"style":151},[35884],{"type":31,"value":5361},{"type":21,"tag":138,"props":35886,"children":35887},{"class":140,"line":167},[35888,35892,35896,35900,35904,35908],{"type":21,"tag":138,"props":35889,"children":35890},{"style":145},[35891],{"type":31,"value":148},{"type":21,"tag":138,"props":35893,"children":35894},{"style":151},[35895],{"type":31,"value":5351},{"type":21,"tag":138,"props":35897,"children":35898},{"style":145},[35899],{"type":31,"value":159},{"type":21,"tag":138,"props":35901,"children":35902},{"style":151},[35903],{"type":31,"value":8530},{"type":21,"tag":138,"props":35905,"children":35906},{"style":145},[35907],{"type":31,"value":5356},{"type":21,"tag":138,"props":35909,"children":35910},{"style":151},[35911],{"type":31,"value":8632},{"type":21,"tag":138,"props":35913,"children":35914},{"class":140,"line":189},[35915,35919,35924,35928],{"type":21,"tag":138,"props":35916,"children":35917},{"style":145},[35918],{"type":31,"value":148},{"type":21,"tag":138,"props":35920,"children":35921},{"style":151},[35922],{"type":31,"value":35923}," sklearn.datasets ",{"type":21,"tag":138,"props":35925,"children":35926},{"style":145},[35927],{"type":31,"value":159},{"type":21,"tag":138,"props":35929,"children":35930},{"style":151},[35931],{"type":31,"value":35932}," make_moons\n",{"type":21,"tag":138,"props":35934,"children":35935},{"class":140,"line":199},[35936,35940,35945,35949],{"type":21,"tag":138,"props":35937,"children":35938},{"style":145},[35939],{"type":31,"value":148},{"type":21,"tag":138,"props":35941,"children":35942},{"style":151},[35943],{"type":31,"value":35944}," sklearn.model_selection ",{"type":21,"tag":138,"props":35946,"children":35947},{"style":145},[35948],{"type":31,"value":159},{"type":21,"tag":138,"props":35950,"children":35951},{"style":151},[35952],{"type":31,"value":35953}," train_test_split\n",{"type":21,"tag":138,"props":35955,"children":35956},{"class":140,"line":225},[35957],{"type":21,"tag":138,"props":35958,"children":35959},{"emptyLinePlaceholder":193},[35960],{"type":31,"value":196},{"type":21,"tag":138,"props":35962,"children":35963},{"class":140,"line":233},[35964,35969,35973],{"type":21,"tag":138,"props":35965,"children":35966},{"style":151},[35967],{"type":31,"value":35968},"n_qubits ",{"type":21,"tag":138,"props":35970,"children":35971},{"style":145},[35972],{"type":31,"value":210},{"type":21,"tag":138,"props":35974,"children":35975},{"style":213},[35976],{"type":31,"value":1610},{"type":21,"tag":138,"props":35978,"children":35979},{"class":140,"line":272},[35980,35985,35989],{"type":21,"tag":138,"props":35981,"children":35982},{"style":151},[35983],{"type":31,"value":35984},"n_layers ",{"type":21,"tag":138,"props":35986,"children":35987},{"style":145},[35988],{"type":31,"value":210},{"type":21,"tag":138,"props":35990,"children":35991},{"style":213},[35992],{"type":31,"value":20467},{"type":21,"tag":138,"props":35994,"children":35995},{"class":140,"line":308},[35996],{"type":21,"tag":138,"props":35997,"children":35998},{"emptyLinePlaceholder":193},[35999],{"type":31,"value":196},{"type":21,"tag":138,"props":36001,"children":36002},{"class":140,"line":16},[36003,36007,36011,36015,36019,36023,36027,36031],{"type":21,"tag":138,"props":36004,"children":36005},{"style":151},[36006],{"type":31,"value":8726},{"type":21,"tag":138,"props":36008,"children":36009},{"style":145},[36010],{"type":31,"value":210},{"type":21,"tag":138,"props":36012,"children":36013},{"style":151},[36014],{"type":31,"value":5446},{"type":21,"tag":138,"props":36016,"children":36017},{"style":261},[36018],{"type":31,"value":5451},{"type":21,"tag":138,"props":36020,"children":36021},{"style":151},[36022],{"type":31,"value":258},{"type":21,"tag":138,"props":36024,"children":36025},{"style":929},[36026],{"type":31,"value":5460},{"type":21,"tag":138,"props":36028,"children":36029},{"style":145},[36030],{"type":31,"value":210},{"type":21,"tag":138,"props":36032,"children":36033},{"style":151},[36034],{"type":31,"value":36035},"n_qubits)\n",{"type":21,"tag":138,"props":36037,"children":36038},{"class":140,"line":360},[36039],{"type":21,"tag":138,"props":36040,"children":36041},{"emptyLinePlaceholder":193},[36042],{"type":31,"value":196},{"type":21,"tag":138,"props":36044,"children":36045},{"class":140,"line":368},[36046,36050],{"type":21,"tag":138,"props":36047,"children":36048},{"style":4522},[36049],{"type":31,"value":5487},{"type":21,"tag":138,"props":36051,"children":36052},{"style":151},[36053],{"type":31,"value":8778},{"type":21,"tag":138,"props":36055,"children":36056},{"class":140,"line":377},[36057,36061,36065],{"type":21,"tag":138,"props":36058,"children":36059},{"style":145},[36060],{"type":31,"value":5500},{"type":21,"tag":138,"props":36062,"children":36063},{"style":4522},[36064],{"type":31,"value":5505},{"type":21,"tag":138,"props":36066,"children":36067},{"style":151},[36068],{"type":31,"value":36069},"(weights, x):\n",{"type":21,"tag":138,"props":36071,"children":36072},{"class":140,"line":386},[36073],{"type":21,"tag":138,"props":36074,"children":36075},{"style":219},[36076],{"type":31,"value":36077},"    # Data encoding: each feature becomes a rotation angle\n",{"type":21,"tag":138,"props":36079,"children":36080},{"class":140,"line":395},[36081,36086,36090,36094,36098,36103,36108,36112,36117],{"type":21,"tag":138,"props":36082,"children":36083},{"style":151},[36084],{"type":31,"value":36085},"    qml.AngleEmbedding(x, ",{"type":21,"tag":138,"props":36087,"children":36088},{"style":929},[36089],{"type":31,"value":5460},{"type":21,"tag":138,"props":36091,"children":36092},{"style":145},[36093],{"type":31,"value":210},{"type":21,"tag":138,"props":36095,"children":36096},{"style":213},[36097],{"type":31,"value":17726},{"type":21,"tag":138,"props":36099,"children":36100},{"style":151},[36101],{"type":31,"value":36102},"(n_qubits), ",{"type":21,"tag":138,"props":36104,"children":36105},{"style":929},[36106],{"type":31,"value":36107},"rotation",{"type":21,"tag":138,"props":36109,"children":36110},{"style":145},[36111],{"type":31,"value":210},{"type":21,"tag":138,"props":36113,"children":36114},{"style":261},[36115],{"type":31,"value":36116},"\"Y\"",{"type":21,"tag":138,"props":36118,"children":36119},{"style":151},[36120],{"type":31,"value":269},{"type":21,"tag":138,"props":36122,"children":36123},{"class":140,"line":413},[36124],{"type":21,"tag":138,"props":36125,"children":36126},{"emptyLinePlaceholder":193},[36127],{"type":31,"value":196},{"type":21,"tag":138,"props":36129,"children":36130},{"class":140,"line":12602},[36131],{"type":21,"tag":138,"props":36132,"children":36133},{"style":219},[36134],{"type":31,"value":36135},"    # Trainable ansatz: rotations plus entangling CNOTs\n",{"type":21,"tag":138,"props":36137,"children":36138},{"class":140,"line":12619},[36139,36144,36148,36152,36156],{"type":21,"tag":138,"props":36140,"children":36141},{"style":151},[36142],{"type":31,"value":36143},"    qml.BasicEntanglerLayers(weights, ",{"type":21,"tag":138,"props":36145,"children":36146},{"style":929},[36147],{"type":31,"value":5460},{"type":21,"tag":138,"props":36149,"children":36150},{"style":145},[36151],{"type":31,"value":210},{"type":21,"tag":138,"props":36153,"children":36154},{"style":213},[36155],{"type":31,"value":17726},{"type":21,"tag":138,"props":36157,"children":36158},{"style":151},[36159],{"type":31,"value":36160},"(n_qubits))\n",{"type":21,"tag":138,"props":36162,"children":36163},{"class":140,"line":12635},[36164],{"type":21,"tag":138,"props":36165,"children":36166},{"emptyLinePlaceholder":193},[36167],{"type":31,"value":196},{"type":21,"tag":138,"props":36169,"children":36170},{"class":140,"line":12643},[36171,36175,36179,36183],{"type":21,"tag":138,"props":36172,"children":36173},{"style":145},[36174],{"type":31,"value":5595},{"type":21,"tag":138,"props":36176,"children":36177},{"style":151},[36178],{"type":31,"value":5600},{"type":21,"tag":138,"props":36180,"children":36181},{"style":213},[36182],{"type":31,"value":406},{"type":21,"tag":138,"props":36184,"children":36185},{"style":151},[36186],{"type":31,"value":5609},{"type":21,"tag":138,"props":36188,"children":36189},{"class":140,"line":17760},[36190],{"type":21,"tag":138,"props":36191,"children":36192},{"emptyLinePlaceholder":193},[36193],{"type":31,"value":196},{"type":21,"tag":138,"props":36195,"children":36196},{"class":140,"line":17778},[36197,36201,36206],{"type":21,"tag":138,"props":36198,"children":36199},{"style":145},[36200],{"type":31,"value":5500},{"type":21,"tag":138,"props":36202,"children":36203},{"style":4522},[36204],{"type":31,"value":36205}," variational_classifier",{"type":21,"tag":138,"props":36207,"children":36208},{"style":151},[36209],{"type":31,"value":36210},"(weights, bias, x):\n",{"type":21,"tag":138,"props":36212,"children":36213},{"class":140,"line":17803},[36214,36218,36223,36227],{"type":21,"tag":138,"props":36215,"children":36216},{"style":145},[36217],{"type":31,"value":5595},{"type":21,"tag":138,"props":36219,"children":36220},{"style":151},[36221],{"type":31,"value":36222}," circuit(weights, x) ",{"type":21,"tag":138,"props":36224,"children":36225},{"style":145},[36226],{"type":31,"value":1605},{"type":21,"tag":138,"props":36228,"children":36229},{"style":151},[36230],{"type":31,"value":36231}," bias\n",{"type":21,"tag":138,"props":36233,"children":36234},{"class":140,"line":17830},[36235],{"type":21,"tag":138,"props":36236,"children":36237},{"emptyLinePlaceholder":193},[36238],{"type":31,"value":196},{"type":21,"tag":138,"props":36240,"children":36241},{"class":140,"line":17856},[36242,36246,36251],{"type":21,"tag":138,"props":36243,"children":36244},{"style":145},[36245],{"type":31,"value":5500},{"type":21,"tag":138,"props":36247,"children":36248},{"style":4522},[36249],{"type":31,"value":36250}," square_loss",{"type":21,"tag":138,"props":36252,"children":36253},{"style":151},[36254],{"type":31,"value":36255},"(labels, preds):\n",{"type":21,"tag":138,"props":36257,"children":36258},{"class":140,"line":17865},[36259,36263,36268,36272,36277,36281,36285],{"type":21,"tag":138,"props":36260,"children":36261},{"style":145},[36262],{"type":31,"value":5595},{"type":21,"tag":138,"props":36264,"children":36265},{"style":151},[36266],{"type":31,"value":36267}," np.mean((labels ",{"type":21,"tag":138,"props":36269,"children":36270},{"style":145},[36271],{"type":31,"value":831},{"type":21,"tag":138,"props":36273,"children":36274},{"style":151},[36275],{"type":31,"value":36276}," qml.math.stack(preds)) ",{"type":21,"tag":138,"props":36278,"children":36279},{"style":145},[36280],{"type":31,"value":4814},{"type":21,"tag":138,"props":36282,"children":36283},{"style":213},[36284],{"type":31,"value":21034},{"type":21,"tag":138,"props":36286,"children":36287},{"style":151},[36288],{"type":31,"value":269},{"type":21,"tag":138,"props":36290,"children":36291},{"class":140,"line":17877},[36292],{"type":21,"tag":138,"props":36293,"children":36294},{"emptyLinePlaceholder":193},[36295],{"type":31,"value":196},{"type":21,"tag":138,"props":36297,"children":36298},{"class":140,"line":17885},[36299,36303,36308],{"type":21,"tag":138,"props":36300,"children":36301},{"style":145},[36302],{"type":31,"value":5500},{"type":21,"tag":138,"props":36304,"children":36305},{"style":4522},[36306],{"type":31,"value":36307}," cost",{"type":21,"tag":138,"props":36309,"children":36310},{"style":151},[36311],{"type":31,"value":36312},"(weights, bias, X, Y):\n",{"type":21,"tag":138,"props":36314,"children":36315},{"class":140,"line":17938},[36316,36321,36325,36330,36334,36338,36342],{"type":21,"tag":138,"props":36317,"children":36318},{"style":151},[36319],{"type":31,"value":36320},"    preds ",{"type":21,"tag":138,"props":36322,"children":36323},{"style":145},[36324],{"type":31,"value":210},{"type":21,"tag":138,"props":36326,"children":36327},{"style":151},[36328],{"type":31,"value":36329}," [variational_classifier(weights, bias, x) ",{"type":21,"tag":138,"props":36331,"children":36332},{"style":145},[36333],{"type":31,"value":1492},{"type":21,"tag":138,"props":36335,"children":36336},{"style":151},[36337],{"type":31,"value":34527},{"type":21,"tag":138,"props":36339,"children":36340},{"style":145},[36341],{"type":31,"value":1502},{"type":21,"tag":138,"props":36343,"children":36344},{"style":151},[36345],{"type":31,"value":36346}," X]\n",{"type":21,"tag":138,"props":36348,"children":36349},{"class":140,"line":26899},[36350,36354],{"type":21,"tag":138,"props":36351,"children":36352},{"style":145},[36353],{"type":31,"value":5595},{"type":21,"tag":138,"props":36355,"children":36356},{"style":151},[36357],{"type":31,"value":36358}," square_loss(Y, preds)\n",{"type":21,"tag":138,"props":36360,"children":36361},{"class":140,"line":26944},[36362],{"type":21,"tag":138,"props":36363,"children":36364},{"emptyLinePlaceholder":193},[36365],{"type":31,"value":196},{"type":21,"tag":138,"props":36367,"children":36368},{"class":140,"line":26957},[36369],{"type":21,"tag":138,"props":36370,"children":36371},{"style":219},[36372],{"type":31,"value":36373},"# Two-moons dataset, labels mapped to -1 \u002F +1 to match \u003CZ>\n",{"type":21,"tag":138,"props":36375,"children":36376},{"class":140,"line":26965},[36377,36382,36386,36391,36396,36400,36404,36408,36413,36417,36422,36426,36431,36435,36440],{"type":21,"tag":138,"props":36378,"children":36379},{"style":151},[36380],{"type":31,"value":36381},"X, y ",{"type":21,"tag":138,"props":36383,"children":36384},{"style":145},[36385],{"type":31,"value":210},{"type":21,"tag":138,"props":36387,"children":36388},{"style":151},[36389],{"type":31,"value":36390}," make_moons(",{"type":21,"tag":138,"props":36392,"children":36393},{"style":929},[36394],{"type":31,"value":36395},"n_samples",{"type":21,"tag":138,"props":36397,"children":36398},{"style":145},[36399],{"type":31,"value":210},{"type":21,"tag":138,"props":36401,"children":36402},{"style":213},[36403],{"type":31,"value":14119},{"type":21,"tag":138,"props":36405,"children":36406},{"style":151},[36407],{"type":31,"value":258},{"type":21,"tag":138,"props":36409,"children":36410},{"style":929},[36411],{"type":31,"value":36412},"noise",{"type":21,"tag":138,"props":36414,"children":36415},{"style":145},[36416],{"type":31,"value":210},{"type":21,"tag":138,"props":36418,"children":36419},{"style":213},[36420],{"type":31,"value":36421},"0.15",{"type":21,"tag":138,"props":36423,"children":36424},{"style":151},[36425],{"type":31,"value":258},{"type":21,"tag":138,"props":36427,"children":36428},{"style":929},[36429],{"type":31,"value":36430},"random_state",{"type":21,"tag":138,"props":36432,"children":36433},{"style":145},[36434],{"type":31,"value":210},{"type":21,"tag":138,"props":36436,"children":36437},{"style":213},[36438],{"type":31,"value":36439},"42",{"type":21,"tag":138,"props":36441,"children":36442},{"style":151},[36443],{"type":31,"value":269},{"type":21,"tag":138,"props":36445,"children":36446},{"class":140,"line":26981},[36447,36452,36456,36460,36464,36469,36473],{"type":21,"tag":138,"props":36448,"children":36449},{"style":151},[36450],{"type":31,"value":36451},"y ",{"type":21,"tag":138,"props":36453,"children":36454},{"style":145},[36455],{"type":31,"value":210},{"type":21,"tag":138,"props":36457,"children":36458},{"style":213},[36459],{"type":31,"value":21034},{"type":21,"tag":138,"props":36461,"children":36462},{"style":145},[36463],{"type":31,"value":30186},{"type":21,"tag":138,"props":36465,"children":36466},{"style":151},[36467],{"type":31,"value":36468}," y ",{"type":21,"tag":138,"props":36470,"children":36471},{"style":145},[36472],{"type":31,"value":831},{"type":21,"tag":138,"props":36474,"children":36475},{"style":213},[36476],{"type":31,"value":1542},{"type":21,"tag":138,"props":36478,"children":36479},{"class":140,"line":26999},[36480,36485,36489],{"type":21,"tag":138,"props":36481,"children":36482},{"style":151},[36483],{"type":31,"value":36484},"X_train, X_test, y_train, y_test ",{"type":21,"tag":138,"props":36486,"children":36487},{"style":145},[36488],{"type":31,"value":210},{"type":21,"tag":138,"props":36490,"children":36491},{"style":151},[36492],{"type":31,"value":36493}," train_test_split(\n",{"type":21,"tag":138,"props":36495,"children":36496},{"class":140,"line":27007},[36497,36502,36507,36511,36516,36520,36524,36528],{"type":21,"tag":138,"props":36498,"children":36499},{"style":151},[36500],{"type":31,"value":36501},"    X, y, ",{"type":21,"tag":138,"props":36503,"children":36504},{"style":929},[36505],{"type":31,"value":36506},"test_size",{"type":21,"tag":138,"props":36508,"children":36509},{"style":145},[36510],{"type":31,"value":210},{"type":21,"tag":138,"props":36512,"children":36513},{"style":213},[36514],{"type":31,"value":36515},"0.3",{"type":21,"tag":138,"props":36517,"children":36518},{"style":151},[36519],{"type":31,"value":258},{"type":21,"tag":138,"props":36521,"children":36522},{"style":929},[36523],{"type":31,"value":36430},{"type":21,"tag":138,"props":36525,"children":36526},{"style":145},[36527],{"type":31,"value":210},{"type":21,"tag":138,"props":36529,"children":36530},{"style":213},[36531],{"type":31,"value":36532},"42\n",{"type":21,"tag":138,"props":36534,"children":36535},{"class":140,"line":27040},[36536],{"type":21,"tag":138,"props":36537,"children":36538},{"style":151},[36539],{"type":31,"value":269},{"type":21,"tag":138,"props":36541,"children":36542},{"class":140,"line":27057},[36543],{"type":21,"tag":138,"props":36544,"children":36545},{"emptyLinePlaceholder":193},[36546],{"type":31,"value":196},{"type":21,"tag":138,"props":36548,"children":36549},{"class":140,"line":27082},[36550,36555,36559,36564,36569,36573,36578,36583,36587],{"type":21,"tag":138,"props":36551,"children":36552},{"style":151},[36553],{"type":31,"value":36554},"shape ",{"type":21,"tag":138,"props":36556,"children":36557},{"style":145},[36558],{"type":31,"value":210},{"type":21,"tag":138,"props":36560,"children":36561},{"style":151},[36562],{"type":31,"value":36563}," qml.BasicEntanglerLayers.shape(",{"type":21,"tag":138,"props":36565,"children":36566},{"style":929},[36567],{"type":31,"value":36568},"n_layers",{"type":21,"tag":138,"props":36570,"children":36571},{"style":145},[36572],{"type":31,"value":210},{"type":21,"tag":138,"props":36574,"children":36575},{"style":151},[36576],{"type":31,"value":36577},"n_layers, ",{"type":21,"tag":138,"props":36579,"children":36580},{"style":929},[36581],{"type":31,"value":36582},"n_wires",{"type":21,"tag":138,"props":36584,"children":36585},{"style":145},[36586],{"type":31,"value":210},{"type":21,"tag":138,"props":36588,"children":36589},{"style":151},[36590],{"type":31,"value":36035},{"type":21,"tag":138,"props":36592,"children":36593},{"class":140,"line":27123},[36594,36599,36603,36608,36612],{"type":21,"tag":138,"props":36595,"children":36596},{"style":151},[36597],{"type":31,"value":36598},"rng ",{"type":21,"tag":138,"props":36600,"children":36601},{"style":145},[36602],{"type":31,"value":210},{"type":21,"tag":138,"props":36604,"children":36605},{"style":151},[36606],{"type":31,"value":36607}," np.random.default_rng(",{"type":21,"tag":138,"props":36609,"children":36610},{"style":213},[36611],{"type":31,"value":36439},{"type":21,"tag":138,"props":36613,"children":36614},{"style":151},[36615],{"type":31,"value":269},{"type":21,"tag":138,"props":36617,"children":36618},{"class":140,"line":27131},[36619,36624,36628,36633,36637,36641,36645,36650,36654,36658,36662],{"type":21,"tag":138,"props":36620,"children":36621},{"style":151},[36622],{"type":31,"value":36623},"weights ",{"type":21,"tag":138,"props":36625,"children":36626},{"style":145},[36627],{"type":31,"value":210},{"type":21,"tag":138,"props":36629,"children":36630},{"style":151},[36631],{"type":31,"value":36632}," np.array(rng.normal(",{"type":21,"tag":138,"props":36634,"children":36635},{"style":213},[36636],{"type":31,"value":406},{"type":21,"tag":138,"props":36638,"children":36639},{"style":151},[36640],{"type":31,"value":258},{"type":21,"tag":138,"props":36642,"children":36643},{"style":213},[36644],{"type":31,"value":8566},{"type":21,"tag":138,"props":36646,"children":36647},{"style":151},[36648],{"type":31,"value":36649},", shape), ",{"type":21,"tag":138,"props":36651,"children":36652},{"style":929},[36653],{"type":31,"value":8668},{"type":21,"tag":138,"props":36655,"children":36656},{"style":145},[36657],{"type":31,"value":210},{"type":21,"tag":138,"props":36659,"children":36660},{"style":213},[36661],{"type":31,"value":8677},{"type":21,"tag":138,"props":36663,"children":36664},{"style":151},[36665],{"type":31,"value":269},{"type":21,"tag":138,"props":36667,"children":36668},{"class":140,"line":27165},[36669,36674,36678,36683,36687,36691,36695,36699,36703],{"type":21,"tag":138,"props":36670,"children":36671},{"style":151},[36672],{"type":31,"value":36673},"bias ",{"type":21,"tag":138,"props":36675,"children":36676},{"style":145},[36677],{"type":31,"value":210},{"type":21,"tag":138,"props":36679,"children":36680},{"style":151},[36681],{"type":31,"value":36682}," np.array(",{"type":21,"tag":138,"props":36684,"children":36685},{"style":213},[36686],{"type":31,"value":12578},{"type":21,"tag":138,"props":36688,"children":36689},{"style":151},[36690],{"type":31,"value":258},{"type":21,"tag":138,"props":36692,"children":36693},{"style":929},[36694],{"type":31,"value":8668},{"type":21,"tag":138,"props":36696,"children":36697},{"style":145},[36698],{"type":31,"value":210},{"type":21,"tag":138,"props":36700,"children":36701},{"style":213},[36702],{"type":31,"value":8677},{"type":21,"tag":138,"props":36704,"children":36705},{"style":151},[36706],{"type":31,"value":269},{"type":21,"tag":138,"props":36708,"children":36709},{"class":140,"line":27279},[36710],{"type":21,"tag":138,"props":36711,"children":36712},{"emptyLinePlaceholder":193},[36713],{"type":31,"value":196},{"type":21,"tag":138,"props":36715,"children":36716},{"class":140,"line":27287},[36717,36722,36726,36731,36736,36740,36744],{"type":21,"tag":138,"props":36718,"children":36719},{"style":151},[36720],{"type":31,"value":36721},"opt ",{"type":21,"tag":138,"props":36723,"children":36724},{"style":145},[36725],{"type":31,"value":210},{"type":21,"tag":138,"props":36727,"children":36728},{"style":151},[36729],{"type":31,"value":36730}," qml.AdamOptimizer(",{"type":21,"tag":138,"props":36732,"children":36733},{"style":929},[36734],{"type":31,"value":36735},"stepsize",{"type":21,"tag":138,"props":36737,"children":36738},{"style":145},[36739],{"type":31,"value":210},{"type":21,"tag":138,"props":36741,"children":36742},{"style":213},[36743],{"type":31,"value":8566},{"type":21,"tag":138,"props":36745,"children":36746},{"style":151},[36747],{"type":31,"value":269},{"type":21,"tag":138,"props":36749,"children":36750},{"class":140,"line":27332},[36751,36756,36760],{"type":21,"tag":138,"props":36752,"children":36753},{"style":151},[36754],{"type":31,"value":36755},"batch_size ",{"type":21,"tag":138,"props":36757,"children":36758},{"style":145},[36759],{"type":31,"value":210},{"type":21,"tag":138,"props":36761,"children":36762},{"style":213},[36763],{"type":31,"value":36764}," 20\n",{"type":21,"tag":138,"props":36766,"children":36767},{"class":140,"line":27350},[36768],{"type":21,"tag":138,"props":36769,"children":36770},{"emptyLinePlaceholder":193},[36771],{"type":31,"value":196},{"type":21,"tag":138,"props":36773,"children":36774},{"class":140,"line":27358},[36775,36779,36784,36788,36792,36796,36801],{"type":21,"tag":138,"props":36776,"children":36777},{"style":145},[36778],{"type":31,"value":1492},{"type":21,"tag":138,"props":36780,"children":36781},{"style":151},[36782],{"type":31,"value":36783}," step ",{"type":21,"tag":138,"props":36785,"children":36786},{"style":145},[36787],{"type":31,"value":1502},{"type":21,"tag":138,"props":36789,"children":36790},{"style":213},[36791],{"type":31,"value":7430},{"type":21,"tag":138,"props":36793,"children":36794},{"style":151},[36795],{"type":31,"value":959},{"type":21,"tag":138,"props":36797,"children":36798},{"style":213},[36799],{"type":31,"value":36800},"60",{"type":21,"tag":138,"props":36802,"children":36803},{"style":151},[36804],{"type":31,"value":7443},{"type":21,"tag":138,"props":36806,"children":36807},{"class":140,"line":27444},[36808,36813,36817,36822,36826,36830,36835],{"type":21,"tag":138,"props":36809,"children":36810},{"style":151},[36811],{"type":31,"value":36812},"    idx ",{"type":21,"tag":138,"props":36814,"children":36815},{"style":145},[36816],{"type":31,"value":210},{"type":21,"tag":138,"props":36818,"children":36819},{"style":151},[36820],{"type":31,"value":36821}," np.random.randint(",{"type":21,"tag":138,"props":36823,"children":36824},{"style":213},[36825],{"type":31,"value":406},{"type":21,"tag":138,"props":36827,"children":36828},{"style":151},[36829],{"type":31,"value":258},{"type":21,"tag":138,"props":36831,"children":36832},{"style":213},[36833],{"type":31,"value":36834},"len",{"type":21,"tag":138,"props":36836,"children":36837},{"style":151},[36838],{"type":31,"value":36839},"(X_train), (batch_size,))\n",{"type":21,"tag":138,"props":36841,"children":36843},{"class":140,"line":36842},48,[36844,36849,36853],{"type":21,"tag":138,"props":36845,"children":36846},{"style":151},[36847],{"type":31,"value":36848},"    X_batch, y_batch ",{"type":21,"tag":138,"props":36850,"children":36851},{"style":145},[36852],{"type":31,"value":210},{"type":21,"tag":138,"props":36854,"children":36855},{"style":151},[36856],{"type":31,"value":36857}," X_train[idx], y_train[idx]\n",{"type":21,"tag":138,"props":36859,"children":36861},{"class":140,"line":36860},49,[36862,36867,36871],{"type":21,"tag":138,"props":36863,"children":36864},{"style":151},[36865],{"type":31,"value":36866},"    weights, bias, _, _ ",{"type":21,"tag":138,"props":36868,"children":36869},{"style":145},[36870],{"type":31,"value":210},{"type":21,"tag":138,"props":36872,"children":36873},{"style":151},[36874],{"type":31,"value":36875}," opt.step(cost, weights, bias, X_batch, y_batch)\n",{"type":21,"tag":138,"props":36877,"children":36879},{"class":140,"line":36878},50,[36880],{"type":21,"tag":138,"props":36881,"children":36882},{"emptyLinePlaceholder":193},[36883],{"type":31,"value":196},{"type":21,"tag":138,"props":36885,"children":36887},{"class":140,"line":36886},51,[36888,36892,36896,36900,36904,36909,36913],{"type":21,"tag":138,"props":36889,"children":36890},{"style":145},[36891],{"type":31,"value":19536},{"type":21,"tag":138,"props":36893,"children":36894},{"style":151},[36895],{"type":31,"value":36783},{"type":21,"tag":138,"props":36897,"children":36898},{"style":145},[36899],{"type":31,"value":28245},{"type":21,"tag":138,"props":36901,"children":36902},{"style":213},[36903],{"type":31,"value":20153},{"type":21,"tag":138,"props":36905,"children":36906},{"style":145},[36907],{"type":31,"value":36908}," ==",{"type":21,"tag":138,"props":36910,"children":36911},{"style":213},[36912],{"type":31,"value":33761},{"type":21,"tag":138,"props":36914,"children":36915},{"style":151},[36916],{"type":31,"value":26811},{"type":21,"tag":138,"props":36918,"children":36920},{"class":140,"line":36919},52,[36921,36926,36930,36935,36939,36943,36947],{"type":21,"tag":138,"props":36922,"children":36923},{"style":151},[36924],{"type":31,"value":36925},"        preds ",{"type":21,"tag":138,"props":36927,"children":36928},{"style":145},[36929],{"type":31,"value":210},{"type":21,"tag":138,"props":36931,"children":36932},{"style":151},[36933],{"type":31,"value":36934}," [np.sign(variational_classifier(weights, bias, x)) ",{"type":21,"tag":138,"props":36936,"children":36937},{"style":145},[36938],{"type":31,"value":1492},{"type":21,"tag":138,"props":36940,"children":36941},{"style":151},[36942],{"type":31,"value":34527},{"type":21,"tag":138,"props":36944,"children":36945},{"style":145},[36946],{"type":31,"value":1502},{"type":21,"tag":138,"props":36948,"children":36949},{"style":151},[36950],{"type":31,"value":36951}," X_train]\n",{"type":21,"tag":138,"props":36953,"children":36955},{"class":140,"line":36954},53,[36956,36961,36965,36970,36974],{"type":21,"tag":138,"props":36957,"children":36958},{"style":151},[36959],{"type":31,"value":36960},"        acc ",{"type":21,"tag":138,"props":36962,"children":36963},{"style":145},[36964],{"type":31,"value":210},{"type":21,"tag":138,"props":36966,"children":36967},{"style":151},[36968],{"type":31,"value":36969}," np.mean(np.array(preds) ",{"type":21,"tag":138,"props":36971,"children":36972},{"style":145},[36973],{"type":31,"value":7348},{"type":21,"tag":138,"props":36975,"children":36976},{"style":151},[36977],{"type":31,"value":36978}," y_train)\n",{"type":21,"tag":138,"props":36980,"children":36982},{"class":140,"line":36981},54,[36983,36987,36991,36995,37000,37004,37009,37013,37017,37022,37026,37031,37035,37039,37044,37048,37053,37058,37062,37066],{"type":21,"tag":138,"props":36984,"children":36985},{"style":213},[36986],{"type":31,"value":34685},{"type":21,"tag":138,"props":36988,"children":36989},{"style":151},[36990],{"type":31,"value":959},{"type":21,"tag":138,"props":36992,"children":36993},{"style":145},[36994],{"type":31,"value":7537},{"type":21,"tag":138,"props":36996,"children":36997},{"style":261},[36998],{"type":31,"value":36999},"\"Step ",{"type":21,"tag":138,"props":37001,"children":37002},{"style":213},[37003],{"type":31,"value":7547},{"type":21,"tag":138,"props":37005,"children":37006},{"style":151},[37007],{"type":31,"value":37008},"step",{"type":21,"tag":138,"props":37010,"children":37011},{"style":145},[37012],{"type":31,"value":34750},{"type":21,"tag":138,"props":37014,"children":37015},{"style":213},[37016],{"type":31,"value":7556},{"type":21,"tag":138,"props":37018,"children":37019},{"style":261},[37020],{"type":31,"value":37021}," | cost ",{"type":21,"tag":138,"props":37023,"children":37024},{"style":213},[37025],{"type":31,"value":7547},{"type":21,"tag":138,"props":37027,"children":37028},{"style":151},[37029],{"type":31,"value":37030},"cost(weights, bias, X_train, y_train)",{"type":21,"tag":138,"props":37032,"children":37033},{"style":145},[37034],{"type":31,"value":25594},{"type":21,"tag":138,"props":37036,"children":37037},{"style":213},[37038],{"type":31,"value":7556},{"type":21,"tag":138,"props":37040,"children":37041},{"style":261},[37042],{"type":31,"value":37043}," | acc ",{"type":21,"tag":138,"props":37045,"children":37046},{"style":213},[37047],{"type":31,"value":7547},{"type":21,"tag":138,"props":37049,"children":37050},{"style":151},[37051],{"type":31,"value":37052},"acc",{"type":21,"tag":138,"props":37054,"children":37055},{"style":145},[37056],{"type":31,"value":37057},":.3f",{"type":21,"tag":138,"props":37059,"children":37060},{"style":213},[37061],{"type":31,"value":7556},{"type":21,"tag":138,"props":37063,"children":37064},{"style":261},[37065],{"type":31,"value":15383},{"type":21,"tag":138,"props":37067,"children":37068},{"style":151},[37069],{"type":31,"value":269},{"type":21,"tag":138,"props":37071,"children":37073},{"class":140,"line":37072},55,[37074],{"type":21,"tag":138,"props":37075,"children":37076},{"emptyLinePlaceholder":193},[37077],{"type":31,"value":196},{"type":21,"tag":138,"props":37079,"children":37081},{"class":140,"line":37080},56,[37082,37087,37091,37095,37099,37103,37107],{"type":21,"tag":138,"props":37083,"children":37084},{"style":151},[37085],{"type":31,"value":37086},"test_preds ",{"type":21,"tag":138,"props":37088,"children":37089},{"style":145},[37090],{"type":31,"value":210},{"type":21,"tag":138,"props":37092,"children":37093},{"style":151},[37094],{"type":31,"value":36934},{"type":21,"tag":138,"props":37096,"children":37097},{"style":145},[37098],{"type":31,"value":1492},{"type":21,"tag":138,"props":37100,"children":37101},{"style":151},[37102],{"type":31,"value":34527},{"type":21,"tag":138,"props":37104,"children":37105},{"style":145},[37106],{"type":31,"value":1502},{"type":21,"tag":138,"props":37108,"children":37109},{"style":151},[37110],{"type":31,"value":37111}," X_test]\n",{"type":21,"tag":138,"props":37113,"children":37115},{"class":140,"line":37114},57,[37116,37120,37124,37128,37132,37137,37142,37146,37151,37155,37160,37164,37168,37172],{"type":21,"tag":138,"props":37117,"children":37118},{"style":213},[37119],{"type":31,"value":954},{"type":21,"tag":138,"props":37121,"children":37122},{"style":151},[37123],{"type":31,"value":959},{"type":21,"tag":138,"props":37125,"children":37126},{"style":145},[37127],{"type":31,"value":7537},{"type":21,"tag":138,"props":37129,"children":37130},{"style":261},[37131],{"type":31,"value":15383},{"type":21,"tag":138,"props":37133,"children":37134},{"style":213},[37135],{"type":31,"value":37136},"\\n",{"type":21,"tag":138,"props":37138,"children":37139},{"style":261},[37140],{"type":31,"value":37141},"Test accuracy: ",{"type":21,"tag":138,"props":37143,"children":37144},{"style":213},[37145],{"type":31,"value":7547},{"type":21,"tag":138,"props":37147,"children":37148},{"style":151},[37149],{"type":31,"value":37150},"np.mean(np.array(test_preds) ",{"type":21,"tag":138,"props":37152,"children":37153},{"style":145},[37154],{"type":31,"value":7348},{"type":21,"tag":138,"props":37156,"children":37157},{"style":151},[37158],{"type":31,"value":37159}," y_test)",{"type":21,"tag":138,"props":37161,"children":37162},{"style":145},[37163],{"type":31,"value":37057},{"type":21,"tag":138,"props":37165,"children":37166},{"style":213},[37167],{"type":31,"value":7556},{"type":21,"tag":138,"props":37169,"children":37170},{"style":261},[37171],{"type":31,"value":15383},{"type":21,"tag":138,"props":37173,"children":37174},{"style":151},[37175],{"type":31,"value":269},{"type":21,"tag":22,"props":37177,"children":37178},{},[37179,37181,37186],{"type":31,"value":37180},"Running it (PennyLane 0.45, ",{"type":21,"tag":103,"props":37182,"children":37184},{"className":37183},[],[37185],{"type":31,"value":5620},{"type":31,"value":37187},") gives:",{"type":21,"tag":128,"props":37189,"children":37192},{"className":37190,"code":37191,"language":31,"meta":7,"style":7},"language-text shiki shiki-themes github-dark","Step  0 | cost 1.6158 | acc 0.336\nStep 15 | cost 0.6775 | acc 0.764\nStep 30 | cost 0.6466 | acc 0.779\nStep 45 | cost 0.6372 | acc 0.850\n\nTest accuracy: 0.817\n",[37193],{"type":21,"tag":103,"props":37194,"children":37195},{"__ignoreMap":7},[37196,37204,37212,37220,37228,37235],{"type":21,"tag":138,"props":37197,"children":37198},{"class":140,"line":141},[37199],{"type":21,"tag":138,"props":37200,"children":37201},{},[37202],{"type":31,"value":37203},"Step  0 | cost 1.6158 | acc 0.336\n",{"type":21,"tag":138,"props":37205,"children":37206},{"class":140,"line":167},[37207],{"type":21,"tag":138,"props":37208,"children":37209},{},[37210],{"type":31,"value":37211},"Step 15 | cost 0.6775 | acc 0.764\n",{"type":21,"tag":138,"props":37213,"children":37214},{"class":140,"line":189},[37215],{"type":21,"tag":138,"props":37216,"children":37217},{},[37218],{"type":31,"value":37219},"Step 30 | cost 0.6466 | acc 0.779\n",{"type":21,"tag":138,"props":37221,"children":37222},{"class":140,"line":199},[37223],{"type":21,"tag":138,"props":37224,"children":37225},{},[37226],{"type":31,"value":37227},"Step 45 | cost 0.6372 | acc 0.850\n",{"type":21,"tag":138,"props":37229,"children":37230},{"class":140,"line":225},[37231],{"type":21,"tag":138,"props":37232,"children":37233},{"emptyLinePlaceholder":193},[37234],{"type":31,"value":196},{"type":21,"tag":138,"props":37236,"children":37237},{"class":140,"line":233},[37238],{"type":21,"tag":138,"props":37239,"children":37240},{},[37241],{"type":31,"value":37242},"Test accuracy: 0.817\n",{"type":21,"tag":22,"props":37244,"children":37245},{},[37246,37248,37253],{"type":31,"value":37247},"So it trains, and 82% on two moons is respectable. It is also worth noting what it doesn't do: an RBF-kernel SVM from scikit-learn scores ",{"type":21,"tag":16815,"props":37249,"children":37250},{},[37251],{"type":31,"value":37252},"0.983",{"type":31,"value":37254}," on the identical split, and fits in under a millisecond on your laptop. That comparison isn't a criticism of the code. It's the honest baseline that a lot of QML demos quietly omit.",{"type":21,"tag":22,"props":37256,"children":37257},{},[37258,37260,37266,37268,37272],{"type":31,"value":37259},"Try scaling it. Push ",{"type":21,"tag":103,"props":37261,"children":37263},{"className":37262},[],[37264],{"type":31,"value":37265},"n_qubits",{"type":31,"value":37267}," up, widen the ansatz, and watch the gradients shrink. You reproduce the barren-plateau effect on a ",{"type":21,"tag":26,"props":37269,"children":37270},{"href":3304},[37271],{"type":31,"value":9824},{"type":31,"value":37273}," in an afternoon, which is a far better education than reading about it.",{"type":21,"tag":41,"props":37275,"children":37277},{"id":37276},"whats-genuinely-promising",[37278],{"type":31,"value":37279},"What's genuinely promising",{"type":21,"tag":22,"props":37281,"children":37282},{},[37283],{"type":31,"value":37284},"None of the above means QML is a dead end. Three directions look genuinely worth pursuing, and they share a feature: they avoid the problems above rather than hoping to power through them.",{"type":21,"tag":22,"props":37286,"children":37287},{},[37288,37293,37295,37300,37302,37306],{"type":21,"tag":16815,"props":37289,"children":37290},{},[37291],{"type":31,"value":37292},"Quantum data instead of classical data.",{"type":31,"value":37294}," The data-loading bottleneck exists because we're forcing classical numbers into quantum states. If your data is ",{"type":21,"tag":12769,"props":37296,"children":37297},{},[37298],{"type":31,"value":37299},"already quantum",{"type":31,"value":37301}," (states produced by a physics experiment, molecular ground states, outputs of a quantum sensor), there's nothing to load. Learning tasks on quantum data have the cleanest theoretical case for advantage, and unlike most QML claims, the argument survives scrutiny. This overlaps heavily with where quantum computing is delivering results generally: physics and chemistry, not business analytics. Our ",{"type":21,"tag":26,"props":37303,"children":37304},{"href":16304},[37305],{"type":31,"value":33314},{"type":31,"value":37307}," covers the distinction.",{"type":21,"tag":22,"props":37309,"children":37310},{},[37311,37316],{"type":21,"tag":16815,"props":37312,"children":37313},{},[37314],{"type":31,"value":37315},"Quantum kernels for structured data.",{"type":31,"value":37317}," Because the quantum device only computes similarities, kernel methods sidestep barren plateaus entirely. There's no deep variational terrain to descend. For data with structure that maps naturally onto a quantum feature space (group-theoretic structure, certain periodic problems), there are constructed examples with provable separations. The honest caveat is that these are usually engineered problems rather than datasets anyone had lying around.",{"type":21,"tag":22,"props":37319,"children":37320},{},[37321,37326],{"type":21,"tag":16815,"props":37322,"children":37323},{},[37324],{"type":31,"value":37325},"Noise filtering.",{"type":31,"value":37327}," Notably, the Yu et al. comparison that found quantum models losing on every headline metric also identified noise filtering and false-positive control as areas where quantum approaches still looked promising. That's a narrow, specific niche, and narrow, particular niches are how technologies gain footholds.",{"type":21,"tag":41,"props":37329,"children":37331},{"id":37330},"where-this-leaves-you",[37332],{"type":31,"value":37333},"Where this leaves you",{"type":21,"tag":22,"props":37335,"children":37336},{},[37337,37339,37343,37344,37348],{"type":31,"value":37338},"If you're learning quantum computing, QML is still worth your time, only for the right reasons. The techniques transfer. Data encoding, ansatz design, gradient estimation, and the hybrid loop are the same skills that ",{"type":21,"tag":26,"props":37340,"children":37341},{"href":3623},[37342],{"type":31,"value":3626},{"type":31,"value":3628},{"type":21,"tag":26,"props":37345,"children":37346},{"href":1250},[37347],{"type":31,"value":2048},{"type":31,"value":37349}," need, and those have clearer near-term paths. Learning QML makes you better at variational quantum computing generally.",{"type":21,"tag":22,"props":37351,"children":37352},{},[37353,37355,37360],{"type":31,"value":37354},"What to avoid is building a business case on a speedup that hasn't been demonstrated. The same discipline applies here as in ",{"type":21,"tag":26,"props":37356,"children":37357},{"href":19128},[37358],{"type":31,"value":37359},"benchmarking hardware claims",{"type":31,"value":37361},": ask what the classical baseline was, ask whether data loading was counted, ask how numerous qubits the result scales to.",{"type":21,"tag":22,"props":37363,"children":37364},{},[37365,37370],{"type":21,"tag":26,"props":37366,"children":37367},{"href":30587},[37368],{"type":31,"value":37369},"Preskill's NISQ paper",{"type":31,"value":37371}," set the tone for this kind of honesty about near-term devices, and it has aged well precisely because it under-promised. QML would benefit from the same posture.",{"type":21,"tag":22,"props":37373,"children":37374},{},[37375,37377,37382,37384,37388],{"type":31,"value":37376},"The field is more interesting when you stop needing it to be revolutionary. Start with the ",{"type":21,"tag":26,"props":37378,"children":37379},{"href":17332},[37380],{"type":31,"value":37381},"PennyLane SDK guide",{"type":31,"value":37383},", keep the ",{"type":21,"tag":26,"props":37385,"children":37386},{"href":1148},[37387],{"type":31,"value":31148},{"type":31,"value":37389}," open, and run the experiments yourself. The evidence is more useful than the pitch.",{"type":21,"tag":1174,"props":37391,"children":37392},{},[37393],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":37395},[37396,37397,37398,37399,37400,37401,37402],{"id":35598,"depth":167,"text":35601},{"id":35676,"depth":167,"text":35679},{"id":35721,"depth":167,"text":35724},{"id":35767,"depth":167,"text":35770},{"id":35844,"depth":167,"text":35847},{"id":37276,"depth":167,"text":37279},{"id":37330,"depth":167,"text":37333},"content:blog:quantum-machine-learning-reality-check.md","blog\u002Fquantum-machine-learning-reality-check.md","blog\u002Fquantum-machine-learning-reality-check",{"_path":1137,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":37407,"description":37408,"date":25065,"author":11,"tags":37409,"readingTime":16,"body":37410,"_type":1193,"_id":37779,"_source":1195,"_file":37780,"_stem":37781,"_extension":1198},"Quantum Networking and Distributed Quantum Computing: Wiring QPUs Together","Building one enormous quantum processor gets harder the bigger it gets. Linking smaller ones is the alternative, and it depends on distributing entanglement between machines, which is far harder than it sounds.",[1213,30719,3409],{"type":18,"children":37411,"toc":37770},[37412,37417,37422,37441,37446,37452,37457,37467,37498,37508,37513,37519,37524,37535,37540,37568,37586,37592,37604,37609,37621,37626,37632,37637,37642,37647,37658,37664,37669,37678,37694,37705,37711,37716,37721,37726,37731,37737,37742,37759],{"type":21,"tag":22,"props":37413,"children":37414},{},[37415],{"type":31,"value":37416},"There is a ceiling problem in quantum hardware that doesn't get discussed as often as qubit counts do.",{"type":21,"tag":22,"props":37418,"children":37419},{},[37420],{"type":31,"value":37421},"Every approach to building a quantum processor gets harder as the device grows. Superconducting chips need a control line for essentially every qubit, and those lines carry heat into a dilution refrigerator that has a finite cooling budget. Trapped-ion chains get slower and more fragile as you add ions to a single trap. Crosstalk between neighbouring qubits rises with density. Fabrication yield (the probability that every qubit on a chip is good) falls off a cliff as area increases. None of these are fundamental physics barriers. They are engineering walls, and engineering walls have a habit of arriving sooner than expected.",{"type":21,"tag":22,"props":37423,"children":37424},{},[37425,37427,37432,37434,37439],{"type":31,"value":37426},"The alternative is the one classical computing took decades ago: stop building one bigger machine and start connecting smaller ones. That is what ",{"type":21,"tag":26,"props":37428,"children":37429},{"href":1080},[37430],{"type":31,"value":37431},"distributed quantum computing",{"type":31,"value":37433}," means, and it is why quantum networking has moved from a communications curiosity to a scaling strategy. When we ",{"type":21,"tag":26,"props":37435,"children":37436},{"href":19128},[37437],{"type":31,"value":37438},"read EO 14413 as a technical document",{"type":31,"value":37440},", distributed quantum computing showed up as a named five-year planning target, which is a fairly direct admission that nobody is confident the single-big-chip route gets all the way there.",{"type":21,"tag":22,"props":37442,"children":37443},{},[37444],{"type":31,"value":37445},"The catch is that connecting quantum computers is nothing like connecting classical ones.",{"type":21,"tag":41,"props":37447,"children":37449},{"id":37448},"three-different-things-people-call-quantum-networking",[37450],{"type":31,"value":37451},"Three different things people call \"quantum networking\"",{"type":21,"tag":22,"props":37453,"children":37454},{},[37455],{"type":31,"value":37456},"Before anything else, a disambiguation, because these get conflated constantly and the confusion makes most coverage of the topic unreadable.",{"type":21,"tag":22,"props":37458,"children":37459},{},[37460,37465],{"type":21,"tag":16815,"props":37461,"children":37462},{},[37463],{"type":31,"value":37464},"(a) Quantum networking for distributed computation.",{"type":31,"value":37466}," Linking two or more QPUs with a quantum channel so they behave as one larger computer. Quantum information genuinely moves between them. This is the subject of this post.",{"type":21,"tag":22,"props":37468,"children":37469},{},[37470,37475,37477,37482,37484,37490,37492,37496],{"type":21,"tag":16815,"props":37471,"children":37472},{},[37473],{"type":31,"value":37474},"(b) Quantum key distribution and the \"quantum internet.\"",{"type":31,"value":37476}," Using quantum states to establish a shared secret key whose security rests on physics rather than on computational hardness. This is a ",{"type":21,"tag":12769,"props":37478,"children":37479},{},[37480],{"type":31,"value":37481},"communications security",{"type":31,"value":37483}," technology, descending from ",{"type":21,"tag":26,"props":37485,"children":37487},{"href":37486},"\u002Fresearch\u002Fbennett-brassard-bb84-1984",[37488],{"type":31,"value":37489},"Bennett and Brassard's BB84 protocol",{"type":31,"value":37491},". It does not make any computer faster. It's also frequently misrepresented as the answer to the quantum threat against public-key cryptography. In practice that threat is being addressed by ",{"type":21,"tag":26,"props":37493,"children":37494},{"href":3896},[37495],{"type":31,"value":3977},{"type":31,"value":37497},", which is software you deploy today, not hardware that needs new fibre.",{"type":21,"tag":22,"props":37499,"children":37500},{},[37501,37506],{"type":21,"tag":16815,"props":37502,"children":37503},{},[37504],{"type":31,"value":37505},"(c) Classical networking of quantum computers.",{"type":31,"value":37507}," Running one circuit on a QPU in Maryland from a laptop in Berlin. This is what every cloud quantum service already does. It is ordinary TCP\u002FIP carrying circuit descriptions and measurement results, and nothing quantum crosses the wire.",{"type":21,"tag":22,"props":37509,"children":37510},{},[37511],{"type":31,"value":37512},"Press releases blur (a) and (c) especially often. If a headline says \"networked quantum computers\" and the mechanism is an API, it's (c).",{"type":21,"tag":41,"props":37514,"children":37516},{"id":37515},"why-you-cannot-simply-amplify-a-qubit",[37517],{"type":31,"value":37518},"Why you cannot simply amplify a qubit",{"type":21,"tag":22,"props":37520,"children":37521},{},[37522],{"type":31,"value":37523},"Classical networking works because signals are copied. A repeater reads a degraded bit, decides whether it was a 0 or a 1, and transmits a fresh clean copy. Errors are stripped out at every hop, which is why a fibre link spans an ocean.",{"type":21,"tag":22,"props":37525,"children":37526},{},[37527,37529,37533],{"type":31,"value":37528},"Quantum information forbids this. The no-cloning theorem says there is no operation that duplicates an arbitrary unknown quantum state. There is no such thing as reading a qubit to see what it is and sending a fresh one, because measurement collapses the state and destroys the ",{"type":21,"tag":26,"props":37530,"children":37531},{"href":3083},[37532],{"type":31,"value":30688},{"type":31,"value":37534}," you were trying to preserve. A quantum repeater that worked like a classical repeater would be a quantum repeater that deletes your data.",{"type":21,"tag":22,"props":37536,"children":37537},{},[37538],{"type":31,"value":37539},"Meanwhile the physical channel is brutally lossy. Photons in optical fibre attenuate exponentially with distance, and unlike classical light you can't compensate by turning up the power. A single photon either arrives or it doesn't. Beyond a few hundred kilometres, the odds of a photon surviving the trip get small enough that you'd wait a long time for one success.",{"type":21,"tag":22,"props":37541,"children":37542},{},[37543,37545,37552,37554,37559,37561,37566],{"type":31,"value":37544},"Quantum repeaters solve this by a genuinely different mechanism. Rather than relaying the qubit, they relay ",{"type":21,"tag":12769,"props":37546,"children":37547},{},[37548],{"type":21,"tag":26,"props":37549,"children":37550},{"href":1156},[37551],{"type":31,"value":4248},{"type":31,"value":37553},". Split a long link into short segments. Establish an entangled pair across each segment independently: short hops, so the loss per hop is manageable, and success is heralded, meaning you know when it worked and simply retry when it didn't. Then perform ",{"type":21,"tag":16815,"props":37555,"children":37556},{},[37557],{"type":31,"value":37558},"entanglement swapping",{"type":31,"value":37560},": at each intermediate node, jointly measure the two local halves of two adjacent pairs in the ",{"type":21,"tag":26,"props":37562,"children":37563},{"href":488},[37564],{"type":31,"value":37565},"Bell basis",{"type":31,"value":37567},". That measurement consumes both short pairs and leaves the two far-end qubits entangled with each other, despite never having interacted. Chain this along the route and you have entanglement spanning the whole distance.",{"type":21,"tag":22,"props":37569,"children":37570},{},[37571,37573,37577,37579,37584],{"type":31,"value":37572},"The ingredients this demands are exactly the tough parts: heralded entanglement generation, quantum memories that hold a half-pair coherently while the neighbouring segment keeps retrying, and some form of purification or error correction to keep ",{"type":21,"tag":26,"props":37574,"children":37575},{"href":18194},[37576],{"type":31,"value":13099},{"type":31,"value":37578}," from degrading across hops. ",{"type":21,"tag":26,"props":37580,"children":37581},{"href":4156},[37582],{"type":31,"value":37583},"Decoherence",{"type":31,"value":37585}," in the memory sets a hard clock on the whole procedure. If a stored qubit dies while its partner segment is still failing, the attempt is wasted.",{"type":21,"tag":41,"props":37587,"children":37589},{"id":37588},"teleportation-is-the-transport-primitive",[37590],{"type":31,"value":37591},"Teleportation is the transport primitive",{"type":21,"tag":22,"props":37593,"children":37594},{},[37595,37597,37602],{"type":31,"value":37596},"Once two nodes share an entangled pair, moving an actual qubit between them is a solved protocol: ",{"type":21,"tag":26,"props":37598,"children":37599},{"href":25785},[37600],{"type":31,"value":37601},"quantum teleportation",{"type":31,"value":37603},", from Bennett and colleagues in 1993.",{"type":21,"tag":22,"props":37605,"children":37606},{},[37607],{"type":31,"value":37608},"The sender performs a joint measurement on the qubit to be transmitted and their half of the entangled pair, obtaining two classical bits. Those bits are sent over an ordinary classical channel. The receiver applies one of four corrections determined by those bits, and their half of the pair becomes the original state. One entangled pair and two classical bits per qubit transported.",{"type":21,"tag":22,"props":37610,"children":37611},{},[37612,37614,37619],{"type":31,"value":37613},"Two consequences are worth stating explicitly because both get mangled in popular coverage. First, the original state is destroyed by the sender's measurement. Teleportation moves a qubit, it does not copy one, which is precisely how it stays consistent with no-cloning. Second, ",{"type":21,"tag":16815,"props":37615,"children":37616},{},[37617],{"type":31,"value":37618},"the classical channel is mandatory",{"type":31,"value":37620},". Without those two bits the receiver's qubit is in a completely random state and useless. Entanglement alone signals nothing. Nothing travels faster than light, and no amount of entanglement between two labs lets them communicate without a conventional link.",{"type":21,"tag":22,"props":37622,"children":37623},{},[37624],{"type":31,"value":37625},"That second point is the whole reason quantum networks are not a physics loophole. They are a way to move fragile information, not a way to move it instantly.",{"type":21,"tag":41,"props":37627,"children":37629},{"id":37628},"the-interconnect-is-the-bottleneck",[37630],{"type":31,"value":37631},"The interconnect is the bottleneck",{"type":21,"tag":22,"props":37633,"children":37634},{},[37635],{"type":31,"value":37636},"Now the engineering reality of stitching QPUs together.",{"type":21,"tag":22,"props":37638,"children":37639},{},[37640],{"type":31,"value":37641},"Inside a single processor, two-qubit gates take microseconds or less and land fidelities that, on good hardware, exceed 99.9%. Between two processors, you must first generate a shared entangled pair over a photonic link (a probabilistic, lossy process) and only then teleport a gate or a qubit across it. Inter-node entanglement generation is currently orders of magnitude slower than local gates, and arrives at meaningfully lower fidelity.",{"type":21,"tag":22,"props":37643,"children":37644},{},[37645],{"type":31,"value":37646},"This changes how you have to think about programming such a machine. A distributed QPU is not a flat pool of qubits. It is a strongly non-uniform architecture where some pairs of qubits are cheap to entangle and others are extremely expensive, and where the expensive operations also happen to be the noisy ones. Circuit compilers have to partition algorithms to minimise cross-node operations, in much the same spirit as minimising communication in classical HPC, except the penalty for getting it wrong is not only latency but error accumulation. And because entanglement must be produced faster than the memories holding it decohere, a slow interconnect doesn't merely reduce throughput. Past a certain point it stops working at all.",{"type":21,"tag":22,"props":37648,"children":37649},{},[37650,37652,37656],{"type":31,"value":37651},"There is a genuinely appealing upside, though, and it's the reason serious people pursue this: ",{"type":21,"tag":26,"props":37653,"children":37654},{"href":4095},[37655],{"type":31,"value":16075},{"type":31,"value":37657}," needs physical qubit counts in the millions for useful algorithms, and no one has a credible plan to put a million high-quality qubits in one enclosure. Modularity is one of the few routes to that number that doesn't require a single manufacturing miracle.",{"type":21,"tag":41,"props":37659,"children":37661},{"id":37660},"modality-matters-here-more-than-usual",[37662],{"type":31,"value":37663},"Modality matters here more than usual",{"type":21,"tag":22,"props":37665,"children":37666},{},[37667],{"type":31,"value":37668},"The photonic interface is where hardware platforms diverge sharply.",{"type":21,"tag":22,"props":37670,"children":37671},{},[37672,37676],{"type":21,"tag":16815,"props":37673,"children":37674},{},[37675],{"type":31,"value":15612},{"type":31,"value":37677}," have a natural optical interface. An ion is excited with a laser and made to emit a single photon whose polarisation or frequency is entangled with the ion's internal state. The qubit is already coupled to light at optical wavelengths that fibre transmits well. IonQ argues that this photonic compatibility was a central reason it chose trapped ions in the first place, and that the platform is particularly suited to multi-QPU networking. That is an architectural argument from a provider whose commercial strategy depends on modular scaling, and should be read as advocacy rather than a neutral survey, but the underlying physics of atom-photon coupling is standard, well-studied quantum optics and is not in dispute.",{"type":21,"tag":22,"props":37679,"children":37680},{},[37681,37685,37687,37692],{"type":21,"tag":16815,"props":37682,"children":37683},{},[37684],{"type":31,"value":15605},{"type":31,"value":37686}," face a harder problem. They operate at microwave frequencies inside a millikelvin refrigerator, and microwave photons cannot travel any meaningful distance at room temperature. Thermal noise swamps them. Networking them optically requires ",{"type":21,"tag":16815,"props":37688,"children":37689},{},[37690],{"type":31,"value":37691},"microwave-to-optical transduction",{"type":31,"value":37693},": coherently converting a gigahertz photon into a telecom-wavelength one without destroying the quantum state. This is an active and legitimate research field, with electro-optic, optomechanical, magneto-optic and atomic-ensemble approaches all under investigation, but efficiency and added noise remain the limiting factors. IonQ makes this contrast a talking point, characterising the conversion process as slow and not yet well matched to quantum computers. The general difficulty is widely acknowledged in the literature, though the framing is naturally sharper coming from a competitor. NIST, among others, is building optical channels for remote microwave entanglement precisely because the problem is considered tractable rather than hopeless.",{"type":21,"tag":22,"props":37695,"children":37696},{},[37697,37699,37703],{"type":31,"value":37698},"Neutral atoms sit closer to the ion story optically. Photonic qubits are their own case, since the information is already in flight. Our ",{"type":21,"tag":26,"props":37700,"children":37701},{"href":19079},[37702],{"type":31,"value":21758},{"type":31,"value":37704}," covers the broader trade-offs.",{"type":21,"tag":41,"props":37706,"children":37708},{"id":37707},"where-this-stands",[37709],{"type":31,"value":37710},"Where this stands",{"type":21,"tag":22,"props":37712,"children":37713},{},[37714],{"type":31,"value":37715},"Plainly: early.",{"type":21,"tag":22,"props":37717,"children":37718},{},[37719],{"type":31,"value":37720},"The building blocks are real. Ion-photon entanglement (the first milestone, where a photon leaves a trapped ion carrying entanglement with it) has been demonstrated, and IonQ reports having done so outside an academic setting. Remote ion-ion entanglement has followed, with IonQ describing a setup that collects photons from two separate trap wells, interferes them at a shared detection hub, and leaves the two distant ions entangled. IonQ frames these as the first and second of four milestones on its own roadmap to photonic interconnects, with the remaining two being the transfer of that remote entanglement onto computation qubits via swap gates, and programmable multi-QPU entanglement using single-photon switching. In 2026 the company announced it had photonically interconnected two independent trapped-ion systems.",{"type":21,"tag":22,"props":37722,"children":37723},{},[37724],{"type":31,"value":37725},"Read those carefully. They are milestone announcements on a vendor's internal roadmap, and the public write-ups notably do not disclose entanglement rates, fidelities, or success probabilities: the numbers that would let anyone judge whether the link is quick and clean enough to compute across. IonQ itself acknowledges low entanglement rates as a current limitation. Its broader case (that networking is what carries quantum computing from research demos to commercial scale, and that modular systems are faster to build and easier to service than monolithic ones) is a coherent argument, but it is a firm describing why its own architecture wins.",{"type":21,"tag":22,"props":37727,"children":37728},{},[37729],{"type":31,"value":37730},"What is not in doubt is that the demonstrated capability sits far below what distributed computing requires. Getting two qubits in different traps entangled occasionally is a real physics achievement. Sustaining entanglement generation at rates and fidelities that let two processors execute a single fault-tolerant algorithm together is a different order of problem, and nobody has done it.",{"type":21,"tag":41,"props":37732,"children":37734},{"id":37733},"the-takeaway",[37735],{"type":31,"value":37736},"The takeaway",{"type":21,"tag":22,"props":37738,"children":37739},{},[37740],{"type":31,"value":37741},"Quantum networking is not a faster internet and not a security product, though it shares physics with one. It is a proposed answer to a hardware scaling wall, built on entanglement distribution, entanglement swapping, and teleportation, all constrained by the fact that quantum information cannot be copied and therefore cannot be amplified.",{"type":21,"tag":22,"props":37743,"children":37744},{},[37745,37747,37752,37753,37757],{"type":31,"value":37746},"If you're evaluating claims in this space, three questions do most of the work. Is the link genuinely quantum, or is it an API? What is the entanglement generation ",{"type":21,"tag":12769,"props":37748,"children":37749},{},[37750],{"type":31,"value":37751},"rate",{"type":31,"value":3628},{"type":21,"tag":12769,"props":37754,"children":37755},{},[37756],{"type":31,"value":13099},{"type":31,"value":37758}," between nodes, not whether entanglement was achieved once? And is the demonstration between two nodes in adjacent racks, or over a distance where photon loss genuinely bites?",{"type":21,"tag":22,"props":37760,"children":37761},{},[37762,37764,37768],{"type":31,"value":37763},"Answers to those tend to be absent from the announcements, which is itself informative. The ",{"type":21,"tag":26,"props":37765,"children":37766},{"href":1072},[37767],{"type":31,"value":31148},{"type":31,"value":37769}," covers the vocabulary if you want to read the primary sources yourself.",{"title":7,"searchDepth":167,"depth":167,"links":37771},[37772,37773,37774,37775,37776,37777,37778],{"id":37448,"depth":167,"text":37451},{"id":37515,"depth":167,"text":37518},{"id":37588,"depth":167,"text":37591},{"id":37628,"depth":167,"text":37631},{"id":37660,"depth":167,"text":37663},{"id":37707,"depth":167,"text":37710},{"id":37733,"depth":167,"text":37736},"content:blog:quantum-networking-distributed-computing.md","blog\u002Fquantum-networking-distributed-computing.md","blog\u002Fquantum-networking-distributed-computing",{"_path":37783,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":37784,"description":37785,"date":25065,"author":11,"tags":37786,"readingTime":368,"body":37787,"_type":1193,"_id":39869,"_source":1195,"_file":39870,"_stem":39871,"_extension":1198},"\u002Fblog\u002Fquantum-phase-estimation-tutorial","Quantum Phase Estimation: The Missing Link Between the QFT and Shor's Algorithm","A hands-on Qiskit tutorial on quantum phase estimation: phase kickback, the inverse QFT, and precision limits, with complete runnable code and real measured output.",[13,14,15],{"type":18,"children":37788,"toc":39857},[37789,37805,37823,37828,37836,37842,37847,37855,37860,37871,37910,37915,37927,37933,37938,37949,37957,37981,37989,37999,38004,38012,38032,38038,38049,38054,38064,38069,38097,38101,38137,39082,39086,39094,39104,39112,39117,39123,39155,39168,39176,39195,39200,39206,39211,39454,39458,39466,39478,39489,39497,39509,39521,39527,39550,39567,39595,39693,39717,39723,39734,39745,39787,39792,39798,39853],{"type":21,"tag":22,"props":37790,"children":37791},{},[37792,37793,37797,37799,37803],{"type":31,"value":4494},{"type":21,"tag":26,"props":37794,"children":37795},{"href":18029},[37796],{"type":31,"value":19974},{"type":31,"value":37798}," ended on a deliberately unsatisfying note: the ",{"type":21,"tag":26,"props":37800,"children":37801},{"href":33342},[37802],{"type":31,"value":33345},{"type":31,"value":37804}," is fast, exact, and useless on its own. You can't load its input efficiently and you can't read its output. Measure a transformed basis state and you get a uniformly random bitstring.",{"type":21,"tag":22,"props":37806,"children":37807},{},[37808,37810,37814,37816,37821],{"type":31,"value":37809},"This post is the sequel that resolves that. Quantum phase estimation (QPE) is the machine that turns the ",{"type":21,"tag":12769,"props":37811,"children":37812},{},[37813],{"type":31,"value":28838},{"type":31,"value":37815}," QFT into a readout primitive. It's the reason the QFT matters, and it is the algorithm sitting underneath ",{"type":21,"tag":26,"props":37817,"children":37818},{"href":1237},[37819],{"type":31,"value":37820},"Shor's",{"type":31,"value":37822},": Shor's is QPE applied to modular exponentiation, plus number theory.",{"type":21,"tag":22,"props":37824,"children":37825},{},[37826],{"type":31,"value":37827},"Read the QFT post first if you haven't. This one assumes the construction and won't rebuild it.",{"type":21,"tag":22,"props":37829,"children":37830},{},[37831],{"type":21,"tag":16815,"props":37832,"children":37833},{},[37834],{"type":31,"value":37835},"All code below was executed against Qiskit 2.5.0 and Qiskit Aer 0.17.2 on Python 3.11. The outputs shown are real.",{"type":21,"tag":41,"props":37837,"children":37839},{"id":37838},"the-problem-qpe-solves",[37840],{"type":31,"value":37841},"The problem QPE solves",{"type":21,"tag":22,"props":37843,"children":37844},{},[37845],{"type":31,"value":37846},"Given a unitary U and an eigenstate |ψ⟩ satisfying",{"type":21,"tag":128,"props":37848,"children":37850},{"code":37849},"U|ψ⟩ = e^{2πiθ} |ψ⟩\n",[37851],{"type":21,"tag":103,"props":37852,"children":37853},{"__ignoreMap":7},[37854],{"type":31,"value":37849},{"type":21,"tag":22,"props":37856,"children":37857},{},[37858],{"type":31,"value":37859},"estimate θ ∈ [0, 1).",{"type":21,"tag":22,"props":37861,"children":37862},{},[37863,37865,37870],{"type":31,"value":37864},"That sounds like a linear-algebra exercise, not an application. It is in fact one of the most consequential problems in the field, because ",{"type":21,"tag":12769,"props":37866,"children":37867},{},[37868],{"type":31,"value":37869},"enormous numbers of questions are secretly eigenvalue questions",{"type":31,"value":14640},{"type":21,"tag":1118,"props":37872,"children":37873},{},[37874,37884,37894],{"type":21,"tag":71,"props":37875,"children":37876},{},[37877,37882],{"type":21,"tag":16815,"props":37878,"children":37879},{},[37880],{"type":31,"value":37881},"What is a molecule's ground-state energy?",{"type":31,"value":37883}," Build U = e^{-iHt} for the molecular Hamiltonian H. Its eigenphases are the energy levels. Estimating θ estimates the energy.",{"type":21,"tag":71,"props":37885,"children":37886},{},[37887,37892],{"type":21,"tag":16815,"props":37888,"children":37889},{},[37890],{"type":31,"value":37891},"What is the order of a mod N?",{"type":31,"value":37893}," Build U|y⟩ = |ay mod N⟩. Its eigenphases are multiples of 1\u002Fr where r is the order. Estimating θ gives you r, and factoring falls out.",{"type":21,"tag":71,"props":37895,"children":37896},{},[37897,37902,37904,37909],{"type":21,"tag":16815,"props":37898,"children":37899},{},[37900],{"type":31,"value":37901},"How many solutions does an oracle mark?",{"type":31,"value":37903}," Amplitude estimation is QPE on the Grover operator, whose eigenphase encodes the count. That's the quantum-counting subroutine we flagged as a missing piece in the ",{"type":21,"tag":26,"props":37905,"children":37906},{"href":29000},[37907],{"type":31,"value":37908},"Grover tutorial",{"type":31,"value":6678},{"type":21,"tag":22,"props":37911,"children":37912},{},[37913],{"type":31,"value":37914},"One primitive, three flagship algorithms. That's why \"estimate an eigenphase\" is worth a dedicated circuit.",{"type":21,"tag":22,"props":37916,"children":37917},{},[37918,37920,37925],{"type":31,"value":37919},"Note the precondition, which people gloss over: you need to ",{"type":21,"tag":12769,"props":37921,"children":37922},{},[37923],{"type":31,"value":37924},"have",{"type":31,"value":37926}," the eigenstate |ψ⟩, or at least a state with decent overlap with it. Preparing good eigenstates is its own hard problem, and in chemistry it's often the binding constraint.",{"type":21,"tag":41,"props":37928,"children":37930},{"id":37929},"phase-kickback-the-key-insight",[37931],{"type":31,"value":37932},"Phase kickback: the key insight",{"type":21,"tag":22,"props":37934,"children":37935},{},[37936],{"type":31,"value":37937},"Here's the thing that makes QPE work, and it's worth slowing down for.",{"type":21,"tag":22,"props":37939,"children":37940},{},[37941,37943,37947],{"type":31,"value":37942},"A controlled-U applied to a control ",{"type":21,"tag":26,"props":37944,"children":37945},{"href":3064},[37946],{"type":31,"value":24494},{"type":31,"value":37948}," in state |1⟩ and a target in the eigenstate |ψ⟩ gives:",{"type":21,"tag":128,"props":37950,"children":37952},{"code":37951},"CU |1⟩|ψ⟩ = |1⟩ ⊗ U|ψ⟩ = |1⟩ ⊗ e^{2πiθ}|ψ⟩ = e^{2πiθ} |1⟩|ψ⟩\n",[37953],{"type":21,"tag":103,"props":37954,"children":37955},{"__ignoreMap":7},[37956],{"type":31,"value":37951},{"type":21,"tag":22,"props":37958,"children":37959},{},[37960,37962,37967,37969,37973,37975,37979],{"type":31,"value":37961},"The eigenstate came out unchanged. The phase e^{2πiθ} is a scalar, so it's now attached to the whole state, and since it only appeared for the |1⟩ branch of the control, it's a ",{"type":21,"tag":12769,"props":37963,"children":37964},{},[37965],{"type":31,"value":37966},"relative",{"type":31,"value":37968}," phase on the control qubit. Put the control in ",{"type":21,"tag":26,"props":37970,"children":37971},{"href":3083},[37972],{"type":31,"value":30688},{"type":31,"value":37974}," with a ",{"type":21,"tag":26,"props":37976,"children":37977},{"href":3096},[37978],{"type":31,"value":33511},{"type":31,"value":37980}," and you get:",{"type":21,"tag":128,"props":37982,"children":37984},{"code":37983},"CU (|0⟩+|1⟩)\u002F√2 ⊗ |ψ⟩ = (|0⟩ + e^{2πiθ}|1⟩)\u002F√2 ⊗ |ψ⟩\n",[37985],{"type":21,"tag":103,"props":37986,"children":37987},{"__ignoreMap":7},[37988],{"type":31,"value":37983},{"type":21,"tag":22,"props":37990,"children":37991},{},[37992,37997],{"type":21,"tag":16815,"props":37993,"children":37994},{},[37995],{"type":31,"value":37996},"The phase kicked back from the target onto the control.",{"type":31,"value":37998}," The target register is untouched and unentangled. It's a catalyst. All of the information now lives in the control's phase.",{"type":21,"tag":22,"props":38000,"children":38001},{},[38002],{"type":31,"value":38003},"Do this with n control qubits, and give control qubit k a controlled-U^(2^k) instead, so it picks up phase e^{2πi·2^k·θ}. The counting register ends up in:",{"type":21,"tag":128,"props":38005,"children":38007},{"code":38006},"(1\u002F√N) Σ_{x=0}^{N-1} e^{2πi·x·θ} |x⟩\n",[38008],{"type":21,"tag":103,"props":38009,"children":38010},{"__ignoreMap":7},[38011],{"type":31,"value":38006},{"type":21,"tag":22,"props":38013,"children":38014},{},[38015,38017,38023,38025,38030],{"type":31,"value":38016},"Stare at that and compare it to the QFT formula from the previous post: ",{"type":21,"tag":103,"props":38018,"children":38020},{"className":38019},[],[38021],{"type":31,"value":38022},"QFT|j⟩ = (1\u002F√N) Σ_x e^{2πi·jx\u002FN}|x⟩",{"type":31,"value":38024},". They are the ",{"type":21,"tag":12769,"props":38026,"children":38027},{},[38028],{"type":31,"value":38029},"same state",{"type":31,"value":38031},", with j\u002FN = θ. The counting register is holding the QFT of the number j = Nθ.",{"type":21,"tag":41,"props":38033,"children":38035},{"id":38034},"why-the-inverse-qft",[38036],{"type":31,"value":38037},"Why the inverse QFT",{"type":21,"tag":22,"props":38039,"children":38040},{},[38041,38043,38047],{"type":31,"value":38042},"So the controlled-U powers have written θ into the counting register's phases, and, as the QFT post hammered, phases are invisible to ",{"type":21,"tag":26,"props":38044,"children":38045},{"href":14880},[38046],{"type":31,"value":32908},{"type":31,"value":38048},". Measure now and you get uniform noise.",{"type":21,"tag":22,"props":38050,"children":38051},{},[38052],{"type":31,"value":38053},"But we know exactly what transform produced this state. So we undo it. Apply QFT⁻¹ and the register collapses to |j⟩ where j = Nθ, a plain binary integer you read off in one shot.",{"type":21,"tag":22,"props":38055,"children":38056},{},[38057,38059,38063],{"type":31,"value":38058},"That's the payoff the QFT post set up. The QFT direction moves position information into phases. The inverse direction pulls phase information back out into a readable number. QPE is the canonical example of the pattern we described there: the QFT is never the whole algorithm, it's the readout stage of a larger ",{"type":21,"tag":26,"props":38060,"children":38061},{"href":4343},[38062],{"type":31,"value":29893},{"type":31,"value":6678},{"type":21,"tag":22,"props":38065,"children":38066},{},[38067],{"type":31,"value":38068},"The full recipe:",{"type":21,"tag":67,"props":38070,"children":38071},{},[38072,38077,38082,38087,38092],{"type":21,"tag":71,"props":38073,"children":38074},{},[38075],{"type":31,"value":38076},"n counting qubits + enough qubits to hold |ψ⟩.",{"type":21,"tag":71,"props":38078,"children":38079},{},[38080],{"type":31,"value":38081},"Hadamard the counting register.",{"type":21,"tag":71,"props":38083,"children":38084},{},[38085],{"type":31,"value":38086},"For k = 0…n−1: apply controlled-U^(2^k) from counting qubit k onto the eigenstate register.",{"type":21,"tag":71,"props":38088,"children":38089},{},[38090],{"type":31,"value":38091},"Apply the inverse QFT to the counting register.",{"type":21,"tag":71,"props":38093,"children":38094},{},[38095],{"type":31,"value":38096},"Measure the counting register. The result, read as a binary fraction, is θ.",{"type":21,"tag":41,"props":38098,"children":38099},{"id":33570},[38100],{"type":31,"value":33573},{"type":21,"tag":22,"props":38102,"children":38103},{},[38104,38106,38112,38114,38120,38122,38127,38129,38135],{"type":31,"value":38105},"Simplest possible U with a known answer: the phase gate ",{"type":21,"tag":103,"props":38107,"children":38109},{"className":38108},[],[38110],{"type":31,"value":38111},"P(λ)",{"type":31,"value":38113},", which maps |1⟩ → e^{iλ}|1⟩. So |1⟩ is an eigenstate, and setting λ = 2πθ makes the eigenphase exactly θ. We'll reuse the ",{"type":21,"tag":103,"props":38115,"children":38117},{"className":38116},[],[38118],{"type":31,"value":38119},"qft",{"type":31,"value":38121}," function from the ",{"type":21,"tag":26,"props":38123,"children":38124},{"href":18029},[38125],{"type":31,"value":38126},"previous post",{"type":31,"value":38128}," and simply call ",{"type":21,"tag":103,"props":38130,"children":38132},{"className":38131},[],[38133],{"type":31,"value":38134},".inverse()",{"type":31,"value":38136}," on it.",{"type":21,"tag":128,"props":38138,"children":38140},{"code":38139,"language":132,"meta":7,"className":130,"style":7},"import numpy as np\nfrom qiskit import QuantumCircuit, transpile\nfrom qiskit_aer import AerSimulator\n\n\ndef qft_rotations(circuit, n):\n    if n == 0:\n        return circuit\n    n -= 1\n    circuit.h(n)\n    for qubit in range(n):\n        circuit.cp(np.pi \u002F 2 ** (n - qubit), qubit, n)\n    qft_rotations(circuit, n)\n    return circuit\n\n\ndef qft(n):\n    qc = QuantumCircuit(n, name=\"QFT\")\n    qft_rotations(qc, n)\n    for q in range(n \u002F\u002F 2):          # the swaps matter here, see below\n        qc.swap(q, n - q - 1)\n    return qc\n\n\ndef qpe_phase_gate(n_count, theta):\n    \"\"\"QPE for U = P(2*pi*theta), whose eigenstate is |1>.\"\"\"\n    qc = QuantumCircuit(n_count + 1, n_count)\n    qc.h(range(n_count))             # counting register in superposition\n    qc.x(n_count)                    # prepare the eigenstate |1>\n\n    for k in range(n_count):         # controlled-U^(2^k) = CP(2*pi*theta*2^k)\n        qc.cp(2 * np.pi * theta * 2 ** k, k, n_count)\n\n    qc.compose(qft(n_count).inverse(), qubits=range(n_count), inplace=True)\n    qc.measure(range(n_count), range(n_count))\n    return qc\n\n\nsim = AerSimulator()\nqc = qpe_phase_gate(4, 0.625)        # theta = 0.625 = 0.1010 in binary\ncounts = sim.run(transpile(qc, sim), shots=4096).result().get_counts()\n\nfor bits, c in sorted(counts.items(), key=lambda kv: -kv[1]):\n    est = int(bits, 2) \u002F 2 ** 4\n    print(f\"{bits} -> theta = {int(bits, 2)}\u002F16 = {est:.4f}   counts = {c}\")\n",[38141],{"type":21,"tag":103,"props":38142,"children":38143},{"__ignoreMap":7},[38144,38163,38182,38201,38208,38215,38230,38253,38264,38279,38286,38309,38340,38348,38359,38366,38373,38388,38419,38426,38467,38494,38505,38512,38519,38536,38544,38571,38592,38605,38612,38641,38688,38695,38735,38758,38769,38776,38783,38798,38837,38868,38875,38929,38975],{"type":21,"tag":138,"props":38145,"children":38146},{"class":140,"line":141},[38147,38151,38155,38159],{"type":21,"tag":138,"props":38148,"children":38149},{"style":145},[38150],{"type":31,"value":159},{"type":21,"tag":138,"props":38152,"children":38153},{"style":151},[38154],{"type":31,"value":8530},{"type":21,"tag":138,"props":38156,"children":38157},{"style":145},[38158],{"type":31,"value":5356},{"type":21,"tag":138,"props":38160,"children":38161},{"style":151},[38162],{"type":31,"value":8632},{"type":21,"tag":138,"props":38164,"children":38165},{"class":140,"line":167},[38166,38170,38174,38178],{"type":21,"tag":138,"props":38167,"children":38168},{"style":145},[38169],{"type":31,"value":148},{"type":21,"tag":138,"props":38171,"children":38172},{"style":151},[38173],{"type":31,"value":154},{"type":21,"tag":138,"props":38175,"children":38176},{"style":145},[38177],{"type":31,"value":159},{"type":21,"tag":138,"props":38179,"children":38180},{"style":151},[38181],{"type":31,"value":20069},{"type":21,"tag":138,"props":38183,"children":38184},{"class":140,"line":189},[38185,38189,38193,38197],{"type":21,"tag":138,"props":38186,"children":38187},{"style":145},[38188],{"type":31,"value":148},{"type":21,"tag":138,"props":38190,"children":38191},{"style":151},[38192],{"type":31,"value":177},{"type":21,"tag":138,"props":38194,"children":38195},{"style":145},[38196],{"type":31,"value":159},{"type":21,"tag":138,"props":38198,"children":38199},{"style":151},[38200],{"type":31,"value":186},{"type":21,"tag":138,"props":38202,"children":38203},{"class":140,"line":199},[38204],{"type":21,"tag":138,"props":38205,"children":38206},{"emptyLinePlaceholder":193},[38207],{"type":31,"value":196},{"type":21,"tag":138,"props":38209,"children":38210},{"class":140,"line":225},[38211],{"type":21,"tag":138,"props":38212,"children":38213},{"emptyLinePlaceholder":193},[38214],{"type":31,"value":196},{"type":21,"tag":138,"props":38216,"children":38217},{"class":140,"line":233},[38218,38222,38226],{"type":21,"tag":138,"props":38219,"children":38220},{"style":145},[38221],{"type":31,"value":5500},{"type":21,"tag":138,"props":38223,"children":38224},{"style":4522},[38225],{"type":31,"value":33727},{"type":21,"tag":138,"props":38227,"children":38228},{"style":151},[38229],{"type":31,"value":33732},{"type":21,"tag":138,"props":38231,"children":38232},{"class":140,"line":272},[38233,38237,38241,38245,38249],{"type":21,"tag":138,"props":38234,"children":38235},{"style":145},[38236],{"type":31,"value":19536},{"type":21,"tag":138,"props":38238,"children":38239},{"style":151},[38240],{"type":31,"value":33752},{"type":21,"tag":138,"props":38242,"children":38243},{"style":145},[38244],{"type":31,"value":7348},{"type":21,"tag":138,"props":38246,"children":38247},{"style":213},[38248],{"type":31,"value":33761},{"type":21,"tag":138,"props":38250,"children":38251},{"style":151},[38252],{"type":31,"value":26811},{"type":21,"tag":138,"props":38254,"children":38255},{"class":140,"line":308},[38256,38260],{"type":21,"tag":138,"props":38257,"children":38258},{"style":145},[38259],{"type":31,"value":33773},{"type":21,"tag":138,"props":38261,"children":38262},{"style":151},[38263],{"type":31,"value":33778},{"type":21,"tag":138,"props":38265,"children":38266},{"class":140,"line":16},[38267,38271,38275],{"type":21,"tag":138,"props":38268,"children":38269},{"style":151},[38270],{"type":31,"value":33786},{"type":21,"tag":138,"props":38272,"children":38273},{"style":145},[38274],{"type":31,"value":33791},{"type":21,"tag":138,"props":38276,"children":38277},{"style":213},[38278],{"type":31,"value":1542},{"type":21,"tag":138,"props":38280,"children":38281},{"class":140,"line":360},[38282],{"type":21,"tag":138,"props":38283,"children":38284},{"style":151},[38285],{"type":31,"value":33808},{"type":21,"tag":138,"props":38287,"children":38288},{"class":140,"line":368},[38289,38293,38297,38301,38305],{"type":21,"tag":138,"props":38290,"children":38291},{"style":145},[38292],{"type":31,"value":17037},{"type":21,"tag":138,"props":38294,"children":38295},{"style":151},[38296],{"type":31,"value":33820},{"type":21,"tag":138,"props":38298,"children":38299},{"style":145},[38300],{"type":31,"value":1502},{"type":21,"tag":138,"props":38302,"children":38303},{"style":213},[38304],{"type":31,"value":7430},{"type":21,"tag":138,"props":38306,"children":38307},{"style":151},[38308],{"type":31,"value":29686},{"type":21,"tag":138,"props":38310,"children":38311},{"class":140,"line":377},[38312,38316,38320,38324,38328,38332,38336],{"type":21,"tag":138,"props":38313,"children":38314},{"style":151},[38315],{"type":31,"value":33848},{"type":21,"tag":138,"props":38317,"children":38318},{"style":145},[38319],{"type":31,"value":5075},{"type":21,"tag":138,"props":38321,"children":38322},{"style":213},[38323],{"type":31,"value":21034},{"type":21,"tag":138,"props":38325,"children":38326},{"style":145},[38327],{"type":31,"value":20609},{"type":21,"tag":138,"props":38329,"children":38330},{"style":151},[38331],{"type":31,"value":33865},{"type":21,"tag":138,"props":38333,"children":38334},{"style":145},[38335],{"type":31,"value":831},{"type":21,"tag":138,"props":38337,"children":38338},{"style":151},[38339],{"type":31,"value":33874},{"type":21,"tag":138,"props":38341,"children":38342},{"class":140,"line":386},[38343],{"type":21,"tag":138,"props":38344,"children":38345},{"style":151},[38346],{"type":31,"value":38347},"    qft_rotations(circuit, n)\n",{"type":21,"tag":138,"props":38349,"children":38350},{"class":140,"line":395},[38351,38355],{"type":21,"tag":138,"props":38352,"children":38353},{"style":145},[38354],{"type":31,"value":5595},{"type":21,"tag":138,"props":38356,"children":38357},{"style":151},[38358],{"type":31,"value":33778},{"type":21,"tag":138,"props":38360,"children":38361},{"class":140,"line":413},[38362],{"type":21,"tag":138,"props":38363,"children":38364},{"emptyLinePlaceholder":193},[38365],{"type":31,"value":196},{"type":21,"tag":138,"props":38367,"children":38368},{"class":140,"line":12602},[38369],{"type":21,"tag":138,"props":38370,"children":38371},{"emptyLinePlaceholder":193},[38372],{"type":31,"value":196},{"type":21,"tag":138,"props":38374,"children":38375},{"class":140,"line":12619},[38376,38380,38384],{"type":21,"tag":138,"props":38377,"children":38378},{"style":145},[38379],{"type":31,"value":5500},{"type":21,"tag":138,"props":38381,"children":38382},{"style":4522},[38383],{"type":31,"value":34036},{"type":21,"tag":138,"props":38385,"children":38386},{"style":151},[38387],{"type":31,"value":29686},{"type":21,"tag":138,"props":38389,"children":38390},{"class":140,"line":12635},[38391,38395,38399,38403,38407,38411,38415],{"type":21,"tag":138,"props":38392,"children":38393},{"style":151},[38394],{"type":31,"value":17784},{"type":21,"tag":138,"props":38396,"children":38397},{"style":145},[38398],{"type":31,"value":210},{"type":21,"tag":138,"props":38400,"children":38401},{"style":151},[38402],{"type":31,"value":29354},{"type":21,"tag":138,"props":38404,"children":38405},{"style":929},[38406],{"type":31,"value":29359},{"type":21,"tag":138,"props":38408,"children":38409},{"style":145},[38410],{"type":31,"value":210},{"type":21,"tag":138,"props":38412,"children":38413},{"style":261},[38414],{"type":31,"value":34068},{"type":21,"tag":138,"props":38416,"children":38417},{"style":151},[38418],{"type":31,"value":269},{"type":21,"tag":138,"props":38420,"children":38421},{"class":140,"line":12643},[38422],{"type":21,"tag":138,"props":38423,"children":38424},{"style":151},[38425],{"type":31,"value":34080},{"type":21,"tag":138,"props":38427,"children":38428},{"class":140,"line":17760},[38429,38433,38437,38441,38445,38449,38453,38457,38462],{"type":21,"tag":138,"props":38430,"children":38431},{"style":145},[38432],{"type":31,"value":17037},{"type":21,"tag":138,"props":38434,"children":38435},{"style":151},[38436],{"type":31,"value":20323},{"type":21,"tag":138,"props":38438,"children":38439},{"style":145},[38440],{"type":31,"value":1502},{"type":21,"tag":138,"props":38442,"children":38443},{"style":213},[38444],{"type":31,"value":7430},{"type":21,"tag":138,"props":38446,"children":38447},{"style":151},[38448],{"type":31,"value":17054},{"type":21,"tag":138,"props":38450,"children":38451},{"style":145},[38452],{"type":31,"value":21029},{"type":21,"tag":138,"props":38454,"children":38455},{"style":213},[38456],{"type":31,"value":21034},{"type":21,"tag":138,"props":38458,"children":38459},{"style":151},[38460],{"type":31,"value":38461},"):          ",{"type":21,"tag":138,"props":38463,"children":38464},{"style":219},[38465],{"type":31,"value":38466},"# the swaps matter here, see below\n",{"type":21,"tag":138,"props":38468,"children":38469},{"class":140,"line":17778},[38470,38474,38478,38482,38486,38490],{"type":21,"tag":138,"props":38471,"children":38472},{"style":151},[38473],{"type":31,"value":35363},{"type":21,"tag":138,"props":38475,"children":38476},{"style":145},[38477],{"type":31,"value":831},{"type":21,"tag":138,"props":38479,"children":38480},{"style":151},[38481],{"type":31,"value":20323},{"type":21,"tag":138,"props":38483,"children":38484},{"style":145},[38485],{"type":31,"value":831},{"type":21,"tag":138,"props":38487,"children":38488},{"style":213},[38489],{"type":31,"value":17063},{"type":21,"tag":138,"props":38491,"children":38492},{"style":151},[38493],{"type":31,"value":269},{"type":21,"tag":138,"props":38495,"children":38496},{"class":140,"line":17803},[38497,38501],{"type":21,"tag":138,"props":38498,"children":38499},{"style":145},[38500],{"type":31,"value":5595},{"type":21,"tag":138,"props":38502,"children":38503},{"style":151},[38504],{"type":31,"value":17750},{"type":21,"tag":138,"props":38506,"children":38507},{"class":140,"line":17830},[38508],{"type":21,"tag":138,"props":38509,"children":38510},{"emptyLinePlaceholder":193},[38511],{"type":31,"value":196},{"type":21,"tag":138,"props":38513,"children":38514},{"class":140,"line":17856},[38515],{"type":21,"tag":138,"props":38516,"children":38517},{"emptyLinePlaceholder":193},[38518],{"type":31,"value":196},{"type":21,"tag":138,"props":38520,"children":38521},{"class":140,"line":17865},[38522,38526,38531],{"type":21,"tag":138,"props":38523,"children":38524},{"style":145},[38525],{"type":31,"value":5500},{"type":21,"tag":138,"props":38527,"children":38528},{"style":4522},[38529],{"type":31,"value":38530}," qpe_phase_gate",{"type":21,"tag":138,"props":38532,"children":38533},{"style":151},[38534],{"type":31,"value":38535},"(n_count, theta):\n",{"type":21,"tag":138,"props":38537,"children":38538},{"class":140,"line":17877},[38539],{"type":21,"tag":138,"props":38540,"children":38541},{"style":261},[38542],{"type":31,"value":38543},"    \"\"\"QPE for U = P(2*pi*theta), whose eigenstate is |1>.\"\"\"\n",{"type":21,"tag":138,"props":38545,"children":38546},{"class":140,"line":17885},[38547,38551,38555,38559,38563,38567],{"type":21,"tag":138,"props":38548,"children":38549},{"style":151},[38550],{"type":31,"value":17784},{"type":21,"tag":138,"props":38552,"children":38553},{"style":145},[38554],{"type":31,"value":210},{"type":21,"tag":138,"props":38556,"children":38557},{"style":151},[38558],{"type":31,"value":20490},{"type":21,"tag":138,"props":38560,"children":38561},{"style":145},[38562],{"type":31,"value":1605},{"type":21,"tag":138,"props":38564,"children":38565},{"style":213},[38566],{"type":31,"value":17063},{"type":21,"tag":138,"props":38568,"children":38569},{"style":151},[38570],{"type":31,"value":20503},{"type":21,"tag":138,"props":38572,"children":38573},{"class":140,"line":17938},[38574,38578,38582,38587],{"type":21,"tag":138,"props":38575,"children":38576},{"style":151},[38577],{"type":31,"value":29734},{"type":21,"tag":138,"props":38579,"children":38580},{"style":213},[38581],{"type":31,"value":17726},{"type":21,"tag":138,"props":38583,"children":38584},{"style":151},[38585],{"type":31,"value":38586},"(n_count))             ",{"type":21,"tag":138,"props":38588,"children":38589},{"style":219},[38590],{"type":31,"value":38591},"# counting register in superposition\n",{"type":21,"tag":138,"props":38593,"children":38594},{"class":140,"line":26899},[38595,38600],{"type":21,"tag":138,"props":38596,"children":38597},{"style":151},[38598],{"type":31,"value":38599},"    qc.x(n_count)                    ",{"type":21,"tag":138,"props":38601,"children":38602},{"style":219},[38603],{"type":31,"value":38604},"# prepare the eigenstate |1>\n",{"type":21,"tag":138,"props":38606,"children":38607},{"class":140,"line":26944},[38608],{"type":21,"tag":138,"props":38609,"children":38610},{"emptyLinePlaceholder":193},[38611],{"type":31,"value":196},{"type":21,"tag":138,"props":38613,"children":38614},{"class":140,"line":26957},[38615,38619,38623,38627,38631,38636],{"type":21,"tag":138,"props":38616,"children":38617},{"style":145},[38618],{"type":31,"value":17037},{"type":21,"tag":138,"props":38620,"children":38621},{"style":151},[38622],{"type":31,"value":35285},{"type":21,"tag":138,"props":38624,"children":38625},{"style":145},[38626],{"type":31,"value":1502},{"type":21,"tag":138,"props":38628,"children":38629},{"style":213},[38630],{"type":31,"value":7430},{"type":21,"tag":138,"props":38632,"children":38633},{"style":151},[38634],{"type":31,"value":38635},"(n_count):         ",{"type":21,"tag":138,"props":38637,"children":38638},{"style":219},[38639],{"type":31,"value":38640},"# controlled-U^(2^k) = CP(2*pi*theta*2^k)\n",{"type":21,"tag":138,"props":38642,"children":38643},{"class":140,"line":26965},[38644,38649,38653,38657,38662,38666,38671,38675,38679,38683],{"type":21,"tag":138,"props":38645,"children":38646},{"style":151},[38647],{"type":31,"value":38648},"        qc.cp(",{"type":21,"tag":138,"props":38650,"children":38651},{"style":213},[38652],{"type":31,"value":292},{"type":21,"tag":138,"props":38654,"children":38655},{"style":145},[38656],{"type":31,"value":30186},{"type":21,"tag":138,"props":38658,"children":38659},{"style":151},[38660],{"type":31,"value":38661}," np.pi ",{"type":21,"tag":138,"props":38663,"children":38664},{"style":145},[38665],{"type":31,"value":11419},{"type":21,"tag":138,"props":38667,"children":38668},{"style":151},[38669],{"type":31,"value":38670}," theta ",{"type":21,"tag":138,"props":38672,"children":38673},{"style":145},[38674],{"type":31,"value":11419},{"type":21,"tag":138,"props":38676,"children":38677},{"style":213},[38678],{"type":31,"value":21034},{"type":21,"tag":138,"props":38680,"children":38681},{"style":145},[38682],{"type":31,"value":20609},{"type":21,"tag":138,"props":38684,"children":38685},{"style":151},[38686],{"type":31,"value":38687}," k, k, n_count)\n",{"type":21,"tag":138,"props":38689,"children":38690},{"class":140,"line":26981},[38691],{"type":21,"tag":138,"props":38692,"children":38693},{"emptyLinePlaceholder":193},[38694],{"type":31,"value":196},{"type":21,"tag":138,"props":38696,"children":38697},{"class":140,"line":26999},[38698,38703,38707,38711,38715,38719,38723,38727,38731],{"type":21,"tag":138,"props":38699,"children":38700},{"style":151},[38701],{"type":31,"value":38702},"    qc.compose(qft(n_count).inverse(), ",{"type":21,"tag":138,"props":38704,"children":38705},{"style":929},[38706],{"type":31,"value":22861},{"type":21,"tag":138,"props":38708,"children":38709},{"style":145},[38710],{"type":31,"value":210},{"type":21,"tag":138,"props":38712,"children":38713},{"style":213},[38714],{"type":31,"value":17726},{"type":21,"tag":138,"props":38716,"children":38717},{"style":151},[38718],{"type":31,"value":20688},{"type":21,"tag":138,"props":38720,"children":38721},{"style":929},[38722],{"type":31,"value":30042},{"type":21,"tag":138,"props":38724,"children":38725},{"style":145},[38726],{"type":31,"value":210},{"type":21,"tag":138,"props":38728,"children":38729},{"style":213},[38730],{"type":31,"value":8677},{"type":21,"tag":138,"props":38732,"children":38733},{"style":151},[38734],{"type":31,"value":269},{"type":21,"tag":138,"props":38736,"children":38737},{"class":140,"line":27007},[38738,38742,38746,38750,38754],{"type":21,"tag":138,"props":38739,"children":38740},{"style":151},[38741],{"type":31,"value":30097},{"type":21,"tag":138,"props":38743,"children":38744},{"style":213},[38745],{"type":31,"value":17726},{"type":21,"tag":138,"props":38747,"children":38748},{"style":151},[38749],{"type":31,"value":20688},{"type":21,"tag":138,"props":38751,"children":38752},{"style":213},[38753],{"type":31,"value":17726},{"type":21,"tag":138,"props":38755,"children":38756},{"style":151},[38757],{"type":31,"value":20672},{"type":21,"tag":138,"props":38759,"children":38760},{"class":140,"line":27040},[38761,38765],{"type":21,"tag":138,"props":38762,"children":38763},{"style":145},[38764],{"type":31,"value":5595},{"type":21,"tag":138,"props":38766,"children":38767},{"style":151},[38768],{"type":31,"value":17750},{"type":21,"tag":138,"props":38770,"children":38771},{"class":140,"line":27057},[38772],{"type":21,"tag":138,"props":38773,"children":38774},{"emptyLinePlaceholder":193},[38775],{"type":31,"value":196},{"type":21,"tag":138,"props":38777,"children":38778},{"class":140,"line":27082},[38779],{"type":21,"tag":138,"props":38780,"children":38781},{"emptyLinePlaceholder":193},[38782],{"type":31,"value":196},{"type":21,"tag":138,"props":38784,"children":38785},{"class":140,"line":27123},[38786,38790,38794],{"type":21,"tag":138,"props":38787,"children":38788},{"style":151},[38789],{"type":31,"value":883},{"type":21,"tag":138,"props":38791,"children":38792},{"style":145},[38793],{"type":31,"value":210},{"type":21,"tag":138,"props":38795,"children":38796},{"style":151},[38797],{"type":31,"value":892},{"type":21,"tag":138,"props":38799,"children":38800},{"class":140,"line":27131},[38801,38805,38809,38814,38818,38822,38827,38832],{"type":21,"tag":138,"props":38802,"children":38803},{"style":151},[38804],{"type":31,"value":348},{"type":21,"tag":138,"props":38806,"children":38807},{"style":145},[38808],{"type":31,"value":210},{"type":21,"tag":138,"props":38810,"children":38811},{"style":151},[38812],{"type":31,"value":38813}," qpe_phase_gate(",{"type":21,"tag":138,"props":38815,"children":38816},{"style":213},[38817],{"type":31,"value":17931},{"type":21,"tag":138,"props":38819,"children":38820},{"style":151},[38821],{"type":31,"value":258},{"type":21,"tag":138,"props":38823,"children":38824},{"style":213},[38825],{"type":31,"value":38826},"0.625",{"type":21,"tag":138,"props":38828,"children":38829},{"style":151},[38830],{"type":31,"value":38831},")        ",{"type":21,"tag":138,"props":38833,"children":38834},{"style":219},[38835],{"type":31,"value":38836},"# theta = 0.625 = 0.1010 in binary\n",{"type":21,"tag":138,"props":38838,"children":38839},{"class":140,"line":27165},[38840,38844,38848,38852,38856,38860,38864],{"type":21,"tag":138,"props":38841,"children":38842},{"style":151},[38843],{"type":31,"value":917},{"type":21,"tag":138,"props":38845,"children":38846},{"style":145},[38847],{"type":31,"value":210},{"type":21,"tag":138,"props":38849,"children":38850},{"style":151},[38851],{"type":31,"value":30304},{"type":21,"tag":138,"props":38853,"children":38854},{"style":929},[38855],{"type":31,"value":932},{"type":21,"tag":138,"props":38857,"children":38858},{"style":145},[38859],{"type":31,"value":210},{"type":21,"tag":138,"props":38861,"children":38862},{"style":213},[38863],{"type":31,"value":941},{"type":21,"tag":138,"props":38865,"children":38866},{"style":151},[38867],{"type":31,"value":946},{"type":21,"tag":138,"props":38869,"children":38870},{"class":140,"line":27279},[38871],{"type":21,"tag":138,"props":38872,"children":38873},{"emptyLinePlaceholder":193},[38874],{"type":31,"value":196},{"type":21,"tag":138,"props":38876,"children":38877},{"class":140,"line":27287},[38878,38882,38887,38891,38896,38900,38904,38908,38912,38916,38920,38924],{"type":21,"tag":138,"props":38879,"children":38880},{"style":145},[38881],{"type":31,"value":1492},{"type":21,"tag":138,"props":38883,"children":38884},{"style":151},[38885],{"type":31,"value":38886}," bits, c ",{"type":21,"tag":138,"props":38888,"children":38889},{"style":145},[38890],{"type":31,"value":1502},{"type":21,"tag":138,"props":38892,"children":38893},{"style":213},[38894],{"type":31,"value":38895}," sorted",{"type":21,"tag":138,"props":38897,"children":38898},{"style":151},[38899],{"type":31,"value":34955},{"type":21,"tag":138,"props":38901,"children":38902},{"style":929},[38903],{"type":31,"value":4845},{"type":21,"tag":138,"props":38905,"children":38906},{"style":145},[38907],{"type":31,"value":25498},{"type":21,"tag":138,"props":38909,"children":38910},{"style":151},[38911],{"type":31,"value":34968},{"type":21,"tag":138,"props":38913,"children":38914},{"style":145},[38915],{"type":31,"value":831},{"type":21,"tag":138,"props":38917,"children":38918},{"style":151},[38919],{"type":31,"value":34977},{"type":21,"tag":138,"props":38921,"children":38922},{"style":213},[38923],{"type":31,"value":327},{"type":21,"tag":138,"props":38925,"children":38926},{"style":151},[38927],{"type":31,"value":38928},"]):\n",{"type":21,"tag":138,"props":38930,"children":38931},{"class":140,"line":27332},[38932,38937,38941,38946,38951,38955,38959,38963,38967,38971],{"type":21,"tag":138,"props":38933,"children":38934},{"style":151},[38935],{"type":31,"value":38936},"    est ",{"type":21,"tag":138,"props":38938,"children":38939},{"style":145},[38940],{"type":31,"value":210},{"type":21,"tag":138,"props":38942,"children":38943},{"style":213},[38944],{"type":31,"value":38945}," int",{"type":21,"tag":138,"props":38947,"children":38948},{"style":151},[38949],{"type":31,"value":38950},"(bits, ",{"type":21,"tag":138,"props":38952,"children":38953},{"style":213},[38954],{"type":31,"value":292},{"type":21,"tag":138,"props":38956,"children":38957},{"style":151},[38958],{"type":31,"value":1533},{"type":21,"tag":138,"props":38960,"children":38961},{"style":145},[38962],{"type":31,"value":5075},{"type":21,"tag":138,"props":38964,"children":38965},{"style":213},[38966],{"type":31,"value":21034},{"type":21,"tag":138,"props":38968,"children":38969},{"style":145},[38970],{"type":31,"value":20609},{"type":21,"tag":138,"props":38972,"children":38973},{"style":213},[38974],{"type":31,"value":20998},{"type":21,"tag":138,"props":38976,"children":38977},{"class":140,"line":27350},[38978,38982,38986,38990,38994,38998,39003,39007,39012,39017,39021,39025,39030,39034,39039,39043,39048,39052,39056,39061,39065,39070,39074,39078],{"type":21,"tag":138,"props":38979,"children":38980},{"style":213},[38981],{"type":31,"value":6225},{"type":21,"tag":138,"props":38983,"children":38984},{"style":151},[38985],{"type":31,"value":959},{"type":21,"tag":138,"props":38987,"children":38988},{"style":145},[38989],{"type":31,"value":7537},{"type":21,"tag":138,"props":38991,"children":38992},{"style":261},[38993],{"type":31,"value":15383},{"type":21,"tag":138,"props":38995,"children":38996},{"style":213},[38997],{"type":31,"value":7547},{"type":21,"tag":138,"props":38999,"children":39000},{"style":151},[39001],{"type":31,"value":39002},"bits",{"type":21,"tag":138,"props":39004,"children":39005},{"style":213},[39006],{"type":31,"value":7556},{"type":21,"tag":138,"props":39008,"children":39009},{"style":261},[39010],{"type":31,"value":39011}," -> theta = ",{"type":21,"tag":138,"props":39013,"children":39014},{"style":213},[39015],{"type":31,"value":39016},"{int",{"type":21,"tag":138,"props":39018,"children":39019},{"style":151},[39020],{"type":31,"value":38950},{"type":21,"tag":138,"props":39022,"children":39023},{"style":213},[39024],{"type":31,"value":292},{"type":21,"tag":138,"props":39026,"children":39027},{"style":151},[39028],{"type":31,"value":39029},")",{"type":21,"tag":138,"props":39031,"children":39032},{"style":213},[39033],{"type":31,"value":7556},{"type":21,"tag":138,"props":39035,"children":39036},{"style":261},[39037],{"type":31,"value":39038},"\u002F16 = ",{"type":21,"tag":138,"props":39040,"children":39041},{"style":213},[39042],{"type":31,"value":7547},{"type":21,"tag":138,"props":39044,"children":39045},{"style":151},[39046],{"type":31,"value":39047},"est",{"type":21,"tag":138,"props":39049,"children":39050},{"style":145},[39051],{"type":31,"value":25594},{"type":21,"tag":138,"props":39053,"children":39054},{"style":213},[39055],{"type":31,"value":7556},{"type":21,"tag":138,"props":39057,"children":39058},{"style":261},[39059],{"type":31,"value":39060},"   counts = ",{"type":21,"tag":138,"props":39062,"children":39063},{"style":213},[39064],{"type":31,"value":7547},{"type":21,"tag":138,"props":39066,"children":39067},{"style":151},[39068],{"type":31,"value":39069},"c",{"type":21,"tag":138,"props":39071,"children":39072},{"style":213},[39073],{"type":31,"value":7556},{"type":21,"tag":138,"props":39075,"children":39076},{"style":261},[39077],{"type":31,"value":15383},{"type":21,"tag":138,"props":39079,"children":39080},{"style":151},[39081],{"type":31,"value":269},{"type":21,"tag":22,"props":39083,"children":39084},{},[39085],{"type":31,"value":34185},{"type":21,"tag":128,"props":39087,"children":39089},{"code":39088},"1010 -> theta = 10\u002F16 = 0.6250   counts = 4096\n",[39090],{"type":21,"tag":103,"props":39091,"children":39092},{"__ignoreMap":7},[39093],{"type":31,"value":39088},{"type":21,"tag":22,"props":39095,"children":39096},{},[39097,39102],{"type":21,"tag":16815,"props":39098,"children":39099},{},[39100],{"type":31,"value":39101},"4096 out of 4096 shots.",{"type":31,"value":39103}," θ = 0.625 is exactly representable in 4 bits (0.1010₂ = 1\u002F2 + 1\u002F8), so QPE returns it with certainty. Three counting qubits and θ = 0.125 behaves the same way:",{"type":21,"tag":128,"props":39105,"children":39107},{"code":39106},"[('001', 4096)]\n",[39108],{"type":21,"tag":103,"props":39109,"children":39110},{"__ignoreMap":7},[39111],{"type":31,"value":39106},{"type":21,"tag":22,"props":39113,"children":39114},{},[39115],{"type":31,"value":39116},"001 = 1, and 1\u002F8 = 0.125. Exact again.",{"type":21,"tag":421,"props":39118,"children":39120},{"id":39119},"the-endianness-trap",[39121],{"type":31,"value":39122},"The endianness trap",{"type":21,"tag":22,"props":39124,"children":39125},{},[39126,39132,39134,39139,39141,39145,39147,39153],{"type":21,"tag":103,"props":39127,"children":39129},{"className":39128},[],[39130],{"type":31,"value":39131},"int(bits, 2) \u002F 2**n",{"type":31,"value":39133}," worked above, and it is worth understanding ",{"type":21,"tag":12769,"props":39135,"children":39136},{},[39137],{"type":31,"value":39138},"why",{"type":31,"value":39140}," rather than copying it. Qiskit prints bitstrings with classical bit 0 on the ",{"type":21,"tag":16815,"props":39142,"children":39143},{},[39144],{"type":31,"value":29633},{"type":31,"value":39146},", and our counting qubit 0 (the one that got the smallest rotation, ",{"type":21,"tag":103,"props":39148,"children":39150},{"className":39149},[],[39151],{"type":31,"value":39152},"U^1",{"type":31,"value":39154},") is the least significant bit of j. The QFT's final swap network is what lines those two conventions up.",{"type":21,"tag":22,"props":39156,"children":39157},{},[39158,39160,39166],{"type":31,"value":39159},"Drop the swaps from ",{"type":21,"tag":103,"props":39161,"children":39163},{"className":39162},[],[39164],{"type":31,"value":39165},"qft()",{"type":31,"value":39167}," (a tempting \"optimization\", since they look cosmetic) and rerun the exact θ = 0.625 case. Real output over 2048 shots:",{"type":21,"tag":128,"props":39169,"children":39171},{"code":39170},"{'1101': 1007, '0101': 470, '0001': 251, '0100': 80, '1100': 77,\n '0010': 66, '1110': 64, '0110': 16, '1010': 9, '1001': 8}\n",[39172],{"type":21,"tag":103,"props":39173,"children":39174},{"__ignoreMap":7},[39175],{"type":31,"value":39170},{"type":21,"tag":22,"props":39177,"children":39178},{},[39179,39181,39186,39188,39193],{"type":31,"value":39180},"The correct response ",{"type":21,"tag":103,"props":39182,"children":39184},{"className":39183},[],[39185],{"type":31,"value":14234},{"type":31,"value":39187}," now gets ",{"type":21,"tag":16815,"props":39189,"children":39190},{},[39191],{"type":31,"value":39192},"9 shots out of 2048",{"type":31,"value":39194},". The distribution smeared across the register with its largest peak at 1101, a confidently wrong 0.8125. Nothing errors. Nothing warns. You publish the wrong number, and with a θ you didn't already know you would have no way to tell. This is the same silent-failure class as the endianness bug in the Grover oracle, and it's why the QFT post insisted on keeping the swaps in a reusable block.",{"type":21,"tag":22,"props":39196,"children":39197},{},[39198],{"type":31,"value":39199},"Always sanity-check a QPE implementation against a θ you already know before pointing it at one you don't.",{"type":21,"tag":41,"props":39201,"children":39203},{"id":39202},"when-θ-doesnt-fit-in-n-bits",[39204],{"type":31,"value":39205},"When θ doesn't fit in n bits",{"type":21,"tag":22,"props":39207,"children":39208},{},[39209],{"type":31,"value":39210},"Real eigenphases are not tidy binary fractions. Try θ = 0.3, which has an infinite binary expansion, with 4 counting qubits:",{"type":21,"tag":128,"props":39212,"children":39214},{"code":39213,"language":132,"meta":7,"className":130,"style":7},"qc = qpe_phase_gate(4, 0.3)\ncounts = sim.run(transpile(qc, sim), shots=4096).result().get_counts()\nfor bits, c in sorted(counts.items(), key=lambda kv: -kv[1])[:6]:\n    print(f\"{bits}  theta_est = {int(bits, 2) \u002F 2**4:.4f}   p = {c \u002F 4096:.4f}\")\n",[39215],{"type":21,"tag":103,"props":39216,"children":39217},{"__ignoreMap":7},[39218,39249,39280,39340],{"type":21,"tag":138,"props":39219,"children":39220},{"class":140,"line":141},[39221,39225,39229,39233,39237,39241,39245],{"type":21,"tag":138,"props":39222,"children":39223},{"style":151},[39224],{"type":31,"value":348},{"type":21,"tag":138,"props":39226,"children":39227},{"style":145},[39228],{"type":31,"value":210},{"type":21,"tag":138,"props":39230,"children":39231},{"style":151},[39232],{"type":31,"value":38813},{"type":21,"tag":138,"props":39234,"children":39235},{"style":213},[39236],{"type":31,"value":17931},{"type":21,"tag":138,"props":39238,"children":39239},{"style":151},[39240],{"type":31,"value":258},{"type":21,"tag":138,"props":39242,"children":39243},{"style":213},[39244],{"type":31,"value":36515},{"type":21,"tag":138,"props":39246,"children":39247},{"style":151},[39248],{"type":31,"value":269},{"type":21,"tag":138,"props":39250,"children":39251},{"class":140,"line":167},[39252,39256,39260,39264,39268,39272,39276],{"type":21,"tag":138,"props":39253,"children":39254},{"style":151},[39255],{"type":31,"value":917},{"type":21,"tag":138,"props":39257,"children":39258},{"style":145},[39259],{"type":31,"value":210},{"type":21,"tag":138,"props":39261,"children":39262},{"style":151},[39263],{"type":31,"value":30304},{"type":21,"tag":138,"props":39265,"children":39266},{"style":929},[39267],{"type":31,"value":932},{"type":21,"tag":138,"props":39269,"children":39270},{"style":145},[39271],{"type":31,"value":210},{"type":21,"tag":138,"props":39273,"children":39274},{"style":213},[39275],{"type":31,"value":941},{"type":21,"tag":138,"props":39277,"children":39278},{"style":151},[39279],{"type":31,"value":946},{"type":21,"tag":138,"props":39281,"children":39282},{"class":140,"line":189},[39283,39287,39291,39295,39299,39303,39307,39311,39315,39319,39323,39327,39332,39336],{"type":21,"tag":138,"props":39284,"children":39285},{"style":145},[39286],{"type":31,"value":1492},{"type":21,"tag":138,"props":39288,"children":39289},{"style":151},[39290],{"type":31,"value":38886},{"type":21,"tag":138,"props":39292,"children":39293},{"style":145},[39294],{"type":31,"value":1502},{"type":21,"tag":138,"props":39296,"children":39297},{"style":213},[39298],{"type":31,"value":38895},{"type":21,"tag":138,"props":39300,"children":39301},{"style":151},[39302],{"type":31,"value":34955},{"type":21,"tag":138,"props":39304,"children":39305},{"style":929},[39306],{"type":31,"value":4845},{"type":21,"tag":138,"props":39308,"children":39309},{"style":145},[39310],{"type":31,"value":25498},{"type":21,"tag":138,"props":39312,"children":39313},{"style":151},[39314],{"type":31,"value":34968},{"type":21,"tag":138,"props":39316,"children":39317},{"style":145},[39318],{"type":31,"value":831},{"type":21,"tag":138,"props":39320,"children":39321},{"style":151},[39322],{"type":31,"value":34977},{"type":21,"tag":138,"props":39324,"children":39325},{"style":213},[39326],{"type":31,"value":327},{"type":21,"tag":138,"props":39328,"children":39329},{"style":151},[39330],{"type":31,"value":39331},"])[:",{"type":21,"tag":138,"props":39333,"children":39334},{"style":213},[39335],{"type":31,"value":11433},{"type":21,"tag":138,"props":39337,"children":39338},{"style":151},[39339],{"type":31,"value":20882},{"type":21,"tag":138,"props":39341,"children":39342},{"class":140,"line":199},[39343,39347,39351,39355,39359,39363,39367,39371,39376,39380,39384,39388,39392,39396,39400,39404,39408,39412,39416,39420,39424,39429,39433,39438,39442,39446,39450],{"type":21,"tag":138,"props":39344,"children":39345},{"style":213},[39346],{"type":31,"value":6225},{"type":21,"tag":138,"props":39348,"children":39349},{"style":151},[39350],{"type":31,"value":959},{"type":21,"tag":138,"props":39352,"children":39353},{"style":145},[39354],{"type":31,"value":7537},{"type":21,"tag":138,"props":39356,"children":39357},{"style":261},[39358],{"type":31,"value":15383},{"type":21,"tag":138,"props":39360,"children":39361},{"style":213},[39362],{"type":31,"value":7547},{"type":21,"tag":138,"props":39364,"children":39365},{"style":151},[39366],{"type":31,"value":39002},{"type":21,"tag":138,"props":39368,"children":39369},{"style":213},[39370],{"type":31,"value":7556},{"type":21,"tag":138,"props":39372,"children":39373},{"style":261},[39374],{"type":31,"value":39375},"  theta_est = ",{"type":21,"tag":138,"props":39377,"children":39378},{"style":213},[39379],{"type":31,"value":39016},{"type":21,"tag":138,"props":39381,"children":39382},{"style":151},[39383],{"type":31,"value":38950},{"type":21,"tag":138,"props":39385,"children":39386},{"style":213},[39387],{"type":31,"value":292},{"type":21,"tag":138,"props":39389,"children":39390},{"style":151},[39391],{"type":31,"value":1533},{"type":21,"tag":138,"props":39393,"children":39394},{"style":145},[39395],{"type":31,"value":5075},{"type":21,"tag":138,"props":39397,"children":39398},{"style":213},[39399],{"type":31,"value":21034},{"type":21,"tag":138,"props":39401,"children":39402},{"style":145},[39403],{"type":31,"value":4814},{"type":21,"tag":138,"props":39405,"children":39406},{"style":213},[39407],{"type":31,"value":17931},{"type":21,"tag":138,"props":39409,"children":39410},{"style":145},[39411],{"type":31,"value":25594},{"type":21,"tag":138,"props":39413,"children":39414},{"style":213},[39415],{"type":31,"value":7556},{"type":21,"tag":138,"props":39417,"children":39418},{"style":261},[39419],{"type":31,"value":34759},{"type":21,"tag":138,"props":39421,"children":39422},{"style":213},[39423],{"type":31,"value":7547},{"type":21,"tag":138,"props":39425,"children":39426},{"style":151},[39427],{"type":31,"value":39428},"c ",{"type":21,"tag":138,"props":39430,"children":39431},{"style":145},[39432],{"type":31,"value":5075},{"type":21,"tag":138,"props":39434,"children":39435},{"style":213},[39436],{"type":31,"value":39437}," 4096",{"type":21,"tag":138,"props":39439,"children":39440},{"style":145},[39441],{"type":31,"value":25594},{"type":21,"tag":138,"props":39443,"children":39444},{"style":213},[39445],{"type":31,"value":7556},{"type":21,"tag":138,"props":39447,"children":39448},{"style":261},[39449],{"type":31,"value":15383},{"type":21,"tag":138,"props":39451,"children":39452},{"style":151},[39453],{"type":31,"value":269},{"type":21,"tag":22,"props":39455,"children":39456},{},[39457],{"type":31,"value":34185},{"type":21,"tag":128,"props":39459,"children":39461},{"code":39460},"0101  theta_est = 0.3125   p = 0.8823\n0100  theta_est = 0.2500   p = 0.0542\n0110  theta_est = 0.3750   p = 0.0220\n0011  theta_est = 0.1875   p = 0.0093\n0111  theta_est = 0.4375   p = 0.0063\n0010  theta_est = 0.1250   p = 0.0049\n",[39462],{"type":21,"tag":103,"props":39463,"children":39464},{"__ignoreMap":7},[39465],{"type":31,"value":39460},{"type":21,"tag":22,"props":39467,"children":39468},{},[39469,39471,39476],{"type":31,"value":39470},"The distribution is peaked, not delta-shaped. 88% of shots land on 5\u002F16 = 0.3125, the closest 4-bit value to 0.3. The rest spread out, decaying fast as you move away from the peak. This is the generic behaviour: ",{"type":21,"tag":16815,"props":39472,"children":39473},{},[39474],{"type":31,"value":39475},"you get the nearest n-bit value with high probability, not certainty.",{"type":31,"value":39477}," The standard guarantee is that the best n-bit estimate appears with probability at least 4\u002Fπ² ≈ 40.5%. Here we're comfortably above that.",{"type":21,"tag":22,"props":39479,"children":39480},{},[39481,39483,39487],{"type":31,"value":39482},"Two things improve together when you add counting qubits: finer resolution ",{"type":21,"tag":12769,"props":39484,"children":39485},{},[39486],{"type":31,"value":18749},{"type":31,"value":39488}," a tighter peak. Same θ = 0.3 with 8 counting qubits:",{"type":21,"tag":128,"props":39490,"children":39492},{"code":39491},"01001101  theta_est = 0.30078   p = 0.8718\n01001100  theta_est = 0.29688   p = 0.0596\n01001110  theta_est = 0.30469   p = 0.0276\n01001111  theta_est = 0.30859   p = 0.0076\n01001011  theta_est = 0.29297   p = 0.0073\n",[39493],{"type":21,"tag":103,"props":39494,"children":39495},{"__ignoreMap":7},[39496],{"type":31,"value":39491},{"type":21,"tag":22,"props":39498,"children":39499},{},[39500,39502,39507],{"type":31,"value":39501},"Resolution went from ±0.031 to ±0.002, and the peak stayed at 87%. In general, to get n bits of precision with success probability 1 − ε you use n + O(log(1\u002Fε)) counting qubits. A handful of extra ",{"type":21,"tag":26,"props":39503,"children":39504},{"href":30803},[39505],{"type":31,"value":39506},"ancillas",{"type":31,"value":39508}," buys you a lot of confidence.",{"type":21,"tag":22,"props":39510,"children":39511},{},[39512,39514,39519],{"type":31,"value":39513},"The cost is the part people underestimate. Counting qubit k needs U applied 2^k times. Total controlled-U applications across the register: 2ⁿ − 1. Every bit of precision ",{"type":21,"tag":16815,"props":39515,"children":39516},{},[39517],{"type":31,"value":39518},"doubles",{"type":31,"value":39520}," the circuit depth. That's fine when U^(2^k) has an efficient closed form. For a phase gate it's only one gate with a bigger angle, which is why the demo above is cheap. For modular exponentiation in Shor's it's a genuine arithmetic circuit repeated exponentially many times, and the depth is brutal.",{"type":21,"tag":41,"props":39522,"children":39524},{"id":39523},"where-qpe-gets-used",[39525],{"type":31,"value":39526},"Where QPE gets used",{"type":21,"tag":22,"props":39528,"children":39529},{},[39530,39535,39537,39541,39543,39548],{"type":21,"tag":16815,"props":39531,"children":39532},{},[39533],{"type":31,"value":39534},"Shor's algorithm.",{"type":31,"value":39536}," Take U|y⟩ = |ay mod N⟩. Its eigenphases are s\u002Fr for integer s, where r is the multiplicative order of a mod N. Run QPE, measure s\u002Fr as a binary fraction, recover r by continued fractions, and factor N with a GCD. That's the whole quantum part. Everything else in ",{"type":21,"tag":26,"props":39538,"children":39539},{"href":20002},[39540],{"type":31,"value":31461},{"type":31,"value":39542}," is number theory. Order finding is QPE. QPE is controlled powers plus an inverse QFT. The chain from the QFT post now closes. (The algorithm was recently ",{"type":21,"tag":26,"props":39544,"children":39545},{"href":31472},[39546],{"type":31,"value":39547},"machine-verified in Lean",{"type":31,"value":39549},", if you want the formal treatment.)",{"type":21,"tag":22,"props":39551,"children":39552},{},[39553,39558,39560,39565],{"type":21,"tag":16815,"props":39554,"children":39555},{},[39556],{"type":31,"value":39557},"Quantum chemistry.",{"type":31,"value":39559}," Set U = e^{-iHt}. QPE returns the ground-state energy to whatever precision you're willing to pay depth for, and crucially, it returns it with a ",{"type":21,"tag":12769,"props":39561,"children":39562},{},[39563],{"type":31,"value":39564},"provable",{"type":31,"value":39566}," error bound rather than a variational estimate. This is the long-term goal of quantum simulation, and it's the application most likely to matter commercially before cryptanalysis does.",{"type":21,"tag":22,"props":39568,"children":39569},{},[39570,39575,39576,39580,39582,39586,39588,39593],{"type":21,"tag":16815,"props":39571,"children":39572},{},[39573],{"type":31,"value":39574},"Contrast with VQE.",{"type":31,"value":22965},{"type":21,"tag":26,"props":39577,"children":39578},{"href":16280},[39579],{"type":31,"value":3626},{"type":31,"value":39581}," attacks the identical chemistry problem from the opposite direction. Instead of one deep coherent circuit, it uses a shallow ",{"type":21,"tag":26,"props":39583,"children":39584},{"href":35619},[39585],{"type":31,"value":35622},{"type":31,"value":39587}," plus a classical optimizer, as introduced in ",{"type":21,"tag":26,"props":39589,"children":39590},{"href":22010},[39591],{"type":31,"value":39592},"Peruzzo et al. 2014",{"type":31,"value":39594},". The trade is explicit:",{"type":21,"tag":3162,"props":39596,"children":39597},{},[39598,39616],{"type":21,"tag":3166,"props":39599,"children":39600},{},[39601],{"type":21,"tag":3170,"props":39602,"children":39603},{},[39604,39607,39612],{"type":21,"tag":3174,"props":39605,"children":39606},{},[],{"type":21,"tag":3174,"props":39608,"children":39609},{},[39610],{"type":31,"value":39611},"QPE",{"type":21,"tag":3174,"props":39613,"children":39614},{},[39615],{"type":31,"value":3626},{"type":21,"tag":3188,"props":39617,"children":39618},{},[39619,39637,39655,39673],{"type":21,"tag":3170,"props":39620,"children":39621},{},[39622,39627,39632],{"type":21,"tag":3195,"props":39623,"children":39624},{},[39625],{"type":31,"value":39626},"Circuit depth",{"type":21,"tag":3195,"props":39628,"children":39629},{},[39630],{"type":31,"value":39631},"Deep, grows as 2ⁿ in precision bits",{"type":21,"tag":3195,"props":39633,"children":39634},{},[39635],{"type":31,"value":39636},"Shallow, fixed ansatz",{"type":21,"tag":3170,"props":39638,"children":39639},{},[39640,39645,39650],{"type":21,"tag":3195,"props":39641,"children":39642},{},[39643],{"type":31,"value":39644},"Precision",{"type":21,"tag":3195,"props":39646,"children":39647},{},[39648],{"type":31,"value":39649},"Provable, arbitrary",{"type":21,"tag":3195,"props":39651,"children":39652},{},[39653],{"type":31,"value":39654},"Heuristic, ansatz-limited",{"type":21,"tag":3170,"props":39656,"children":39657},{},[39658,39663,39668],{"type":21,"tag":3195,"props":39659,"children":39660},{},[39661],{"type":31,"value":39662},"Measurements",{"type":21,"tag":3195,"props":39664,"children":39665},{},[39666],{"type":31,"value":39667},"Few shots",{"type":21,"tag":3195,"props":39669,"children":39670},{},[39671],{"type":31,"value":39672},"Many thousands per iteration",{"type":21,"tag":3170,"props":39674,"children":39675},{},[39676,39681,39686],{"type":21,"tag":3195,"props":39677,"children":39678},{},[39679],{"type":31,"value":39680},"Hardware era",{"type":21,"tag":3195,"props":39682,"children":39683},{},[39684],{"type":31,"value":39685},"Fault-tolerant",{"type":21,"tag":3195,"props":39687,"children":39688},{},[39689],{"type":21,"tag":26,"props":39690,"children":39691},{"href":22052},[39692],{"type":31,"value":23995},{"type":21,"tag":22,"props":39694,"children":39695},{},[39696,39698,39703,39705,39709,39711,39715],{"type":31,"value":39697},"VQE runs today and gives you an answer you can't fully trust. QPE gives you an answer you trust and can't run today. Our ",{"type":21,"tag":26,"props":39699,"children":39700},{"href":3623},[39701],{"type":31,"value":39702},"VQE walkthrough in PennyLane",{"type":31,"value":39704}," covers the near-term side. ",{"type":21,"tag":26,"props":39706,"children":39707},{"href":17332},[39708],{"type":31,"value":4487},{"type":31,"value":39710}," is generally the better fit for variational work while ",{"type":21,"tag":26,"props":39712,"children":39713},{"href":1126},[39714],{"type":31,"value":14},{"type":31,"value":39716}," suits structured circuits like this one.",{"type":21,"tag":41,"props":39718,"children":39720},{"id":39719},"the-honest-caveat",[39721],{"type":31,"value":39722},"The honest caveat",{"type":21,"tag":22,"props":39724,"children":39725},{},[39726,39728,39732],{"type":31,"value":39727},"QPE is not a NISQ algorithm and no amount of clever ",{"type":21,"tag":26,"props":39729,"children":39730},{"href":10347},[39731],{"type":31,"value":10350},{"type":31,"value":39733}," will make it one.",{"type":21,"tag":22,"props":39735,"children":39736},{},[39737,39739,39743],{"type":31,"value":39738},"The circuit must stay coherent through 2ⁿ − 1 controlled-U applications, each of which decomposes into several native two-qubit gates. With two-qubit error around 0.5% on current hardware, a few hundred entangling gates leaves you with noise. ",{"type":21,"tag":26,"props":39740,"children":39741},{"href":4156},[39742],{"type":31,"value":37583},{"type":31,"value":39744}," sets a hard wall long before you reach chemically useful precision. Published hardware demonstrations of QPE are toy instances with 2-4 counting qubits, real, but not computations anyone needed done.",{"type":21,"tag":22,"props":39746,"children":39747},{},[39748,39750,39754,39756,39761,39763,39767,39769,39773,39775,39779,39781,39786],{"type":31,"value":39749},"QPE becomes practical when circuits run on ",{"type":21,"tag":26,"props":39751,"children":39752},{"href":15870},[39753],{"type":31,"value":16514},{"type":31,"value":39755}," rather than physical ones. Google's ",{"type":21,"tag":26,"props":39757,"children":39758},{"href":25691},[39759],{"type":31,"value":39760},"below-threshold result",{"type":31,"value":39762}," is the first real evidence that path is open, and our ",{"type":21,"tag":26,"props":39764,"children":39765},{"href":4095},[39766],{"type":31,"value":23157},{"type":31,"value":39768}," covers what still has to happen. Until then: develop QPE on ",{"type":21,"tag":26,"props":39770,"children":39771},{"href":3304},[39772],{"type":31,"value":30608},{"type":31,"value":39774},", where you verify it exactly, and reach for VQE or ",{"type":21,"tag":26,"props":39776,"children":39777},{"href":19060},[39778],{"type":31,"value":31100},{"type":31,"value":39780}," if you need results from ",{"type":21,"tag":26,"props":39782,"children":39783},{"href":1106},[39784],{"type":31,"value":39785},"today's hardware",{"type":31,"value":6678},{"type":21,"tag":22,"props":39788,"children":39789},{},[39790],{"type":31,"value":39791},"That's not a reason to skip learning it. QPE is the template for what a fault-tolerant algorithm looks like (deep, exact, and structured) and it's the piece that makes the QFT worth building.",{"type":21,"tag":41,"props":39793,"children":39795},{"id":39794},"following-steps",[39796],{"type":31,"value":39797},"Following steps",{"type":21,"tag":1118,"props":39799,"children":39800},{},[39801,39813,39826,39848],{"type":21,"tag":71,"props":39802,"children":39803},{},[39804,39811],{"type":21,"tag":16815,"props":39805,"children":39806},{},[39807],{"type":21,"tag":26,"props":39808,"children":39809},{"href":19079},[39810],{"type":31,"value":30662},{"type":31,"value":39812},": build the same QPE circuit in Cirq or Braket",{"type":21,"tag":71,"props":39814,"children":39815},{},[39816,39824],{"type":21,"tag":16815,"props":39817,"children":39818},{},[39819],{"type":21,"tag":26,"props":39820,"children":39821},{"href":18702},[39822],{"type":31,"value":39823},"Courses",{"type":31,"value":39825},": structured paths through the algorithm canon",{"type":21,"tag":71,"props":39827,"children":39828},{},[39829,39836,39837,39841,39842,39847],{"type":21,"tag":16815,"props":39830,"children":39831},{},[39832],{"type":21,"tag":26,"props":39833,"children":39834},{"href":1148},[39835],{"type":31,"value":30682},{"type":31,"value":24135},{"type":21,"tag":26,"props":39838,"children":39839},{"href":16043},[39840],{"type":31,"value":16046},{"type":31,"value":258},{"type":21,"tag":26,"props":39843,"children":39844},{"href":30803},[39845],{"type":31,"value":39846},"ancilla qubit",{"type":31,"value":30695},{"type":21,"tag":71,"props":39849,"children":39850},{},[39851],{"type":31,"value":39852},"Extend the code above to a 2-qubit U with two eigenstates, feed in a superposition of both, and watch the counting register entangle with the eigenstate register. That's the mechanism behind order finding.",{"type":21,"tag":1174,"props":39854,"children":39855},{},[39856],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":39858},[39859,39860,39861,39862,39865,39866,39867,39868],{"id":37838,"depth":167,"text":37841},{"id":37929,"depth":167,"text":37932},{"id":38034,"depth":167,"text":38037},{"id":33570,"depth":167,"text":33573,"children":39863},[39864],{"id":39119,"depth":189,"text":39122},{"id":39202,"depth":167,"text":39205},{"id":39523,"depth":167,"text":39526},{"id":39719,"depth":167,"text":39722},{"id":39794,"depth":167,"text":39797},"content:blog:quantum-phase-estimation-tutorial.md","blog\u002Fquantum-phase-estimation-tutorial.md","blog\u002Fquantum-phase-estimation-tutorial",{"_path":39873,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":39874,"description":39875,"date":39876,"author":11,"tags":39877,"readingTime":16,"body":39879,"_type":1193,"_id":40895,"_source":1195,"_file":40896,"_stem":40897,"_extension":1198},"\u002Fzh\u002Fblog\u002Fquantum-computing-new-vocabulary","量子计算的新词汇：16 个即将走向主流的术语","正如 AI 给我们带来了 'tokens'、'hallucinations' 和 'fine-tuning'，量子计算也正在构建自己的词汇体系。以下是开发者和企业在未来几年内将会使用的术语。","2026-03-15",[3054,3409,39878],"Terminology",{"type":18,"children":39880,"toc":40876},[39881,39917,39922,39927,39931,39937,39945,39950,39976,39981,39984,39990,39998,40017,40022,40030,40035,40038,40044,40052,40064,40075,40087,40090,40096,40104,40115,40127,40130,40136,40144,40156,40244,40249,40252,40258,40266,40292,40304,40312,40317,40320,40326,40334,40346,40351,40354,40360,40368,40377,40382,40385,40391,40399,40423,40434,40439,40444,40447,40453,40461,40473,40485,40497,40500,40506,40514,40526,40531,40534,40540,40548,40567,40572,40575,40581,40589,40598,40603,40606,40612,40620,40639,40644,40647,40653,40661,40666,40676,40692,40697,40700,40706,40714,40726,40749,40762,40765,40770,40775,40848,40853,40858,40872],{"type":21,"tag":22,"props":39882,"children":39883},{},[39884,39886,39891,39892,39897,39898,39903,39904,39909,39910,39915],{"type":31,"value":39885},"当深度学习在 2022–2023 年前后进入主流时，它把一整套全新的词汇拖入了日常对话。突然之间，每个人都在谈论 ",{"type":21,"tag":12769,"props":39887,"children":39888},{},[39889],{"type":31,"value":39890},"tokens",{"type":31,"value":1161},{"type":21,"tag":12769,"props":39893,"children":39894},{},[39895],{"type":31,"value":39896},"hallucinations",{"type":31,"value":1161},{"type":21,"tag":12769,"props":39899,"children":39900},{},[39901],{"type":31,"value":39902},"context windows",{"type":31,"value":1161},{"type":21,"tag":12769,"props":39905,"children":39906},{},[39907],{"type":31,"value":39908},"fine-tuning",{"type":31,"value":500},{"type":21,"tag":12769,"props":39911,"children":39912},{},[39913],{"type":31,"value":39914},"prompt engineering",{"type":31,"value":39916},"——这些术语在十年前几乎不存在于普通开发者的词汇表中。新一代\"AI 工程师\"应运而生，GPU 时间成了珍贵的商品，\"推理成本\"也成了工程预算中的一个条目。",{"type":21,"tag":22,"props":39918,"children":39919},{},[39920],{"type":31,"value":39921},"量子计算正走在一条相似的轨迹上。它处于曲线的更早期，但拐点正在到来——伴随而来的是一套新术语，它们将从研究论文走进职位描述、创业路演和 Stack Overflow 问答之中。其中一些术语已经存在于量子社区里。大多数在圈外还鲜为人知。而所有这些术语都值得现在就学习，趁其他人还没开始。",{"type":21,"tag":22,"props":39923,"children":39924},{},[39925],{"type":31,"value":39926},"以下是量子计算世界中 16 个有望走向主流的术语。",{"type":21,"tag":39928,"props":39929,"children":39930},"hr",{},[],{"type":21,"tag":41,"props":39932,"children":39934},{"id":39933},"_1-qpuquantum-processing-unit量子处理单元",[39935],{"type":31,"value":39936},"1. QPU（Quantum Processing Unit，量子处理单元）",{"type":21,"tag":22,"props":39938,"children":39939},{},[39940],{"type":21,"tag":16815,"props":39941,"children":39942},{},[39943],{"type":31,"value":39944},"AI 对应概念：GPU",{"type":21,"tag":22,"props":39946,"children":39947},{},[39948],{"type":31,"value":39949},"\"你有 GPU 权限吗？\"成了 ML 团队中的一个标准问题。\"你有 QPU 权限吗？\"将会成为它在量子领域的对应版本。",{"type":21,"tag":22,"props":39951,"children":39952},{},[39953,39955,39960,39962,39967,39969,39974],{"type":31,"value":39954},"QPU 是执行量子电路的硬件芯片。IBM 把他们的系统称为",{"type":21,"tag":12769,"props":39956,"children":39957},{},[39958],{"type":31,"value":39959},"量子计算机",{"type":31,"value":39961},"，NVIDIA 拥有用于 GPU 加速仿真的 ",{"type":21,"tag":16815,"props":39963,"children":39964},{},[39965],{"type":31,"value":39966},"CUDA-Q",{"type":31,"value":39968},"，而 IonQ 的离子阱系统则是当今可用的保真度最高的 QPU。正如\"GPU 时间\"成了工程师争抢的资源一样，",{"type":21,"tag":16815,"props":39970,"children":39971},{},[39972],{"type":31,"value":39973},"QPU 时间",{"type":31,"value":39975},"——即量子硬件上的实际执行周期——将会成为一种高价、可调度的资源。",{"type":21,"tag":22,"props":39977,"children":39978},{},[39979],{"type":31,"value":39980},"这个术语已经出现在云服务的定价页面上（AWS Braket、Azure Quantum）。五年之内，它将出现在职位描述里。",{"type":21,"tag":39928,"props":39982,"children":39983},{},[],{"type":21,"tag":41,"props":39985,"children":39987},{"id":39986},"_2-shot-budget发射次数预算",[39988],{"type":31,"value":39989},"2. Shot Budget（发射次数预算）",{"type":21,"tag":22,"props":39991,"children":39992},{},[39993],{"type":21,"tag":16815,"props":39994,"children":39995},{},[39996],{"type":31,"value":39997},"AI 对应概念：Token budget \u002F context window",{"type":21,"tag":22,"props":39999,"children":40000},{},[40001,40003,40008,40010,40015],{"type":31,"value":40002},"当你运行一个量子电路时，你得到的不是单一答案——而是通过多次运行电路采样得到的一个",{"type":21,"tag":12769,"props":40004,"children":40005},{},[40006],{"type":31,"value":40007},"概率分布",{"type":31,"value":40009},"。每一次运行称为一个 ",{"type":21,"tag":16815,"props":40011,"children":40012},{},[40013],{"type":31,"value":40014},"shot",{"type":31,"value":40016},"。运行 1,000 次的电路比运行 100 次的同一电路消耗更多的 QPU 时间。",{"type":21,"tag":22,"props":40018,"children":40019},{},[40020],{"type":31,"value":40021},"\"shot budget\"——即你能负担得起的执行次数——将随着 QPU 访问规模的扩大而成为一个实实在在的优化问题。正如开发者学会精简 prompt 以控制在 token 限制之内一样，量子开发者也将学会设计电路，以最少的 shot budget 提取出最大的信号。",{"type":21,"tag":23932,"props":40023,"children":40024},{},[40025],{"type":21,"tag":22,"props":40026,"children":40027},{},[40028],{"type":31,"value":40029},"\"我们让 VQE 在 200 次 shot 内就收敛了，而不是 2,000 次——这把我们的 QPU 成本削减了 90%。\"",{"type":21,"tag":22,"props":40031,"children":40032},{},[40033],{"type":31,"value":40034},"这在诸如 VQE 和 QAOA 这样的变分算法中已经是一个真实存在的问题，因为 shot 噪声会直接影响结果质量。",{"type":21,"tag":39928,"props":40036,"children":40037},{},[],{"type":21,"tag":41,"props":40039,"children":40041},{"id":40040},"_3-quantum-advantage量子优势",[40042],{"type":31,"value":40043},"3. Quantum Advantage（量子优势）",{"type":21,"tag":22,"props":40045,"children":40046},{},[40047],{"type":21,"tag":16815,"props":40048,"children":40049},{},[40050],{"type":31,"value":40051},"AI 对应概念：10 倍加速、\"超越人类\"",{"type":21,"tag":22,"props":40053,"children":40054},{},[40055,40057,40062],{"type":31,"value":40056},"\"quantum advantage\"（量子优势）指的是量子计算机在某个具体的、真实世界的问题上，比任何经典计算机都",{"type":21,"tag":12769,"props":40058,"children":40059},{},[40060],{"type":31,"value":40061},"更快或更好",{"type":31,"value":40063},"地求解的那一刻。它相当于 AI 基准测试中的\"超越人类的表现\"在量子领域的对应版本。",{"type":21,"tag":22,"props":40065,"children":40066},{},[40067,40069,40073],{"type":31,"value":40068},"IBM 在 2023 年引入了相关术语 ",{"type":21,"tag":16815,"props":40070,"children":40071},{},[40072],{"type":31,"value":23118},{"type":31,"value":40074},"（量子实用性），用来描述那些复杂到无法经典仿真、但又切实有用的电路——这是通向完整量子优势的一个更加务实的先导概念。随着硬件成熟，可以预期这两个术语都会出现在新闻稿、融资公告和监管讨论中。",{"type":21,"tag":22,"props":40076,"children":40077},{},[40078,40080,40085],{"type":31,"value":40079},"这个区别很重要：量子优势是",{"type":21,"tag":12769,"props":40081,"children":40082},{},[40083],{"type":31,"value":40084},"问题 + 硬件组合",{"type":31,"value":40086},"的一种属性，而不是关于量子计算机\"更好\"的笼统论断。理解这一点，将把有见地的量子讨论与炒作区分开来。",{"type":21,"tag":39928,"props":40088,"children":40089},{},[],{"type":21,"tag":41,"props":40091,"children":40093},{"id":40092},"_4-quantum-utility量子实用性",[40094],{"type":31,"value":40095},"4. Quantum Utility（量子实用性）",{"type":21,"tag":22,"props":40097,"children":40098},{},[40099],{"type":21,"tag":16815,"props":40100,"children":40101},{},[40102],{"type":31,"value":40103},"AI 对应概念：\"生产级 AI\" 与研究演示的对比",{"type":21,"tag":22,"props":40105,"children":40106},{},[40107,40109,40113],{"type":31,"value":40108},"与量子优势密切相关，",{"type":21,"tag":16815,"props":40110,"children":40111},{},[40112],{"type":31,"value":23118},{"type":31,"value":40114},"（量子实用性）具体指的是：一个量子电路能产生对真实应用有用的结果，即便对该电路的经典仿真在原则上仍然可行，但实际操作起来并不现实。",{"type":21,"tag":22,"props":40116,"children":40117},{},[40118,40120,40125],{"type":31,"value":40119},"IBM 在 2023 年发表于 ",{"type":21,"tag":12769,"props":40121,"children":40122},{},[40123],{"type":31,"value":40124},"Nature",{"type":31,"value":40126}," 的一篇论文中首次使用了这个术语，该论文证明了在其 Eagle 处理器上运行的某些量子电路所产生的结果，是经典仿真无法轻易验证的。相比完整的量子优势，这是一个更可实现、更近期的里程碑——也是我们在未来几年最有可能听到的那一个。",{"type":21,"tag":39928,"props":40128,"children":40129},{},[],{"type":21,"tag":41,"props":40131,"children":40133},{"id":40132},"_5-transpilation转译",[40134],{"type":31,"value":40135},"5. Transpilation（转译）",{"type":21,"tag":22,"props":40137,"children":40138},{},[40139],{"type":21,"tag":16815,"props":40140,"children":40141},{},[40142],{"type":31,"value":40143},"AI 对应概念：模型编译 \u002F 量化",{"type":21,"tag":22,"props":40145,"children":40146},{},[40147,40149,40154],{"type":31,"value":40148},"在一个量子电路能够在真实硬件上运行之前，它必须经过",{"type":21,"tag":12769,"props":40150,"children":40151},{},[40152],{"type":31,"value":40153},"转译",{"type":31,"value":40155},"（transpiled）——从抽象操作转换为硬件的原生门集合，并重新路由量子比特操作以满足物理连接性约束。这类似于深度学习模型必须针对特定芯片架构进行编译和优化。",{"type":21,"tag":128,"props":40157,"children":40159},{"className":130,"code":40158,"language":132,"meta":7,"style":7},"from qiskit.compiler import transpile\n\n# Circuit written in abstract gates\ntranspiled = transpile(circuit, backend=real_qpu, optimization_level=3)\n",[40160],{"type":21,"tag":103,"props":40161,"children":40162},{"__ignoreMap":7},[40163,40183,40190,40198],{"type":21,"tag":138,"props":40164,"children":40165},{"class":140,"line":141},[40166,40170,40175,40179],{"type":21,"tag":138,"props":40167,"children":40168},{"style":145},[40169],{"type":31,"value":148},{"type":21,"tag":138,"props":40171,"children":40172},{"style":151},[40173],{"type":31,"value":40174}," qiskit.compiler ",{"type":21,"tag":138,"props":40176,"children":40177},{"style":145},[40178],{"type":31,"value":159},{"type":21,"tag":138,"props":40180,"children":40181},{"style":151},[40182],{"type":31,"value":9274},{"type":21,"tag":138,"props":40184,"children":40185},{"class":140,"line":167},[40186],{"type":21,"tag":138,"props":40187,"children":40188},{"emptyLinePlaceholder":193},[40189],{"type":31,"value":196},{"type":21,"tag":138,"props":40191,"children":40192},{"class":140,"line":189},[40193],{"type":21,"tag":138,"props":40194,"children":40195},{"style":219},[40196],{"type":31,"value":40197},"# Circuit written in abstract gates\n",{"type":21,"tag":138,"props":40199,"children":40200},{"class":140,"line":199},[40201,40206,40210,40215,40219,40223,40228,40232,40236,40240],{"type":21,"tag":138,"props":40202,"children":40203},{"style":151},[40204],{"type":31,"value":40205},"transpiled ",{"type":21,"tag":138,"props":40207,"children":40208},{"style":145},[40209],{"type":31,"value":210},{"type":21,"tag":138,"props":40211,"children":40212},{"style":151},[40213],{"type":31,"value":40214}," transpile(circuit, ",{"type":21,"tag":138,"props":40216,"children":40217},{"style":929},[40218],{"type":31,"value":11000},{"type":21,"tag":138,"props":40220,"children":40221},{"style":145},[40222],{"type":31,"value":210},{"type":21,"tag":138,"props":40224,"children":40225},{"style":151},[40226],{"type":31,"value":40227},"real_qpu, ",{"type":21,"tag":138,"props":40229,"children":40230},{"style":929},[40231],{"type":31,"value":28143},{"type":21,"tag":138,"props":40233,"children":40234},{"style":145},[40235],{"type":31,"value":210},{"type":21,"tag":138,"props":40237,"children":40238},{"style":213},[40239],{"type":31,"value":253},{"type":21,"tag":138,"props":40241,"children":40242},{"style":151},[40243],{"type":31,"value":269},{"type":21,"tag":22,"props":40245,"children":40246},{},[40247],{"type":31,"value":40248},"随着量子计算走向生产环境，\"转译开销\"（transpilation overhead）和\"转译深度\"（transpilation depth）将成为标准的工程考量——就像今天的推理延迟和模型量化一样。",{"type":21,"tag":39928,"props":40250,"children":40251},{},[],{"type":21,"tag":41,"props":40253,"children":40255},{"id":40254},"_6-coherence-time相干时间t1-t2",[40256],{"type":31,"value":40257},"6. Coherence Time（相干时间，T1 \u002F T2）",{"type":21,"tag":22,"props":40259,"children":40260},{},[40261],{"type":21,"tag":16815,"props":40262,"children":40263},{},[40264],{"type":31,"value":40265},"AI 对应概念：Context window \u002F 内存限制",{"type":21,"tag":22,"props":40267,"children":40268},{},[40269,40271,40276,40278,40283,40285,40290],{"type":31,"value":40270},"量子比特不会永远保持量子态。它会衰减——通过一个称为",{"type":21,"tag":12769,"props":40272,"children":40273},{},[40274],{"type":31,"value":40275},"退相干",{"type":31,"value":40277},"（decoherence）的过程，在环境噪声中失去其叠加态。",{"type":21,"tag":16815,"props":40279,"children":40280},{},[40281],{"type":31,"value":40282},"T1 时间",{"type":31,"value":40284},"（能量弛豫）和 ",{"type":21,"tag":16815,"props":40286,"children":40287},{},[40288],{"type":31,"value":40289},"T2 时间",{"type":31,"value":40291},"（相位相干）衡量了量子比特能保持可用状态多长时间。",{"type":21,"tag":22,"props":40293,"children":40294},{},[40295,40297,40302],{"type":31,"value":40296},"这相当于量子领域的 context window：它定义了在量子比特退化为经典噪声之前，你能执行的",{"type":21,"tag":12769,"props":40298,"children":40299},{},[40300],{"type":31,"value":40301},"最大电路深度",{"type":31,"value":40303},"。IBM 的超导量子比特的 T2 时间约为 100–300 微秒。IonQ 的离子阱量子比特的 T2 时间超过一秒——这正是它们的电路可以深得多的原因。",{"type":21,"tag":23932,"props":40305,"children":40306},{},[40307],{"type":21,"tag":22,"props":40308,"children":40309},{},[40310],{"type":31,"value":40311},"\"我们的电路对这个后端来说太深了——最后一个门还没执行完，我们就会撞上 T2。\"",{"type":21,"tag":22,"props":40313,"children":40314},{},[40315],{"type":31,"value":40316},"开发者将学会像预算内存那样去预算相干时间。",{"type":21,"tag":39928,"props":40318,"children":40319},{},[],{"type":21,"tag":41,"props":40321,"children":40323},{"id":40322},"_7-decoherence-budget退相干预算",[40324],{"type":31,"value":40325},"7. Decoherence Budget（退相干预算）",{"type":21,"tag":22,"props":40327,"children":40328},{},[40329],{"type":21,"tag":16815,"props":40330,"children":40331},{},[40332],{"type":31,"value":40333},"AI 对应概念：延迟预算 \u002F 计算预算",{"type":21,"tag":22,"props":40335,"children":40336},{},[40337,40339,40344],{"type":31,"value":40338},"这是 T1\u002FT2 的一个自然延伸：",{"type":21,"tag":16815,"props":40340,"children":40341},{},[40342],{"type":31,"value":40343},"decoherence budget",{"type":31,"value":40345},"（退相干预算）是指在误差累积到失去可用性之前，一个电路可用于完成计算的总\"相干时间\"。更长的电路会消耗更多的退相干预算。",{"type":21,"tag":22,"props":40347,"children":40348},{},[40349],{"type":31,"value":40350},"随着量子应用变得更加复杂，架构师将设计出保持在退相干预算之内的系统——在电路深度与结果保真度之间做权衡，类似于今天的后端工程师在响应延迟与计算成本之间做权衡。",{"type":21,"tag":39928,"props":40352,"children":40353},{},[],{"type":21,"tag":41,"props":40355,"children":40357},{"id":40356},"_8-circuit-fidelity电路保真度",[40358],{"type":31,"value":40359},"8. Circuit Fidelity（电路保真度）",{"type":21,"tag":22,"props":40361,"children":40362},{},[40363],{"type":21,"tag":16815,"props":40364,"children":40365},{},[40366],{"type":31,"value":40367},"AI 对应概念：模型准确率 \u002F F1 分数",{"type":21,"tag":22,"props":40369,"children":40370},{},[40371,40375],{"type":21,"tag":16815,"props":40372,"children":40373},{},[40374],{"type":31,"value":35423},{"type":31,"value":40376},"（保真度）衡量的是电路实际产生的量子态与理想理论态之间的接近程度。保真度为 99% 的电路是出色的。而 90% 的电路对于精密应用可能就毫无用处。",{"type":21,"tag":22,"props":40378,"children":40379},{},[40380],{"type":31,"value":40381},"保真度会随着每施加一个门（每个门都有错误率）以及电路深度的增加（更长的电路退相干更严重）而下降。它将成为 QPU 结果的首要质量指标——相当于量子领域中模型在基准测试上的准确率。",{"type":21,"tag":39928,"props":40383,"children":40384},{},[],{"type":21,"tag":41,"props":40386,"children":40388},{"id":40387},"_9-physical-vs-logical-qubit物理量子比特与逻辑量子比特",[40389],{"type":31,"value":40390},"9. Physical vs. Logical Qubit（物理量子比特与逻辑量子比特）",{"type":21,"tag":22,"props":40392,"children":40393},{},[40394],{"type":21,"tag":16815,"props":40395,"children":40396},{},[40397],{"type":31,"value":40398},"AI 对应概念：原始参数量与有效模型容量的对比",{"type":21,"tag":22,"props":40400,"children":40401},{},[40402,40404,40408,40410,40414,40416,40421],{"type":31,"value":40403},"一个正在走向主流的最重要区别：",{"type":21,"tag":16815,"props":40405,"children":40406},{},[40407],{"type":31,"value":30753},{"type":31,"value":40409},"（物理量子比特）是真实的硬件量子比特（有噪声、易出错）。",{"type":21,"tag":16815,"props":40411,"children":40412},{},[40413],{"type":31,"value":30780},{"type":31,"value":40415},"（逻辑量子比特）则是一个",{"type":21,"tag":12769,"props":40417,"children":40418},{},[40419],{"type":31,"value":40420},"经过纠错的",{"type":31,"value":40422},"量子比特，编码在许多物理量子比特之上——可靠，但代价高昂。",{"type":21,"tag":22,"props":40424,"children":40425},{},[40426,40428,40433],{"type":31,"value":40427},"如今最好的硬件（IBM、IonQ）都在用物理量子比特运行。完全容错的量子计算需要逻辑量子比特。目前的估计是，对于表面码纠错，其比例为",{"type":21,"tag":16815,"props":40429,"children":40430},{},[40431],{"type":31,"value":40432},"每个逻辑量子比特需要 1,000–10,000 个物理量子比特",{"type":31,"value":3120},{"type":21,"tag":22,"props":40435,"children":40436},{},[40437],{"type":31,"value":40438},"当你听到\"IBM 拥有 1,000 个量子比特\"时，那指的是物理量子比特。一台能够针对 RSA-2048 运行 Shor 算法的容错计算机将需要数百万个物理量子比特。",{"type":21,"tag":22,"props":40440,"children":40441},{},[40442],{"type":31,"value":40443},"理解这个区别，对于把量子硬件的营销宣传与技术现实区分开来至关重要。",{"type":21,"tag":39928,"props":40445,"children":40446},{},[],{"type":21,"tag":41,"props":40448,"children":40450},{"id":40449},"_10-quantum-safe-post-quantum-cryptography抗量子-后量子密码学",[40451],{"type":31,"value":40452},"10. Quantum-Safe \u002F Post-Quantum Cryptography（抗量子 \u002F 后量子密码学）",{"type":21,"tag":22,"props":40454,"children":40455},{},[40456],{"type":21,"tag":16815,"props":40457,"children":40458},{},[40459],{"type":31,"value":40460},"AI 对应概念：\"抗 AI\"（不太贴切）→ 实际上更接近\"算法领域的 GDPR\"",{"type":21,"tag":22,"props":40462,"children":40463},{},[40464,40466,40471],{"type":31,"value":40465},"这个术语已经在走出研究世界。",{"type":21,"tag":16815,"props":40467,"children":40468},{},[40469],{"type":31,"value":40470},"Post-quantum cryptography",{"type":31,"value":40472},"（后量子密码学，PQC）指的是被设计用来抵御量子计算机攻击的经典密码算法。威胁在于：Shor 算法能够分解支撑 RSA 的大素数，从而攻破当今大多数公钥加密。",{"type":21,"tag":22,"props":40474,"children":40475},{},[40476,40478,40483],{"type":31,"value":40477},"NIST 在 2024 年敲定了其首批后量子密码学标准（CRYSTALS-Kyber、CRYSTALS-Dilithium）。",{"type":21,"tag":16815,"props":40479,"children":40480},{},[40481],{"type":31,"value":40482},"\"Quantum-safe\"",{"type":31,"value":40484},"（抗量子）将在五年之内成为一个认证与合规术语——出现在安全审计、采购要求和云服务商文档中。",{"type":21,"tag":22,"props":40486,"children":40487},{},[40488,40490,40495],{"type":31,"value":40489},"大多数组织都应该防范的攻击途径是：",{"type":21,"tag":16815,"props":40491,"children":40492},{},[40493],{"type":31,"value":40494},"\"harvest now, decrypt later\"",{"type":31,"value":40496},"（先收集，后解密）——攻击者如今收集加密数据，意图在量子计算机能力足够强大时再将其解密。",{"type":21,"tag":39928,"props":40498,"children":40499},{},[],{"type":21,"tag":41,"props":40501,"children":40503},{"id":40502},"_11-hybrid-algorithm-quantum-classical-hybrid混合算法-量子-经典混合",[40504],{"type":31,"value":40505},"11. Hybrid Algorithm \u002F Quantum-Classical Hybrid（混合算法 \u002F 量子-经典混合）",{"type":21,"tag":22,"props":40507,"children":40508},{},[40509],{"type":21,"tag":16815,"props":40510,"children":40511},{},[40512],{"type":31,"value":40513},"AI 对应概念：\"AI 辅助\"工作流、CPU+GPU 异构计算",{"type":21,"tag":22,"props":40515,"children":40516},{},[40517,40519,40524],{"type":31,"value":40518},"几乎所有近期的量子应用都是",{"type":21,"tag":16815,"props":40520,"children":40521},{},[40522],{"type":31,"value":40523},"混合式",{"type":31,"value":40525},"的：一个经典优化器反复调用一个量子电路，把经典计算机难以处理的部分（态制备、干涉）交给量子硬件，而由经典计算机处理优化循环。",{"type":21,"tag":22,"props":40527,"children":40528},{},[40529],{"type":31,"value":40530},"VQE 和 QAOA 是典型的混合算法。随着量子编程框架的成熟，\"混合工作流编排\"——管理经典计算与量子计算之间的交接——将成为一个标准的软件工程问题。可以预期，围绕它会涌现出各种工具、框架和职位头衔。",{"type":21,"tag":39928,"props":40532,"children":40533},{},[],{"type":21,"tag":41,"props":40535,"children":40537},{"id":40536},"_12-variational-circuit变分电路parameterized-quantum-circuit",[40538],{"type":31,"value":40539},"12. Variational Circuit（变分电路，Parameterized Quantum Circuit）",{"type":21,"tag":22,"props":40541,"children":40542},{},[40543],{"type":21,"tag":16815,"props":40544,"children":40545},{},[40546],{"type":31,"value":40547},"AI 对应概念：神经网络（可训练权重）",{"type":21,"tag":22,"props":40549,"children":40550},{},[40551,40553,40558,40560,40565],{"type":31,"value":40552},"一个",{"type":21,"tag":16815,"props":40554,"children":40555},{},[40556],{"type":31,"value":40557},"变分电路",{"type":31,"value":40559},"（variational circuit）或",{"type":21,"tag":16815,"props":40561,"children":40562},{},[40563],{"type":31,"value":40564},"参数化量子电路",{"type":31,"value":40566},"（parameterized quantum circuit，PQC）是一个带有可调旋转角度的量子电路——本质上就是一个量子神经网络层。这些参数由一个经典优化器进行调整，以最小化某个代价函数。",{"type":21,"tag":22,"props":40568,"children":40569},{},[40570],{"type":31,"value":40571},"VQE 使用变分电路作为能量估计器。QAOA 则用它来编码优化问题。随着量子机器学习的发展，\"训练一个量子电路\"将变得像\"训练一个神经网络\"一样自然。",{"type":21,"tag":39928,"props":40573,"children":40574},{},[],{"type":21,"tag":41,"props":40576,"children":40578},{"id":40577},"_13-quantum-volume量子体积qv",[40579],{"type":31,"value":40580},"13. Quantum Volume（量子体积，QV）",{"type":21,"tag":22,"props":40582,"children":40583},{},[40584],{"type":21,"tag":16815,"props":40585,"children":40586},{},[40587],{"type":31,"value":40588},"AI 对应概念：FLOPS、基准测试分数（MLPerf）",{"type":21,"tag":22,"props":40590,"children":40591},{},[40592,40596],{"type":21,"tag":16815,"props":40593,"children":40594},{},[40595],{"type":31,"value":13906},{"type":31,"value":40597},"（量子体积）是 IBM 引入的一个单一数值基准，它整体性地刻画了 QPU 的性能——同时兼顾量子比特数量、门保真度、连接性以及最大可执行电路深度。",{"type":21,"tag":22,"props":40599,"children":40600},{},[40601],{"type":31,"value":40602},"一台 QV 为 128（= 2^7，等价于 7 量子比特电路）的 QPU 优于一台 QV 为 64 的 QPU，即便后者拥有更多的原始量子比特。它是量子世界的\"MLPerf 分数\"——一个厂商会用来做宣传、开发者会用来比较硬件的数字。",{"type":21,"tag":39928,"props":40604,"children":40605},{},[],{"type":21,"tag":41,"props":40607,"children":40609},{"id":40608},"_14-quantum-job-quantum-queue量子作业-量子队列",[40610],{"type":31,"value":40611},"14. Quantum Job \u002F Quantum Queue（量子作业 \u002F 量子队列）",{"type":21,"tag":22,"props":40613,"children":40614},{},[40615],{"type":21,"tag":16815,"props":40616,"children":40617},{},[40618],{"type":31,"value":40619},"AI 对应概念：批量推理作业、GPU 队列",{"type":21,"tag":22,"props":40621,"children":40622},{},[40623,40625,40630,40632,40637],{"type":31,"value":40624},"当你把一个电路提交给真实的 QPU 时，你提交的是一个进入",{"type":21,"tag":16815,"props":40626,"children":40627},{},[40628],{"type":31,"value":40629},"量子队列",{"type":31,"value":40631},"（quantum queue）的",{"type":21,"tag":16815,"props":40633,"children":40634},{},[40635],{"type":31,"value":40636},"量子作业",{"type":31,"value":40638},"（quantum job）——量子队列是一个管理共享硬件访问的调度系统。IBM Quantum 免费层的作业常常要在队列中排在付费层客户后面等待数分钟乃至数小时。",{"type":21,"tag":22,"props":40640,"children":40641},{},[40642],{"type":31,"value":40643},"\"作业吞吐量\"、\"队列深度\"和\"作业优先级\"将成为量子基础设施团队的运维指标——在本质上与今天管理 GPU 集群作业队列如出一辙。",{"type":21,"tag":39928,"props":40645,"children":40646},{},[],{"type":21,"tag":41,"props":40648,"children":40650},{"id":40649},"_15-error-mitigation-vs-error-correction错误缓解与错误纠正",[40651],{"type":31,"value":40652},"15. Error Mitigation vs. Error Correction（错误缓解与错误纠正）",{"type":21,"tag":22,"props":40654,"children":40655},{},[40656],{"type":21,"tag":16815,"props":40657,"children":40658},{},[40659],{"type":31,"value":40660},"AI 对应概念：正则化（缓解）与硬件 ECC（纠正）",{"type":21,"tag":22,"props":40662,"children":40663},{},[40664],{"type":31,"value":40665},"这个区别很重要，而且一旦量子走向主流，它将被不断地误用。",{"type":21,"tag":22,"props":40667,"children":40668},{},[40669,40674],{"type":21,"tag":16815,"props":40670,"children":40671},{},[40672],{"type":31,"value":40673},"Error correction",{"type":31,"value":40675},"（错误纠正）——用冗余来编码逻辑量子比特，从而能够检测并修复错误。需要约 1,000:1 的物理量子比特对逻辑量子比特的开销。目前尚无法大规模实现。",{"type":21,"tag":22,"props":40677,"children":40678},{},[40679,40683,40685,40690],{"type":21,"tag":16815,"props":40680,"children":40681},{},[40682],{"type":31,"value":25987},{"type":31,"value":40684},"（错误缓解）——一种经典的后处理技术，在",{"type":21,"tag":12769,"props":40686,"children":40687},{},[40688],{"type":31,"value":40689},"不",{"type":31,"value":40691},"进行物理纠正的情况下，从统计上降低噪声的影响。零噪声外推、概率性错误抵消、测量错误缓解。现已可用，运行在 NISQ 硬件上。",{"type":21,"tag":22,"props":40693,"children":40694},{},[40695],{"type":31,"value":40696},"当某个厂商声称他们的 QPU\"能处理错误\"时，一定要问清楚他们指的是哪一种。",{"type":21,"tag":39928,"props":40698,"children":40699},{},[],{"type":21,"tag":41,"props":40701,"children":40703},{"id":40702},"_16-quantum-developer-quantum-engineer量子开发者-量子工程师",[40704],{"type":31,"value":40705},"16. Quantum Developer \u002F Quantum Engineer（量子开发者 \u002F 量子工程师）",{"type":21,"tag":22,"props":40707,"children":40708},{},[40709],{"type":21,"tag":16815,"props":40710,"children":40711},{},[40712],{"type":31,"value":40713},"AI 对应概念：ML Engineer、AI Engineer、Prompt Engineer",{"type":21,"tag":22,"props":40715,"children":40716},{},[40717,40719,40724],{"type":31,"value":40718},"或许是最具影响力的新术语：",{"type":21,"tag":16815,"props":40720,"children":40721},{},[40722],{"type":31,"value":40723},"quantum developer",{"type":31,"value":40725},"（量子开发者）。正如\"AI 工程师\"这一角色在 2023 年前后成型——既区别于传统软件工程，也区别于 ML 研究——\"量子开发者\"这一角色也正围绕着一套特定的技能组合逐渐成形：",{"type":21,"tag":1118,"props":40727,"children":40728},{},[40729,40734,40739,40744],{"type":21,"tag":71,"props":40730,"children":40731},{},[40732],{"type":31,"value":40733},"用 Qiskit、Cirq 或 HLQuantum 等框架编写电路",{"type":21,"tag":71,"props":40735,"children":40736},{},[40737],{"type":31,"value":40738},"理解硬件约束（连接性、噪声、相干性）",{"type":21,"tag":71,"props":40740,"children":40741},{},[40742],{"type":31,"value":40743},"设计混合的经典-量子工作流",{"type":21,"tag":71,"props":40745,"children":40746},{},[40747],{"type":31,"value":40748},"解读概率性结果和保真度指标",{"type":21,"tag":22,"props":40750,"children":40751},{},[40752,40754,40760],{"type":31,"value":40753},"像 ",{"type":21,"tag":26,"props":40755,"children":40757},{"href":40756},"\u002Fhlquantum",[40758],{"type":31,"value":40759},"HLQuantum",{"type":31,"value":40761}," 这样的工具——它们提供了一个横跨所有后端的统一 API——正在加速这一进程，让开发者无需深入掌握每个 SDK 的种种特性就能编写可移植的量子代码。2028 年的\"量子开发者\"很可能会像今天的 Web 开发者使用框架那样去使用一个抽象层，而不是为每个后端编写原始电路。",{"type":21,"tag":39928,"props":40763,"children":40764},{},[],{"type":21,"tag":41,"props":40766,"children":40768},{"id":40767},"规律",[40769],{"type":31,"value":40767},{"type":21,"tag":22,"props":40771,"children":40772},{},[40773],{"type":31,"value":40774},"纵观这 16 个术语，一种规律浮现出来。每一次重大的平台变革都会催生：",{"type":21,"tag":67,"props":40776,"children":40777},{},[40778,40788,40798,40808,40818,40828,40838],{"type":21,"tag":71,"props":40779,"children":40780},{},[40781,40786],{"type":21,"tag":16815,"props":40782,"children":40783},{},[40784],{"type":31,"value":40785},"一个新的计算单位",{"type":31,"value":40787},"——GPU → QPU，tokens → shots",{"type":21,"tag":71,"props":40789,"children":40790},{},[40791,40796],{"type":21,"tag":16815,"props":40792,"children":40793},{},[40794],{"type":31,"value":40795},"一个新的资源约束",{"type":31,"value":40797},"——VRAM、context window → 相干时间、shot budget",{"type":21,"tag":71,"props":40799,"children":40800},{},[40801,40806],{"type":21,"tag":16815,"props":40802,"children":40803},{},[40804],{"type":31,"value":40805},"一个新的质量指标",{"type":31,"value":40807},"——准确率、F1 → 保真度、量子体积",{"type":21,"tag":71,"props":40809,"children":40810},{},[40811,40816],{"type":21,"tag":16815,"props":40812,"children":40813},{},[40814],{"type":31,"value":40815},"一个新的编译步骤",{"type":31,"value":40817},"——模型量化 → 转译",{"type":21,"tag":71,"props":40819,"children":40820},{},[40821,40826],{"type":21,"tag":16815,"props":40822,"children":40823},{},[40824],{"type":31,"value":40825},"一种新的混合架构",{"type":31,"value":40827},"——CPU+GPU → 经典+量子",{"type":21,"tag":71,"props":40829,"children":40830},{},[40831,40836],{"type":21,"tag":16815,"props":40832,"children":40833},{},[40834],{"type":31,"value":40835},"一个新的安全面",{"type":31,"value":40837},"——对抗性 ML → 后量子密码学",{"type":21,"tag":71,"props":40839,"children":40840},{},[40841,40846],{"type":21,"tag":16815,"props":40842,"children":40843},{},[40844],{"type":31,"value":40845},"一个新的职位头衔",{"type":31,"value":40847},"——ML 工程师 → 量子工程师",{"type":21,"tag":22,"props":40849,"children":40850},{},[40851],{"type":31,"value":40852},"量子计算的词汇不仅仅是行话——它直接对应着真实的工程约束、真实的权衡和真实的机遇。在主流浪潮到来之前就学会它，与早期的云工程师在大多数开发者之前就开始关注\"延迟\"和\"吞吐量\"时所下的那一注是同一种赌注。",{"type":21,"tag":22,"props":40854,"children":40855},{},[40856],{"type":31,"value":40857},"最好的开始时机是五年前。第二好的时机就是现在——趁硬件还能免费访问、学习曲线还处于最低点的时候。",{"type":21,"tag":22,"props":40859,"children":40860},{},[40861,40866,40867],{"type":21,"tag":16815,"props":40862,"children":40863},{},[40864],{"type":31,"value":40865},"从这里开始：",{"type":31,"value":22965},{"type":21,"tag":26,"props":40868,"children":40869},{"href":3304},[40870],{"type":31,"value":40871},"免费运行你的第一个量子电路 →",{"type":21,"tag":1174,"props":40873,"children":40874},{},[40875],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":40877},[40878,40879,40880,40881,40882,40883,40884,40885,40886,40887,40888,40889,40890,40891,40892,40893,40894],{"id":39933,"depth":167,"text":39936},{"id":39986,"depth":167,"text":39989},{"id":40040,"depth":167,"text":40043},{"id":40092,"depth":167,"text":40095},{"id":40132,"depth":167,"text":40135},{"id":40254,"depth":167,"text":40257},{"id":40322,"depth":167,"text":40325},{"id":40356,"depth":167,"text":40359},{"id":40387,"depth":167,"text":40390},{"id":40449,"depth":167,"text":40452},{"id":40502,"depth":167,"text":40505},{"id":40536,"depth":167,"text":40539},{"id":40577,"depth":167,"text":40580},{"id":40608,"depth":167,"text":40611},{"id":40649,"depth":167,"text":40652},{"id":40702,"depth":167,"text":40705},{"id":40767,"depth":167,"text":40767},"content:zh:blog:quantum-computing-new-vocabulary.md","zh\u002Fblog\u002Fquantum-computing-new-vocabulary.md","zh\u002Fblog\u002Fquantum-computing-new-vocabulary",{"_path":40899,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":40900,"description":40901,"date":40902,"author":11,"tags":40903,"readingTime":16,"body":40904,"_type":1193,"_id":41911,"_source":1195,"_file":41912,"_stem":41913,"_extension":1198},"\u002Fzh\u002Fblog\u002Fquantum-use-cases-2026","2026 年量子计算机究竟能做什么","务实审视哪些量子计算应用现在已可投入生产、哪些属于近期可期、哪些仍是长期研究目标——把真正的进展与炒作区分开来。","2026-03-12",[3409,10549,13],{"type":18,"children":40905,"toc":41891},[40906,40911,40916,40921,40926,40959,40964,40967,40973,40979,40989,40999,41009,41019,41029,41192,41195,41201,41210,41219,41237,41247,41256,41259,41265,41274,41291,41300,41317,41320,41326,41335,41344,41361,41371,41374,41380,41385,41394,41403,41413,41423,41426,41432,41457,41466,41475,41478,41484,41493,41502,41511,41520,41523,41529,41535,41544,41554,41564,41581,41584,41590,41599,41608,41617,41620,41625,41634,41643,41652,41655,41660,41826,41844,41856,41861,41887],{"type":21,"tag":22,"props":40907,"children":40908},{},[40909],{"type":31,"value":40910},"“量子计算机将彻底变革药物研发、破解所有加密、解决气候变化。”这套说辞你已经听过。现在给出诚实的答案：在当今现有的硬件上，2026 年量子计算机究竟能做什么？",{"type":21,"tag":22,"props":40912,"children":40913},{},[40914],{"type":31,"value":40915},"诚实的答案是微妙的——而且比炒作或怀疑所暗示的都更有趣。",{"type":21,"tag":41,"props":40917,"children":40919},{"id":40918},"如何看待量子技术的成熟度",[40920],{"type":31,"value":40918},{"type":21,"tag":22,"props":40922,"children":40923},{},[40924],{"type":31,"value":40925},"量子应用分为三类：",{"type":21,"tag":1118,"props":40927,"children":40928},{},[40929,40939,40949],{"type":21,"tag":71,"props":40930,"children":40931},{},[40932,40937],{"type":21,"tag":16815,"props":40933,"children":40934},{},[40935],{"type":31,"value":40936},"NISQ 时代的应用（当下）：",{"type":31,"value":40938}," 在当今 50–1000 量子比特、电路深度有限的含噪硬件上可运行的算法。结果可能是近似的。价值在于探索性或演示性。",{"type":21,"tag":71,"props":40940,"children":40941},{},[40942,40947],{"type":21,"tag":16815,"props":40943,"children":40944},{},[40945],{"type":31,"value":40946},"近期应用（2–7 年）：",{"type":31,"value":40948}," 需要适度的纠错——数百到数千个逻辑量子比特。针对特定问题实例的实用加速开始出现。",{"type":21,"tag":71,"props":40950,"children":40951},{},[40952,40957],{"type":21,"tag":16815,"props":40953,"children":40954},{},[40955],{"type":31,"value":40956},"长期应用（7–20 年以上）：",{"type":31,"value":40958}," 需要数百万个物理量子比特和完整的容错能力。具有变革性的影响。",{"type":21,"tag":22,"props":40960,"children":40961},{},[40962],{"type":31,"value":40963},"炒作与现实之间的鸿沟，大多源于把这三类混为一谈。",{"type":21,"tag":39928,"props":40965,"children":40966},{},[],{"type":21,"tag":41,"props":40968,"children":40970},{"id":40969},"现在能做什么nisq-时代",[40971],{"type":31,"value":40972},"现在能做什么（NISQ 时代）",{"type":21,"tag":421,"props":40974,"children":40976},{"id":40975},"量子化学模拟有限的分子",[40977],{"type":31,"value":40978},"量子化学模拟——有限的分子",{"type":21,"tag":22,"props":40980,"children":40981},{},[40982,40987],{"type":21,"tag":16815,"props":40983,"children":40984},{},[40985],{"type":31,"value":40986},"是什么：",{"type":31,"value":40988}," 使用 VQE 模拟小分子的基态能量。",{"type":21,"tag":22,"props":40990,"children":40991},{},[40992,40997],{"type":21,"tag":16815,"props":40993,"children":40994},{},[40995],{"type":31,"value":40996},"已演示：",{"type":31,"value":40998}," IBM 及其他团队已在真实 QPU 上计算了 H₂、LiH、BeH₂ 以及小型碳氢化合物的基态能量。对于 4–12 量子比特的问题，结果与经典方法一致。",{"type":21,"tag":22,"props":41000,"children":41001},{},[41002,41007],{"type":21,"tag":16815,"props":41003,"children":41004},{},[41005],{"type":31,"value":41006},"当下的实用价值：",{"type":31,"value":41008}," 研究与基准测试。对于经典计算机也能精确模拟的分子而言，没有优势——但这些方法正在得到验证。",{"type":21,"tag":22,"props":41010,"children":41011},{},[41012,41017],{"type":21,"tag":16815,"props":41013,"children":41014},{},[41015],{"type":31,"value":41016},"瓶颈：",{"type":31,"value":41018}," 扩展到具有实际制药意义的分子（50 个以上原子）需要数百个逻辑量子比特。在当前的含噪硬件上无法实现。",{"type":21,"tag":22,"props":41020,"children":41021},{},[41022,41027],{"type":21,"tag":16815,"props":41023,"children":41024},{},[41025],{"type":31,"value":41026},"谁在做：",{"type":31,"value":41028}," IBM Quantum、IonQ（用于药物研发合作）、Quantinuum。",{"type":21,"tag":128,"props":41030,"children":41032},{"className":130,"code":41031,"language":132,"meta":7,"style":7},"import hlquantum as hlq\n\n# VQE for H2 — works today, results match classical\nresult = hlq.algorithms.vqe(molecule='H2', basis='sto-3g', backend='qiskit')\nprint(f\"Ground state: {result.energy:.4f} Ha\")  # -1.1372 Ha\n",[41033],{"type":21,"tag":103,"props":41034,"children":41035},{"__ignoreMap":7},[41036,41057,41064,41072,41141],{"type":21,"tag":138,"props":41037,"children":41038},{"class":140,"line":141},[41039,41043,41048,41052],{"type":21,"tag":138,"props":41040,"children":41041},{"style":145},[41042],{"type":31,"value":159},{"type":21,"tag":138,"props":41044,"children":41045},{"style":151},[41046],{"type":31,"value":41047}," hlquantum ",{"type":21,"tag":138,"props":41049,"children":41050},{"style":145},[41051],{"type":31,"value":5356},{"type":21,"tag":138,"props":41053,"children":41054},{"style":151},[41055],{"type":31,"value":41056}," hlq\n",{"type":21,"tag":138,"props":41058,"children":41059},{"class":140,"line":167},[41060],{"type":21,"tag":138,"props":41061,"children":41062},{"emptyLinePlaceholder":193},[41063],{"type":31,"value":196},{"type":21,"tag":138,"props":41065,"children":41066},{"class":140,"line":189},[41067],{"type":21,"tag":138,"props":41068,"children":41069},{"style":219},[41070],{"type":31,"value":41071},"# VQE for H2 — works today, results match classical\n",{"type":21,"tag":138,"props":41073,"children":41074},{"class":140,"line":199},[41075,41079,41083,41088,41093,41097,41102,41106,41111,41115,41120,41124,41128,41132,41137],{"type":21,"tag":138,"props":41076,"children":41077},{"style":151},[41078],{"type":31,"value":4881},{"type":21,"tag":138,"props":41080,"children":41081},{"style":145},[41082],{"type":31,"value":210},{"type":21,"tag":138,"props":41084,"children":41085},{"style":151},[41086],{"type":31,"value":41087}," hlq.algorithms.vqe(",{"type":21,"tag":138,"props":41089,"children":41090},{"style":929},[41091],{"type":31,"value":41092},"molecule",{"type":21,"tag":138,"props":41094,"children":41095},{"style":145},[41096],{"type":31,"value":210},{"type":21,"tag":138,"props":41098,"children":41099},{"style":261},[41100],{"type":31,"value":41101},"'H2'",{"type":21,"tag":138,"props":41103,"children":41104},{"style":151},[41105],{"type":31,"value":258},{"type":21,"tag":138,"props":41107,"children":41108},{"style":929},[41109],{"type":31,"value":41110},"basis",{"type":21,"tag":138,"props":41112,"children":41113},{"style":145},[41114],{"type":31,"value":210},{"type":21,"tag":138,"props":41116,"children":41117},{"style":261},[41118],{"type":31,"value":41119},"'sto-3g'",{"type":21,"tag":138,"props":41121,"children":41122},{"style":151},[41123],{"type":31,"value":258},{"type":21,"tag":138,"props":41125,"children":41126},{"style":929},[41127],{"type":31,"value":11000},{"type":21,"tag":138,"props":41129,"children":41130},{"style":145},[41131],{"type":31,"value":210},{"type":21,"tag":138,"props":41133,"children":41134},{"style":261},[41135],{"type":31,"value":41136},"'qiskit'",{"type":21,"tag":138,"props":41138,"children":41139},{"style":151},[41140],{"type":31,"value":269},{"type":21,"tag":138,"props":41142,"children":41143},{"class":140,"line":225},[41144,41148,41152,41156,41161,41165,41170,41174,41178,41183,41187],{"type":21,"tag":138,"props":41145,"children":41146},{"style":213},[41147],{"type":31,"value":954},{"type":21,"tag":138,"props":41149,"children":41150},{"style":151},[41151],{"type":31,"value":959},{"type":21,"tag":138,"props":41153,"children":41154},{"style":145},[41155],{"type":31,"value":7537},{"type":21,"tag":138,"props":41157,"children":41158},{"style":261},[41159],{"type":31,"value":41160},"\"Ground state: ",{"type":21,"tag":138,"props":41162,"children":41163},{"style":213},[41164],{"type":31,"value":7547},{"type":21,"tag":138,"props":41166,"children":41167},{"style":151},[41168],{"type":31,"value":41169},"result.energy",{"type":21,"tag":138,"props":41171,"children":41172},{"style":145},[41173],{"type":31,"value":25594},{"type":21,"tag":138,"props":41175,"children":41176},{"style":213},[41177],{"type":31,"value":7556},{"type":21,"tag":138,"props":41179,"children":41180},{"style":261},[41181],{"type":31,"value":41182}," Ha\"",{"type":21,"tag":138,"props":41184,"children":41185},{"style":151},[41186],{"type":31,"value":4637},{"type":21,"tag":138,"props":41188,"children":41189},{"style":219},[41190],{"type":31,"value":41191},"# -1.1372 Ha\n",{"type":21,"tag":39928,"props":41193,"children":41194},{},[],{"type":21,"tag":421,"props":41196,"children":41198},{"id":41197},"量子机器学习概念验证",[41199],{"type":31,"value":41200},"量子机器学习——概念验证",{"type":21,"tag":22,"props":41202,"children":41203},{},[41204,41208],{"type":21,"tag":16815,"props":41205,"children":41206},{},[41207],{"type":31,"value":40986},{"type":31,"value":41209}," 用于分类的量子神经网络（QNN）和量子核方法。",{"type":21,"tag":22,"props":41211,"children":41212},{},[41213,41217],{"type":21,"tag":16815,"props":41214,"children":41215},{},[41216],{"type":31,"value":40996},{"type":31,"value":41218}," 量子核已被证明在玩具数据集上可行。对于实际数据集，尚未证明量子相对经典 ML 具有优势。",{"type":21,"tag":22,"props":41220,"children":41221},{},[41222,41226,41228,41235],{"type":21,"tag":16815,"props":41223,"children":41224},{},[41225],{"type":31,"value":41006},{"type":31,"value":41227}," 研究。“",{"type":21,"tag":26,"props":41229,"children":41232},{"href":41230,"rel":41231},"https:\u002F\u002Farxiv.org\u002Fabs\u002F2109.01aborting",[7136],[41233],{"type":31,"value":41234},"没有免费的午餐",{"type":31,"value":41236},"”问题依然适用——QML 中的量子优势（如果存在）将针对具有特定量子结构的特定数据。",{"type":21,"tag":22,"props":41238,"children":41239},{},[41240,41245],{"type":21,"tag":16815,"props":41241,"children":41242},{},[41243],{"type":31,"value":41244},"正在浮现的现实用例：",{"type":31,"value":41246}," 对于源自量子物理实验的数据集，量子核可能具有内在的量子结构，量子 ML 比经典方法更善于利用这种结构。",{"type":21,"tag":22,"props":41248,"children":41249},{},[41250,41254],{"type":21,"tag":16815,"props":41251,"children":41252},{},[41253],{"type":31,"value":41026},{"type":31,"value":41255}," PennyLane\u002FXanadu（专注 QML）、IBM、Google（Quantum AI）。",{"type":21,"tag":39928,"props":41257,"children":41258},{},[],{"type":21,"tag":421,"props":41260,"children":41262},{"id":41261},"优化基准测试qaoa",[41263],{"type":31,"value":41264},"优化基准测试（QAOA）",{"type":21,"tag":22,"props":41266,"children":41267},{},[41268,41272],{"type":21,"tag":16815,"props":41269,"children":41270},{},[41271],{"type":31,"value":40986},{"type":31,"value":41273}," 将 QAOA 应用于 Max-Cut、投资组合优化、车辆路径规划。",{"type":21,"tag":22,"props":41275,"children":41276},{},[41277,41281,41283,41289],{"type":21,"tag":16815,"props":41278,"children":41279},{},[41280],{"type":31,"value":40996},{"type":31,"value":41282}," QAOA 电路已在真实硬件上运行。在 ",{"type":21,"tag":103,"props":41284,"children":41286},{"className":41285},[],[41287],{"type":31,"value":41288},"p=1",{"type":31,"value":41290}," 时，NISQ 设备上可在 Max-Cut 上实现约 0.75 的近似比。",{"type":21,"tag":22,"props":41292,"children":41293},{},[41294,41298],{"type":21,"tag":16815,"props":41295,"children":41296},{},[41297],{"type":31,"value":41006},{"type":31,"value":41299}," 对于真实规模的问题，尚无法与经典求解器（模拟退火、GUROBI）竞争。对研究和硬件基准测试有价值。",{"type":21,"tag":22,"props":41301,"children":41302},{},[41303,41308,41310,41315],{"type":21,"tag":16815,"props":41304,"children":41305},{},[41306],{"type":31,"value":41307},"何时才重要：",{"type":31,"value":41309}," 当 ",{"type":21,"tag":103,"props":41311,"children":41313},{"className":41312},[],[41314],{"type":31,"value":22},{"type":31,"value":41316}," 大到足以带来显著优势时，电路对 NISQ 设备来说太深了。需要纠错。",{"type":21,"tag":39928,"props":41318,"children":41319},{},[],{"type":21,"tag":421,"props":41321,"children":41323},{"id":41322},"随机电路采样量子霸权主张",[41324],{"type":31,"value":41325},"随机电路采样（“量子霸权”主张）",{"type":21,"tag":22,"props":41327,"children":41328},{},[41329,41333],{"type":21,"tag":16815,"props":41330,"children":41331},{},[41332],{"type":31,"value":40986},{"type":31,"value":41334}," 从随机量子电路中采样。",{"type":21,"tag":22,"props":41336,"children":41337},{},[41338,41342],{"type":21,"tag":16815,"props":41339,"children":41340},{},[41341],{"type":31,"value":40996},{"type":31,"value":41343}," Google（2019 年，Sycamore）、IBM（2023 年，Eagle）、中国团队（2020 年、2021 年）。",{"type":21,"tag":22,"props":41345,"children":41346},{},[41347,41352,41354,41359],{"type":21,"tag":16815,"props":41348,"children":41349},{},[41350],{"type":31,"value":41351},"实用价值：",{"type":31,"value":41353}," 目前没有——随机电路采样没有已知的应用。它是一项硬件基准，表明量子设备能做",{"type":21,"tag":12769,"props":41355,"children":41356},{},[41357],{"type":31,"value":41358},"某些",{"type":31,"value":41360},"经典计算机难以模拟的事情。",{"type":21,"tag":22,"props":41362,"children":41363},{},[41364,41369],{"type":21,"tag":16815,"props":41365,"children":41366},{},[41367],{"type":31,"value":41368},"为何重要：",{"type":31,"value":41370}," 它验证了量子硬件正在正确运行，并且对于某些电路规模，经典模拟正变得难以处理。",{"type":21,"tag":39928,"props":41372,"children":41373},{},[],{"type":21,"tag":41,"props":41375,"children":41377},{"id":41376},"近期能做什么27-年",[41378],{"type":31,"value":41379},"近期能做什么（2–7 年）",{"type":21,"tag":421,"props":41381,"children":41383},{"id":41382},"量子辅助药物研发",[41384],{"type":31,"value":41382},{"type":21,"tag":22,"props":41386,"children":41387},{},[41388,41392],{"type":21,"tag":16815,"props":41389,"children":41390},{},[41391],{"type":31,"value":40986},{"type":31,"value":41393}," 利用量子模拟来建模蛋白质-配体的结合能，预测哪些候选药物值得合成。",{"type":21,"tag":22,"props":41395,"children":41396},{},[41397,41401],{"type":21,"tag":16815,"props":41398,"children":41399},{},[41400],{"type":31,"value":41368},{"type":31,"value":41402}," 每种获批药物的研发成本约为 25 亿美元。通过更好的计算筛选来减少失败的临床试验极具价值。",{"type":21,"tag":22,"props":41404,"children":41405},{},[41406,41411],{"type":21,"tag":16815,"props":41407,"children":41408},{},[41409],{"type":31,"value":41410},"当前状态：",{"type":31,"value":41412}," IBM 及制药合作伙伴（Pfizer、AstraZeneca、JSR）正在量子硬件上对多达约 50 量子比特的分子运行 VQE。仍属演示性质——对于具有商业相关性的分子，经典方法仍然更准确。",{"type":21,"tag":22,"props":41414,"children":41415},{},[41416,41421],{"type":21,"tag":16815,"props":41417,"children":41418},{},[41419],{"type":31,"value":41420},"何时成真：",{"type":31,"value":41422}," 当逻辑量子比特数达到约 1,000–5,000 时。届时量子模拟在关键分子类别上可超越经典方法。目前估计：5–10 年。",{"type":21,"tag":39928,"props":41424,"children":41425},{},[],{"type":21,"tag":421,"props":41427,"children":41429},{"id":41428},"量子金融蒙特卡洛加速",[41430],{"type":31,"value":41431},"量子金融：蒙特卡洛加速",{"type":21,"tag":22,"props":41433,"children":41434},{},[41435,41439,41441,41447,41449,41455],{"type":21,"tag":16815,"props":41436,"children":41437},{},[41438],{"type":31,"value":40986},{"type":31,"value":41440}," 量子振幅估计理论上可将蒙特卡洛积分从 ",{"type":21,"tag":103,"props":41442,"children":41444},{"className":41443},[],[41445],{"type":31,"value":41446},"O(1\u002Fε²)",{"type":31,"value":41448}," 加速到 ",{"type":21,"tag":103,"props":41450,"children":41452},{"className":41451},[],[41453],{"type":31,"value":41454},"O(1\u002Fε)",{"type":31,"value":41456},"——这种二次加速对期权定价和风险模拟极为重要。",{"type":21,"tag":22,"props":41458,"children":41459},{},[41460,41464],{"type":21,"tag":16815,"props":41461,"children":41462},{},[41463],{"type":31,"value":41410},{"type":31,"value":41465}," Goldman Sachs、JPMorgan 和 BBVA 正在积极研究这一点。已完成小规模演示。尚未达到生产规模。",{"type":21,"tag":22,"props":41467,"children":41468},{},[41469,41473],{"type":21,"tag":16815,"props":41470,"children":41471},{},[41472],{"type":31,"value":41420},{"type":31,"value":41474}," 需要适度的容错能力（数千个逻辑量子比特）。对于实用的金融加速，估计需要 5–15 年。",{"type":21,"tag":39928,"props":41476,"children":41477},{},[],{"type":21,"tag":421,"props":41479,"children":41481},{"id":41480},"材料科学电池与太阳能电池设计",[41482],{"type":31,"value":41483},"材料科学：电池与太阳能电池设计",{"type":21,"tag":22,"props":41485,"children":41486},{},[41487,41491],{"type":21,"tag":16815,"props":41488,"children":41489},{},[41490],{"type":31,"value":40986},{"type":31,"value":41492}," 对锂空气电池、固氮催化剂（替代哈伯-博施法）以及光伏材料的候选材料进行量子模拟。",{"type":21,"tag":22,"props":41494,"children":41495},{},[41496,41500],{"type":21,"tag":16815,"props":41497,"children":41498},{},[41499],{"type":31,"value":41368},{"type":31,"value":41501}," 更好的电池 = 电动车革命。高效的 N₂ 固定 = 大幅降低化肥的能耗（目前占全球能源消耗的 1–2%）。这些都是万亿美元级的问题。",{"type":21,"tag":22,"props":41503,"children":41504},{},[41505,41509],{"type":21,"tag":16815,"props":41506,"children":41507},{},[41508],{"type":31,"value":41410},{"type":31,"value":41510}," Microsoft（StationQ）、IBM，以及 QunaSys 和 Good Chemistry 等初创公司正在追求这一方向。属于早期研究阶段。",{"type":21,"tag":22,"props":41512,"children":41513},{},[41514,41518],{"type":21,"tag":16815,"props":41515,"children":41516},{},[41517],{"type":31,"value":41420},{"type":31,"value":41519}," 5–20 年，取决于目标精度和分子大小。",{"type":21,"tag":39928,"props":41521,"children":41522},{},[],{"type":21,"tag":41,"props":41524,"children":41526},{"id":41525},"什么需要完整的容错能力720-年以上",[41527],{"type":31,"value":41528},"什么需要完整的容错能力（7–20 年以上）",{"type":21,"tag":421,"props":41530,"children":41532},{"id":41531},"用-shor-算法破解-rsaecc",[41533],{"type":31,"value":41534},"用 Shor 算法破解 RSA\u002FECC",{"type":21,"tag":22,"props":41536,"children":41537},{},[41538,41542],{"type":21,"tag":16815,"props":41539,"children":41540},{},[41541],{"type":31,"value":40986},{"type":31,"value":41543}," 分解 RSA-2048 背后的大素数。",{"type":21,"tag":22,"props":41545,"children":41546},{},[41547,41552],{"type":21,"tag":16815,"props":41548,"children":41549},{},[41550],{"type":31,"value":41551},"所需条件：",{"type":31,"value":41553}," 约 4,000 个逻辑量子比特（每个需要约 1,000 个物理量子比特 = 约 400 万个物理量子比特）。当前状态：数百个物理量子比特，且噪声很大。",{"type":21,"tag":22,"props":41555,"children":41556},{},[41557,41562],{"type":21,"tag":16815,"props":41558,"children":41559},{},[41560],{"type":31,"value":41561},"时间线：",{"type":31,"value":41563}," 大多数估计认为威胁 RSA 的量子计算机将在 2030–2040 年出现。有人说永远不会——在这种规模下，工程挑战可能无法解决。",{"type":21,"tag":22,"props":41565,"children":41566},{},[41567,41572,41574,41579],{"type":21,"tag":16815,"props":41568,"children":41569},{},[41570],{"type":31,"value":41571},"现在该做什么：",{"type":31,"value":41573}," 无论时间线如何，",{"type":21,"tag":26,"props":41575,"children":41576},{"href":3896},[41577],{"type":31,"value":41578},"迁移到后量子密码学",{"type":31,"value":41580},"。这一转变需要数年时间，而 HNDL 攻击正在当下发生。",{"type":21,"tag":39928,"props":41582,"children":41583},{},[],{"type":21,"tag":421,"props":41585,"children":41587},{"id":41586},"大规模的-grover-搜索",[41588],{"type":31,"value":41589},"大规模的 Grover 搜索",{"type":21,"tag":22,"props":41591,"children":41592},{},[41593,41597],{"type":21,"tag":16815,"props":41594,"children":41595},{},[41596],{"type":31,"value":40986},{"type":31,"value":41598}," 为搜索无序数据库、解决 NP 难问题提供二次加速。",{"type":21,"tag":22,"props":41600,"children":41601},{},[41602,41606],{"type":21,"tag":16815,"props":41603,"children":41604},{},[41605],{"type":31,"value":41551},{"type":31,"value":41607}," 深层的纠错电路。二次加速意味着对于大 N，√N 仍然非常庞大——常数因子必须有利于量子硬件。",{"type":21,"tag":22,"props":41609,"children":41610},{},[41611,41615],{"type":21,"tag":16815,"props":41612,"children":41613},{},[41614],{"type":31,"value":41561},{"type":31,"value":41616}," 长期研究。",{"type":21,"tag":39928,"props":41618,"children":41619},{},[],{"type":21,"tag":421,"props":41621,"children":41623},{"id":41622},"气候建模与流体动力学",[41624],{"type":31,"value":41622},{"type":21,"tag":22,"props":41626,"children":41627},{},[41628,41632],{"type":21,"tag":16815,"props":41629,"children":41630},{},[41631],{"type":31,"value":40986},{"type":31,"value":41633}," 用于求解微分方程的量子算法（HHL 算法）可加速气候模拟、流体动力学和金融建模。",{"type":21,"tag":22,"props":41635,"children":41636},{},[41637,41641],{"type":21,"tag":16815,"props":41638,"children":41639},{},[41640],{"type":31,"value":41551},{"type":31,"value":41642}," 完整的容错能力。HHL 算法有巨大的开销，即使在理论上，其实际优势也远不明朗。",{"type":21,"tag":22,"props":41644,"children":41645},{},[41646,41650],{"type":21,"tag":16815,"props":41647,"children":41648},{},[41649],{"type":31,"value":41561},{"type":31,"value":41651}," 这是最具推测性的一类。用于求解 PDE 的量子优势在实践中仍未得到证实。",{"type":21,"tag":39928,"props":41653,"children":41654},{},[],{"type":21,"tag":41,"props":41656,"children":41658},{"id":41657},"诚实的结论",[41659],{"type":31,"value":41657},{"type":21,"tag":3162,"props":41661,"children":41662},{},[41663,41684],{"type":21,"tag":3166,"props":41664,"children":41665},{},[41666],{"type":21,"tag":3170,"props":41667,"children":41668},{},[41669,41674,41679],{"type":21,"tag":3174,"props":41670,"children":41671},{},[41672],{"type":31,"value":41673},"应用",{"type":21,"tag":3174,"props":41675,"children":41676},{},[41677],{"type":31,"value":41678},"当今是否有量子优势？",{"type":21,"tag":3174,"props":41680,"children":41681},{},[41682],{"type":31,"value":41683},"时间范围",{"type":21,"tag":3188,"props":41685,"children":41686},{},[41687,41705,41723,41740,41758,41776,41792,41809],{"type":21,"tag":3170,"props":41688,"children":41689},{},[41690,41695,41700],{"type":21,"tag":3195,"props":41691,"children":41692},{},[41693],{"type":31,"value":41694},"随机电路采样",{"type":21,"tag":3195,"props":41696,"children":41697},{},[41698],{"type":31,"value":41699},"微乎其微，无应用",{"type":21,"tag":3195,"props":41701,"children":41702},{},[41703],{"type":31,"value":41704},"当下（仅研究）",{"type":21,"tag":3170,"props":41706,"children":41707},{},[41708,41713,41718],{"type":21,"tag":3195,"props":41709,"children":41710},{},[41711],{"type":31,"value":41712},"小分子的 VQE",{"type":21,"tag":3195,"props":41714,"children":41715},{},[41716],{"type":31,"value":41717},"无经典优势",{"type":21,"tag":3195,"props":41719,"children":41720},{},[41721],{"type":31,"value":41722},"3–5 年可用于有用的分子",{"type":21,"tag":3170,"props":41724,"children":41725},{},[41726,41731,41735],{"type":21,"tag":3195,"props":41727,"children":41728},{},[41729],{"type":31,"value":41730},"用于优化的 QAOA",{"type":21,"tag":3195,"props":41732,"children":41733},{},[41734],{"type":31,"value":41717},{"type":21,"tag":3195,"props":41736,"children":41737},{},[41738],{"type":31,"value":41739},"5–10 年",{"type":21,"tag":3170,"props":41741,"children":41742},{},[41743,41748,41753],{"type":21,"tag":3195,"props":41744,"children":41745},{},[41746],{"type":31,"value":41747},"QML \u002F 量子核",{"type":21,"tag":3195,"props":41749,"children":41750},{},[41751],{"type":31,"value":41752},"对真实数据无优势",{"type":21,"tag":3195,"props":41754,"children":41755},{},[41756],{"type":31,"value":41757},"不确定",{"type":21,"tag":3170,"props":41759,"children":41760},{},[41761,41766,41771],{"type":21,"tag":3195,"props":41762,"children":41763},{},[41764],{"type":31,"value":41765},"药物研发",{"type":21,"tag":3195,"props":41767,"children":41768},{},[41769],{"type":31,"value":41770},"无",{"type":21,"tag":3195,"props":41772,"children":41773},{},[41774],{"type":31,"value":41775},"7–10 年",{"type":21,"tag":3170,"props":41777,"children":41778},{},[41779,41784,41788],{"type":21,"tag":3195,"props":41780,"children":41781},{},[41782],{"type":31,"value":41783},"金融（蒙特卡洛）",{"type":21,"tag":3195,"props":41785,"children":41786},{},[41787],{"type":31,"value":41770},{"type":21,"tag":3195,"props":41789,"children":41790},{},[41791],{"type":31,"value":41739},{"type":21,"tag":3170,"props":41793,"children":41794},{},[41795,41800,41804],{"type":21,"tag":3195,"props":41796,"children":41797},{},[41798],{"type":31,"value":41799},"材料模拟",{"type":21,"tag":3195,"props":41801,"children":41802},{},[41803],{"type":31,"value":41770},{"type":21,"tag":3195,"props":41805,"children":41806},{},[41807],{"type":31,"value":41808},"7–15 年",{"type":21,"tag":3170,"props":41810,"children":41811},{},[41812,41817,41821],{"type":21,"tag":3195,"props":41813,"children":41814},{},[41815],{"type":31,"value":41816},"密码学（Shor 算法）",{"type":21,"tag":3195,"props":41818,"children":41819},{},[41820],{"type":31,"value":41770},{"type":21,"tag":3195,"props":41822,"children":41823},{},[41824],{"type":31,"value":41825},"10–20 年以上",{"type":21,"tag":22,"props":41827,"children":41828},{},[41829,41831,41835,41837,41842],{"type":31,"value":41830},"最直接的量子价值",{"type":21,"tag":16815,"props":41832,"children":41833},{},[41834],{"type":31,"value":40689},{"type":31,"value":41836},"在于运行算法——而在于",{"type":21,"tag":16815,"props":41838,"children":41839},{},[41840],{"type":31,"value":41841},"尽早学习这个领域",{"type":31,"value":41843},"。IBM、Google、NVIDIA、AWS、IonQ 以及数十家初创公司都在招聘量子工程师。这套技能——电路设计、变分算法、量子-经典混合工作流——确实稀缺。这一缺口终将缩小，而那些尽早学习的人将占据有利位置。",{"type":21,"tag":22,"props":41845,"children":41846},{},[41847,41849,41854],{"type":31,"value":41848},"第二直接的价值是",{"type":21,"tag":16815,"props":41850,"children":41851},{},[41852],{"type":31,"value":41853},"后量子密码学",{"type":31,"value":41855},"——这是一个带有量子威胁的经典软件问题，所需采取的行动明确而紧迫。",{"type":21,"tag":22,"props":41857,"children":41858},{},[41859],{"type":31,"value":41860},"至于其他一切：硬件是真实的，进展是真实的，炒作为时过早，而发展轨迹陡峭向上。",{"type":21,"tag":22,"props":41862,"children":41863},{},[41864,41869,41870,41875,41876,41881,41882],{"type":21,"tag":16815,"props":41865,"children":41866},{},[41867],{"type":31,"value":41868},"探索硬件：",{"type":31,"value":22965},{"type":21,"tag":26,"props":41871,"children":41872},{"href":1106},[41873],{"type":31,"value":41874},"免费 QPU 使用",{"type":31,"value":28968},{"type":21,"tag":26,"props":41877,"children":41878},{"href":3304},[41879],{"type":31,"value":41880},"比较所有模拟器",{"type":31,"value":28968},{"type":21,"tag":26,"props":41883,"children":41884},{"href":16304},[41885],{"type":31,"value":41886},"量子用例深度解析",{"type":21,"tag":1174,"props":41888,"children":41889},{},[41890],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":41892},[41893,41894,41900,41905,41910],{"id":40918,"depth":167,"text":40918},{"id":40969,"depth":167,"text":40972,"children":41895},[41896,41897,41898,41899],{"id":40975,"depth":189,"text":40978},{"id":41197,"depth":189,"text":41200},{"id":41261,"depth":189,"text":41264},{"id":41322,"depth":189,"text":41325},{"id":41376,"depth":167,"text":41379,"children":41901},[41902,41903,41904],{"id":41382,"depth":189,"text":41382},{"id":41428,"depth":189,"text":41431},{"id":41480,"depth":189,"text":41483},{"id":41525,"depth":167,"text":41528,"children":41906},[41907,41908,41909],{"id":41531,"depth":189,"text":41534},{"id":41586,"depth":189,"text":41589},{"id":41622,"depth":189,"text":41622},{"id":41657,"depth":167,"text":41657},"content:zh:blog:quantum-use-cases-2026.md","zh\u002Fblog\u002Fquantum-use-cases-2026.md","zh\u002Fblog\u002Fquantum-use-cases-2026",{"_path":41915,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":41916,"description":41917,"date":41918,"author":11,"tags":41919,"readingTime":233,"body":41920,"_type":1193,"_id":42746,"_source":1195,"_file":42747,"_stem":42748,"_extension":1198},"\u002Fzh\u002Fblog\u002Fgetting-started-free-quantum-computing","2026 年免费量子计算入门指南","一份完整的新手指南，教你如何免费运行第一个量子电路——无需昂贵的硬件，也无需付费订阅。","2026-03-10",[3054,16880,14],{"type":18,"children":41921,"toc":42738},[41922,41927,41932,41937,41972,41977,41982,41987,42012,42023,42229,42262,42268,42273,42346,42365,42371,42383,42410,42495,42503,42508,42514,42627,42638,42643,42648,42697,42713,42716,42734],{"type":21,"tag":22,"props":41923,"children":41924},{},[41925],{"type":31,"value":41926},"量子计算不再被锁在价值数百万美元的研究实验室设备背后。如今，你可以在一台真正的 127 量子比特机器上编写并运行量子电路——完全免费——就在你的笔记本电脑上。本指南将带你了解当下可用的每一个选项。",{"type":21,"tag":41,"props":41928,"children":41930},{"id":41929},"你真正需要的东西",[41931],{"type":31,"value":41929},{"type":21,"tag":22,"props":41933,"children":41934},{},[41935],{"type":31,"value":41936},"要开始上手，你只需要三样东西：",{"type":21,"tag":67,"props":41938,"children":41939},{},[41940,41950,41962],{"type":21,"tag":71,"props":41941,"children":41942},{},[41943,41945],{"type":31,"value":41944},"在你的机器上安装 ",{"type":21,"tag":16815,"props":41946,"children":41947},{},[41948],{"type":31,"value":41949},"Python 3.9+",{"type":21,"tag":71,"props":41951,"children":41952},{},[41953,41955,41960],{"type":31,"value":41954},"在某个量子云平台上注册",{"type":21,"tag":16815,"props":41956,"children":41957},{},[41958],{"type":31,"value":41959},"一个免费账户",{"type":31,"value":41961},"（IBM Quantum 是最简单的）",{"type":21,"tag":71,"props":41963,"children":41964},{},[41965,41970],{"type":21,"tag":16815,"props":41966,"children":41967},{},[41968],{"type":31,"value":41969},"五分钟",{"type":31,"value":41971},"时间来运行你的第一个贝尔态",{"type":21,"tag":22,"props":41973,"children":41974},{},[41975],{"type":31,"value":41976},"就这么多。不需要 GPU，不需要特殊硬件，不需要信用卡。",{"type":21,"tag":41,"props":41978,"children":41980},{"id":41979},"你的第一个量子电路",[41981],{"type":31,"value":41979},{"type":21,"tag":22,"props":41983,"children":41984},{},[41985],{"type":31,"value":41986},"安装 Qiskit 及其模拟器：",{"type":21,"tag":128,"props":41988,"children":41989},{"className":4512,"code":33587,"language":4511,"meta":7,"style":7},[41990],{"type":21,"tag":103,"props":41991,"children":41992},{"__ignoreMap":7},[41993],{"type":21,"tag":138,"props":41994,"children":41995},{"class":140,"line":141},[41996,42000,42004,42008],{"type":21,"tag":138,"props":41997,"children":41998},{"style":4522},[41999],{"type":31,"value":4525},{"type":21,"tag":138,"props":42001,"children":42002},{"style":261},[42003],{"type":31,"value":4530},{"type":21,"tag":138,"props":42005,"children":42006},{"style":261},[42007],{"type":31,"value":33607},{"type":21,"tag":138,"props":42009,"children":42010},{"style":261},[42011],{"type":31,"value":33612},{"type":21,"tag":22,"props":42013,"children":42014},{},[42015,42017,42021],{"type":31,"value":42016},"现在创建一个",{"type":21,"tag":16815,"props":42018,"children":42019},{},[42020],{"type":31,"value":491},{"type":31,"value":42022},"——这个典型的双量子比特电路展示了叠加和纠缠：",{"type":21,"tag":128,"props":42024,"children":42026},{"className":130,"code":42025,"language":132,"meta":7,"style":7},"from qiskit import QuantumCircuit\nfrom qiskit_aer import AerSimulator\n\n# Build the circuit\nqc = QuantumCircuit(2)\nqc.h(0)       # Hadamard — puts qubit 0 into superposition\nqc.cx(0, 1)   # CNOT — entangles qubit 1 with qubit 0\nqc.measure_all()\n\n# Run locally on a simulator\nresult = AerSimulator().run(qc, shots=1000).result()\nprint(result.get_counts())\n# {'00': 503, '11': 497}\n",[42027],{"type":21,"tag":103,"props":42028,"children":42029},{"__ignoreMap":7},[42030,42049,42068,42075,42083,42106,42127,42155,42162,42169,42177,42209,42221],{"type":21,"tag":138,"props":42031,"children":42032},{"class":140,"line":141},[42033,42037,42041,42045],{"type":21,"tag":138,"props":42034,"children":42035},{"style":145},[42036],{"type":31,"value":148},{"type":21,"tag":138,"props":42038,"children":42039},{"style":151},[42040],{"type":31,"value":154},{"type":21,"tag":138,"props":42042,"children":42043},{"style":145},[42044],{"type":31,"value":159},{"type":21,"tag":138,"props":42046,"children":42047},{"style":151},[42048],{"type":31,"value":6282},{"type":21,"tag":138,"props":42050,"children":42051},{"class":140,"line":167},[42052,42056,42060,42064],{"type":21,"tag":138,"props":42053,"children":42054},{"style":145},[42055],{"type":31,"value":148},{"type":21,"tag":138,"props":42057,"children":42058},{"style":151},[42059],{"type":31,"value":177},{"type":21,"tag":138,"props":42061,"children":42062},{"style":145},[42063],{"type":31,"value":159},{"type":21,"tag":138,"props":42065,"children":42066},{"style":151},[42067],{"type":31,"value":186},{"type":21,"tag":138,"props":42069,"children":42070},{"class":140,"line":189},[42071],{"type":21,"tag":138,"props":42072,"children":42073},{"emptyLinePlaceholder":193},[42074],{"type":31,"value":196},{"type":21,"tag":138,"props":42076,"children":42077},{"class":140,"line":199},[42078],{"type":21,"tag":138,"props":42079,"children":42080},{"style":219},[42081],{"type":31,"value":42082},"# Build the circuit\n",{"type":21,"tag":138,"props":42084,"children":42085},{"class":140,"line":225},[42086,42090,42094,42098,42102],{"type":21,"tag":138,"props":42087,"children":42088},{"style":151},[42089],{"type":31,"value":348},{"type":21,"tag":138,"props":42091,"children":42092},{"style":145},[42093],{"type":31,"value":210},{"type":21,"tag":138,"props":42095,"children":42096},{"style":151},[42097],{"type":31,"value":6305},{"type":21,"tag":138,"props":42099,"children":42100},{"style":213},[42101],{"type":31,"value":292},{"type":21,"tag":138,"props":42103,"children":42104},{"style":151},[42105],{"type":31,"value":269},{"type":21,"tag":138,"props":42107,"children":42108},{"class":140,"line":233},[42109,42113,42117,42122],{"type":21,"tag":138,"props":42110,"children":42111},{"style":151},[42112],{"type":31,"value":441},{"type":21,"tag":138,"props":42114,"children":42115},{"style":213},[42116],{"type":31,"value":406},{"type":21,"tag":138,"props":42118,"children":42119},{"style":151},[42120],{"type":31,"value":42121},")       ",{"type":21,"tag":138,"props":42123,"children":42124},{"style":219},[42125],{"type":31,"value":42126},"# Hadamard — puts qubit 0 into superposition\n",{"type":21,"tag":138,"props":42128,"children":42129},{"class":140,"line":272},[42130,42134,42138,42142,42146,42150],{"type":21,"tag":138,"props":42131,"children":42132},{"style":151},[42133],{"type":31,"value":457},{"type":21,"tag":138,"props":42135,"children":42136},{"style":213},[42137],{"type":31,"value":406},{"type":21,"tag":138,"props":42139,"children":42140},{"style":151},[42141],{"type":31,"value":258},{"type":21,"tag":138,"props":42143,"children":42144},{"style":213},[42145],{"type":31,"value":327},{"type":21,"tag":138,"props":42147,"children":42148},{"style":151},[42149],{"type":31,"value":28615},{"type":21,"tag":138,"props":42151,"children":42152},{"style":219},[42153],{"type":31,"value":42154},"# CNOT — entangles qubit 1 with qubit 0\n",{"type":21,"tag":138,"props":42156,"children":42157},{"class":140,"line":308},[42158],{"type":21,"tag":138,"props":42159,"children":42160},{"style":151},[42161],{"type":31,"value":34882},{"type":21,"tag":138,"props":42163,"children":42164},{"class":140,"line":16},[42165],{"type":21,"tag":138,"props":42166,"children":42167},{"emptyLinePlaceholder":193},[42168],{"type":31,"value":196},{"type":21,"tag":138,"props":42170,"children":42171},{"class":140,"line":360},[42172],{"type":21,"tag":138,"props":42173,"children":42174},{"style":219},[42175],{"type":31,"value":42176},"# Run locally on a simulator\n",{"type":21,"tag":138,"props":42178,"children":42179},{"class":140,"line":368},[42180,42184,42188,42193,42197,42201,42205],{"type":21,"tag":138,"props":42181,"children":42182},{"style":151},[42183],{"type":31,"value":4881},{"type":21,"tag":138,"props":42185,"children":42186},{"style":145},[42187],{"type":31,"value":210},{"type":21,"tag":138,"props":42189,"children":42190},{"style":151},[42191],{"type":31,"value":42192}," AerSimulator().run(qc, ",{"type":21,"tag":138,"props":42194,"children":42195},{"style":929},[42196],{"type":31,"value":932},{"type":21,"tag":138,"props":42198,"children":42199},{"style":145},[42200],{"type":31,"value":210},{"type":21,"tag":138,"props":42202,"children":42203},{"style":213},[42204],{"type":31,"value":1736},{"type":21,"tag":138,"props":42206,"children":42207},{"style":151},[42208],{"type":31,"value":9223},{"type":21,"tag":138,"props":42210,"children":42211},{"class":140,"line":377},[42212,42216],{"type":21,"tag":138,"props":42213,"children":42214},{"style":213},[42215],{"type":31,"value":954},{"type":21,"tag":138,"props":42217,"children":42218},{"style":151},[42219],{"type":31,"value":42220},"(result.get_counts())\n",{"type":21,"tag":138,"props":42222,"children":42223},{"class":140,"line":386},[42224],{"type":21,"tag":138,"props":42225,"children":42226},{"style":219},[42227],{"type":31,"value":42228},"# {'00': 503, '11': 497}\n",{"type":21,"tag":22,"props":42230,"children":42231},{},[42232,42234,42239,42240,42245,42247,42253,42255,42260],{"type":31,"value":42233},"输出结果——",{"type":21,"tag":103,"props":42235,"children":42237},{"className":42236},[],[42238],{"type":31,"value":27552},{"type":31,"value":500},{"type":21,"tag":103,"props":42241,"children":42243},{"className":42242},[],[42244],{"type":31,"value":27559},{"type":31,"value":42246}," 的计数大致相等，从不出现 ",{"type":21,"tag":103,"props":42248,"children":42250},{"className":42249},[],[42251],{"type":31,"value":42252},"01",{"type":31,"value":42254}," 或 ",{"type":21,"tag":103,"props":42256,"children":42258},{"className":42257},[],[42259],{"type":31,"value":14075},{"type":31,"value":42261},"——正是纠缠的标志。测量其中一个量子比特，你就能立即知道另一个的状态，无论它们之间相距多远。",{"type":21,"tag":41,"props":42263,"children":42265},{"id":42264},"免费模拟器无需账户",[42266],{"type":31,"value":42267},"免费模拟器：无需账户",{"type":21,"tag":22,"props":42269,"children":42270},{},[42271],{"type":31,"value":42272},"所有主流 SDK 都内置了强大的本地模拟器，可在你的 CPU 或 GPU 上运行，无需注册：",{"type":21,"tag":128,"props":42274,"children":42276},{"className":4512,"code":42275,"language":4511,"meta":7,"style":7},"pip install qiskit qiskit-aer   # IBM Qiskit + Aer simulator\npip install cirq                 # Google Cirq\npip install pennylane            # PennyLane\n",[42277],{"type":21,"tag":103,"props":42278,"children":42279},{"__ignoreMap":7},[42280,42305,42326],{"type":21,"tag":138,"props":42281,"children":42282},{"class":140,"line":141},[42283,42287,42291,42295,42300],{"type":21,"tag":138,"props":42284,"children":42285},{"style":4522},[42286],{"type":31,"value":4525},{"type":21,"tag":138,"props":42288,"children":42289},{"style":261},[42290],{"type":31,"value":4530},{"type":21,"tag":138,"props":42292,"children":42293},{"style":261},[42294],{"type":31,"value":33607},{"type":21,"tag":138,"props":42296,"children":42297},{"style":261},[42298],{"type":31,"value":42299}," qiskit-aer",{"type":21,"tag":138,"props":42301,"children":42302},{"style":219},[42303],{"type":31,"value":42304},"   # IBM Qiskit + Aer simulator\n",{"type":21,"tag":138,"props":42306,"children":42307},{"class":140,"line":167},[42308,42312,42316,42321],{"type":21,"tag":138,"props":42309,"children":42310},{"style":4522},[42311],{"type":31,"value":4525},{"type":21,"tag":138,"props":42313,"children":42314},{"style":261},[42315],{"type":31,"value":4530},{"type":21,"tag":138,"props":42317,"children":42318},{"style":261},[42319],{"type":31,"value":42320}," cirq",{"type":21,"tag":138,"props":42322,"children":42323},{"style":219},[42324],{"type":31,"value":42325},"                 # Google Cirq\n",{"type":21,"tag":138,"props":42327,"children":42328},{"class":140,"line":189},[42329,42333,42337,42341],{"type":21,"tag":138,"props":42330,"children":42331},{"style":4522},[42332],{"type":31,"value":4525},{"type":21,"tag":138,"props":42334,"children":42335},{"style":261},[42336],{"type":31,"value":4530},{"type":21,"tag":138,"props":42338,"children":42339},{"style":261},[42340],{"type":31,"value":9045},{"type":21,"tag":138,"props":42342,"children":42343},{"style":219},[42344],{"type":31,"value":42345},"            # PennyLane\n",{"type":21,"tag":22,"props":42347,"children":42348},{},[42349,42351,42357,42359,42364],{"type":31,"value":42350},"每一个都能轻松处理 20–30 量子比特的电路。对于大型电路或 GPU 加速，",{"type":21,"tag":26,"props":42352,"children":42354},{"href":42353},"\u002Fsdks\u002Fcudaq",[42355],{"type":31,"value":42356},"NVIDIA CUDA-Q",{"type":31,"value":42358}," 可以在单块 GPU 上模拟 34 个以上的量子比特。详细比较请参阅完整的",{"type":21,"tag":26,"props":42360,"children":42361},{"href":3304},[42362],{"type":31,"value":42363},"模拟器指南",{"type":31,"value":3120},{"type":21,"tag":41,"props":42366,"children":42368},{"id":42367},"免费的真实硬件ibm-quantum",[42369],{"type":31,"value":42370},"免费的真实硬件：IBM Quantum",{"type":21,"tag":22,"props":42372,"children":42373},{},[42374,42376,42381],{"type":31,"value":42375},"IBM Quantum 为任何拥有 IBM ID 的人提供对真实量子处理器的",{"type":21,"tag":16815,"props":42377,"children":42378},{},[42379],{"type":31,"value":42380},"完全免费",{"type":31,"value":42382},"访问：",{"type":21,"tag":67,"props":42384,"children":42385},{},[42386,42400,42405],{"type":21,"tag":71,"props":42387,"children":42388},{},[42389,42391,42398],{"type":31,"value":42390},"访问 ",{"type":21,"tag":26,"props":42392,"children":42395},{"href":42393,"rel":42394},"https:\u002F\u002Fquantum.ibm.com\u002F",[7136],[42396],{"type":31,"value":42397},"quantum.ibm.com",{"type":31,"value":42399}," 并创建一个免费账户",{"type":21,"tag":71,"props":42401,"children":42402},{},[42403],{"type":31,"value":42404},"从账户设置中复制你的 API 令牌",{"type":21,"tag":71,"props":42406,"children":42407},{},[42408],{"type":31,"value":42409},"用你的令牌配置 Qiskit：",{"type":21,"tag":128,"props":42411,"children":42413},{"className":130,"code":42412,"language":132,"meta":7,"style":7},"from qiskit_ibm_runtime import QiskitRuntimeService\n\nQiskitRuntimeService.save_account(\n    channel=\"ibm_quantum\",\n    token=\"YOUR_TOKEN_HERE\"\n)\n",[42414],{"type":21,"tag":103,"props":42415,"children":42416},{"__ignoreMap":7},[42417,42436,42443,42451,42471,42488],{"type":21,"tag":138,"props":42418,"children":42419},{"class":140,"line":141},[42420,42424,42428,42432],{"type":21,"tag":138,"props":42421,"children":42422},{"style":145},[42423],{"type":31,"value":148},{"type":21,"tag":138,"props":42425,"children":42426},{"style":151},[42427],{"type":31,"value":9718},{"type":21,"tag":138,"props":42429,"children":42430},{"style":145},[42431],{"type":31,"value":159},{"type":21,"tag":138,"props":42433,"children":42434},{"style":151},[42435],{"type":31,"value":9727},{"type":21,"tag":138,"props":42437,"children":42438},{"class":140,"line":167},[42439],{"type":21,"tag":138,"props":42440,"children":42441},{"emptyLinePlaceholder":193},[42442],{"type":31,"value":196},{"type":21,"tag":138,"props":42444,"children":42445},{"class":140,"line":189},[42446],{"type":21,"tag":138,"props":42447,"children":42448},{"style":151},[42449],{"type":31,"value":42450},"QiskitRuntimeService.save_account(\n",{"type":21,"tag":138,"props":42452,"children":42453},{"class":140,"line":199},[42454,42459,42463,42467],{"type":21,"tag":138,"props":42455,"children":42456},{"style":929},[42457],{"type":31,"value":42458},"    channel",{"type":21,"tag":138,"props":42460,"children":42461},{"style":145},[42462],{"type":31,"value":210},{"type":21,"tag":138,"props":42464,"children":42465},{"style":261},[42466],{"type":31,"value":9764},{"type":21,"tag":138,"props":42468,"children":42469},{"style":151},[42470],{"type":31,"value":4824},{"type":21,"tag":138,"props":42472,"children":42473},{"class":140,"line":225},[42474,42479,42483],{"type":21,"tag":138,"props":42475,"children":42476},{"style":929},[42477],{"type":31,"value":42478},"    token",{"type":21,"tag":138,"props":42480,"children":42481},{"style":145},[42482],{"type":31,"value":210},{"type":21,"tag":138,"props":42484,"children":42485},{"style":261},[42486],{"type":31,"value":42487},"\"YOUR_TOKEN_HERE\"\n",{"type":21,"tag":138,"props":42489,"children":42490},{"class":140,"line":233},[42491],{"type":21,"tag":138,"props":42492,"children":42493},{"style":151},[42494],{"type":31,"value":269},{"type":21,"tag":67,"props":42496,"children":42497},{"start":199},[42498],{"type":21,"tag":71,"props":42499,"children":42500},{},[42501],{"type":31,"value":42502},"向 IBM 的任意免费公共 QPU 提交作业",{"type":21,"tag":22,"props":42504,"children":42505},{},[42506],{"type":31,"value":42507},"公共系统的排队时间通常从几分钟到几小时不等。你是在与全世界的研究人员和学生共享运行时间——这是唯一的门槛。",{"type":21,"tag":41,"props":42509,"children":42511},{"id":42510},"选择你的第一个-sdk",[42512],{"type":31,"value":42513},"选择你的第一个 SDK",{"type":21,"tag":3162,"props":42515,"children":42516},{},[42517,42538],{"type":21,"tag":3166,"props":42518,"children":42519},{},[42520],{"type":21,"tag":3170,"props":42521,"children":42522},{},[42523,42528,42533],{"type":21,"tag":3174,"props":42524,"children":42525},{},[42526],{"type":31,"value":42527},"SDK",{"type":21,"tag":3174,"props":42529,"children":42530},{},[42531],{"type":31,"value":42532},"最适合",{"type":21,"tag":3174,"props":42534,"children":42535},{},[42536],{"type":31,"value":42537},"免费层级",{"type":21,"tag":3188,"props":42539,"children":42540},{},[42541,42559,42576,42593,42610],{"type":21,"tag":3170,"props":42542,"children":42543},{},[42544,42549,42554],{"type":21,"tag":3195,"props":42545,"children":42546},{},[42547],{"type":31,"value":42548},"IBM Qiskit",{"type":21,"tag":3195,"props":42550,"children":42551},{},[42552],{"type":31,"value":42553},"通用用途、真实硬件",{"type":21,"tag":3195,"props":42555,"children":42556},{},[42557],{"type":31,"value":42558},"完整——本地 + 真实 QPU",{"type":21,"tag":3170,"props":42560,"children":42561},{},[42562,42566,42571],{"type":21,"tag":3195,"props":42563,"children":42564},{},[42565],{"type":31,"value":4487},{"type":21,"tag":3195,"props":42567,"children":42568},{},[42569],{"type":31,"value":42570},"量子机器学习、梯度",{"type":21,"tag":3195,"props":42572,"children":42573},{},[42574],{"type":31,"value":42575},"完整——本地模拟器",{"type":21,"tag":3170,"props":42577,"children":42578},{},[42579,42584,42589],{"type":21,"tag":3195,"props":42580,"children":42581},{},[42582],{"type":31,"value":42583},"Google Cirq",{"type":21,"tag":3195,"props":42585,"children":42586},{},[42587],{"type":31,"value":42588},"NISQ 研究",{"type":21,"tag":3195,"props":42590,"children":42591},{},[42592],{"type":31,"value":42575},{"type":21,"tag":3170,"props":42594,"children":42595},{},[42596,42600,42605],{"type":21,"tag":3195,"props":42597,"children":42598},{},[42599],{"type":31,"value":3669},{"type":21,"tag":3195,"props":42601,"children":42602},{},[42603],{"type":31,"value":42604},"AWS 集成",{"type":21,"tag":3195,"props":42606,"children":42607},{},[42608],{"type":31,"value":42609},"免费本地模拟，云端付费",{"type":21,"tag":3170,"props":42611,"children":42612},{},[42613,42617,42622],{"type":21,"tag":3195,"props":42614,"children":42615},{},[42616],{"type":31,"value":42356},{"type":21,"tag":3195,"props":42618,"children":42619},{},[42620],{"type":31,"value":42621},"GPU 加速",{"type":21,"tag":3195,"props":42623,"children":42624},{},[42625],{"type":31,"value":42626},"完整——本地 GPU",{"type":21,"tag":22,"props":42628,"children":42629},{},[42630,42632,42636],{"type":31,"value":42631},"对于大多数初学者来说，",{"type":21,"tag":16815,"props":42633,"children":42634},{},[42635],{"type":31,"value":14},{"type":31,"value":42637}," 是最佳起点——它拥有最大的社区、最丰富的文档，以及对真实 IBM 硬件的直接访问。",{"type":21,"tag":41,"props":42639,"children":42641},{"id":42640},"接下来构建什么",[42642],{"type":31,"value":42640},{"type":21,"tag":22,"props":42644,"children":42645},{},[42646],{"type":31,"value":42647},"一旦你的贝尔态运行成功，下面是一系列值得尝试的有趣电路，循序渐进：",{"type":21,"tag":1118,"props":42649,"children":42650},{},[42651,42669,42678,42688],{"type":21,"tag":71,"props":42652,"children":42653},{},[42654,42659,42661,42667],{"type":21,"tag":16815,"props":42655,"children":42656},{},[42657],{"type":31,"value":42658},"GHZ 态",{"type":31,"value":42660},"——一个 3 量子比特的纠缠态（",{"type":21,"tag":103,"props":42662,"children":42664},{"className":42663},[],[42665],{"type":31,"value":42666},"h(0).cx(0,1).cx(0,2)",{"type":31,"value":42668},"）",{"type":21,"tag":71,"props":42670,"children":42671},{},[42672,42676],{"type":21,"tag":16815,"props":42673,"children":42674},{},[42675],{"type":31,"value":32},{"type":31,"value":42677},"——利用纠缠和经典通信传输一个量子比特的状态",{"type":21,"tag":71,"props":42679,"children":42680},{},[42681,42686],{"type":21,"tag":16815,"props":42682,"children":42683},{},[42684],{"type":31,"value":42685},"Grover 搜索",{"type":31,"value":42687},"——以比暴力搜索快二次方的速度在列表中找到被标记的项",{"type":21,"tag":71,"props":42689,"children":42690},{},[42691,42695],{"type":21,"tag":16815,"props":42692,"children":42693},{},[42694],{"type":31,"value":3626},{"type":31,"value":42696},"——用变分算法估计分子基态能量",{"type":21,"tag":22,"props":42698,"children":42699},{},[42700,42702,42706,42707,42711],{"type":31,"value":42701},"查看",{"type":21,"tag":26,"props":42703,"children":42704},{"href":3304},[42705],{"type":31,"value":42363},{"type":31,"value":21899},{"type":21,"tag":26,"props":42708,"children":42709},{"href":1106},[42710],{"type":31,"value":25658},{"type":31,"value":42712},"以深入了解。",{"type":21,"tag":39928,"props":42714,"children":42715},{},[],{"type":21,"tag":22,"props":42717,"children":42718},{},[42719,42721,42726,42728,42732],{"type":31,"value":42720},"💡 ",{"type":21,"tag":16815,"props":42722,"children":42723},{},[42724],{"type":31,"value":42725},"提示：",{"type":31,"value":42727}," 如果你打算在多个 SDK 之间做实验，而又不想每次都重写电路，",{"type":21,"tag":26,"props":42729,"children":42730},{"href":40756},[42731],{"type":31,"value":40759},{"type":31,"value":42733}," 提供了一个统一的 API，只需一个后端标志，就能在 Qiskit、Cirq、PennyLane、Braket、CUDA-Q 或 IonQ 上运行同一个电路。",{"type":21,"tag":1174,"props":42735,"children":42736},{},[42737],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":42739},[42740,42741,42742,42743,42744,42745],{"id":41929,"depth":167,"text":41929},{"id":41979,"depth":167,"text":41979},{"id":42264,"depth":167,"text":42267},{"id":42367,"depth":167,"text":42370},{"id":42510,"depth":167,"text":42513},{"id":42640,"depth":167,"text":42640},"content:zh:blog:getting-started-free-quantum-computing.md","zh\u002Fblog\u002Fgetting-started-free-quantum-computing.md","zh\u002Fblog\u002Fgetting-started-free-quantum-computing",{"_path":42750,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":42751,"description":42752,"date":42753,"author":11,"tags":42754,"readingTime":272,"body":42755,"_type":1193,"_id":45174,"_source":1195,"_file":45175,"_stem":45176,"_extension":1198},"\u002Fzh\u002Fblog\u002Fhlquantum-vs-qiskit","HLQuantum 与原生 Qiskit 对比：何时该使用抽象层","对直接用 Qiskit 编写量子电路与使用 HLQuantum 统一 API 的实用比较——附并排代码以及帮助你决定使用哪一个的判断框架。","2026-03-08",[40759,14,3054,5986],{"type":18,"children":42756,"toc":45164},[42757,42762,42767,42772,42781,42790,42796,42804,43035,43043,43204,43209,43215,43223,43727,43735,44072,44077,44083,44091,44458,44466,44708,44713,44719,44724,44806,44812,44817,44892,44898,44903,45112,45117,45122,45130,45135,45160],{"type":21,"tag":22,"props":42758,"children":42759},{},[42760],{"type":31,"value":42761},"开始一个量子计算项目时会遇到一个实际问题：你应该直接用 Qiskit 编写电路，还是在其之上使用 HLQuantum 的抽象层？两者都是合理的选择，正确答案取决于你要构建什么。",{"type":21,"tag":22,"props":42763,"children":42764},{},[42765],{"type":31,"value":42766},"本文提供一个具体的、以代码为驱动的比较，帮助你做出决定。",{"type":21,"tag":41,"props":42768,"children":42770},{"id":42769},"核心区别",[42771],{"type":31,"value":42769},{"type":21,"tag":22,"props":42773,"children":42774},{},[42775,42779],{"type":21,"tag":16815,"props":42776,"children":42777},{},[42778],{"type":31,"value":14},{"type":31,"value":42780}," 是 IBM 的量子 SDK。它让你对每一个门、量子比特、测量和编译步骤都拥有直接、精确的控制。它原生面向 IBM 硬件，并且拥有针对 IBM 特定工作流最深厚的生态系统。",{"type":21,"tag":22,"props":42782,"children":42783},{},[42784,42788],{"type":21,"tag":16815,"props":42785,"children":42786},{},[42787],{"type":31,"value":40759},{"type":31,"value":42789}," 是一个统一的 API，位于 Qiskit、Cirq、PennyLane、Braket、CUDA-Q 和 IonQ 之上。你编写一个电路；它会翻译并分派到你所指定的任意后端。它用一部分底层控制换取了可移植性和简洁性。",{"type":21,"tag":41,"props":42791,"children":42793},{"id":42792},"并排对比bell-态",[42794],{"type":31,"value":42795},"并排对比：Bell 态",{"type":21,"tag":22,"props":42797,"children":42798},{},[42799],{"type":21,"tag":16815,"props":42800,"children":42801},{},[42802],{"type":31,"value":42803},"原生 Qiskit：",{"type":21,"tag":128,"props":42805,"children":42807},{"code":42806,"language":132,"meta":7,"className":130,"style":7},"from qiskit import QuantumCircuit\nfrom qiskit_aer import AerSimulator\n\nqc = QuantumCircuit(2, 2)\nqc.h(0)\nqc.cx(0, 1)\nqc.measure([0, 1], [0, 1])\n\nsim = AerSimulator()\nresult = sim.run(qc, shots=1000).result()\nprint(result.get_counts())  # {'00': 501, '11': 499}\n",[42808],{"type":21,"tag":103,"props":42809,"children":42810},{"__ignoreMap":7},[42811,42830,42849,42856,42887,42902,42925,42964,42971,42986,43018],{"type":21,"tag":138,"props":42812,"children":42813},{"class":140,"line":141},[42814,42818,42822,42826],{"type":21,"tag":138,"props":42815,"children":42816},{"style":145},[42817],{"type":31,"value":148},{"type":21,"tag":138,"props":42819,"children":42820},{"style":151},[42821],{"type":31,"value":154},{"type":21,"tag":138,"props":42823,"children":42824},{"style":145},[42825],{"type":31,"value":159},{"type":21,"tag":138,"props":42827,"children":42828},{"style":151},[42829],{"type":31,"value":6282},{"type":21,"tag":138,"props":42831,"children":42832},{"class":140,"line":167},[42833,42837,42841,42845],{"type":21,"tag":138,"props":42834,"children":42835},{"style":145},[42836],{"type":31,"value":148},{"type":21,"tag":138,"props":42838,"children":42839},{"style":151},[42840],{"type":31,"value":177},{"type":21,"tag":138,"props":42842,"children":42843},{"style":145},[42844],{"type":31,"value":159},{"type":21,"tag":138,"props":42846,"children":42847},{"style":151},[42848],{"type":31,"value":186},{"type":21,"tag":138,"props":42850,"children":42851},{"class":140,"line":189},[42852],{"type":21,"tag":138,"props":42853,"children":42854},{"emptyLinePlaceholder":193},[42855],{"type":31,"value":196},{"type":21,"tag":138,"props":42857,"children":42858},{"class":140,"line":199},[42859,42863,42867,42871,42875,42879,42883],{"type":21,"tag":138,"props":42860,"children":42861},{"style":151},[42862],{"type":31,"value":348},{"type":21,"tag":138,"props":42864,"children":42865},{"style":145},[42866],{"type":31,"value":210},{"type":21,"tag":138,"props":42868,"children":42869},{"style":151},[42870],{"type":31,"value":6305},{"type":21,"tag":138,"props":42872,"children":42873},{"style":213},[42874],{"type":31,"value":292},{"type":21,"tag":138,"props":42876,"children":42877},{"style":151},[42878],{"type":31,"value":258},{"type":21,"tag":138,"props":42880,"children":42881},{"style":213},[42882],{"type":31,"value":292},{"type":21,"tag":138,"props":42884,"children":42885},{"style":151},[42886],{"type":31,"value":269},{"type":21,"tag":138,"props":42888,"children":42889},{"class":140,"line":225},[42890,42894,42898],{"type":21,"tag":138,"props":42891,"children":42892},{"style":151},[42893],{"type":31,"value":441},{"type":21,"tag":138,"props":42895,"children":42896},{"style":213},[42897],{"type":31,"value":406},{"type":21,"tag":138,"props":42899,"children":42900},{"style":151},[42901],{"type":31,"value":269},{"type":21,"tag":138,"props":42903,"children":42904},{"class":140,"line":233},[42905,42909,42913,42917,42921],{"type":21,"tag":138,"props":42906,"children":42907},{"style":151},[42908],{"type":31,"value":457},{"type":21,"tag":138,"props":42910,"children":42911},{"style":213},[42912],{"type":31,"value":406},{"type":21,"tag":138,"props":42914,"children":42915},{"style":151},[42916],{"type":31,"value":258},{"type":21,"tag":138,"props":42918,"children":42919},{"style":213},[42920],{"type":31,"value":327},{"type":21,"tag":138,"props":42922,"children":42923},{"style":151},[42924],{"type":31,"value":269},{"type":21,"tag":138,"props":42926,"children":42927},{"class":140,"line":272},[42928,42932,42936,42940,42944,42948,42952,42956,42960],{"type":21,"tag":138,"props":42929,"children":42930},{"style":151},[42931],{"type":31,"value":10208},{"type":21,"tag":138,"props":42933,"children":42934},{"style":213},[42935],{"type":31,"value":406},{"type":21,"tag":138,"props":42937,"children":42938},{"style":151},[42939],{"type":31,"value":258},{"type":21,"tag":138,"props":42941,"children":42942},{"style":213},[42943],{"type":31,"value":327},{"type":21,"tag":138,"props":42945,"children":42946},{"style":151},[42947],{"type":31,"value":6417},{"type":21,"tag":138,"props":42949,"children":42950},{"style":213},[42951],{"type":31,"value":406},{"type":21,"tag":138,"props":42953,"children":42954},{"style":151},[42955],{"type":31,"value":258},{"type":21,"tag":138,"props":42957,"children":42958},{"style":213},[42959],{"type":31,"value":327},{"type":21,"tag":138,"props":42961,"children":42962},{"style":151},[42963],{"type":31,"value":598},{"type":21,"tag":138,"props":42965,"children":42966},{"class":140,"line":308},[42967],{"type":21,"tag":138,"props":42968,"children":42969},{"emptyLinePlaceholder":193},[42970],{"type":31,"value":196},{"type":21,"tag":138,"props":42972,"children":42973},{"class":140,"line":16},[42974,42978,42982],{"type":21,"tag":138,"props":42975,"children":42976},{"style":151},[42977],{"type":31,"value":883},{"type":21,"tag":138,"props":42979,"children":42980},{"style":145},[42981],{"type":31,"value":210},{"type":21,"tag":138,"props":42983,"children":42984},{"style":151},[42985],{"type":31,"value":892},{"type":21,"tag":138,"props":42987,"children":42988},{"class":140,"line":360},[42989,42993,42997,43002,43006,43010,43014],{"type":21,"tag":138,"props":42990,"children":42991},{"style":151},[42992],{"type":31,"value":4881},{"type":21,"tag":138,"props":42994,"children":42995},{"style":145},[42996],{"type":31,"value":210},{"type":21,"tag":138,"props":42998,"children":42999},{"style":151},[43000],{"type":31,"value":43001}," sim.run(qc, ",{"type":21,"tag":138,"props":43003,"children":43004},{"style":929},[43005],{"type":31,"value":932},{"type":21,"tag":138,"props":43007,"children":43008},{"style":145},[43009],{"type":31,"value":210},{"type":21,"tag":138,"props":43011,"children":43012},{"style":213},[43013],{"type":31,"value":1736},{"type":21,"tag":138,"props":43015,"children":43016},{"style":151},[43017],{"type":31,"value":9223},{"type":21,"tag":138,"props":43019,"children":43020},{"class":140,"line":368},[43021,43025,43030],{"type":21,"tag":138,"props":43022,"children":43023},{"style":213},[43024],{"type":31,"value":954},{"type":21,"tag":138,"props":43026,"children":43027},{"style":151},[43028],{"type":31,"value":43029},"(result.get_counts())  ",{"type":21,"tag":138,"props":43031,"children":43032},{"style":219},[43033],{"type":31,"value":43034},"# {'00': 501, '11': 499}\n",{"type":21,"tag":22,"props":43036,"children":43037},{},[43038],{"type":21,"tag":16815,"props":43039,"children":43040},{},[43041],{"type":31,"value":43042},"HLQuantum：",{"type":21,"tag":128,"props":43044,"children":43046},{"code":43045,"language":132,"meta":7,"className":130,"style":7},"import hlquantum as hlq\n\nqc = hlq.Circuit(2)\nqc.h(0).cx(0, 1).measure_all()\n\nresult = hlq.run(qc, backend='qiskit', shots=1000)\nprint(result.counts)  # {'00': 501, '11': 499}\n",[43047],{"type":21,"tag":103,"props":43048,"children":43049},{"__ignoreMap":7},[43050,43069,43076,43100,43133,43140,43188],{"type":21,"tag":138,"props":43051,"children":43052},{"class":140,"line":141},[43053,43057,43061,43065],{"type":21,"tag":138,"props":43054,"children":43055},{"style":145},[43056],{"type":31,"value":159},{"type":21,"tag":138,"props":43058,"children":43059},{"style":151},[43060],{"type":31,"value":41047},{"type":21,"tag":138,"props":43062,"children":43063},{"style":145},[43064],{"type":31,"value":5356},{"type":21,"tag":138,"props":43066,"children":43067},{"style":151},[43068],{"type":31,"value":41056},{"type":21,"tag":138,"props":43070,"children":43071},{"class":140,"line":167},[43072],{"type":21,"tag":138,"props":43073,"children":43074},{"emptyLinePlaceholder":193},[43075],{"type":31,"value":196},{"type":21,"tag":138,"props":43077,"children":43078},{"class":140,"line":189},[43079,43083,43087,43092,43096],{"type":21,"tag":138,"props":43080,"children":43081},{"style":151},[43082],{"type":31,"value":348},{"type":21,"tag":138,"props":43084,"children":43085},{"style":145},[43086],{"type":31,"value":210},{"type":21,"tag":138,"props":43088,"children":43089},{"style":151},[43090],{"type":31,"value":43091}," hlq.Circuit(",{"type":21,"tag":138,"props":43093,"children":43094},{"style":213},[43095],{"type":31,"value":292},{"type":21,"tag":138,"props":43097,"children":43098},{"style":151},[43099],{"type":31,"value":269},{"type":21,"tag":138,"props":43101,"children":43102},{"class":140,"line":199},[43103,43107,43111,43116,43120,43124,43128],{"type":21,"tag":138,"props":43104,"children":43105},{"style":151},[43106],{"type":31,"value":441},{"type":21,"tag":138,"props":43108,"children":43109},{"style":213},[43110],{"type":31,"value":406},{"type":21,"tag":138,"props":43112,"children":43113},{"style":151},[43114],{"type":31,"value":43115},").cx(",{"type":21,"tag":138,"props":43117,"children":43118},{"style":213},[43119],{"type":31,"value":406},{"type":21,"tag":138,"props":43121,"children":43122},{"style":151},[43123],{"type":31,"value":258},{"type":21,"tag":138,"props":43125,"children":43126},{"style":213},[43127],{"type":31,"value":327},{"type":21,"tag":138,"props":43129,"children":43130},{"style":151},[43131],{"type":31,"value":43132},").measure_all()\n",{"type":21,"tag":138,"props":43134,"children":43135},{"class":140,"line":225},[43136],{"type":21,"tag":138,"props":43137,"children":43138},{"emptyLinePlaceholder":193},[43139],{"type":31,"value":196},{"type":21,"tag":138,"props":43141,"children":43142},{"class":140,"line":233},[43143,43147,43151,43156,43160,43164,43168,43172,43176,43180,43184],{"type":21,"tag":138,"props":43144,"children":43145},{"style":151},[43146],{"type":31,"value":4881},{"type":21,"tag":138,"props":43148,"children":43149},{"style":145},[43150],{"type":31,"value":210},{"type":21,"tag":138,"props":43152,"children":43153},{"style":151},[43154],{"type":31,"value":43155}," hlq.run(qc, ",{"type":21,"tag":138,"props":43157,"children":43158},{"style":929},[43159],{"type":31,"value":11000},{"type":21,"tag":138,"props":43161,"children":43162},{"style":145},[43163],{"type":31,"value":210},{"type":21,"tag":138,"props":43165,"children":43166},{"style":261},[43167],{"type":31,"value":41136},{"type":21,"tag":138,"props":43169,"children":43170},{"style":151},[43171],{"type":31,"value":258},{"type":21,"tag":138,"props":43173,"children":43174},{"style":929},[43175],{"type":31,"value":932},{"type":21,"tag":138,"props":43177,"children":43178},{"style":145},[43179],{"type":31,"value":210},{"type":21,"tag":138,"props":43181,"children":43182},{"style":213},[43183],{"type":31,"value":1736},{"type":21,"tag":138,"props":43185,"children":43186},{"style":151},[43187],{"type":31,"value":269},{"type":21,"tag":138,"props":43189,"children":43190},{"class":140,"line":272},[43191,43195,43200],{"type":21,"tag":138,"props":43192,"children":43193},{"style":213},[43194],{"type":31,"value":954},{"type":21,"tag":138,"props":43196,"children":43197},{"style":151},[43198],{"type":31,"value":43199},"(result.counts)  ",{"type":21,"tag":138,"props":43201,"children":43202},{"style":219},[43203],{"type":31,"value":43034},{"type":21,"tag":22,"props":43205,"children":43206},{},[43207],{"type":31,"value":43208},"对于单个后端，两者的冗长程度大致相同。当你添加更多后端时，差异才会显现出来。",{"type":21,"tag":41,"props":43210,"children":43212},{"id":43211},"并排对比在多个后端上运行",[43213],{"type":31,"value":43214},"并排对比：在多个后端上运行",{"type":21,"tag":22,"props":43216,"children":43217},{},[43218],{"type":21,"tag":16815,"props":43219,"children":43220},{},[43221],{"type":31,"value":43222},"原生 Qiskit（要添加第二个后端，你需要重写）：",{"type":21,"tag":128,"props":43224,"children":43226},{"code":43225,"language":132,"meta":7,"className":130,"style":7},"# Qiskit Aer\nfrom qiskit import QuantumCircuit\nfrom qiskit_aer import AerSimulator\nqc_qiskit = QuantumCircuit(2, 2)\nqc_qiskit.h(0); qc_qiskit.cx(0, 1); qc_qiskit.measure_all()\nresult_qiskit = AerSimulator().run(qc_qiskit, shots=1000).result()\n\n# PennyLane — completely different API, rewrite circuit\nimport pennylane as qml\ndev = qml.device('default.qubit', wires=2)\n@qml.qnode(dev)\ndef bell():\n    qml.Hadamard(wires=0)\n    qml.CNOT(wires=[0, 1])\n    return qml.probs(wires=[0, 1])\nresult_pennylane = bell()\n\n# CUDA-Q — yet another API, rewrite again\nimport cudaq\n@cudaq.kernel\ndef bell():\n    qvec = cudaq.qvector(2)\n    h(qvec[0]); cx(qvec[0], qvec[1]); mz(qvec)\nresult_cudaq = cudaq.sample(bell, shots_count=1000)\n",[43227],{"type":21,"tag":103,"props":43228,"children":43229},{"__ignoreMap":7},[43230,43238,43257,43276,43308,43342,43375,43382,43390,43409,43448,43459,43474,43497,43532,43571,43588,43595,43603,43614,43621,43636,43660,43695],{"type":21,"tag":138,"props":43231,"children":43232},{"class":140,"line":141},[43233],{"type":21,"tag":138,"props":43234,"children":43235},{"style":219},[43236],{"type":31,"value":43237},"# Qiskit Aer\n",{"type":21,"tag":138,"props":43239,"children":43240},{"class":140,"line":167},[43241,43245,43249,43253],{"type":21,"tag":138,"props":43242,"children":43243},{"style":145},[43244],{"type":31,"value":148},{"type":21,"tag":138,"props":43246,"children":43247},{"style":151},[43248],{"type":31,"value":154},{"type":21,"tag":138,"props":43250,"children":43251},{"style":145},[43252],{"type":31,"value":159},{"type":21,"tag":138,"props":43254,"children":43255},{"style":151},[43256],{"type":31,"value":6282},{"type":21,"tag":138,"props":43258,"children":43259},{"class":140,"line":189},[43260,43264,43268,43272],{"type":21,"tag":138,"props":43261,"children":43262},{"style":145},[43263],{"type":31,"value":148},{"type":21,"tag":138,"props":43265,"children":43266},{"style":151},[43267],{"type":31,"value":177},{"type":21,"tag":138,"props":43269,"children":43270},{"style":145},[43271],{"type":31,"value":159},{"type":21,"tag":138,"props":43273,"children":43274},{"style":151},[43275],{"type":31,"value":186},{"type":21,"tag":138,"props":43277,"children":43278},{"class":140,"line":199},[43279,43284,43288,43292,43296,43300,43304],{"type":21,"tag":138,"props":43280,"children":43281},{"style":151},[43282],{"type":31,"value":43283},"qc_qiskit ",{"type":21,"tag":138,"props":43285,"children":43286},{"style":145},[43287],{"type":31,"value":210},{"type":21,"tag":138,"props":43289,"children":43290},{"style":151},[43291],{"type":31,"value":6305},{"type":21,"tag":138,"props":43293,"children":43294},{"style":213},[43295],{"type":31,"value":292},{"type":21,"tag":138,"props":43297,"children":43298},{"style":151},[43299],{"type":31,"value":258},{"type":21,"tag":138,"props":43301,"children":43302},{"style":213},[43303],{"type":31,"value":292},{"type":21,"tag":138,"props":43305,"children":43306},{"style":151},[43307],{"type":31,"value":269},{"type":21,"tag":138,"props":43309,"children":43310},{"class":140,"line":225},[43311,43316,43320,43325,43329,43333,43337],{"type":21,"tag":138,"props":43312,"children":43313},{"style":151},[43314],{"type":31,"value":43315},"qc_qiskit.h(",{"type":21,"tag":138,"props":43317,"children":43318},{"style":213},[43319],{"type":31,"value":406},{"type":21,"tag":138,"props":43321,"children":43322},{"style":151},[43323],{"type":31,"value":43324},"); qc_qiskit.cx(",{"type":21,"tag":138,"props":43326,"children":43327},{"style":213},[43328],{"type":31,"value":406},{"type":21,"tag":138,"props":43330,"children":43331},{"style":151},[43332],{"type":31,"value":258},{"type":21,"tag":138,"props":43334,"children":43335},{"style":213},[43336],{"type":31,"value":327},{"type":21,"tag":138,"props":43338,"children":43339},{"style":151},[43340],{"type":31,"value":43341},"); qc_qiskit.measure_all()\n",{"type":21,"tag":138,"props":43343,"children":43344},{"class":140,"line":233},[43345,43350,43354,43359,43363,43367,43371],{"type":21,"tag":138,"props":43346,"children":43347},{"style":151},[43348],{"type":31,"value":43349},"result_qiskit ",{"type":21,"tag":138,"props":43351,"children":43352},{"style":145},[43353],{"type":31,"value":210},{"type":21,"tag":138,"props":43355,"children":43356},{"style":151},[43357],{"type":31,"value":43358}," AerSimulator().run(qc_qiskit, ",{"type":21,"tag":138,"props":43360,"children":43361},{"style":929},[43362],{"type":31,"value":932},{"type":21,"tag":138,"props":43364,"children":43365},{"style":145},[43366],{"type":31,"value":210},{"type":21,"tag":138,"props":43368,"children":43369},{"style":213},[43370],{"type":31,"value":1736},{"type":21,"tag":138,"props":43372,"children":43373},{"style":151},[43374],{"type":31,"value":9223},{"type":21,"tag":138,"props":43376,"children":43377},{"class":140,"line":272},[43378],{"type":21,"tag":138,"props":43379,"children":43380},{"emptyLinePlaceholder":193},[43381],{"type":31,"value":196},{"type":21,"tag":138,"props":43383,"children":43384},{"class":140,"line":308},[43385],{"type":21,"tag":138,"props":43386,"children":43387},{"style":219},[43388],{"type":31,"value":43389},"# PennyLane — completely different API, rewrite circuit\n",{"type":21,"tag":138,"props":43391,"children":43392},{"class":140,"line":16},[43393,43397,43401,43405],{"type":21,"tag":138,"props":43394,"children":43395},{"style":145},[43396],{"type":31,"value":159},{"type":21,"tag":138,"props":43398,"children":43399},{"style":151},[43400],{"type":31,"value":5351},{"type":21,"tag":138,"props":43402,"children":43403},{"style":145},[43404],{"type":31,"value":5356},{"type":21,"tag":138,"props":43406,"children":43407},{"style":151},[43408],{"type":31,"value":5361},{"type":21,"tag":138,"props":43410,"children":43411},{"class":140,"line":360},[43412,43416,43420,43424,43428,43432,43436,43440,43444],{"type":21,"tag":138,"props":43413,"children":43414},{"style":151},[43415],{"type":31,"value":8726},{"type":21,"tag":138,"props":43417,"children":43418},{"style":145},[43419],{"type":31,"value":210},{"type":21,"tag":138,"props":43421,"children":43422},{"style":151},[43423],{"type":31,"value":5446},{"type":21,"tag":138,"props":43425,"children":43426},{"style":261},[43427],{"type":31,"value":8739},{"type":21,"tag":138,"props":43429,"children":43430},{"style":151},[43431],{"type":31,"value":258},{"type":21,"tag":138,"props":43433,"children":43434},{"style":929},[43435],{"type":31,"value":5460},{"type":21,"tag":138,"props":43437,"children":43438},{"style":145},[43439],{"type":31,"value":210},{"type":21,"tag":138,"props":43441,"children":43442},{"style":213},[43443],{"type":31,"value":292},{"type":21,"tag":138,"props":43445,"children":43446},{"style":151},[43447],{"type":31,"value":269},{"type":21,"tag":138,"props":43449,"children":43450},{"class":140,"line":368},[43451,43455],{"type":21,"tag":138,"props":43452,"children":43453},{"style":4522},[43454],{"type":31,"value":5487},{"type":21,"tag":138,"props":43456,"children":43457},{"style":151},[43458],{"type":31,"value":8778},{"type":21,"tag":138,"props":43460,"children":43461},{"class":140,"line":377},[43462,43466,43470],{"type":21,"tag":138,"props":43463,"children":43464},{"style":145},[43465],{"type":31,"value":5500},{"type":21,"tag":138,"props":43467,"children":43468},{"style":4522},[43469],{"type":31,"value":8278},{"type":21,"tag":138,"props":43471,"children":43472},{"style":151},[43473],{"type":31,"value":8009},{"type":21,"tag":138,"props":43475,"children":43476},{"class":140,"line":386},[43477,43481,43485,43489,43493],{"type":21,"tag":138,"props":43478,"children":43479},{"style":151},[43480],{"type":31,"value":8801},{"type":21,"tag":138,"props":43482,"children":43483},{"style":929},[43484],{"type":31,"value":5460},{"type":21,"tag":138,"props":43486,"children":43487},{"style":145},[43488],{"type":31,"value":210},{"type":21,"tag":138,"props":43490,"children":43491},{"style":213},[43492],{"type":31,"value":406},{"type":21,"tag":138,"props":43494,"children":43495},{"style":151},[43496],{"type":31,"value":269},{"type":21,"tag":138,"props":43498,"children":43499},{"class":140,"line":395},[43500,43504,43508,43512,43516,43520,43524,43528],{"type":21,"tag":138,"props":43501,"children":43502},{"style":151},[43503],{"type":31,"value":5534},{"type":21,"tag":138,"props":43505,"children":43506},{"style":929},[43507],{"type":31,"value":5460},{"type":21,"tag":138,"props":43509,"children":43510},{"style":145},[43511],{"type":31,"value":210},{"type":21,"tag":138,"props":43513,"children":43514},{"style":151},[43515],{"type":31,"value":5547},{"type":21,"tag":138,"props":43517,"children":43518},{"style":213},[43519],{"type":31,"value":406},{"type":21,"tag":138,"props":43521,"children":43522},{"style":151},[43523],{"type":31,"value":258},{"type":21,"tag":138,"props":43525,"children":43526},{"style":213},[43527],{"type":31,"value":327},{"type":21,"tag":138,"props":43529,"children":43530},{"style":151},[43531],{"type":31,"value":598},{"type":21,"tag":138,"props":43533,"children":43534},{"class":140,"line":413},[43535,43539,43543,43547,43551,43555,43559,43563,43567],{"type":21,"tag":138,"props":43536,"children":43537},{"style":145},[43538],{"type":31,"value":5595},{"type":21,"tag":138,"props":43540,"children":43541},{"style":151},[43542],{"type":31,"value":8834},{"type":21,"tag":138,"props":43544,"children":43545},{"style":929},[43546],{"type":31,"value":5460},{"type":21,"tag":138,"props":43548,"children":43549},{"style":145},[43550],{"type":31,"value":210},{"type":21,"tag":138,"props":43552,"children":43553},{"style":151},[43554],{"type":31,"value":5547},{"type":21,"tag":138,"props":43556,"children":43557},{"style":213},[43558],{"type":31,"value":406},{"type":21,"tag":138,"props":43560,"children":43561},{"style":151},[43562],{"type":31,"value":258},{"type":21,"tag":138,"props":43564,"children":43565},{"style":213},[43566],{"type":31,"value":327},{"type":21,"tag":138,"props":43568,"children":43569},{"style":151},[43570],{"type":31,"value":598},{"type":21,"tag":138,"props":43572,"children":43573},{"class":140,"line":12602},[43574,43579,43583],{"type":21,"tag":138,"props":43575,"children":43576},{"style":151},[43577],{"type":31,"value":43578},"result_pennylane ",{"type":21,"tag":138,"props":43580,"children":43581},{"style":145},[43582],{"type":31,"value":210},{"type":21,"tag":138,"props":43584,"children":43585},{"style":151},[43586],{"type":31,"value":43587}," bell()\n",{"type":21,"tag":138,"props":43589,"children":43590},{"class":140,"line":12619},[43591],{"type":21,"tag":138,"props":43592,"children":43593},{"emptyLinePlaceholder":193},[43594],{"type":31,"value":196},{"type":21,"tag":138,"props":43596,"children":43597},{"class":140,"line":12635},[43598],{"type":21,"tag":138,"props":43599,"children":43600},{"style":219},[43601],{"type":31,"value":43602},"# CUDA-Q — yet another API, rewrite again\n",{"type":21,"tag":138,"props":43604,"children":43605},{"class":140,"line":12643},[43606,43610],{"type":21,"tag":138,"props":43607,"children":43608},{"style":145},[43609],{"type":31,"value":159},{"type":21,"tag":138,"props":43611,"children":43612},{"style":151},[43613],{"type":31,"value":8134},{"type":21,"tag":138,"props":43615,"children":43616},{"class":140,"line":17760},[43617],{"type":21,"tag":138,"props":43618,"children":43619},{"style":4522},[43620],{"type":31,"value":7992},{"type":21,"tag":138,"props":43622,"children":43623},{"class":140,"line":17778},[43624,43628,43632],{"type":21,"tag":138,"props":43625,"children":43626},{"style":145},[43627],{"type":31,"value":5500},{"type":21,"tag":138,"props":43629,"children":43630},{"style":4522},[43631],{"type":31,"value":8278},{"type":21,"tag":138,"props":43633,"children":43634},{"style":151},[43635],{"type":31,"value":8009},{"type":21,"tag":138,"props":43637,"children":43638},{"class":140,"line":17803},[43639,43644,43648,43652,43656],{"type":21,"tag":138,"props":43640,"children":43641},{"style":151},[43642],{"type":31,"value":43643},"    qvec ",{"type":21,"tag":138,"props":43645,"children":43646},{"style":145},[43647],{"type":31,"value":210},{"type":21,"tag":138,"props":43649,"children":43650},{"style":151},[43651],{"type":31,"value":8026},{"type":21,"tag":138,"props":43653,"children":43654},{"style":213},[43655],{"type":31,"value":292},{"type":21,"tag":138,"props":43657,"children":43658},{"style":151},[43659],{"type":31,"value":269},{"type":21,"tag":138,"props":43661,"children":43662},{"class":140,"line":17830},[43663,43668,43672,43677,43681,43686,43690],{"type":21,"tag":138,"props":43664,"children":43665},{"style":151},[43666],{"type":31,"value":43667},"    h(qvec[",{"type":21,"tag":138,"props":43669,"children":43670},{"style":213},[43671],{"type":31,"value":406},{"type":21,"tag":138,"props":43673,"children":43674},{"style":151},[43675],{"type":31,"value":43676},"]); cx(qvec[",{"type":21,"tag":138,"props":43678,"children":43679},{"style":213},[43680],{"type":31,"value":406},{"type":21,"tag":138,"props":43682,"children":43683},{"style":151},[43684],{"type":31,"value":43685},"], qvec[",{"type":21,"tag":138,"props":43687,"children":43688},{"style":213},[43689],{"type":31,"value":327},{"type":21,"tag":138,"props":43691,"children":43692},{"style":151},[43693],{"type":31,"value":43694},"]); mz(qvec)\n",{"type":21,"tag":138,"props":43696,"children":43697},{"class":140,"line":17856},[43698,43703,43707,43711,43715,43719,43723],{"type":21,"tag":138,"props":43699,"children":43700},{"style":151},[43701],{"type":31,"value":43702},"result_cudaq ",{"type":21,"tag":138,"props":43704,"children":43705},{"style":145},[43706],{"type":31,"value":210},{"type":21,"tag":138,"props":43708,"children":43709},{"style":151},[43710],{"type":31,"value":8430},{"type":21,"tag":138,"props":43712,"children":43713},{"style":929},[43714],{"type":31,"value":8234},{"type":21,"tag":138,"props":43716,"children":43717},{"style":145},[43718],{"type":31,"value":210},{"type":21,"tag":138,"props":43720,"children":43721},{"style":213},[43722],{"type":31,"value":1736},{"type":21,"tag":138,"props":43724,"children":43725},{"style":151},[43726],{"type":31,"value":269},{"type":21,"tag":22,"props":43728,"children":43729},{},[43730],{"type":21,"tag":16815,"props":43731,"children":43732},{},[43733],{"type":31,"value":43734},"HLQuantum（一个电路，任意后端）：",{"type":21,"tag":128,"props":43736,"children":43738},{"code":43737,"language":132,"meta":7,"className":130,"style":7},"import hlquantum as hlq\n\nqc = hlq.Circuit(2)\nqc.h(0).cx(0, 1).measure_all()\n\n# Switch backends with one word\nresult_qiskit    = hlq.run(qc, backend='qiskit')\nresult_pennylane = hlq.run(qc, backend='pennylane')\nresult_cudaq     = hlq.run(qc, backend='cudaq')    # GPU\nresult_cirq      = hlq.run(qc, backend='cirq')\nresult_ionq      = hlq.run(qc, backend='ionq', device='aria-1')\nresult_ibm       = hlq.run(qc, backend='qiskit', device='ibm_sherbrooke')\n",[43739],{"type":21,"tag":103,"props":43740,"children":43741},{"__ignoreMap":7},[43742,43761,43768,43791,43822,43829,43837,43869,43901,43939,43972,44023],{"type":21,"tag":138,"props":43743,"children":43744},{"class":140,"line":141},[43745,43749,43753,43757],{"type":21,"tag":138,"props":43746,"children":43747},{"style":145},[43748],{"type":31,"value":159},{"type":21,"tag":138,"props":43750,"children":43751},{"style":151},[43752],{"type":31,"value":41047},{"type":21,"tag":138,"props":43754,"children":43755},{"style":145},[43756],{"type":31,"value":5356},{"type":21,"tag":138,"props":43758,"children":43759},{"style":151},[43760],{"type":31,"value":41056},{"type":21,"tag":138,"props":43762,"children":43763},{"class":140,"line":167},[43764],{"type":21,"tag":138,"props":43765,"children":43766},{"emptyLinePlaceholder":193},[43767],{"type":31,"value":196},{"type":21,"tag":138,"props":43769,"children":43770},{"class":140,"line":189},[43771,43775,43779,43783,43787],{"type":21,"tag":138,"props":43772,"children":43773},{"style":151},[43774],{"type":31,"value":348},{"type":21,"tag":138,"props":43776,"children":43777},{"style":145},[43778],{"type":31,"value":210},{"type":21,"tag":138,"props":43780,"children":43781},{"style":151},[43782],{"type":31,"value":43091},{"type":21,"tag":138,"props":43784,"children":43785},{"style":213},[43786],{"type":31,"value":292},{"type":21,"tag":138,"props":43788,"children":43789},{"style":151},[43790],{"type":31,"value":269},{"type":21,"tag":138,"props":43792,"children":43793},{"class":140,"line":199},[43794,43798,43802,43806,43810,43814,43818],{"type":21,"tag":138,"props":43795,"children":43796},{"style":151},[43797],{"type":31,"value":441},{"type":21,"tag":138,"props":43799,"children":43800},{"style":213},[43801],{"type":31,"value":406},{"type":21,"tag":138,"props":43803,"children":43804},{"style":151},[43805],{"type":31,"value":43115},{"type":21,"tag":138,"props":43807,"children":43808},{"style":213},[43809],{"type":31,"value":406},{"type":21,"tag":138,"props":43811,"children":43812},{"style":151},[43813],{"type":31,"value":258},{"type":21,"tag":138,"props":43815,"children":43816},{"style":213},[43817],{"type":31,"value":327},{"type":21,"tag":138,"props":43819,"children":43820},{"style":151},[43821],{"type":31,"value":43132},{"type":21,"tag":138,"props":43823,"children":43824},{"class":140,"line":225},[43825],{"type":21,"tag":138,"props":43826,"children":43827},{"emptyLinePlaceholder":193},[43828],{"type":31,"value":196},{"type":21,"tag":138,"props":43830,"children":43831},{"class":140,"line":233},[43832],{"type":21,"tag":138,"props":43833,"children":43834},{"style":219},[43835],{"type":31,"value":43836},"# Switch backends with one word\n",{"type":21,"tag":138,"props":43838,"children":43839},{"class":140,"line":272},[43840,43845,43849,43853,43857,43861,43865],{"type":21,"tag":138,"props":43841,"children":43842},{"style":151},[43843],{"type":31,"value":43844},"result_qiskit    ",{"type":21,"tag":138,"props":43846,"children":43847},{"style":145},[43848],{"type":31,"value":210},{"type":21,"tag":138,"props":43850,"children":43851},{"style":151},[43852],{"type":31,"value":43155},{"type":21,"tag":138,"props":43854,"children":43855},{"style":929},[43856],{"type":31,"value":11000},{"type":21,"tag":138,"props":43858,"children":43859},{"style":145},[43860],{"type":31,"value":210},{"type":21,"tag":138,"props":43862,"children":43863},{"style":261},[43864],{"type":31,"value":41136},{"type":21,"tag":138,"props":43866,"children":43867},{"style":151},[43868],{"type":31,"value":269},{"type":21,"tag":138,"props":43870,"children":43871},{"class":140,"line":308},[43872,43876,43880,43884,43888,43892,43897],{"type":21,"tag":138,"props":43873,"children":43874},{"style":151},[43875],{"type":31,"value":43578},{"type":21,"tag":138,"props":43877,"children":43878},{"style":145},[43879],{"type":31,"value":210},{"type":21,"tag":138,"props":43881,"children":43882},{"style":151},[43883],{"type":31,"value":43155},{"type":21,"tag":138,"props":43885,"children":43886},{"style":929},[43887],{"type":31,"value":11000},{"type":21,"tag":138,"props":43889,"children":43890},{"style":145},[43891],{"type":31,"value":210},{"type":21,"tag":138,"props":43893,"children":43894},{"style":261},[43895],{"type":31,"value":43896},"'pennylane'",{"type":21,"tag":138,"props":43898,"children":43899},{"style":151},[43900],{"type":31,"value":269},{"type":21,"tag":138,"props":43902,"children":43903},{"class":140,"line":16},[43904,43909,43913,43917,43921,43925,43930,43934],{"type":21,"tag":138,"props":43905,"children":43906},{"style":151},[43907],{"type":31,"value":43908},"result_cudaq     ",{"type":21,"tag":138,"props":43910,"children":43911},{"style":145},[43912],{"type":31,"value":210},{"type":21,"tag":138,"props":43914,"children":43915},{"style":151},[43916],{"type":31,"value":43155},{"type":21,"tag":138,"props":43918,"children":43919},{"style":929},[43920],{"type":31,"value":11000},{"type":21,"tag":138,"props":43922,"children":43923},{"style":145},[43924],{"type":31,"value":210},{"type":21,"tag":138,"props":43926,"children":43927},{"style":261},[43928],{"type":31,"value":43929},"'cudaq'",{"type":21,"tag":138,"props":43931,"children":43932},{"style":151},[43933],{"type":31,"value":30055},{"type":21,"tag":138,"props":43935,"children":43936},{"style":219},[43937],{"type":31,"value":43938},"# GPU\n",{"type":21,"tag":138,"props":43940,"children":43941},{"class":140,"line":360},[43942,43947,43951,43955,43959,43963,43968],{"type":21,"tag":138,"props":43943,"children":43944},{"style":151},[43945],{"type":31,"value":43946},"result_cirq      ",{"type":21,"tag":138,"props":43948,"children":43949},{"style":145},[43950],{"type":31,"value":210},{"type":21,"tag":138,"props":43952,"children":43953},{"style":151},[43954],{"type":31,"value":43155},{"type":21,"tag":138,"props":43956,"children":43957},{"style":929},[43958],{"type":31,"value":11000},{"type":21,"tag":138,"props":43960,"children":43961},{"style":145},[43962],{"type":31,"value":210},{"type":21,"tag":138,"props":43964,"children":43965},{"style":261},[43966],{"type":31,"value":43967},"'cirq'",{"type":21,"tag":138,"props":43969,"children":43970},{"style":151},[43971],{"type":31,"value":269},{"type":21,"tag":138,"props":43973,"children":43974},{"class":140,"line":368},[43975,43980,43984,43988,43992,43996,44001,44005,44010,44014,44019],{"type":21,"tag":138,"props":43976,"children":43977},{"style":151},[43978],{"type":31,"value":43979},"result_ionq      ",{"type":21,"tag":138,"props":43981,"children":43982},{"style":145},[43983],{"type":31,"value":210},{"type":21,"tag":138,"props":43985,"children":43986},{"style":151},[43987],{"type":31,"value":43155},{"type":21,"tag":138,"props":43989,"children":43990},{"style":929},[43991],{"type":31,"value":11000},{"type":21,"tag":138,"props":43993,"children":43994},{"style":145},[43995],{"type":31,"value":210},{"type":21,"tag":138,"props":43997,"children":43998},{"style":261},[43999],{"type":31,"value":44000},"'ionq'",{"type":21,"tag":138,"props":44002,"children":44003},{"style":151},[44004],{"type":31,"value":258},{"type":21,"tag":138,"props":44006,"children":44007},{"style":929},[44008],{"type":31,"value":44009},"device",{"type":21,"tag":138,"props":44011,"children":44012},{"style":145},[44013],{"type":31,"value":210},{"type":21,"tag":138,"props":44015,"children":44016},{"style":261},[44017],{"type":31,"value":44018},"'aria-1'",{"type":21,"tag":138,"props":44020,"children":44021},{"style":151},[44022],{"type":31,"value":269},{"type":21,"tag":138,"props":44024,"children":44025},{"class":140,"line":377},[44026,44031,44035,44039,44043,44047,44051,44055,44059,44063,44068],{"type":21,"tag":138,"props":44027,"children":44028},{"style":151},[44029],{"type":31,"value":44030},"result_ibm       ",{"type":21,"tag":138,"props":44032,"children":44033},{"style":145},[44034],{"type":31,"value":210},{"type":21,"tag":138,"props":44036,"children":44037},{"style":151},[44038],{"type":31,"value":43155},{"type":21,"tag":138,"props":44040,"children":44041},{"style":929},[44042],{"type":31,"value":11000},{"type":21,"tag":138,"props":44044,"children":44045},{"style":145},[44046],{"type":31,"value":210},{"type":21,"tag":138,"props":44048,"children":44049},{"style":261},[44050],{"type":31,"value":41136},{"type":21,"tag":138,"props":44052,"children":44053},{"style":151},[44054],{"type":31,"value":258},{"type":21,"tag":138,"props":44056,"children":44057},{"style":929},[44058],{"type":31,"value":44009},{"type":21,"tag":138,"props":44060,"children":44061},{"style":145},[44062],{"type":31,"value":210},{"type":21,"tag":138,"props":44064,"children":44065},{"style":261},[44066],{"type":31,"value":44067},"'ibm_sherbrooke'",{"type":21,"tag":138,"props":44069,"children":44070},{"style":151},[44071],{"type":31,"value":269},{"type":21,"tag":22,"props":44073,"children":44074},{},[44075],{"type":31,"value":44076},"这正是 HLQuantum 发挥价值的地方——在本地模拟器上原型开发，然后无需重写电路即可部署到 QPU。",{"type":21,"tag":41,"props":44078,"children":44080},{"id":44079},"并排对比vqe",[44081],{"type":31,"value":44082},"并排对比：VQE",{"type":21,"tag":22,"props":44084,"children":44085},{},[44086],{"type":21,"tag":16815,"props":44087,"children":44088},{},[44089],{"type":31,"value":44090},"原生 Qiskit VQE：",{"type":21,"tag":128,"props":44092,"children":44094},{"code":44093,"language":132,"meta":7,"className":130,"style":7},"from qiskit_nature.second_q.drivers import PySCFDriver\nfrom qiskit_nature.second_q.mappers import JordanWignerMapper\nfrom qiskit_nature.second_q.circuit.library import UCCSD\nfrom qiskit_algorithms import VQE\nfrom qiskit_algorithms.optimizers import COBYLA\nfrom qiskit.primitives import Estimator\n\ndriver = PySCFDriver(atom='H .0 .0 .0; H .0 .0 0.735')\nproblem = driver.run()\nmapper = JordanWignerMapper()\nhamiltonian = mapper.map(problem.second_q_ops()[0])\n\nansatz = UCCSD(\n    problem.num_spatial_orbitals,\n    problem.num_particles,\n    mapper,\n    initial_state=problem.reference_state,\n)\n\nvqe = VQE(Estimator(), ansatz, COBYLA())\nresult = vqe.compute_minimum_eigenvalue(hamiltonian)\nprint(f\"H2 ground state: {result.eigenvalue.real:.4f} Ha\")\n",[44095],{"type":21,"tag":103,"props":44096,"children":44097},{"__ignoreMap":7},[44098,44117,44136,44156,44175,44194,44213,44220,44254,44269,44284,44308,44315,44330,44337,44344,44351,44367,44374,44381,44397,44413],{"type":21,"tag":138,"props":44099,"children":44100},{"class":140,"line":141},[44101,44105,44109,44113],{"type":21,"tag":138,"props":44102,"children":44103},{"style":145},[44104],{"type":31,"value":148},{"type":21,"tag":138,"props":44106,"children":44107},{"style":151},[44108],{"type":31,"value":11943},{"type":21,"tag":138,"props":44110,"children":44111},{"style":145},[44112],{"type":31,"value":159},{"type":21,"tag":138,"props":44114,"children":44115},{"style":151},[44116],{"type":31,"value":11952},{"type":21,"tag":138,"props":44118,"children":44119},{"class":140,"line":167},[44120,44124,44128,44132],{"type":21,"tag":138,"props":44121,"children":44122},{"style":145},[44123],{"type":31,"value":148},{"type":21,"tag":138,"props":44125,"children":44126},{"style":151},[44127],{"type":31,"value":12164},{"type":21,"tag":138,"props":44129,"children":44130},{"style":145},[44131],{"type":31,"value":159},{"type":21,"tag":138,"props":44133,"children":44134},{"style":151},[44135],{"type":31,"value":12173},{"type":21,"tag":138,"props":44137,"children":44138},{"class":140,"line":189},[44139,44143,44147,44151],{"type":21,"tag":138,"props":44140,"children":44141},{"style":145},[44142],{"type":31,"value":148},{"type":21,"tag":138,"props":44144,"children":44145},{"style":151},[44146],{"type":31,"value":12447},{"type":21,"tag":138,"props":44148,"children":44149},{"style":145},[44150],{"type":31,"value":159},{"type":21,"tag":138,"props":44152,"children":44153},{"style":213},[44154],{"type":31,"value":44155}," UCCSD\n",{"type":21,"tag":138,"props":44157,"children":44158},{"class":140,"line":199},[44159,44163,44167,44171],{"type":21,"tag":138,"props":44160,"children":44161},{"style":145},[44162],{"type":31,"value":148},{"type":21,"tag":138,"props":44164,"children":44165},{"style":151},[44166],{"type":31,"value":12255},{"type":21,"tag":138,"props":44168,"children":44169},{"style":145},[44170],{"type":31,"value":159},{"type":21,"tag":138,"props":44172,"children":44173},{"style":213},[44174],{"type":31,"value":12393},{"type":21,"tag":138,"props":44176,"children":44177},{"class":140,"line":225},[44178,44182,44186,44190],{"type":21,"tag":138,"props":44179,"children":44180},{"style":145},[44181],{"type":31,"value":148},{"type":21,"tag":138,"props":44183,"children":44184},{"style":151},[44185],{"type":31,"value":12405},{"type":21,"tag":138,"props":44187,"children":44188},{"style":145},[44189],{"type":31,"value":159},{"type":21,"tag":138,"props":44191,"children":44192},{"style":213},[44193],{"type":31,"value":12414},{"type":21,"tag":138,"props":44195,"children":44196},{"class":140,"line":233},[44197,44201,44205,44209],{"type":21,"tag":138,"props":44198,"children":44199},{"style":145},[44200],{"type":31,"value":148},{"type":21,"tag":138,"props":44202,"children":44203},{"style":151},[44204],{"type":31,"value":12426},{"type":21,"tag":138,"props":44206,"children":44207},{"style":145},[44208],{"type":31,"value":159},{"type":21,"tag":138,"props":44210,"children":44211},{"style":151},[44212],{"type":31,"value":12435},{"type":21,"tag":138,"props":44214,"children":44215},{"class":140,"line":272},[44216],{"type":21,"tag":138,"props":44217,"children":44218},{"emptyLinePlaceholder":193},[44219],{"type":31,"value":196},{"type":21,"tag":138,"props":44221,"children":44222},{"class":140,"line":308},[44223,44227,44231,44236,44241,44245,44250],{"type":21,"tag":138,"props":44224,"children":44225},{"style":151},[44226],{"type":31,"value":11967},{"type":21,"tag":138,"props":44228,"children":44229},{"style":145},[44230],{"type":31,"value":210},{"type":21,"tag":138,"props":44232,"children":44233},{"style":151},[44234],{"type":31,"value":44235}," PySCFDriver(",{"type":21,"tag":138,"props":44237,"children":44238},{"style":929},[44239],{"type":31,"value":44240},"atom",{"type":21,"tag":138,"props":44242,"children":44243},{"style":145},[44244],{"type":31,"value":210},{"type":21,"tag":138,"props":44246,"children":44247},{"style":261},[44248],{"type":31,"value":44249},"'H .0 .0 .0; H .0 .0 0.735'",{"type":21,"tag":138,"props":44251,"children":44252},{"style":151},[44253],{"type":31,"value":269},{"type":21,"tag":138,"props":44255,"children":44256},{"class":140,"line":16},[44257,44261,44265],{"type":21,"tag":138,"props":44258,"children":44259},{"style":151},[44260],{"type":31,"value":12106},{"type":21,"tag":138,"props":44262,"children":44263},{"style":145},[44264],{"type":31,"value":210},{"type":21,"tag":138,"props":44266,"children":44267},{"style":151},[44268],{"type":31,"value":12115},{"type":21,"tag":138,"props":44270,"children":44271},{"class":140,"line":360},[44272,44276,44280],{"type":21,"tag":138,"props":44273,"children":44274},{"style":151},[44275],{"type":31,"value":12188},{"type":21,"tag":138,"props":44277,"children":44278},{"style":145},[44279],{"type":31,"value":210},{"type":21,"tag":138,"props":44281,"children":44282},{"style":151},[44283],{"type":31,"value":12197},{"type":21,"tag":138,"props":44285,"children":44286},{"class":140,"line":368},[44287,44291,44295,44300,44304],{"type":21,"tag":138,"props":44288,"children":44289},{"style":151},[44290],{"type":31,"value":17558},{"type":21,"tag":138,"props":44292,"children":44293},{"style":145},[44294],{"type":31,"value":210},{"type":21,"tag":138,"props":44296,"children":44297},{"style":151},[44298],{"type":31,"value":44299}," mapper.map(problem.second_q_ops()[",{"type":21,"tag":138,"props":44301,"children":44302},{"style":213},[44303],{"type":31,"value":406},{"type":21,"tag":138,"props":44305,"children":44306},{"style":151},[44307],{"type":31,"value":598},{"type":21,"tag":138,"props":44309,"children":44310},{"class":140,"line":377},[44311],{"type":21,"tag":138,"props":44312,"children":44313},{"emptyLinePlaceholder":193},[44314],{"type":31,"value":196},{"type":21,"tag":138,"props":44316,"children":44317},{"class":140,"line":386},[44318,44322,44326],{"type":21,"tag":138,"props":44319,"children":44320},{"style":151},[44321],{"type":31,"value":12476},{"type":21,"tag":138,"props":44323,"children":44324},{"style":145},[44325],{"type":31,"value":210},{"type":21,"tag":138,"props":44327,"children":44328},{"style":151},[44329],{"type":31,"value":12485},{"type":21,"tag":138,"props":44331,"children":44332},{"class":140,"line":395},[44333],{"type":21,"tag":138,"props":44334,"children":44335},{"style":151},[44336],{"type":31,"value":12493},{"type":21,"tag":138,"props":44338,"children":44339},{"class":140,"line":413},[44340],{"type":21,"tag":138,"props":44341,"children":44342},{"style":151},[44343],{"type":31,"value":12501},{"type":21,"tag":138,"props":44345,"children":44346},{"class":140,"line":12602},[44347],{"type":21,"tag":138,"props":44348,"children":44349},{"style":151},[44350],{"type":31,"value":12509},{"type":21,"tag":138,"props":44352,"children":44353},{"class":140,"line":12619},[44354,44358,44362],{"type":21,"tag":138,"props":44355,"children":44356},{"style":929},[44357],{"type":31,"value":12517},{"type":21,"tag":138,"props":44359,"children":44360},{"style":145},[44361],{"type":31,"value":210},{"type":21,"tag":138,"props":44363,"children":44364},{"style":151},[44365],{"type":31,"value":44366},"problem.reference_state,\n",{"type":21,"tag":138,"props":44368,"children":44369},{"class":140,"line":12635},[44370],{"type":21,"tag":138,"props":44371,"children":44372},{"style":151},[44373],{"type":31,"value":269},{"type":21,"tag":138,"props":44375,"children":44376},{"class":140,"line":12643},[44377],{"type":21,"tag":138,"props":44378,"children":44379},{"emptyLinePlaceholder":193},[44380],{"type":31,"value":196},{"type":21,"tag":138,"props":44382,"children":44383},{"class":140,"line":17760},[44384,44389,44393],{"type":21,"tag":138,"props":44385,"children":44386},{"style":151},[44387],{"type":31,"value":44388},"vqe ",{"type":21,"tag":138,"props":44390,"children":44391},{"style":145},[44392],{"type":31,"value":210},{"type":21,"tag":138,"props":44394,"children":44395},{"style":151},[44396],{"type":31,"value":12557},{"type":21,"tag":138,"props":44398,"children":44399},{"class":140,"line":17778},[44400,44404,44408],{"type":21,"tag":138,"props":44401,"children":44402},{"style":151},[44403],{"type":31,"value":4881},{"type":21,"tag":138,"props":44405,"children":44406},{"style":145},[44407],{"type":31,"value":210},{"type":21,"tag":138,"props":44409,"children":44410},{"style":151},[44411],{"type":31,"value":44412}," vqe.compute_minimum_eigenvalue(hamiltonian)\n",{"type":21,"tag":138,"props":44414,"children":44415},{"class":140,"line":17803},[44416,44420,44424,44428,44433,44437,44442,44446,44450,44454],{"type":21,"tag":138,"props":44417,"children":44418},{"style":213},[44419],{"type":31,"value":954},{"type":21,"tag":138,"props":44421,"children":44422},{"style":151},[44423],{"type":31,"value":959},{"type":21,"tag":138,"props":44425,"children":44426},{"style":145},[44427],{"type":31,"value":7537},{"type":21,"tag":138,"props":44429,"children":44430},{"style":261},[44431],{"type":31,"value":44432},"\"H2 ground state: ",{"type":21,"tag":138,"props":44434,"children":44435},{"style":213},[44436],{"type":31,"value":7547},{"type":21,"tag":138,"props":44438,"children":44439},{"style":151},[44440],{"type":31,"value":44441},"result.eigenvalue.real",{"type":21,"tag":138,"props":44443,"children":44444},{"style":145},[44445],{"type":31,"value":25594},{"type":21,"tag":138,"props":44447,"children":44448},{"style":213},[44449],{"type":31,"value":7556},{"type":21,"tag":138,"props":44451,"children":44452},{"style":261},[44453],{"type":31,"value":41182},{"type":21,"tag":138,"props":44455,"children":44456},{"style":151},[44457],{"type":31,"value":269},{"type":21,"tag":22,"props":44459,"children":44460},{},[44461],{"type":21,"tag":16815,"props":44462,"children":44463},{},[44464],{"type":31,"value":44465},"HLQuantum VQE：",{"type":21,"tag":128,"props":44467,"children":44469},{"code":44468,"language":132,"meta":7,"className":130,"style":7},"import hlquantum as hlq\n\nresult = hlq.algorithms.vqe(\n    molecule='H2',\n    basis='sto-3g',\n    backend='qiskit',\n    optimizer='COBYLA',\n)\nprint(f\"H2 ground state: {result.energy:.4f} Ha\")\n\n# Switch to GPU:\nresult_gpu = hlq.algorithms.vqe(molecule='H2', backend='cudaq')\n",[44470],{"type":21,"tag":103,"props":44471,"children":44472},{"__ignoreMap":7},[44473,44492,44499,44515,44535,44554,44574,44595,44602,44645,44652,44660],{"type":21,"tag":138,"props":44474,"children":44475},{"class":140,"line":141},[44476,44480,44484,44488],{"type":21,"tag":138,"props":44477,"children":44478},{"style":145},[44479],{"type":31,"value":159},{"type":21,"tag":138,"props":44481,"children":44482},{"style":151},[44483],{"type":31,"value":41047},{"type":21,"tag":138,"props":44485,"children":44486},{"style":145},[44487],{"type":31,"value":5356},{"type":21,"tag":138,"props":44489,"children":44490},{"style":151},[44491],{"type":31,"value":41056},{"type":21,"tag":138,"props":44493,"children":44494},{"class":140,"line":167},[44495],{"type":21,"tag":138,"props":44496,"children":44497},{"emptyLinePlaceholder":193},[44498],{"type":31,"value":196},{"type":21,"tag":138,"props":44500,"children":44501},{"class":140,"line":189},[44502,44506,44510],{"type":21,"tag":138,"props":44503,"children":44504},{"style":151},[44505],{"type":31,"value":4881},{"type":21,"tag":138,"props":44507,"children":44508},{"style":145},[44509],{"type":31,"value":210},{"type":21,"tag":138,"props":44511,"children":44512},{"style":151},[44513],{"type":31,"value":44514}," hlq.algorithms.vqe(\n",{"type":21,"tag":138,"props":44516,"children":44517},{"class":140,"line":199},[44518,44523,44527,44531],{"type":21,"tag":138,"props":44519,"children":44520},{"style":929},[44521],{"type":31,"value":44522},"    molecule",{"type":21,"tag":138,"props":44524,"children":44525},{"style":145},[44526],{"type":31,"value":210},{"type":21,"tag":138,"props":44528,"children":44529},{"style":261},[44530],{"type":31,"value":41101},{"type":21,"tag":138,"props":44532,"children":44533},{"style":151},[44534],{"type":31,"value":4824},{"type":21,"tag":138,"props":44536,"children":44537},{"class":140,"line":225},[44538,44542,44546,44550],{"type":21,"tag":138,"props":44539,"children":44540},{"style":929},[44541],{"type":31,"value":12005},{"type":21,"tag":138,"props":44543,"children":44544},{"style":145},[44545],{"type":31,"value":210},{"type":21,"tag":138,"props":44547,"children":44548},{"style":261},[44549],{"type":31,"value":41119},{"type":21,"tag":138,"props":44551,"children":44552},{"style":151},[44553],{"type":31,"value":4824},{"type":21,"tag":138,"props":44555,"children":44556},{"class":140,"line":233},[44557,44562,44566,44570],{"type":21,"tag":138,"props":44558,"children":44559},{"style":929},[44560],{"type":31,"value":44561},"    backend",{"type":21,"tag":138,"props":44563,"children":44564},{"style":145},[44565],{"type":31,"value":210},{"type":21,"tag":138,"props":44567,"children":44568},{"style":261},[44569],{"type":31,"value":41136},{"type":21,"tag":138,"props":44571,"children":44572},{"style":151},[44573],{"type":31,"value":4824},{"type":21,"tag":138,"props":44575,"children":44576},{"class":140,"line":272},[44577,44582,44586,44591],{"type":21,"tag":138,"props":44578,"children":44579},{"style":929},[44580],{"type":31,"value":44581},"    optimizer",{"type":21,"tag":138,"props":44583,"children":44584},{"style":145},[44585],{"type":31,"value":210},{"type":21,"tag":138,"props":44587,"children":44588},{"style":261},[44589],{"type":31,"value":44590},"'COBYLA'",{"type":21,"tag":138,"props":44592,"children":44593},{"style":151},[44594],{"type":31,"value":4824},{"type":21,"tag":138,"props":44596,"children":44597},{"class":140,"line":308},[44598],{"type":21,"tag":138,"props":44599,"children":44600},{"style":151},[44601],{"type":31,"value":269},{"type":21,"tag":138,"props":44603,"children":44604},{"class":140,"line":16},[44605,44609,44613,44617,44621,44625,44629,44633,44637,44641],{"type":21,"tag":138,"props":44606,"children":44607},{"style":213},[44608],{"type":31,"value":954},{"type":21,"tag":138,"props":44610,"children":44611},{"style":151},[44612],{"type":31,"value":959},{"type":21,"tag":138,"props":44614,"children":44615},{"style":145},[44616],{"type":31,"value":7537},{"type":21,"tag":138,"props":44618,"children":44619},{"style":261},[44620],{"type":31,"value":44432},{"type":21,"tag":138,"props":44622,"children":44623},{"style":213},[44624],{"type":31,"value":7547},{"type":21,"tag":138,"props":44626,"children":44627},{"style":151},[44628],{"type":31,"value":41169},{"type":21,"tag":138,"props":44630,"children":44631},{"style":145},[44632],{"type":31,"value":25594},{"type":21,"tag":138,"props":44634,"children":44635},{"style":213},[44636],{"type":31,"value":7556},{"type":21,"tag":138,"props":44638,"children":44639},{"style":261},[44640],{"type":31,"value":41182},{"type":21,"tag":138,"props":44642,"children":44643},{"style":151},[44644],{"type":31,"value":269},{"type":21,"tag":138,"props":44646,"children":44647},{"class":140,"line":360},[44648],{"type":21,"tag":138,"props":44649,"children":44650},{"emptyLinePlaceholder":193},[44651],{"type":31,"value":196},{"type":21,"tag":138,"props":44653,"children":44654},{"class":140,"line":368},[44655],{"type":21,"tag":138,"props":44656,"children":44657},{"style":219},[44658],{"type":31,"value":44659},"# Switch to GPU:\n",{"type":21,"tag":138,"props":44661,"children":44662},{"class":140,"line":377},[44663,44668,44672,44676,44680,44684,44688,44692,44696,44700,44704],{"type":21,"tag":138,"props":44664,"children":44665},{"style":151},[44666],{"type":31,"value":44667},"result_gpu ",{"type":21,"tag":138,"props":44669,"children":44670},{"style":145},[44671],{"type":31,"value":210},{"type":21,"tag":138,"props":44673,"children":44674},{"style":151},[44675],{"type":31,"value":41087},{"type":21,"tag":138,"props":44677,"children":44678},{"style":929},[44679],{"type":31,"value":41092},{"type":21,"tag":138,"props":44681,"children":44682},{"style":145},[44683],{"type":31,"value":210},{"type":21,"tag":138,"props":44685,"children":44686},{"style":261},[44687],{"type":31,"value":41101},{"type":21,"tag":138,"props":44689,"children":44690},{"style":151},[44691],{"type":31,"value":258},{"type":21,"tag":138,"props":44693,"children":44694},{"style":929},[44695],{"type":31,"value":11000},{"type":21,"tag":138,"props":44697,"children":44698},{"style":145},[44699],{"type":31,"value":210},{"type":21,"tag":138,"props":44701,"children":44702},{"style":261},[44703],{"type":31,"value":43929},{"type":21,"tag":138,"props":44705,"children":44706},{"style":151},[44707],{"type":31,"value":269},{"type":21,"tag":22,"props":44709,"children":44710},{},[44711],{"type":31,"value":44712},"原生 Qiskit 让你对 ansatz、mapper 和 driver 拥有完全的控制。HLQuantum 的一行代码最适合用来比较后端或快速获得结果；当你需要自定义 ansatz 或算法调优时，原生 Qiskit 更胜一筹。",{"type":21,"tag":41,"props":44714,"children":44716},{"id":44715},"何时使用原生-qiskit",[44717],{"type":31,"value":44718},"何时使用原生 Qiskit",{"type":21,"tag":22,"props":44720,"children":44721},{},[44722],{"type":31,"value":44723},"在以下情况下直接使用 Qiskit：",{"type":21,"tag":67,"props":44725,"children":44726},{},[44727,44737,44747,44786,44796],{"type":21,"tag":71,"props":44728,"children":44729},{},[44730,44735],{"type":21,"tag":16815,"props":44731,"children":44732},{},[44733],{"type":31,"value":44734},"你仅面向 IBM 硬件",{"type":31,"value":44736}," — Qiskit 的转译器和 IBM Runtime 原语在 IBM QPU 上能给你最佳性能。HLQuantum 的抽象会增加额外开销。",{"type":21,"tag":71,"props":44738,"children":44739},{},[44740,44745],{"type":21,"tag":16815,"props":44741,"children":44742},{},[44743],{"type":31,"value":44744},"你需要细粒度的电路控制",{"type":31,"value":44746}," — 自定义门分解、特定的转译器 pass、脉冲级控制、带中间电路测量的动态电路。",{"type":21,"tag":71,"props":44748,"children":44749},{},[44750,44755,44757,44763,44764,44770,44771,44777,44778,44784],{"type":21,"tag":16815,"props":44751,"children":44752},{},[44753],{"type":31,"value":44754},"你在做 IBM 生态系统的研究",{"type":31,"value":44756}," — 使用 ",{"type":21,"tag":103,"props":44758,"children":44760},{"className":44759},[],[44761],{"type":31,"value":44762},"qiskit-nature",{"type":31,"value":1161},{"type":21,"tag":103,"props":44765,"children":44767},{"className":44766},[],[44768],{"type":31,"value":44769},"qiskit-finance",{"type":31,"value":1161},{"type":21,"tag":103,"props":44772,"children":44774},{"className":44773},[],[44775],{"type":31,"value":44776},"qiskit-optimization",{"type":31,"value":42254},{"type":21,"tag":103,"props":44779,"children":44781},{"className":44780},[],[44782],{"type":31,"value":44783},"qiskit-machine-learning",{"type":31,"value":44785},"——这些与原生 Qiskit 的集成最为深入。",{"type":21,"tag":71,"props":44787,"children":44788},{},[44789,44794],{"type":21,"tag":16815,"props":44790,"children":44791},{},[44792],{"type":31,"value":44793},"性能至关重要",{"type":31,"value":44795}," — 直接的 Qiskit 代码比 HLQuantum 中的翻译层开销更小。",{"type":21,"tag":71,"props":44797,"children":44798},{},[44799,44804],{"type":21,"tag":16815,"props":44800,"children":44801},{},[44802],{"type":31,"value":44803},"你在为 Qiskit 生态系统做贡献",{"type":31,"value":44805}," — 编写 Qiskit 插件、教程或以 Qiskit 作为参考实现的研究论文。",{"type":21,"tag":41,"props":44807,"children":44809},{"id":44808},"何时使用-hlquantum",[44810],{"type":31,"value":44811},"何时使用 HLQuantum",{"type":21,"tag":22,"props":44813,"children":44814},{},[44815],{"type":31,"value":44816},"在以下情况下使用 HLQuantum：",{"type":21,"tag":67,"props":44818,"children":44819},{},[44820,44830,44840,44850,44882],{"type":21,"tag":71,"props":44821,"children":44822},{},[44823,44828],{"type":21,"tag":16815,"props":44824,"children":44825},{},[44826],{"type":31,"value":44827},"你需要后端灵活性",{"type":31,"value":44829}," — 比较模拟器性能、在不同架构上对电路进行基准测试，或访问多个云端 QPU。",{"type":21,"tag":71,"props":44831,"children":44832},{},[44833,44838],{"type":21,"tag":16815,"props":44834,"children":44835},{},[44836],{"type":31,"value":44837},"你在为算法做原型",{"type":31,"value":44839}," — 编写一次，随处测试。从本地模拟切换到 GPU 再到真实硬件时，无需重新布线电路。",{"type":21,"tag":71,"props":44841,"children":44842},{},[44843,44848],{"type":21,"tag":16815,"props":44844,"children":44845},{},[44846],{"type":31,"value":44847},"你在教学或学习",{"type":31,"value":44849}," — 跨所有后端的统一 API 让学习更容易。无需学习 6 种不同的 API。",{"type":21,"tag":71,"props":44851,"children":44852},{},[44853,44858,44860,44866,44867,44873,44874,44880],{"type":21,"tag":16815,"props":44854,"children":44855},{},[44856],{"type":31,"value":44857},"你想要内置算法",{"type":31,"value":44859}," — ",{"type":21,"tag":103,"props":44861,"children":44863},{"className":44862},[],[44864],{"type":31,"value":44865},"hlq.algorithms.vqe()",{"type":31,"value":1161},{"type":21,"tag":103,"props":44868,"children":44870},{"className":44869},[],[44871],{"type":31,"value":44872},"hlq.algorithms.qaoa()",{"type":31,"value":1161},{"type":21,"tag":103,"props":44875,"children":44877},{"className":44876},[],[44878],{"type":31,"value":44879},"hlq.algorithms.grover()",{"type":31,"value":44881}," 会处理样板代码。",{"type":21,"tag":71,"props":44883,"children":44884},{},[44885,44890],{"type":21,"tag":16815,"props":44886,"children":44887},{},[44888],{"type":31,"value":44889},"你在构建多后端应用",{"type":31,"value":44891}," — 如果你的应用需要在队列最短或成本最低的任意 QPU 上运行，HLQuantum 的分派器可以处理这一点。",{"type":21,"tag":41,"props":44893,"children":44895},{"id":44894},"迁移qiskit-hlquantum",[44896],{"type":31,"value":44897},"迁移：Qiskit → HLQuantum",{"type":21,"tag":22,"props":44899,"children":44900},{},[44901],{"type":31,"value":44902},"如果你已有现成的 Qiskit 代码，HLQuantum 可以直接使用 Qiskit 电路：",{"type":21,"tag":128,"props":44904,"children":44906},{"code":44905,"language":132,"meta":7,"className":130,"style":7},"import hlquantum as hlq\nfrom qiskit import QuantumCircuit\n\n# Existing Qiskit circuit\nqc = QuantumCircuit(3)\nqc.h(0); qc.cx(0, 1); qc.cx(1, 2)\n\n# Wrap and run on any backend\nresult = hlq.run(hlq.from_qiskit(qc), backend='pennylane')\nresult_gpu = hlq.run(hlq.from_qiskit(qc), backend='cudaq')\n",[44907],{"type":21,"tag":103,"props":44908,"children":44909},{"__ignoreMap":7},[44910,44929,44948,44955,44963,44986,45034,45041,45049,45081],{"type":21,"tag":138,"props":44911,"children":44912},{"class":140,"line":141},[44913,44917,44921,44925],{"type":21,"tag":138,"props":44914,"children":44915},{"style":145},[44916],{"type":31,"value":159},{"type":21,"tag":138,"props":44918,"children":44919},{"style":151},[44920],{"type":31,"value":41047},{"type":21,"tag":138,"props":44922,"children":44923},{"style":145},[44924],{"type":31,"value":5356},{"type":21,"tag":138,"props":44926,"children":44927},{"style":151},[44928],{"type":31,"value":41056},{"type":21,"tag":138,"props":44930,"children":44931},{"class":140,"line":167},[44932,44936,44940,44944],{"type":21,"tag":138,"props":44933,"children":44934},{"style":145},[44935],{"type":31,"value":148},{"type":21,"tag":138,"props":44937,"children":44938},{"style":151},[44939],{"type":31,"value":154},{"type":21,"tag":138,"props":44941,"children":44942},{"style":145},[44943],{"type":31,"value":159},{"type":21,"tag":138,"props":44945,"children":44946},{"style":151},[44947],{"type":31,"value":6282},{"type":21,"tag":138,"props":44949,"children":44950},{"class":140,"line":189},[44951],{"type":21,"tag":138,"props":44952,"children":44953},{"emptyLinePlaceholder":193},[44954],{"type":31,"value":196},{"type":21,"tag":138,"props":44956,"children":44957},{"class":140,"line":199},[44958],{"type":21,"tag":138,"props":44959,"children":44960},{"style":219},[44961],{"type":31,"value":44962},"# Existing Qiskit circuit\n",{"type":21,"tag":138,"props":44964,"children":44965},{"class":140,"line":225},[44966,44970,44974,44978,44982],{"type":21,"tag":138,"props":44967,"children":44968},{"style":151},[44969],{"type":31,"value":348},{"type":21,"tag":138,"props":44971,"children":44972},{"style":145},[44973],{"type":31,"value":210},{"type":21,"tag":138,"props":44975,"children":44976},{"style":151},[44977],{"type":31,"value":6305},{"type":21,"tag":138,"props":44979,"children":44980},{"style":213},[44981],{"type":31,"value":253},{"type":21,"tag":138,"props":44983,"children":44984},{"style":151},[44985],{"type":31,"value":269},{"type":21,"tag":138,"props":44987,"children":44988},{"class":140,"line":233},[44989,44993,44997,45002,45006,45010,45014,45018,45022,45026,45030],{"type":21,"tag":138,"props":44990,"children":44991},{"style":151},[44992],{"type":31,"value":441},{"type":21,"tag":138,"props":44994,"children":44995},{"style":213},[44996],{"type":31,"value":406},{"type":21,"tag":138,"props":44998,"children":44999},{"style":151},[45000],{"type":31,"value":45001},"); qc.cx(",{"type":21,"tag":138,"props":45003,"children":45004},{"style":213},[45005],{"type":31,"value":406},{"type":21,"tag":138,"props":45007,"children":45008},{"style":151},[45009],{"type":31,"value":258},{"type":21,"tag":138,"props":45011,"children":45012},{"style":213},[45013],{"type":31,"value":327},{"type":21,"tag":138,"props":45015,"children":45016},{"style":151},[45017],{"type":31,"value":45001},{"type":21,"tag":138,"props":45019,"children":45020},{"style":213},[45021],{"type":31,"value":327},{"type":21,"tag":138,"props":45023,"children":45024},{"style":151},[45025],{"type":31,"value":258},{"type":21,"tag":138,"props":45027,"children":45028},{"style":213},[45029],{"type":31,"value":292},{"type":21,"tag":138,"props":45031,"children":45032},{"style":151},[45033],{"type":31,"value":269},{"type":21,"tag":138,"props":45035,"children":45036},{"class":140,"line":272},[45037],{"type":21,"tag":138,"props":45038,"children":45039},{"emptyLinePlaceholder":193},[45040],{"type":31,"value":196},{"type":21,"tag":138,"props":45042,"children":45043},{"class":140,"line":308},[45044],{"type":21,"tag":138,"props":45045,"children":45046},{"style":219},[45047],{"type":31,"value":45048},"# Wrap and run on any backend\n",{"type":21,"tag":138,"props":45050,"children":45051},{"class":140,"line":16},[45052,45056,45060,45065,45069,45073,45077],{"type":21,"tag":138,"props":45053,"children":45054},{"style":151},[45055],{"type":31,"value":4881},{"type":21,"tag":138,"props":45057,"children":45058},{"style":145},[45059],{"type":31,"value":210},{"type":21,"tag":138,"props":45061,"children":45062},{"style":151},[45063],{"type":31,"value":45064}," hlq.run(hlq.from_qiskit(qc), ",{"type":21,"tag":138,"props":45066,"children":45067},{"style":929},[45068],{"type":31,"value":11000},{"type":21,"tag":138,"props":45070,"children":45071},{"style":145},[45072],{"type":31,"value":210},{"type":21,"tag":138,"props":45074,"children":45075},{"style":261},[45076],{"type":31,"value":43896},{"type":21,"tag":138,"props":45078,"children":45079},{"style":151},[45080],{"type":31,"value":269},{"type":21,"tag":138,"props":45082,"children":45083},{"class":140,"line":360},[45084,45088,45092,45096,45100,45104,45108],{"type":21,"tag":138,"props":45085,"children":45086},{"style":151},[45087],{"type":31,"value":44667},{"type":21,"tag":138,"props":45089,"children":45090},{"style":145},[45091],{"type":31,"value":210},{"type":21,"tag":138,"props":45093,"children":45094},{"style":151},[45095],{"type":31,"value":45064},{"type":21,"tag":138,"props":45097,"children":45098},{"style":929},[45099],{"type":31,"value":11000},{"type":21,"tag":138,"props":45101,"children":45102},{"style":145},[45103],{"type":31,"value":210},{"type":21,"tag":138,"props":45105,"children":45106},{"style":261},[45107],{"type":31,"value":43929},{"type":21,"tag":138,"props":45109,"children":45110},{"style":151},[45111],{"type":31,"value":269},{"type":21,"tag":22,"props":45113,"children":45114},{},[45115],{"type":31,"value":45116},"无需重写——你可以增量式地为现有的 Qiskit 代码添加 HLQuantum 的多后端能力。",{"type":21,"tag":41,"props":45118,"children":45120},{"id":45119},"决策清单",[45121],{"type":31,"value":45119},{"type":21,"tag":128,"props":45123,"children":45125},{"code":45124},"Starting a new project?\n├── Need IBM-specific features (Qiskit Runtime, pulse control)?  → Raw Qiskit\n├── Need to run on multiple backends or compare performance?     → HLQuantum\n├── Learning quantum computing for the first time?               → HLQuantum\n└── Building a research paper targeting IBM hardware?            → Raw Qiskit\n\nMigrating existing Qiskit code?\n├── Want to add GPU acceleration?     → HLQuantum (from_qiskit + cudaq)\n├── Want to try IonQ hardware?        → HLQuantum (from_qiskit + ionq)\n└── Want to stay IBM-only?            → Stay with Qiskit\n",[45126],{"type":21,"tag":103,"props":45127,"children":45128},{"__ignoreMap":7},[45129],{"type":31,"value":45124},{"type":21,"tag":22,"props":45131,"children":45132},{},[45133],{"type":31,"value":45134},"两者并非互斥。许多工作流以原生 Qiskit 进行电路设计，然后用 HLQuantum 封装以实现多后端部署。",{"type":21,"tag":22,"props":45136,"children":45137},{},[45138,45143,45144,45149,45150,45154,45155],{"type":21,"tag":16815,"props":45139,"children":45140},{},[45141],{"type":31,"value":45142},"开始使用：",{"type":31,"value":22965},{"type":21,"tag":26,"props":45145,"children":45146},{"href":40756},[45147],{"type":31,"value":45148},"HLQuantum 指南",{"type":31,"value":28968},{"type":21,"tag":26,"props":45151,"children":45152},{"href":1126},[45153],{"type":31,"value":1129},{"type":31,"value":28968},{"type":21,"tag":26,"props":45156,"children":45157},{"href":19079},[45158],{"type":31,"value":45159},"比较所有 SDK",{"type":21,"tag":1174,"props":45161,"children":45162},{},[45163],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":45165},[45166,45167,45168,45169,45170,45171,45172,45173],{"id":42769,"depth":167,"text":42769},{"id":42792,"depth":167,"text":42795},{"id":43211,"depth":167,"text":43214},{"id":44079,"depth":167,"text":44082},{"id":44715,"depth":167,"text":44718},{"id":44808,"depth":167,"text":44811},{"id":44894,"depth":167,"text":44897},{"id":45119,"depth":167,"text":45119},"content:zh:blog:hlquantum-vs-qiskit.md","zh\u002Fblog\u002Fhlquantum-vs-qiskit.md","zh\u002Fblog\u002Fhlquantum-vs-qiskit",{"_path":45178,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":45179,"description":45180,"date":45181,"author":11,"tags":45182,"readingTime":360,"body":45183,"_type":1193,"_id":46219,"_source":1195,"_file":46220,"_stem":46221,"_extension":1198},"\u002Fzh\u002Fblog\u002Fpost-quantum-cryptography-guide","后量子密码学：开发者现在需要做什么","Shor 算法威胁着 RSA 和 ECC。NIST 已经确定了其后量子标准。以下是威胁所在、标准的内容，以及开发者今天应该采取的行动。","2026-03-05",[3863,3864,3862],{"type":18,"children":45184,"toc":46203},[45185,45197,45202,45208,45221,45229,45252,45260,45283,45294,45300,45305,45323,45335,45343,45371,45379,45397,45403,45408,45414,45457,45618,45624,45663,45786,45792,45831,45843,45849,45855,45865,45888,45898,45908,45914,45931,45956,45966,45976,45982,45992,46002,46012,46017,46161,46166,46174,46179,46199],{"type":21,"tag":22,"props":45186,"children":45187},{},[45188,45190,45195],{"type":31,"value":45189},"量子计算机目前还不会威胁到你的加密。一台能够破解 RSA-2048 的量子计算机需要数百万个纠错逻辑量子比特——而我们现在只有数百个带噪声的物理量子比特。但问题在于：对手可能",{"type":21,"tag":16815,"props":45191,"children":45192},{},[45193],{"type":31,"value":45194},"现在",{"type":31,"value":45196},"就在收集加密数据，意图在未来量子硬件成熟后再解密它。而迁移密码学基础设施需要数年时间。",{"type":21,"tag":22,"props":45198,"children":45199},{},[45200],{"type":31,"value":45201},"这就是为什么 2024 年 NIST 的后量子密码学标准对开发者来说，在今天就很重要，而不是等到 2035 年。",{"type":21,"tag":41,"props":45203,"children":45205},{"id":45204},"真正的威胁shor-算法",[45206],{"type":31,"value":45207},"真正的威胁：Shor 算法",{"type":21,"tag":22,"props":45209,"children":45210},{},[45211,45213,45219],{"type":31,"value":45212},"1994 年，Peter Shor 证明了量子计算机能够以多项式时间 ",{"type":21,"tag":103,"props":45214,"children":45216},{"className":45215},[],[45217],{"type":31,"value":45218},"O((log N)³)",{"type":31,"value":45220}," 分解大整数。这破解了 RSA，因为 RSA 的安全性依赖于分解质因数的困难性。同样的算法——只需稍作修改——就能破解椭圆曲线密码学（ECC），而 ECC 是 ECDSA 和 ECDH 的基础。",{"type":21,"tag":22,"props":45222,"children":45223},{},[45224],{"type":21,"tag":16815,"props":45225,"children":45226},{},[45227],{"type":31,"value":45228},"会被破解的：",{"type":21,"tag":1118,"props":45230,"children":45231},{},[45232,45237,45242,45247],{"type":21,"tag":71,"props":45233,"children":45234},{},[45235],{"type":31,"value":45236},"RSA（加密、签名）",{"type":21,"tag":71,"props":45238,"children":45239},{},[45240],{"type":31,"value":45241},"ECDSA（签名——用于 TLS、SSH、代码签名、比特币）",{"type":21,"tag":71,"props":45243,"children":45244},{},[45245],{"type":31,"value":45246},"ECDH（密钥交换——用于 TLS、Signal、WhatsApp、iMessage）",{"type":21,"tag":71,"props":45248,"children":45249},{},[45250],{"type":31,"value":45251},"Diffie-Hellman（密钥交换）",{"type":21,"tag":22,"props":45253,"children":45254},{},[45255],{"type":21,"tag":16815,"props":45256,"children":45257},{},[45258],{"type":31,"value":45259},"不会被破解的：",{"type":21,"tag":1118,"props":45261,"children":45262},{},[45263,45268,45273,45278],{"type":21,"tag":71,"props":45264,"children":45265},{},[45266],{"type":31,"value":45267},"AES-256（对称加密）——Grover 算法只提供二次方加速，将有效密钥强度从 256 位降低到 128 位。这是可以承受的。",{"type":21,"tag":71,"props":45269,"children":45270},{},[45271],{"type":31,"value":45272},"SHA-256、SHA-3（哈希函数）——同样：Grover 提供的加速有限，安全性减半，在当前密钥长度下仍然足够强。",{"type":21,"tag":71,"props":45274,"children":45275},{},[45276],{"type":31,"value":45277},"HMAC——安全",{"type":21,"tag":71,"props":45279,"children":45280},{},[45281],{"type":31,"value":45282},"Argon2、bcrypt（密码哈希）——安全",{"type":21,"tag":22,"props":45284,"children":45285},{},[45286,45288,45293],{"type":31,"value":45287},"底线是：",{"type":21,"tag":16815,"props":45289,"children":45290},{},[45291],{"type":31,"value":45292},"非对称密码学需要替换；对称密码学需要提升密钥长度（AES-128 → AES-256）",{"type":31,"value":3120},{"type":21,"tag":41,"props":45295,"children":45297},{"id":45296},"现在收集以后解密",[45298],{"type":31,"value":45299},"现在收集，以后解密",{"type":21,"tag":22,"props":45301,"children":45302},{},[45303],{"type":31,"value":45304},"威胁并不是\"量子计算机明年就会破解加密\"。威胁在于：",{"type":21,"tag":67,"props":45306,"children":45307},{},[45308,45313,45318],{"type":21,"tag":71,"props":45309,"children":45310},{},[45311],{"type":31,"value":45312},"对手在今天捕获并存储你加密的 TLS 流量",{"type":21,"tag":71,"props":45314,"children":45315},{},[45316],{"type":31,"value":45317},"在 2032–2040 年，他们对这些流量运行 Shor 算法",{"type":21,"tag":71,"props":45319,"children":45320},{},[45321],{"type":31,"value":45322},"他们追溯性地解密一切",{"type":21,"tag":22,"props":45324,"children":45325},{},[45326,45328,45333],{"type":31,"value":45327},"这种攻击——称为**\"现在收集，以后解密\"（harvest now, decrypt later）**或 ",{"type":21,"tag":16815,"props":45329,"children":45330},{},[45331],{"type":31,"value":45332},"HNDL",{"type":31,"value":45334},"——已经在发生。NSA 和其他情报机构几乎可以肯定正在存储大量加密流量。2022 年 NSA 的公告明确警告了这一点。",{"type":21,"tag":22,"props":45336,"children":45337},{},[45338],{"type":21,"tag":16815,"props":45339,"children":45340},{},[45341],{"type":31,"value":45342},"今天就需要针对 HNDL 加以保护的数据：",{"type":21,"tag":1118,"props":45344,"children":45345},{},[45346,45351,45356,45361,45366],{"type":21,"tag":71,"props":45347,"children":45348},{},[45349],{"type":31,"value":45350},"国家机密、机密政府数据",{"type":21,"tag":71,"props":45352,"children":45353},{},[45354],{"type":31,"value":45355},"长期有效的个人数据（医疗记录、身份证件）",{"type":21,"tag":71,"props":45357,"children":45358},{},[45359],{"type":31,"value":45360},"有长期监管保留要求的金融数据",{"type":21,"tag":71,"props":45362,"children":45363},{},[45364],{"type":31,"value":45365},"商业秘密和知识产权",{"type":21,"tag":71,"props":45367,"children":45368},{},[45369],{"type":31,"value":45370},"密码数据库（尽管 bcrypt\u002FArgon2 是安全的）",{"type":21,"tag":22,"props":45372,"children":45373},{},[45374],{"type":21,"tag":16815,"props":45375,"children":45376},{},[45377],{"type":31,"value":45378},"不需要立即担心的数据：",{"type":21,"tag":1118,"props":45380,"children":45381},{},[45382,45387,45392],{"type":21,"tag":71,"props":45383,"children":45384},{},[45385],{"type":31,"value":45386},"会话令牌（短期有效，10 年后毫无价值）",{"type":21,"tag":71,"props":45388,"children":45389},{},[45390],{"type":31,"value":45391},"临时聊天消息（除非你是高价值目标）",{"type":21,"tag":71,"props":45393,"children":45394},{},[45395],{"type":31,"value":45396},"公开信息",{"type":21,"tag":41,"props":45398,"children":45400},{"id":45399},"nist-的后量子标准2024",[45401],{"type":31,"value":45402},"NIST 的后量子标准（2024）",{"type":21,"tag":22,"props":45404,"children":45405},{},[45406],{"type":31,"value":45407},"经过 8 年的竞赛，NIST 于 2024 年 8 月确定了三种后量子密码学算法：",{"type":21,"tag":421,"props":45409,"children":45411},{"id":45410},"ml-kemcrystals-kyber密钥封装",[45412],{"type":31,"value":45413},"ML-KEM（CRYSTALS-Kyber）——密钥封装",{"type":21,"tag":1118,"props":45415,"children":45416},{},[45417,45427,45437,45447],{"type":21,"tag":71,"props":45418,"children":45419},{},[45420,45425],{"type":21,"tag":16815,"props":45421,"children":45422},{},[45423],{"type":31,"value":45424},"替代：",{"type":31,"value":45426}," RSA 密钥交换、ECDH",{"type":21,"tag":71,"props":45428,"children":45429},{},[45430,45435],{"type":21,"tag":16815,"props":45431,"children":45432},{},[45433],{"type":31,"value":45434},"安全基础：",{"type":31,"value":45436}," 模容错学习（MLWE）问题——被认为对经典计算机和量子计算机都很难",{"type":21,"tag":71,"props":45438,"children":45439},{},[45440,45445],{"type":21,"tag":16815,"props":45441,"children":45442},{},[45443],{"type":31,"value":45444},"性能：",{"type":31,"value":45446}," 快速，密钥小（KEM-768 约 800 字节），运算迅速",{"type":21,"tag":71,"props":45448,"children":45449},{},[45450,45455],{"type":21,"tag":16815,"props":45451,"children":45452},{},[45453],{"type":31,"value":45454},"用于：",{"type":31,"value":45456}," TLS 密钥交换、加密密钥封装、混合加密方案",{"type":21,"tag":128,"props":45458,"children":45460},{"code":45459,"language":132,"meta":7,"className":130,"style":7},"# Python example using pqcrypto library\nfrom pqcrypto.kem.kyber768 import generate_keypair, encapsulate, decapsulate\n\npublic_key, secret_key = generate_keypair()\n\n# Sender encapsulates a shared secret\nciphertext, shared_secret_sender = encapsulate(public_key)\n\n# Receiver decapsulates\nshared_secret_receiver = decapsulate(secret_key, ciphertext)\n\nassert shared_secret_sender == shared_secret_receiver\n# Now use shared_secret as AES key\n",[45461],{"type":21,"tag":103,"props":45462,"children":45463},{"__ignoreMap":7},[45464,45472,45493,45500,45517,45524,45532,45549,45556,45564,45581,45588,45610],{"type":21,"tag":138,"props":45465,"children":45466},{"class":140,"line":141},[45467],{"type":21,"tag":138,"props":45468,"children":45469},{"style":219},[45470],{"type":31,"value":45471},"# Python example using pqcrypto library\n",{"type":21,"tag":138,"props":45473,"children":45474},{"class":140,"line":167},[45475,45479,45484,45488],{"type":21,"tag":138,"props":45476,"children":45477},{"style":145},[45478],{"type":31,"value":148},{"type":21,"tag":138,"props":45480,"children":45481},{"style":151},[45482],{"type":31,"value":45483}," pqcrypto.kem.kyber768 ",{"type":21,"tag":138,"props":45485,"children":45486},{"style":145},[45487],{"type":31,"value":159},{"type":21,"tag":138,"props":45489,"children":45490},{"style":151},[45491],{"type":31,"value":45492}," generate_keypair, encapsulate, decapsulate\n",{"type":21,"tag":138,"props":45494,"children":45495},{"class":140,"line":189},[45496],{"type":21,"tag":138,"props":45497,"children":45498},{"emptyLinePlaceholder":193},[45499],{"type":31,"value":196},{"type":21,"tag":138,"props":45501,"children":45502},{"class":140,"line":199},[45503,45508,45512],{"type":21,"tag":138,"props":45504,"children":45505},{"style":151},[45506],{"type":31,"value":45507},"public_key, secret_key ",{"type":21,"tag":138,"props":45509,"children":45510},{"style":145},[45511],{"type":31,"value":210},{"type":21,"tag":138,"props":45513,"children":45514},{"style":151},[45515],{"type":31,"value":45516}," generate_keypair()\n",{"type":21,"tag":138,"props":45518,"children":45519},{"class":140,"line":225},[45520],{"type":21,"tag":138,"props":45521,"children":45522},{"emptyLinePlaceholder":193},[45523],{"type":31,"value":196},{"type":21,"tag":138,"props":45525,"children":45526},{"class":140,"line":233},[45527],{"type":21,"tag":138,"props":45528,"children":45529},{"style":219},[45530],{"type":31,"value":45531},"# Sender encapsulates a shared secret\n",{"type":21,"tag":138,"props":45533,"children":45534},{"class":140,"line":272},[45535,45540,45544],{"type":21,"tag":138,"props":45536,"children":45537},{"style":151},[45538],{"type":31,"value":45539},"ciphertext, shared_secret_sender ",{"type":21,"tag":138,"props":45541,"children":45542},{"style":145},[45543],{"type":31,"value":210},{"type":21,"tag":138,"props":45545,"children":45546},{"style":151},[45547],{"type":31,"value":45548}," encapsulate(public_key)\n",{"type":21,"tag":138,"props":45550,"children":45551},{"class":140,"line":308},[45552],{"type":21,"tag":138,"props":45553,"children":45554},{"emptyLinePlaceholder":193},[45555],{"type":31,"value":196},{"type":21,"tag":138,"props":45557,"children":45558},{"class":140,"line":16},[45559],{"type":21,"tag":138,"props":45560,"children":45561},{"style":219},[45562],{"type":31,"value":45563},"# Receiver decapsulates\n",{"type":21,"tag":138,"props":45565,"children":45566},{"class":140,"line":360},[45567,45572,45576],{"type":21,"tag":138,"props":45568,"children":45569},{"style":151},[45570],{"type":31,"value":45571},"shared_secret_receiver ",{"type":21,"tag":138,"props":45573,"children":45574},{"style":145},[45575],{"type":31,"value":210},{"type":21,"tag":138,"props":45577,"children":45578},{"style":151},[45579],{"type":31,"value":45580}," decapsulate(secret_key, ciphertext)\n",{"type":21,"tag":138,"props":45582,"children":45583},{"class":140,"line":368},[45584],{"type":21,"tag":138,"props":45585,"children":45586},{"emptyLinePlaceholder":193},[45587],{"type":31,"value":196},{"type":21,"tag":138,"props":45589,"children":45590},{"class":140,"line":377},[45591,45596,45601,45605],{"type":21,"tag":138,"props":45592,"children":45593},{"style":145},[45594],{"type":31,"value":45595},"assert",{"type":21,"tag":138,"props":45597,"children":45598},{"style":151},[45599],{"type":31,"value":45600}," shared_secret_sender ",{"type":21,"tag":138,"props":45602,"children":45603},{"style":145},[45604],{"type":31,"value":7348},{"type":21,"tag":138,"props":45606,"children":45607},{"style":151},[45608],{"type":31,"value":45609}," shared_secret_receiver\n",{"type":21,"tag":138,"props":45611,"children":45612},{"class":140,"line":386},[45613],{"type":21,"tag":138,"props":45614,"children":45615},{"style":219},[45616],{"type":31,"value":45617},"# Now use shared_secret as AES key\n",{"type":21,"tag":421,"props":45619,"children":45621},{"id":45620},"ml-dsacrystals-dilithium数字签名",[45622],{"type":31,"value":45623},"ML-DSA（CRYSTALS-Dilithium）——数字签名",{"type":21,"tag":1118,"props":45625,"children":45626},{},[45627,45636,45645,45654],{"type":21,"tag":71,"props":45628,"children":45629},{},[45630,45634],{"type":21,"tag":16815,"props":45631,"children":45632},{},[45633],{"type":31,"value":45424},{"type":31,"value":45635}," ECDSA、用于签名的 RSA-PSS",{"type":21,"tag":71,"props":45637,"children":45638},{},[45639,45643],{"type":21,"tag":16815,"props":45640,"children":45641},{},[45642],{"type":31,"value":45434},{"type":31,"value":45644}," MLWE + MSIS 问题",{"type":21,"tag":71,"props":45646,"children":45647},{},[45648,45652],{"type":21,"tag":16815,"props":45649,"children":45650},{},[45651],{"type":31,"value":45444},{"type":31,"value":45653}," 中等密钥长度（公钥约 1,312 字节），签名快速",{"type":21,"tag":71,"props":45655,"children":45656},{},[45657,45661],{"type":21,"tag":16815,"props":45658,"children":45659},{},[45660],{"type":31,"value":45454},{"type":31,"value":45662}," 代码签名、TLS 证书、文档签名、JWT 签名",{"type":21,"tag":128,"props":45664,"children":45666},{"code":45665,"language":132,"meta":7,"className":130,"style":7},"from pqcrypto.sign.dilithium3 import generate_keypair, sign, verify\n\npublic_key, secret_key = generate_keypair()\n\nmessage = b\"Deploy to production\"\nsignature = sign(message, secret_key)\n\n# Verify\nassert verify(message, signature, public_key)\n",[45667],{"type":21,"tag":103,"props":45668,"children":45669},{"__ignoreMap":7},[45670,45691,45698,45713,45720,45742,45759,45766,45774],{"type":21,"tag":138,"props":45671,"children":45672},{"class":140,"line":141},[45673,45677,45682,45686],{"type":21,"tag":138,"props":45674,"children":45675},{"style":145},[45676],{"type":31,"value":148},{"type":21,"tag":138,"props":45678,"children":45679},{"style":151},[45680],{"type":31,"value":45681}," pqcrypto.sign.dilithium3 ",{"type":21,"tag":138,"props":45683,"children":45684},{"style":145},[45685],{"type":31,"value":159},{"type":21,"tag":138,"props":45687,"children":45688},{"style":151},[45689],{"type":31,"value":45690}," generate_keypair, sign, verify\n",{"type":21,"tag":138,"props":45692,"children":45693},{"class":140,"line":167},[45694],{"type":21,"tag":138,"props":45695,"children":45696},{"emptyLinePlaceholder":193},[45697],{"type":31,"value":196},{"type":21,"tag":138,"props":45699,"children":45700},{"class":140,"line":189},[45701,45705,45709],{"type":21,"tag":138,"props":45702,"children":45703},{"style":151},[45704],{"type":31,"value":45507},{"type":21,"tag":138,"props":45706,"children":45707},{"style":145},[45708],{"type":31,"value":210},{"type":21,"tag":138,"props":45710,"children":45711},{"style":151},[45712],{"type":31,"value":45516},{"type":21,"tag":138,"props":45714,"children":45715},{"class":140,"line":199},[45716],{"type":21,"tag":138,"props":45717,"children":45718},{"emptyLinePlaceholder":193},[45719],{"type":31,"value":196},{"type":21,"tag":138,"props":45721,"children":45722},{"class":140,"line":225},[45723,45728,45732,45737],{"type":21,"tag":138,"props":45724,"children":45725},{"style":151},[45726],{"type":31,"value":45727},"message ",{"type":21,"tag":138,"props":45729,"children":45730},{"style":145},[45731],{"type":31,"value":210},{"type":21,"tag":138,"props":45733,"children":45734},{"style":145},[45735],{"type":31,"value":45736}," b",{"type":21,"tag":138,"props":45738,"children":45739},{"style":261},[45740],{"type":31,"value":45741},"\"Deploy to production\"\n",{"type":21,"tag":138,"props":45743,"children":45744},{"class":140,"line":233},[45745,45750,45754],{"type":21,"tag":138,"props":45746,"children":45747},{"style":151},[45748],{"type":31,"value":45749},"signature ",{"type":21,"tag":138,"props":45751,"children":45752},{"style":145},[45753],{"type":31,"value":210},{"type":21,"tag":138,"props":45755,"children":45756},{"style":151},[45757],{"type":31,"value":45758}," sign(message, secret_key)\n",{"type":21,"tag":138,"props":45760,"children":45761},{"class":140,"line":272},[45762],{"type":21,"tag":138,"props":45763,"children":45764},{"emptyLinePlaceholder":193},[45765],{"type":31,"value":196},{"type":21,"tag":138,"props":45767,"children":45768},{"class":140,"line":308},[45769],{"type":21,"tag":138,"props":45770,"children":45771},{"style":219},[45772],{"type":31,"value":45773},"# Verify\n",{"type":21,"tag":138,"props":45775,"children":45776},{"class":140,"line":16},[45777,45781],{"type":21,"tag":138,"props":45778,"children":45779},{"style":145},[45780],{"type":31,"value":45595},{"type":21,"tag":138,"props":45782,"children":45783},{"style":151},[45784],{"type":31,"value":45785}," verify(message, signature, public_key)\n",{"type":21,"tag":421,"props":45787,"children":45789},{"id":45788},"slh-dsasphincs基于哈希的签名",[45790],{"type":31,"value":45791},"SLH-DSA（SPHINCS+）——基于哈希的签名",{"type":21,"tag":1118,"props":45793,"children":45794},{},[45795,45804,45813,45822],{"type":21,"tag":71,"props":45796,"children":45797},{},[45798,45802],{"type":21,"tag":16815,"props":45799,"children":45800},{},[45801],{"type":31,"value":45424},{"type":31,"value":45803}," 作为保守备选方案替代 ECDSA",{"type":21,"tag":71,"props":45805,"children":45806},{},[45807,45811],{"type":21,"tag":16815,"props":45808,"children":45809},{},[45810],{"type":31,"value":45434},{"type":31,"value":45812}," 仅依赖哈希函数——最保守的选择",{"type":21,"tag":71,"props":45814,"children":45815},{},[45816,45820],{"type":21,"tag":16815,"props":45817,"children":45818},{},[45819],{"type":31,"value":45444},{"type":31,"value":45821}," 签名较大（约 8–50 KB），签名较慢",{"type":21,"tag":71,"props":45823,"children":45824},{},[45825,45829],{"type":21,"tag":16815,"props":45826,"children":45827},{},[45828],{"type":31,"value":45454},{"type":31,"value":45830}," 关注密钥重用的高保障签名、长期文档签名",{"type":21,"tag":22,"props":45832,"children":45833},{},[45834,45836,45841],{"type":31,"value":45835},"NIST 还标准化了 ",{"type":21,"tag":16815,"props":45837,"children":45838},{},[45839],{"type":31,"value":45840},"FALCON（FN-DSA）",{"type":31,"value":45842},"——一种签名紧凑的格签名方案，适用于像 IoT 这样的受限环境。",{"type":21,"tag":41,"props":45844,"children":45846},{"id":45845},"现在该做什么分级行动计划",[45847],{"type":31,"value":45848},"现在该做什么：分级行动计划",{"type":21,"tag":421,"props":45850,"children":45852},{"id":45851},"第一级今天就做低投入高影响",[45853],{"type":31,"value":45854},"第一级——今天就做（低投入、高影响）",{"type":21,"tag":22,"props":45856,"children":45857},{},[45858,45863],{"type":21,"tag":16815,"props":45859,"children":45860},{},[45861],{"type":31,"value":45862},"审计你的密码学清单。",{"type":31,"value":45864}," 你无法迁移尚未编目的东西。记录：",{"type":21,"tag":1118,"props":45866,"children":45867},{},[45868,45873,45878,45883],{"type":21,"tag":71,"props":45869,"children":45870},{},[45871],{"type":31,"value":45872},"你的应用在哪里使用 TLS？（大多数框架会处理这个）",{"type":21,"tag":71,"props":45874,"children":45875},{},[45876],{"type":31,"value":45877},"你在哪里生成或验证签名？（JWT、代码签名、PDF 签名）",{"type":21,"tag":71,"props":45879,"children":45880},{},[45881],{"type":31,"value":45882},"你在哪里使用非对称密钥交换？（RSA 封装的 AES 密钥、SSH）",{"type":21,"tag":71,"props":45884,"children":45885},{},[45886],{"type":31,"value":45887},"你正在使用哪些库？（OpenSSL、BouncyCastle、AWS KMS 等）",{"type":21,"tag":22,"props":45889,"children":45890},{},[45891,45896],{"type":21,"tag":16815,"props":45892,"children":45893},{},[45894],{"type":31,"value":45895},"将 AES-128 升级到 AES-256。",{"type":31,"value":45897}," 这是低风险且立竿见影的。AES-256 面对 Grover 时安全性减半至 128 位——仍然十分安全。",{"type":21,"tag":22,"props":45899,"children":45900},{},[45901,45906],{"type":21,"tag":16815,"props":45902,"children":45903},{},[45904],{"type":31,"value":45905},"在所有地方启用 TLS 1.3。",{"type":31,"value":45907}," TLS 1.3 默认使用前向保密（ECDHE），这意味着即使长期密钥被泄露，过去的会话也无法被解密。这为 TLS 流量部分缓解了 HNDL。",{"type":21,"tag":421,"props":45909,"children":45911},{"id":45910},"第二级为未来-618-个月做规划",[45912],{"type":31,"value":45913},"第二级——为未来 6–18 个月做规划",{"type":21,"tag":22,"props":45915,"children":45916},{},[45917,45922,45924,45929],{"type":21,"tag":16815,"props":45918,"children":45919},{},[45920],{"type":31,"value":45921},"在 TLS 中采用混合密钥交换。",{"type":31,"value":45923}," TLS 工作组已经标准化了 ",{"type":21,"tag":103,"props":45925,"children":45927},{"className":45926},[],[45928],{"type":31,"value":3985},{"type":31,"value":45930},"——一种同时使用经典 ECDH 和 ML-KEM 的混合方案。Google Chrome、Cloudflare 和 AWS 已经支持它。这在防范 HNDL 的同时保持了经典安全性：",{"type":21,"tag":128,"props":45932,"children":45936},{"code":45933,"language":45934,"meta":7,"className":45935,"style":7},"# Nginx with OpenSSL 3.x + oqs-provider (Open Quantum Safe)\nssl_ecdh_curve X25519Kyber768;  # hybrid classical + PQC\n","nginx","language-nginx shiki shiki-themes github-dark",[45937],{"type":21,"tag":103,"props":45938,"children":45939},{"__ignoreMap":7},[45940,45948],{"type":21,"tag":138,"props":45941,"children":45942},{"class":140,"line":141},[45943],{"type":21,"tag":138,"props":45944,"children":45945},{},[45946],{"type":31,"value":45947},"# Nginx with OpenSSL 3.x + oqs-provider (Open Quantum Safe)\n",{"type":21,"tag":138,"props":45949,"children":45950},{"class":140,"line":167},[45951],{"type":21,"tag":138,"props":45952,"children":45953},{},[45954],{"type":31,"value":45955},"ssl_ecdh_curve X25519Kyber768;  # hybrid classical + PQC\n",{"type":21,"tag":22,"props":45957,"children":45958},{},[45959,45964],{"type":21,"tag":16815,"props":45960,"children":45961},{},[45962],{"type":31,"value":45963},"在新系统中用 ML-DSA 替换 RSA\u002FECDSA。",{"type":31,"value":45965}," 对于任何全新构建的项目——新的微服务、新的 JWT 实现、新的 SSH 部署——使用 ML-DSA（Dilithium3 或 Dilithium5）而不是 ECDSA-256。",{"type":21,"tag":22,"props":45967,"children":45968},{},[45969,45974],{"type":21,"tag":16815,"props":45970,"children":45971},{},[45972],{"type":31,"value":45973},"更新你的 TLS 证书流水线。",{"type":31,"value":45975}," 大多数公共 CA 尚未签发 PQC 证书，但你今天就可以将 ML-DSA 用于内部签名的证书和服务网格证书。",{"type":21,"tag":421,"props":45977,"children":45979},{"id":45978},"第三级长期迁移15-年",[45980],{"type":31,"value":45981},"第三级——长期迁移（1–5 年）",{"type":21,"tag":22,"props":45983,"children":45984},{},[45985,45990],{"type":21,"tag":16815,"props":45986,"children":45987},{},[45988],{"type":31,"value":45989},"完整的 PKI 迁移。",{"type":31,"value":45991}," 用基于 PQC 的 CA 基础设施替换你的 RSA\u002FECC 证书层次结构。这是最困难的部分——硬件安全模块（HSM）、自动化证书轮换和证书链都需要更新。",{"type":21,"tag":22,"props":45993,"children":45994},{},[45995,46000],{"type":21,"tag":16815,"props":45996,"children":45997},{},[45998],{"type":31,"value":45999},"硬件和嵌入式设备。",{"type":31,"value":46001}," IoT 和嵌入式设备往往无法远程打补丁，且有 10 年以上的使用寿命。审计任何依赖 RSA 或 ECDSA 进行身份验证的此类设备。",{"type":21,"tag":22,"props":46003,"children":46004},{},[46005,46010],{"type":21,"tag":16815,"props":46006,"children":46007},{},[46008],{"type":31,"value":46009},"密钥管理系统。",{"type":31,"value":46011}," AWS KMS、Azure Key Vault、HashiCorp Vault——核实它们的 PQC 路线图和迁移时间表。",{"type":21,"tag":41,"props":46013,"children":46015},{"id":46014},"库和框架支持",[46016],{"type":31,"value":46014},{"type":21,"tag":3162,"props":46018,"children":46019},{},[46020,46036],{"type":21,"tag":3166,"props":46021,"children":46022},{},[46023],{"type":21,"tag":3170,"props":46024,"children":46025},{},[46026,46031],{"type":21,"tag":3174,"props":46027,"children":46028},{},[46029],{"type":31,"value":46030},"平台",{"type":21,"tag":3174,"props":46032,"children":46033},{},[46034],{"type":31,"value":46035},"PQC 状态",{"type":21,"tag":3188,"props":46037,"children":46038},{},[46039,46052,46065,46078,46091,46104,46117,46136,46149],{"type":21,"tag":3170,"props":46040,"children":46041},{},[46042,46047],{"type":21,"tag":3195,"props":46043,"children":46044},{},[46045],{"type":31,"value":46046},"OpenSSL 3.x + oqs-provider",{"type":21,"tag":3195,"props":46048,"children":46049},{},[46050],{"type":31,"value":46051},"通过插件支持 ML-KEM、ML-DSA、FALCON",{"type":21,"tag":3170,"props":46053,"children":46054},{},[46055,46060],{"type":21,"tag":3195,"props":46056,"children":46057},{},[46058],{"type":31,"value":46059},"AWS KMS",{"type":21,"tag":3195,"props":46061,"children":46062},{},[46063],{"type":31,"value":46064},"ML-KEM 混合 TLS 处于预览阶段",{"type":21,"tag":3170,"props":46066,"children":46067},{},[46068,46073],{"type":21,"tag":3195,"props":46069,"children":46070},{},[46071],{"type":31,"value":46072},"Cloudflare",{"type":21,"tag":3195,"props":46074,"children":46075},{},[46076],{"type":31,"value":46077},"X25519Kyber768 TLS（自 2023 年起上线）",{"type":21,"tag":3170,"props":46079,"children":46080},{},[46081,46086],{"type":21,"tag":3195,"props":46082,"children":46083},{},[46084],{"type":31,"value":46085},"Chrome 124+",{"type":21,"tag":3195,"props":46087,"children":46088},{},[46089],{"type":31,"value":46090},"X25519Kyber768 TLS",{"type":21,"tag":3170,"props":46092,"children":46093},{},[46094,46099],{"type":21,"tag":3195,"props":46095,"children":46096},{},[46097],{"type":31,"value":46098},"Java（BouncyCastle）",{"type":21,"tag":3195,"props":46100,"children":46101},{},[46102],{"type":31,"value":46103},"CRYSTALS-Kyber、Dilithium",{"type":21,"tag":3170,"props":46105,"children":46106},{},[46107,46112],{"type":21,"tag":3195,"props":46108,"children":46109},{},[46110],{"type":31,"value":46111},"Python（pqcrypto）",{"type":21,"tag":3195,"props":46113,"children":46114},{},[46115],{"type":31,"value":46116},"完整的 NIST 套件",{"type":21,"tag":3170,"props":46118,"children":46119},{},[46120,46125],{"type":21,"tag":3195,"props":46121,"children":46122},{},[46123],{"type":31,"value":46124},"Go",{"type":21,"tag":3195,"props":46126,"children":46127},{},[46128,46134],{"type":21,"tag":103,"props":46129,"children":46131},{"className":46130},[],[46132],{"type":31,"value":46133},"golang.org\u002Fx\u002Fcrypto",{"type":31,"value":46135}," PQC 开发中",{"type":21,"tag":3170,"props":46137,"children":46138},{},[46139,46144],{"type":21,"tag":3195,"props":46140,"children":46141},{},[46142],{"type":31,"value":46143},"Node.js",{"type":21,"tag":3195,"props":46145,"children":46146},{},[46147],{"type":31,"value":46148},"通过原生模块（OpenSSL 3.x 绑定）",{"type":21,"tag":3170,"props":46150,"children":46151},{},[46152,46157],{"type":21,"tag":3195,"props":46153,"children":46154},{},[46155],{"type":31,"value":46156},"Rust（pqcrypto crate）",{"type":21,"tag":3195,"props":46158,"children":46159},{},[46160],{"type":31,"value":46116},{"type":21,"tag":41,"props":46162,"children":46164},{"id":46163},"一页速览",[46165],{"type":31,"value":46163},{"type":21,"tag":128,"props":46167,"children":46169},{"code":46168},"What breaks:    RSA, ECDSA, ECDH, classical DH\nWhat's safe:    AES-256, SHA-256, SHA-3, bcrypt, Argon2\nNew standards:  ML-KEM (Kyber) for key exchange\n                ML-DSA (Dilithium) for signatures\n                SLH-DSA (SPHINCS+) for conservative signing\n\nDo today:       Upgrade AES-128 → AES-256\n                Enable TLS 1.3 (forward secrecy)\n                Audit crypto inventory\n\nDo soon:        Hybrid TLS key exchange (X25519Kyber768)\n                ML-DSA for new signature systems\n\nDo in 1-5 yrs:  Full PKI migration to PQC\n                Firmware updates for IoT devices\n",[46170],{"type":21,"tag":103,"props":46171,"children":46172},{"__ignoreMap":7},[46173],{"type":31,"value":46168},{"type":21,"tag":22,"props":46175,"children":46176},{},[46177],{"type":31,"value":46178},"量子计算对密码学的威胁是真实存在的，而时间线尚不确定——这恰恰是为什么现在、在量子计算机具备能力之前就采取行动，才是正确的选择。",{"type":21,"tag":22,"props":46180,"children":46181},{},[46182,46187,46188,46193,46194],{"type":21,"tag":16815,"props":46183,"children":46184},{},[46185],{"type":31,"value":46186},"延伸阅读：",{"type":31,"value":22965},{"type":21,"tag":26,"props":46189,"children":46190},{"href":1237},[46191],{"type":31,"value":46192},"量子计算术语表 — Shor 算法",{"type":31,"value":28968},{"type":21,"tag":26,"props":46195,"children":46196},{"href":16304},[46197],{"type":31,"value":46198},"量子计算机今天能做什么",{"type":21,"tag":1174,"props":46200,"children":46201},{},[46202],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":46204},[46205,46206,46207,46212,46217,46218],{"id":45204,"depth":167,"text":45207},{"id":45296,"depth":167,"text":45299},{"id":45399,"depth":167,"text":45402,"children":46208},[46209,46210,46211],{"id":45410,"depth":189,"text":45413},{"id":45620,"depth":189,"text":45623},{"id":45788,"depth":189,"text":45791},{"id":45845,"depth":167,"text":45848,"children":46213},[46214,46215,46216],{"id":45851,"depth":189,"text":45854},{"id":45910,"depth":189,"text":45913},{"id":45978,"depth":189,"text":45981},{"id":46014,"depth":167,"text":46014},{"id":46163,"depth":167,"text":46163},"content:zh:blog:post-quantum-cryptography-guide.md","zh\u002Fblog\u002Fpost-quantum-cryptography-guide.md","zh\u002Fblog\u002Fpost-quantum-cryptography-guide",{"_path":46223,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":46224,"description":46225,"date":46226,"author":11,"tags":46227,"readingTime":308,"body":46228,"_type":1193,"_id":48762,"_source":1195,"_file":48763,"_stem":48764,"_extension":1198},"\u002Fzh\u002Fblog\u002Freduce-shot-count","如何在变分量子算法中将采样次数削减 80%","减少 VQE 与 QAOA 所需电路执行次数的实用技巧——采样节俭型优化器、梯度估计诀窍以及测量分组。","2026-03-01",[1212,3626,2048,30719],{"type":18,"children":46229,"toc":48751},[46230,46235,46240,46245,46250,46372,46384,46390,46402,46701,46709,46715,46727,47048,47059,47065,47085,47277,47304,47310,47322,47471,47481,47487,47492,47825,47830,47836,47841,48014,48020,48582,48588,48717,48722,48747],{"type":21,"tag":22,"props":46231,"children":46232},{},[46233],{"type":31,"value":46234},"每次在真实硬件上运行量子电路，都会消耗 QPU 时间和金钱。像 VQE 和 QAOA 这样的变分算法可能需要数十万次电路执行才能收敛——在云端 QPU 上每个任务的费用为 $0.075–$0.90，累加起来很快就会变得可观。",{"type":21,"tag":22,"props":46236,"children":46237},{},[46238],{"type":31,"value":46239},"好消息是：大多数默认实现的采样效率极其低下。只要采用正确的技巧，你就可以在不牺牲结果质量的前提下，将采样需求削减 50–90%。",{"type":21,"tag":41,"props":46241,"children":46243},{"id":46242},"为什么默认的采样次数如此之高",[46244],{"type":31,"value":46242},{"type":21,"tag":22,"props":46246,"children":46247},{},[46248],{"type":31,"value":46249},"VQE 计算 Pauli 算符的期望值。哈密顿量被分解为一组 Pauli 项之和，而每一项都需要单独执行一次电路。对于像 H₂（4 个量子比特）这样的分子，大约有 15 个 Pauli 项。对于更大的分子，数量则会爆炸式增长：",{"type":21,"tag":3162,"props":46251,"children":46252},{},[46253,46279],{"type":21,"tag":3166,"props":46254,"children":46255},{},[46256],{"type":21,"tag":3170,"props":46257,"children":46258},{},[46259,46264,46269,46274],{"type":21,"tag":3174,"props":46260,"children":46261},{},[46262],{"type":31,"value":46263},"分子",{"type":21,"tag":3174,"props":46265,"children":46266},{},[46267],{"type":31,"value":46268},"量子比特数",{"type":21,"tag":3174,"props":46270,"children":46271},{},[46272],{"type":31,"value":46273},"Pauli 项数",{"type":21,"tag":3174,"props":46275,"children":46276},{},[46277],{"type":31,"value":46278},"朴素方案每次迭代的采样次数",{"type":21,"tag":3188,"props":46280,"children":46281},{},[46282,46304,46327,46350],{"type":21,"tag":3170,"props":46283,"children":46284},{},[46285,46290,46294,46299],{"type":21,"tag":3195,"props":46286,"children":46287},{},[46288],{"type":31,"value":46289},"H₂",{"type":21,"tag":3195,"props":46291,"children":46292},{},[46293],{"type":31,"value":17931},{"type":21,"tag":3195,"props":46295,"children":46296},{},[46297],{"type":31,"value":46298},"15",{"type":21,"tag":3195,"props":46300,"children":46301},{},[46302],{"type":31,"value":46303},"15,000",{"type":21,"tag":3170,"props":46305,"children":46306},{},[46307,46312,46317,46322],{"type":21,"tag":3195,"props":46308,"children":46309},{},[46310],{"type":31,"value":46311},"LiH",{"type":21,"tag":3195,"props":46313,"children":46314},{},[46315],{"type":31,"value":46316},"12",{"type":21,"tag":3195,"props":46318,"children":46319},{},[46320],{"type":31,"value":46321},"631",{"type":21,"tag":3195,"props":46323,"children":46324},{},[46325],{"type":31,"value":46326},"631,000",{"type":21,"tag":3170,"props":46328,"children":46329},{},[46330,46335,46340,46345],{"type":21,"tag":3195,"props":46331,"children":46332},{},[46333],{"type":31,"value":46334},"BeH₂",{"type":21,"tag":3195,"props":46336,"children":46337},{},[46338],{"type":31,"value":46339},"14",{"type":21,"tag":3195,"props":46341,"children":46342},{},[46343],{"type":31,"value":46344},"666",{"type":21,"tag":3195,"props":46346,"children":46347},{},[46348],{"type":31,"value":46349},"666,000",{"type":21,"tag":3170,"props":46351,"children":46352},{},[46353,46358,46362,46367],{"type":21,"tag":3195,"props":46354,"children":46355},{},[46356],{"type":31,"value":46357},"H₂O",{"type":21,"tag":3195,"props":46359,"children":46360},{},[46361],{"type":31,"value":46339},{"type":21,"tag":3195,"props":46363,"children":46364},{},[46365],{"type":31,"value":46366},"1,086",{"type":21,"tag":3195,"props":46368,"children":46369},{},[46370],{"type":31,"value":46371},"1,086,000",{"type":21,"tag":22,"props":46373,"children":46374},{},[46375,46377,46382],{"type":31,"value":46376},"若进行 200 次优化器迭代，H₂O 在朴素方案下需要 ",{"type":21,"tag":16815,"props":46378,"children":46379},{},[46380],{"type":31,"value":46381},"2.17 亿次采样",{"type":31,"value":46383},"。下面介绍的技巧可以将其削减 80–95%。",{"type":21,"tag":41,"props":46385,"children":46387},{"id":46386},"技巧-1测量分组收益最大",[46388],{"type":31,"value":46389},"技巧 1：测量分组（收益最大）",{"type":21,"tag":22,"props":46391,"children":46392},{},[46393,46395,46400],{"type":31,"value":46394},"许多 Pauli 项是",{"type":21,"tag":16815,"props":46396,"children":46397},{},[46398],{"type":31,"value":46399},"对易的",{"type":31,"value":46401},"——它们可以在单次电路执行中同时测量，而不必分开测量。将对易的可观测量分组，是可用手段中单项收益最大的一种。",{"type":21,"tag":128,"props":46403,"children":46405},{"className":130,"code":46404,"language":132,"meta":7,"style":7},"from qiskit.primitives import StatevectorEstimator\nfrom qiskit_nature.second_q.mappers import JordanWignerMapper\nfrom qiskit_algorithms import VQE\nfrom qiskit_algorithms.optimizers import COBYLA\n\n# Qiskit automatically groups commuting Paulis in the Estimator primitive\n# This reduces shots from O(n_terms) to O(n_groups) — often 5-10x reduction\nestimator = StatevectorEstimator()\n\n# With PennyLane, use grouping explicitly:\nimport pennylane as qml\n\nH = qml.Hamiltonian(coeffs, observables)\n\n# Group commuting terms — usually reduces term count by 5-10x\ngroups = qml.grouping.group_observables(observables, grouping_type='qwc')\nprint(f\"Original terms: {len(observables)}, Groups: {len(groups)}\")\n# Original terms: 631, Groups: 68  (for LiH)\n",[46406],{"type":21,"tag":103,"props":46407,"children":46408},{"__ignoreMap":7},[46409,46429,46448,46467,46486,46493,46501,46509,46526,46533,46541,46560,46567,46584,46591,46599,46634,46693],{"type":21,"tag":138,"props":46410,"children":46411},{"class":140,"line":141},[46412,46416,46420,46424],{"type":21,"tag":138,"props":46413,"children":46414},{"style":145},[46415],{"type":31,"value":148},{"type":21,"tag":138,"props":46417,"children":46418},{"style":151},[46419],{"type":31,"value":12426},{"type":21,"tag":138,"props":46421,"children":46422},{"style":145},[46423],{"type":31,"value":159},{"type":21,"tag":138,"props":46425,"children":46426},{"style":151},[46427],{"type":31,"value":46428}," StatevectorEstimator\n",{"type":21,"tag":138,"props":46430,"children":46431},{"class":140,"line":167},[46432,46436,46440,46444],{"type":21,"tag":138,"props":46433,"children":46434},{"style":145},[46435],{"type":31,"value":148},{"type":21,"tag":138,"props":46437,"children":46438},{"style":151},[46439],{"type":31,"value":12164},{"type":21,"tag":138,"props":46441,"children":46442},{"style":145},[46443],{"type":31,"value":159},{"type":21,"tag":138,"props":46445,"children":46446},{"style":151},[46447],{"type":31,"value":12173},{"type":21,"tag":138,"props":46449,"children":46450},{"class":140,"line":189},[46451,46455,46459,46463],{"type":21,"tag":138,"props":46452,"children":46453},{"style":145},[46454],{"type":31,"value":148},{"type":21,"tag":138,"props":46456,"children":46457},{"style":151},[46458],{"type":31,"value":12255},{"type":21,"tag":138,"props":46460,"children":46461},{"style":145},[46462],{"type":31,"value":159},{"type":21,"tag":138,"props":46464,"children":46465},{"style":213},[46466],{"type":31,"value":12393},{"type":21,"tag":138,"props":46468,"children":46469},{"class":140,"line":199},[46470,46474,46478,46482],{"type":21,"tag":138,"props":46471,"children":46472},{"style":145},[46473],{"type":31,"value":148},{"type":21,"tag":138,"props":46475,"children":46476},{"style":151},[46477],{"type":31,"value":12405},{"type":21,"tag":138,"props":46479,"children":46480},{"style":145},[46481],{"type":31,"value":159},{"type":21,"tag":138,"props":46483,"children":46484},{"style":213},[46485],{"type":31,"value":12414},{"type":21,"tag":138,"props":46487,"children":46488},{"class":140,"line":225},[46489],{"type":21,"tag":138,"props":46490,"children":46491},{"emptyLinePlaceholder":193},[46492],{"type":31,"value":196},{"type":21,"tag":138,"props":46494,"children":46495},{"class":140,"line":233},[46496],{"type":21,"tag":138,"props":46497,"children":46498},{"style":219},[46499],{"type":31,"value":46500},"# Qiskit automatically groups commuting Paulis in the Estimator primitive\n",{"type":21,"tag":138,"props":46502,"children":46503},{"class":140,"line":272},[46504],{"type":21,"tag":138,"props":46505,"children":46506},{"style":219},[46507],{"type":31,"value":46508},"# This reduces shots from O(n_terms) to O(n_groups) — often 5-10x reduction\n",{"type":21,"tag":138,"props":46510,"children":46511},{"class":140,"line":308},[46512,46517,46521],{"type":21,"tag":138,"props":46513,"children":46514},{"style":151},[46515],{"type":31,"value":46516},"estimator ",{"type":21,"tag":138,"props":46518,"children":46519},{"style":145},[46520],{"type":31,"value":210},{"type":21,"tag":138,"props":46522,"children":46523},{"style":151},[46524],{"type":31,"value":46525}," StatevectorEstimator()\n",{"type":21,"tag":138,"props":46527,"children":46528},{"class":140,"line":16},[46529],{"type":21,"tag":138,"props":46530,"children":46531},{"emptyLinePlaceholder":193},[46532],{"type":31,"value":196},{"type":21,"tag":138,"props":46534,"children":46535},{"class":140,"line":360},[46536],{"type":21,"tag":138,"props":46537,"children":46538},{"style":219},[46539],{"type":31,"value":46540},"# With PennyLane, use grouping explicitly:\n",{"type":21,"tag":138,"props":46542,"children":46543},{"class":140,"line":368},[46544,46548,46552,46556],{"type":21,"tag":138,"props":46545,"children":46546},{"style":145},[46547],{"type":31,"value":159},{"type":21,"tag":138,"props":46549,"children":46550},{"style":151},[46551],{"type":31,"value":5351},{"type":21,"tag":138,"props":46553,"children":46554},{"style":145},[46555],{"type":31,"value":5356},{"type":21,"tag":138,"props":46557,"children":46558},{"style":151},[46559],{"type":31,"value":5361},{"type":21,"tag":138,"props":46561,"children":46562},{"class":140,"line":377},[46563],{"type":21,"tag":138,"props":46564,"children":46565},{"emptyLinePlaceholder":193},[46566],{"type":31,"value":196},{"type":21,"tag":138,"props":46568,"children":46569},{"class":140,"line":386},[46570,46575,46579],{"type":21,"tag":138,"props":46571,"children":46572},{"style":151},[46573],{"type":31,"value":46574},"H ",{"type":21,"tag":138,"props":46576,"children":46577},{"style":145},[46578],{"type":31,"value":210},{"type":21,"tag":138,"props":46580,"children":46581},{"style":151},[46582],{"type":31,"value":46583}," qml.Hamiltonian(coeffs, observables)\n",{"type":21,"tag":138,"props":46585,"children":46586},{"class":140,"line":395},[46587],{"type":21,"tag":138,"props":46588,"children":46589},{"emptyLinePlaceholder":193},[46590],{"type":31,"value":196},{"type":21,"tag":138,"props":46592,"children":46593},{"class":140,"line":413},[46594],{"type":21,"tag":138,"props":46595,"children":46596},{"style":219},[46597],{"type":31,"value":46598},"# Group commuting terms — usually reduces term count by 5-10x\n",{"type":21,"tag":138,"props":46600,"children":46601},{"class":140,"line":12602},[46602,46607,46611,46616,46621,46625,46630],{"type":21,"tag":138,"props":46603,"children":46604},{"style":151},[46605],{"type":31,"value":46606},"groups ",{"type":21,"tag":138,"props":46608,"children":46609},{"style":145},[46610],{"type":31,"value":210},{"type":21,"tag":138,"props":46612,"children":46613},{"style":151},[46614],{"type":31,"value":46615}," qml.grouping.group_observables(observables, ",{"type":21,"tag":138,"props":46617,"children":46618},{"style":929},[46619],{"type":31,"value":46620},"grouping_type",{"type":21,"tag":138,"props":46622,"children":46623},{"style":145},[46624],{"type":31,"value":210},{"type":21,"tag":138,"props":46626,"children":46627},{"style":261},[46628],{"type":31,"value":46629},"'qwc'",{"type":21,"tag":138,"props":46631,"children":46632},{"style":151},[46633],{"type":31,"value":269},{"type":21,"tag":138,"props":46635,"children":46636},{"class":140,"line":12619},[46637,46641,46645,46649,46654,46658,46663,46667,46672,46676,46681,46685,46689],{"type":21,"tag":138,"props":46638,"children":46639},{"style":213},[46640],{"type":31,"value":954},{"type":21,"tag":138,"props":46642,"children":46643},{"style":151},[46644],{"type":31,"value":959},{"type":21,"tag":138,"props":46646,"children":46647},{"style":145},[46648],{"type":31,"value":7537},{"type":21,"tag":138,"props":46650,"children":46651},{"style":261},[46652],{"type":31,"value":46653},"\"Original terms: ",{"type":21,"tag":138,"props":46655,"children":46656},{"style":213},[46657],{"type":31,"value":19590},{"type":21,"tag":138,"props":46659,"children":46660},{"style":151},[46661],{"type":31,"value":46662},"(observables)",{"type":21,"tag":138,"props":46664,"children":46665},{"style":213},[46666],{"type":31,"value":7556},{"type":21,"tag":138,"props":46668,"children":46669},{"style":261},[46670],{"type":31,"value":46671},", Groups: ",{"type":21,"tag":138,"props":46673,"children":46674},{"style":213},[46675],{"type":31,"value":19590},{"type":21,"tag":138,"props":46677,"children":46678},{"style":151},[46679],{"type":31,"value":46680},"(groups)",{"type":21,"tag":138,"props":46682,"children":46683},{"style":213},[46684],{"type":31,"value":7556},{"type":21,"tag":138,"props":46686,"children":46687},{"style":261},[46688],{"type":31,"value":15383},{"type":21,"tag":138,"props":46690,"children":46691},{"style":151},[46692],{"type":31,"value":269},{"type":21,"tag":138,"props":46694,"children":46695},{"class":140,"line":12635},[46696],{"type":21,"tag":138,"props":46697,"children":46698},{"style":219},[46699],{"type":31,"value":46700},"# Original terms: 631, Groups: 68  (for LiH)\n",{"type":21,"tag":22,"props":46702,"children":46703},{},[46704],{"type":21,"tag":16815,"props":46705,"children":46706},{},[46707],{"type":31,"value":46708},"预期节省：在典型的化学哈密顿量上可达 5–15×。",{"type":21,"tag":41,"props":46710,"children":46712},{"id":46711},"技巧-2采样节俭型优化器",[46713],{"type":31,"value":46714},"技巧 2：采样节俭型优化器",{"type":21,"tag":22,"props":46716,"children":46717},{},[46718,46720,46725],{"type":31,"value":46719},"像 L-BFGS-B 或 ADAM 这样的经典优化器假设函数求值无噪声——当结果带有噪声时，它们请求的梯度求值次数超过了必要的数量。",{"type":21,"tag":16815,"props":46721,"children":46722},{},[46723],{"type":31,"value":46724},"采样节俭型优化器",{"type":31,"value":46726},"会根据测量方差自适应地分配采样次数。",{"type":21,"tag":128,"props":46728,"children":46730},{"className":130,"code":46729,"language":132,"meta":7,"style":7},"from pennylane.optimize import AdaptiveOptimizer, ShotAdaptiveOptimizer\n\ndev = qml.device(\"default.qubit\", wires=4)\n\n@qml.qnode(dev)\ndef circuit(params):\n    # ansatz\n    ...\n    return qml.expval(H)\n\n# ShotAdaptiveOptimizer: allocates more shots to high-variance directions\nopt = ShotAdaptiveOptimizer(min_shots=10)\n\nparams = np.random.uniform(-np.pi, np.pi, n_params)\nfor i in range(100):\n    params, _, shots_used = opt.step_and_cost(circuit, params)\n    print(f\"Step {i}: shots used = {shots_used}\")\n",[46731],{"type":21,"tag":103,"props":46732,"children":46733},{"__ignoreMap":7},[46734,46755,46762,46801,46808,46819,46835,46843,46851,46863,46870,46878,46911,46918,46943,46974,46991],{"type":21,"tag":138,"props":46735,"children":46736},{"class":140,"line":141},[46737,46741,46746,46750],{"type":21,"tag":138,"props":46738,"children":46739},{"style":145},[46740],{"type":31,"value":148},{"type":21,"tag":138,"props":46742,"children":46743},{"style":151},[46744],{"type":31,"value":46745}," pennylane.optimize ",{"type":21,"tag":138,"props":46747,"children":46748},{"style":145},[46749],{"type":31,"value":159},{"type":21,"tag":138,"props":46751,"children":46752},{"style":151},[46753],{"type":31,"value":46754}," AdaptiveOptimizer, ShotAdaptiveOptimizer\n",{"type":21,"tag":138,"props":46756,"children":46757},{"class":140,"line":167},[46758],{"type":21,"tag":138,"props":46759,"children":46760},{"emptyLinePlaceholder":193},[46761],{"type":31,"value":196},{"type":21,"tag":138,"props":46763,"children":46764},{"class":140,"line":189},[46765,46769,46773,46777,46781,46785,46789,46793,46797],{"type":21,"tag":138,"props":46766,"children":46767},{"style":151},[46768],{"type":31,"value":8726},{"type":21,"tag":138,"props":46770,"children":46771},{"style":145},[46772],{"type":31,"value":210},{"type":21,"tag":138,"props":46774,"children":46775},{"style":151},[46776],{"type":31,"value":5446},{"type":21,"tag":138,"props":46778,"children":46779},{"style":261},[46780],{"type":31,"value":5451},{"type":21,"tag":138,"props":46782,"children":46783},{"style":151},[46784],{"type":31,"value":258},{"type":21,"tag":138,"props":46786,"children":46787},{"style":929},[46788],{"type":31,"value":5460},{"type":21,"tag":138,"props":46790,"children":46791},{"style":145},[46792],{"type":31,"value":210},{"type":21,"tag":138,"props":46794,"children":46795},{"style":213},[46796],{"type":31,"value":17931},{"type":21,"tag":138,"props":46798,"children":46799},{"style":151},[46800],{"type":31,"value":269},{"type":21,"tag":138,"props":46802,"children":46803},{"class":140,"line":199},[46804],{"type":21,"tag":138,"props":46805,"children":46806},{"emptyLinePlaceholder":193},[46807],{"type":31,"value":196},{"type":21,"tag":138,"props":46809,"children":46810},{"class":140,"line":225},[46811,46815],{"type":21,"tag":138,"props":46812,"children":46813},{"style":4522},[46814],{"type":31,"value":5487},{"type":21,"tag":138,"props":46816,"children":46817},{"style":151},[46818],{"type":31,"value":8778},{"type":21,"tag":138,"props":46820,"children":46821},{"class":140,"line":233},[46822,46826,46830],{"type":21,"tag":138,"props":46823,"children":46824},{"style":145},[46825],{"type":31,"value":5500},{"type":21,"tag":138,"props":46827,"children":46828},{"style":4522},[46829],{"type":31,"value":5505},{"type":21,"tag":138,"props":46831,"children":46832},{"style":151},[46833],{"type":31,"value":46834},"(params):\n",{"type":21,"tag":138,"props":46836,"children":46837},{"class":140,"line":272},[46838],{"type":21,"tag":138,"props":46839,"children":46840},{"style":219},[46841],{"type":31,"value":46842},"    # ansatz\n",{"type":21,"tag":138,"props":46844,"children":46845},{"class":140,"line":308},[46846],{"type":21,"tag":138,"props":46847,"children":46848},{"style":213},[46849],{"type":31,"value":46850},"    ...\n",{"type":21,"tag":138,"props":46852,"children":46853},{"class":140,"line":16},[46854,46858],{"type":21,"tag":138,"props":46855,"children":46856},{"style":145},[46857],{"type":31,"value":5595},{"type":21,"tag":138,"props":46859,"children":46860},{"style":151},[46861],{"type":31,"value":46862}," qml.expval(H)\n",{"type":21,"tag":138,"props":46864,"children":46865},{"class":140,"line":360},[46866],{"type":21,"tag":138,"props":46867,"children":46868},{"emptyLinePlaceholder":193},[46869],{"type":31,"value":196},{"type":21,"tag":138,"props":46871,"children":46872},{"class":140,"line":368},[46873],{"type":21,"tag":138,"props":46874,"children":46875},{"style":219},[46876],{"type":31,"value":46877},"# ShotAdaptiveOptimizer: allocates more shots to high-variance directions\n",{"type":21,"tag":138,"props":46879,"children":46880},{"class":140,"line":377},[46881,46885,46889,46894,46899,46903,46907],{"type":21,"tag":138,"props":46882,"children":46883},{"style":151},[46884],{"type":31,"value":36721},{"type":21,"tag":138,"props":46886,"children":46887},{"style":145},[46888],{"type":31,"value":210},{"type":21,"tag":138,"props":46890,"children":46891},{"style":151},[46892],{"type":31,"value":46893}," ShotAdaptiveOptimizer(",{"type":21,"tag":138,"props":46895,"children":46896},{"style":929},[46897],{"type":31,"value":46898},"min_shots",{"type":21,"tag":138,"props":46900,"children":46901},{"style":145},[46902],{"type":31,"value":210},{"type":21,"tag":138,"props":46904,"children":46905},{"style":213},[46906],{"type":31,"value":14075},{"type":21,"tag":138,"props":46908,"children":46909},{"style":151},[46910],{"type":31,"value":269},{"type":21,"tag":138,"props":46912,"children":46913},{"class":140,"line":386},[46914],{"type":21,"tag":138,"props":46915,"children":46916},{"emptyLinePlaceholder":193},[46917],{"type":31,"value":196},{"type":21,"tag":138,"props":46919,"children":46920},{"class":140,"line":395},[46921,46925,46929,46934,46938],{"type":21,"tag":138,"props":46922,"children":46923},{"style":151},[46924],{"type":31,"value":8552},{"type":21,"tag":138,"props":46926,"children":46927},{"style":145},[46928],{"type":31,"value":210},{"type":21,"tag":138,"props":46930,"children":46931},{"style":151},[46932],{"type":31,"value":46933}," np.random.uniform(",{"type":21,"tag":138,"props":46935,"children":46936},{"style":145},[46937],{"type":31,"value":831},{"type":21,"tag":138,"props":46939,"children":46940},{"style":151},[46941],{"type":31,"value":46942},"np.pi, np.pi, n_params)\n",{"type":21,"tag":138,"props":46944,"children":46945},{"class":140,"line":413},[46946,46950,46954,46958,46962,46966,46970],{"type":21,"tag":138,"props":46947,"children":46948},{"style":145},[46949],{"type":31,"value":1492},{"type":21,"tag":138,"props":46951,"children":46952},{"style":151},[46953],{"type":31,"value":7421},{"type":21,"tag":138,"props":46955,"children":46956},{"style":145},[46957],{"type":31,"value":1502},{"type":21,"tag":138,"props":46959,"children":46960},{"style":213},[46961],{"type":31,"value":7430},{"type":21,"tag":138,"props":46963,"children":46964},{"style":151},[46965],{"type":31,"value":959},{"type":21,"tag":138,"props":46967,"children":46968},{"style":213},[46969],{"type":31,"value":4918},{"type":21,"tag":138,"props":46971,"children":46972},{"style":151},[46973],{"type":31,"value":7443},{"type":21,"tag":138,"props":46975,"children":46976},{"class":140,"line":12602},[46977,46982,46986],{"type":21,"tag":138,"props":46978,"children":46979},{"style":151},[46980],{"type":31,"value":46981},"    params, _, shots_used ",{"type":21,"tag":138,"props":46983,"children":46984},{"style":145},[46985],{"type":31,"value":210},{"type":21,"tag":138,"props":46987,"children":46988},{"style":151},[46989],{"type":31,"value":46990}," opt.step_and_cost(circuit, params)\n",{"type":21,"tag":138,"props":46992,"children":46993},{"class":140,"line":12619},[46994,46998,47002,47006,47010,47014,47018,47022,47027,47031,47036,47040,47044],{"type":21,"tag":138,"props":46995,"children":46996},{"style":213},[46997],{"type":31,"value":6225},{"type":21,"tag":138,"props":46999,"children":47000},{"style":151},[47001],{"type":31,"value":959},{"type":21,"tag":138,"props":47003,"children":47004},{"style":145},[47005],{"type":31,"value":7537},{"type":21,"tag":138,"props":47007,"children":47008},{"style":261},[47009],{"type":31,"value":36999},{"type":21,"tag":138,"props":47011,"children":47012},{"style":213},[47013],{"type":31,"value":7547},{"type":21,"tag":138,"props":47015,"children":47016},{"style":151},[47017],{"type":31,"value":1839},{"type":21,"tag":138,"props":47019,"children":47020},{"style":213},[47021],{"type":31,"value":7556},{"type":21,"tag":138,"props":47023,"children":47024},{"style":261},[47025],{"type":31,"value":47026},": shots used = ",{"type":21,"tag":138,"props":47028,"children":47029},{"style":213},[47030],{"type":31,"value":7547},{"type":21,"tag":138,"props":47032,"children":47033},{"style":151},[47034],{"type":31,"value":47035},"shots_used",{"type":21,"tag":138,"props":47037,"children":47038},{"style":213},[47039],{"type":31,"value":7556},{"type":21,"tag":138,"props":47041,"children":47042},{"style":261},[47043],{"type":31,"value":15383},{"type":21,"tag":138,"props":47045,"children":47046},{"style":151},[47047],{"type":31,"value":269},{"type":21,"tag":22,"props":47049,"children":47050},{},[47051,47053,47058],{"type":31,"value":47052},"该优化器起初每次求值只用很少的采样次数，只有当梯度不确定时才增加采样次数。一次典型的 VQE 运行相比固定采样次数的 COBYLA，可以",{"type":21,"tag":16815,"props":47054,"children":47055},{},[47056],{"type":31,"value":47057},"减少 5–10× 的采样",{"type":31,"value":3120},{"type":21,"tag":41,"props":47060,"children":47062},{"id":47061},"技巧-3参数移位梯度使用更少的求值次数",[47063],{"type":31,"value":47064},"技巧 3：参数移位梯度（使用更少的求值次数）",{"type":21,"tag":22,"props":47066,"children":47067},{},[47068,47070,47076,47078,47083],{"type":31,"value":47069},"朴素的有限差分梯度估计 ",{"type":21,"tag":103,"props":47071,"children":47073},{"className":47072},[],[47074],{"type":31,"value":47075},"(f(x+ε) - f(x))\u002Fε",{"type":31,"value":47077}," 在 ε 很小时方差很大，在 ε 很大时偏差很大。",{"type":21,"tag":16815,"props":47079,"children":47080},{},[47081],{"type":31,"value":47082},"参数移位规则",{"type":31,"value":47084},"只需每个参数 2 次电路求值即可给出精确梯度：",{"type":21,"tag":128,"props":47086,"children":47088},{"className":130,"code":47087,"language":132,"meta":7,"style":7},"# PennyLane uses parameter-shift by default for gradients\n@qml.qnode(dev, diff_method=\"parameter-shift\")  # 2 evals per param\ndef circuit(params):\n    ...\n\n# Compare to finite-difference (requires 1 eval per param but biased):\n@qml.qnode(dev, diff_method=\"finite-diff\")  # 1 eval but approximate\n\n# For large circuits, use \"best\" — PennyLane chooses adjoint on simulator,\n# parameter-shift on hardware\n@qml.qnode(dev, diff_method=\"best\")\ndef circuit(params):\n    ...\n",[47089],{"type":21,"tag":103,"props":47090,"children":47091},{"__ignoreMap":7},[47092,47100,47134,47149,47156,47163,47171,47204,47211,47219,47227,47255,47270],{"type":21,"tag":138,"props":47093,"children":47094},{"class":140,"line":141},[47095],{"type":21,"tag":138,"props":47096,"children":47097},{"style":219},[47098],{"type":31,"value":47099},"# PennyLane uses parameter-shift by default for gradients\n",{"type":21,"tag":138,"props":47101,"children":47102},{"class":140,"line":167},[47103,47107,47112,47116,47120,47125,47129],{"type":21,"tag":138,"props":47104,"children":47105},{"style":4522},[47106],{"type":31,"value":5487},{"type":21,"tag":138,"props":47108,"children":47109},{"style":151},[47110],{"type":31,"value":47111},"(dev, ",{"type":21,"tag":138,"props":47113,"children":47114},{"style":929},[47115],{"type":31,"value":8929},{"type":21,"tag":138,"props":47117,"children":47118},{"style":145},[47119],{"type":31,"value":210},{"type":21,"tag":138,"props":47121,"children":47122},{"style":261},[47123],{"type":31,"value":47124},"\"parameter-shift\"",{"type":21,"tag":138,"props":47126,"children":47127},{"style":151},[47128],{"type":31,"value":4637},{"type":21,"tag":138,"props":47130,"children":47131},{"style":219},[47132],{"type":31,"value":47133},"# 2 evals per param\n",{"type":21,"tag":138,"props":47135,"children":47136},{"class":140,"line":189},[47137,47141,47145],{"type":21,"tag":138,"props":47138,"children":47139},{"style":145},[47140],{"type":31,"value":5500},{"type":21,"tag":138,"props":47142,"children":47143},{"style":4522},[47144],{"type":31,"value":5505},{"type":21,"tag":138,"props":47146,"children":47147},{"style":151},[47148],{"type":31,"value":46834},{"type":21,"tag":138,"props":47150,"children":47151},{"class":140,"line":199},[47152],{"type":21,"tag":138,"props":47153,"children":47154},{"style":213},[47155],{"type":31,"value":46850},{"type":21,"tag":138,"props":47157,"children":47158},{"class":140,"line":225},[47159],{"type":21,"tag":138,"props":47160,"children":47161},{"emptyLinePlaceholder":193},[47162],{"type":31,"value":196},{"type":21,"tag":138,"props":47164,"children":47165},{"class":140,"line":233},[47166],{"type":21,"tag":138,"props":47167,"children":47168},{"style":219},[47169],{"type":31,"value":47170},"# Compare to finite-difference (requires 1 eval per param but biased):\n",{"type":21,"tag":138,"props":47172,"children":47173},{"class":140,"line":272},[47174,47178,47182,47186,47190,47195,47199],{"type":21,"tag":138,"props":47175,"children":47176},{"style":4522},[47177],{"type":31,"value":5487},{"type":21,"tag":138,"props":47179,"children":47180},{"style":151},[47181],{"type":31,"value":47111},{"type":21,"tag":138,"props":47183,"children":47184},{"style":929},[47185],{"type":31,"value":8929},{"type":21,"tag":138,"props":47187,"children":47188},{"style":145},[47189],{"type":31,"value":210},{"type":21,"tag":138,"props":47191,"children":47192},{"style":261},[47193],{"type":31,"value":47194},"\"finite-diff\"",{"type":21,"tag":138,"props":47196,"children":47197},{"style":151},[47198],{"type":31,"value":4637},{"type":21,"tag":138,"props":47200,"children":47201},{"style":219},[47202],{"type":31,"value":47203},"# 1 eval but approximate\n",{"type":21,"tag":138,"props":47205,"children":47206},{"class":140,"line":308},[47207],{"type":21,"tag":138,"props":47208,"children":47209},{"emptyLinePlaceholder":193},[47210],{"type":31,"value":196},{"type":21,"tag":138,"props":47212,"children":47213},{"class":140,"line":16},[47214],{"type":21,"tag":138,"props":47215,"children":47216},{"style":219},[47217],{"type":31,"value":47218},"# For large circuits, use \"best\" — PennyLane chooses adjoint on simulator,\n",{"type":21,"tag":138,"props":47220,"children":47221},{"class":140,"line":360},[47222],{"type":21,"tag":138,"props":47223,"children":47224},{"style":219},[47225],{"type":31,"value":47226},"# parameter-shift on hardware\n",{"type":21,"tag":138,"props":47228,"children":47229},{"class":140,"line":368},[47230,47234,47238,47242,47246,47251],{"type":21,"tag":138,"props":47231,"children":47232},{"style":4522},[47233],{"type":31,"value":5487},{"type":21,"tag":138,"props":47235,"children":47236},{"style":151},[47237],{"type":31,"value":47111},{"type":21,"tag":138,"props":47239,"children":47240},{"style":929},[47241],{"type":31,"value":8929},{"type":21,"tag":138,"props":47243,"children":47244},{"style":145},[47245],{"type":31,"value":210},{"type":21,"tag":138,"props":47247,"children":47248},{"style":261},[47249],{"type":31,"value":47250},"\"best\"",{"type":21,"tag":138,"props":47252,"children":47253},{"style":151},[47254],{"type":31,"value":269},{"type":21,"tag":138,"props":47256,"children":47257},{"class":140,"line":377},[47258,47262,47266],{"type":21,"tag":138,"props":47259,"children":47260},{"style":145},[47261],{"type":31,"value":5500},{"type":21,"tag":138,"props":47263,"children":47264},{"style":4522},[47265],{"type":31,"value":5505},{"type":21,"tag":138,"props":47267,"children":47268},{"style":151},[47269],{"type":31,"value":46834},{"type":21,"tag":138,"props":47271,"children":47272},{"class":140,"line":386},[47273],{"type":21,"tag":138,"props":47274,"children":47275},{"style":213},[47276],{"type":31,"value":46850},{"type":21,"tag":22,"props":47278,"children":47279},{},[47280,47282,47287,47289,47295,47297,47302],{"type":31,"value":47281},"对于 ",{"type":21,"tag":103,"props":47283,"children":47285},{"className":47284},[],[47286],{"type":31,"value":19618},{"type":31,"value":47288}," 个参数，参数移位每一步梯度需要 ",{"type":21,"tag":103,"props":47290,"children":47292},{"className":47291},[],[47293],{"type":31,"value":47294},"2n",{"type":31,"value":47296}," 次求值。当 ",{"type":21,"tag":103,"props":47298,"children":47300},{"className":47299},[],[47301],{"type":31,"value":19618},{"type":31,"value":47303}," 很大时，请使用无梯度优化器（COBYLA、SPSA、Nelder-Mead）。",{"type":21,"tag":41,"props":47305,"children":47307},{"id":47306},"技巧-4spsa随机梯度估计",[47308],{"type":31,"value":47309},"技巧 4：SPSA——随机梯度估计",{"type":21,"tag":22,"props":47311,"children":47312},{},[47313,47315,47320],{"type":31,"value":47314},"同步扰动随机逼近（SPSA）通过同时扰动所有参数，无论参数数量多少，都只需 ",{"type":21,"tag":16815,"props":47316,"children":47317},{},[47318],{"type":31,"value":47319},"2 次电路求值",{"type":31,"value":47321},"即可估计出完整梯度：",{"type":21,"tag":128,"props":47323,"children":47325},{"className":130,"code":47324,"language":132,"meta":7,"style":7},"from qiskit_algorithms.optimizers import SPSA\n\n# SPSA: 2 evaluations per step regardless of parameter count\n# vs parameter-shift: 2n evaluations per step\noptimizer = SPSA(maxiter=300, learning_rate=0.1, perturbation=0.05)\n\n# For 10 parameters:\n# - Parameter shift: 2×10 = 20 evals\u002Fstep × 300 steps = 6,000 total\n# - SPSA: 2 evals\u002Fstep × 300 steps = 600 total  ← 10x reduction\n",[47326],{"type":21,"tag":103,"props":47327,"children":47328},{"__ignoreMap":7},[47329,47349,47356,47364,47372,47440,47447,47455,47463],{"type":21,"tag":138,"props":47330,"children":47331},{"class":140,"line":141},[47332,47336,47340,47344],{"type":21,"tag":138,"props":47333,"children":47334},{"style":145},[47335],{"type":31,"value":148},{"type":21,"tag":138,"props":47337,"children":47338},{"style":151},[47339],{"type":31,"value":12405},{"type":21,"tag":138,"props":47341,"children":47342},{"style":145},[47343],{"type":31,"value":159},{"type":21,"tag":138,"props":47345,"children":47346},{"style":213},[47347],{"type":31,"value":47348}," SPSA\n",{"type":21,"tag":138,"props":47350,"children":47351},{"class":140,"line":167},[47352],{"type":21,"tag":138,"props":47353,"children":47354},{"emptyLinePlaceholder":193},[47355],{"type":31,"value":196},{"type":21,"tag":138,"props":47357,"children":47358},{"class":140,"line":189},[47359],{"type":21,"tag":138,"props":47360,"children":47361},{"style":219},[47362],{"type":31,"value":47363},"# SPSA: 2 evaluations per step regardless of parameter count\n",{"type":21,"tag":138,"props":47365,"children":47366},{"class":140,"line":199},[47367],{"type":21,"tag":138,"props":47368,"children":47369},{"style":219},[47370],{"type":31,"value":47371},"# vs parameter-shift: 2n evaluations per step\n",{"type":21,"tag":138,"props":47373,"children":47374},{"class":140,"line":225},[47375,47380,47384,47389,47393,47397,47402,47406,47411,47415,47419,47423,47428,47432,47436],{"type":21,"tag":138,"props":47376,"children":47377},{"style":151},[47378],{"type":31,"value":47379},"optimizer ",{"type":21,"tag":138,"props":47381,"children":47382},{"style":145},[47383],{"type":31,"value":210},{"type":21,"tag":138,"props":47385,"children":47386},{"style":151},[47387],{"type":31,"value":47388}," SPSA(",{"type":21,"tag":138,"props":47390,"children":47391},{"style":929},[47392],{"type":31,"value":24324},{"type":21,"tag":138,"props":47394,"children":47395},{"style":145},[47396],{"type":31,"value":210},{"type":21,"tag":138,"props":47398,"children":47399},{"style":213},[47400],{"type":31,"value":47401},"300",{"type":21,"tag":138,"props":47403,"children":47404},{"style":151},[47405],{"type":31,"value":258},{"type":21,"tag":138,"props":47407,"children":47408},{"style":929},[47409],{"type":31,"value":47410},"learning_rate",{"type":21,"tag":138,"props":47412,"children":47413},{"style":145},[47414],{"type":31,"value":210},{"type":21,"tag":138,"props":47416,"children":47417},{"style":213},[47418],{"type":31,"value":8566},{"type":21,"tag":138,"props":47420,"children":47421},{"style":151},[47422],{"type":31,"value":258},{"type":21,"tag":138,"props":47424,"children":47425},{"style":929},[47426],{"type":31,"value":47427},"perturbation",{"type":21,"tag":138,"props":47429,"children":47430},{"style":145},[47431],{"type":31,"value":210},{"type":21,"tag":138,"props":47433,"children":47434},{"style":213},[47435],{"type":31,"value":26327},{"type":21,"tag":138,"props":47437,"children":47438},{"style":151},[47439],{"type":31,"value":269},{"type":21,"tag":138,"props":47441,"children":47442},{"class":140,"line":233},[47443],{"type":21,"tag":138,"props":47444,"children":47445},{"emptyLinePlaceholder":193},[47446],{"type":31,"value":196},{"type":21,"tag":138,"props":47448,"children":47449},{"class":140,"line":272},[47450],{"type":21,"tag":138,"props":47451,"children":47452},{"style":219},[47453],{"type":31,"value":47454},"# For 10 parameters:\n",{"type":21,"tag":138,"props":47456,"children":47457},{"class":140,"line":308},[47458],{"type":21,"tag":138,"props":47459,"children":47460},{"style":219},[47461],{"type":31,"value":47462},"# - Parameter shift: 2×10 = 20 evals\u002Fstep × 300 steps = 6,000 total\n",{"type":21,"tag":138,"props":47464,"children":47465},{"class":140,"line":16},[47466],{"type":21,"tag":138,"props":47467,"children":47468},{"style":219},[47469],{"type":31,"value":47470},"# - SPSA: 2 evals\u002Fstep × 300 steps = 600 total  ← 10x reduction\n",{"type":21,"tag":22,"props":47472,"children":47473},{},[47474,47479],{"type":21,"tag":16815,"props":47475,"children":47476},{},[47477],{"type":31,"value":47478},"最适用于：",{"type":31,"value":47480}," 电路含有大量参数（> 10）时。代价是每一步的收敛更慢，但总采样次数更少。",{"type":21,"tag":41,"props":47482,"children":47484},{"id":47483},"技巧-5提前终止-方差阈值",[47485],{"type":31,"value":47486},"技巧 5：提前终止 + 方差阈值",{"type":21,"tag":22,"props":47488,"children":47489},{},[47490],{"type":31,"value":47491},"当结果已经足够好时，不要把电路运行到底：",{"type":21,"tag":128,"props":47493,"children":47495},{"className":130,"code":47494,"language":132,"meta":7,"style":7},"from pennylane.optimize import AdamOptimizer\nimport numpy as np\n\nopt = AdamOptimizer(stepsize=0.02)\nparams = init_params.copy()\nprev_energy = float('inf')\n\nfor step in range(max_steps):\n    params, energy = opt.step_and_cost(circuit, params)\n\n    # Stop when change is below shot-noise floor\n    variance = 1.0 \u002F np.sqrt(shots_per_eval)  # shot noise floor\n    if abs(energy - prev_energy) \u003C variance:\n        print(f\"Converged at step {step}\")\n        break\n\n    prev_energy = energy\n",[47496],{"type":21,"tag":103,"props":47497,"children":47498},{"__ignoreMap":7},[47499,47519,47538,47545,47577,47593,47623,47630,47654,47670,47677,47685,47717,47753,47793,47801,47808],{"type":21,"tag":138,"props":47500,"children":47501},{"class":140,"line":141},[47502,47506,47510,47514],{"type":21,"tag":138,"props":47503,"children":47504},{"style":145},[47505],{"type":31,"value":148},{"type":21,"tag":138,"props":47507,"children":47508},{"style":151},[47509],{"type":31,"value":46745},{"type":21,"tag":138,"props":47511,"children":47512},{"style":145},[47513],{"type":31,"value":159},{"type":21,"tag":138,"props":47515,"children":47516},{"style":151},[47517],{"type":31,"value":47518}," AdamOptimizer\n",{"type":21,"tag":138,"props":47520,"children":47521},{"class":140,"line":167},[47522,47526,47530,47534],{"type":21,"tag":138,"props":47523,"children":47524},{"style":145},[47525],{"type":31,"value":159},{"type":21,"tag":138,"props":47527,"children":47528},{"style":151},[47529],{"type":31,"value":8530},{"type":21,"tag":138,"props":47531,"children":47532},{"style":145},[47533],{"type":31,"value":5356},{"type":21,"tag":138,"props":47535,"children":47536},{"style":151},[47537],{"type":31,"value":8632},{"type":21,"tag":138,"props":47539,"children":47540},{"class":140,"line":189},[47541],{"type":21,"tag":138,"props":47542,"children":47543},{"emptyLinePlaceholder":193},[47544],{"type":31,"value":196},{"type":21,"tag":138,"props":47546,"children":47547},{"class":140,"line":199},[47548,47552,47556,47561,47565,47569,47573],{"type":21,"tag":138,"props":47549,"children":47550},{"style":151},[47551],{"type":31,"value":36721},{"type":21,"tag":138,"props":47553,"children":47554},{"style":145},[47555],{"type":31,"value":210},{"type":21,"tag":138,"props":47557,"children":47558},{"style":151},[47559],{"type":31,"value":47560}," AdamOptimizer(",{"type":21,"tag":138,"props":47562,"children":47563},{"style":929},[47564],{"type":31,"value":36735},{"type":21,"tag":138,"props":47566,"children":47567},{"style":145},[47568],{"type":31,"value":210},{"type":21,"tag":138,"props":47570,"children":47571},{"style":213},[47572],{"type":31,"value":26313},{"type":21,"tag":138,"props":47574,"children":47575},{"style":151},[47576],{"type":31,"value":269},{"type":21,"tag":138,"props":47578,"children":47579},{"class":140,"line":225},[47580,47584,47588],{"type":21,"tag":138,"props":47581,"children":47582},{"style":151},[47583],{"type":31,"value":8552},{"type":21,"tag":138,"props":47585,"children":47586},{"style":145},[47587],{"type":31,"value":210},{"type":21,"tag":138,"props":47589,"children":47590},{"style":151},[47591],{"type":31,"value":47592}," init_params.copy()\n",{"type":21,"tag":138,"props":47594,"children":47595},{"class":140,"line":233},[47596,47601,47605,47610,47614,47619],{"type":21,"tag":138,"props":47597,"children":47598},{"style":151},[47599],{"type":31,"value":47600},"prev_energy ",{"type":21,"tag":138,"props":47602,"children":47603},{"style":145},[47604],{"type":31,"value":210},{"type":21,"tag":138,"props":47606,"children":47607},{"style":213},[47608],{"type":31,"value":47609}," float",{"type":21,"tag":138,"props":47611,"children":47612},{"style":151},[47613],{"type":31,"value":959},{"type":21,"tag":138,"props":47615,"children":47616},{"style":261},[47617],{"type":31,"value":47618},"'inf'",{"type":21,"tag":138,"props":47620,"children":47621},{"style":151},[47622],{"type":31,"value":269},{"type":21,"tag":138,"props":47624,"children":47625},{"class":140,"line":272},[47626],{"type":21,"tag":138,"props":47627,"children":47628},{"emptyLinePlaceholder":193},[47629],{"type":31,"value":196},{"type":21,"tag":138,"props":47631,"children":47632},{"class":140,"line":308},[47633,47637,47641,47645,47649],{"type":21,"tag":138,"props":47634,"children":47635},{"style":145},[47636],{"type":31,"value":1492},{"type":21,"tag":138,"props":47638,"children":47639},{"style":151},[47640],{"type":31,"value":36783},{"type":21,"tag":138,"props":47642,"children":47643},{"style":145},[47644],{"type":31,"value":1502},{"type":21,"tag":138,"props":47646,"children":47647},{"style":213},[47648],{"type":31,"value":7430},{"type":21,"tag":138,"props":47650,"children":47651},{"style":151},[47652],{"type":31,"value":47653},"(max_steps):\n",{"type":21,"tag":138,"props":47655,"children":47656},{"class":140,"line":16},[47657,47662,47666],{"type":21,"tag":138,"props":47658,"children":47659},{"style":151},[47660],{"type":31,"value":47661},"    params, energy ",{"type":21,"tag":138,"props":47663,"children":47664},{"style":145},[47665],{"type":31,"value":210},{"type":21,"tag":138,"props":47667,"children":47668},{"style":151},[47669],{"type":31,"value":46990},{"type":21,"tag":138,"props":47671,"children":47672},{"class":140,"line":360},[47673],{"type":21,"tag":138,"props":47674,"children":47675},{"emptyLinePlaceholder":193},[47676],{"type":31,"value":196},{"type":21,"tag":138,"props":47678,"children":47679},{"class":140,"line":368},[47680],{"type":21,"tag":138,"props":47681,"children":47682},{"style":219},[47683],{"type":31,"value":47684},"    # Stop when change is below shot-noise floor\n",{"type":21,"tag":138,"props":47686,"children":47687},{"class":140,"line":377},[47688,47693,47697,47702,47707,47712],{"type":21,"tag":138,"props":47689,"children":47690},{"style":151},[47691],{"type":31,"value":47692},"    variance ",{"type":21,"tag":138,"props":47694,"children":47695},{"style":145},[47696],{"type":31,"value":210},{"type":21,"tag":138,"props":47698,"children":47699},{"style":213},[47700],{"type":31,"value":47701}," 1.0",{"type":21,"tag":138,"props":47703,"children":47704},{"style":145},[47705],{"type":31,"value":47706}," \u002F",{"type":21,"tag":138,"props":47708,"children":47709},{"style":151},[47710],{"type":31,"value":47711}," np.sqrt(shots_per_eval)  ",{"type":21,"tag":138,"props":47713,"children":47714},{"style":219},[47715],{"type":31,"value":47716},"# shot noise floor\n",{"type":21,"tag":138,"props":47718,"children":47719},{"class":140,"line":386},[47720,47724,47729,47734,47738,47743,47748],{"type":21,"tag":138,"props":47721,"children":47722},{"style":145},[47723],{"type":31,"value":19536},{"type":21,"tag":138,"props":47725,"children":47726},{"style":213},[47727],{"type":31,"value":47728}," abs",{"type":21,"tag":138,"props":47730,"children":47731},{"style":151},[47732],{"type":31,"value":47733},"(energy ",{"type":21,"tag":138,"props":47735,"children":47736},{"style":145},[47737],{"type":31,"value":831},{"type":21,"tag":138,"props":47739,"children":47740},{"style":151},[47741],{"type":31,"value":47742}," prev_energy) ",{"type":21,"tag":138,"props":47744,"children":47745},{"style":145},[47746],{"type":31,"value":47747},"\u003C",{"type":21,"tag":138,"props":47749,"children":47750},{"style":151},[47751],{"type":31,"value":47752}," variance:\n",{"type":21,"tag":138,"props":47754,"children":47755},{"class":140,"line":395},[47756,47760,47764,47768,47773,47777,47781,47785,47789],{"type":21,"tag":138,"props":47757,"children":47758},{"style":213},[47759],{"type":31,"value":34685},{"type":21,"tag":138,"props":47761,"children":47762},{"style":151},[47763],{"type":31,"value":959},{"type":21,"tag":138,"props":47765,"children":47766},{"style":145},[47767],{"type":31,"value":7537},{"type":21,"tag":138,"props":47769,"children":47770},{"style":261},[47771],{"type":31,"value":47772},"\"Converged at step ",{"type":21,"tag":138,"props":47774,"children":47775},{"style":213},[47776],{"type":31,"value":7547},{"type":21,"tag":138,"props":47778,"children":47779},{"style":151},[47780],{"type":31,"value":37008},{"type":21,"tag":138,"props":47782,"children":47783},{"style":213},[47784],{"type":31,"value":7556},{"type":21,"tag":138,"props":47786,"children":47787},{"style":261},[47788],{"type":31,"value":15383},{"type":21,"tag":138,"props":47790,"children":47791},{"style":151},[47792],{"type":31,"value":269},{"type":21,"tag":138,"props":47794,"children":47795},{"class":140,"line":413},[47796],{"type":21,"tag":138,"props":47797,"children":47798},{"style":145},[47799],{"type":31,"value":47800},"        break\n",{"type":21,"tag":138,"props":47802,"children":47803},{"class":140,"line":12602},[47804],{"type":21,"tag":138,"props":47805,"children":47806},{"emptyLinePlaceholder":193},[47807],{"type":31,"value":196},{"type":21,"tag":138,"props":47809,"children":47810},{"class":140,"line":12619},[47811,47816,47820],{"type":21,"tag":138,"props":47812,"children":47813},{"style":151},[47814],{"type":31,"value":47815},"    prev_energy ",{"type":21,"tag":138,"props":47817,"children":47818},{"style":145},[47819],{"type":31,"value":210},{"type":21,"tag":138,"props":47821,"children":47822},{"style":151},[47823],{"type":31,"value":47824}," energy\n",{"type":21,"tag":22,"props":47826,"children":47827},{},[47828],{"type":31,"value":47829},"许多 VQE 运行会提前进入平台期——继续运行只是把采样浪费在噪声波动上。",{"type":21,"tag":41,"props":47831,"children":47833},{"id":47832},"技巧-6热启动",[47834],{"type":31,"value":47835},"技巧 6：热启动",{"type":21,"tag":22,"props":47837,"children":47838},{},[47839],{"type":31,"value":47840},"用相关的经典解而非随机值来初始化 QAOA 或 VQE 参数：",{"type":21,"tag":128,"props":47842,"children":47844},{"className":130,"code":47843,"language":132,"meta":7,"style":7},"# For QAOA on Max-Cut: warm start from a greedy classical solution\nimport networkx as nx\n\nG = nx.from_edgelist(edges)\nclassical_cut = nx.algorithms.approximation.one_exchange(G)\n\n# Map classical solution to initial QAOA angles\n# γ₀ ≈ π\u002F4 for a good cut, β₀ ≈ π\u002F8\ninit_gamma = [np.pi \u002F 4]\ninit_beta = [np.pi \u002F 8]\n\n# Warm-started QAOA typically converges in 30-50% fewer iterations\n",[47845],{"type":21,"tag":103,"props":47846,"children":47847},{"__ignoreMap":7},[47848,47856,47877,47884,47901,47918,47925,47933,47941,47970,47999,48006],{"type":21,"tag":138,"props":47849,"children":47850},{"class":140,"line":141},[47851],{"type":21,"tag":138,"props":47852,"children":47853},{"style":219},[47854],{"type":31,"value":47855},"# For QAOA on Max-Cut: warm start from a greedy classical solution\n",{"type":21,"tag":138,"props":47857,"children":47858},{"class":140,"line":167},[47859,47863,47868,47872],{"type":21,"tag":138,"props":47860,"children":47861},{"style":145},[47862],{"type":31,"value":159},{"type":21,"tag":138,"props":47864,"children":47865},{"style":151},[47866],{"type":31,"value":47867}," networkx ",{"type":21,"tag":138,"props":47869,"children":47870},{"style":145},[47871],{"type":31,"value":5356},{"type":21,"tag":138,"props":47873,"children":47874},{"style":151},[47875],{"type":31,"value":47876}," nx\n",{"type":21,"tag":138,"props":47878,"children":47879},{"class":140,"line":189},[47880],{"type":21,"tag":138,"props":47881,"children":47882},{"emptyLinePlaceholder":193},[47883],{"type":31,"value":196},{"type":21,"tag":138,"props":47885,"children":47886},{"class":140,"line":199},[47887,47892,47896],{"type":21,"tag":138,"props":47888,"children":47889},{"style":151},[47890],{"type":31,"value":47891},"G ",{"type":21,"tag":138,"props":47893,"children":47894},{"style":145},[47895],{"type":31,"value":210},{"type":21,"tag":138,"props":47897,"children":47898},{"style":151},[47899],{"type":31,"value":47900}," nx.from_edgelist(edges)\n",{"type":21,"tag":138,"props":47902,"children":47903},{"class":140,"line":225},[47904,47909,47913],{"type":21,"tag":138,"props":47905,"children":47906},{"style":151},[47907],{"type":31,"value":47908},"classical_cut ",{"type":21,"tag":138,"props":47910,"children":47911},{"style":145},[47912],{"type":31,"value":210},{"type":21,"tag":138,"props":47914,"children":47915},{"style":151},[47916],{"type":31,"value":47917}," nx.algorithms.approximation.one_exchange(G)\n",{"type":21,"tag":138,"props":47919,"children":47920},{"class":140,"line":233},[47921],{"type":21,"tag":138,"props":47922,"children":47923},{"emptyLinePlaceholder":193},[47924],{"type":31,"value":196},{"type":21,"tag":138,"props":47926,"children":47927},{"class":140,"line":272},[47928],{"type":21,"tag":138,"props":47929,"children":47930},{"style":219},[47931],{"type":31,"value":47932},"# Map classical solution to initial QAOA angles\n",{"type":21,"tag":138,"props":47934,"children":47935},{"class":140,"line":308},[47936],{"type":21,"tag":138,"props":47937,"children":47938},{"style":219},[47939],{"type":31,"value":47940},"# γ₀ ≈ π\u002F4 for a good cut, β₀ ≈ π\u002F8\n",{"type":21,"tag":138,"props":47942,"children":47943},{"class":140,"line":16},[47944,47949,47953,47958,47962,47966],{"type":21,"tag":138,"props":47945,"children":47946},{"style":151},[47947],{"type":31,"value":47948},"init_gamma ",{"type":21,"tag":138,"props":47950,"children":47951},{"style":145},[47952],{"type":31,"value":210},{"type":21,"tag":138,"props":47954,"children":47955},{"style":151},[47956],{"type":31,"value":47957}," [np.pi ",{"type":21,"tag":138,"props":47959,"children":47960},{"style":145},[47961],{"type":31,"value":5075},{"type":21,"tag":138,"props":47963,"children":47964},{"style":213},[47965],{"type":31,"value":19309},{"type":21,"tag":138,"props":47967,"children":47968},{"style":151},[47969],{"type":31,"value":14183},{"type":21,"tag":138,"props":47971,"children":47972},{"class":140,"line":360},[47973,47978,47982,47986,47990,47995],{"type":21,"tag":138,"props":47974,"children":47975},{"style":151},[47976],{"type":31,"value":47977},"init_beta ",{"type":21,"tag":138,"props":47979,"children":47980},{"style":145},[47981],{"type":31,"value":210},{"type":21,"tag":138,"props":47983,"children":47984},{"style":151},[47985],{"type":31,"value":47957},{"type":21,"tag":138,"props":47987,"children":47988},{"style":145},[47989],{"type":31,"value":5075},{"type":21,"tag":138,"props":47991,"children":47992},{"style":213},[47993],{"type":31,"value":47994}," 8",{"type":21,"tag":138,"props":47996,"children":47997},{"style":151},[47998],{"type":31,"value":14183},{"type":21,"tag":138,"props":48000,"children":48001},{"class":140,"line":368},[48002],{"type":21,"tag":138,"props":48003,"children":48004},{"emptyLinePlaceholder":193},[48005],{"type":31,"value":196},{"type":21,"tag":138,"props":48007,"children":48008},{"class":140,"line":377},[48009],{"type":21,"tag":138,"props":48010,"children":48011},{"style":219},[48012],{"type":31,"value":48013},"# Warm-started QAOA typically converges in 30-50% fewer iterations\n",{"type":21,"tag":41,"props":48015,"children":48017},{"id":48016},"综合运用一个实用的-vqe-模板",[48018],{"type":31,"value":48019},"综合运用：一个实用的 VQE 模板",{"type":21,"tag":128,"props":48021,"children":48023},{"className":130,"code":48022,"language":132,"meta":7,"style":7},"import pennylane as qml\nimport numpy as np\nfrom pennylane.optimize import ShotAdaptiveOptimizer\n\ndev = qml.device(\"default.qubit\", wires=n_qubits, shots=512)\n\n# 1. Group commuting terms (5-10x reduction in circuit count)\ngrouped_H = qml.Hamiltonian(*qml.grouping.group_observables(H))\n\n@qml.qnode(dev, diff_method=\"parameter-shift\")\ndef ansatz(params):\n    # Hardware-efficient ansatz\n    for i in range(n_qubits):\n        qml.RY(params[i], wires=i)\n    for i in range(n_qubits - 1):\n        qml.CNOT(wires=[i, i + 1])\n    return qml.expval(grouped_H)\n\n# 2. Use shot-adaptive optimizer\nopt = ShotAdaptiveOptimizer(min_shots=50)\n\n# 3. Warm start\nparams = warm_start_params(H)\n\n# 4. Run with early stopping\nfor step in range(300):\n    params, energy, shots = opt.step_and_cost(ansatz, params)\n    if check_convergence(energy, shots):\n        break\n\nprint(f\"Ground state energy: {energy:.4f} Ha\")\n",[48024],{"type":21,"tag":103,"props":48025,"children":48026},{"__ignoreMap":7},[48027,48046,48065,48085,48092,48145,48152,48160,48186,48193,48220,48236,48244,48268,48289,48325,48358,48370,48377,48385,48417,48424,48432,48448,48455,48463,48494,48511,48523,48530,48537],{"type":21,"tag":138,"props":48028,"children":48029},{"class":140,"line":141},[48030,48034,48038,48042],{"type":21,"tag":138,"props":48031,"children":48032},{"style":145},[48033],{"type":31,"value":159},{"type":21,"tag":138,"props":48035,"children":48036},{"style":151},[48037],{"type":31,"value":5351},{"type":21,"tag":138,"props":48039,"children":48040},{"style":145},[48041],{"type":31,"value":5356},{"type":21,"tag":138,"props":48043,"children":48044},{"style":151},[48045],{"type":31,"value":5361},{"type":21,"tag":138,"props":48047,"children":48048},{"class":140,"line":167},[48049,48053,48057,48061],{"type":21,"tag":138,"props":48050,"children":48051},{"style":145},[48052],{"type":31,"value":159},{"type":21,"tag":138,"props":48054,"children":48055},{"style":151},[48056],{"type":31,"value":8530},{"type":21,"tag":138,"props":48058,"children":48059},{"style":145},[48060],{"type":31,"value":5356},{"type":21,"tag":138,"props":48062,"children":48063},{"style":151},[48064],{"type":31,"value":8632},{"type":21,"tag":138,"props":48066,"children":48067},{"class":140,"line":189},[48068,48072,48076,48080],{"type":21,"tag":138,"props":48069,"children":48070},{"style":145},[48071],{"type":31,"value":148},{"type":21,"tag":138,"props":48073,"children":48074},{"style":151},[48075],{"type":31,"value":46745},{"type":21,"tag":138,"props":48077,"children":48078},{"style":145},[48079],{"type":31,"value":159},{"type":21,"tag":138,"props":48081,"children":48082},{"style":151},[48083],{"type":31,"value":48084}," ShotAdaptiveOptimizer\n",{"type":21,"tag":138,"props":48086,"children":48087},{"class":140,"line":199},[48088],{"type":21,"tag":138,"props":48089,"children":48090},{"emptyLinePlaceholder":193},[48091],{"type":31,"value":196},{"type":21,"tag":138,"props":48093,"children":48094},{"class":140,"line":225},[48095,48099,48103,48107,48111,48115,48119,48123,48128,48132,48136,48141],{"type":21,"tag":138,"props":48096,"children":48097},{"style":151},[48098],{"type":31,"value":8726},{"type":21,"tag":138,"props":48100,"children":48101},{"style":145},[48102],{"type":31,"value":210},{"type":21,"tag":138,"props":48104,"children":48105},{"style":151},[48106],{"type":31,"value":5446},{"type":21,"tag":138,"props":48108,"children":48109},{"style":261},[48110],{"type":31,"value":5451},{"type":21,"tag":138,"props":48112,"children":48113},{"style":151},[48114],{"type":31,"value":258},{"type":21,"tag":138,"props":48116,"children":48117},{"style":929},[48118],{"type":31,"value":5460},{"type":21,"tag":138,"props":48120,"children":48121},{"style":145},[48122],{"type":31,"value":210},{"type":21,"tag":138,"props":48124,"children":48125},{"style":151},[48126],{"type":31,"value":48127},"n_qubits, ",{"type":21,"tag":138,"props":48129,"children":48130},{"style":929},[48131],{"type":31,"value":932},{"type":21,"tag":138,"props":48133,"children":48134},{"style":145},[48135],{"type":31,"value":210},{"type":21,"tag":138,"props":48137,"children":48138},{"style":213},[48139],{"type":31,"value":48140},"512",{"type":21,"tag":138,"props":48142,"children":48143},{"style":151},[48144],{"type":31,"value":269},{"type":21,"tag":138,"props":48146,"children":48147},{"class":140,"line":233},[48148],{"type":21,"tag":138,"props":48149,"children":48150},{"emptyLinePlaceholder":193},[48151],{"type":31,"value":196},{"type":21,"tag":138,"props":48153,"children":48154},{"class":140,"line":272},[48155],{"type":21,"tag":138,"props":48156,"children":48157},{"style":219},[48158],{"type":31,"value":48159},"# 1. Group commuting terms (5-10x reduction in circuit count)\n",{"type":21,"tag":138,"props":48161,"children":48162},{"class":140,"line":308},[48163,48168,48172,48177,48181],{"type":21,"tag":138,"props":48164,"children":48165},{"style":151},[48166],{"type":31,"value":48167},"grouped_H ",{"type":21,"tag":138,"props":48169,"children":48170},{"style":145},[48171],{"type":31,"value":210},{"type":21,"tag":138,"props":48173,"children":48174},{"style":151},[48175],{"type":31,"value":48176}," qml.Hamiltonian(",{"type":21,"tag":138,"props":48178,"children":48179},{"style":145},[48180],{"type":31,"value":11419},{"type":21,"tag":138,"props":48182,"children":48183},{"style":151},[48184],{"type":31,"value":48185},"qml.grouping.group_observables(H))\n",{"type":21,"tag":138,"props":48187,"children":48188},{"class":140,"line":16},[48189],{"type":21,"tag":138,"props":48190,"children":48191},{"emptyLinePlaceholder":193},[48192],{"type":31,"value":196},{"type":21,"tag":138,"props":48194,"children":48195},{"class":140,"line":360},[48196,48200,48204,48208,48212,48216],{"type":21,"tag":138,"props":48197,"children":48198},{"style":4522},[48199],{"type":31,"value":5487},{"type":21,"tag":138,"props":48201,"children":48202},{"style":151},[48203],{"type":31,"value":47111},{"type":21,"tag":138,"props":48205,"children":48206},{"style":929},[48207],{"type":31,"value":8929},{"type":21,"tag":138,"props":48209,"children":48210},{"style":145},[48211],{"type":31,"value":210},{"type":21,"tag":138,"props":48213,"children":48214},{"style":261},[48215],{"type":31,"value":47124},{"type":21,"tag":138,"props":48217,"children":48218},{"style":151},[48219],{"type":31,"value":269},{"type":21,"tag":138,"props":48221,"children":48222},{"class":140,"line":368},[48223,48227,48232],{"type":21,"tag":138,"props":48224,"children":48225},{"style":145},[48226],{"type":31,"value":5500},{"type":21,"tag":138,"props":48228,"children":48229},{"style":4522},[48230],{"type":31,"value":48231}," ansatz",{"type":21,"tag":138,"props":48233,"children":48234},{"style":151},[48235],{"type":31,"value":46834},{"type":21,"tag":138,"props":48237,"children":48238},{"class":140,"line":377},[48239],{"type":21,"tag":138,"props":48240,"children":48241},{"style":219},[48242],{"type":31,"value":48243},"    # Hardware-efficient ansatz\n",{"type":21,"tag":138,"props":48245,"children":48246},{"class":140,"line":386},[48247,48251,48255,48259,48263],{"type":21,"tag":138,"props":48248,"children":48249},{"style":145},[48250],{"type":31,"value":17037},{"type":21,"tag":138,"props":48252,"children":48253},{"style":151},[48254],{"type":31,"value":7421},{"type":21,"tag":138,"props":48256,"children":48257},{"style":145},[48258],{"type":31,"value":1502},{"type":21,"tag":138,"props":48260,"children":48261},{"style":213},[48262],{"type":31,"value":7430},{"type":21,"tag":138,"props":48264,"children":48265},{"style":151},[48266],{"type":31,"value":48267},"(n_qubits):\n",{"type":21,"tag":138,"props":48269,"children":48270},{"class":140,"line":395},[48271,48276,48280,48284],{"type":21,"tag":138,"props":48272,"children":48273},{"style":151},[48274],{"type":31,"value":48275},"        qml.RY(params[i], ",{"type":21,"tag":138,"props":48277,"children":48278},{"style":929},[48279],{"type":31,"value":5460},{"type":21,"tag":138,"props":48281,"children":48282},{"style":145},[48283],{"type":31,"value":210},{"type":21,"tag":138,"props":48285,"children":48286},{"style":151},[48287],{"type":31,"value":48288},"i)\n",{"type":21,"tag":138,"props":48290,"children":48291},{"class":140,"line":413},[48292,48296,48300,48304,48308,48313,48317,48321],{"type":21,"tag":138,"props":48293,"children":48294},{"style":145},[48295],{"type":31,"value":17037},{"type":21,"tag":138,"props":48297,"children":48298},{"style":151},[48299],{"type":31,"value":7421},{"type":21,"tag":138,"props":48301,"children":48302},{"style":145},[48303],{"type":31,"value":1502},{"type":21,"tag":138,"props":48305,"children":48306},{"style":213},[48307],{"type":31,"value":7430},{"type":21,"tag":138,"props":48309,"children":48310},{"style":151},[48311],{"type":31,"value":48312},"(n_qubits ",{"type":21,"tag":138,"props":48314,"children":48315},{"style":145},[48316],{"type":31,"value":831},{"type":21,"tag":138,"props":48318,"children":48319},{"style":213},[48320],{"type":31,"value":17063},{"type":21,"tag":138,"props":48322,"children":48323},{"style":151},[48324],{"type":31,"value":7443},{"type":21,"tag":138,"props":48326,"children":48327},{"class":140,"line":12602},[48328,48333,48337,48341,48346,48350,48354],{"type":21,"tag":138,"props":48329,"children":48330},{"style":151},[48331],{"type":31,"value":48332},"        qml.CNOT(",{"type":21,"tag":138,"props":48334,"children":48335},{"style":929},[48336],{"type":31,"value":5460},{"type":21,"tag":138,"props":48338,"children":48339},{"style":145},[48340],{"type":31,"value":210},{"type":21,"tag":138,"props":48342,"children":48343},{"style":151},[48344],{"type":31,"value":48345},"[i, i ",{"type":21,"tag":138,"props":48347,"children":48348},{"style":145},[48349],{"type":31,"value":1605},{"type":21,"tag":138,"props":48351,"children":48352},{"style":213},[48353],{"type":31,"value":17063},{"type":21,"tag":138,"props":48355,"children":48356},{"style":151},[48357],{"type":31,"value":598},{"type":21,"tag":138,"props":48359,"children":48360},{"class":140,"line":12619},[48361,48365],{"type":21,"tag":138,"props":48362,"children":48363},{"style":145},[48364],{"type":31,"value":5595},{"type":21,"tag":138,"props":48366,"children":48367},{"style":151},[48368],{"type":31,"value":48369}," qml.expval(grouped_H)\n",{"type":21,"tag":138,"props":48371,"children":48372},{"class":140,"line":12635},[48373],{"type":21,"tag":138,"props":48374,"children":48375},{"emptyLinePlaceholder":193},[48376],{"type":31,"value":196},{"type":21,"tag":138,"props":48378,"children":48379},{"class":140,"line":12643},[48380],{"type":21,"tag":138,"props":48381,"children":48382},{"style":219},[48383],{"type":31,"value":48384},"# 2. Use shot-adaptive optimizer\n",{"type":21,"tag":138,"props":48386,"children":48387},{"class":140,"line":17760},[48388,48392,48396,48400,48404,48408,48413],{"type":21,"tag":138,"props":48389,"children":48390},{"style":151},[48391],{"type":31,"value":36721},{"type":21,"tag":138,"props":48393,"children":48394},{"style":145},[48395],{"type":31,"value":210},{"type":21,"tag":138,"props":48397,"children":48398},{"style":151},[48399],{"type":31,"value":46893},{"type":21,"tag":138,"props":48401,"children":48402},{"style":929},[48403],{"type":31,"value":46898},{"type":21,"tag":138,"props":48405,"children":48406},{"style":145},[48407],{"type":31,"value":210},{"type":21,"tag":138,"props":48409,"children":48410},{"style":213},[48411],{"type":31,"value":48412},"50",{"type":21,"tag":138,"props":48414,"children":48415},{"style":151},[48416],{"type":31,"value":269},{"type":21,"tag":138,"props":48418,"children":48419},{"class":140,"line":17778},[48420],{"type":21,"tag":138,"props":48421,"children":48422},{"emptyLinePlaceholder":193},[48423],{"type":31,"value":196},{"type":21,"tag":138,"props":48425,"children":48426},{"class":140,"line":17803},[48427],{"type":21,"tag":138,"props":48428,"children":48429},{"style":219},[48430],{"type":31,"value":48431},"# 3. Warm start\n",{"type":21,"tag":138,"props":48433,"children":48434},{"class":140,"line":17830},[48435,48439,48443],{"type":21,"tag":138,"props":48436,"children":48437},{"style":151},[48438],{"type":31,"value":8552},{"type":21,"tag":138,"props":48440,"children":48441},{"style":145},[48442],{"type":31,"value":210},{"type":21,"tag":138,"props":48444,"children":48445},{"style":151},[48446],{"type":31,"value":48447}," warm_start_params(H)\n",{"type":21,"tag":138,"props":48449,"children":48450},{"class":140,"line":17856},[48451],{"type":21,"tag":138,"props":48452,"children":48453},{"emptyLinePlaceholder":193},[48454],{"type":31,"value":196},{"type":21,"tag":138,"props":48456,"children":48457},{"class":140,"line":17865},[48458],{"type":21,"tag":138,"props":48459,"children":48460},{"style":219},[48461],{"type":31,"value":48462},"# 4. Run with early stopping\n",{"type":21,"tag":138,"props":48464,"children":48465},{"class":140,"line":17877},[48466,48470,48474,48478,48482,48486,48490],{"type":21,"tag":138,"props":48467,"children":48468},{"style":145},[48469],{"type":31,"value":1492},{"type":21,"tag":138,"props":48471,"children":48472},{"style":151},[48473],{"type":31,"value":36783},{"type":21,"tag":138,"props":48475,"children":48476},{"style":145},[48477],{"type":31,"value":1502},{"type":21,"tag":138,"props":48479,"children":48480},{"style":213},[48481],{"type":31,"value":7430},{"type":21,"tag":138,"props":48483,"children":48484},{"style":151},[48485],{"type":31,"value":959},{"type":21,"tag":138,"props":48487,"children":48488},{"style":213},[48489],{"type":31,"value":47401},{"type":21,"tag":138,"props":48491,"children":48492},{"style":151},[48493],{"type":31,"value":7443},{"type":21,"tag":138,"props":48495,"children":48496},{"class":140,"line":17885},[48497,48502,48506],{"type":21,"tag":138,"props":48498,"children":48499},{"style":151},[48500],{"type":31,"value":48501},"    params, energy, shots ",{"type":21,"tag":138,"props":48503,"children":48504},{"style":145},[48505],{"type":31,"value":210},{"type":21,"tag":138,"props":48507,"children":48508},{"style":151},[48509],{"type":31,"value":48510}," opt.step_and_cost(ansatz, params)\n",{"type":21,"tag":138,"props":48512,"children":48513},{"class":140,"line":17938},[48514,48518],{"type":21,"tag":138,"props":48515,"children":48516},{"style":145},[48517],{"type":31,"value":19536},{"type":21,"tag":138,"props":48519,"children":48520},{"style":151},[48521],{"type":31,"value":48522}," check_convergence(energy, shots):\n",{"type":21,"tag":138,"props":48524,"children":48525},{"class":140,"line":26899},[48526],{"type":21,"tag":138,"props":48527,"children":48528},{"style":145},[48529],{"type":31,"value":47800},{"type":21,"tag":138,"props":48531,"children":48532},{"class":140,"line":26944},[48533],{"type":21,"tag":138,"props":48534,"children":48535},{"emptyLinePlaceholder":193},[48536],{"type":31,"value":196},{"type":21,"tag":138,"props":48538,"children":48539},{"class":140,"line":26957},[48540,48544,48548,48552,48557,48561,48566,48570,48574,48578],{"type":21,"tag":138,"props":48541,"children":48542},{"style":213},[48543],{"type":31,"value":954},{"type":21,"tag":138,"props":48545,"children":48546},{"style":151},[48547],{"type":31,"value":959},{"type":21,"tag":138,"props":48549,"children":48550},{"style":145},[48551],{"type":31,"value":7537},{"type":21,"tag":138,"props":48553,"children":48554},{"style":261},[48555],{"type":31,"value":48556},"\"Ground state energy: ",{"type":21,"tag":138,"props":48558,"children":48559},{"style":213},[48560],{"type":31,"value":7547},{"type":21,"tag":138,"props":48562,"children":48563},{"style":151},[48564],{"type":31,"value":48565},"energy",{"type":21,"tag":138,"props":48567,"children":48568},{"style":145},[48569],{"type":31,"value":25594},{"type":21,"tag":138,"props":48571,"children":48572},{"style":213},[48573],{"type":31,"value":7556},{"type":21,"tag":138,"props":48575,"children":48576},{"style":261},[48577],{"type":31,"value":41182},{"type":21,"tag":138,"props":48579,"children":48580},{"style":151},[48581],{"type":31,"value":269},{"type":21,"tag":41,"props":48583,"children":48585},{"id":48584},"速查表各方法的采样预算",[48586],{"type":31,"value":48587},"速查表：各方法的采样预算",{"type":21,"tag":3162,"props":48589,"children":48590},{},[48591,48612],{"type":21,"tag":3166,"props":48592,"children":48593},{},[48594],{"type":21,"tag":3170,"props":48595,"children":48596},{},[48597,48602,48607],{"type":21,"tag":3174,"props":48598,"children":48599},{},[48600],{"type":31,"value":48601},"方法",{"type":21,"tag":3174,"props":48603,"children":48604},{},[48605],{"type":31,"value":48606},"每步采样次数",{"type":21,"tag":3174,"props":48608,"children":48609},{},[48610],{"type":31,"value":48611},"最适用于",{"type":21,"tag":3188,"props":48613,"children":48614},{},[48615,48637,48659,48681,48699],{"type":21,"tag":3170,"props":48616,"children":48617},{},[48618,48623,48632],{"type":21,"tag":3195,"props":48619,"children":48620},{},[48621],{"type":31,"value":48622},"COBYLA + 固定采样",{"type":21,"tag":3195,"props":48624,"children":48625},{},[48626],{"type":21,"tag":103,"props":48627,"children":48629},{"className":48628},[],[48630],{"type":31,"value":48631},"n_terms × shots",{"type":21,"tag":3195,"props":48633,"children":48634},{},[48635],{"type":31,"value":48636},"参数数量较少",{"type":21,"tag":3170,"props":48638,"children":48639},{},[48640,48645,48654],{"type":21,"tag":3195,"props":48641,"children":48642},{},[48643],{"type":31,"value":48644},"参数移位 + Adam",{"type":21,"tag":3195,"props":48646,"children":48647},{},[48648],{"type":21,"tag":103,"props":48649,"children":48651},{"className":48650},[],[48652],{"type":31,"value":48653},"2n_params × shots",{"type":21,"tag":3195,"props":48655,"children":48656},{},[48657],{"type":31,"value":48658},"可微电路",{"type":21,"tag":3170,"props":48660,"children":48661},{},[48662,48667,48676],{"type":21,"tag":3195,"props":48663,"children":48664},{},[48665],{"type":31,"value":48666},"SPSA",{"type":21,"tag":3195,"props":48668,"children":48669},{},[48670],{"type":21,"tag":103,"props":48671,"children":48673},{"className":48672},[],[48674],{"type":31,"value":48675},"2 × shots",{"type":21,"tag":3195,"props":48677,"children":48678},{},[48679],{"type":31,"value":48680},"参数数量较多",{"type":21,"tag":3170,"props":48682,"children":48683},{},[48684,48689,48694],{"type":21,"tag":3195,"props":48685,"children":48686},{},[48687],{"type":31,"value":48688},"ShotAdaptiveOptimizer",{"type":21,"tag":3195,"props":48690,"children":48691},{},[48692],{"type":31,"value":48693},"自适应",{"type":21,"tag":3195,"props":48695,"children":48696},{},[48697],{"type":31,"value":48698},"通用 VQE",{"type":21,"tag":3170,"props":48700,"children":48701},{},[48702,48707,48712],{"type":21,"tag":3195,"props":48703,"children":48704},{},[48705],{"type":31,"value":48706},"分组 Pauli",{"type":21,"tag":3195,"props":48708,"children":48709},{},[48710],{"type":31,"value":48711},"÷5–15×",{"type":21,"tag":3195,"props":48713,"children":48714},{},[48715],{"type":31,"value":48716},"始终优先应用",{"type":21,"tag":22,"props":48718,"children":48719},{},[48720],{"type":31,"value":48721},"请优先应用测量分组——它是单项收益最大的手段，而且无需改动你的优化器或电路。",{"type":21,"tag":22,"props":48723,"children":48724},{},[48725,48730,48731,48736,48737,48742,48743],{"type":21,"tag":16815,"props":48726,"children":48727},{},[48728],{"type":31,"value":48729},"相关内容：",{"type":31,"value":22965},{"type":21,"tag":26,"props":48732,"children":48733},{"href":3623},[48734],{"type":31,"value":48735},"VQE with PennyLane",{"type":31,"value":28968},{"type":21,"tag":26,"props":48738,"children":48739},{"href":1106},[48740],{"type":31,"value":48741},"QPU access guide",{"type":31,"value":28968},{"type":21,"tag":26,"props":48744,"children":48745},{"href":40756},[48746],{"type":31,"value":40759},{"type":21,"tag":1174,"props":48748,"children":48749},{},[48750],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":48752},[48753,48754,48755,48756,48757,48758,48759,48760,48761],{"id":46242,"depth":167,"text":46242},{"id":46386,"depth":167,"text":46389},{"id":46711,"depth":167,"text":46714},{"id":47061,"depth":167,"text":47064},{"id":47306,"depth":167,"text":47309},{"id":47483,"depth":167,"text":47486},{"id":47832,"depth":167,"text":47835},{"id":48016,"depth":167,"text":48019},{"id":48584,"depth":167,"text":48587},"content:zh:blog:reduce-shot-count.md","zh\u002Fblog\u002Freduce-shot-count.md","zh\u002Fblog\u002Freduce-shot-count",{"_path":48766,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":48767,"description":48768,"date":48769,"updatedDate":21818,"author":11,"tags":48770,"readingTime":308,"body":48772,"_type":1193,"_id":50564,"_source":1195,"_file":50565,"_stem":50566,"_extension":1198},"\u002Fzh\u002Fblog\u002Fibm-quantum-free-tier-2026","IBM Quantum 免费套餐：2026 年你能使用的一切","详细解读 IBM Quantum 免费 Open Plan 包含哪些内容、排队时间如何运作，以及如何充分利用你的免费 QPU 使用权。","2026-02-20",[48771,1213,14],"IBM",{"type":18,"children":48773,"toc":50550},[48774,48779,48784,48796,48851,48856,48862,48890,48911,48931,48937,48942,49047,49052,49292,49298,49304,49316,49322,49349,49355,49360,49471,49484,49490,50128,50133,50138,50164,50172,50203,50208,50213,50292,50297,50303,50308,50536,50546],{"type":21,"tag":22,"props":48775,"children":48776},{},[48777],{"type":31,"value":48778},"IBM Quantum 拥有量子计算行业中最易获取的免费套餐。只需一个免费的 IBM ID，你就能访问最多 127 个量子比特的真实量子处理器，无需付费、无需信用卡、无需申请。下面就来说明这在实践中究竟意味着什么。",{"type":21,"tag":41,"props":48780,"children":48782},{"id":48781},"免费套餐包含哪些内容",[48783],{"type":31,"value":48781},{"type":21,"tag":22,"props":48785,"children":48786},{},[48787,48789,48794],{"type":31,"value":48788},"IBM Quantum 的 ",{"type":21,"tag":16815,"props":48790,"children":48791},{},[48792],{"type":31,"value":48793},"Open Plan",{"type":31,"value":48795}," 为你提供：",{"type":21,"tag":1118,"props":48797,"children":48798},{},[48799,48809,48821,48831,48841],{"type":21,"tag":71,"props":48800,"children":48801},{},[48802,48807],{"type":21,"tag":16815,"props":48803,"children":48804},{},[48805],{"type":31,"value":48806},"无限访问",{"type":31,"value":48808},"所有公开可用的量子系统",{"type":21,"tag":71,"props":48810,"children":48811},{},[48812,48814,48819],{"type":31,"value":48813},"每月 ",{"type":21,"tag":16815,"props":48815,"children":48816},{},[48817],{"type":31,"value":48818},"10 分钟的量子时间",{"type":31,"value":48820},"（你的电路在 QPU 上实际运行的时间）",{"type":21,"tag":71,"props":48822,"children":48823},{},[48824,48829],{"type":21,"tag":16815,"props":48825,"children":48826},{},[48827],{"type":31,"value":48828},"访问 IBM 模拟器",{"type":31,"value":48830},"且无时间限制（statevector、QASM、matrix product state）",{"type":21,"tag":71,"props":48832,"children":48833},{},[48834,48839],{"type":21,"tag":16815,"props":48835,"children":48836},{},[48837],{"type":31,"value":48838},"Qiskit Runtime",{"type":31,"value":48840},"：IBM 现代化的电路执行环境",{"type":21,"tag":71,"props":48842,"children":48843},{},[48844,48849],{"type":21,"tag":16815,"props":48845,"children":48846},{},[48847],{"type":31,"value":48848},"IBM Quantum Learning",{"type":31,"value":48850}," 平台，包含教程和课程",{"type":21,"tag":22,"props":48852,"children":48853},{},[48854],{"type":31,"value":48855},"每月 10 分钟的限制听起来很受限，但实际上大多数研究电路的实际 QPU 运行时间仅为毫秒级。对于试验量子算法的个人开发者来说，很少会触及这个上限。",{"type":21,"tag":41,"props":48857,"children":48859},{"id":48858},"_2026年8月更新heron-r2-与额外计算时长",[48860],{"type":31,"value":48861},"2026年8月更新：Heron r2 与额外计算时长",{"type":21,"tag":22,"props":48863,"children":48864},{},[48865,48867,48873,48875,48880,48882,48888],{"type":31,"value":48866},"IBM 于2026年3月将其性能更强的 Heron r2 处理器（",{"type":21,"tag":103,"props":48868,"children":48870},{"className":48869},[],[48871],{"type":31,"value":48872},"ibm_kingston",{"type":31,"value":48874},"）加入 Open Plan，使免费层用户能够获得比最初的 Heron r1 系统明显更好的双量子比特门保真度。如果你有一段时间没有运行任务了，值得检查一下 ",{"type":21,"tag":103,"props":48876,"children":48878},{"className":48877},[],[48879],{"type":31,"value":48872},{"type":31,"value":48881}," 是否出现在你的 ",{"type":21,"tag":103,"props":48883,"children":48885},{"className":48884},[],[48886],{"type":31,"value":48887},"service.backends()",{"type":31,"value":48889}," 列表中。",{"type":21,"tag":22,"props":48891,"children":48892},{},[48893,48895,48900,48902,48909],{"type":31,"value":48894},"IBM 还为活跃用户推出了一次性优惠：在任意12个月窗口期内累计使用过至少20分钟 QPU 时间的用户，可以选择加入一项优惠，在接下来的12个月内额外获得 ",{"type":21,"tag":16815,"props":48896,"children":48897},{},[48898],{"type":31,"value":48899},"180分钟",{"type":31,"value":48901},"的计算时长，是标准月度额度的18倍。该优惠仅限于特定的报名窗口期，并非 Open Plan 每月10分钟基准的永久性调整，因此不要假设它仍然有效。请查看 ",{"type":21,"tag":26,"props":48903,"children":48906},{"href":48904,"rel":48905},"https:\u002F\u002Fquantum.cloud.ibm.com\u002Fdocs\u002Fen\u002Fguides\u002Fplans-overview",[7136],[48907],{"type":31,"value":48908},"Open Plan 页面",{"type":31,"value":48910},"以了解你的账户当前的实际情况。",{"type":21,"tag":22,"props":48912,"children":48913},{},[48914,48916,48922,48924,48929],{"type":31,"value":48915},"可用系统的变化也有另一面，IBM 已于2026年4月初退役了 ",{"type":21,"tag":103,"props":48917,"children":48919},{"className":48918},[],[48920],{"type":31,"value":48921},"ibm_torino",{"type":31,"value":48923},"，这是 Open Plan 运作的正常组成部分：随着更新的硬件上线，系统会被加入，旧系统在使用寿命结束后也会被淘汰。这正是下方 ",{"type":21,"tag":103,"props":48925,"children":48927},{"className":48926},[],[48928],{"type":31,"value":48887},{"type":31,"value":48930}," 代码片段比任何静态表格都更重要的原因。请将本文中的列表视为某一时刻的快照，而非实时状态。",{"type":21,"tag":41,"props":48932,"children":48934},{"id":48933},"可用的免费-qpu",[48935],{"type":31,"value":48936},"可用的免费 QPU",{"type":21,"tag":22,"props":48938,"children":48939},{},[48940],{"type":31,"value":48941},"截至2026年年中，IBM 的 Open Plan 提供以下系统的访问权限：",{"type":21,"tag":3162,"props":48943,"children":48944},{},[48945,48970],{"type":21,"tag":3166,"props":48946,"children":48947},{},[48948],{"type":21,"tag":3170,"props":48949,"children":48950},{},[48951,48956,48960,48965],{"type":21,"tag":3174,"props":48952,"children":48953},{},[48954],{"type":31,"value":48955},"系统",{"type":21,"tag":3174,"props":48957,"children":48958},{},[48959],{"type":31,"value":3067},{"type":21,"tag":3174,"props":48961,"children":48962},{},[48963],{"type":31,"value":48964},"技术",{"type":21,"tag":3174,"props":48966,"children":48967},{},[48968],{"type":31,"value":48969},"典型排队时间",{"type":21,"tag":3188,"props":48971,"children":48972},{},[48973,49002,49025],{"type":21,"tag":3170,"props":48974,"children":48975},{},[48976,48987,48992,48997],{"type":21,"tag":3195,"props":48977,"children":48978},{},[48979,48981,48986],{"type":31,"value":48980},"IBM Heron r2（",{"type":21,"tag":103,"props":48982,"children":48984},{"className":48983},[],[48985],{"type":31,"value":48872},{"type":31,"value":42668},{"type":21,"tag":3195,"props":48988,"children":48989},{},[48990],{"type":31,"value":48991},"156",{"type":21,"tag":3195,"props":48993,"children":48994},{},[48995],{"type":31,"value":48996},"Heron 处理器，更高保真度",{"type":21,"tag":3195,"props":48998,"children":48999},{},[49000],{"type":31,"value":49001},"30–120 分钟",{"type":21,"tag":3170,"props":49003,"children":49004},{},[49005,49010,49015,49020],{"type":21,"tag":3195,"props":49006,"children":49007},{},[49008],{"type":31,"value":49009},"IBM Eagle",{"type":21,"tag":3195,"props":49011,"children":49012},{},[49013],{"type":31,"value":49014},"127",{"type":21,"tag":3195,"props":49016,"children":49017},{},[49018],{"type":31,"value":49019},"超导",{"type":21,"tag":3195,"props":49021,"children":49022},{},[49023],{"type":31,"value":49024},"10–60 分钟",{"type":21,"tag":3170,"props":49026,"children":49027},{},[49028,49033,49038,49043],{"type":21,"tag":3195,"props":49029,"children":49030},{},[49031],{"type":31,"value":49032},"IBM Heron r1",{"type":21,"tag":3195,"props":49034,"children":49035},{},[49036],{"type":31,"value":49037},"133",{"type":21,"tag":3195,"props":49039,"children":49040},{},[49041],{"type":31,"value":49042},"Heron 处理器",{"type":21,"tag":3195,"props":49044,"children":49045},{},[49046],{"type":31,"value":49001},{"type":21,"tag":22,"props":49048,"children":49049},{},[49050],{"type":31,"value":49051},"IBM 会定期淘汰旧系统并加入新系统。请将此表视为快照，而非保证。使用 Qiskit Runtime 服务查看当前列表：",{"type":21,"tag":128,"props":49053,"children":49055},{"className":130,"code":49054,"language":132,"meta":7,"style":7},"from qiskit_ibm_runtime import QiskitRuntimeService\n\nservice = QiskitRuntimeService(channel=\"ibm_quantum\")\nbackends = service.backends(\n    operational=True,\n    simulator=False,\n    min_num_qubits=1\n)\nfor b in backends:\n    print(f\"{b.name}: {b.num_qubits} qubits, status: {b.status().status_msg}\")\n",[49056],{"type":21,"tag":103,"props":49057,"children":49058},{"__ignoreMap":7},[49059,49078,49085,49116,49133,49153,49173,49190,49197,49217],{"type":21,"tag":138,"props":49060,"children":49061},{"class":140,"line":141},[49062,49066,49070,49074],{"type":21,"tag":138,"props":49063,"children":49064},{"style":145},[49065],{"type":31,"value":148},{"type":21,"tag":138,"props":49067,"children":49068},{"style":151},[49069],{"type":31,"value":9718},{"type":21,"tag":138,"props":49071,"children":49072},{"style":145},[49073],{"type":31,"value":159},{"type":21,"tag":138,"props":49075,"children":49076},{"style":151},[49077],{"type":31,"value":9727},{"type":21,"tag":138,"props":49079,"children":49080},{"class":140,"line":167},[49081],{"type":21,"tag":138,"props":49082,"children":49083},{"emptyLinePlaceholder":193},[49084],{"type":31,"value":196},{"type":21,"tag":138,"props":49086,"children":49087},{"class":140,"line":189},[49088,49092,49096,49100,49104,49108,49112],{"type":21,"tag":138,"props":49089,"children":49090},{"style":151},[49091],{"type":31,"value":4650},{"type":21,"tag":138,"props":49093,"children":49094},{"style":145},[49095],{"type":31,"value":210},{"type":21,"tag":138,"props":49097,"children":49098},{"style":151},[49099],{"type":31,"value":9750},{"type":21,"tag":138,"props":49101,"children":49102},{"style":929},[49103],{"type":31,"value":9755},{"type":21,"tag":138,"props":49105,"children":49106},{"style":145},[49107],{"type":31,"value":210},{"type":21,"tag":138,"props":49109,"children":49110},{"style":261},[49111],{"type":31,"value":9764},{"type":21,"tag":138,"props":49113,"children":49114},{"style":151},[49115],{"type":31,"value":269},{"type":21,"tag":138,"props":49117,"children":49118},{"class":140,"line":199},[49119,49124,49128],{"type":21,"tag":138,"props":49120,"children":49121},{"style":151},[49122],{"type":31,"value":49123},"backends ",{"type":21,"tag":138,"props":49125,"children":49126},{"style":145},[49127],{"type":31,"value":210},{"type":21,"tag":138,"props":49129,"children":49130},{"style":151},[49131],{"type":31,"value":49132}," service.backends(\n",{"type":21,"tag":138,"props":49134,"children":49135},{"class":140,"line":225},[49136,49141,49145,49149],{"type":21,"tag":138,"props":49137,"children":49138},{"style":929},[49139],{"type":31,"value":49140},"    operational",{"type":21,"tag":138,"props":49142,"children":49143},{"style":145},[49144],{"type":31,"value":210},{"type":21,"tag":138,"props":49146,"children":49147},{"style":213},[49148],{"type":31,"value":8677},{"type":21,"tag":138,"props":49150,"children":49151},{"style":151},[49152],{"type":31,"value":4824},{"type":21,"tag":138,"props":49154,"children":49155},{"class":140,"line":233},[49156,49161,49165,49169],{"type":21,"tag":138,"props":49157,"children":49158},{"style":929},[49159],{"type":31,"value":49160},"    simulator",{"type":21,"tag":138,"props":49162,"children":49163},{"style":145},[49164],{"type":31,"value":210},{"type":21,"tag":138,"props":49166,"children":49167},{"style":213},[49168],{"type":31,"value":9833},{"type":21,"tag":138,"props":49170,"children":49171},{"style":151},[49172],{"type":31,"value":4824},{"type":21,"tag":138,"props":49174,"children":49175},{"class":140,"line":272},[49176,49181,49185],{"type":21,"tag":138,"props":49177,"children":49178},{"style":929},[49179],{"type":31,"value":49180},"    min_num_qubits",{"type":21,"tag":138,"props":49182,"children":49183},{"style":145},[49184],{"type":31,"value":210},{"type":21,"tag":138,"props":49186,"children":49187},{"style":213},[49188],{"type":31,"value":49189},"1\n",{"type":21,"tag":138,"props":49191,"children":49192},{"class":140,"line":308},[49193],{"type":21,"tag":138,"props":49194,"children":49195},{"style":151},[49196],{"type":31,"value":269},{"type":21,"tag":138,"props":49198,"children":49199},{"class":140,"line":16},[49200,49204,49208,49212],{"type":21,"tag":138,"props":49201,"children":49202},{"style":145},[49203],{"type":31,"value":1492},{"type":21,"tag":138,"props":49205,"children":49206},{"style":151},[49207],{"type":31,"value":26797},{"type":21,"tag":138,"props":49209,"children":49210},{"style":145},[49211],{"type":31,"value":1502},{"type":21,"tag":138,"props":49213,"children":49214},{"style":151},[49215],{"type":31,"value":49216}," backends:\n",{"type":21,"tag":138,"props":49218,"children":49219},{"class":140,"line":360},[49220,49224,49228,49232,49236,49240,49245,49249,49253,49257,49262,49266,49271,49275,49280,49284,49288],{"type":21,"tag":138,"props":49221,"children":49222},{"style":213},[49223],{"type":31,"value":6225},{"type":21,"tag":138,"props":49225,"children":49226},{"style":151},[49227],{"type":31,"value":959},{"type":21,"tag":138,"props":49229,"children":49230},{"style":145},[49231],{"type":31,"value":7537},{"type":21,"tag":138,"props":49233,"children":49234},{"style":261},[49235],{"type":31,"value":15383},{"type":21,"tag":138,"props":49237,"children":49238},{"style":213},[49239],{"type":31,"value":7547},{"type":21,"tag":138,"props":49241,"children":49242},{"style":151},[49243],{"type":31,"value":49244},"b.name",{"type":21,"tag":138,"props":49246,"children":49247},{"style":213},[49248],{"type":31,"value":7556},{"type":21,"tag":138,"props":49250,"children":49251},{"style":261},[49252],{"type":31,"value":24135},{"type":21,"tag":138,"props":49254,"children":49255},{"style":213},[49256],{"type":31,"value":7547},{"type":21,"tag":138,"props":49258,"children":49259},{"style":151},[49260],{"type":31,"value":49261},"b.num_qubits",{"type":21,"tag":138,"props":49263,"children":49264},{"style":213},[49265],{"type":31,"value":7556},{"type":21,"tag":138,"props":49267,"children":49268},{"style":261},[49269],{"type":31,"value":49270}," qubits, status: ",{"type":21,"tag":138,"props":49272,"children":49273},{"style":213},[49274],{"type":31,"value":7547},{"type":21,"tag":138,"props":49276,"children":49277},{"style":151},[49278],{"type":31,"value":49279},"b.status().status_msg",{"type":21,"tag":138,"props":49281,"children":49282},{"style":213},[49283],{"type":31,"value":7556},{"type":21,"tag":138,"props":49285,"children":49286},{"style":261},[49287],{"type":31,"value":15383},{"type":21,"tag":138,"props":49289,"children":49290},{"style":151},[49291],{"type":31,"value":269},{"type":21,"tag":41,"props":49293,"children":49295},{"id":49294},"_10-分钟完成设置",[49296],{"type":31,"value":49297},"10 分钟完成设置",{"type":21,"tag":421,"props":49299,"children":49301},{"id":49300},"第-1-步创建你的免费账户",[49302],{"type":31,"value":49303},"第 1 步：创建你的免费账户",{"type":21,"tag":22,"props":49305,"children":49306},{},[49307,49309,49314],{"type":31,"value":49308},"前往 ",{"type":21,"tag":26,"props":49310,"children":49312},{"href":42393,"rel":49311},[7136],[49313],{"type":31,"value":42397},{"type":31,"value":49315}," 创建一个免费的 IBM ID。无需提供任何支付信息。",{"type":21,"tag":421,"props":49317,"children":49319},{"id":49318},"第-2-步安装-sdk",[49320],{"type":31,"value":49321},"第 2 步：安装 SDK",{"type":21,"tag":128,"props":49323,"children":49325},{"className":4512,"code":49324,"language":4511,"meta":7,"style":7},"pip install qiskit qiskit-ibm-runtime\n",[49326],{"type":21,"tag":103,"props":49327,"children":49328},{"__ignoreMap":7},[49329],{"type":21,"tag":138,"props":49330,"children":49331},{"class":140,"line":141},[49332,49336,49340,49344],{"type":21,"tag":138,"props":49333,"children":49334},{"style":4522},[49335],{"type":31,"value":4525},{"type":21,"tag":138,"props":49337,"children":49338},{"style":261},[49339],{"type":31,"value":4530},{"type":21,"tag":138,"props":49341,"children":49342},{"style":261},[49343],{"type":31,"value":33607},{"type":21,"tag":138,"props":49345,"children":49346},{"style":261},[49347],{"type":31,"value":49348}," qiskit-ibm-runtime\n",{"type":21,"tag":421,"props":49350,"children":49352},{"id":49351},"第-3-步保存你的凭据",[49353],{"type":31,"value":49354},"第 3 步：保存你的凭据",{"type":21,"tag":22,"props":49356,"children":49357},{},[49358],{"type":31,"value":49359},"登录 IBM Quantum 控制台后，从 Account 页面复制你的 API token。",{"type":21,"tag":128,"props":49361,"children":49363},{"className":130,"code":49362,"language":132,"meta":7,"style":7},"from qiskit_ibm_runtime import QiskitRuntimeService\n\n# Run this once to save your token locally\nQiskitRuntimeService.save_account(\n    channel=\"ibm_quantum\",\n    token=\"YOUR_API_TOKEN_HERE\",\n    overwrite=True\n)\n",[49364],{"type":21,"tag":103,"props":49365,"children":49366},{"__ignoreMap":7},[49367,49386,49393,49401,49408,49427,49447,49464],{"type":21,"tag":138,"props":49368,"children":49369},{"class":140,"line":141},[49370,49374,49378,49382],{"type":21,"tag":138,"props":49371,"children":49372},{"style":145},[49373],{"type":31,"value":148},{"type":21,"tag":138,"props":49375,"children":49376},{"style":151},[49377],{"type":31,"value":9718},{"type":21,"tag":138,"props":49379,"children":49380},{"style":145},[49381],{"type":31,"value":159},{"type":21,"tag":138,"props":49383,"children":49384},{"style":151},[49385],{"type":31,"value":9727},{"type":21,"tag":138,"props":49387,"children":49388},{"class":140,"line":167},[49389],{"type":21,"tag":138,"props":49390,"children":49391},{"emptyLinePlaceholder":193},[49392],{"type":31,"value":196},{"type":21,"tag":138,"props":49394,"children":49395},{"class":140,"line":189},[49396],{"type":21,"tag":138,"props":49397,"children":49398},{"style":219},[49399],{"type":31,"value":49400},"# Run this once to save your token locally\n",{"type":21,"tag":138,"props":49402,"children":49403},{"class":140,"line":199},[49404],{"type":21,"tag":138,"props":49405,"children":49406},{"style":151},[49407],{"type":31,"value":42450},{"type":21,"tag":138,"props":49409,"children":49410},{"class":140,"line":225},[49411,49415,49419,49423],{"type":21,"tag":138,"props":49412,"children":49413},{"style":929},[49414],{"type":31,"value":42458},{"type":21,"tag":138,"props":49416,"children":49417},{"style":145},[49418],{"type":31,"value":210},{"type":21,"tag":138,"props":49420,"children":49421},{"style":261},[49422],{"type":31,"value":9764},{"type":21,"tag":138,"props":49424,"children":49425},{"style":151},[49426],{"type":31,"value":4824},{"type":21,"tag":138,"props":49428,"children":49429},{"class":140,"line":233},[49430,49434,49438,49443],{"type":21,"tag":138,"props":49431,"children":49432},{"style":929},[49433],{"type":31,"value":42478},{"type":21,"tag":138,"props":49435,"children":49436},{"style":145},[49437],{"type":31,"value":210},{"type":21,"tag":138,"props":49439,"children":49440},{"style":261},[49441],{"type":31,"value":49442},"\"YOUR_API_TOKEN_HERE\"",{"type":21,"tag":138,"props":49444,"children":49445},{"style":151},[49446],{"type":31,"value":4824},{"type":21,"tag":138,"props":49448,"children":49449},{"class":140,"line":272},[49450,49455,49459],{"type":21,"tag":138,"props":49451,"children":49452},{"style":929},[49453],{"type":31,"value":49454},"    overwrite",{"type":21,"tag":138,"props":49456,"children":49457},{"style":145},[49458],{"type":31,"value":210},{"type":21,"tag":138,"props":49460,"children":49461},{"style":213},[49462],{"type":31,"value":49463},"True\n",{"type":21,"tag":138,"props":49465,"children":49466},{"class":140,"line":308},[49467],{"type":21,"tag":138,"props":49468,"children":49469},{"style":151},[49470],{"type":31,"value":269},{"type":21,"tag":22,"props":49472,"children":49473},{},[49474,49476,49482],{"type":31,"value":49475},"你的凭据会保存到 ",{"type":21,"tag":103,"props":49477,"children":49479},{"className":49478},[],[49480],{"type":31,"value":49481},"~\u002F.qiskit\u002Fqiskit-ibm.json",{"type":31,"value":49483},"，之后无需再次执行此操作。",{"type":21,"tag":421,"props":49485,"children":49487},{"id":49486},"第-4-步提交你的第一个任务",[49488],{"type":31,"value":49489},"第 4 步：提交你的第一个任务",{"type":21,"tag":128,"props":49491,"children":49493},{"className":130,"code":49492,"language":132,"meta":7,"style":7},"from qiskit import QuantumCircuit\nfrom qiskit.transpiler.preset_passmanagers import generate_preset_pass_manager\nfrom qiskit_ibm_runtime import QiskitRuntimeService, SamplerV2 as Sampler\n\n# Build a Bell state\nqc = QuantumCircuit(2, 2)\nqc.h(0)\nqc.cx(0, 1)\nqc.measure([0, 1], [0, 1])\n\n# Connect and pick the least-busy free QPU\nservice = QiskitRuntimeService(channel=\"ibm_quantum\")\nbackend = service.least_busy(\n    operational=True,\n    simulator=False,\n    min_num_qubits=2\n)\nprint(f\"Submitting to: {backend.name}\")\n\n# Transpile for the target device\npm = generate_preset_pass_manager(backend=backend, optimization_level=1)\nisa_qc = pm.run(qc)\n\n# Submit\nsampler = Sampler(mode=backend)\njob = sampler.run([isa_qc], shots=1024)\n\nprint(f\"Job ID: {job.job_id()}\")\nprint(f\"Status: {job.status()}\")\nresult = job.result()\nprint(result[0].data.c.get_counts())\n",[49494],{"type":21,"tag":103,"props":49495,"children":49496},{"__ignoreMap":7},[49497,49516,49537,49565,49572,49580,49611,49626,49649,49688,49695,49703,49734,49750,49769,49788,49804,49811,49851,49858,49866,49910,49927,49934,49942,49972,50004,50011,50052,50092,50107],{"type":21,"tag":138,"props":49498,"children":49499},{"class":140,"line":141},[49500,49504,49508,49512],{"type":21,"tag":138,"props":49501,"children":49502},{"style":145},[49503],{"type":31,"value":148},{"type":21,"tag":138,"props":49505,"children":49506},{"style":151},[49507],{"type":31,"value":154},{"type":21,"tag":138,"props":49509,"children":49510},{"style":145},[49511],{"type":31,"value":159},{"type":21,"tag":138,"props":49513,"children":49514},{"style":151},[49515],{"type":31,"value":6282},{"type":21,"tag":138,"props":49517,"children":49518},{"class":140,"line":167},[49519,49523,49528,49532],{"type":21,"tag":138,"props":49520,"children":49521},{"style":145},[49522],{"type":31,"value":148},{"type":21,"tag":138,"props":49524,"children":49525},{"style":151},[49526],{"type":31,"value":49527}," qiskit.transpiler.preset_passmanagers ",{"type":21,"tag":138,"props":49529,"children":49530},{"style":145},[49531],{"type":31,"value":159},{"type":21,"tag":138,"props":49533,"children":49534},{"style":151},[49535],{"type":31,"value":49536}," generate_preset_pass_manager\n",{"type":21,"tag":138,"props":49538,"children":49539},{"class":140,"line":189},[49540,49544,49548,49552,49557,49561],{"type":21,"tag":138,"props":49541,"children":49542},{"style":145},[49543],{"type":31,"value":148},{"type":21,"tag":138,"props":49545,"children":49546},{"style":151},[49547],{"type":31,"value":9718},{"type":21,"tag":138,"props":49549,"children":49550},{"style":145},[49551],{"type":31,"value":159},{"type":21,"tag":138,"props":49553,"children":49554},{"style":151},[49555],{"type":31,"value":49556}," QiskitRuntimeService, SamplerV2 ",{"type":21,"tag":138,"props":49558,"children":49559},{"style":145},[49560],{"type":31,"value":5356},{"type":21,"tag":138,"props":49562,"children":49563},{"style":151},[49564],{"type":31,"value":12981},{"type":21,"tag":138,"props":49566,"children":49567},{"class":140,"line":199},[49568],{"type":21,"tag":138,"props":49569,"children":49570},{"emptyLinePlaceholder":193},[49571],{"type":31,"value":196},{"type":21,"tag":138,"props":49573,"children":49574},{"class":140,"line":225},[49575],{"type":21,"tag":138,"props":49576,"children":49577},{"style":219},[49578],{"type":31,"value":49579},"# Build a Bell state\n",{"type":21,"tag":138,"props":49581,"children":49582},{"class":140,"line":233},[49583,49587,49591,49595,49599,49603,49607],{"type":21,"tag":138,"props":49584,"children":49585},{"style":151},[49586],{"type":31,"value":348},{"type":21,"tag":138,"props":49588,"children":49589},{"style":145},[49590],{"type":31,"value":210},{"type":21,"tag":138,"props":49592,"children":49593},{"style":151},[49594],{"type":31,"value":6305},{"type":21,"tag":138,"props":49596,"children":49597},{"style":213},[49598],{"type":31,"value":292},{"type":21,"tag":138,"props":49600,"children":49601},{"style":151},[49602],{"type":31,"value":258},{"type":21,"tag":138,"props":49604,"children":49605},{"style":213},[49606],{"type":31,"value":292},{"type":21,"tag":138,"props":49608,"children":49609},{"style":151},[49610],{"type":31,"value":269},{"type":21,"tag":138,"props":49612,"children":49613},{"class":140,"line":272},[49614,49618,49622],{"type":21,"tag":138,"props":49615,"children":49616},{"style":151},[49617],{"type":31,"value":441},{"type":21,"tag":138,"props":49619,"children":49620},{"style":213},[49621],{"type":31,"value":406},{"type":21,"tag":138,"props":49623,"children":49624},{"style":151},[49625],{"type":31,"value":269},{"type":21,"tag":138,"props":49627,"children":49628},{"class":140,"line":308},[49629,49633,49637,49641,49645],{"type":21,"tag":138,"props":49630,"children":49631},{"style":151},[49632],{"type":31,"value":457},{"type":21,"tag":138,"props":49634,"children":49635},{"style":213},[49636],{"type":31,"value":406},{"type":21,"tag":138,"props":49638,"children":49639},{"style":151},[49640],{"type":31,"value":258},{"type":21,"tag":138,"props":49642,"children":49643},{"style":213},[49644],{"type":31,"value":327},{"type":21,"tag":138,"props":49646,"children":49647},{"style":151},[49648],{"type":31,"value":269},{"type":21,"tag":138,"props":49650,"children":49651},{"class":140,"line":16},[49652,49656,49660,49664,49668,49672,49676,49680,49684],{"type":21,"tag":138,"props":49653,"children":49654},{"style":151},[49655],{"type":31,"value":10208},{"type":21,"tag":138,"props":49657,"children":49658},{"style":213},[49659],{"type":31,"value":406},{"type":21,"tag":138,"props":49661,"children":49662},{"style":151},[49663],{"type":31,"value":258},{"type":21,"tag":138,"props":49665,"children":49666},{"style":213},[49667],{"type":31,"value":327},{"type":21,"tag":138,"props":49669,"children":49670},{"style":151},[49671],{"type":31,"value":6417},{"type":21,"tag":138,"props":49673,"children":49674},{"style":213},[49675],{"type":31,"value":406},{"type":21,"tag":138,"props":49677,"children":49678},{"style":151},[49679],{"type":31,"value":258},{"type":21,"tag":138,"props":49681,"children":49682},{"style":213},[49683],{"type":31,"value":327},{"type":21,"tag":138,"props":49685,"children":49686},{"style":151},[49687],{"type":31,"value":598},{"type":21,"tag":138,"props":49689,"children":49690},{"class":140,"line":360},[49691],{"type":21,"tag":138,"props":49692,"children":49693},{"emptyLinePlaceholder":193},[49694],{"type":31,"value":196},{"type":21,"tag":138,"props":49696,"children":49697},{"class":140,"line":368},[49698],{"type":21,"tag":138,"props":49699,"children":49700},{"style":219},[49701],{"type":31,"value":49702},"# Connect and pick the least-busy free QPU\n",{"type":21,"tag":138,"props":49704,"children":49705},{"class":140,"line":377},[49706,49710,49714,49718,49722,49726,49730],{"type":21,"tag":138,"props":49707,"children":49708},{"style":151},[49709],{"type":31,"value":4650},{"type":21,"tag":138,"props":49711,"children":49712},{"style":145},[49713],{"type":31,"value":210},{"type":21,"tag":138,"props":49715,"children":49716},{"style":151},[49717],{"type":31,"value":9750},{"type":21,"tag":138,"props":49719,"children":49720},{"style":929},[49721],{"type":31,"value":9755},{"type":21,"tag":138,"props":49723,"children":49724},{"style":145},[49725],{"type":31,"value":210},{"type":21,"tag":138,"props":49727,"children":49728},{"style":261},[49729],{"type":31,"value":9764},{"type":21,"tag":138,"props":49731,"children":49732},{"style":151},[49733],{"type":31,"value":269},{"type":21,"tag":138,"props":49735,"children":49736},{"class":140,"line":386},[49737,49741,49745],{"type":21,"tag":138,"props":49738,"children":49739},{"style":151},[49740],{"type":31,"value":6456},{"type":21,"tag":138,"props":49742,"children":49743},{"style":145},[49744],{"type":31,"value":210},{"type":21,"tag":138,"props":49746,"children":49747},{"style":151},[49748],{"type":31,"value":49749}," service.least_busy(\n",{"type":21,"tag":138,"props":49751,"children":49752},{"class":140,"line":395},[49753,49757,49761,49765],{"type":21,"tag":138,"props":49754,"children":49755},{"style":929},[49756],{"type":31,"value":49140},{"type":21,"tag":138,"props":49758,"children":49759},{"style":145},[49760],{"type":31,"value":210},{"type":21,"tag":138,"props":49762,"children":49763},{"style":213},[49764],{"type":31,"value":8677},{"type":21,"tag":138,"props":49766,"children":49767},{"style":151},[49768],{"type":31,"value":4824},{"type":21,"tag":138,"props":49770,"children":49771},{"class":140,"line":413},[49772,49776,49780,49784],{"type":21,"tag":138,"props":49773,"children":49774},{"style":929},[49775],{"type":31,"value":49160},{"type":21,"tag":138,"props":49777,"children":49778},{"style":145},[49779],{"type":31,"value":210},{"type":21,"tag":138,"props":49781,"children":49782},{"style":213},[49783],{"type":31,"value":9833},{"type":21,"tag":138,"props":49785,"children":49786},{"style":151},[49787],{"type":31,"value":4824},{"type":21,"tag":138,"props":49789,"children":49790},{"class":140,"line":12602},[49791,49795,49799],{"type":21,"tag":138,"props":49792,"children":49793},{"style":929},[49794],{"type":31,"value":49180},{"type":21,"tag":138,"props":49796,"children":49797},{"style":145},[49798],{"type":31,"value":210},{"type":21,"tag":138,"props":49800,"children":49801},{"style":213},[49802],{"type":31,"value":49803},"2\n",{"type":21,"tag":138,"props":49805,"children":49806},{"class":140,"line":12619},[49807],{"type":21,"tag":138,"props":49808,"children":49809},{"style":151},[49810],{"type":31,"value":269},{"type":21,"tag":138,"props":49812,"children":49813},{"class":140,"line":12635},[49814,49818,49822,49826,49831,49835,49839,49843,49847],{"type":21,"tag":138,"props":49815,"children":49816},{"style":213},[49817],{"type":31,"value":954},{"type":21,"tag":138,"props":49819,"children":49820},{"style":151},[49821],{"type":31,"value":959},{"type":21,"tag":138,"props":49823,"children":49824},{"style":145},[49825],{"type":31,"value":7537},{"type":21,"tag":138,"props":49827,"children":49828},{"style":261},[49829],{"type":31,"value":49830},"\"Submitting to: ",{"type":21,"tag":138,"props":49832,"children":49833},{"style":213},[49834],{"type":31,"value":7547},{"type":21,"tag":138,"props":49836,"children":49837},{"style":151},[49838],{"type":31,"value":25303},{"type":21,"tag":138,"props":49840,"children":49841},{"style":213},[49842],{"type":31,"value":7556},{"type":21,"tag":138,"props":49844,"children":49845},{"style":261},[49846],{"type":31,"value":15383},{"type":21,"tag":138,"props":49848,"children":49849},{"style":151},[49850],{"type":31,"value":269},{"type":21,"tag":138,"props":49852,"children":49853},{"class":140,"line":12643},[49854],{"type":21,"tag":138,"props":49855,"children":49856},{"emptyLinePlaceholder":193},[49857],{"type":31,"value":196},{"type":21,"tag":138,"props":49859,"children":49860},{"class":140,"line":17760},[49861],{"type":21,"tag":138,"props":49862,"children":49863},{"style":219},[49864],{"type":31,"value":49865},"# Transpile for the target device\n",{"type":21,"tag":138,"props":49867,"children":49868},{"class":140,"line":17778},[49869,49873,49877,49882,49886,49890,49894,49898,49902,49906],{"type":21,"tag":138,"props":49870,"children":49871},{"style":151},[49872],{"type":31,"value":27716},{"type":21,"tag":138,"props":49874,"children":49875},{"style":145},[49876],{"type":31,"value":210},{"type":21,"tag":138,"props":49878,"children":49879},{"style":151},[49880],{"type":31,"value":49881}," generate_preset_pass_manager(",{"type":21,"tag":138,"props":49883,"children":49884},{"style":929},[49885],{"type":31,"value":11000},{"type":21,"tag":138,"props":49887,"children":49888},{"style":145},[49889],{"type":31,"value":210},{"type":21,"tag":138,"props":49891,"children":49892},{"style":151},[49893],{"type":31,"value":11266},{"type":21,"tag":138,"props":49895,"children":49896},{"style":929},[49897],{"type":31,"value":28143},{"type":21,"tag":138,"props":49899,"children":49900},{"style":145},[49901],{"type":31,"value":210},{"type":21,"tag":138,"props":49903,"children":49904},{"style":213},[49905],{"type":31,"value":327},{"type":21,"tag":138,"props":49907,"children":49908},{"style":151},[49909],{"type":31,"value":269},{"type":21,"tag":138,"props":49911,"children":49912},{"class":140,"line":17803},[49913,49918,49922],{"type":21,"tag":138,"props":49914,"children":49915},{"style":151},[49916],{"type":31,"value":49917},"isa_qc ",{"type":21,"tag":138,"props":49919,"children":49920},{"style":145},[49921],{"type":31,"value":210},{"type":21,"tag":138,"props":49923,"children":49924},{"style":151},[49925],{"type":31,"value":49926}," pm.run(qc)\n",{"type":21,"tag":138,"props":49928,"children":49929},{"class":140,"line":17830},[49930],{"type":21,"tag":138,"props":49931,"children":49932},{"emptyLinePlaceholder":193},[49933],{"type":31,"value":196},{"type":21,"tag":138,"props":49935,"children":49936},{"class":140,"line":17856},[49937],{"type":21,"tag":138,"props":49938,"children":49939},{"style":219},[49940],{"type":31,"value":49941},"# Submit\n",{"type":21,"tag":138,"props":49943,"children":49944},{"class":140,"line":17865},[49945,49949,49953,49958,49963,49967],{"type":21,"tag":138,"props":49946,"children":49947},{"style":151},[49948],{"type":31,"value":1696},{"type":21,"tag":138,"props":49950,"children":49951},{"style":145},[49952],{"type":31,"value":210},{"type":21,"tag":138,"props":49954,"children":49955},{"style":151},[49956],{"type":31,"value":49957}," Sampler(",{"type":21,"tag":138,"props":49959,"children":49960},{"style":929},[49961],{"type":31,"value":49962},"mode",{"type":21,"tag":138,"props":49964,"children":49965},{"style":145},[49966],{"type":31,"value":210},{"type":21,"tag":138,"props":49968,"children":49969},{"style":151},[49970],{"type":31,"value":49971},"backend)\n",{"type":21,"tag":138,"props":49973,"children":49974},{"class":140,"line":17877},[49975,49979,49983,49988,49992,49996,50000],{"type":21,"tag":138,"props":49976,"children":49977},{"style":151},[49978],{"type":31,"value":4994},{"type":21,"tag":138,"props":49980,"children":49981},{"style":145},[49982],{"type":31,"value":210},{"type":21,"tag":138,"props":49984,"children":49985},{"style":151},[49986],{"type":31,"value":49987}," sampler.run([isa_qc], ",{"type":21,"tag":138,"props":49989,"children":49990},{"style":929},[49991],{"type":31,"value":932},{"type":21,"tag":138,"props":49993,"children":49994},{"style":145},[49995],{"type":31,"value":210},{"type":21,"tag":138,"props":49997,"children":49998},{"style":213},[49999],{"type":31,"value":24200},{"type":21,"tag":138,"props":50001,"children":50002},{"style":151},[50003],{"type":31,"value":269},{"type":21,"tag":138,"props":50005,"children":50006},{"class":140,"line":17885},[50007],{"type":21,"tag":138,"props":50008,"children":50009},{"emptyLinePlaceholder":193},[50010],{"type":31,"value":196},{"type":21,"tag":138,"props":50012,"children":50013},{"class":140,"line":17938},[50014,50018,50022,50026,50031,50035,50040,50044,50048],{"type":21,"tag":138,"props":50015,"children":50016},{"style":213},[50017],{"type":31,"value":954},{"type":21,"tag":138,"props":50019,"children":50020},{"style":151},[50021],{"type":31,"value":959},{"type":21,"tag":138,"props":50023,"children":50024},{"style":145},[50025],{"type":31,"value":7537},{"type":21,"tag":138,"props":50027,"children":50028},{"style":261},[50029],{"type":31,"value":50030},"\"Job ID: ",{"type":21,"tag":138,"props":50032,"children":50033},{"style":213},[50034],{"type":31,"value":7547},{"type":21,"tag":138,"props":50036,"children":50037},{"style":151},[50038],{"type":31,"value":50039},"job.job_id()",{"type":21,"tag":138,"props":50041,"children":50042},{"style":213},[50043],{"type":31,"value":7556},{"type":21,"tag":138,"props":50045,"children":50046},{"style":261},[50047],{"type":31,"value":15383},{"type":21,"tag":138,"props":50049,"children":50050},{"style":151},[50051],{"type":31,"value":269},{"type":21,"tag":138,"props":50053,"children":50054},{"class":140,"line":26899},[50055,50059,50063,50067,50072,50076,50080,50084,50088],{"type":21,"tag":138,"props":50056,"children":50057},{"style":213},[50058],{"type":31,"value":954},{"type":21,"tag":138,"props":50060,"children":50061},{"style":151},[50062],{"type":31,"value":959},{"type":21,"tag":138,"props":50064,"children":50065},{"style":145},[50066],{"type":31,"value":7537},{"type":21,"tag":138,"props":50068,"children":50069},{"style":261},[50070],{"type":31,"value":50071},"\"Status: ",{"type":21,"tag":138,"props":50073,"children":50074},{"style":213},[50075],{"type":31,"value":7547},{"type":21,"tag":138,"props":50077,"children":50078},{"style":151},[50079],{"type":31,"value":10480},{"type":21,"tag":138,"props":50081,"children":50082},{"style":213},[50083],{"type":31,"value":7556},{"type":21,"tag":138,"props":50085,"children":50086},{"style":261},[50087],{"type":31,"value":15383},{"type":21,"tag":138,"props":50089,"children":50090},{"style":151},[50091],{"type":31,"value":269},{"type":21,"tag":138,"props":50093,"children":50094},{"class":140,"line":26944},[50095,50099,50103],{"type":21,"tag":138,"props":50096,"children":50097},{"style":151},[50098],{"type":31,"value":4881},{"type":21,"tag":138,"props":50100,"children":50101},{"style":145},[50102],{"type":31,"value":210},{"type":21,"tag":138,"props":50104,"children":50105},{"style":151},[50106],{"type":31,"value":6528},{"type":21,"tag":138,"props":50108,"children":50109},{"class":140,"line":26957},[50110,50114,50119,50123],{"type":21,"tag":138,"props":50111,"children":50112},{"style":213},[50113],{"type":31,"value":954},{"type":21,"tag":138,"props":50115,"children":50116},{"style":151},[50117],{"type":31,"value":50118},"(result[",{"type":21,"tag":138,"props":50120,"children":50121},{"style":213},[50122],{"type":31,"value":406},{"type":21,"tag":138,"props":50124,"children":50125},{"style":151},[50126],{"type":31,"value":50127},"].data.c.get_counts())\n",{"type":21,"tag":41,"props":50129,"children":50131},{"id":50130},"理解排队时间",[50132],{"type":31,"value":50130},{"type":21,"tag":22,"props":50134,"children":50135},{},[50136],{"type":31,"value":50137},"排队时间是免费套餐最常见的困扰。以下是背后的原理：",{"type":21,"tag":1118,"props":50139,"children":50140},{},[50141,50146,50159],{"type":21,"tag":71,"props":50142,"children":50143},{},[50144],{"type":31,"value":50145},"你与全球所有其他 Open Plan 用户共享 QPU",{"type":21,"tag":71,"props":50147,"children":50148},{},[50149,50151,50157],{"type":31,"value":50150},"任务按系统分别排队，",{"type":21,"tag":103,"props":50152,"children":50154},{"className":50153},[],[50155],{"type":31,"value":50156},"least_busy()",{"type":31,"value":50158}," 有助于找到等待最短的系统",{"type":21,"tag":71,"props":50160,"children":50161},{},[50162],{"type":31,"value":50163},"典型等待时间：视系统负载而定，从 5 分钟到 2 小时不等",{"type":21,"tag":22,"props":50165,"children":50166},{},[50167],{"type":21,"tag":16815,"props":50168,"children":50169},{},[50170],{"type":31,"value":50171},"减少排队时间的技巧：",{"type":21,"tag":1118,"props":50173,"children":50174},{},[50175,50180,50193,50198],{"type":21,"tag":71,"props":50176,"children":50177},{},[50178],{"type":31,"value":50179},"在非高峰时段运行（欧洲的早晨 = 美洲的夜晚）",{"type":21,"tag":71,"props":50181,"children":50182},{},[50183,50185,50191],{"type":31,"value":50184},"使用 ",{"type":21,"tag":103,"props":50186,"children":50188},{"className":50187},[],[50189],{"type":31,"value":50190},"service.least_busy()",{"type":31,"value":50192}," 而非指定某个特定系统",{"type":21,"tag":71,"props":50194,"children":50195},{},[50196],{"type":31,"value":50197},"开发阶段在本地使用 Aer 模拟器，仅在最终验证时提交到真实硬件",{"type":21,"tag":71,"props":50199,"children":50200},{},[50201],{"type":31,"value":50202},"使用 SamplerV2 的列表输入将多个电路批量打包到单个任务中",{"type":21,"tag":41,"props":50204,"children":50206},{"id":50205},"改用免费的云端模拟器",[50207],{"type":31,"value":50205},{"type":21,"tag":22,"props":50209,"children":50210},{},[50211],{"type":31,"value":50212},"对于大多数开发工作，IBM 的云端托管模拟器比排队等待真实硬件更快：",{"type":21,"tag":128,"props":50214,"children":50216},{"className":130,"code":50215,"language":132,"meta":7,"style":7},"# IBM cloud QASM simulator (up to 32 qubits, no queue)\nbackend = service.backend(\"ibmq_qasm_simulator\")\n\n# Or use the Statevector simulator (exact simulation)\nbackend = service.backend(\"simulator_statevector\")\n",[50217],{"type":21,"tag":103,"props":50218,"children":50219},{"__ignoreMap":7},[50220,50228,50253,50260,50268],{"type":21,"tag":138,"props":50221,"children":50222},{"class":140,"line":141},[50223],{"type":21,"tag":138,"props":50224,"children":50225},{"style":219},[50226],{"type":31,"value":50227},"# IBM cloud QASM simulator (up to 32 qubits, no queue)\n",{"type":21,"tag":138,"props":50229,"children":50230},{"class":140,"line":167},[50231,50235,50239,50244,50249],{"type":21,"tag":138,"props":50232,"children":50233},{"style":151},[50234],{"type":31,"value":6456},{"type":21,"tag":138,"props":50236,"children":50237},{"style":145},[50238],{"type":31,"value":210},{"type":21,"tag":138,"props":50240,"children":50241},{"style":151},[50242],{"type":31,"value":50243}," service.backend(",{"type":21,"tag":138,"props":50245,"children":50246},{"style":261},[50247],{"type":31,"value":50248},"\"ibmq_qasm_simulator\"",{"type":21,"tag":138,"props":50250,"children":50251},{"style":151},[50252],{"type":31,"value":269},{"type":21,"tag":138,"props":50254,"children":50255},{"class":140,"line":189},[50256],{"type":21,"tag":138,"props":50257,"children":50258},{"emptyLinePlaceholder":193},[50259],{"type":31,"value":196},{"type":21,"tag":138,"props":50261,"children":50262},{"class":140,"line":199},[50263],{"type":21,"tag":138,"props":50264,"children":50265},{"style":219},[50266],{"type":31,"value":50267},"# Or use the Statevector simulator (exact simulation)\n",{"type":21,"tag":138,"props":50269,"children":50270},{"class":140,"line":225},[50271,50275,50279,50283,50288],{"type":21,"tag":138,"props":50272,"children":50273},{"style":151},[50274],{"type":31,"value":6456},{"type":21,"tag":138,"props":50276,"children":50277},{"style":145},[50278],{"type":31,"value":210},{"type":21,"tag":138,"props":50280,"children":50281},{"style":151},[50282],{"type":31,"value":50243},{"type":21,"tag":138,"props":50284,"children":50285},{"style":261},[50286],{"type":31,"value":50287},"\"simulator_statevector\"",{"type":21,"tag":138,"props":50289,"children":50290},{"style":151},[50291],{"type":31,"value":269},{"type":21,"tag":22,"props":50293,"children":50294},{},[50295],{"type":31,"value":50296},"这些模拟器没有排队时间，可即时运行。当你需要真实的噪声特性或想在真实硬件上进行基准测试时，再使用真实的 QPU。",{"type":21,"tag":41,"props":50298,"children":50300},{"id":50299},"将-hlquantum-与-ibm-quantum-配合使用",[50301],{"type":31,"value":50302},"将 HLQuantum 与 IBM Quantum 配合使用",{"type":21,"tag":22,"props":50304,"children":50305},{},[50306],{"type":31,"value":50307},"如果你使用多个 SDK，HLQuantum 提供了一个更简洁的接口来访问 IBM 硬件：",{"type":21,"tag":128,"props":50309,"children":50311},{"className":130,"code":50310,"language":132,"meta":7,"style":7},"import hlquantum as hlq\n\nqc = hlq.Circuit(2)\nqc.h(0).cx(0, 1).measure_all()\n\n# Run on IBM's free QPU\nresult = hlq.run(\n    qc,\n    backend=\"qiskit\",\n    device=\"ibm_sherbrooke\",  # or use \"auto\" for least busy\n    shots=1024,\n    error_mitigation=\"zne\"\n)\nprint(result)\n",[50312],{"type":21,"tag":103,"props":50313,"children":50314},{"__ignoreMap":7},[50315,50334,50341,50364,50395,50402,50410,50426,50434,50454,50481,50501,50518,50525],{"type":21,"tag":138,"props":50316,"children":50317},{"class":140,"line":141},[50318,50322,50326,50330],{"type":21,"tag":138,"props":50319,"children":50320},{"style":145},[50321],{"type":31,"value":159},{"type":21,"tag":138,"props":50323,"children":50324},{"style":151},[50325],{"type":31,"value":41047},{"type":21,"tag":138,"props":50327,"children":50328},{"style":145},[50329],{"type":31,"value":5356},{"type":21,"tag":138,"props":50331,"children":50332},{"style":151},[50333],{"type":31,"value":41056},{"type":21,"tag":138,"props":50335,"children":50336},{"class":140,"line":167},[50337],{"type":21,"tag":138,"props":50338,"children":50339},{"emptyLinePlaceholder":193},[50340],{"type":31,"value":196},{"type":21,"tag":138,"props":50342,"children":50343},{"class":140,"line":189},[50344,50348,50352,50356,50360],{"type":21,"tag":138,"props":50345,"children":50346},{"style":151},[50347],{"type":31,"value":348},{"type":21,"tag":138,"props":50349,"children":50350},{"style":145},[50351],{"type":31,"value":210},{"type":21,"tag":138,"props":50353,"children":50354},{"style":151},[50355],{"type":31,"value":43091},{"type":21,"tag":138,"props":50357,"children":50358},{"style":213},[50359],{"type":31,"value":292},{"type":21,"tag":138,"props":50361,"children":50362},{"style":151},[50363],{"type":31,"value":269},{"type":21,"tag":138,"props":50365,"children":50366},{"class":140,"line":199},[50367,50371,50375,50379,50383,50387,50391],{"type":21,"tag":138,"props":50368,"children":50369},{"style":151},[50370],{"type":31,"value":441},{"type":21,"tag":138,"props":50372,"children":50373},{"style":213},[50374],{"type":31,"value":406},{"type":21,"tag":138,"props":50376,"children":50377},{"style":151},[50378],{"type":31,"value":43115},{"type":21,"tag":138,"props":50380,"children":50381},{"style":213},[50382],{"type":31,"value":406},{"type":21,"tag":138,"props":50384,"children":50385},{"style":151},[50386],{"type":31,"value":258},{"type":21,"tag":138,"props":50388,"children":50389},{"style":213},[50390],{"type":31,"value":327},{"type":21,"tag":138,"props":50392,"children":50393},{"style":151},[50394],{"type":31,"value":43132},{"type":21,"tag":138,"props":50396,"children":50397},{"class":140,"line":225},[50398],{"type":21,"tag":138,"props":50399,"children":50400},{"emptyLinePlaceholder":193},[50401],{"type":31,"value":196},{"type":21,"tag":138,"props":50403,"children":50404},{"class":140,"line":233},[50405],{"type":21,"tag":138,"props":50406,"children":50407},{"style":219},[50408],{"type":31,"value":50409},"# Run on IBM's free QPU\n",{"type":21,"tag":138,"props":50411,"children":50412},{"class":140,"line":272},[50413,50417,50421],{"type":21,"tag":138,"props":50414,"children":50415},{"style":151},[50416],{"type":31,"value":4881},{"type":21,"tag":138,"props":50418,"children":50419},{"style":145},[50420],{"type":31,"value":210},{"type":21,"tag":138,"props":50422,"children":50423},{"style":151},[50424],{"type":31,"value":50425}," hlq.run(\n",{"type":21,"tag":138,"props":50427,"children":50428},{"class":140,"line":308},[50429],{"type":21,"tag":138,"props":50430,"children":50431},{"style":151},[50432],{"type":31,"value":50433},"    qc,\n",{"type":21,"tag":138,"props":50435,"children":50436},{"class":140,"line":16},[50437,50441,50445,50450],{"type":21,"tag":138,"props":50438,"children":50439},{"style":929},[50440],{"type":31,"value":44561},{"type":21,"tag":138,"props":50442,"children":50443},{"style":145},[50444],{"type":31,"value":210},{"type":21,"tag":138,"props":50446,"children":50447},{"style":261},[50448],{"type":31,"value":50449},"\"qiskit\"",{"type":21,"tag":138,"props":50451,"children":50452},{"style":151},[50453],{"type":31,"value":4824},{"type":21,"tag":138,"props":50455,"children":50456},{"class":140,"line":360},[50457,50462,50466,50471,50476],{"type":21,"tag":138,"props":50458,"children":50459},{"style":929},[50460],{"type":31,"value":50461},"    device",{"type":21,"tag":138,"props":50463,"children":50464},{"style":145},[50465],{"type":31,"value":210},{"type":21,"tag":138,"props":50467,"children":50468},{"style":261},[50469],{"type":31,"value":50470},"\"ibm_sherbrooke\"",{"type":21,"tag":138,"props":50472,"children":50473},{"style":151},[50474],{"type":31,"value":50475},",  ",{"type":21,"tag":138,"props":50477,"children":50478},{"style":219},[50479],{"type":31,"value":50480},"# or use \"auto\" for least busy\n",{"type":21,"tag":138,"props":50482,"children":50483},{"class":140,"line":368},[50484,50489,50493,50497],{"type":21,"tag":138,"props":50485,"children":50486},{"style":929},[50487],{"type":31,"value":50488},"    shots",{"type":21,"tag":138,"props":50490,"children":50491},{"style":145},[50492],{"type":31,"value":210},{"type":21,"tag":138,"props":50494,"children":50495},{"style":213},[50496],{"type":31,"value":24200},{"type":21,"tag":138,"props":50498,"children":50499},{"style":151},[50500],{"type":31,"value":4824},{"type":21,"tag":138,"props":50502,"children":50503},{"class":140,"line":377},[50504,50509,50513],{"type":21,"tag":138,"props":50505,"children":50506},{"style":929},[50507],{"type":31,"value":50508},"    error_mitigation",{"type":21,"tag":138,"props":50510,"children":50511},{"style":145},[50512],{"type":31,"value":210},{"type":21,"tag":138,"props":50514,"children":50515},{"style":261},[50516],{"type":31,"value":50517},"\"zne\"\n",{"type":21,"tag":138,"props":50519,"children":50520},{"class":140,"line":386},[50521],{"type":21,"tag":138,"props":50522,"children":50523},{"style":151},[50524],{"type":31,"value":269},{"type":21,"tag":138,"props":50526,"children":50527},{"class":140,"line":395},[50528,50532],{"type":21,"tag":138,"props":50529,"children":50530},{"style":213},[50531],{"type":31,"value":954},{"type":21,"tag":138,"props":50533,"children":50534},{"style":151},[50535],{"type":31,"value":4952},{"type":21,"tag":22,"props":50537,"children":50538},{},[50539,50541,50545],{"type":31,"value":50540},"HLQuantum 会自动处理转译、任务提交和结果解析。有关高级配置，请参阅完整的 ",{"type":21,"tag":26,"props":50542,"children":50543},{"href":1126},[50544],{"type":31,"value":1129},{"type":31,"value":3120},{"type":21,"tag":1174,"props":50547,"children":50548},{},[50549],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":50551},[50552,50553,50554,50555,50561,50562,50563],{"id":48781,"depth":167,"text":48781},{"id":48858,"depth":167,"text":48861},{"id":48933,"depth":167,"text":48936},{"id":49294,"depth":167,"text":49297,"children":50556},[50557,50558,50559,50560],{"id":49300,"depth":189,"text":49303},{"id":49318,"depth":189,"text":49321},{"id":49351,"depth":189,"text":49354},{"id":49486,"depth":189,"text":49489},{"id":50130,"depth":167,"text":50130},{"id":50205,"depth":167,"text":50205},{"id":50299,"depth":167,"text":50302},"content:zh:blog:ibm-quantum-free-tier-2026.md","zh\u002Fblog\u002Fibm-quantum-free-tier-2026.md","zh\u002Fblog\u002Fibm-quantum-free-tier-2026",{"_path":50568,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":50569,"description":50570,"date":48769,"author":11,"tags":50571,"readingTime":368,"body":50572,"_type":1193,"_id":53293,"_source":1195,"_file":53294,"_stem":53295,"_extension":1198},"\u002Fzh\u002Fblog\u002Fqaoa-max-cut-tutorial","QAOA 详解：一步步求解 Max-Cut","手把手讲解量子近似优化算法（QAOA）在 Max-Cut 图问题上的应用——附使用 Qiskit、PennyLane 和 HLQuantum 的完整 Python 代码。",[13,2048,14,4487],{"type":18,"children":50573,"toc":53283},[50574,50579,50584,50590,50595,50600,50608,50626,50632,50637,50674,50702,50708,51840,51860,51865,51870,52468,52473,52481,52499,52505,52510,52807,52812,53016,53022,53042,53136,53163,53169,53177,53195,53203,53216,53233,53238,53279],{"type":21,"tag":22,"props":50575,"children":50576},{},[50577],{"type":31,"value":50578},"QAOA（量子近似优化算法）是最受追捧的近期量子算法之一——这是有充分理由的。它是组合优化问题上实现量子优势的真正候选者，能在当今的 NISQ 硬件上运行，而且简单到可以在一个下午内实现。",{"type":21,"tag":22,"props":50580,"children":50581},{},[50582],{"type":31,"value":50583},"本指南从零开始构建完整的 QAOA 流程，以 Max-Cut 作为示例问题。读完之后，你将理解 QAOA 究竟做了什么、如何实现它，以及何时值得使用它。",{"type":21,"tag":41,"props":50585,"children":50587},{"id":50586},"什么是-max-cut",[50588],{"type":31,"value":50589},"什么是 Max-Cut？",{"type":21,"tag":22,"props":50591,"children":50592},{},[50593],{"type":31,"value":50594},"Max-Cut 是一个图划分问题：给定一个图，将节点分成两组（0 和 1），以最大化跨越两组之间的边的数量。它在一般情况下是 NP-hard 的，出现在 VLSI 芯片设计、聚类和网络分析中，并且能够干净地映射到量子硬件上。",{"type":21,"tag":22,"props":50596,"children":50597},{},[50598],{"type":31,"value":50599},"这是一个简单的 4 节点图：",{"type":21,"tag":128,"props":50601,"children":50603},{"code":50602},"0 --- 1\n|   \\ |\n3 --- 2\n",[50604],{"type":21,"tag":103,"props":50605,"children":50606},{"__ignoreMap":7},[50607],{"type":31,"value":50602},{"type":21,"tag":22,"props":50609,"children":50610},{},[50611,50613,50619,50620,50625],{"type":31,"value":50612},"这个图的最大割是 4（边 0-1、1-2、2-3、3-0 全部跨越）。我们的目标：找到实现这一结果的比特串 ",{"type":21,"tag":103,"props":50614,"children":50616},{"className":50615},[],[50617],{"type":31,"value":50618},"0101",{"type":31,"value":42254},{"type":21,"tag":103,"props":50621,"children":50623},{"className":50622},[],[50624],{"type":31,"value":14234},{"type":31,"value":3120},{"type":21,"tag":41,"props":50627,"children":50629},{"id":50628},"qaoa-的思想",[50630],{"type":31,"value":50631},"QAOA 的思想",{"type":21,"tag":22,"props":50633,"children":50634},{},[50635],{"type":31,"value":50636},"QAOA 是一种变分混合算法。它交替执行两个参数化操作：",{"type":21,"tag":67,"props":50638,"children":50639},{},[50640,50657],{"type":21,"tag":71,"props":50641,"children":50642},{},[50643,50648,50649,50655],{"type":21,"tag":16815,"props":50644,"children":50645},{},[50646],{"type":31,"value":50647},"问题酉算子",{"type":31,"value":22965},{"type":21,"tag":103,"props":50650,"children":50652},{"className":50651},[],[50653],{"type":31,"value":50654},"U_C(γ)",{"type":31,"value":50656}," —— 将代价函数（边的跨越）编码为相位回踢",{"type":21,"tag":71,"props":50658,"children":50659},{},[50660,50665,50666,50672],{"type":21,"tag":16815,"props":50661,"children":50662},{},[50663],{"type":31,"value":50664},"混合酉算子",{"type":31,"value":22965},{"type":21,"tag":103,"props":50667,"children":50669},{"className":50668},[],[50670],{"type":31,"value":50671},"U_B(β)",{"type":31,"value":50673}," —— 在各个解之间进行混合（X 旋转）",{"type":21,"tag":22,"props":50675,"children":50676},{},[50677,50679,50684,50686,50692,50694,50700],{"type":31,"value":50678},"通过 ",{"type":21,"tag":103,"props":50680,"children":50682},{"className":50681},[],[50683],{"type":31,"value":22},{"type":31,"value":50685}," 层这样交替的酉算子，QAOA 制备出一个量子态，其测量结果很可能是一个好的解。经典优化器调整这 ",{"type":21,"tag":103,"props":50687,"children":50689},{"className":50688},[],[50690],{"type":31,"value":50691},"2p",{"type":31,"value":50693}," 个角度 ",{"type":21,"tag":103,"props":50695,"children":50697},{"className":50696},[],[50698],{"type":31,"value":50699},"(γ, β)",{"type":31,"value":50701},"，以最大化期望的割值。",{"type":21,"tag":41,"props":50703,"children":50705},{"id":50704},"用-pennylane-构建-qaoa",[50706],{"type":31,"value":50707},"用 PennyLane 构建 QAOA",{"type":21,"tag":128,"props":50709,"children":50711},{"code":50710,"language":132,"meta":7,"className":130,"style":7},"import pennylane as qml\nimport numpy as np\nfrom scipy.optimize import minimize\n\n# Graph edges\nedges = [(0, 1), (1, 2), (2, 3), (3, 0)]\nn_qubits = 4\n\ndev = qml.device(\"default.qubit\", wires=n_qubits)\n\ndef cost_unitary(gamma):\n    \"\"\"Encode the Max-Cut cost into phases.\"\"\"\n    for u, v in edges:\n        qml.CNOT(wires=[u, v])\n        qml.RZ(2 * gamma, wires=v)\n        qml.CNOT(wires=[u, v])\n\ndef mixer_unitary(beta):\n    \"\"\"Apply X-rotation mixer to all qubits.\"\"\"\n    for i in range(n_qubits):\n        qml.RX(2 * beta, wires=i)\n\n@qml.qnode(dev)\ndef qaoa_circuit(params, p=1):\n    gammas = params[:p]\n    betas = params[p:]\n    # Start in uniform superposition\n    for i in range(n_qubits):\n        qml.Hadamard(wires=i)\n    # Alternate p layers\n    for layer in range(p):\n        cost_unitary(gammas[layer])\n        mixer_unitary(betas[layer])\n    return qml.probs(wires=range(n_qubits))\n\ndef expected_cut(params, p=1):\n    \"\"\"Classical cost function: expected number of cut edges.\"\"\"\n    probs = qaoa_circuit(params, p)\n    total = 0.0\n    for bitstring_idx, prob in enumerate(probs):\n        bits = format(bitstring_idx, f'0{n_qubits}b')\n        cut = sum(1 for u, v in edges if bits[u] != bits[v])\n        total += prob * cut\n    return -total  # Minimize negative cut\n\n# Optimize p=1 QAOA\np = 1\ninit_params = np.random.uniform(0, np.pi, 2 * p)\nresult = minimize(expected_cut, init_params, method='COBYLA',\n                  options={'maxiter': 200})\n\nprint(f\"Optimized params: {result.x}\")\nprint(f\"Expected cut: {-result.fun:.3f} \u002F 4.0 maximum\")\n",[50712],{"type":21,"tag":103,"props":50713,"children":50714},{"__ignoreMap":7},[50715,50734,50753,50774,50781,50789,50868,50883,50890,50925,50932,50949,50957,50977,50997,51031,51050,51057,51074,51082,51105,51138,51145,51156,51185,51202,51219,51227,51250,51270,51278,51303,51311,51319,51346,51353,51381,51389,51406,51423,51448,51498,51559,51586,51607,51614,51622,51638,51676,51709,51742,51749,51790],{"type":21,"tag":138,"props":50716,"children":50717},{"class":140,"line":141},[50718,50722,50726,50730],{"type":21,"tag":138,"props":50719,"children":50720},{"style":145},[50721],{"type":31,"value":159},{"type":21,"tag":138,"props":50723,"children":50724},{"style":151},[50725],{"type":31,"value":5351},{"type":21,"tag":138,"props":50727,"children":50728},{"style":145},[50729],{"type":31,"value":5356},{"type":21,"tag":138,"props":50731,"children":50732},{"style":151},[50733],{"type":31,"value":5361},{"type":21,"tag":138,"props":50735,"children":50736},{"class":140,"line":167},[50737,50741,50745,50749],{"type":21,"tag":138,"props":50738,"children":50739},{"style":145},[50740],{"type":31,"value":159},{"type":21,"tag":138,"props":50742,"children":50743},{"style":151},[50744],{"type":31,"value":8530},{"type":21,"tag":138,"props":50746,"children":50747},{"style":145},[50748],{"type":31,"value":5356},{"type":21,"tag":138,"props":50750,"children":50751},{"style":151},[50752],{"type":31,"value":8632},{"type":21,"tag":138,"props":50754,"children":50755},{"class":140,"line":189},[50756,50760,50765,50769],{"type":21,"tag":138,"props":50757,"children":50758},{"style":145},[50759],{"type":31,"value":148},{"type":21,"tag":138,"props":50761,"children":50762},{"style":151},[50763],{"type":31,"value":50764}," scipy.optimize ",{"type":21,"tag":138,"props":50766,"children":50767},{"style":145},[50768],{"type":31,"value":159},{"type":21,"tag":138,"props":50770,"children":50771},{"style":151},[50772],{"type":31,"value":50773}," minimize\n",{"type":21,"tag":138,"props":50775,"children":50776},{"class":140,"line":199},[50777],{"type":21,"tag":138,"props":50778,"children":50779},{"emptyLinePlaceholder":193},[50780],{"type":31,"value":196},{"type":21,"tag":138,"props":50782,"children":50783},{"class":140,"line":225},[50784],{"type":21,"tag":138,"props":50785,"children":50786},{"style":219},[50787],{"type":31,"value":50788},"# Graph edges\n",{"type":21,"tag":138,"props":50790,"children":50791},{"class":140,"line":233},[50792,50796,50800,50804,50808,50812,50816,50820,50824,50828,50832,50836,50840,50844,50848,50852,50856,50860,50864],{"type":21,"tag":138,"props":50793,"children":50794},{"style":151},[50795],{"type":31,"value":1385},{"type":21,"tag":138,"props":50797,"children":50798},{"style":145},[50799],{"type":31,"value":210},{"type":21,"tag":138,"props":50801,"children":50802},{"style":151},[50803],{"type":31,"value":1394},{"type":21,"tag":138,"props":50805,"children":50806},{"style":213},[50807],{"type":31,"value":406},{"type":21,"tag":138,"props":50809,"children":50810},{"style":151},[50811],{"type":31,"value":258},{"type":21,"tag":138,"props":50813,"children":50814},{"style":213},[50815],{"type":31,"value":327},{"type":21,"tag":138,"props":50817,"children":50818},{"style":151},[50819],{"type":31,"value":1411},{"type":21,"tag":138,"props":50821,"children":50822},{"style":213},[50823],{"type":31,"value":327},{"type":21,"tag":138,"props":50825,"children":50826},{"style":151},[50827],{"type":31,"value":258},{"type":21,"tag":138,"props":50829,"children":50830},{"style":213},[50831],{"type":31,"value":292},{"type":21,"tag":138,"props":50833,"children":50834},{"style":151},[50835],{"type":31,"value":1411},{"type":21,"tag":138,"props":50837,"children":50838},{"style":213},[50839],{"type":31,"value":292},{"type":21,"tag":138,"props":50841,"children":50842},{"style":151},[50843],{"type":31,"value":258},{"type":21,"tag":138,"props":50845,"children":50846},{"style":213},[50847],{"type":31,"value":253},{"type":21,"tag":138,"props":50849,"children":50850},{"style":151},[50851],{"type":31,"value":1411},{"type":21,"tag":138,"props":50853,"children":50854},{"style":213},[50855],{"type":31,"value":253},{"type":21,"tag":138,"props":50857,"children":50858},{"style":151},[50859],{"type":31,"value":258},{"type":21,"tag":138,"props":50861,"children":50862},{"style":213},[50863],{"type":31,"value":406},{"type":21,"tag":138,"props":50865,"children":50866},{"style":151},[50867],{"type":31,"value":1460},{"type":21,"tag":138,"props":50869,"children":50870},{"class":140,"line":272},[50871,50875,50879],{"type":21,"tag":138,"props":50872,"children":50873},{"style":151},[50874],{"type":31,"value":35968},{"type":21,"tag":138,"props":50876,"children":50877},{"style":145},[50878],{"type":31,"value":210},{"type":21,"tag":138,"props":50880,"children":50881},{"style":213},[50882],{"type":31,"value":20998},{"type":21,"tag":138,"props":50884,"children":50885},{"class":140,"line":308},[50886],{"type":21,"tag":138,"props":50887,"children":50888},{"emptyLinePlaceholder":193},[50889],{"type":31,"value":196},{"type":21,"tag":138,"props":50891,"children":50892},{"class":140,"line":16},[50893,50897,50901,50905,50909,50913,50917,50921],{"type":21,"tag":138,"props":50894,"children":50895},{"style":151},[50896],{"type":31,"value":8726},{"type":21,"tag":138,"props":50898,"children":50899},{"style":145},[50900],{"type":31,"value":210},{"type":21,"tag":138,"props":50902,"children":50903},{"style":151},[50904],{"type":31,"value":5446},{"type":21,"tag":138,"props":50906,"children":50907},{"style":261},[50908],{"type":31,"value":5451},{"type":21,"tag":138,"props":50910,"children":50911},{"style":151},[50912],{"type":31,"value":258},{"type":21,"tag":138,"props":50914,"children":50915},{"style":929},[50916],{"type":31,"value":5460},{"type":21,"tag":138,"props":50918,"children":50919},{"style":145},[50920],{"type":31,"value":210},{"type":21,"tag":138,"props":50922,"children":50923},{"style":151},[50924],{"type":31,"value":36035},{"type":21,"tag":138,"props":50926,"children":50927},{"class":140,"line":360},[50928],{"type":21,"tag":138,"props":50929,"children":50930},{"emptyLinePlaceholder":193},[50931],{"type":31,"value":196},{"type":21,"tag":138,"props":50933,"children":50934},{"class":140,"line":368},[50935,50939,50944],{"type":21,"tag":138,"props":50936,"children":50937},{"style":145},[50938],{"type":31,"value":5500},{"type":21,"tag":138,"props":50940,"children":50941},{"style":4522},[50942],{"type":31,"value":50943}," cost_unitary",{"type":21,"tag":138,"props":50945,"children":50946},{"style":151},[50947],{"type":31,"value":50948},"(gamma):\n",{"type":21,"tag":138,"props":50950,"children":50951},{"class":140,"line":377},[50952],{"type":21,"tag":138,"props":50953,"children":50954},{"style":261},[50955],{"type":31,"value":50956},"    \"\"\"Encode the Max-Cut cost into phases.\"\"\"\n",{"type":21,"tag":138,"props":50958,"children":50959},{"class":140,"line":386},[50960,50964,50969,50973],{"type":21,"tag":138,"props":50961,"children":50962},{"style":145},[50963],{"type":31,"value":17037},{"type":21,"tag":138,"props":50965,"children":50966},{"style":151},[50967],{"type":31,"value":50968}," u, v ",{"type":21,"tag":138,"props":50970,"children":50971},{"style":145},[50972],{"type":31,"value":1502},{"type":21,"tag":138,"props":50974,"children":50975},{"style":151},[50976],{"type":31,"value":1507},{"type":21,"tag":138,"props":50978,"children":50979},{"class":140,"line":395},[50980,50984,50988,50992],{"type":21,"tag":138,"props":50981,"children":50982},{"style":151},[50983],{"type":31,"value":48332},{"type":21,"tag":138,"props":50985,"children":50986},{"style":929},[50987],{"type":31,"value":5460},{"type":21,"tag":138,"props":50989,"children":50990},{"style":145},[50991],{"type":31,"value":210},{"type":21,"tag":138,"props":50993,"children":50994},{"style":151},[50995],{"type":31,"value":50996},"[u, v])\n",{"type":21,"tag":138,"props":50998,"children":50999},{"class":140,"line":413},[51000,51005,51009,51013,51018,51022,51026],{"type":21,"tag":138,"props":51001,"children":51002},{"style":151},[51003],{"type":31,"value":51004},"        qml.RZ(",{"type":21,"tag":138,"props":51006,"children":51007},{"style":213},[51008],{"type":31,"value":292},{"type":21,"tag":138,"props":51010,"children":51011},{"style":145},[51012],{"type":31,"value":30186},{"type":21,"tag":138,"props":51014,"children":51015},{"style":151},[51016],{"type":31,"value":51017}," gamma, ",{"type":21,"tag":138,"props":51019,"children":51020},{"style":929},[51021],{"type":31,"value":5460},{"type":21,"tag":138,"props":51023,"children":51024},{"style":145},[51025],{"type":31,"value":210},{"type":21,"tag":138,"props":51027,"children":51028},{"style":151},[51029],{"type":31,"value":51030},"v)\n",{"type":21,"tag":138,"props":51032,"children":51033},{"class":140,"line":12602},[51034,51038,51042,51046],{"type":21,"tag":138,"props":51035,"children":51036},{"style":151},[51037],{"type":31,"value":48332},{"type":21,"tag":138,"props":51039,"children":51040},{"style":929},[51041],{"type":31,"value":5460},{"type":21,"tag":138,"props":51043,"children":51044},{"style":145},[51045],{"type":31,"value":210},{"type":21,"tag":138,"props":51047,"children":51048},{"style":151},[51049],{"type":31,"value":50996},{"type":21,"tag":138,"props":51051,"children":51052},{"class":140,"line":12619},[51053],{"type":21,"tag":138,"props":51054,"children":51055},{"emptyLinePlaceholder":193},[51056],{"type":31,"value":196},{"type":21,"tag":138,"props":51058,"children":51059},{"class":140,"line":12635},[51060,51064,51069],{"type":21,"tag":138,"props":51061,"children":51062},{"style":145},[51063],{"type":31,"value":5500},{"type":21,"tag":138,"props":51065,"children":51066},{"style":4522},[51067],{"type":31,"value":51068}," mixer_unitary",{"type":21,"tag":138,"props":51070,"children":51071},{"style":151},[51072],{"type":31,"value":51073},"(beta):\n",{"type":21,"tag":138,"props":51075,"children":51076},{"class":140,"line":12643},[51077],{"type":21,"tag":138,"props":51078,"children":51079},{"style":261},[51080],{"type":31,"value":51081},"    \"\"\"Apply X-rotation mixer to all qubits.\"\"\"\n",{"type":21,"tag":138,"props":51083,"children":51084},{"class":140,"line":17760},[51085,51089,51093,51097,51101],{"type":21,"tag":138,"props":51086,"children":51087},{"style":145},[51088],{"type":31,"value":17037},{"type":21,"tag":138,"props":51090,"children":51091},{"style":151},[51092],{"type":31,"value":7421},{"type":21,"tag":138,"props":51094,"children":51095},{"style":145},[51096],{"type":31,"value":1502},{"type":21,"tag":138,"props":51098,"children":51099},{"style":213},[51100],{"type":31,"value":7430},{"type":21,"tag":138,"props":51102,"children":51103},{"style":151},[51104],{"type":31,"value":48267},{"type":21,"tag":138,"props":51106,"children":51107},{"class":140,"line":17778},[51108,51113,51117,51121,51126,51130,51134],{"type":21,"tag":138,"props":51109,"children":51110},{"style":151},[51111],{"type":31,"value":51112},"        qml.RX(",{"type":21,"tag":138,"props":51114,"children":51115},{"style":213},[51116],{"type":31,"value":292},{"type":21,"tag":138,"props":51118,"children":51119},{"style":145},[51120],{"type":31,"value":30186},{"type":21,"tag":138,"props":51122,"children":51123},{"style":151},[51124],{"type":31,"value":51125}," beta, ",{"type":21,"tag":138,"props":51127,"children":51128},{"style":929},[51129],{"type":31,"value":5460},{"type":21,"tag":138,"props":51131,"children":51132},{"style":145},[51133],{"type":31,"value":210},{"type":21,"tag":138,"props":51135,"children":51136},{"style":151},[51137],{"type":31,"value":48288},{"type":21,"tag":138,"props":51139,"children":51140},{"class":140,"line":17803},[51141],{"type":21,"tag":138,"props":51142,"children":51143},{"emptyLinePlaceholder":193},[51144],{"type":31,"value":196},{"type":21,"tag":138,"props":51146,"children":51147},{"class":140,"line":17830},[51148,51152],{"type":21,"tag":138,"props":51149,"children":51150},{"style":4522},[51151],{"type":31,"value":5487},{"type":21,"tag":138,"props":51153,"children":51154},{"style":151},[51155],{"type":31,"value":8778},{"type":21,"tag":138,"props":51157,"children":51158},{"class":140,"line":17856},[51159,51163,51168,51173,51177,51181],{"type":21,"tag":138,"props":51160,"children":51161},{"style":145},[51162],{"type":31,"value":5500},{"type":21,"tag":138,"props":51164,"children":51165},{"style":4522},[51166],{"type":31,"value":51167}," qaoa_circuit",{"type":21,"tag":138,"props":51169,"children":51170},{"style":151},[51171],{"type":31,"value":51172},"(params, p",{"type":21,"tag":138,"props":51174,"children":51175},{"style":145},[51176],{"type":31,"value":210},{"type":21,"tag":138,"props":51178,"children":51179},{"style":213},[51180],{"type":31,"value":327},{"type":21,"tag":138,"props":51182,"children":51183},{"style":151},[51184],{"type":31,"value":7443},{"type":21,"tag":138,"props":51186,"children":51187},{"class":140,"line":17865},[51188,51193,51197],{"type":21,"tag":138,"props":51189,"children":51190},{"style":151},[51191],{"type":31,"value":51192},"    gammas ",{"type":21,"tag":138,"props":51194,"children":51195},{"style":145},[51196],{"type":31,"value":210},{"type":21,"tag":138,"props":51198,"children":51199},{"style":151},[51200],{"type":31,"value":51201}," params[:p]\n",{"type":21,"tag":138,"props":51203,"children":51204},{"class":140,"line":17877},[51205,51210,51214],{"type":21,"tag":138,"props":51206,"children":51207},{"style":151},[51208],{"type":31,"value":51209},"    betas ",{"type":21,"tag":138,"props":51211,"children":51212},{"style":145},[51213],{"type":31,"value":210},{"type":21,"tag":138,"props":51215,"children":51216},{"style":151},[51217],{"type":31,"value":51218}," params[p:]\n",{"type":21,"tag":138,"props":51220,"children":51221},{"class":140,"line":17885},[51222],{"type":21,"tag":138,"props":51223,"children":51224},{"style":219},[51225],{"type":31,"value":51226},"    # Start in uniform superposition\n",{"type":21,"tag":138,"props":51228,"children":51229},{"class":140,"line":17938},[51230,51234,51238,51242,51246],{"type":21,"tag":138,"props":51231,"children":51232},{"style":145},[51233],{"type":31,"value":17037},{"type":21,"tag":138,"props":51235,"children":51236},{"style":151},[51237],{"type":31,"value":7421},{"type":21,"tag":138,"props":51239,"children":51240},{"style":145},[51241],{"type":31,"value":1502},{"type":21,"tag":138,"props":51243,"children":51244},{"style":213},[51245],{"type":31,"value":7430},{"type":21,"tag":138,"props":51247,"children":51248},{"style":151},[51249],{"type":31,"value":48267},{"type":21,"tag":138,"props":51251,"children":51252},{"class":140,"line":26899},[51253,51258,51262,51266],{"type":21,"tag":138,"props":51254,"children":51255},{"style":151},[51256],{"type":31,"value":51257},"        qml.Hadamard(",{"type":21,"tag":138,"props":51259,"children":51260},{"style":929},[51261],{"type":31,"value":5460},{"type":21,"tag":138,"props":51263,"children":51264},{"style":145},[51265],{"type":31,"value":210},{"type":21,"tag":138,"props":51267,"children":51268},{"style":151},[51269],{"type":31,"value":48288},{"type":21,"tag":138,"props":51271,"children":51272},{"class":140,"line":26944},[51273],{"type":21,"tag":138,"props":51274,"children":51275},{"style":219},[51276],{"type":31,"value":51277},"    # Alternate p layers\n",{"type":21,"tag":138,"props":51279,"children":51280},{"class":140,"line":26957},[51281,51285,51290,51294,51298],{"type":21,"tag":138,"props":51282,"children":51283},{"style":145},[51284],{"type":31,"value":17037},{"type":21,"tag":138,"props":51286,"children":51287},{"style":151},[51288],{"type":31,"value":51289}," layer ",{"type":21,"tag":138,"props":51291,"children":51292},{"style":145},[51293],{"type":31,"value":1502},{"type":21,"tag":138,"props":51295,"children":51296},{"style":213},[51297],{"type":31,"value":7430},{"type":21,"tag":138,"props":51299,"children":51300},{"style":151},[51301],{"type":31,"value":51302},"(p):\n",{"type":21,"tag":138,"props":51304,"children":51305},{"class":140,"line":26965},[51306],{"type":21,"tag":138,"props":51307,"children":51308},{"style":151},[51309],{"type":31,"value":51310},"        cost_unitary(gammas[layer])\n",{"type":21,"tag":138,"props":51312,"children":51313},{"class":140,"line":26981},[51314],{"type":21,"tag":138,"props":51315,"children":51316},{"style":151},[51317],{"type":31,"value":51318},"        mixer_unitary(betas[layer])\n",{"type":21,"tag":138,"props":51320,"children":51321},{"class":140,"line":26999},[51322,51326,51330,51334,51338,51342],{"type":21,"tag":138,"props":51323,"children":51324},{"style":145},[51325],{"type":31,"value":5595},{"type":21,"tag":138,"props":51327,"children":51328},{"style":151},[51329],{"type":31,"value":8834},{"type":21,"tag":138,"props":51331,"children":51332},{"style":929},[51333],{"type":31,"value":5460},{"type":21,"tag":138,"props":51335,"children":51336},{"style":145},[51337],{"type":31,"value":210},{"type":21,"tag":138,"props":51339,"children":51340},{"style":213},[51341],{"type":31,"value":17726},{"type":21,"tag":138,"props":51343,"children":51344},{"style":151},[51345],{"type":31,"value":36160},{"type":21,"tag":138,"props":51347,"children":51348},{"class":140,"line":27007},[51349],{"type":21,"tag":138,"props":51350,"children":51351},{"emptyLinePlaceholder":193},[51352],{"type":31,"value":196},{"type":21,"tag":138,"props":51354,"children":51355},{"class":140,"line":27040},[51356,51360,51365,51369,51373,51377],{"type":21,"tag":138,"props":51357,"children":51358},{"style":145},[51359],{"type":31,"value":5500},{"type":21,"tag":138,"props":51361,"children":51362},{"style":4522},[51363],{"type":31,"value":51364}," expected_cut",{"type":21,"tag":138,"props":51366,"children":51367},{"style":151},[51368],{"type":31,"value":51172},{"type":21,"tag":138,"props":51370,"children":51371},{"style":145},[51372],{"type":31,"value":210},{"type":21,"tag":138,"props":51374,"children":51375},{"style":213},[51376],{"type":31,"value":327},{"type":21,"tag":138,"props":51378,"children":51379},{"style":151},[51380],{"type":31,"value":7443},{"type":21,"tag":138,"props":51382,"children":51383},{"class":140,"line":27057},[51384],{"type":21,"tag":138,"props":51385,"children":51386},{"style":261},[51387],{"type":31,"value":51388},"    \"\"\"Classical cost function: expected number of cut edges.\"\"\"\n",{"type":21,"tag":138,"props":51390,"children":51391},{"class":140,"line":27082},[51392,51397,51401],{"type":21,"tag":138,"props":51393,"children":51394},{"style":151},[51395],{"type":31,"value":51396},"    probs ",{"type":21,"tag":138,"props":51398,"children":51399},{"style":145},[51400],{"type":31,"value":210},{"type":21,"tag":138,"props":51402,"children":51403},{"style":151},[51404],{"type":31,"value":51405}," qaoa_circuit(params, p)\n",{"type":21,"tag":138,"props":51407,"children":51408},{"class":140,"line":27123},[51409,51414,51418],{"type":21,"tag":138,"props":51410,"children":51411},{"style":151},[51412],{"type":31,"value":51413},"    total ",{"type":21,"tag":138,"props":51415,"children":51416},{"style":145},[51417],{"type":31,"value":210},{"type":21,"tag":138,"props":51419,"children":51420},{"style":213},[51421],{"type":31,"value":51422}," 0.0\n",{"type":21,"tag":138,"props":51424,"children":51425},{"class":140,"line":27131},[51426,51430,51435,51439,51443],{"type":21,"tag":138,"props":51427,"children":51428},{"style":145},[51429],{"type":31,"value":17037},{"type":21,"tag":138,"props":51431,"children":51432},{"style":151},[51433],{"type":31,"value":51434}," bitstring_idx, prob ",{"type":21,"tag":138,"props":51436,"children":51437},{"style":145},[51438],{"type":31,"value":1502},{"type":21,"tag":138,"props":51440,"children":51441},{"style":213},[51442],{"type":31,"value":26779},{"type":21,"tag":138,"props":51444,"children":51445},{"style":151},[51446],{"type":31,"value":51447},"(probs):\n",{"type":21,"tag":138,"props":51449,"children":51450},{"class":140,"line":27165},[51451,51455,51459,51463,51468,51472,51477,51481,51485,51489,51494],{"type":21,"tag":138,"props":51452,"children":51453},{"style":151},[51454],{"type":31,"value":26695},{"type":21,"tag":138,"props":51456,"children":51457},{"style":145},[51458],{"type":31,"value":210},{"type":21,"tag":138,"props":51460,"children":51461},{"style":213},[51462],{"type":31,"value":26704},{"type":21,"tag":138,"props":51464,"children":51465},{"style":151},[51466],{"type":31,"value":51467},"(bitstring_idx, ",{"type":21,"tag":138,"props":51469,"children":51470},{"style":145},[51471],{"type":31,"value":7537},{"type":21,"tag":138,"props":51473,"children":51474},{"style":261},[51475],{"type":31,"value":51476},"'0",{"type":21,"tag":138,"props":51478,"children":51479},{"style":213},[51480],{"type":31,"value":7547},{"type":21,"tag":138,"props":51482,"children":51483},{"style":151},[51484],{"type":31,"value":37265},{"type":21,"tag":138,"props":51486,"children":51487},{"style":213},[51488],{"type":31,"value":7556},{"type":21,"tag":138,"props":51490,"children":51491},{"style":261},[51492],{"type":31,"value":51493},"b'",{"type":21,"tag":138,"props":51495,"children":51496},{"style":151},[51497],{"type":31,"value":269},{"type":21,"tag":138,"props":51499,"children":51500},{"class":140,"line":27279},[51501,51506,51510,51514,51518,51522,51527,51531,51535,51540,51544,51549,51554],{"type":21,"tag":138,"props":51502,"children":51503},{"style":151},[51504],{"type":31,"value":51505},"        cut ",{"type":21,"tag":138,"props":51507,"children":51508},{"style":145},[51509],{"type":31,"value":210},{"type":21,"tag":138,"props":51511,"children":51512},{"style":213},[51513],{"type":31,"value":19696},{"type":21,"tag":138,"props":51515,"children":51516},{"style":151},[51517],{"type":31,"value":959},{"type":21,"tag":138,"props":51519,"children":51520},{"style":213},[51521],{"type":31,"value":327},{"type":21,"tag":138,"props":51523,"children":51524},{"style":145},[51525],{"type":31,"value":51526}," for",{"type":21,"tag":138,"props":51528,"children":51529},{"style":151},[51530],{"type":31,"value":50968},{"type":21,"tag":138,"props":51532,"children":51533},{"style":145},[51534],{"type":31,"value":1502},{"type":21,"tag":138,"props":51536,"children":51537},{"style":151},[51538],{"type":31,"value":51539}," edges ",{"type":21,"tag":138,"props":51541,"children":51542},{"style":145},[51543],{"type":31,"value":19724},{"type":21,"tag":138,"props":51545,"children":51546},{"style":151},[51547],{"type":31,"value":51548}," bits[u] ",{"type":21,"tag":138,"props":51550,"children":51551},{"style":145},[51552],{"type":31,"value":51553},"!=",{"type":21,"tag":138,"props":51555,"children":51556},{"style":151},[51557],{"type":31,"value":51558}," bits[v])\n",{"type":21,"tag":138,"props":51560,"children":51561},{"class":140,"line":27287},[51562,51567,51572,51577,51581],{"type":21,"tag":138,"props":51563,"children":51564},{"style":151},[51565],{"type":31,"value":51566},"        total ",{"type":21,"tag":138,"props":51568,"children":51569},{"style":145},[51570],{"type":31,"value":51571},"+=",{"type":21,"tag":138,"props":51573,"children":51574},{"style":151},[51575],{"type":31,"value":51576}," prob ",{"type":21,"tag":138,"props":51578,"children":51579},{"style":145},[51580],{"type":31,"value":11419},{"type":21,"tag":138,"props":51582,"children":51583},{"style":151},[51584],{"type":31,"value":51585}," cut\n",{"type":21,"tag":138,"props":51587,"children":51588},{"class":140,"line":27332},[51589,51593,51597,51602],{"type":21,"tag":138,"props":51590,"children":51591},{"style":145},[51592],{"type":31,"value":5595},{"type":21,"tag":138,"props":51594,"children":51595},{"style":145},[51596],{"type":31,"value":26464},{"type":21,"tag":138,"props":51598,"children":51599},{"style":151},[51600],{"type":31,"value":51601},"total  ",{"type":21,"tag":138,"props":51603,"children":51604},{"style":219},[51605],{"type":31,"value":51606},"# Minimize negative cut\n",{"type":21,"tag":138,"props":51608,"children":51609},{"class":140,"line":27350},[51610],{"type":21,"tag":138,"props":51611,"children":51612},{"emptyLinePlaceholder":193},[51613],{"type":31,"value":196},{"type":21,"tag":138,"props":51615,"children":51616},{"class":140,"line":27358},[51617],{"type":21,"tag":138,"props":51618,"children":51619},{"style":219},[51620],{"type":31,"value":51621},"# Optimize p=1 QAOA\n",{"type":21,"tag":138,"props":51623,"children":51624},{"class":140,"line":27444},[51625,51630,51634],{"type":21,"tag":138,"props":51626,"children":51627},{"style":151},[51628],{"type":31,"value":51629},"p ",{"type":21,"tag":138,"props":51631,"children":51632},{"style":145},[51633],{"type":31,"value":210},{"type":21,"tag":138,"props":51635,"children":51636},{"style":213},[51637],{"type":31,"value":1542},{"type":21,"tag":138,"props":51639,"children":51640},{"class":140,"line":36842},[51641,51646,51650,51654,51658,51663,51667,51671],{"type":21,"tag":138,"props":51642,"children":51643},{"style":151},[51644],{"type":31,"value":51645},"init_params ",{"type":21,"tag":138,"props":51647,"children":51648},{"style":145},[51649],{"type":31,"value":210},{"type":21,"tag":138,"props":51651,"children":51652},{"style":151},[51653],{"type":31,"value":46933},{"type":21,"tag":138,"props":51655,"children":51656},{"style":213},[51657],{"type":31,"value":406},{"type":21,"tag":138,"props":51659,"children":51660},{"style":151},[51661],{"type":31,"value":51662},", np.pi, ",{"type":21,"tag":138,"props":51664,"children":51665},{"style":213},[51666],{"type":31,"value":292},{"type":21,"tag":138,"props":51668,"children":51669},{"style":145},[51670],{"type":31,"value":30186},{"type":21,"tag":138,"props":51672,"children":51673},{"style":151},[51674],{"type":31,"value":51675}," p)\n",{"type":21,"tag":138,"props":51677,"children":51678},{"class":140,"line":36860},[51679,51683,51687,51692,51697,51701,51705],{"type":21,"tag":138,"props":51680,"children":51681},{"style":151},[51682],{"type":31,"value":4881},{"type":21,"tag":138,"props":51684,"children":51685},{"style":145},[51686],{"type":31,"value":210},{"type":21,"tag":138,"props":51688,"children":51689},{"style":151},[51690],{"type":31,"value":51691}," minimize(expected_cut, init_params, ",{"type":21,"tag":138,"props":51693,"children":51694},{"style":929},[51695],{"type":31,"value":51696},"method",{"type":21,"tag":138,"props":51698,"children":51699},{"style":145},[51700],{"type":31,"value":210},{"type":21,"tag":138,"props":51702,"children":51703},{"style":261},[51704],{"type":31,"value":44590},{"type":21,"tag":138,"props":51706,"children":51707},{"style":151},[51708],{"type":31,"value":4824},{"type":21,"tag":138,"props":51710,"children":51711},{"class":140,"line":36878},[51712,51717,51721,51725,51730,51734,51738],{"type":21,"tag":138,"props":51713,"children":51714},{"style":929},[51715],{"type":31,"value":51716},"                  options",{"type":21,"tag":138,"props":51718,"children":51719},{"style":145},[51720],{"type":31,"value":210},{"type":21,"tag":138,"props":51722,"children":51723},{"style":151},[51724],{"type":31,"value":7547},{"type":21,"tag":138,"props":51726,"children":51727},{"style":261},[51728],{"type":31,"value":51729},"'maxiter'",{"type":21,"tag":138,"props":51731,"children":51732},{"style":151},[51733],{"type":31,"value":24135},{"type":21,"tag":138,"props":51735,"children":51736},{"style":213},[51737],{"type":31,"value":14119},{"type":21,"tag":138,"props":51739,"children":51740},{"style":151},[51741],{"type":31,"value":7863},{"type":21,"tag":138,"props":51743,"children":51744},{"class":140,"line":36886},[51745],{"type":21,"tag":138,"props":51746,"children":51747},{"emptyLinePlaceholder":193},[51748],{"type":31,"value":196},{"type":21,"tag":138,"props":51750,"children":51751},{"class":140,"line":36919},[51752,51756,51760,51764,51769,51773,51778,51782,51786],{"type":21,"tag":138,"props":51753,"children":51754},{"style":213},[51755],{"type":31,"value":954},{"type":21,"tag":138,"props":51757,"children":51758},{"style":151},[51759],{"type":31,"value":959},{"type":21,"tag":138,"props":51761,"children":51762},{"style":145},[51763],{"type":31,"value":7537},{"type":21,"tag":138,"props":51765,"children":51766},{"style":261},[51767],{"type":31,"value":51768},"\"Optimized params: ",{"type":21,"tag":138,"props":51770,"children":51771},{"style":213},[51772],{"type":31,"value":7547},{"type":21,"tag":138,"props":51774,"children":51775},{"style":151},[51776],{"type":31,"value":51777},"result.x",{"type":21,"tag":138,"props":51779,"children":51780},{"style":213},[51781],{"type":31,"value":7556},{"type":21,"tag":138,"props":51783,"children":51784},{"style":261},[51785],{"type":31,"value":15383},{"type":21,"tag":138,"props":51787,"children":51788},{"style":151},[51789],{"type":31,"value":269},{"type":21,"tag":138,"props":51791,"children":51792},{"class":140,"line":36954},[51793,51797,51801,51805,51810,51814,51818,51823,51827,51831,51836],{"type":21,"tag":138,"props":51794,"children":51795},{"style":213},[51796],{"type":31,"value":954},{"type":21,"tag":138,"props":51798,"children":51799},{"style":151},[51800],{"type":31,"value":959},{"type":21,"tag":138,"props":51802,"children":51803},{"style":145},[51804],{"type":31,"value":7537},{"type":21,"tag":138,"props":51806,"children":51807},{"style":261},[51808],{"type":31,"value":51809},"\"Expected cut: ",{"type":21,"tag":138,"props":51811,"children":51812},{"style":213},[51813],{"type":31,"value":7547},{"type":21,"tag":138,"props":51815,"children":51816},{"style":145},[51817],{"type":31,"value":831},{"type":21,"tag":138,"props":51819,"children":51820},{"style":151},[51821],{"type":31,"value":51822},"result.fun",{"type":21,"tag":138,"props":51824,"children":51825},{"style":145},[51826],{"type":31,"value":37057},{"type":21,"tag":138,"props":51828,"children":51829},{"style":213},[51830],{"type":31,"value":7556},{"type":21,"tag":138,"props":51832,"children":51833},{"style":261},[51834],{"type":31,"value":51835}," \u002F 4.0 maximum\"",{"type":21,"tag":138,"props":51837,"children":51838},{"style":151},[51839],{"type":31,"value":269},{"type":21,"tag":22,"props":51841,"children":51842},{},[51843,51845,51850,51852,51858],{"type":31,"value":51844},"在 ",{"type":21,"tag":103,"props":51846,"children":51848},{"className":51847},[],[51849],{"type":31,"value":41288},{"type":31,"value":51851}," 的情况下运行此代码通常能达到 ",{"type":21,"tag":103,"props":51853,"children":51855},{"className":51854},[],[51856],{"type":31,"value":51857},"expected_cut ≈ 3.5",{"type":31,"value":51859},"——即最大割的 87.5%。",{"type":21,"tag":41,"props":51861,"children":51863},{"id":51862},"采样最佳解",[51864],{"type":31,"value":51862},{"type":21,"tag":22,"props":51866,"children":51867},{},[51868],{"type":31,"value":51869},"优化之后，对电路进行采样以找出最可能的好解：",{"type":21,"tag":128,"props":51871,"children":51873},{"code":51872,"language":132,"meta":7,"className":130,"style":7},"@qml.qnode(dev)\ndef sample_circuit(params, p=1, shots=1000):\n    gammas = params[:p]\n    betas = params[p:]\n    for i in range(n_qubits):\n        qml.Hadamard(wires=i)\n    for layer in range(p):\n        cost_unitary(gammas[layer])\n        mixer_unitary(betas[layer])\n    return qml.sample(wires=range(n_qubits))\n\nsamples = sample_circuit(result.x, shots=1000)\n\n# Count cut values for each bitstring\nfrom collections import Counter\ncut_counts = Counter()\nfor bits in samples:\n    key = ''.join(str(b) for b in bits)\n    cut = sum(1 for u, v in edges if bits[u] != bits[v])\n    cut_counts[(key, cut)] += 1\n\n# Show top 5 most frequent bitstrings\nfor (bits, cut), count in sorted(cut_counts.items(), key=lambda x: -x[1])[:5]:\n    print(f\"{bits}  cut={cut}  frequency={count\u002F10:.1f}%\")\n",[51874],{"type":21,"tag":103,"props":51875,"children":51876},{"__ignoreMap":7},[51877,51888,51929,51944,51959,51982,52001,52024,52031,52038,52066,52073,52106,52113,52121,52142,52159,52180,52229,52285,52301,52308,52316,52379],{"type":21,"tag":138,"props":51878,"children":51879},{"class":140,"line":141},[51880,51884],{"type":21,"tag":138,"props":51881,"children":51882},{"style":4522},[51883],{"type":31,"value":5487},{"type":21,"tag":138,"props":51885,"children":51886},{"style":151},[51887],{"type":31,"value":8778},{"type":21,"tag":138,"props":51889,"children":51890},{"class":140,"line":167},[51891,51895,51900,51904,51908,51912,51917,51921,51925],{"type":21,"tag":138,"props":51892,"children":51893},{"style":145},[51894],{"type":31,"value":5500},{"type":21,"tag":138,"props":51896,"children":51897},{"style":4522},[51898],{"type":31,"value":51899}," sample_circuit",{"type":21,"tag":138,"props":51901,"children":51902},{"style":151},[51903],{"type":31,"value":51172},{"type":21,"tag":138,"props":51905,"children":51906},{"style":145},[51907],{"type":31,"value":210},{"type":21,"tag":138,"props":51909,"children":51910},{"style":213},[51911],{"type":31,"value":327},{"type":21,"tag":138,"props":51913,"children":51914},{"style":151},[51915],{"type":31,"value":51916},", shots",{"type":21,"tag":138,"props":51918,"children":51919},{"style":145},[51920],{"type":31,"value":210},{"type":21,"tag":138,"props":51922,"children":51923},{"style":213},[51924],{"type":31,"value":1736},{"type":21,"tag":138,"props":51926,"children":51927},{"style":151},[51928],{"type":31,"value":7443},{"type":21,"tag":138,"props":51930,"children":51931},{"class":140,"line":189},[51932,51936,51940],{"type":21,"tag":138,"props":51933,"children":51934},{"style":151},[51935],{"type":31,"value":51192},{"type":21,"tag":138,"props":51937,"children":51938},{"style":145},[51939],{"type":31,"value":210},{"type":21,"tag":138,"props":51941,"children":51942},{"style":151},[51943],{"type":31,"value":51201},{"type":21,"tag":138,"props":51945,"children":51946},{"class":140,"line":199},[51947,51951,51955],{"type":21,"tag":138,"props":51948,"children":51949},{"style":151},[51950],{"type":31,"value":51209},{"type":21,"tag":138,"props":51952,"children":51953},{"style":145},[51954],{"type":31,"value":210},{"type":21,"tag":138,"props":51956,"children":51957},{"style":151},[51958],{"type":31,"value":51218},{"type":21,"tag":138,"props":51960,"children":51961},{"class":140,"line":225},[51962,51966,51970,51974,51978],{"type":21,"tag":138,"props":51963,"children":51964},{"style":145},[51965],{"type":31,"value":17037},{"type":21,"tag":138,"props":51967,"children":51968},{"style":151},[51969],{"type":31,"value":7421},{"type":21,"tag":138,"props":51971,"children":51972},{"style":145},[51973],{"type":31,"value":1502},{"type":21,"tag":138,"props":51975,"children":51976},{"style":213},[51977],{"type":31,"value":7430},{"type":21,"tag":138,"props":51979,"children":51980},{"style":151},[51981],{"type":31,"value":48267},{"type":21,"tag":138,"props":51983,"children":51984},{"class":140,"line":233},[51985,51989,51993,51997],{"type":21,"tag":138,"props":51986,"children":51987},{"style":151},[51988],{"type":31,"value":51257},{"type":21,"tag":138,"props":51990,"children":51991},{"style":929},[51992],{"type":31,"value":5460},{"type":21,"tag":138,"props":51994,"children":51995},{"style":145},[51996],{"type":31,"value":210},{"type":21,"tag":138,"props":51998,"children":51999},{"style":151},[52000],{"type":31,"value":48288},{"type":21,"tag":138,"props":52002,"children":52003},{"class":140,"line":272},[52004,52008,52012,52016,52020],{"type":21,"tag":138,"props":52005,"children":52006},{"style":145},[52007],{"type":31,"value":17037},{"type":21,"tag":138,"props":52009,"children":52010},{"style":151},[52011],{"type":31,"value":51289},{"type":21,"tag":138,"props":52013,"children":52014},{"style":145},[52015],{"type":31,"value":1502},{"type":21,"tag":138,"props":52017,"children":52018},{"style":213},[52019],{"type":31,"value":7430},{"type":21,"tag":138,"props":52021,"children":52022},{"style":151},[52023],{"type":31,"value":51302},{"type":21,"tag":138,"props":52025,"children":52026},{"class":140,"line":308},[52027],{"type":21,"tag":138,"props":52028,"children":52029},{"style":151},[52030],{"type":31,"value":51310},{"type":21,"tag":138,"props":52032,"children":52033},{"class":140,"line":16},[52034],{"type":21,"tag":138,"props":52035,"children":52036},{"style":151},[52037],{"type":31,"value":51318},{"type":21,"tag":138,"props":52039,"children":52040},{"class":140,"line":360},[52041,52045,52050,52054,52058,52062],{"type":21,"tag":138,"props":52042,"children":52043},{"style":145},[52044],{"type":31,"value":5595},{"type":21,"tag":138,"props":52046,"children":52047},{"style":151},[52048],{"type":31,"value":52049}," qml.sample(",{"type":21,"tag":138,"props":52051,"children":52052},{"style":929},[52053],{"type":31,"value":5460},{"type":21,"tag":138,"props":52055,"children":52056},{"style":145},[52057],{"type":31,"value":210},{"type":21,"tag":138,"props":52059,"children":52060},{"style":213},[52061],{"type":31,"value":17726},{"type":21,"tag":138,"props":52063,"children":52064},{"style":151},[52065],{"type":31,"value":36160},{"type":21,"tag":138,"props":52067,"children":52068},{"class":140,"line":368},[52069],{"type":21,"tag":138,"props":52070,"children":52071},{"emptyLinePlaceholder":193},[52072],{"type":31,"value":196},{"type":21,"tag":138,"props":52074,"children":52075},{"class":140,"line":377},[52076,52081,52085,52090,52094,52098,52102],{"type":21,"tag":138,"props":52077,"children":52078},{"style":151},[52079],{"type":31,"value":52080},"samples ",{"type":21,"tag":138,"props":52082,"children":52083},{"style":145},[52084],{"type":31,"value":210},{"type":21,"tag":138,"props":52086,"children":52087},{"style":151},[52088],{"type":31,"value":52089}," sample_circuit(result.x, ",{"type":21,"tag":138,"props":52091,"children":52092},{"style":929},[52093],{"type":31,"value":932},{"type":21,"tag":138,"props":52095,"children":52096},{"style":145},[52097],{"type":31,"value":210},{"type":21,"tag":138,"props":52099,"children":52100},{"style":213},[52101],{"type":31,"value":1736},{"type":21,"tag":138,"props":52103,"children":52104},{"style":151},[52105],{"type":31,"value":269},{"type":21,"tag":138,"props":52107,"children":52108},{"class":140,"line":386},[52109],{"type":21,"tag":138,"props":52110,"children":52111},{"emptyLinePlaceholder":193},[52112],{"type":31,"value":196},{"type":21,"tag":138,"props":52114,"children":52115},{"class":140,"line":395},[52116],{"type":21,"tag":138,"props":52117,"children":52118},{"style":219},[52119],{"type":31,"value":52120},"# Count cut values for each bitstring\n",{"type":21,"tag":138,"props":52122,"children":52123},{"class":140,"line":413},[52124,52128,52133,52137],{"type":21,"tag":138,"props":52125,"children":52126},{"style":145},[52127],{"type":31,"value":148},{"type":21,"tag":138,"props":52129,"children":52130},{"style":151},[52131],{"type":31,"value":52132}," collections ",{"type":21,"tag":138,"props":52134,"children":52135},{"style":145},[52136],{"type":31,"value":159},{"type":21,"tag":138,"props":52138,"children":52139},{"style":151},[52140],{"type":31,"value":52141}," Counter\n",{"type":21,"tag":138,"props":52143,"children":52144},{"class":140,"line":12602},[52145,52150,52154],{"type":21,"tag":138,"props":52146,"children":52147},{"style":151},[52148],{"type":31,"value":52149},"cut_counts ",{"type":21,"tag":138,"props":52151,"children":52152},{"style":145},[52153],{"type":31,"value":210},{"type":21,"tag":138,"props":52155,"children":52156},{"style":151},[52157],{"type":31,"value":52158}," Counter()\n",{"type":21,"tag":138,"props":52160,"children":52161},{"class":140,"line":12619},[52162,52166,52171,52175],{"type":21,"tag":138,"props":52163,"children":52164},{"style":145},[52165],{"type":31,"value":1492},{"type":21,"tag":138,"props":52167,"children":52168},{"style":151},[52169],{"type":31,"value":52170}," bits ",{"type":21,"tag":138,"props":52172,"children":52173},{"style":145},[52174],{"type":31,"value":1502},{"type":21,"tag":138,"props":52176,"children":52177},{"style":151},[52178],{"type":31,"value":52179}," samples:\n",{"type":21,"tag":138,"props":52181,"children":52182},{"class":140,"line":12635},[52183,52188,52192,52197,52202,52207,52212,52216,52220,52224],{"type":21,"tag":138,"props":52184,"children":52185},{"style":151},[52186],{"type":31,"value":52187},"    key ",{"type":21,"tag":138,"props":52189,"children":52190},{"style":145},[52191],{"type":31,"value":210},{"type":21,"tag":138,"props":52193,"children":52194},{"style":261},[52195],{"type":31,"value":52196}," ''",{"type":21,"tag":138,"props":52198,"children":52199},{"style":151},[52200],{"type":31,"value":52201},".join(",{"type":21,"tag":138,"props":52203,"children":52204},{"style":213},[52205],{"type":31,"value":52206},"str",{"type":21,"tag":138,"props":52208,"children":52209},{"style":151},[52210],{"type":31,"value":52211},"(b) ",{"type":21,"tag":138,"props":52213,"children":52214},{"style":145},[52215],{"type":31,"value":1492},{"type":21,"tag":138,"props":52217,"children":52218},{"style":151},[52219],{"type":31,"value":26797},{"type":21,"tag":138,"props":52221,"children":52222},{"style":145},[52223],{"type":31,"value":1502},{"type":21,"tag":138,"props":52225,"children":52226},{"style":151},[52227],{"type":31,"value":52228}," bits)\n",{"type":21,"tag":138,"props":52230,"children":52231},{"class":140,"line":12643},[52232,52237,52241,52245,52249,52253,52257,52261,52265,52269,52273,52277,52281],{"type":21,"tag":138,"props":52233,"children":52234},{"style":151},[52235],{"type":31,"value":52236},"    cut ",{"type":21,"tag":138,"props":52238,"children":52239},{"style":145},[52240],{"type":31,"value":210},{"type":21,"tag":138,"props":52242,"children":52243},{"style":213},[52244],{"type":31,"value":19696},{"type":21,"tag":138,"props":52246,"children":52247},{"style":151},[52248],{"type":31,"value":959},{"type":21,"tag":138,"props":52250,"children":52251},{"style":213},[52252],{"type":31,"value":327},{"type":21,"tag":138,"props":52254,"children":52255},{"style":145},[52256],{"type":31,"value":51526},{"type":21,"tag":138,"props":52258,"children":52259},{"style":151},[52260],{"type":31,"value":50968},{"type":21,"tag":138,"props":52262,"children":52263},{"style":145},[52264],{"type":31,"value":1502},{"type":21,"tag":138,"props":52266,"children":52267},{"style":151},[52268],{"type":31,"value":51539},{"type":21,"tag":138,"props":52270,"children":52271},{"style":145},[52272],{"type":31,"value":19724},{"type":21,"tag":138,"props":52274,"children":52275},{"style":151},[52276],{"type":31,"value":51548},{"type":21,"tag":138,"props":52278,"children":52279},{"style":145},[52280],{"type":31,"value":51553},{"type":21,"tag":138,"props":52282,"children":52283},{"style":151},[52284],{"type":31,"value":51558},{"type":21,"tag":138,"props":52286,"children":52287},{"class":140,"line":17760},[52288,52293,52297],{"type":21,"tag":138,"props":52289,"children":52290},{"style":151},[52291],{"type":31,"value":52292},"    cut_counts[(key, cut)] ",{"type":21,"tag":138,"props":52294,"children":52295},{"style":145},[52296],{"type":31,"value":51571},{"type":21,"tag":138,"props":52298,"children":52299},{"style":213},[52300],{"type":31,"value":1542},{"type":21,"tag":138,"props":52302,"children":52303},{"class":140,"line":17778},[52304],{"type":21,"tag":138,"props":52305,"children":52306},{"emptyLinePlaceholder":193},[52307],{"type":31,"value":196},{"type":21,"tag":138,"props":52309,"children":52310},{"class":140,"line":17803},[52311],{"type":21,"tag":138,"props":52312,"children":52313},{"style":219},[52314],{"type":31,"value":52315},"# Show top 5 most frequent bitstrings\n",{"type":21,"tag":138,"props":52317,"children":52318},{"class":140,"line":17830},[52319,52323,52328,52332,52336,52341,52345,52349,52354,52358,52363,52367,52371,52375],{"type":21,"tag":138,"props":52320,"children":52321},{"style":145},[52322],{"type":31,"value":1492},{"type":21,"tag":138,"props":52324,"children":52325},{"style":151},[52326],{"type":31,"value":52327}," (bits, cut), count ",{"type":21,"tag":138,"props":52329,"children":52330},{"style":145},[52331],{"type":31,"value":1502},{"type":21,"tag":138,"props":52333,"children":52334},{"style":213},[52335],{"type":31,"value":38895},{"type":21,"tag":138,"props":52337,"children":52338},{"style":151},[52339],{"type":31,"value":52340},"(cut_counts.items(), ",{"type":21,"tag":138,"props":52342,"children":52343},{"style":929},[52344],{"type":31,"value":4845},{"type":21,"tag":138,"props":52346,"children":52347},{"style":145},[52348],{"type":31,"value":25498},{"type":21,"tag":138,"props":52350,"children":52351},{"style":151},[52352],{"type":31,"value":52353}," x: ",{"type":21,"tag":138,"props":52355,"children":52356},{"style":145},[52357],{"type":31,"value":831},{"type":21,"tag":138,"props":52359,"children":52360},{"style":151},[52361],{"type":31,"value":52362},"x[",{"type":21,"tag":138,"props":52364,"children":52365},{"style":213},[52366],{"type":31,"value":327},{"type":21,"tag":138,"props":52368,"children":52369},{"style":151},[52370],{"type":31,"value":39331},{"type":21,"tag":138,"props":52372,"children":52373},{"style":213},[52374],{"type":31,"value":11480},{"type":21,"tag":138,"props":52376,"children":52377},{"style":151},[52378],{"type":31,"value":20882},{"type":21,"tag":138,"props":52380,"children":52381},{"class":140,"line":17856},[52382,52386,52390,52394,52398,52402,52406,52410,52415,52419,52424,52428,52433,52437,52442,52446,52450,52455,52459,52464],{"type":21,"tag":138,"props":52383,"children":52384},{"style":213},[52385],{"type":31,"value":6225},{"type":21,"tag":138,"props":52387,"children":52388},{"style":151},[52389],{"type":31,"value":959},{"type":21,"tag":138,"props":52391,"children":52392},{"style":145},[52393],{"type":31,"value":7537},{"type":21,"tag":138,"props":52395,"children":52396},{"style":261},[52397],{"type":31,"value":15383},{"type":21,"tag":138,"props":52399,"children":52400},{"style":213},[52401],{"type":31,"value":7547},{"type":21,"tag":138,"props":52403,"children":52404},{"style":151},[52405],{"type":31,"value":39002},{"type":21,"tag":138,"props":52407,"children":52408},{"style":213},[52409],{"type":31,"value":7556},{"type":21,"tag":138,"props":52411,"children":52412},{"style":261},[52413],{"type":31,"value":52414},"  cut=",{"type":21,"tag":138,"props":52416,"children":52417},{"style":213},[52418],{"type":31,"value":7547},{"type":21,"tag":138,"props":52420,"children":52421},{"style":151},[52422],{"type":31,"value":52423},"cut",{"type":21,"tag":138,"props":52425,"children":52426},{"style":213},[52427],{"type":31,"value":7556},{"type":21,"tag":138,"props":52429,"children":52430},{"style":261},[52431],{"type":31,"value":52432},"  frequency=",{"type":21,"tag":138,"props":52434,"children":52435},{"style":213},[52436],{"type":31,"value":7547},{"type":21,"tag":138,"props":52438,"children":52439},{"style":151},[52440],{"type":31,"value":52441},"count",{"type":21,"tag":138,"props":52443,"children":52444},{"style":145},[52445],{"type":31,"value":5075},{"type":21,"tag":138,"props":52447,"children":52448},{"style":213},[52449],{"type":31,"value":14075},{"type":21,"tag":138,"props":52451,"children":52452},{"style":145},[52453],{"type":31,"value":52454},":.1f",{"type":21,"tag":138,"props":52456,"children":52457},{"style":213},[52458],{"type":31,"value":7556},{"type":21,"tag":138,"props":52460,"children":52461},{"style":261},[52462],{"type":31,"value":52463},"%\"",{"type":21,"tag":138,"props":52465,"children":52466},{"style":151},[52467],{"type":31,"value":269},{"type":21,"tag":22,"props":52469,"children":52470},{},[52471],{"type":31,"value":52472},"预期输出：",{"type":21,"tag":128,"props":52474,"children":52476},{"code":52475},"0101  cut=4  frequency=28.3%\n1010  cut=4  frequency=27.1%\n0110  cut=3  frequency=8.4%\n...\n",[52477],{"type":21,"tag":103,"props":52478,"children":52479},{"__ignoreMap":7},[52480],{"type":31,"value":52475},{"type":21,"tag":22,"props":52482,"children":52483},{},[52484,52486,52491,52492,52497],{"type":31,"value":52485},"最优解（",{"type":21,"tag":103,"props":52487,"children":52489},{"className":52488},[],[52490],{"type":31,"value":50618},{"type":31,"value":500},{"type":21,"tag":103,"props":52493,"children":52495},{"className":52494},[],[52496],{"type":31,"value":14234},{"type":31,"value":52498},"）占据主导地位——QAOA 放大了它们的概率。",{"type":21,"tag":41,"props":52500,"children":52502},{"id":52501},"用-hlquantum-解决同一问题",[52503],{"type":31,"value":52504},"用 HLQuantum 解决同一问题",{"type":21,"tag":22,"props":52506,"children":52507},{},[52508],{"type":31,"value":52509},"HLQuantum 内置的 QAOA 让你完全跳过电路构建：",{"type":21,"tag":128,"props":52511,"children":52513},{"code":52512,"language":132,"meta":7,"className":130,"style":7},"import hlquantum as hlq\n\ngraph = [(0, 1), (1, 2), (2, 3), (3, 0)]\n\nresult = hlq.algorithms.qaoa(\n    graph=graph,\n    problem='max_cut',\n    p=2,\n    backend='pennylane',\n    shots=2000,\n)\n\nprint(result.best_solution)   # '0101' or '1010'\nprint(result.cut_value)       # 4\nprint(result.approximation_ratio)  # ~0.96 for p=2\n",[52514],{"type":21,"tag":103,"props":52515,"children":52516},{"__ignoreMap":7},[52517,52536,52543,52623,52630,52646,52663,52684,52704,52723,52742,52749,52756,52773,52790],{"type":21,"tag":138,"props":52518,"children":52519},{"class":140,"line":141},[52520,52524,52528,52532],{"type":21,"tag":138,"props":52521,"children":52522},{"style":145},[52523],{"type":31,"value":159},{"type":21,"tag":138,"props":52525,"children":52526},{"style":151},[52527],{"type":31,"value":41047},{"type":21,"tag":138,"props":52529,"children":52530},{"style":145},[52531],{"type":31,"value":5356},{"type":21,"tag":138,"props":52533,"children":52534},{"style":151},[52535],{"type":31,"value":41056},{"type":21,"tag":138,"props":52537,"children":52538},{"class":140,"line":167},[52539],{"type":21,"tag":138,"props":52540,"children":52541},{"emptyLinePlaceholder":193},[52542],{"type":31,"value":196},{"type":21,"tag":138,"props":52544,"children":52545},{"class":140,"line":189},[52546,52551,52555,52559,52563,52567,52571,52575,52579,52583,52587,52591,52595,52599,52603,52607,52611,52615,52619],{"type":21,"tag":138,"props":52547,"children":52548},{"style":151},[52549],{"type":31,"value":52550},"graph ",{"type":21,"tag":138,"props":52552,"children":52553},{"style":145},[52554],{"type":31,"value":210},{"type":21,"tag":138,"props":52556,"children":52557},{"style":151},[52558],{"type":31,"value":1394},{"type":21,"tag":138,"props":52560,"children":52561},{"style":213},[52562],{"type":31,"value":406},{"type":21,"tag":138,"props":52564,"children":52565},{"style":151},[52566],{"type":31,"value":258},{"type":21,"tag":138,"props":52568,"children":52569},{"style":213},[52570],{"type":31,"value":327},{"type":21,"tag":138,"props":52572,"children":52573},{"style":151},[52574],{"type":31,"value":1411},{"type":21,"tag":138,"props":52576,"children":52577},{"style":213},[52578],{"type":31,"value":327},{"type":21,"tag":138,"props":52580,"children":52581},{"style":151},[52582],{"type":31,"value":258},{"type":21,"tag":138,"props":52584,"children":52585},{"style":213},[52586],{"type":31,"value":292},{"type":21,"tag":138,"props":52588,"children":52589},{"style":151},[52590],{"type":31,"value":1411},{"type":21,"tag":138,"props":52592,"children":52593},{"style":213},[52594],{"type":31,"value":292},{"type":21,"tag":138,"props":52596,"children":52597},{"style":151},[52598],{"type":31,"value":258},{"type":21,"tag":138,"props":52600,"children":52601},{"style":213},[52602],{"type":31,"value":253},{"type":21,"tag":138,"props":52604,"children":52605},{"style":151},[52606],{"type":31,"value":1411},{"type":21,"tag":138,"props":52608,"children":52609},{"style":213},[52610],{"type":31,"value":253},{"type":21,"tag":138,"props":52612,"children":52613},{"style":151},[52614],{"type":31,"value":258},{"type":21,"tag":138,"props":52616,"children":52617},{"style":213},[52618],{"type":31,"value":406},{"type":21,"tag":138,"props":52620,"children":52621},{"style":151},[52622],{"type":31,"value":1460},{"type":21,"tag":138,"props":52624,"children":52625},{"class":140,"line":199},[52626],{"type":21,"tag":138,"props":52627,"children":52628},{"emptyLinePlaceholder":193},[52629],{"type":31,"value":196},{"type":21,"tag":138,"props":52631,"children":52632},{"class":140,"line":225},[52633,52637,52641],{"type":21,"tag":138,"props":52634,"children":52635},{"style":151},[52636],{"type":31,"value":4881},{"type":21,"tag":138,"props":52638,"children":52639},{"style":145},[52640],{"type":31,"value":210},{"type":21,"tag":138,"props":52642,"children":52643},{"style":151},[52644],{"type":31,"value":52645}," hlq.algorithms.qaoa(\n",{"type":21,"tag":138,"props":52647,"children":52648},{"class":140,"line":233},[52649,52654,52658],{"type":21,"tag":138,"props":52650,"children":52651},{"style":929},[52652],{"type":31,"value":52653},"    graph",{"type":21,"tag":138,"props":52655,"children":52656},{"style":145},[52657],{"type":31,"value":210},{"type":21,"tag":138,"props":52659,"children":52660},{"style":151},[52661],{"type":31,"value":52662},"graph,\n",{"type":21,"tag":138,"props":52664,"children":52665},{"class":140,"line":272},[52666,52671,52675,52680],{"type":21,"tag":138,"props":52667,"children":52668},{"style":929},[52669],{"type":31,"value":52670},"    problem",{"type":21,"tag":138,"props":52672,"children":52673},{"style":145},[52674],{"type":31,"value":210},{"type":21,"tag":138,"props":52676,"children":52677},{"style":261},[52678],{"type":31,"value":52679},"'max_cut'",{"type":21,"tag":138,"props":52681,"children":52682},{"style":151},[52683],{"type":31,"value":4824},{"type":21,"tag":138,"props":52685,"children":52686},{"class":140,"line":308},[52687,52692,52696,52700],{"type":21,"tag":138,"props":52688,"children":52689},{"style":929},[52690],{"type":31,"value":52691},"    p",{"type":21,"tag":138,"props":52693,"children":52694},{"style":145},[52695],{"type":31,"value":210},{"type":21,"tag":138,"props":52697,"children":52698},{"style":213},[52699],{"type":31,"value":292},{"type":21,"tag":138,"props":52701,"children":52702},{"style":151},[52703],{"type":31,"value":4824},{"type":21,"tag":138,"props":52705,"children":52706},{"class":140,"line":16},[52707,52711,52715,52719],{"type":21,"tag":138,"props":52708,"children":52709},{"style":929},[52710],{"type":31,"value":44561},{"type":21,"tag":138,"props":52712,"children":52713},{"style":145},[52714],{"type":31,"value":210},{"type":21,"tag":138,"props":52716,"children":52717},{"style":261},[52718],{"type":31,"value":43896},{"type":21,"tag":138,"props":52720,"children":52721},{"style":151},[52722],{"type":31,"value":4824},{"type":21,"tag":138,"props":52724,"children":52725},{"class":140,"line":360},[52726,52730,52734,52738],{"type":21,"tag":138,"props":52727,"children":52728},{"style":929},[52729],{"type":31,"value":50488},{"type":21,"tag":138,"props":52731,"children":52732},{"style":145},[52733],{"type":31,"value":210},{"type":21,"tag":138,"props":52735,"children":52736},{"style":213},[52737],{"type":31,"value":11279},{"type":21,"tag":138,"props":52739,"children":52740},{"style":151},[52741],{"type":31,"value":4824},{"type":21,"tag":138,"props":52743,"children":52744},{"class":140,"line":368},[52745],{"type":21,"tag":138,"props":52746,"children":52747},{"style":151},[52748],{"type":31,"value":269},{"type":21,"tag":138,"props":52750,"children":52751},{"class":140,"line":377},[52752],{"type":21,"tag":138,"props":52753,"children":52754},{"emptyLinePlaceholder":193},[52755],{"type":31,"value":196},{"type":21,"tag":138,"props":52757,"children":52758},{"class":140,"line":386},[52759,52763,52768],{"type":21,"tag":138,"props":52760,"children":52761},{"style":213},[52762],{"type":31,"value":954},{"type":21,"tag":138,"props":52764,"children":52765},{"style":151},[52766],{"type":31,"value":52767},"(result.best_solution)   ",{"type":21,"tag":138,"props":52769,"children":52770},{"style":219},[52771],{"type":31,"value":52772},"# '0101' or '1010'\n",{"type":21,"tag":138,"props":52774,"children":52775},{"class":140,"line":395},[52776,52780,52785],{"type":21,"tag":138,"props":52777,"children":52778},{"style":213},[52779],{"type":31,"value":954},{"type":21,"tag":138,"props":52781,"children":52782},{"style":151},[52783],{"type":31,"value":52784},"(result.cut_value)       ",{"type":21,"tag":138,"props":52786,"children":52787},{"style":219},[52788],{"type":31,"value":52789},"# 4\n",{"type":21,"tag":138,"props":52791,"children":52792},{"class":140,"line":413},[52793,52797,52802],{"type":21,"tag":138,"props":52794,"children":52795},{"style":213},[52796],{"type":31,"value":954},{"type":21,"tag":138,"props":52798,"children":52799},{"style":151},[52800],{"type":31,"value":52801},"(result.approximation_ratio)  ",{"type":21,"tag":138,"props":52803,"children":52804},{"style":219},[52805],{"type":31,"value":52806},"# ~0.96 for p=2\n",{"type":21,"tag":22,"props":52808,"children":52809},{},[52810],{"type":31,"value":52811},"只需一个标志即可切换后端：",{"type":21,"tag":128,"props":52813,"children":52815},{"code":52814,"language":132,"meta":7,"className":130,"style":7},"# Run on Qiskit Aer\nresult_qiskit = hlq.algorithms.qaoa(graph=graph, problem='max_cut', p=2, backend='qiskit')\n\n# Run on real IonQ hardware (if you have credits)\nresult_ionq = hlq.algorithms.qaoa(graph=graph, problem='max_cut', p=2,\n                                   backend='ionq', device='aria-1')\n",[52816],{"type":21,"tag":103,"props":52817,"children":52818},{"__ignoreMap":7},[52819,52827,52905,52912,52920,52980],{"type":21,"tag":138,"props":52820,"children":52821},{"class":140,"line":141},[52822],{"type":21,"tag":138,"props":52823,"children":52824},{"style":219},[52825],{"type":31,"value":52826},"# Run on Qiskit Aer\n",{"type":21,"tag":138,"props":52828,"children":52829},{"class":140,"line":167},[52830,52834,52838,52843,52848,52852,52857,52861,52865,52869,52873,52877,52881,52885,52889,52893,52897,52901],{"type":21,"tag":138,"props":52831,"children":52832},{"style":151},[52833],{"type":31,"value":43349},{"type":21,"tag":138,"props":52835,"children":52836},{"style":145},[52837],{"type":31,"value":210},{"type":21,"tag":138,"props":52839,"children":52840},{"style":151},[52841],{"type":31,"value":52842}," hlq.algorithms.qaoa(",{"type":21,"tag":138,"props":52844,"children":52845},{"style":929},[52846],{"type":31,"value":52847},"graph",{"type":21,"tag":138,"props":52849,"children":52850},{"style":145},[52851],{"type":31,"value":210},{"type":21,"tag":138,"props":52853,"children":52854},{"style":151},[52855],{"type":31,"value":52856},"graph, ",{"type":21,"tag":138,"props":52858,"children":52859},{"style":929},[52860],{"type":31,"value":12143},{"type":21,"tag":138,"props":52862,"children":52863},{"style":145},[52864],{"type":31,"value":210},{"type":21,"tag":138,"props":52866,"children":52867},{"style":261},[52868],{"type":31,"value":52679},{"type":21,"tag":138,"props":52870,"children":52871},{"style":151},[52872],{"type":31,"value":258},{"type":21,"tag":138,"props":52874,"children":52875},{"style":929},[52876],{"type":31,"value":22},{"type":21,"tag":138,"props":52878,"children":52879},{"style":145},[52880],{"type":31,"value":210},{"type":21,"tag":138,"props":52882,"children":52883},{"style":213},[52884],{"type":31,"value":292},{"type":21,"tag":138,"props":52886,"children":52887},{"style":151},[52888],{"type":31,"value":258},{"type":21,"tag":138,"props":52890,"children":52891},{"style":929},[52892],{"type":31,"value":11000},{"type":21,"tag":138,"props":52894,"children":52895},{"style":145},[52896],{"type":31,"value":210},{"type":21,"tag":138,"props":52898,"children":52899},{"style":261},[52900],{"type":31,"value":41136},{"type":21,"tag":138,"props":52902,"children":52903},{"style":151},[52904],{"type":31,"value":269},{"type":21,"tag":138,"props":52906,"children":52907},{"class":140,"line":189},[52908],{"type":21,"tag":138,"props":52909,"children":52910},{"emptyLinePlaceholder":193},[52911],{"type":31,"value":196},{"type":21,"tag":138,"props":52913,"children":52914},{"class":140,"line":199},[52915],{"type":21,"tag":138,"props":52916,"children":52917},{"style":219},[52918],{"type":31,"value":52919},"# Run on real IonQ hardware (if you have credits)\n",{"type":21,"tag":138,"props":52921,"children":52922},{"class":140,"line":225},[52923,52928,52932,52936,52940,52944,52948,52952,52956,52960,52964,52968,52972,52976],{"type":21,"tag":138,"props":52924,"children":52925},{"style":151},[52926],{"type":31,"value":52927},"result_ionq ",{"type":21,"tag":138,"props":52929,"children":52930},{"style":145},[52931],{"type":31,"value":210},{"type":21,"tag":138,"props":52933,"children":52934},{"style":151},[52935],{"type":31,"value":52842},{"type":21,"tag":138,"props":52937,"children":52938},{"style":929},[52939],{"type":31,"value":52847},{"type":21,"tag":138,"props":52941,"children":52942},{"style":145},[52943],{"type":31,"value":210},{"type":21,"tag":138,"props":52945,"children":52946},{"style":151},[52947],{"type":31,"value":52856},{"type":21,"tag":138,"props":52949,"children":52950},{"style":929},[52951],{"type":31,"value":12143},{"type":21,"tag":138,"props":52953,"children":52954},{"style":145},[52955],{"type":31,"value":210},{"type":21,"tag":138,"props":52957,"children":52958},{"style":261},[52959],{"type":31,"value":52679},{"type":21,"tag":138,"props":52961,"children":52962},{"style":151},[52963],{"type":31,"value":258},{"type":21,"tag":138,"props":52965,"children":52966},{"style":929},[52967],{"type":31,"value":22},{"type":21,"tag":138,"props":52969,"children":52970},{"style":145},[52971],{"type":31,"value":210},{"type":21,"tag":138,"props":52973,"children":52974},{"style":213},[52975],{"type":31,"value":292},{"type":21,"tag":138,"props":52977,"children":52978},{"style":151},[52979],{"type":31,"value":4824},{"type":21,"tag":138,"props":52981,"children":52982},{"class":140,"line":233},[52983,52988,52992,52996,53000,53004,53008,53012],{"type":21,"tag":138,"props":52984,"children":52985},{"style":929},[52986],{"type":31,"value":52987},"                                   backend",{"type":21,"tag":138,"props":52989,"children":52990},{"style":145},[52991],{"type":31,"value":210},{"type":21,"tag":138,"props":52993,"children":52994},{"style":261},[52995],{"type":31,"value":44000},{"type":21,"tag":138,"props":52997,"children":52998},{"style":151},[52999],{"type":31,"value":258},{"type":21,"tag":138,"props":53001,"children":53002},{"style":929},[53003],{"type":31,"value":44009},{"type":21,"tag":138,"props":53005,"children":53006},{"style":145},[53007],{"type":31,"value":210},{"type":21,"tag":138,"props":53009,"children":53010},{"style":261},[53011],{"type":31,"value":44018},{"type":21,"tag":138,"props":53013,"children":53014},{"style":151},[53015],{"type":31,"value":269},{"type":21,"tag":41,"props":53017,"children":53019},{"id":53018},"增大-p-以获得更好的结果",[53020],{"type":31,"value":53021},"增大 p 以获得更好的结果",{"type":21,"tag":22,"props":53023,"children":53024},{},[53025,53027,53032,53034,53040],{"type":31,"value":53026},"QAOA 的近似比会随着深度 ",{"type":21,"tag":103,"props":53028,"children":53030},{"className":53029},[],[53031],{"type":31,"value":22},{"type":31,"value":53033}," 的增加而提升。当 ",{"type":21,"tag":103,"props":53035,"children":53037},{"className":53036},[],[53038],{"type":31,"value":53039},"p→∞",{"type":31,"value":53041}," 时，QAOA 能精确求解问题。在实践中：",{"type":21,"tag":3162,"props":53043,"children":53044},{},[53045,53065],{"type":21,"tag":3166,"props":53046,"children":53047},{},[53048],{"type":21,"tag":3170,"props":53049,"children":53050},{},[53051,53055,53060],{"type":21,"tag":3174,"props":53052,"children":53053},{},[53054],{"type":31,"value":22},{"type":21,"tag":3174,"props":53056,"children":53057},{},[53058],{"type":31,"value":53059},"典型近似比（Max-Cut）",{"type":21,"tag":3174,"props":53061,"children":53062},{},[53063],{"type":31,"value":53064},"所需门数",{"type":21,"tag":3188,"props":53066,"children":53067},{},[53068,53085,53102,53119],{"type":21,"tag":3170,"props":53069,"children":53070},{},[53071,53075,53080],{"type":21,"tag":3195,"props":53072,"children":53073},{},[53074],{"type":31,"value":327},{"type":21,"tag":3195,"props":53076,"children":53077},{},[53078],{"type":31,"value":53079},"~0.75",{"type":21,"tag":3195,"props":53081,"children":53082},{},[53083],{"type":31,"value":53084},"2×edges + 4n",{"type":21,"tag":3170,"props":53086,"children":53087},{},[53088,53092,53097],{"type":21,"tag":3195,"props":53089,"children":53090},{},[53091],{"type":31,"value":292},{"type":21,"tag":3195,"props":53093,"children":53094},{},[53095],{"type":31,"value":53096},"~0.86",{"type":21,"tag":3195,"props":53098,"children":53099},{},[53100],{"type":31,"value":53101},"4×edges + 8n",{"type":21,"tag":3170,"props":53103,"children":53104},{},[53105,53109,53114],{"type":21,"tag":3195,"props":53106,"children":53107},{},[53108],{"type":31,"value":253},{"type":21,"tag":3195,"props":53110,"children":53111},{},[53112],{"type":31,"value":53113},"~0.91",{"type":21,"tag":3195,"props":53115,"children":53116},{},[53117],{"type":31,"value":53118},"6×edges + 12n",{"type":21,"tag":3170,"props":53120,"children":53121},{},[53122,53126,53131],{"type":21,"tag":3195,"props":53123,"children":53124},{},[53125],{"type":31,"value":11480},{"type":21,"tag":3195,"props":53127,"children":53128},{},[53129],{"type":31,"value":53130},"~0.95",{"type":21,"tag":3195,"props":53132,"children":53133},{},[53134],{"type":31,"value":53135},"10×edges + 20n",{"type":21,"tag":22,"props":53137,"children":53138},{},[53139,53141,53147,53149,53154,53155,53161],{"type":31,"value":53140},"权衡在于：更深的电路在真实硬件上会累积更多噪声。在模拟器上，使用 ",{"type":21,"tag":103,"props":53142,"children":53144},{"className":53143},[],[53145],{"type":31,"value":53146},"p=3",{"type":31,"value":53148}," 或更高。在 NISQ QPU 上，",{"type":21,"tag":103,"props":53150,"children":53152},{"className":53151},[],[53153],{"type":31,"value":41288},{"type":31,"value":42254},{"type":21,"tag":103,"props":53156,"children":53158},{"className":53157},[],[53159],{"type":31,"value":53160},"p=2",{"type":31,"value":53162}," 通常是实际的上限。",{"type":21,"tag":41,"props":53164,"children":53166},{"id":53165},"qaoa-何时值得使用",[53167],{"type":31,"value":53168},"QAOA 何时值得使用？",{"type":21,"tag":22,"props":53170,"children":53171},{},[53172],{"type":21,"tag":16815,"props":53173,"children":53174},{},[53175],{"type":31,"value":53176},"目前适用于：",{"type":21,"tag":1118,"props":53178,"children":53179},{},[53180,53185,53190],{"type":21,"tag":71,"props":53181,"children":53182},{},[53183],{"type":31,"value":53184},"对 NISQ 设备进行基准测试（QAOA 是一种标准的基准电路）",{"type":21,"tag":71,"props":53186,"children":53187},{},[53188],{"type":31,"value":53189},"关于变分量子算法的学术研究",{"type":21,"tag":71,"props":53191,"children":53192},{},[53193],{"type":31,"value":53194},"模拟器上的小型图（少于 20 个节点）",{"type":21,"tag":22,"props":53196,"children":53197},{},[53198],{"type":21,"tag":16815,"props":53199,"children":53200},{},[53201],{"type":31,"value":53202},"尚不适用于：",{"type":21,"tag":1118,"props":53204,"children":53205},{},[53206,53211],{"type":21,"tag":71,"props":53207,"children":53208},{},[53209],{"type":31,"value":53210},"大规模真实硬件上的生产级优化——经典启发式方法（模拟退火、禁忌搜索）在实际问题上仍然优于 QAOA",{"type":21,"tag":71,"props":53212,"children":53213},{},[53214],{"type":31,"value":53215},"大型图——电路深度随图的密度而增长",{"type":21,"tag":22,"props":53217,"children":53218},{},[53219,53224,53226,53231],{"type":21,"tag":16815,"props":53220,"children":53221},{},[53222],{"type":31,"value":53223},"前景展望：",{"type":31,"value":53225}," 在未来具备高深度电路的容错硬件上，大 ",{"type":21,"tag":103,"props":53227,"children":53229},{"className":53228},[],[53230],{"type":31,"value":22},{"type":31,"value":53232}," 的 QAOA 可能为稠密的 NP-hard 优化提供真正的加速。其理论基础是扎实的；只是硬件还未跟上。",{"type":21,"tag":41,"props":53234,"children":53236},{"id":53235},"后续步骤",[53237],{"type":31,"value":53235},{"type":21,"tag":1118,"props":53239,"children":53240},{},[53241,53254,53267],{"type":21,"tag":71,"props":53242,"children":53243},{},[53244,53252],{"type":21,"tag":16815,"props":53245,"children":53246},{},[53247],{"type":21,"tag":26,"props":53248,"children":53249},{"href":17332},[53250],{"type":31,"value":53251},"PennyLane SDK 指南",{"type":31,"value":53253}," —— 设置 PennyLane 以运行更多变分算法",{"type":21,"tag":71,"props":53255,"children":53256},{},[53257,53265],{"type":21,"tag":16815,"props":53258,"children":53259},{},[53260],{"type":21,"tag":26,"props":53261,"children":53262},{"href":3623},[53263],{"type":31,"value":53264},"VQE 指南",{"type":31,"value":53266}," —— 面向量子化学的姊妹算法",{"type":21,"tag":71,"props":53268,"children":53269},{},[53270,53277],{"type":21,"tag":16815,"props":53271,"children":53272},{},[53273],{"type":21,"tag":26,"props":53274,"children":53275},{"href":40756},[53276],{"type":31,"value":40759},{"type":31,"value":53278}," —— 用一套 API 在任意后端上运行 QAOA",{"type":21,"tag":1174,"props":53280,"children":53281},{},[53282],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":53284},[53285,53286,53287,53288,53289,53290,53291,53292],{"id":50586,"depth":167,"text":50589},{"id":50628,"depth":167,"text":50631},{"id":50704,"depth":167,"text":50707},{"id":51862,"depth":167,"text":51862},{"id":52501,"depth":167,"text":52504},{"id":53018,"depth":167,"text":53021},{"id":53165,"depth":167,"text":53168},{"id":53235,"depth":167,"text":53235},"content:zh:blog:qaoa-max-cut-tutorial.md","zh\u002Fblog\u002Fqaoa-max-cut-tutorial.md","zh\u002Fblog\u002Fqaoa-max-cut-tutorial",{"_path":53297,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":53298,"description":53299,"date":53300,"author":11,"tags":53301,"readingTime":272,"body":53302,"_type":1193,"_id":55271,"_source":1195,"_file":55272,"_stem":55273,"_extension":1198},"\u002Fzh\u002Fblog\u002Fquantum-simulators-compared","免费量子模拟器对比：Qiskit Aer vs Cirq vs PennyLane vs CUDA-Q","对主流免费量子模拟器的实用对比——性能、量子比特上限、GPU 支持，以及各自的适用场景。","2026-02-10",[16880,13895,7932],{"type":18,"children":53303,"toc":55262},[53304,53309,53314,53497,53503,53512,53565,53735,53745,53751,53767,54090,54110,54133,54180,54190,54196,54205,54437,54447,54465,54475,54481,54490,54662,54672,54678,54689,54899,54909,54915,54926,55253,55258],{"type":21,"tag":22,"props":53305,"children":53306},{},[53307],{"type":31,"value":53308},"量子模拟器让你无需在硬件排队中等待或按次付费即可测试电路。但目前有六款主流模拟器可免费使用，你该选哪一个呢？以下是一份实用的梳理。",{"type":21,"tag":41,"props":53310,"children":53312},{"id":53311},"快速答案",[53313],{"type":31,"value":53311},{"type":21,"tag":3162,"props":53315,"children":53316},{},[53317,53342],{"type":21,"tag":3166,"props":53318,"children":53319},{},[53320],{"type":21,"tag":3170,"props":53321,"children":53322},{},[53323,53328,53332,53337],{"type":21,"tag":3174,"props":53324,"children":53325},{},[53326],{"type":31,"value":53327},"模拟器",{"type":21,"tag":3174,"props":53329,"children":53330},{},[53331],{"type":31,"value":42532},{"type":21,"tag":3174,"props":53333,"children":53334},{},[53335],{"type":31,"value":53336},"最大量子比特数（CPU）",{"type":21,"tag":3174,"props":53338,"children":53339},{},[53340],{"type":31,"value":53341},"GPU？",{"type":21,"tag":3188,"props":53343,"children":53344},{},[53345,53371,53397,53423,53448,53473],{"type":21,"tag":3170,"props":53346,"children":53347},{},[53348,53356,53361,53366],{"type":21,"tag":3195,"props":53349,"children":53350},{},[53351],{"type":21,"tag":16815,"props":53352,"children":53353},{},[53354],{"type":31,"value":53355},"Qiskit Aer",{"type":21,"tag":3195,"props":53357,"children":53358},{},[53359],{"type":31,"value":53360},"通用场景",{"type":21,"tag":3195,"props":53362,"children":53363},{},[53364],{"type":31,"value":53365},"~30（statevector）",{"type":21,"tag":3195,"props":53367,"children":53368},{},[53369],{"type":31,"value":53370},"✅ AerCuda",{"type":21,"tag":3170,"props":53372,"children":53373},{},[53374,53382,53387,53392],{"type":21,"tag":3195,"props":53375,"children":53376},{},[53377],{"type":21,"tag":16815,"props":53378,"children":53379},{},[53380],{"type":31,"value":53381},"Cirq Simulator",{"type":21,"tag":3195,"props":53383,"children":53384},{},[53385],{"type":31,"value":53386},"Cirq 电路、密度矩阵",{"type":21,"tag":3195,"props":53388,"children":53389},{},[53390],{"type":31,"value":53391},"~25",{"type":21,"tag":3195,"props":53393,"children":53394},{},[53395],{"type":31,"value":53396},"❌",{"type":21,"tag":3170,"props":53398,"children":53399},{},[53400,53408,53413,53418],{"type":21,"tag":3195,"props":53401,"children":53402},{},[53403],{"type":21,"tag":16815,"props":53404,"children":53405},{},[53406],{"type":31,"value":53407},"PennyLane default.qubit",{"type":21,"tag":3195,"props":53409,"children":53410},{},[53411],{"type":31,"value":53412},"QML、梯度",{"type":21,"tag":3195,"props":53414,"children":53415},{},[53416],{"type":31,"value":53417},"~20",{"type":21,"tag":3195,"props":53419,"children":53420},{},[53421],{"type":31,"value":53422},"✅ lightning.gpu",{"type":21,"tag":3170,"props":53424,"children":53425},{},[53426,53434,53439,53444],{"type":21,"tag":3195,"props":53427,"children":53428},{},[53429],{"type":21,"tag":16815,"props":53430,"children":53431},{},[53432],{"type":31,"value":53433},"PennyLane lightning.qubit",{"type":21,"tag":3195,"props":53435,"children":53436},{},[53437],{"type":31,"value":53438},"快速 CPU 模拟",{"type":21,"tag":3195,"props":53440,"children":53441},{},[53442],{"type":31,"value":53443},"~30",{"type":21,"tag":3195,"props":53445,"children":53446},{},[53447],{"type":31,"value":53422},{"type":21,"tag":3170,"props":53449,"children":53450},{},[53451,53458,53463,53468],{"type":21,"tag":3195,"props":53452,"children":53453},{},[53454],{"type":21,"tag":16815,"props":53455,"children":53456},{},[53457],{"type":31,"value":42356},{"type":21,"tag":3195,"props":53459,"children":53460},{},[53461],{"type":31,"value":53462},"大型电路、速度",{"type":21,"tag":3195,"props":53464,"children":53465},{},[53466],{"type":31,"value":53467},"~34（单 GPU）",{"type":21,"tag":3195,"props":53469,"children":53470},{},[53471],{"type":31,"value":53472},"✅ 原生",{"type":21,"tag":3170,"props":53474,"children":53475},{},[53476,53484,53489,53493],{"type":21,"tag":3195,"props":53477,"children":53478},{},[53479],{"type":21,"tag":16815,"props":53480,"children":53481},{},[53482],{"type":31,"value":53483},"Braket LocalSimulator",{"type":21,"tag":3195,"props":53485,"children":53486},{},[53487],{"type":31,"value":53488},"Braket 电路、免费",{"type":21,"tag":3195,"props":53490,"children":53491},{},[53492],{"type":31,"value":53391},{"type":21,"tag":3195,"props":53494,"children":53495},{},[53496],{"type":31,"value":53396},{"type":21,"tag":41,"props":53498,"children":53500},{"id":53499},"qiskit-aer主力工具",[53501],{"type":31,"value":53502},"Qiskit Aer：主力工具",{"type":21,"tag":22,"props":53504,"children":53505},{},[53506,53510],{"type":21,"tag":26,"props":53507,"children":53508},{"href":1126},[53509],{"type":31,"value":53355},{"type":31,"value":53511}," 是功能最完备的免费模拟器。它支持多种模拟方法：",{"type":21,"tag":1118,"props":53513,"children":53514},{},[53515,53525,53535,53545,53555],{"type":21,"tag":71,"props":53516,"children":53517},{},[53518,53523],{"type":21,"tag":16815,"props":53519,"children":53520},{},[53521],{"type":31,"value":53522},"statevector_simulator",{"type":31,"value":53524},"：精确模拟最多约 30 个量子比特。内存按 2ⁿ 个复数增长（30 个量子比特需要 16 GB RAM）。",{"type":21,"tag":71,"props":53526,"children":53527},{},[53528,53533],{"type":21,"tag":16815,"props":53529,"children":53530},{},[53531],{"type":31,"value":53532},"qasm_simulator",{"type":31,"value":53534},"：基于采样（shot）的抽样，支持噪声模型",{"type":21,"tag":71,"props":53536,"children":53537},{},[53538,53543],{"type":21,"tag":16815,"props":53539,"children":53540},{},[53541],{"type":31,"value":53542},"density_matrix",{"type":31,"value":53544},"：模拟混合态和开放量子系统",{"type":21,"tag":71,"props":53546,"children":53547},{},[53548,53553],{"type":21,"tag":16815,"props":53549,"children":53550},{},[53551],{"type":31,"value":53552},"mps",{"type":31,"value":53554},"：矩阵乘积态（Matrix Product State）——可模拟纠缠受限的电路，最多可达数百个量子比特",{"type":21,"tag":71,"props":53556,"children":53557},{},[53558,53563],{"type":21,"tag":16815,"props":53559,"children":53560},{},[53561],{"type":31,"value":53562},"stabilizer",{"type":31,"value":53564},"：仅限 Clifford 电路，但能以多项式时间扩展到数千个量子比特",{"type":21,"tag":128,"props":53566,"children":53568},{"className":130,"code":53567,"language":132,"meta":7,"style":7},"from qiskit_aer import AerSimulator\n\n# Default: automatic method selection\nsim = AerSimulator()\n\n# Force a specific method\nsim_sv = AerSimulator(method='statevector')\nsim_dm = AerSimulator(method='density_matrix')\nsim_mps = AerSimulator(method='matrix_product_state')\n",[53569],{"type":21,"tag":103,"props":53570,"children":53571},{"__ignoreMap":7},[53572,53591,53598,53606,53621,53628,53636,53669,53702],{"type":21,"tag":138,"props":53573,"children":53574},{"class":140,"line":141},[53575,53579,53583,53587],{"type":21,"tag":138,"props":53576,"children":53577},{"style":145},[53578],{"type":31,"value":148},{"type":21,"tag":138,"props":53580,"children":53581},{"style":151},[53582],{"type":31,"value":177},{"type":21,"tag":138,"props":53584,"children":53585},{"style":145},[53586],{"type":31,"value":159},{"type":21,"tag":138,"props":53588,"children":53589},{"style":151},[53590],{"type":31,"value":186},{"type":21,"tag":138,"props":53592,"children":53593},{"class":140,"line":167},[53594],{"type":21,"tag":138,"props":53595,"children":53596},{"emptyLinePlaceholder":193},[53597],{"type":31,"value":196},{"type":21,"tag":138,"props":53599,"children":53600},{"class":140,"line":189},[53601],{"type":21,"tag":138,"props":53602,"children":53603},{"style":219},[53604],{"type":31,"value":53605},"# Default: automatic method selection\n",{"type":21,"tag":138,"props":53607,"children":53608},{"class":140,"line":199},[53609,53613,53617],{"type":21,"tag":138,"props":53610,"children":53611},{"style":151},[53612],{"type":31,"value":883},{"type":21,"tag":138,"props":53614,"children":53615},{"style":145},[53616],{"type":31,"value":210},{"type":21,"tag":138,"props":53618,"children":53619},{"style":151},[53620],{"type":31,"value":892},{"type":21,"tag":138,"props":53622,"children":53623},{"class":140,"line":225},[53624],{"type":21,"tag":138,"props":53625,"children":53626},{"emptyLinePlaceholder":193},[53627],{"type":31,"value":196},{"type":21,"tag":138,"props":53629,"children":53630},{"class":140,"line":233},[53631],{"type":21,"tag":138,"props":53632,"children":53633},{"style":219},[53634],{"type":31,"value":53635},"# Force a specific method\n",{"type":21,"tag":138,"props":53637,"children":53638},{"class":140,"line":272},[53639,53644,53648,53652,53656,53660,53665],{"type":21,"tag":138,"props":53640,"children":53641},{"style":151},[53642],{"type":31,"value":53643},"sim_sv ",{"type":21,"tag":138,"props":53645,"children":53646},{"style":145},[53647],{"type":31,"value":210},{"type":21,"tag":138,"props":53649,"children":53650},{"style":151},[53651],{"type":31,"value":14607},{"type":21,"tag":138,"props":53653,"children":53654},{"style":929},[53655],{"type":31,"value":51696},{"type":21,"tag":138,"props":53657,"children":53658},{"style":145},[53659],{"type":31,"value":210},{"type":21,"tag":138,"props":53661,"children":53662},{"style":261},[53663],{"type":31,"value":53664},"'statevector'",{"type":21,"tag":138,"props":53666,"children":53667},{"style":151},[53668],{"type":31,"value":269},{"type":21,"tag":138,"props":53670,"children":53671},{"class":140,"line":308},[53672,53677,53681,53685,53689,53693,53698],{"type":21,"tag":138,"props":53673,"children":53674},{"style":151},[53675],{"type":31,"value":53676},"sim_dm ",{"type":21,"tag":138,"props":53678,"children":53679},{"style":145},[53680],{"type":31,"value":210},{"type":21,"tag":138,"props":53682,"children":53683},{"style":151},[53684],{"type":31,"value":14607},{"type":21,"tag":138,"props":53686,"children":53687},{"style":929},[53688],{"type":31,"value":51696},{"type":21,"tag":138,"props":53690,"children":53691},{"style":145},[53692],{"type":31,"value":210},{"type":21,"tag":138,"props":53694,"children":53695},{"style":261},[53696],{"type":31,"value":53697},"'density_matrix'",{"type":21,"tag":138,"props":53699,"children":53700},{"style":151},[53701],{"type":31,"value":269},{"type":21,"tag":138,"props":53703,"children":53704},{"class":140,"line":16},[53705,53710,53714,53718,53722,53726,53731],{"type":21,"tag":138,"props":53706,"children":53707},{"style":151},[53708],{"type":31,"value":53709},"sim_mps ",{"type":21,"tag":138,"props":53711,"children":53712},{"style":145},[53713],{"type":31,"value":210},{"type":21,"tag":138,"props":53715,"children":53716},{"style":151},[53717],{"type":31,"value":14607},{"type":21,"tag":138,"props":53719,"children":53720},{"style":929},[53721],{"type":31,"value":51696},{"type":21,"tag":138,"props":53723,"children":53724},{"style":145},[53725],{"type":31,"value":210},{"type":21,"tag":138,"props":53727,"children":53728},{"style":261},[53729],{"type":31,"value":53730},"'matrix_product_state'",{"type":21,"tag":138,"props":53732,"children":53733},{"style":151},[53734],{"type":31,"value":269},{"type":21,"tag":22,"props":53736,"children":53737},{},[53738,53743],{"type":21,"tag":16815,"props":53739,"children":53740},{},[53741],{"type":31,"value":53742},"何时使用 Aer：",{"type":31,"value":53744}," 适用于任何 Qiskit 工作流、噪声建模，或当你希望紧密匹配 IBM 硬件行为时。",{"type":21,"tag":41,"props":53746,"children":53748},{"id":53747},"pennylane量子机器学习的最佳选择",[53749],{"type":31,"value":53750},"PennyLane：量子机器学习的最佳选择",{"type":21,"tag":22,"props":53752,"children":53753},{},[53754,53758,53760,53765],{"type":21,"tag":26,"props":53755,"children":53756},{"href":17332},[53757],{"type":31,"value":4487},{"type":31,"value":53759}," 在你需要可微分电路时大放异彩。它的 ",{"type":21,"tag":103,"props":53761,"children":53763},{"className":53762},[],[53764],{"type":31,"value":5620},{"type":31,"value":53766}," 模拟器通过参数移位规则（parameter-shift rule）计算精确梯度，从而支持对量子电路进行基于梯度的优化：",{"type":21,"tag":128,"props":53768,"children":53770},{"className":130,"code":53769,"language":132,"meta":7,"style":7},"import pennylane as qml\nimport numpy as np\n\ndev = qml.device(\"default.qubit\", wires=2)\n\n@qml.qnode(dev)\ndef circuit(theta):\n    qml.RX(theta[0], wires=0)\n    qml.RY(theta[1], wires=1)\n    qml.CNOT(wires=[0, 1])\n    return qml.expval(qml.PauliZ(0))\n\n# Automatic gradient computation\ngrad_fn = qml.grad(circuit)\ntheta = np.array([0.5, 1.2])\nprint(grad_fn(theta))  # exact gradient\n",[53771],{"type":21,"tag":103,"props":53772,"children":53773},{"__ignoreMap":7},[53774,53793,53812,53819,53858,53865,53876,53891,53923,53955,53990,54009,54016,54024,54041,54073],{"type":21,"tag":138,"props":53775,"children":53776},{"class":140,"line":141},[53777,53781,53785,53789],{"type":21,"tag":138,"props":53778,"children":53779},{"style":145},[53780],{"type":31,"value":159},{"type":21,"tag":138,"props":53782,"children":53783},{"style":151},[53784],{"type":31,"value":5351},{"type":21,"tag":138,"props":53786,"children":53787},{"style":145},[53788],{"type":31,"value":5356},{"type":21,"tag":138,"props":53790,"children":53791},{"style":151},[53792],{"type":31,"value":5361},{"type":21,"tag":138,"props":53794,"children":53795},{"class":140,"line":167},[53796,53800,53804,53808],{"type":21,"tag":138,"props":53797,"children":53798},{"style":145},[53799],{"type":31,"value":159},{"type":21,"tag":138,"props":53801,"children":53802},{"style":151},[53803],{"type":31,"value":8530},{"type":21,"tag":138,"props":53805,"children":53806},{"style":145},[53807],{"type":31,"value":5356},{"type":21,"tag":138,"props":53809,"children":53810},{"style":151},[53811],{"type":31,"value":8632},{"type":21,"tag":138,"props":53813,"children":53814},{"class":140,"line":189},[53815],{"type":21,"tag":138,"props":53816,"children":53817},{"emptyLinePlaceholder":193},[53818],{"type":31,"value":196},{"type":21,"tag":138,"props":53820,"children":53821},{"class":140,"line":199},[53822,53826,53830,53834,53838,53842,53846,53850,53854],{"type":21,"tag":138,"props":53823,"children":53824},{"style":151},[53825],{"type":31,"value":8726},{"type":21,"tag":138,"props":53827,"children":53828},{"style":145},[53829],{"type":31,"value":210},{"type":21,"tag":138,"props":53831,"children":53832},{"style":151},[53833],{"type":31,"value":5446},{"type":21,"tag":138,"props":53835,"children":53836},{"style":261},[53837],{"type":31,"value":5451},{"type":21,"tag":138,"props":53839,"children":53840},{"style":151},[53841],{"type":31,"value":258},{"type":21,"tag":138,"props":53843,"children":53844},{"style":929},[53845],{"type":31,"value":5460},{"type":21,"tag":138,"props":53847,"children":53848},{"style":145},[53849],{"type":31,"value":210},{"type":21,"tag":138,"props":53851,"children":53852},{"style":213},[53853],{"type":31,"value":292},{"type":21,"tag":138,"props":53855,"children":53856},{"style":151},[53857],{"type":31,"value":269},{"type":21,"tag":138,"props":53859,"children":53860},{"class":140,"line":225},[53861],{"type":21,"tag":138,"props":53862,"children":53863},{"emptyLinePlaceholder":193},[53864],{"type":31,"value":196},{"type":21,"tag":138,"props":53866,"children":53867},{"class":140,"line":233},[53868,53872],{"type":21,"tag":138,"props":53869,"children":53870},{"style":4522},[53871],{"type":31,"value":5487},{"type":21,"tag":138,"props":53873,"children":53874},{"style":151},[53875],{"type":31,"value":8778},{"type":21,"tag":138,"props":53877,"children":53878},{"class":140,"line":272},[53879,53883,53887],{"type":21,"tag":138,"props":53880,"children":53881},{"style":145},[53882],{"type":31,"value":5500},{"type":21,"tag":138,"props":53884,"children":53885},{"style":4522},[53886],{"type":31,"value":5505},{"type":21,"tag":138,"props":53888,"children":53889},{"style":151},[53890],{"type":31,"value":5510},{"type":21,"tag":138,"props":53892,"children":53893},{"class":140,"line":308},[53894,53899,53903,53907,53911,53915,53919],{"type":21,"tag":138,"props":53895,"children":53896},{"style":151},[53897],{"type":31,"value":53898},"    qml.RX(theta[",{"type":21,"tag":138,"props":53900,"children":53901},{"style":213},[53902],{"type":31,"value":406},{"type":21,"tag":138,"props":53904,"children":53905},{"style":151},[53906],{"type":31,"value":697},{"type":21,"tag":138,"props":53908,"children":53909},{"style":929},[53910],{"type":31,"value":5460},{"type":21,"tag":138,"props":53912,"children":53913},{"style":145},[53914],{"type":31,"value":210},{"type":21,"tag":138,"props":53916,"children":53917},{"style":213},[53918],{"type":31,"value":406},{"type":21,"tag":138,"props":53920,"children":53921},{"style":151},[53922],{"type":31,"value":269},{"type":21,"tag":138,"props":53924,"children":53925},{"class":140,"line":16},[53926,53931,53935,53939,53943,53947,53951],{"type":21,"tag":138,"props":53927,"children":53928},{"style":151},[53929],{"type":31,"value":53930},"    qml.RY(theta[",{"type":21,"tag":138,"props":53932,"children":53933},{"style":213},[53934],{"type":31,"value":327},{"type":21,"tag":138,"props":53936,"children":53937},{"style":151},[53938],{"type":31,"value":697},{"type":21,"tag":138,"props":53940,"children":53941},{"style":929},[53942],{"type":31,"value":5460},{"type":21,"tag":138,"props":53944,"children":53945},{"style":145},[53946],{"type":31,"value":210},{"type":21,"tag":138,"props":53948,"children":53949},{"style":213},[53950],{"type":31,"value":327},{"type":21,"tag":138,"props":53952,"children":53953},{"style":151},[53954],{"type":31,"value":269},{"type":21,"tag":138,"props":53956,"children":53957},{"class":140,"line":360},[53958,53962,53966,53970,53974,53978,53982,53986],{"type":21,"tag":138,"props":53959,"children":53960},{"style":151},[53961],{"type":31,"value":5534},{"type":21,"tag":138,"props":53963,"children":53964},{"style":929},[53965],{"type":31,"value":5460},{"type":21,"tag":138,"props":53967,"children":53968},{"style":145},[53969],{"type":31,"value":210},{"type":21,"tag":138,"props":53971,"children":53972},{"style":151},[53973],{"type":31,"value":5547},{"type":21,"tag":138,"props":53975,"children":53976},{"style":213},[53977],{"type":31,"value":406},{"type":21,"tag":138,"props":53979,"children":53980},{"style":151},[53981],{"type":31,"value":258},{"type":21,"tag":138,"props":53983,"children":53984},{"style":213},[53985],{"type":31,"value":327},{"type":21,"tag":138,"props":53987,"children":53988},{"style":151},[53989],{"type":31,"value":598},{"type":21,"tag":138,"props":53991,"children":53992},{"class":140,"line":368},[53993,53997,54001,54005],{"type":21,"tag":138,"props":53994,"children":53995},{"style":145},[53996],{"type":31,"value":5595},{"type":21,"tag":138,"props":53998,"children":53999},{"style":151},[54000],{"type":31,"value":5600},{"type":21,"tag":138,"props":54002,"children":54003},{"style":213},[54004],{"type":31,"value":406},{"type":21,"tag":138,"props":54006,"children":54007},{"style":151},[54008],{"type":31,"value":5609},{"type":21,"tag":138,"props":54010,"children":54011},{"class":140,"line":377},[54012],{"type":21,"tag":138,"props":54013,"children":54014},{"emptyLinePlaceholder":193},[54015],{"type":31,"value":196},{"type":21,"tag":138,"props":54017,"children":54018},{"class":140,"line":386},[54019],{"type":21,"tag":138,"props":54020,"children":54021},{"style":219},[54022],{"type":31,"value":54023},"# Automatic gradient computation\n",{"type":21,"tag":138,"props":54025,"children":54026},{"class":140,"line":395},[54027,54032,54036],{"type":21,"tag":138,"props":54028,"children":54029},{"style":151},[54030],{"type":31,"value":54031},"grad_fn ",{"type":21,"tag":138,"props":54033,"children":54034},{"style":145},[54035],{"type":31,"value":210},{"type":21,"tag":138,"props":54037,"children":54038},{"style":151},[54039],{"type":31,"value":54040}," qml.grad(circuit)\n",{"type":21,"tag":138,"props":54042,"children":54043},{"class":140,"line":413},[54044,54048,54052,54056,54060,54064,54069],{"type":21,"tag":138,"props":54045,"children":54046},{"style":151},[54047],{"type":31,"value":205},{"type":21,"tag":138,"props":54049,"children":54050},{"style":145},[54051],{"type":31,"value":210},{"type":21,"tag":138,"props":54053,"children":54054},{"style":151},[54055],{"type":31,"value":8561},{"type":21,"tag":138,"props":54057,"children":54058},{"style":213},[54059],{"type":31,"value":7858},{"type":21,"tag":138,"props":54061,"children":54062},{"style":151},[54063],{"type":31,"value":258},{"type":21,"tag":138,"props":54065,"children":54066},{"style":213},[54067],{"type":31,"value":54068},"1.2",{"type":21,"tag":138,"props":54070,"children":54071},{"style":151},[54072],{"type":31,"value":598},{"type":21,"tag":138,"props":54074,"children":54075},{"class":140,"line":12602},[54076,54080,54085],{"type":21,"tag":138,"props":54077,"children":54078},{"style":213},[54079],{"type":31,"value":954},{"type":21,"tag":138,"props":54081,"children":54082},{"style":151},[54083],{"type":31,"value":54084},"(grad_fn(theta))  ",{"type":21,"tag":138,"props":54086,"children":54087},{"style":219},[54088],{"type":31,"value":54089},"# exact gradient\n",{"type":21,"tag":22,"props":54091,"children":54092},{},[54093,54095,54101,54103,54108],{"type":31,"value":54094},"若需要不带梯度的更快模拟，可使用 ",{"type":21,"tag":103,"props":54096,"children":54098},{"className":54097},[],[54099],{"type":31,"value":54100},"lightning.qubit",{"type":31,"value":54102},"（C++ 后端，比 ",{"type":21,"tag":103,"props":54104,"children":54106},{"className":54105},[],[54107],{"type":31,"value":5620},{"type":31,"value":54109}," 快约 10 倍）：",{"type":21,"tag":128,"props":54111,"children":54113},{"className":4512,"code":54112,"language":4511,"meta":7,"style":7},"pip install pennylane-lightning\n",[54114],{"type":21,"tag":103,"props":54115,"children":54116},{"__ignoreMap":7},[54117],{"type":21,"tag":138,"props":54118,"children":54119},{"class":140,"line":141},[54120,54124,54128],{"type":21,"tag":138,"props":54121,"children":54122},{"style":4522},[54123],{"type":31,"value":4525},{"type":21,"tag":138,"props":54125,"children":54126},{"style":261},[54127],{"type":31,"value":4530},{"type":21,"tag":138,"props":54129,"children":54130},{"style":261},[54131],{"type":31,"value":54132}," pennylane-lightning\n",{"type":21,"tag":128,"props":54134,"children":54136},{"className":130,"code":54135,"language":132,"meta":7,"style":7},"dev = qml.device(\"lightning.qubit\", wires=20)\n",[54137],{"type":21,"tag":103,"props":54138,"children":54139},{"__ignoreMap":7},[54140],{"type":21,"tag":138,"props":54141,"children":54142},{"class":140,"line":141},[54143,54147,54151,54155,54160,54164,54168,54172,54176],{"type":21,"tag":138,"props":54144,"children":54145},{"style":151},[54146],{"type":31,"value":8726},{"type":21,"tag":138,"props":54148,"children":54149},{"style":145},[54150],{"type":31,"value":210},{"type":21,"tag":138,"props":54152,"children":54153},{"style":151},[54154],{"type":31,"value":5446},{"type":21,"tag":138,"props":54156,"children":54157},{"style":261},[54158],{"type":31,"value":54159},"\"lightning.qubit\"",{"type":21,"tag":138,"props":54161,"children":54162},{"style":151},[54163],{"type":31,"value":258},{"type":21,"tag":138,"props":54165,"children":54166},{"style":929},[54167],{"type":31,"value":5460},{"type":21,"tag":138,"props":54169,"children":54170},{"style":145},[54171],{"type":31,"value":210},{"type":21,"tag":138,"props":54173,"children":54174},{"style":213},[54175],{"type":31,"value":10314},{"type":21,"tag":138,"props":54177,"children":54178},{"style":151},[54179],{"type":31,"value":269},{"type":21,"tag":22,"props":54181,"children":54182},{},[54183,54188],{"type":21,"tag":16815,"props":54184,"children":54185},{},[54186],{"type":31,"value":54187},"何时使用 PennyLane：",{"type":31,"value":54189}," 变分算法（VQE、QAOA）、量子机器学习，以及任何需要电路梯度的工作流。",{"type":21,"tag":41,"props":54191,"children":54193},{"id":54192},"nvidia-cuda-q当速度至关重要时",[54194],{"type":31,"value":54195},"NVIDIA CUDA-Q：当速度至关重要时",{"type":21,"tag":22,"props":54197,"children":54198},{},[54199,54203],{"type":21,"tag":26,"props":54200,"children":54201},{"href":42353},[54202],{"type":31,"value":39966},{"type":31,"value":54204}," 提供 GPU 加速的模拟，对于大型电路，其速度可比 CPU 模拟器快 100 到 10,000 倍。如果你有任何一块 NVIDIA GPU，那么对于 25 个以上量子比特的电路，这就是正确的选择：",{"type":21,"tag":128,"props":54206,"children":54208},{"className":130,"code":54207,"language":132,"meta":7,"style":7},"import cudaq\n\n@cudaq.kernel\ndef large_circuit(n: int):\n    qvec = cudaq.qvector(n)\n    h(qvec[0])\n    for i in range(n - 1):\n        cx(qvec[i], qvec[i + 1])\n    mz(qvec)\n\n# Run on GPU (specify 'nvidia' target)\ncudaq.set_target('nvidia')\ncounts = cudaq.sample(large_circuit, 30, shots_count=10000)\nprint(counts)\n",[54209],{"type":21,"tag":103,"props":54210,"children":54211},{"__ignoreMap":7},[54212,54223,54230,54237,54261,54276,54291,54326,54346,54354,54361,54369,54385,54426],{"type":21,"tag":138,"props":54213,"children":54214},{"class":140,"line":141},[54215,54219],{"type":21,"tag":138,"props":54216,"children":54217},{"style":145},[54218],{"type":31,"value":159},{"type":21,"tag":138,"props":54220,"children":54221},{"style":151},[54222],{"type":31,"value":8134},{"type":21,"tag":138,"props":54224,"children":54225},{"class":140,"line":167},[54226],{"type":21,"tag":138,"props":54227,"children":54228},{"emptyLinePlaceholder":193},[54229],{"type":31,"value":196},{"type":21,"tag":138,"props":54231,"children":54232},{"class":140,"line":189},[54233],{"type":21,"tag":138,"props":54234,"children":54235},{"style":4522},[54236],{"type":31,"value":7992},{"type":21,"tag":138,"props":54238,"children":54239},{"class":140,"line":199},[54240,54244,54249,54253,54257],{"type":21,"tag":138,"props":54241,"children":54242},{"style":145},[54243],{"type":31,"value":5500},{"type":21,"tag":138,"props":54245,"children":54246},{"style":4522},[54247],{"type":31,"value":54248}," large_circuit",{"type":21,"tag":138,"props":54250,"children":54251},{"style":151},[54252],{"type":31,"value":16989},{"type":21,"tag":138,"props":54254,"children":54255},{"style":213},[54256],{"type":31,"value":16994},{"type":21,"tag":138,"props":54258,"children":54259},{"style":151},[54260],{"type":31,"value":7443},{"type":21,"tag":138,"props":54262,"children":54263},{"class":140,"line":225},[54264,54268,54272],{"type":21,"tag":138,"props":54265,"children":54266},{"style":151},[54267],{"type":31,"value":43643},{"type":21,"tag":138,"props":54269,"children":54270},{"style":145},[54271],{"type":31,"value":210},{"type":21,"tag":138,"props":54273,"children":54274},{"style":151},[54275],{"type":31,"value":17014},{"type":21,"tag":138,"props":54277,"children":54278},{"class":140,"line":233},[54279,54283,54287],{"type":21,"tag":138,"props":54280,"children":54281},{"style":151},[54282],{"type":31,"value":43667},{"type":21,"tag":138,"props":54284,"children":54285},{"style":213},[54286],{"type":31,"value":406},{"type":21,"tag":138,"props":54288,"children":54289},{"style":151},[54290],{"type":31,"value":598},{"type":21,"tag":138,"props":54292,"children":54293},{"class":140,"line":272},[54294,54298,54302,54306,54310,54314,54318,54322],{"type":21,"tag":138,"props":54295,"children":54296},{"style":145},[54297],{"type":31,"value":17037},{"type":21,"tag":138,"props":54299,"children":54300},{"style":151},[54301],{"type":31,"value":7421},{"type":21,"tag":138,"props":54303,"children":54304},{"style":145},[54305],{"type":31,"value":1502},{"type":21,"tag":138,"props":54307,"children":54308},{"style":213},[54309],{"type":31,"value":7430},{"type":21,"tag":138,"props":54311,"children":54312},{"style":151},[54313],{"type":31,"value":17054},{"type":21,"tag":138,"props":54315,"children":54316},{"style":145},[54317],{"type":31,"value":831},{"type":21,"tag":138,"props":54319,"children":54320},{"style":213},[54321],{"type":31,"value":17063},{"type":21,"tag":138,"props":54323,"children":54324},{"style":151},[54325],{"type":31,"value":7443},{"type":21,"tag":138,"props":54327,"children":54328},{"class":140,"line":308},[54329,54334,54338,54342],{"type":21,"tag":138,"props":54330,"children":54331},{"style":151},[54332],{"type":31,"value":54333},"        cx(qvec[i], qvec[i ",{"type":21,"tag":138,"props":54335,"children":54336},{"style":145},[54337],{"type":31,"value":1605},{"type":21,"tag":138,"props":54339,"children":54340},{"style":213},[54341],{"type":31,"value":17063},{"type":21,"tag":138,"props":54343,"children":54344},{"style":151},[54345],{"type":31,"value":598},{"type":21,"tag":138,"props":54347,"children":54348},{"class":140,"line":16},[54349],{"type":21,"tag":138,"props":54350,"children":54351},{"style":151},[54352],{"type":31,"value":54353},"    mz(qvec)\n",{"type":21,"tag":138,"props":54355,"children":54356},{"class":140,"line":360},[54357],{"type":21,"tag":138,"props":54358,"children":54359},{"emptyLinePlaceholder":193},[54360],{"type":31,"value":196},{"type":21,"tag":138,"props":54362,"children":54363},{"class":140,"line":368},[54364],{"type":21,"tag":138,"props":54365,"children":54366},{"style":219},[54367],{"type":31,"value":54368},"# Run on GPU (specify 'nvidia' target)\n",{"type":21,"tag":138,"props":54370,"children":54371},{"class":140,"line":377},[54372,54376,54381],{"type":21,"tag":138,"props":54373,"children":54374},{"style":151},[54375],{"type":31,"value":8204},{"type":21,"tag":138,"props":54377,"children":54378},{"style":261},[54379],{"type":31,"value":54380},"'nvidia'",{"type":21,"tag":138,"props":54382,"children":54383},{"style":151},[54384],{"type":31,"value":269},{"type":21,"tag":138,"props":54386,"children":54387},{"class":140,"line":386},[54388,54392,54396,54401,54405,54409,54413,54417,54422],{"type":21,"tag":138,"props":54389,"children":54390},{"style":151},[54391],{"type":31,"value":917},{"type":21,"tag":138,"props":54393,"children":54394},{"style":145},[54395],{"type":31,"value":210},{"type":21,"tag":138,"props":54397,"children":54398},{"style":151},[54399],{"type":31,"value":54400}," cudaq.sample(large_circuit, ",{"type":21,"tag":138,"props":54402,"children":54403},{"style":213},[54404],{"type":31,"value":14084},{"type":21,"tag":138,"props":54406,"children":54407},{"style":151},[54408],{"type":31,"value":258},{"type":21,"tag":138,"props":54410,"children":54411},{"style":929},[54412],{"type":31,"value":8234},{"type":21,"tag":138,"props":54414,"children":54415},{"style":145},[54416],{"type":31,"value":210},{"type":21,"tag":138,"props":54418,"children":54419},{"style":213},[54420],{"type":31,"value":54421},"10000",{"type":21,"tag":138,"props":54423,"children":54424},{"style":151},[54425],{"type":31,"value":269},{"type":21,"tag":138,"props":54427,"children":54428},{"class":140,"line":395},[54429,54433],{"type":21,"tag":138,"props":54430,"children":54431},{"style":213},[54432],{"type":31,"value":954},{"type":21,"tag":138,"props":54434,"children":54435},{"style":151},[54436],{"type":31,"value":6784},{"type":21,"tag":22,"props":54438,"children":54439},{},[54440,54445],{"type":21,"tag":16815,"props":54441,"children":54442},{},[54443],{"type":31,"value":54444},"性能基准测试",{"type":31,"value":54446},"（GHZ 电路，28 个量子比特，1000 shots）：",{"type":21,"tag":1118,"props":54448,"children":54449},{},[54450,54455,54460],{"type":21,"tag":71,"props":54451,"children":54452},{},[54453],{"type":31,"value":54454},"Qiskit Aer CPU：约 45 秒",{"type":21,"tag":71,"props":54456,"children":54457},{},[54458],{"type":31,"value":54459},"PennyLane lightning.qubit：约 30 秒",{"type":21,"tag":71,"props":54461,"children":54462},{},[54463],{"type":31,"value":54464},"CUDA-Q（A100 GPU）：约 0.8 秒",{"type":21,"tag":22,"props":54466,"children":54467},{},[54468,54473],{"type":21,"tag":16815,"props":54469,"children":54470},{},[54471],{"type":31,"value":54472},"何时使用 CUDA-Q：",{"type":31,"value":54474}," 任何 25 个以上量子比特的电路、性能关键的模拟、多 GPU 工作负载。",{"type":21,"tag":41,"props":54476,"children":54478},{"id":54477},"cirq噪声建模与-nisq-研究",[54479],{"type":31,"value":54480},"Cirq：噪声建模与 NISQ 研究",{"type":21,"tag":22,"props":54482,"children":54483},{},[54484,54488],{"type":21,"tag":26,"props":54485,"children":54486},{"href":30667},[54487],{"type":31,"value":42583},{"type":31,"value":54489}," 包含三种模拟器：",{"type":21,"tag":128,"props":54491,"children":54493},{"className":130,"code":54492,"language":132,"meta":7,"style":7},"import cirq\n\n# Exact statevector simulation\nsim = cirq.Simulator()\n\n# Density matrix with noise\nnoise_model = cirq.ConstantQubitNoiseModel(\n    cirq.depolarize(p=0.01)\n)\nnoisy_sim = cirq.DensityMatrixSimulator(noise=noise_model)\n\n# Clifford circuits only (but exponentially faster for stabilizer states)\nclifford_sim = cirq.CliffordSimulator()\n",[54494],{"type":21,"tag":103,"props":54495,"children":54496},{"__ignoreMap":7},[54497,54508,54515,54523,54539,54546,54554,54570,54594,54601,54630,54637,54645],{"type":21,"tag":138,"props":54498,"children":54499},{"class":140,"line":141},[54500,54504],{"type":21,"tag":138,"props":54501,"children":54502},{"style":145},[54503],{"type":31,"value":159},{"type":21,"tag":138,"props":54505,"children":54506},{"style":151},[54507],{"type":31,"value":4752},{"type":21,"tag":138,"props":54509,"children":54510},{"class":140,"line":167},[54511],{"type":21,"tag":138,"props":54512,"children":54513},{"emptyLinePlaceholder":193},[54514],{"type":31,"value":196},{"type":21,"tag":138,"props":54516,"children":54517},{"class":140,"line":189},[54518],{"type":21,"tag":138,"props":54519,"children":54520},{"style":219},[54521],{"type":31,"value":54522},"# Exact statevector simulation\n",{"type":21,"tag":138,"props":54524,"children":54525},{"class":140,"line":199},[54526,54530,54534],{"type":21,"tag":138,"props":54527,"children":54528},{"style":151},[54529],{"type":31,"value":883},{"type":21,"tag":138,"props":54531,"children":54532},{"style":145},[54533],{"type":31,"value":210},{"type":21,"tag":138,"props":54535,"children":54536},{"style":151},[54537],{"type":31,"value":54538}," cirq.Simulator()\n",{"type":21,"tag":138,"props":54540,"children":54541},{"class":140,"line":225},[54542],{"type":21,"tag":138,"props":54543,"children":54544},{"emptyLinePlaceholder":193},[54545],{"type":31,"value":196},{"type":21,"tag":138,"props":54547,"children":54548},{"class":140,"line":233},[54549],{"type":21,"tag":138,"props":54550,"children":54551},{"style":219},[54552],{"type":31,"value":54553},"# Density matrix with noise\n",{"type":21,"tag":138,"props":54555,"children":54556},{"class":140,"line":272},[54557,54561,54565],{"type":21,"tag":138,"props":54558,"children":54559},{"style":151},[54560],{"type":31,"value":14498},{"type":21,"tag":138,"props":54562,"children":54563},{"style":145},[54564],{"type":31,"value":210},{"type":21,"tag":138,"props":54566,"children":54567},{"style":151},[54568],{"type":31,"value":54569}," cirq.ConstantQubitNoiseModel(\n",{"type":21,"tag":138,"props":54571,"children":54572},{"class":140,"line":308},[54573,54578,54582,54586,54590],{"type":21,"tag":138,"props":54574,"children":54575},{"style":151},[54576],{"type":31,"value":54577},"    cirq.depolarize(",{"type":21,"tag":138,"props":54579,"children":54580},{"style":929},[54581],{"type":31,"value":22},{"type":21,"tag":138,"props":54583,"children":54584},{"style":145},[54585],{"type":31,"value":210},{"type":21,"tag":138,"props":54587,"children":54588},{"style":213},[54589],{"type":31,"value":14520},{"type":21,"tag":138,"props":54591,"children":54592},{"style":151},[54593],{"type":31,"value":269},{"type":21,"tag":138,"props":54595,"children":54596},{"class":140,"line":16},[54597],{"type":21,"tag":138,"props":54598,"children":54599},{"style":151},[54600],{"type":31,"value":269},{"type":21,"tag":138,"props":54602,"children":54603},{"class":140,"line":360},[54604,54609,54613,54618,54622,54626],{"type":21,"tag":138,"props":54605,"children":54606},{"style":151},[54607],{"type":31,"value":54608},"noisy_sim ",{"type":21,"tag":138,"props":54610,"children":54611},{"style":145},[54612],{"type":31,"value":210},{"type":21,"tag":138,"props":54614,"children":54615},{"style":151},[54616],{"type":31,"value":54617}," cirq.DensityMatrixSimulator(",{"type":21,"tag":138,"props":54619,"children":54620},{"style":929},[54621],{"type":31,"value":36412},{"type":21,"tag":138,"props":54623,"children":54624},{"style":145},[54625],{"type":31,"value":210},{"type":21,"tag":138,"props":54627,"children":54628},{"style":151},[54629],{"type":31,"value":14621},{"type":21,"tag":138,"props":54631,"children":54632},{"class":140,"line":368},[54633],{"type":21,"tag":138,"props":54634,"children":54635},{"emptyLinePlaceholder":193},[54636],{"type":31,"value":196},{"type":21,"tag":138,"props":54638,"children":54639},{"class":140,"line":377},[54640],{"type":21,"tag":138,"props":54641,"children":54642},{"style":219},[54643],{"type":31,"value":54644},"# Clifford circuits only (but exponentially faster for stabilizer states)\n",{"type":21,"tag":138,"props":54646,"children":54647},{"class":140,"line":386},[54648,54653,54657],{"type":21,"tag":138,"props":54649,"children":54650},{"style":151},[54651],{"type":31,"value":54652},"clifford_sim ",{"type":21,"tag":138,"props":54654,"children":54655},{"style":145},[54656],{"type":31,"value":210},{"type":21,"tag":138,"props":54658,"children":54659},{"style":151},[54660],{"type":31,"value":54661}," cirq.CliffordSimulator()\n",{"type":21,"tag":22,"props":54663,"children":54664},{},[54665,54670],{"type":21,"tag":16815,"props":54666,"children":54667},{},[54668],{"type":31,"value":54669},"何时使用 Cirq：",{"type":31,"value":54671}," NISQ 噪声建模、稳定子（stabilizer）电路研究、Google AI Quantum 工作流。",{"type":21,"tag":41,"props":54673,"children":54675},{"id":54674},"amazon-braket-localsimulator隔离性与可移植性",[54676],{"type":31,"value":54677},"Amazon Braket LocalSimulator：隔离性与可移植性",{"type":21,"tag":22,"props":54679,"children":54680},{},[54681,54687],{"type":21,"tag":26,"props":54682,"children":54684},{"href":54683},"\u002Fsdks\u002Fbraket",[54685],{"type":31,"value":54686},"Braket SDK",{"type":31,"value":54688}," 包含一个免费的本地模拟器，它精确地镜像云端 API：",{"type":21,"tag":128,"props":54690,"children":54692},{"className":130,"code":54691,"language":132,"meta":7,"style":7},"from braket.devices import LocalSimulator\nfrom braket.circuits import Circuit\n\ndevice = LocalSimulator()\n\ncircuit = Circuit()\ncircuit.h(0)\ncircuit.cnot(0, 1)\ncircuit.probability()\n\ntask = device.run(circuit, shots=1000)\nresult = task.result()\nprint(result.measurement_counts)\n",[54693],{"type":21,"tag":103,"props":54694,"children":54695},{"__ignoreMap":7},[54696,54717,54738,54745,54761,54768,54784,54799,54823,54831,54838,54871,54887],{"type":21,"tag":138,"props":54697,"children":54698},{"class":140,"line":141},[54699,54703,54708,54712],{"type":21,"tag":138,"props":54700,"children":54701},{"style":145},[54702],{"type":31,"value":148},{"type":21,"tag":138,"props":54704,"children":54705},{"style":151},[54706],{"type":31,"value":54707}," braket.devices ",{"type":21,"tag":138,"props":54709,"children":54710},{"style":145},[54711],{"type":31,"value":159},{"type":21,"tag":138,"props":54713,"children":54714},{"style":151},[54715],{"type":31,"value":54716}," LocalSimulator\n",{"type":21,"tag":138,"props":54718,"children":54719},{"class":140,"line":167},[54720,54724,54729,54733],{"type":21,"tag":138,"props":54721,"children":54722},{"style":145},[54723],{"type":31,"value":148},{"type":21,"tag":138,"props":54725,"children":54726},{"style":151},[54727],{"type":31,"value":54728}," braket.circuits ",{"type":21,"tag":138,"props":54730,"children":54731},{"style":145},[54732],{"type":31,"value":159},{"type":21,"tag":138,"props":54734,"children":54735},{"style":151},[54736],{"type":31,"value":54737}," Circuit\n",{"type":21,"tag":138,"props":54739,"children":54740},{"class":140,"line":189},[54741],{"type":21,"tag":138,"props":54742,"children":54743},{"emptyLinePlaceholder":193},[54744],{"type":31,"value":196},{"type":21,"tag":138,"props":54746,"children":54747},{"class":140,"line":199},[54748,54752,54756],{"type":21,"tag":138,"props":54749,"children":54750},{"style":151},[54751],{"type":31,"value":5437},{"type":21,"tag":138,"props":54753,"children":54754},{"style":145},[54755],{"type":31,"value":210},{"type":21,"tag":138,"props":54757,"children":54758},{"style":151},[54759],{"type":31,"value":54760}," LocalSimulator()\n",{"type":21,"tag":138,"props":54762,"children":54763},{"class":140,"line":225},[54764],{"type":21,"tag":138,"props":54765,"children":54766},{"emptyLinePlaceholder":193},[54767],{"type":31,"value":196},{"type":21,"tag":138,"props":54769,"children":54770},{"class":140,"line":233},[54771,54775,54779],{"type":21,"tag":138,"props":54772,"children":54773},{"style":151},[54774],{"type":31,"value":4792},{"type":21,"tag":138,"props":54776,"children":54777},{"style":145},[54778],{"type":31,"value":210},{"type":21,"tag":138,"props":54780,"children":54781},{"style":151},[54782],{"type":31,"value":54783}," Circuit()\n",{"type":21,"tag":138,"props":54785,"children":54786},{"class":140,"line":272},[54787,54791,54795],{"type":21,"tag":138,"props":54788,"children":54789},{"style":151},[54790],{"type":31,"value":6329},{"type":21,"tag":138,"props":54792,"children":54793},{"style":213},[54794],{"type":31,"value":406},{"type":21,"tag":138,"props":54796,"children":54797},{"style":151},[54798],{"type":31,"value":269},{"type":21,"tag":138,"props":54800,"children":54801},{"class":140,"line":308},[54802,54807,54811,54815,54819],{"type":21,"tag":138,"props":54803,"children":54804},{"style":151},[54805],{"type":31,"value":54806},"circuit.cnot(",{"type":21,"tag":138,"props":54808,"children":54809},{"style":213},[54810],{"type":31,"value":406},{"type":21,"tag":138,"props":54812,"children":54813},{"style":151},[54814],{"type":31,"value":258},{"type":21,"tag":138,"props":54816,"children":54817},{"style":213},[54818],{"type":31,"value":327},{"type":21,"tag":138,"props":54820,"children":54821},{"style":151},[54822],{"type":31,"value":269},{"type":21,"tag":138,"props":54824,"children":54825},{"class":140,"line":16},[54826],{"type":21,"tag":138,"props":54827,"children":54828},{"style":151},[54829],{"type":31,"value":54830},"circuit.probability()\n",{"type":21,"tag":138,"props":54832,"children":54833},{"class":140,"line":360},[54834],{"type":21,"tag":138,"props":54835,"children":54836},{"emptyLinePlaceholder":193},[54837],{"type":31,"value":196},{"type":21,"tag":138,"props":54839,"children":54840},{"class":140,"line":368},[54841,54846,54850,54855,54859,54863,54867],{"type":21,"tag":138,"props":54842,"children":54843},{"style":151},[54844],{"type":31,"value":54845},"task ",{"type":21,"tag":138,"props":54847,"children":54848},{"style":145},[54849],{"type":31,"value":210},{"type":21,"tag":138,"props":54851,"children":54852},{"style":151},[54853],{"type":31,"value":54854}," device.run(circuit, ",{"type":21,"tag":138,"props":54856,"children":54857},{"style":929},[54858],{"type":31,"value":932},{"type":21,"tag":138,"props":54860,"children":54861},{"style":145},[54862],{"type":31,"value":210},{"type":21,"tag":138,"props":54864,"children":54865},{"style":213},[54866],{"type":31,"value":1736},{"type":21,"tag":138,"props":54868,"children":54869},{"style":151},[54870],{"type":31,"value":269},{"type":21,"tag":138,"props":54872,"children":54873},{"class":140,"line":377},[54874,54878,54882],{"type":21,"tag":138,"props":54875,"children":54876},{"style":151},[54877],{"type":31,"value":4881},{"type":21,"tag":138,"props":54879,"children":54880},{"style":145},[54881],{"type":31,"value":210},{"type":21,"tag":138,"props":54883,"children":54884},{"style":151},[54885],{"type":31,"value":54886}," task.result()\n",{"type":21,"tag":138,"props":54888,"children":54889},{"class":140,"line":386},[54890,54894],{"type":21,"tag":138,"props":54891,"children":54892},{"style":213},[54893],{"type":31,"value":954},{"type":21,"tag":138,"props":54895,"children":54896},{"style":151},[54897],{"type":31,"value":54898},"(result.measurement_counts)\n",{"type":21,"tag":22,"props":54900,"children":54901},{},[54902,54907],{"type":21,"tag":16815,"props":54903,"children":54904},{},[54905],{"type":31,"value":54906},"何时使用 Braket 本地模拟器：",{"type":31,"value":54908}," 你正在为 AWS 部署做开发，并希望本地开发\u002F测试环境能与云端 API 保持一致。",{"type":21,"tag":41,"props":54910,"children":54912},{"id":54911},"hlquantum-捷径",[54913],{"type":31,"value":54914},"HLQuantum 捷径",{"type":21,"tag":22,"props":54916,"children":54917},{},[54918,54920,54924],{"type":31,"value":54919},"如果你需要在多个模拟器上运行同一个电路以进行基准测试或对比，",{"type":21,"tag":26,"props":54921,"children":54922},{"href":40756},[54923],{"type":31,"value":40759},{"type":31,"value":54925}," 让这件事变得轻而易举：",{"type":21,"tag":128,"props":54927,"children":54929},{"className":130,"code":54928,"language":132,"meta":7,"style":7},"import hlquantum as hlq\nimport time\n\nqc = hlq.Circuit(28)\nqc.h(0)\nfor i in range(27):\n    qc.cx(i, i + 1)\nqc.measure_all()\n\nfor backend in [\"qiskit\", \"pennylane\", \"cudaq\"]:\n    t0 = time.time()\n    result = hlq.run(qc, shots=1000, backend=backend)\n    print(f\"{backend}: {time.time() - t0:.2f}s\")\n",[54930],{"type":21,"tag":103,"props":54931,"children":54932},{"__ignoreMap":7},[54933,54952,54964,54971,54995,55010,55042,55062,55069,55076,55121,55138,55182],{"type":21,"tag":138,"props":54934,"children":54935},{"class":140,"line":141},[54936,54940,54944,54948],{"type":21,"tag":138,"props":54937,"children":54938},{"style":145},[54939],{"type":31,"value":159},{"type":21,"tag":138,"props":54941,"children":54942},{"style":151},[54943],{"type":31,"value":41047},{"type":21,"tag":138,"props":54945,"children":54946},{"style":145},[54947],{"type":31,"value":5356},{"type":21,"tag":138,"props":54949,"children":54950},{"style":151},[54951],{"type":31,"value":41056},{"type":21,"tag":138,"props":54953,"children":54954},{"class":140,"line":167},[54955,54959],{"type":21,"tag":138,"props":54956,"children":54957},{"style":145},[54958],{"type":31,"value":159},{"type":21,"tag":138,"props":54960,"children":54961},{"style":151},[54962],{"type":31,"value":54963}," time\n",{"type":21,"tag":138,"props":54965,"children":54966},{"class":140,"line":189},[54967],{"type":21,"tag":138,"props":54968,"children":54969},{"emptyLinePlaceholder":193},[54970],{"type":31,"value":196},{"type":21,"tag":138,"props":54972,"children":54973},{"class":140,"line":199},[54974,54978,54982,54986,54991],{"type":21,"tag":138,"props":54975,"children":54976},{"style":151},[54977],{"type":31,"value":348},{"type":21,"tag":138,"props":54979,"children":54980},{"style":145},[54981],{"type":31,"value":210},{"type":21,"tag":138,"props":54983,"children":54984},{"style":151},[54985],{"type":31,"value":43091},{"type":21,"tag":138,"props":54987,"children":54988},{"style":213},[54989],{"type":31,"value":54990},"28",{"type":21,"tag":138,"props":54992,"children":54993},{"style":151},[54994],{"type":31,"value":269},{"type":21,"tag":138,"props":54996,"children":54997},{"class":140,"line":225},[54998,55002,55006],{"type":21,"tag":138,"props":54999,"children":55000},{"style":151},[55001],{"type":31,"value":441},{"type":21,"tag":138,"props":55003,"children":55004},{"style":213},[55005],{"type":31,"value":406},{"type":21,"tag":138,"props":55007,"children":55008},{"style":151},[55009],{"type":31,"value":269},{"type":21,"tag":138,"props":55011,"children":55012},{"class":140,"line":233},[55013,55017,55021,55025,55029,55033,55038],{"type":21,"tag":138,"props":55014,"children":55015},{"style":145},[55016],{"type":31,"value":1492},{"type":21,"tag":138,"props":55018,"children":55019},{"style":151},[55020],{"type":31,"value":7421},{"type":21,"tag":138,"props":55022,"children":55023},{"style":145},[55024],{"type":31,"value":1502},{"type":21,"tag":138,"props":55026,"children":55027},{"style":213},[55028],{"type":31,"value":7430},{"type":21,"tag":138,"props":55030,"children":55031},{"style":151},[55032],{"type":31,"value":959},{"type":21,"tag":138,"props":55034,"children":55035},{"style":213},[55036],{"type":31,"value":55037},"27",{"type":21,"tag":138,"props":55039,"children":55040},{"style":151},[55041],{"type":31,"value":7443},{"type":21,"tag":138,"props":55043,"children":55044},{"class":140,"line":272},[55045,55050,55054,55058],{"type":21,"tag":138,"props":55046,"children":55047},{"style":151},[55048],{"type":31,"value":55049},"    qc.cx(i, i ",{"type":21,"tag":138,"props":55051,"children":55052},{"style":145},[55053],{"type":31,"value":1605},{"type":21,"tag":138,"props":55055,"children":55056},{"style":213},[55057],{"type":31,"value":17063},{"type":21,"tag":138,"props":55059,"children":55060},{"style":151},[55061],{"type":31,"value":269},{"type":21,"tag":138,"props":55063,"children":55064},{"class":140,"line":308},[55065],{"type":21,"tag":138,"props":55066,"children":55067},{"style":151},[55068],{"type":31,"value":34882},{"type":21,"tag":138,"props":55070,"children":55071},{"class":140,"line":16},[55072],{"type":21,"tag":138,"props":55073,"children":55074},{"emptyLinePlaceholder":193},[55075],{"type":31,"value":196},{"type":21,"tag":138,"props":55077,"children":55078},{"class":140,"line":360},[55079,55083,55087,55091,55095,55099,55103,55108,55112,55117],{"type":21,"tag":138,"props":55080,"children":55081},{"style":145},[55082],{"type":31,"value":1492},{"type":21,"tag":138,"props":55084,"children":55085},{"style":151},[55086],{"type":31,"value":6208},{"type":21,"tag":138,"props":55088,"children":55089},{"style":145},[55090],{"type":31,"value":1502},{"type":21,"tag":138,"props":55092,"children":55093},{"style":151},[55094],{"type":31,"value":8051},{"type":21,"tag":138,"props":55096,"children":55097},{"style":261},[55098],{"type":31,"value":50449},{"type":21,"tag":138,"props":55100,"children":55101},{"style":151},[55102],{"type":31,"value":258},{"type":21,"tag":138,"props":55104,"children":55105},{"style":261},[55106],{"type":31,"value":55107},"\"pennylane\"",{"type":21,"tag":138,"props":55109,"children":55110},{"style":151},[55111],{"type":31,"value":258},{"type":21,"tag":138,"props":55113,"children":55114},{"style":261},[55115],{"type":31,"value":55116},"\"cudaq\"",{"type":21,"tag":138,"props":55118,"children":55119},{"style":151},[55120],{"type":31,"value":20882},{"type":21,"tag":138,"props":55122,"children":55123},{"class":140,"line":368},[55124,55129,55133],{"type":21,"tag":138,"props":55125,"children":55126},{"style":151},[55127],{"type":31,"value":55128},"    t0 ",{"type":21,"tag":138,"props":55130,"children":55131},{"style":145},[55132],{"type":31,"value":210},{"type":21,"tag":138,"props":55134,"children":55135},{"style":151},[55136],{"type":31,"value":55137}," time.time()\n",{"type":21,"tag":138,"props":55139,"children":55140},{"class":140,"line":377},[55141,55146,55150,55154,55158,55162,55166,55170,55174,55178],{"type":21,"tag":138,"props":55142,"children":55143},{"style":151},[55144],{"type":31,"value":55145},"    result ",{"type":21,"tag":138,"props":55147,"children":55148},{"style":145},[55149],{"type":31,"value":210},{"type":21,"tag":138,"props":55151,"children":55152},{"style":151},[55153],{"type":31,"value":43155},{"type":21,"tag":138,"props":55155,"children":55156},{"style":929},[55157],{"type":31,"value":932},{"type":21,"tag":138,"props":55159,"children":55160},{"style":145},[55161],{"type":31,"value":210},{"type":21,"tag":138,"props":55163,"children":55164},{"style":213},[55165],{"type":31,"value":1736},{"type":21,"tag":138,"props":55167,"children":55168},{"style":151},[55169],{"type":31,"value":258},{"type":21,"tag":138,"props":55171,"children":55172},{"style":929},[55173],{"type":31,"value":11000},{"type":21,"tag":138,"props":55175,"children":55176},{"style":145},[55177],{"type":31,"value":210},{"type":21,"tag":138,"props":55179,"children":55180},{"style":151},[55181],{"type":31,"value":49971},{"type":21,"tag":138,"props":55183,"children":55184},{"class":140,"line":386},[55185,55189,55193,55197,55201,55205,55209,55213,55217,55221,55226,55230,55235,55240,55244,55249],{"type":21,"tag":138,"props":55186,"children":55187},{"style":213},[55188],{"type":31,"value":6225},{"type":21,"tag":138,"props":55190,"children":55191},{"style":151},[55192],{"type":31,"value":959},{"type":21,"tag":138,"props":55194,"children":55195},{"style":145},[55196],{"type":31,"value":7537},{"type":21,"tag":138,"props":55198,"children":55199},{"style":261},[55200],{"type":31,"value":15383},{"type":21,"tag":138,"props":55202,"children":55203},{"style":213},[55204],{"type":31,"value":7547},{"type":21,"tag":138,"props":55206,"children":55207},{"style":151},[55208],{"type":31,"value":11000},{"type":21,"tag":138,"props":55210,"children":55211},{"style":213},[55212],{"type":31,"value":7556},{"type":21,"tag":138,"props":55214,"children":55215},{"style":261},[55216],{"type":31,"value":24135},{"type":21,"tag":138,"props":55218,"children":55219},{"style":213},[55220],{"type":31,"value":7547},{"type":21,"tag":138,"props":55222,"children":55223},{"style":151},[55224],{"type":31,"value":55225},"time.time() ",{"type":21,"tag":138,"props":55227,"children":55228},{"style":145},[55229],{"type":31,"value":831},{"type":21,"tag":138,"props":55231,"children":55232},{"style":151},[55233],{"type":31,"value":55234}," t0",{"type":21,"tag":138,"props":55236,"children":55237},{"style":145},[55238],{"type":31,"value":55239},":.2f",{"type":21,"tag":138,"props":55241,"children":55242},{"style":213},[55243],{"type":31,"value":7556},{"type":21,"tag":138,"props":55245,"children":55246},{"style":261},[55247],{"type":31,"value":55248},"s\"",{"type":21,"tag":138,"props":55250,"children":55251},{"style":151},[55252],{"type":31,"value":269},{"type":21,"tag":22,"props":55254,"children":55255},{},[55256],{"type":31,"value":55257},"一个电路，三个后端，结果可直接对比。",{"type":21,"tag":1174,"props":55259,"children":55260},{},[55261],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":55263},[55264,55265,55266,55267,55268,55269,55270],{"id":53311,"depth":167,"text":53311},{"id":53499,"depth":167,"text":53502},{"id":53747,"depth":167,"text":53750},{"id":54192,"depth":167,"text":54195},{"id":54477,"depth":167,"text":54480},{"id":54674,"depth":167,"text":54677},{"id":54911,"depth":167,"text":54914},"content:zh:blog:quantum-simulators-compared.md","zh\u002Fblog\u002Fquantum-simulators-compared.md","zh\u002Fblog\u002Fquantum-simulators-compared",{"_path":55275,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":55276,"description":55277,"date":55278,"author":11,"tags":55279,"readingTime":16,"body":55280,"_type":1193,"_id":57367,"_source":1195,"_file":57368,"_stem":57369,"_extension":1198},"\u002Fzh\u002Fblog\u002Fvqe-pennylane-practical-guide","使用 PennyLane 构建 VQE：实用指南","使用 PennyLane 逐步实现变分量子本征求解器——从哈密顿量设置到经典优化循环。","2026-01-28",[3626,4487,13,12754],{"type":18,"children":55281,"toc":57358},[55282,55287,55293,55298,55321,55326,55331,55336,55363,55368,55698,55703,55708,56038,56044,56049,56524,56529,56537,56542,56547,56552,56836,56842,56847,57195,57200,57205,57215,57225,57243,57336,57354],{"type":21,"tag":22,"props":55283,"children":55284},{},[55285],{"type":31,"value":55286},"变分量子本征求解器（VQE）是最重要的近期量子算法之一。它可以求出分子或材料的基态能量——这是一项对经典计算机而言呈指数级困难、但在 NISQ 设备上却可行的计算。本指南将带你完成一个完整的 PennyLane VQE 实现。",{"type":21,"tag":41,"props":55288,"children":55290},{"id":55289},"vqe-的作用",[55291],{"type":31,"value":55292},"VQE 的作用",{"type":21,"tag":22,"props":55294,"children":55295},{},[55296],{"type":31,"value":55297},"VQE 用于求出哈密顿量 H（通常表示分子的能量）的最小本征值。其工作方式如下：",{"type":21,"tag":67,"props":55299,"children":55300},{},[55301,55306,55311,55316],{"type":21,"tag":71,"props":55302,"children":55303},{},[55304],{"type":31,"value":55305},"使用量子电路制备参数化试探态 |ψ(θ)⟩",{"type":21,"tag":71,"props":55307,"children":55308},{},[55309],{"type":31,"value":55310},"在 QPU 上测量期望值 ⟨ψ(θ)|H|ψ(θ)⟩",{"type":21,"tag":71,"props":55312,"children":55313},{},[55314],{"type":31,"value":55315},"使用经典优化器更新 θ 以最小化能量",{"type":21,"tag":71,"props":55317,"children":55318},{},[55319],{"type":31,"value":55320},"重复上述步骤直至收敛",{"type":21,"tag":22,"props":55322,"children":55323},{},[55324],{"type":31,"value":55325},"变分原理保证对于任意态都有 ⟨ψ(θ)|H|ψ(θ)⟩ ≥ E₀——因此最小化这个量便给出了真实基态能量 E₀ 的一个上界。",{"type":21,"tag":41,"props":55327,"children":55329},{"id":55328},"环境设置",[55330],{"type":31,"value":55328},{"type":21,"tag":22,"props":55332,"children":55333},{},[55334],{"type":31,"value":55335},"安装 PennyLane 及其化学插件：",{"type":21,"tag":128,"props":55337,"children":55339},{"code":55338,"language":4511,"meta":7,"className":4512,"style":7},"pip install pennylane pennylane-qchem\n",[55340],{"type":21,"tag":103,"props":55341,"children":55342},{"__ignoreMap":7},[55343],{"type":21,"tag":138,"props":55344,"children":55345},{"class":140,"line":141},[55346,55350,55354,55358],{"type":21,"tag":138,"props":55347,"children":55348},{"style":4522},[55349],{"type":31,"value":4525},{"type":21,"tag":138,"props":55351,"children":55352},{"style":261},[55353],{"type":31,"value":4530},{"type":21,"tag":138,"props":55355,"children":55356},{"style":261},[55357],{"type":31,"value":9045},{"type":21,"tag":138,"props":55359,"children":55360},{"style":261},[55361],{"type":31,"value":55362}," pennylane-qchem\n",{"type":21,"tag":22,"props":55364,"children":55365},{},[55366],{"type":31,"value":55367},"对于氢分子（H₂）——这个经典的 VQE 基准——我们需要两个电子和四个自旋轨道（4 个量子比特）：",{"type":21,"tag":128,"props":55369,"children":55371},{"code":55370,"language":132,"meta":7,"className":130,"style":7},"import pennylane as qml\nfrom pennylane import numpy as np\nimport pennylane.qchem as qchem\n\n# H2 at equilibrium bond length (Angstrom)\nsymbols = [\"H\", \"H\"]\ncoordinates = np.array([[0.0, 0.0, -0.6614], [0.0, 0.0, 0.6614]])\n\n# Build the qubit Hamiltonian\nH, qubits = qchem.molecular_hamiltonian(\n    symbols,\n    coordinates,\n    basis=\"sto-3g\"\n)\nprint(f\"Hamiltonian: {len(H.ops)} terms, {qubits} qubits\")\n# Hamiltonian: 15 terms, 4 qubits\n",[55372],{"type":21,"tag":103,"props":55373,"children":55374},{"__ignoreMap":7},[55375,55394,55421,55442,55449,55457,55490,55560,55567,55575,55592,55600,55608,55624,55631,55690],{"type":21,"tag":138,"props":55376,"children":55377},{"class":140,"line":141},[55378,55382,55386,55390],{"type":21,"tag":138,"props":55379,"children":55380},{"style":145},[55381],{"type":31,"value":159},{"type":21,"tag":138,"props":55383,"children":55384},{"style":151},[55385],{"type":31,"value":5351},{"type":21,"tag":138,"props":55387,"children":55388},{"style":145},[55389],{"type":31,"value":5356},{"type":21,"tag":138,"props":55391,"children":55392},{"style":151},[55393],{"type":31,"value":5361},{"type":21,"tag":138,"props":55395,"children":55396},{"class":140,"line":167},[55397,55401,55405,55409,55413,55417],{"type":21,"tag":138,"props":55398,"children":55399},{"style":145},[55400],{"type":31,"value":148},{"type":21,"tag":138,"props":55402,"children":55403},{"style":151},[55404],{"type":31,"value":5351},{"type":21,"tag":138,"props":55406,"children":55407},{"style":145},[55408],{"type":31,"value":159},{"type":21,"tag":138,"props":55410,"children":55411},{"style":151},[55412],{"type":31,"value":8530},{"type":21,"tag":138,"props":55414,"children":55415},{"style":145},[55416],{"type":31,"value":5356},{"type":21,"tag":138,"props":55418,"children":55419},{"style":151},[55420],{"type":31,"value":8632},{"type":21,"tag":138,"props":55422,"children":55423},{"class":140,"line":189},[55424,55428,55433,55437],{"type":21,"tag":138,"props":55425,"children":55426},{"style":145},[55427],{"type":31,"value":159},{"type":21,"tag":138,"props":55429,"children":55430},{"style":151},[55431],{"type":31,"value":55432}," pennylane.qchem ",{"type":21,"tag":138,"props":55434,"children":55435},{"style":145},[55436],{"type":31,"value":5356},{"type":21,"tag":138,"props":55438,"children":55439},{"style":151},[55440],{"type":31,"value":55441}," qchem\n",{"type":21,"tag":138,"props":55443,"children":55444},{"class":140,"line":199},[55445],{"type":21,"tag":138,"props":55446,"children":55447},{"emptyLinePlaceholder":193},[55448],{"type":31,"value":196},{"type":21,"tag":138,"props":55450,"children":55451},{"class":140,"line":225},[55452],{"type":21,"tag":138,"props":55453,"children":55454},{"style":219},[55455],{"type":31,"value":55456},"# H2 at equilibrium bond length (Angstrom)\n",{"type":21,"tag":138,"props":55458,"children":55459},{"class":140,"line":233},[55460,55465,55469,55473,55478,55482,55486],{"type":21,"tag":138,"props":55461,"children":55462},{"style":151},[55463],{"type":31,"value":55464},"symbols ",{"type":21,"tag":138,"props":55466,"children":55467},{"style":145},[55468],{"type":31,"value":210},{"type":21,"tag":138,"props":55470,"children":55471},{"style":151},[55472],{"type":31,"value":8051},{"type":21,"tag":138,"props":55474,"children":55475},{"style":261},[55476],{"type":31,"value":55477},"\"H\"",{"type":21,"tag":138,"props":55479,"children":55480},{"style":151},[55481],{"type":31,"value":258},{"type":21,"tag":138,"props":55483,"children":55484},{"style":261},[55485],{"type":31,"value":55477},{"type":21,"tag":138,"props":55487,"children":55488},{"style":151},[55489],{"type":31,"value":14183},{"type":21,"tag":138,"props":55491,"children":55492},{"class":140,"line":272},[55493,55498,55502,55507,55511,55515,55519,55523,55527,55532,55536,55540,55544,55548,55552,55556],{"type":21,"tag":138,"props":55494,"children":55495},{"style":151},[55496],{"type":31,"value":55497},"coordinates ",{"type":21,"tag":138,"props":55499,"children":55500},{"style":145},[55501],{"type":31,"value":210},{"type":21,"tag":138,"props":55503,"children":55504},{"style":151},[55505],{"type":31,"value":55506}," np.array([[",{"type":21,"tag":138,"props":55508,"children":55509},{"style":213},[55510],{"type":31,"value":12578},{"type":21,"tag":138,"props":55512,"children":55513},{"style":151},[55514],{"type":31,"value":258},{"type":21,"tag":138,"props":55516,"children":55517},{"style":213},[55518],{"type":31,"value":12578},{"type":21,"tag":138,"props":55520,"children":55521},{"style":151},[55522],{"type":31,"value":258},{"type":21,"tag":138,"props":55524,"children":55525},{"style":145},[55526],{"type":31,"value":831},{"type":21,"tag":138,"props":55528,"children":55529},{"style":213},[55530],{"type":31,"value":55531},"0.6614",{"type":21,"tag":138,"props":55533,"children":55534},{"style":151},[55535],{"type":31,"value":6417},{"type":21,"tag":138,"props":55537,"children":55538},{"style":213},[55539],{"type":31,"value":12578},{"type":21,"tag":138,"props":55541,"children":55542},{"style":151},[55543],{"type":31,"value":258},{"type":21,"tag":138,"props":55545,"children":55546},{"style":213},[55547],{"type":31,"value":12578},{"type":21,"tag":138,"props":55549,"children":55550},{"style":151},[55551],{"type":31,"value":258},{"type":21,"tag":138,"props":55553,"children":55554},{"style":213},[55555],{"type":31,"value":55531},{"type":21,"tag":138,"props":55557,"children":55558},{"style":151},[55559],{"type":31,"value":11749},{"type":21,"tag":138,"props":55561,"children":55562},{"class":140,"line":308},[55563],{"type":21,"tag":138,"props":55564,"children":55565},{"emptyLinePlaceholder":193},[55566],{"type":31,"value":196},{"type":21,"tag":138,"props":55568,"children":55569},{"class":140,"line":16},[55570],{"type":21,"tag":138,"props":55571,"children":55572},{"style":219},[55573],{"type":31,"value":55574},"# Build the qubit Hamiltonian\n",{"type":21,"tag":138,"props":55576,"children":55577},{"class":140,"line":360},[55578,55583,55587],{"type":21,"tag":138,"props":55579,"children":55580},{"style":151},[55581],{"type":31,"value":55582},"H, qubits ",{"type":21,"tag":138,"props":55584,"children":55585},{"style":145},[55586],{"type":31,"value":210},{"type":21,"tag":138,"props":55588,"children":55589},{"style":151},[55590],{"type":31,"value":55591}," qchem.molecular_hamiltonian(\n",{"type":21,"tag":138,"props":55593,"children":55594},{"class":140,"line":368},[55595],{"type":21,"tag":138,"props":55596,"children":55597},{"style":151},[55598],{"type":31,"value":55599},"    symbols,\n",{"type":21,"tag":138,"props":55601,"children":55602},{"class":140,"line":377},[55603],{"type":21,"tag":138,"props":55604,"children":55605},{"style":151},[55606],{"type":31,"value":55607},"    coordinates,\n",{"type":21,"tag":138,"props":55609,"children":55610},{"class":140,"line":386},[55611,55615,55619],{"type":21,"tag":138,"props":55612,"children":55613},{"style":929},[55614],{"type":31,"value":12005},{"type":21,"tag":138,"props":55616,"children":55617},{"style":145},[55618],{"type":31,"value":210},{"type":21,"tag":138,"props":55620,"children":55621},{"style":261},[55622],{"type":31,"value":55623},"\"sto-3g\"\n",{"type":21,"tag":138,"props":55625,"children":55626},{"class":140,"line":395},[55627],{"type":21,"tag":138,"props":55628,"children":55629},{"style":151},[55630],{"type":31,"value":269},{"type":21,"tag":138,"props":55632,"children":55633},{"class":140,"line":413},[55634,55638,55642,55646,55651,55655,55660,55664,55669,55673,55677,55681,55686],{"type":21,"tag":138,"props":55635,"children":55636},{"style":213},[55637],{"type":31,"value":954},{"type":21,"tag":138,"props":55639,"children":55640},{"style":151},[55641],{"type":31,"value":959},{"type":21,"tag":138,"props":55643,"children":55644},{"style":145},[55645],{"type":31,"value":7537},{"type":21,"tag":138,"props":55647,"children":55648},{"style":261},[55649],{"type":31,"value":55650},"\"Hamiltonian: ",{"type":21,"tag":138,"props":55652,"children":55653},{"style":213},[55654],{"type":31,"value":19590},{"type":21,"tag":138,"props":55656,"children":55657},{"style":151},[55658],{"type":31,"value":55659},"(H.ops)",{"type":21,"tag":138,"props":55661,"children":55662},{"style":213},[55663],{"type":31,"value":7556},{"type":21,"tag":138,"props":55665,"children":55666},{"style":261},[55667],{"type":31,"value":55668}," terms, ",{"type":21,"tag":138,"props":55670,"children":55671},{"style":213},[55672],{"type":31,"value":7547},{"type":21,"tag":138,"props":55674,"children":55675},{"style":151},[55676],{"type":31,"value":22861},{"type":21,"tag":138,"props":55678,"children":55679},{"style":213},[55680],{"type":31,"value":7556},{"type":21,"tag":138,"props":55682,"children":55683},{"style":261},[55684],{"type":31,"value":55685}," qubits\"",{"type":21,"tag":138,"props":55687,"children":55688},{"style":151},[55689],{"type":31,"value":269},{"type":21,"tag":138,"props":55691,"children":55692},{"class":140,"line":12602},[55693],{"type":21,"tag":138,"props":55694,"children":55695},{"style":219},[55696],{"type":31,"value":55697},"# Hamiltonian: 15 terms, 4 qubits\n",{"type":21,"tag":41,"props":55699,"children":55701},{"id":55700},"定义拟设",[55702],{"type":31,"value":55700},{"type":21,"tag":22,"props":55704,"children":55705},{},[55706],{"type":31,"value":55707},"**拟设（ansatz）**是用于制备试探态的参数化电路。对于化学问题，UCCSD（酉耦合簇单激发与双激发，Unitary Coupled-Cluster Singles and Doubles）拟设是标准选择：",{"type":21,"tag":128,"props":55709,"children":55711},{"code":55710,"language":132,"meta":7,"className":130,"style":7},"# Get UCCSD circuit parameters\nelectrons = 2\nsingles, doubles = qchem.excitations(electrons, qubits)\ns_wires, d_wires = qchem.excitations_to_wires(singles, doubles, wires=range(qubits))\n\n# Initial Hartree-Fock state (reference state)\nhf_state = qchem.hf_state(electrons, qubits)\n\ndev = qml.device(\"default.qubit\", wires=qubits)\n\n@qml.qnode(dev)\ndef circuit(weights, wires, s_wires=[], d_wires=[], hf_state=hf_state):\n    # Prepare HF reference state\n    qml.BasisState(hf_state, wires=wires)\n\n    # Apply UCCSD excitations\n    qml.UCCSD(weights, wires, s_wires=s_wires, d_wires=d_wires, init_state=hf_state)\n\n    return qml.expval(H)\n",[55712],{"type":21,"tag":103,"props":55713,"children":55714},{"__ignoreMap":7},[55715,55723,55739,55756,55790,55797,55805,55822,55829,55865,55872,55883,55926,55934,55955,55962,55970,56020,56027],{"type":21,"tag":138,"props":55716,"children":55717},{"class":140,"line":141},[55718],{"type":21,"tag":138,"props":55719,"children":55720},{"style":219},[55721],{"type":31,"value":55722},"# Get UCCSD circuit parameters\n",{"type":21,"tag":138,"props":55724,"children":55725},{"class":140,"line":167},[55726,55731,55735],{"type":21,"tag":138,"props":55727,"children":55728},{"style":151},[55729],{"type":31,"value":55730},"electrons ",{"type":21,"tag":138,"props":55732,"children":55733},{"style":145},[55734],{"type":31,"value":210},{"type":21,"tag":138,"props":55736,"children":55737},{"style":213},[55738],{"type":31,"value":1610},{"type":21,"tag":138,"props":55740,"children":55741},{"class":140,"line":189},[55742,55747,55751],{"type":21,"tag":138,"props":55743,"children":55744},{"style":151},[55745],{"type":31,"value":55746},"singles, doubles ",{"type":21,"tag":138,"props":55748,"children":55749},{"style":145},[55750],{"type":31,"value":210},{"type":21,"tag":138,"props":55752,"children":55753},{"style":151},[55754],{"type":31,"value":55755}," qchem.excitations(electrons, qubits)\n",{"type":21,"tag":138,"props":55757,"children":55758},{"class":140,"line":199},[55759,55764,55768,55773,55777,55781,55785],{"type":21,"tag":138,"props":55760,"children":55761},{"style":151},[55762],{"type":31,"value":55763},"s_wires, d_wires ",{"type":21,"tag":138,"props":55765,"children":55766},{"style":145},[55767],{"type":31,"value":210},{"type":21,"tag":138,"props":55769,"children":55770},{"style":151},[55771],{"type":31,"value":55772}," qchem.excitations_to_wires(singles, doubles, ",{"type":21,"tag":138,"props":55774,"children":55775},{"style":929},[55776],{"type":31,"value":5460},{"type":21,"tag":138,"props":55778,"children":55779},{"style":145},[55780],{"type":31,"value":210},{"type":21,"tag":138,"props":55782,"children":55783},{"style":213},[55784],{"type":31,"value":17726},{"type":21,"tag":138,"props":55786,"children":55787},{"style":151},[55788],{"type":31,"value":55789},"(qubits))\n",{"type":21,"tag":138,"props":55791,"children":55792},{"class":140,"line":225},[55793],{"type":21,"tag":138,"props":55794,"children":55795},{"emptyLinePlaceholder":193},[55796],{"type":31,"value":196},{"type":21,"tag":138,"props":55798,"children":55799},{"class":140,"line":233},[55800],{"type":21,"tag":138,"props":55801,"children":55802},{"style":219},[55803],{"type":31,"value":55804},"# Initial Hartree-Fock state (reference state)\n",{"type":21,"tag":138,"props":55806,"children":55807},{"class":140,"line":272},[55808,55813,55817],{"type":21,"tag":138,"props":55809,"children":55810},{"style":151},[55811],{"type":31,"value":55812},"hf_state ",{"type":21,"tag":138,"props":55814,"children":55815},{"style":145},[55816],{"type":31,"value":210},{"type":21,"tag":138,"props":55818,"children":55819},{"style":151},[55820],{"type":31,"value":55821}," qchem.hf_state(electrons, qubits)\n",{"type":21,"tag":138,"props":55823,"children":55824},{"class":140,"line":308},[55825],{"type":21,"tag":138,"props":55826,"children":55827},{"emptyLinePlaceholder":193},[55828],{"type":31,"value":196},{"type":21,"tag":138,"props":55830,"children":55831},{"class":140,"line":16},[55832,55836,55840,55844,55848,55852,55856,55860],{"type":21,"tag":138,"props":55833,"children":55834},{"style":151},[55835],{"type":31,"value":8726},{"type":21,"tag":138,"props":55837,"children":55838},{"style":145},[55839],{"type":31,"value":210},{"type":21,"tag":138,"props":55841,"children":55842},{"style":151},[55843],{"type":31,"value":5446},{"type":21,"tag":138,"props":55845,"children":55846},{"style":261},[55847],{"type":31,"value":5451},{"type":21,"tag":138,"props":55849,"children":55850},{"style":151},[55851],{"type":31,"value":258},{"type":21,"tag":138,"props":55853,"children":55854},{"style":929},[55855],{"type":31,"value":5460},{"type":21,"tag":138,"props":55857,"children":55858},{"style":145},[55859],{"type":31,"value":210},{"type":21,"tag":138,"props":55861,"children":55862},{"style":151},[55863],{"type":31,"value":55864},"qubits)\n",{"type":21,"tag":138,"props":55866,"children":55867},{"class":140,"line":360},[55868],{"type":21,"tag":138,"props":55869,"children":55870},{"emptyLinePlaceholder":193},[55871],{"type":31,"value":196},{"type":21,"tag":138,"props":55873,"children":55874},{"class":140,"line":368},[55875,55879],{"type":21,"tag":138,"props":55876,"children":55877},{"style":4522},[55878],{"type":31,"value":5487},{"type":21,"tag":138,"props":55880,"children":55881},{"style":151},[55882],{"type":31,"value":8778},{"type":21,"tag":138,"props":55884,"children":55885},{"class":140,"line":377},[55886,55890,55894,55899,55903,55908,55912,55917,55921],{"type":21,"tag":138,"props":55887,"children":55888},{"style":145},[55889],{"type":31,"value":5500},{"type":21,"tag":138,"props":55891,"children":55892},{"style":4522},[55893],{"type":31,"value":5505},{"type":21,"tag":138,"props":55895,"children":55896},{"style":151},[55897],{"type":31,"value":55898},"(weights, wires, s_wires",{"type":21,"tag":138,"props":55900,"children":55901},{"style":145},[55902],{"type":31,"value":210},{"type":21,"tag":138,"props":55904,"children":55905},{"style":151},[55906],{"type":31,"value":55907},"[], d_wires",{"type":21,"tag":138,"props":55909,"children":55910},{"style":145},[55911],{"type":31,"value":210},{"type":21,"tag":138,"props":55913,"children":55914},{"style":151},[55915],{"type":31,"value":55916},"[], hf_state",{"type":21,"tag":138,"props":55918,"children":55919},{"style":145},[55920],{"type":31,"value":210},{"type":21,"tag":138,"props":55922,"children":55923},{"style":151},[55924],{"type":31,"value":55925},"hf_state):\n",{"type":21,"tag":138,"props":55927,"children":55928},{"class":140,"line":386},[55929],{"type":21,"tag":138,"props":55930,"children":55931},{"style":219},[55932],{"type":31,"value":55933},"    # Prepare HF reference state\n",{"type":21,"tag":138,"props":55935,"children":55936},{"class":140,"line":395},[55937,55942,55946,55950],{"type":21,"tag":138,"props":55938,"children":55939},{"style":151},[55940],{"type":31,"value":55941},"    qml.BasisState(hf_state, ",{"type":21,"tag":138,"props":55943,"children":55944},{"style":929},[55945],{"type":31,"value":5460},{"type":21,"tag":138,"props":55947,"children":55948},{"style":145},[55949],{"type":31,"value":210},{"type":21,"tag":138,"props":55951,"children":55952},{"style":151},[55953],{"type":31,"value":55954},"wires)\n",{"type":21,"tag":138,"props":55956,"children":55957},{"class":140,"line":413},[55958],{"type":21,"tag":138,"props":55959,"children":55960},{"emptyLinePlaceholder":193},[55961],{"type":31,"value":196},{"type":21,"tag":138,"props":55963,"children":55964},{"class":140,"line":12602},[55965],{"type":21,"tag":138,"props":55966,"children":55967},{"style":219},[55968],{"type":31,"value":55969},"    # Apply UCCSD excitations\n",{"type":21,"tag":138,"props":55971,"children":55972},{"class":140,"line":12619},[55973,55978,55983,55987,55992,55997,56001,56006,56011,56015],{"type":21,"tag":138,"props":55974,"children":55975},{"style":151},[55976],{"type":31,"value":55977},"    qml.UCCSD(weights, wires, ",{"type":21,"tag":138,"props":55979,"children":55980},{"style":929},[55981],{"type":31,"value":55982},"s_wires",{"type":21,"tag":138,"props":55984,"children":55985},{"style":145},[55986],{"type":31,"value":210},{"type":21,"tag":138,"props":55988,"children":55989},{"style":151},[55990],{"type":31,"value":55991},"s_wires, ",{"type":21,"tag":138,"props":55993,"children":55994},{"style":929},[55995],{"type":31,"value":55996},"d_wires",{"type":21,"tag":138,"props":55998,"children":55999},{"style":145},[56000],{"type":31,"value":210},{"type":21,"tag":138,"props":56002,"children":56003},{"style":151},[56004],{"type":31,"value":56005},"d_wires, ",{"type":21,"tag":138,"props":56007,"children":56008},{"style":929},[56009],{"type":31,"value":56010},"init_state",{"type":21,"tag":138,"props":56012,"children":56013},{"style":145},[56014],{"type":31,"value":210},{"type":21,"tag":138,"props":56016,"children":56017},{"style":151},[56018],{"type":31,"value":56019},"hf_state)\n",{"type":21,"tag":138,"props":56021,"children":56022},{"class":140,"line":12635},[56023],{"type":21,"tag":138,"props":56024,"children":56025},{"emptyLinePlaceholder":193},[56026],{"type":31,"value":196},{"type":21,"tag":138,"props":56028,"children":56029},{"class":140,"line":12643},[56030,56034],{"type":21,"tag":138,"props":56031,"children":56032},{"style":145},[56033],{"type":31,"value":5595},{"type":21,"tag":138,"props":56035,"children":56036},{"style":151},[56037],{"type":31,"value":46862},{"type":21,"tag":41,"props":56039,"children":56041},{"id":56040},"运行-vqe-优化",[56042],{"type":31,"value":56043},"运行 VQE 优化",{"type":21,"tag":22,"props":56045,"children":56046},{},[56047],{"type":31,"value":56048},"借助 PennyLane 的自动微分功能，我们可以直接使用基于梯度的优化器：",{"type":21,"tag":128,"props":56050,"children":56052},{"code":56051,"language":132,"meta":7,"className":130,"style":7},"# Initial parameters (all zeros = Hartree-Fock state)\ninit_params = np.zeros(len(singles) + len(doubles), requires_grad=True)\n\n# Adam optimizer (works well for VQE)\nopt = qml.AdamOptimizer(stepsize=0.4)\n\n# Optimization loop\nenergy_history = []\nparams = init_params.copy()\n\nfor step in range(200):\n    params, energy = opt.step_and_cost(\n        lambda p: circuit(p, range(qubits), s_wires=s_wires, d_wires=d_wires),\n        params\n    )\n    energy_history.append(energy)\n\n    if step % 20 == 0:\n        print(f\"Step {step:3d}: E = {energy:.6f} Ha\")\n\nprint(f\"\\nVQE ground state energy: {energy:.6f} Ha\")\nprint(f\"Reference (exact): -1.136189 Ha\")\n",[56053],{"type":21,"tag":103,"props":56054,"children":56055},{"__ignoreMap":7},[56056,56064,56118,56125,56133,56165,56172,56180,56197,56212,56219,56250,56266,56313,56321,56328,56336,56343,56375,56441,56448,56500],{"type":21,"tag":138,"props":56057,"children":56058},{"class":140,"line":141},[56059],{"type":21,"tag":138,"props":56060,"children":56061},{"style":219},[56062],{"type":31,"value":56063},"# Initial parameters (all zeros = Hartree-Fock state)\n",{"type":21,"tag":138,"props":56065,"children":56066},{"class":140,"line":167},[56067,56071,56075,56079,56083,56088,56092,56097,56102,56106,56110,56114],{"type":21,"tag":138,"props":56068,"children":56069},{"style":151},[56070],{"type":31,"value":51645},{"type":21,"tag":138,"props":56072,"children":56073},{"style":145},[56074],{"type":31,"value":210},{"type":21,"tag":138,"props":56076,"children":56077},{"style":151},[56078],{"type":31,"value":34484},{"type":21,"tag":138,"props":56080,"children":56081},{"style":213},[56082],{"type":31,"value":36834},{"type":21,"tag":138,"props":56084,"children":56085},{"style":151},[56086],{"type":31,"value":56087},"(singles) ",{"type":21,"tag":138,"props":56089,"children":56090},{"style":145},[56091],{"type":31,"value":1605},{"type":21,"tag":138,"props":56093,"children":56094},{"style":213},[56095],{"type":31,"value":56096}," len",{"type":21,"tag":138,"props":56098,"children":56099},{"style":151},[56100],{"type":31,"value":56101},"(doubles), ",{"type":21,"tag":138,"props":56103,"children":56104},{"style":929},[56105],{"type":31,"value":8668},{"type":21,"tag":138,"props":56107,"children":56108},{"style":145},[56109],{"type":31,"value":210},{"type":21,"tag":138,"props":56111,"children":56112},{"style":213},[56113],{"type":31,"value":8677},{"type":21,"tag":138,"props":56115,"children":56116},{"style":151},[56117],{"type":31,"value":269},{"type":21,"tag":138,"props":56119,"children":56120},{"class":140,"line":189},[56121],{"type":21,"tag":138,"props":56122,"children":56123},{"emptyLinePlaceholder":193},[56124],{"type":31,"value":196},{"type":21,"tag":138,"props":56126,"children":56127},{"class":140,"line":199},[56128],{"type":21,"tag":138,"props":56129,"children":56130},{"style":219},[56131],{"type":31,"value":56132},"# Adam optimizer (works well for VQE)\n",{"type":21,"tag":138,"props":56134,"children":56135},{"class":140,"line":225},[56136,56140,56144,56148,56152,56156,56161],{"type":21,"tag":138,"props":56137,"children":56138},{"style":151},[56139],{"type":31,"value":36721},{"type":21,"tag":138,"props":56141,"children":56142},{"style":145},[56143],{"type":31,"value":210},{"type":21,"tag":138,"props":56145,"children":56146},{"style":151},[56147],{"type":31,"value":36730},{"type":21,"tag":138,"props":56149,"children":56150},{"style":929},[56151],{"type":31,"value":36735},{"type":21,"tag":138,"props":56153,"children":56154},{"style":145},[56155],{"type":31,"value":210},{"type":21,"tag":138,"props":56157,"children":56158},{"style":213},[56159],{"type":31,"value":56160},"0.4",{"type":21,"tag":138,"props":56162,"children":56163},{"style":151},[56164],{"type":31,"value":269},{"type":21,"tag":138,"props":56166,"children":56167},{"class":140,"line":233},[56168],{"type":21,"tag":138,"props":56169,"children":56170},{"emptyLinePlaceholder":193},[56171],{"type":31,"value":196},{"type":21,"tag":138,"props":56173,"children":56174},{"class":140,"line":272},[56175],{"type":21,"tag":138,"props":56176,"children":56177},{"style":219},[56178],{"type":31,"value":56179},"# Optimization loop\n",{"type":21,"tag":138,"props":56181,"children":56182},{"class":140,"line":308},[56183,56188,56192],{"type":21,"tag":138,"props":56184,"children":56185},{"style":151},[56186],{"type":31,"value":56187},"energy_history ",{"type":21,"tag":138,"props":56189,"children":56190},{"style":145},[56191],{"type":31,"value":210},{"type":21,"tag":138,"props":56193,"children":56194},{"style":151},[56195],{"type":31,"value":56196}," []\n",{"type":21,"tag":138,"props":56198,"children":56199},{"class":140,"line":16},[56200,56204,56208],{"type":21,"tag":138,"props":56201,"children":56202},{"style":151},[56203],{"type":31,"value":8552},{"type":21,"tag":138,"props":56205,"children":56206},{"style":145},[56207],{"type":31,"value":210},{"type":21,"tag":138,"props":56209,"children":56210},{"style":151},[56211],{"type":31,"value":47592},{"type":21,"tag":138,"props":56213,"children":56214},{"class":140,"line":360},[56215],{"type":21,"tag":138,"props":56216,"children":56217},{"emptyLinePlaceholder":193},[56218],{"type":31,"value":196},{"type":21,"tag":138,"props":56220,"children":56221},{"class":140,"line":368},[56222,56226,56230,56234,56238,56242,56246],{"type":21,"tag":138,"props":56223,"children":56224},{"style":145},[56225],{"type":31,"value":1492},{"type":21,"tag":138,"props":56227,"children":56228},{"style":151},[56229],{"type":31,"value":36783},{"type":21,"tag":138,"props":56231,"children":56232},{"style":145},[56233],{"type":31,"value":1502},{"type":21,"tag":138,"props":56235,"children":56236},{"style":213},[56237],{"type":31,"value":7430},{"type":21,"tag":138,"props":56239,"children":56240},{"style":151},[56241],{"type":31,"value":959},{"type":21,"tag":138,"props":56243,"children":56244},{"style":213},[56245],{"type":31,"value":14119},{"type":21,"tag":138,"props":56247,"children":56248},{"style":151},[56249],{"type":31,"value":7443},{"type":21,"tag":138,"props":56251,"children":56252},{"class":140,"line":377},[56253,56257,56261],{"type":21,"tag":138,"props":56254,"children":56255},{"style":151},[56256],{"type":31,"value":47661},{"type":21,"tag":138,"props":56258,"children":56259},{"style":145},[56260],{"type":31,"value":210},{"type":21,"tag":138,"props":56262,"children":56263},{"style":151},[56264],{"type":31,"value":56265}," opt.step_and_cost(\n",{"type":21,"tag":138,"props":56267,"children":56268},{"class":140,"line":386},[56269,56274,56279,56283,56288,56292,56296,56300,56304,56308],{"type":21,"tag":138,"props":56270,"children":56271},{"style":145},[56272],{"type":31,"value":56273},"        lambda",{"type":21,"tag":138,"props":56275,"children":56276},{"style":151},[56277],{"type":31,"value":56278}," p: circuit(p, ",{"type":21,"tag":138,"props":56280,"children":56281},{"style":213},[56282],{"type":31,"value":17726},{"type":21,"tag":138,"props":56284,"children":56285},{"style":151},[56286],{"type":31,"value":56287},"(qubits), ",{"type":21,"tag":138,"props":56289,"children":56290},{"style":929},[56291],{"type":31,"value":55982},{"type":21,"tag":138,"props":56293,"children":56294},{"style":145},[56295],{"type":31,"value":210},{"type":21,"tag":138,"props":56297,"children":56298},{"style":151},[56299],{"type":31,"value":55991},{"type":21,"tag":138,"props":56301,"children":56302},{"style":929},[56303],{"type":31,"value":55996},{"type":21,"tag":138,"props":56305,"children":56306},{"style":145},[56307],{"type":31,"value":210},{"type":21,"tag":138,"props":56309,"children":56310},{"style":151},[56311],{"type":31,"value":56312},"d_wires),\n",{"type":21,"tag":138,"props":56314,"children":56315},{"class":140,"line":395},[56316],{"type":21,"tag":138,"props":56317,"children":56318},{"style":151},[56319],{"type":31,"value":56320},"        params\n",{"type":21,"tag":138,"props":56322,"children":56323},{"class":140,"line":413},[56324],{"type":21,"tag":138,"props":56325,"children":56326},{"style":151},[56327],{"type":31,"value":26490},{"type":21,"tag":138,"props":56329,"children":56330},{"class":140,"line":12602},[56331],{"type":21,"tag":138,"props":56332,"children":56333},{"style":151},[56334],{"type":31,"value":56335},"    energy_history.append(energy)\n",{"type":21,"tag":138,"props":56337,"children":56338},{"class":140,"line":12619},[56339],{"type":21,"tag":138,"props":56340,"children":56341},{"emptyLinePlaceholder":193},[56342],{"type":31,"value":196},{"type":21,"tag":138,"props":56344,"children":56345},{"class":140,"line":12635},[56346,56350,56354,56358,56363,56367,56371],{"type":21,"tag":138,"props":56347,"children":56348},{"style":145},[56349],{"type":31,"value":19536},{"type":21,"tag":138,"props":56351,"children":56352},{"style":151},[56353],{"type":31,"value":36783},{"type":21,"tag":138,"props":56355,"children":56356},{"style":145},[56357],{"type":31,"value":28245},{"type":21,"tag":138,"props":56359,"children":56360},{"style":213},[56361],{"type":31,"value":56362}," 20",{"type":21,"tag":138,"props":56364,"children":56365},{"style":145},[56366],{"type":31,"value":36908},{"type":21,"tag":138,"props":56368,"children":56369},{"style":213},[56370],{"type":31,"value":33761},{"type":21,"tag":138,"props":56372,"children":56373},{"style":151},[56374],{"type":31,"value":26811},{"type":21,"tag":138,"props":56376,"children":56377},{"class":140,"line":12643},[56378,56382,56386,56390,56394,56398,56402,56407,56411,56416,56420,56424,56429,56433,56437],{"type":21,"tag":138,"props":56379,"children":56380},{"style":213},[56381],{"type":31,"value":34685},{"type":21,"tag":138,"props":56383,"children":56384},{"style":151},[56385],{"type":31,"value":959},{"type":21,"tag":138,"props":56387,"children":56388},{"style":145},[56389],{"type":31,"value":7537},{"type":21,"tag":138,"props":56391,"children":56392},{"style":261},[56393],{"type":31,"value":36999},{"type":21,"tag":138,"props":56395,"children":56396},{"style":213},[56397],{"type":31,"value":7547},{"type":21,"tag":138,"props":56399,"children":56400},{"style":151},[56401],{"type":31,"value":37008},{"type":21,"tag":138,"props":56403,"children":56404},{"style":145},[56405],{"type":31,"value":56406},":3d",{"type":21,"tag":138,"props":56408,"children":56409},{"style":213},[56410],{"type":31,"value":7556},{"type":21,"tag":138,"props":56412,"children":56413},{"style":261},[56414],{"type":31,"value":56415},": E = ",{"type":21,"tag":138,"props":56417,"children":56418},{"style":213},[56419],{"type":31,"value":7547},{"type":21,"tag":138,"props":56421,"children":56422},{"style":151},[56423],{"type":31,"value":48565},{"type":21,"tag":138,"props":56425,"children":56426},{"style":145},[56427],{"type":31,"value":56428},":.6f",{"type":21,"tag":138,"props":56430,"children":56431},{"style":213},[56432],{"type":31,"value":7556},{"type":21,"tag":138,"props":56434,"children":56435},{"style":261},[56436],{"type":31,"value":41182},{"type":21,"tag":138,"props":56438,"children":56439},{"style":151},[56440],{"type":31,"value":269},{"type":21,"tag":138,"props":56442,"children":56443},{"class":140,"line":17760},[56444],{"type":21,"tag":138,"props":56445,"children":56446},{"emptyLinePlaceholder":193},[56447],{"type":31,"value":196},{"type":21,"tag":138,"props":56449,"children":56450},{"class":140,"line":17778},[56451,56455,56459,56463,56467,56471,56476,56480,56484,56488,56492,56496],{"type":21,"tag":138,"props":56452,"children":56453},{"style":213},[56454],{"type":31,"value":954},{"type":21,"tag":138,"props":56456,"children":56457},{"style":151},[56458],{"type":31,"value":959},{"type":21,"tag":138,"props":56460,"children":56461},{"style":145},[56462],{"type":31,"value":7537},{"type":21,"tag":138,"props":56464,"children":56465},{"style":261},[56466],{"type":31,"value":15383},{"type":21,"tag":138,"props":56468,"children":56469},{"style":213},[56470],{"type":31,"value":37136},{"type":21,"tag":138,"props":56472,"children":56473},{"style":261},[56474],{"type":31,"value":56475},"VQE ground state energy: ",{"type":21,"tag":138,"props":56477,"children":56478},{"style":213},[56479],{"type":31,"value":7547},{"type":21,"tag":138,"props":56481,"children":56482},{"style":151},[56483],{"type":31,"value":48565},{"type":21,"tag":138,"props":56485,"children":56486},{"style":145},[56487],{"type":31,"value":56428},{"type":21,"tag":138,"props":56489,"children":56490},{"style":213},[56491],{"type":31,"value":7556},{"type":21,"tag":138,"props":56493,"children":56494},{"style":261},[56495],{"type":31,"value":41182},{"type":21,"tag":138,"props":56497,"children":56498},{"style":151},[56499],{"type":31,"value":269},{"type":21,"tag":138,"props":56501,"children":56502},{"class":140,"line":17803},[56503,56507,56511,56515,56520],{"type":21,"tag":138,"props":56504,"children":56505},{"style":213},[56506],{"type":31,"value":954},{"type":21,"tag":138,"props":56508,"children":56509},{"style":151},[56510],{"type":31,"value":959},{"type":21,"tag":138,"props":56512,"children":56513},{"style":145},[56514],{"type":31,"value":7537},{"type":21,"tag":138,"props":56516,"children":56517},{"style":261},[56518],{"type":31,"value":56519},"\"Reference (exact): -1.136189 Ha\"",{"type":21,"tag":138,"props":56521,"children":56522},{"style":151},[56523],{"type":31,"value":269},{"type":21,"tag":22,"props":56525,"children":56526},{},[56527],{"type":31,"value":56528},"典型输出：",{"type":21,"tag":128,"props":56530,"children":56532},{"code":56531},"Step   0: E = -1.117498 Ha\nStep  20: E = -1.133254 Ha\nStep  40: E = -1.135901 Ha\nStep  60: E = -1.136140 Ha\n...\nVQE ground state energy: -1.136174 Ha\nReference (exact): -1.136189 Ha\n",[56533],{"type":21,"tag":103,"props":56534,"children":56535},{"__ignoreMap":7},[56536],{"type":31,"value":56531},{"type":21,"tag":22,"props":56538,"children":56539},{},[56540],{"type":31,"value":56541},"VQE 达到了与精确能量相差约 0.015 mHa 的水平——这对 H₂ 而言即为化学精度。",{"type":21,"tag":41,"props":56543,"children":56545},{"id":56544},"使用无梯度优化器",[56546],{"type":31,"value":56544},{"type":21,"tag":22,"props":56548,"children":56549},{},[56550],{"type":31,"value":56551},"对于有噪声的硬件，由于硬件梯度带有噪声，像 COBYLA 或 SPSA 这样的无梯度优化器往往表现更好：",{"type":21,"tag":128,"props":56553,"children":56555},{"code":56554,"language":132,"meta":7,"className":130,"style":7},"from scipy.optimize import minimize\n\n# Objective function (no gradient needed)\ndef objective(params):\n    return float(circuit(params, range(qubits), s_wires=s_wires, d_wires=d_wires))\n\nresult = minimize(\n    objective,\n    x0=init_params,\n    method=\"COBYLA\",\n    options={\"maxiter\": 500, \"rhobeg\": 0.1}\n)\n\nprint(f\"COBYLA energy: {result.fun:.6f} Ha\")\n",[56556],{"type":21,"tag":103,"props":56557,"children":56558},{"__ignoreMap":7},[56559,56578,56585,56593,56609,56658,56665,56681,56689,56706,56727,56778,56785,56792],{"type":21,"tag":138,"props":56560,"children":56561},{"class":140,"line":141},[56562,56566,56570,56574],{"type":21,"tag":138,"props":56563,"children":56564},{"style":145},[56565],{"type":31,"value":148},{"type":21,"tag":138,"props":56567,"children":56568},{"style":151},[56569],{"type":31,"value":50764},{"type":21,"tag":138,"props":56571,"children":56572},{"style":145},[56573],{"type":31,"value":159},{"type":21,"tag":138,"props":56575,"children":56576},{"style":151},[56577],{"type":31,"value":50773},{"type":21,"tag":138,"props":56579,"children":56580},{"class":140,"line":167},[56581],{"type":21,"tag":138,"props":56582,"children":56583},{"emptyLinePlaceholder":193},[56584],{"type":31,"value":196},{"type":21,"tag":138,"props":56586,"children":56587},{"class":140,"line":189},[56588],{"type":21,"tag":138,"props":56589,"children":56590},{"style":219},[56591],{"type":31,"value":56592},"# Objective function (no gradient needed)\n",{"type":21,"tag":138,"props":56594,"children":56595},{"class":140,"line":199},[56596,56600,56605],{"type":21,"tag":138,"props":56597,"children":56598},{"style":145},[56599],{"type":31,"value":5500},{"type":21,"tag":138,"props":56601,"children":56602},{"style":4522},[56603],{"type":31,"value":56604}," objective",{"type":21,"tag":138,"props":56606,"children":56607},{"style":151},[56608],{"type":31,"value":46834},{"type":21,"tag":138,"props":56610,"children":56611},{"class":140,"line":225},[56612,56616,56620,56625,56629,56633,56637,56641,56645,56649,56653],{"type":21,"tag":138,"props":56613,"children":56614},{"style":145},[56615],{"type":31,"value":5595},{"type":21,"tag":138,"props":56617,"children":56618},{"style":213},[56619],{"type":31,"value":47609},{"type":21,"tag":138,"props":56621,"children":56622},{"style":151},[56623],{"type":31,"value":56624},"(circuit(params, ",{"type":21,"tag":138,"props":56626,"children":56627},{"style":213},[56628],{"type":31,"value":17726},{"type":21,"tag":138,"props":56630,"children":56631},{"style":151},[56632],{"type":31,"value":56287},{"type":21,"tag":138,"props":56634,"children":56635},{"style":929},[56636],{"type":31,"value":55982},{"type":21,"tag":138,"props":56638,"children":56639},{"style":145},[56640],{"type":31,"value":210},{"type":21,"tag":138,"props":56642,"children":56643},{"style":151},[56644],{"type":31,"value":55991},{"type":21,"tag":138,"props":56646,"children":56647},{"style":929},[56648],{"type":31,"value":55996},{"type":21,"tag":138,"props":56650,"children":56651},{"style":145},[56652],{"type":31,"value":210},{"type":21,"tag":138,"props":56654,"children":56655},{"style":151},[56656],{"type":31,"value":56657},"d_wires))\n",{"type":21,"tag":138,"props":56659,"children":56660},{"class":140,"line":233},[56661],{"type":21,"tag":138,"props":56662,"children":56663},{"emptyLinePlaceholder":193},[56664],{"type":31,"value":196},{"type":21,"tag":138,"props":56666,"children":56667},{"class":140,"line":272},[56668,56672,56676],{"type":21,"tag":138,"props":56669,"children":56670},{"style":151},[56671],{"type":31,"value":4881},{"type":21,"tag":138,"props":56673,"children":56674},{"style":145},[56675],{"type":31,"value":210},{"type":21,"tag":138,"props":56677,"children":56678},{"style":151},[56679],{"type":31,"value":56680}," minimize(\n",{"type":21,"tag":138,"props":56682,"children":56683},{"class":140,"line":308},[56684],{"type":21,"tag":138,"props":56685,"children":56686},{"style":151},[56687],{"type":31,"value":56688},"    objective,\n",{"type":21,"tag":138,"props":56690,"children":56691},{"class":140,"line":16},[56692,56697,56701],{"type":21,"tag":138,"props":56693,"children":56694},{"style":929},[56695],{"type":31,"value":56696},"    x0",{"type":21,"tag":138,"props":56698,"children":56699},{"style":145},[56700],{"type":31,"value":210},{"type":21,"tag":138,"props":56702,"children":56703},{"style":151},[56704],{"type":31,"value":56705},"init_params,\n",{"type":21,"tag":138,"props":56707,"children":56708},{"class":140,"line":360},[56709,56714,56718,56723],{"type":21,"tag":138,"props":56710,"children":56711},{"style":929},[56712],{"type":31,"value":56713},"    method",{"type":21,"tag":138,"props":56715,"children":56716},{"style":145},[56717],{"type":31,"value":210},{"type":21,"tag":138,"props":56719,"children":56720},{"style":261},[56721],{"type":31,"value":56722},"\"COBYLA\"",{"type":21,"tag":138,"props":56724,"children":56725},{"style":151},[56726],{"type":31,"value":4824},{"type":21,"tag":138,"props":56728,"children":56729},{"class":140,"line":368},[56730,56735,56739,56743,56748,56752,56757,56761,56766,56770,56774],{"type":21,"tag":138,"props":56731,"children":56732},{"style":929},[56733],{"type":31,"value":56734},"    options",{"type":21,"tag":138,"props":56736,"children":56737},{"style":145},[56738],{"type":31,"value":210},{"type":21,"tag":138,"props":56740,"children":56741},{"style":151},[56742],{"type":31,"value":7547},{"type":21,"tag":138,"props":56744,"children":56745},{"style":261},[56746],{"type":31,"value":56747},"\"maxiter\"",{"type":21,"tag":138,"props":56749,"children":56750},{"style":151},[56751],{"type":31,"value":24135},{"type":21,"tag":138,"props":56753,"children":56754},{"style":213},[56755],{"type":31,"value":56756},"500",{"type":21,"tag":138,"props":56758,"children":56759},{"style":151},[56760],{"type":31,"value":258},{"type":21,"tag":138,"props":56762,"children":56763},{"style":261},[56764],{"type":31,"value":56765},"\"rhobeg\"",{"type":21,"tag":138,"props":56767,"children":56768},{"style":151},[56769],{"type":31,"value":24135},{"type":21,"tag":138,"props":56771,"children":56772},{"style":213},[56773],{"type":31,"value":8566},{"type":21,"tag":138,"props":56775,"children":56776},{"style":151},[56777],{"type":31,"value":19559},{"type":21,"tag":138,"props":56779,"children":56780},{"class":140,"line":377},[56781],{"type":21,"tag":138,"props":56782,"children":56783},{"style":151},[56784],{"type":31,"value":269},{"type":21,"tag":138,"props":56786,"children":56787},{"class":140,"line":386},[56788],{"type":21,"tag":138,"props":56789,"children":56790},{"emptyLinePlaceholder":193},[56791],{"type":31,"value":196},{"type":21,"tag":138,"props":56793,"children":56794},{"class":140,"line":395},[56795,56799,56803,56807,56812,56816,56820,56824,56828,56832],{"type":21,"tag":138,"props":56796,"children":56797},{"style":213},[56798],{"type":31,"value":954},{"type":21,"tag":138,"props":56800,"children":56801},{"style":151},[56802],{"type":31,"value":959},{"type":21,"tag":138,"props":56804,"children":56805},{"style":145},[56806],{"type":31,"value":7537},{"type":21,"tag":138,"props":56808,"children":56809},{"style":261},[56810],{"type":31,"value":56811},"\"COBYLA energy: ",{"type":21,"tag":138,"props":56813,"children":56814},{"style":213},[56815],{"type":31,"value":7547},{"type":21,"tag":138,"props":56817,"children":56818},{"style":151},[56819],{"type":31,"value":51822},{"type":21,"tag":138,"props":56821,"children":56822},{"style":145},[56823],{"type":31,"value":56428},{"type":21,"tag":138,"props":56825,"children":56826},{"style":213},[56827],{"type":31,"value":7556},{"type":21,"tag":138,"props":56829,"children":56830},{"style":261},[56831],{"type":31,"value":41182},{"type":21,"tag":138,"props":56833,"children":56834},{"style":151},[56835],{"type":31,"value":269},{"type":21,"tag":41,"props":56837,"children":56839},{"id":56838},"使用-hlquantum-运行-vqe",[56840],{"type":31,"value":56841},"使用 HLQuantum 运行 VQE",{"type":21,"tag":22,"props":56843,"children":56844},{},[56845],{"type":31,"value":56846},"HLQuantum 内置了一个可跨所有后端运行的 VQE 实现：",{"type":21,"tag":128,"props":56848,"children":56850},{"code":56849,"language":132,"meta":7,"className":130,"style":7},"import hlquantum as hlq\n\n# Define the Hamiltonian in HLQuantum's format\nH = hlq.hamiltonians.h2_molecule(bond_length=1.32)\n\n# Run VQE on any backend\nresult = hlq.algorithms.vqe(\n    hamiltonian=H,\n    ansatz=\"uccsd\",\n    optimizer=\"adam\",\n    max_iterations=200,\n    backend=\"pennylane\",   # or \"qiskit\", \"cudaq\"\n)\n\nprint(f\"Ground state energy: {result.energy:.6f} Ha\")\nprint(f\"Optimal parameters: {result.params}\")\nprint(f\"Converged in {result.iterations} iterations\")\n",[56851],{"type":21,"tag":103,"props":56852,"children":56853},{"__ignoreMap":7},[56854,56873,56880,56888,56922,56929,56937,56952,56969,56990,57010,57030,57055,57062,57069,57112,57153],{"type":21,"tag":138,"props":56855,"children":56856},{"class":140,"line":141},[56857,56861,56865,56869],{"type":21,"tag":138,"props":56858,"children":56859},{"style":145},[56860],{"type":31,"value":159},{"type":21,"tag":138,"props":56862,"children":56863},{"style":151},[56864],{"type":31,"value":41047},{"type":21,"tag":138,"props":56866,"children":56867},{"style":145},[56868],{"type":31,"value":5356},{"type":21,"tag":138,"props":56870,"children":56871},{"style":151},[56872],{"type":31,"value":41056},{"type":21,"tag":138,"props":56874,"children":56875},{"class":140,"line":167},[56876],{"type":21,"tag":138,"props":56877,"children":56878},{"emptyLinePlaceholder":193},[56879],{"type":31,"value":196},{"type":21,"tag":138,"props":56881,"children":56882},{"class":140,"line":189},[56883],{"type":21,"tag":138,"props":56884,"children":56885},{"style":219},[56886],{"type":31,"value":56887},"# Define the Hamiltonian in HLQuantum's format\n",{"type":21,"tag":138,"props":56889,"children":56890},{"class":140,"line":199},[56891,56895,56899,56904,56909,56913,56918],{"type":21,"tag":138,"props":56892,"children":56893},{"style":151},[56894],{"type":31,"value":46574},{"type":21,"tag":138,"props":56896,"children":56897},{"style":145},[56898],{"type":31,"value":210},{"type":21,"tag":138,"props":56900,"children":56901},{"style":151},[56902],{"type":31,"value":56903}," hlq.hamiltonians.h2_molecule(",{"type":21,"tag":138,"props":56905,"children":56906},{"style":929},[56907],{"type":31,"value":56908},"bond_length",{"type":21,"tag":138,"props":56910,"children":56911},{"style":145},[56912],{"type":31,"value":210},{"type":21,"tag":138,"props":56914,"children":56915},{"style":213},[56916],{"type":31,"value":56917},"1.32",{"type":21,"tag":138,"props":56919,"children":56920},{"style":151},[56921],{"type":31,"value":269},{"type":21,"tag":138,"props":56923,"children":56924},{"class":140,"line":225},[56925],{"type":21,"tag":138,"props":56926,"children":56927},{"emptyLinePlaceholder":193},[56928],{"type":31,"value":196},{"type":21,"tag":138,"props":56930,"children":56931},{"class":140,"line":233},[56932],{"type":21,"tag":138,"props":56933,"children":56934},{"style":219},[56935],{"type":31,"value":56936},"# Run VQE on any backend\n",{"type":21,"tag":138,"props":56938,"children":56939},{"class":140,"line":272},[56940,56944,56948],{"type":21,"tag":138,"props":56941,"children":56942},{"style":151},[56943],{"type":31,"value":4881},{"type":21,"tag":138,"props":56945,"children":56946},{"style":145},[56947],{"type":31,"value":210},{"type":21,"tag":138,"props":56949,"children":56950},{"style":151},[56951],{"type":31,"value":44514},{"type":21,"tag":138,"props":56953,"children":56954},{"class":140,"line":308},[56955,56960,56964],{"type":21,"tag":138,"props":56956,"children":56957},{"style":929},[56958],{"type":31,"value":56959},"    hamiltonian",{"type":21,"tag":138,"props":56961,"children":56962},{"style":145},[56963],{"type":31,"value":210},{"type":21,"tag":138,"props":56965,"children":56966},{"style":151},[56967],{"type":31,"value":56968},"H,\n",{"type":21,"tag":138,"props":56970,"children":56971},{"class":140,"line":16},[56972,56977,56981,56986],{"type":21,"tag":138,"props":56973,"children":56974},{"style":929},[56975],{"type":31,"value":56976},"    ansatz",{"type":21,"tag":138,"props":56978,"children":56979},{"style":145},[56980],{"type":31,"value":210},{"type":21,"tag":138,"props":56982,"children":56983},{"style":261},[56984],{"type":31,"value":56985},"\"uccsd\"",{"type":21,"tag":138,"props":56987,"children":56988},{"style":151},[56989],{"type":31,"value":4824},{"type":21,"tag":138,"props":56991,"children":56992},{"class":140,"line":360},[56993,56997,57001,57006],{"type":21,"tag":138,"props":56994,"children":56995},{"style":929},[56996],{"type":31,"value":44581},{"type":21,"tag":138,"props":56998,"children":56999},{"style":145},[57000],{"type":31,"value":210},{"type":21,"tag":138,"props":57002,"children":57003},{"style":261},[57004],{"type":31,"value":57005},"\"adam\"",{"type":21,"tag":138,"props":57007,"children":57008},{"style":151},[57009],{"type":31,"value":4824},{"type":21,"tag":138,"props":57011,"children":57012},{"class":140,"line":368},[57013,57018,57022,57026],{"type":21,"tag":138,"props":57014,"children":57015},{"style":929},[57016],{"type":31,"value":57017},"    max_iterations",{"type":21,"tag":138,"props":57019,"children":57020},{"style":145},[57021],{"type":31,"value":210},{"type":21,"tag":138,"props":57023,"children":57024},{"style":213},[57025],{"type":31,"value":14119},{"type":21,"tag":138,"props":57027,"children":57028},{"style":151},[57029],{"type":31,"value":4824},{"type":21,"tag":138,"props":57031,"children":57032},{"class":140,"line":377},[57033,57037,57041,57045,57050],{"type":21,"tag":138,"props":57034,"children":57035},{"style":929},[57036],{"type":31,"value":44561},{"type":21,"tag":138,"props":57038,"children":57039},{"style":145},[57040],{"type":31,"value":210},{"type":21,"tag":138,"props":57042,"children":57043},{"style":261},[57044],{"type":31,"value":55107},{"type":21,"tag":138,"props":57046,"children":57047},{"style":151},[57048],{"type":31,"value":57049},",   ",{"type":21,"tag":138,"props":57051,"children":57052},{"style":219},[57053],{"type":31,"value":57054},"# or \"qiskit\", \"cudaq\"\n",{"type":21,"tag":138,"props":57056,"children":57057},{"class":140,"line":386},[57058],{"type":21,"tag":138,"props":57059,"children":57060},{"style":151},[57061],{"type":31,"value":269},{"type":21,"tag":138,"props":57063,"children":57064},{"class":140,"line":395},[57065],{"type":21,"tag":138,"props":57066,"children":57067},{"emptyLinePlaceholder":193},[57068],{"type":31,"value":196},{"type":21,"tag":138,"props":57070,"children":57071},{"class":140,"line":413},[57072,57076,57080,57084,57088,57092,57096,57100,57104,57108],{"type":21,"tag":138,"props":57073,"children":57074},{"style":213},[57075],{"type":31,"value":954},{"type":21,"tag":138,"props":57077,"children":57078},{"style":151},[57079],{"type":31,"value":959},{"type":21,"tag":138,"props":57081,"children":57082},{"style":145},[57083],{"type":31,"value":7537},{"type":21,"tag":138,"props":57085,"children":57086},{"style":261},[57087],{"type":31,"value":48556},{"type":21,"tag":138,"props":57089,"children":57090},{"style":213},[57091],{"type":31,"value":7547},{"type":21,"tag":138,"props":57093,"children":57094},{"style":151},[57095],{"type":31,"value":41169},{"type":21,"tag":138,"props":57097,"children":57098},{"style":145},[57099],{"type":31,"value":56428},{"type":21,"tag":138,"props":57101,"children":57102},{"style":213},[57103],{"type":31,"value":7556},{"type":21,"tag":138,"props":57105,"children":57106},{"style":261},[57107],{"type":31,"value":41182},{"type":21,"tag":138,"props":57109,"children":57110},{"style":151},[57111],{"type":31,"value":269},{"type":21,"tag":138,"props":57113,"children":57114},{"class":140,"line":12602},[57115,57119,57123,57127,57132,57136,57141,57145,57149],{"type":21,"tag":138,"props":57116,"children":57117},{"style":213},[57118],{"type":31,"value":954},{"type":21,"tag":138,"props":57120,"children":57121},{"style":151},[57122],{"type":31,"value":959},{"type":21,"tag":138,"props":57124,"children":57125},{"style":145},[57126],{"type":31,"value":7537},{"type":21,"tag":138,"props":57128,"children":57129},{"style":261},[57130],{"type":31,"value":57131},"\"Optimal parameters: ",{"type":21,"tag":138,"props":57133,"children":57134},{"style":213},[57135],{"type":31,"value":7547},{"type":21,"tag":138,"props":57137,"children":57138},{"style":151},[57139],{"type":31,"value":57140},"result.params",{"type":21,"tag":138,"props":57142,"children":57143},{"style":213},[57144],{"type":31,"value":7556},{"type":21,"tag":138,"props":57146,"children":57147},{"style":261},[57148],{"type":31,"value":15383},{"type":21,"tag":138,"props":57150,"children":57151},{"style":151},[57152],{"type":31,"value":269},{"type":21,"tag":138,"props":57154,"children":57155},{"class":140,"line":12619},[57156,57160,57164,57168,57173,57177,57182,57186,57191],{"type":21,"tag":138,"props":57157,"children":57158},{"style":213},[57159],{"type":31,"value":954},{"type":21,"tag":138,"props":57161,"children":57162},{"style":151},[57163],{"type":31,"value":959},{"type":21,"tag":138,"props":57165,"children":57166},{"style":145},[57167],{"type":31,"value":7537},{"type":21,"tag":138,"props":57169,"children":57170},{"style":261},[57171],{"type":31,"value":57172},"\"Converged in ",{"type":21,"tag":138,"props":57174,"children":57175},{"style":213},[57176],{"type":31,"value":7547},{"type":21,"tag":138,"props":57178,"children":57179},{"style":151},[57180],{"type":31,"value":57181},"result.iterations",{"type":21,"tag":138,"props":57183,"children":57184},{"style":213},[57185],{"type":31,"value":7556},{"type":21,"tag":138,"props":57187,"children":57188},{"style":261},[57189],{"type":31,"value":57190}," iterations\"",{"type":21,"tag":138,"props":57192,"children":57193},{"style":151},[57194],{"type":31,"value":269},{"type":21,"tag":41,"props":57196,"children":57198},{"id":57197},"真实硬件使用技巧",[57199],{"type":31,"value":57197},{"type":21,"tag":22,"props":57201,"children":57202},{},[57203],{"type":31,"value":57204},"在真实 QPU（IBM Quantum、IonQ）上运行 VQE 时，还需考虑以下几点：",{"type":21,"tag":22,"props":57206,"children":57207},{},[57208,57213],{"type":21,"tag":16815,"props":57209,"children":57210},{},[57211],{"type":31,"value":57212},"每步使用较少的采样次数（shots）。",{"type":31,"value":57214}," 每个优化步骤 1000 次采样通常足以进行梯度估计。不要在每一步都使用 10,000 次采样——那会浪费 QPU 时间。",{"type":21,"tag":22,"props":57216,"children":57217},{},[57218,57223],{"type":21,"tag":16815,"props":57219,"children":57220},{},[57221],{"type":31,"value":57222},"从浅层电路开始。",{"type":31,"value":57224}," CNOT 门越少 = 噪声越小。对于硬件，可以考虑使用硬件高效拟设电路，而非 UCCSD。",{"type":21,"tag":22,"props":57226,"children":57227},{},[57228,57233,57235,57241],{"type":21,"tag":16815,"props":57229,"children":57230},{},[57231],{"type":31,"value":57232},"启用误差缓解。",{"type":31,"value":57234}," HLQuantum 的 ",{"type":21,"tag":103,"props":57236,"children":57238},{"className":57237},[],[57239],{"type":31,"value":57240},"error_mitigation=\"zne\"",{"type":31,"value":57242}," 会应用零噪声外推（Zero Noise Extrapolation），这可以显著改善有噪声硬件上的结果：",{"type":21,"tag":128,"props":57244,"children":57246},{"code":57245,"language":132,"meta":7,"className":130,"style":7},"result = hlq.run(vqe_circuit, backend=\"qiskit\", device=\"ibm_sherbrooke\",\n                 error_mitigation=\"zne\", shots=2048)\n",[57247],{"type":21,"tag":103,"props":57248,"children":57249},{"__ignoreMap":7},[57250,57298],{"type":21,"tag":138,"props":57251,"children":57252},{"class":140,"line":141},[57253,57257,57261,57266,57270,57274,57278,57282,57286,57290,57294],{"type":21,"tag":138,"props":57254,"children":57255},{"style":151},[57256],{"type":31,"value":4881},{"type":21,"tag":138,"props":57258,"children":57259},{"style":145},[57260],{"type":31,"value":210},{"type":21,"tag":138,"props":57262,"children":57263},{"style":151},[57264],{"type":31,"value":57265}," hlq.run(vqe_circuit, ",{"type":21,"tag":138,"props":57267,"children":57268},{"style":929},[57269],{"type":31,"value":11000},{"type":21,"tag":138,"props":57271,"children":57272},{"style":145},[57273],{"type":31,"value":210},{"type":21,"tag":138,"props":57275,"children":57276},{"style":261},[57277],{"type":31,"value":50449},{"type":21,"tag":138,"props":57279,"children":57280},{"style":151},[57281],{"type":31,"value":258},{"type":21,"tag":138,"props":57283,"children":57284},{"style":929},[57285],{"type":31,"value":44009},{"type":21,"tag":138,"props":57287,"children":57288},{"style":145},[57289],{"type":31,"value":210},{"type":21,"tag":138,"props":57291,"children":57292},{"style":261},[57293],{"type":31,"value":50470},{"type":21,"tag":138,"props":57295,"children":57296},{"style":151},[57297],{"type":31,"value":4824},{"type":21,"tag":138,"props":57299,"children":57300},{"class":140,"line":167},[57301,57306,57310,57315,57319,57323,57327,57332],{"type":21,"tag":138,"props":57302,"children":57303},{"style":929},[57304],{"type":31,"value":57305},"                 error_mitigation",{"type":21,"tag":138,"props":57307,"children":57308},{"style":145},[57309],{"type":31,"value":210},{"type":21,"tag":138,"props":57311,"children":57312},{"style":261},[57313],{"type":31,"value":57314},"\"zne\"",{"type":21,"tag":138,"props":57316,"children":57317},{"style":151},[57318],{"type":31,"value":258},{"type":21,"tag":138,"props":57320,"children":57321},{"style":929},[57322],{"type":31,"value":932},{"type":21,"tag":138,"props":57324,"children":57325},{"style":145},[57326],{"type":31,"value":210},{"type":21,"tag":138,"props":57328,"children":57329},{"style":213},[57330],{"type":31,"value":57331},"2048",{"type":21,"tag":138,"props":57333,"children":57334},{"style":151},[57335],{"type":31,"value":269},{"type":21,"tag":22,"props":57337,"children":57338},{},[57339,57341,57346,57348,57353],{"type":31,"value":57340},"有关量子化学模拟的更多细节，请查看完整的 ",{"type":21,"tag":26,"props":57342,"children":57343},{"href":17332},[57344],{"type":31,"value":57345},"PennyLane guide",{"type":31,"value":57347}," 以及 ",{"type":21,"tag":26,"props":57349,"children":57350},{"href":40756},[57351],{"type":31,"value":57352},"HLQuantum algorithms reference",{"type":31,"value":3120},{"type":21,"tag":1174,"props":57355,"children":57356},{},[57357],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":57359},[57360,57361,57362,57363,57364,57365,57366],{"id":55289,"depth":167,"text":55292},{"id":55328,"depth":167,"text":55328},{"id":55700,"depth":167,"text":55700},{"id":56040,"depth":167,"text":56043},{"id":56544,"depth":167,"text":56544},{"id":56838,"depth":167,"text":56841},{"id":57197,"depth":167,"text":57197},"content:zh:blog:vqe-pennylane-practical-guide.md","zh\u002Fblog\u002Fvqe-pennylane-practical-guide.md","zh\u002Fblog\u002Fvqe-pennylane-practical-guide",{"_path":57371,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":57372,"description":57373,"date":57374,"author":11,"tags":57375,"readingTime":233,"body":57376,"_type":1193,"_id":57818,"_source":1195,"_file":57819,"_stem":57820,"_extension":1198},"\u002Fzh\u002Fblog\u002Funderstanding-quantum-error-correction","无需数学也能理解量子纠错","量子计算机为何会出错、纠错如何工作，以及这对容错量子计算的未来意味着什么。","2026-01-15",[14733,15,23995],{"type":18,"children":57377,"toc":57809},[57378,57383,57388,57393,57412,57417,57422,57455,57460,57466,57478,57497,57505,57517,57523,57528,57536,57541,57546,57552,57557,57575,57580,57585,57591,57596,57629,57634,57748,57753,57758,57768,57778,57788,57805],{"type":21,"tag":22,"props":57379,"children":57380},{},[57381],{"type":31,"value":57382},"量子计算机会出错——而且错得很多。一个典型的超导量子比特门的错误率为 0.1–1%。运行一个包含 1000 个门的电路，你几乎必然会得到错误的答案。这并不是当前硬件的漏洞；而是一个根本性的挑战。量子纠错（QEC）就是解决方案——理解它是理解量子计算走向何方的关键。",{"type":21,"tag":41,"props":57384,"children":57386},{"id":57385},"为什么量子错误与众不同",[57387],{"type":31,"value":57385},{"type":21,"tag":22,"props":57389,"children":57390},{},[57391],{"type":31,"value":57392},"经典计算机也会出错，但这些错误很容易处理：把比特复制三份，然后进行多数表决。如果其中一份翻转了，另外两份会以多数将其否决。",{"type":21,"tag":22,"props":57394,"children":57395},{},[57396,57398,57410],{"type":31,"value":57397},"量子比特无法被复制——",{"type":21,"tag":16815,"props":57399,"children":57400},{},[57401,57403,57408],{"type":31,"value":57402},"不可克隆定理（no-cloning theorem）",{"type":21,"tag":16815,"props":57404,"children":57405},{},[57406],{"type":31,"value":57407},"禁止了这一点。你无法通过测量量子比特来检查错误，因为那样会使其叠加态坍缩。而且量子错误不仅仅是比特翻转：还有",{"type":31,"value":57409},"相位错误（phase errors）",{"type":31,"value":57411},"（|0⟩ 与 |1⟩ 之间的相对相位发生偏移），以及两者的组合。",{"type":21,"tag":41,"props":57413,"children":57415},{"id":57414},"量子错误的三种类型",[57416],{"type":31,"value":57414},{"type":21,"tag":22,"props":57418,"children":57419},{},[57420],{"type":31,"value":57421},"每一个量子错误都可以分解为三个泡利算符（Pauli operators）的组合：",{"type":21,"tag":1118,"props":57423,"children":57424},{},[57425,57435,57445],{"type":21,"tag":71,"props":57426,"children":57427},{},[57428,57433],{"type":21,"tag":16815,"props":57429,"children":57430},{},[57431],{"type":31,"value":57432},"X 错误（比特翻转）：",{"type":31,"value":57434}," |0⟩ → |1⟩ 且 |1⟩ → |0⟩。类似于经典的比特翻转。",{"type":21,"tag":71,"props":57436,"children":57437},{},[57438,57443],{"type":21,"tag":16815,"props":57439,"children":57440},{},[57441],{"type":31,"value":57442},"Z 错误（相位翻转）：",{"type":31,"value":57444}," |0⟩ → |0⟩，|1⟩ → −|1⟩。没有经典对应物——影响的是相位。",{"type":21,"tag":71,"props":57446,"children":57447},{},[57448,57453],{"type":21,"tag":16815,"props":57449,"children":57450},{},[57451],{"type":31,"value":57452},"Y 错误：",{"type":31,"value":57454}," 同时发生的 X 和 Z 组合错误。",{"type":21,"tag":22,"props":57456,"children":57457},{},[57458],{"type":31,"value":57459},"一个量子比特上的任何错误都可以表示为 X、Y、Z（以及恒等算符）的线性组合。这意味着如果我们能够独立地纠正 X 和 Z 错误，我们就能纠正任何错误——这是 QEC 的一个关键洞见。",{"type":21,"tag":41,"props":57461,"children":57463},{"id":57462},"核心思想不复制的冗余",[57464],{"type":31,"value":57465},"核心思想：不复制的冗余",{"type":21,"tag":22,"props":57467,"children":57468},{},[57469,57471,57476],{"type":31,"value":57470},"QEC 将一个**逻辑量子比特（logical qubit）",{"type":21,"tag":16815,"props":57472,"children":57473},{},[57474],{"type":31,"value":57475},"编码到许多",{"type":31,"value":57477},"物理量子比特（physical qubits）**之上。这一思路类似于经典的重复码，但为量子力学做了适配。",{"type":21,"tag":22,"props":57479,"children":57480},{},[57481,57483,57488,57490,57495],{"type":31,"value":57482},"最简单的例子是",{"type":21,"tag":16815,"props":57484,"children":57485},{},[57486],{"type":31,"value":57487},"三量子比特比特翻转码（3-qubit bit-flip code）",{"type":31,"value":57489},"：将 |0⟩ 编码为 |000⟩，将 |1⟩ 编码为 |111⟩。如果一个量子比特翻转了，你可以通过测量量子比特对之间的",{"type":21,"tag":12769,"props":57491,"children":57492},{},[57493],{"type":31,"value":57494},"奇偶性（parity）",{"type":31,"value":57496},"（而不测量它们的实际值）来检测并纠正它：",{"type":21,"tag":128,"props":57498,"children":57500},{"code":57499},"Logical |0⟩ = |000⟩\nLogical |1⟩ = |111⟩\n\nIf qubit 1 flips: |100⟩ or |011⟩\nParity check: measure (q0 ⊕ q1) and (q1 ⊕ q2)\n  → 10 → qubit 0 flipped → apply X to correct\n",[57501],{"type":21,"tag":103,"props":57502,"children":57503},{"__ignoreMap":7},[57504],{"type":31,"value":57499},{"type":21,"tag":22,"props":57506,"children":57507},{},[57508,57510,57515],{"type":31,"value":57509},"奇偶性测量使用",{"type":21,"tag":16815,"props":57511,"children":57512},{},[57513],{"type":31,"value":57514},"辅助量子比特（ancilla qubits）",{"type":31,"value":57516},"——它们是吸收错误信息而不干扰数据量子比特的辅助比特。这就是奇妙之处：你可以在不使编码态坍缩的情况下检测错误。",{"type":21,"tag":41,"props":57518,"children":57520},{"id":57519},"表面码当今领先的方法",[57521],{"type":31,"value":57522},"表面码：当今领先的方法",{"type":21,"tag":22,"props":57524,"children":57525},{},[57526],{"type":31,"value":57527},"**表面码（surface code）**是最有希望用于近期硬件的 QEC 码。它将一个逻辑量子比特编码在如下排列的二维物理量子比特网格中：",{"type":21,"tag":128,"props":57529,"children":57531},{"code":57530},"● — ● — ● — ●\n|   |   |   |\n● — ● — ● — ●\n|   |   |   |\n● — ● — ● — ●\n|   |   |   |\n● — ● — ● — ●\n",[57532],{"type":21,"tag":103,"props":57533,"children":57534},{"__ignoreMap":7},[57535],{"type":31,"value":57530},{"type":21,"tag":22,"props":57537,"children":57538},{},[57539],{"type":31,"value":57540},"数据量子比特（●）承载量子信息。它们之间的辅助量子比特持续测量奇偶性。一个 7×7 的网格（49 个物理量子比特）可以将 1 个逻辑量子比特编码为错误率约为 ~p² 的状态——如果物理门错误率为 1%，逻辑错误率会降到 ~0.01%。",{"type":21,"tag":22,"props":57542,"children":57543},{},[57544],{"type":31,"value":57545},"表面码的阈值约为 ~1%：如果硬件门错误低于此值，增加更多物理量子比特就能让逻辑错误率任意地小。IBM 最好的系统正在接近这一阈值。",{"type":21,"tag":41,"props":57547,"children":57549},{"id":57548},"你需要多少个物理量子比特",[57550],{"type":31,"value":57551},"你需要多少个物理量子比特？",{"type":21,"tag":22,"props":57553,"children":57554},{},[57555],{"type":31,"value":57556},"要无误差地运行 Shor 算法以破解 RSA-2048，估算表明：",{"type":21,"tag":1118,"props":57558,"children":57559},{},[57560,57565,57570],{"type":21,"tag":71,"props":57561,"children":57562},{},[57563],{"type":31,"value":57564},"约 2000 万个物理量子比特",{"type":21,"tag":71,"props":57566,"children":57567},{},[57568],{"type":31,"value":57569},"每个逻辑量子比特需要约 1000–10,000 个物理量子比特",{"type":21,"tag":71,"props":57571,"children":57572},{},[57573],{"type":31,"value":57574},"门错误率必须低于 0.1%",{"type":21,"tag":22,"props":57576,"children":57577},{},[57578],{"type":31,"value":57579},"当前硬件：约 1000 个量子比特，约 0.1–1% 的门错误。差距是真实存在的——我们距离能够破解 RSA 的容错量子计算机大约还有 10–15 年。",{"type":21,"tag":22,"props":57581,"children":57582},{},[57583],{"type":31,"value":57584},"对于化学或优化领域的近期量子优势而言，要求要低得多：约 100 个逻辑量子比特或许就足以处理经典方法难以企及的分子。",{"type":21,"tag":41,"props":57586,"children":57588},{"id":57587},"这对当今的-nisq-设备意味着什么",[57589],{"type":31,"value":57590},"这对当今的 NISQ 设备意味着什么",{"type":21,"tag":22,"props":57592,"children":57593},{},[57594],{"type":31,"value":57595},"当前的 NISQ 设备没有 QEC。每个门都会增加噪声。相反，采用的方法是：",{"type":21,"tag":67,"props":57597,"children":57598},{},[57599,57609,57619],{"type":21,"tag":71,"props":57600,"children":57601},{},[57602,57607],{"type":21,"tag":16815,"props":57603,"children":57604},{},[57605],{"type":31,"value":57606},"保持电路浅层化",{"type":31,"value":57608},"——更少的门 = 更少的累积噪声",{"type":21,"tag":71,"props":57610,"children":57611},{},[57612,57617],{"type":21,"tag":16815,"props":57613,"children":57614},{},[57615],{"type":31,"value":57616},"使用错误缓解（error mitigation）",{"type":31,"value":57618},"（而非纠错）——诸如零噪声外推（Zero Noise Extrapolation，ZNE）之类的后处理技术，它们在不使用额外量子比特的情况下从统计上减小错误的影响",{"type":21,"tag":71,"props":57620,"children":57621},{},[57622,57627],{"type":21,"tag":16815,"props":57623,"children":57624},{},[57625],{"type":31,"value":57626},"设计抗噪声算法",{"type":31,"value":57628},"——VQE、QAOA 以及其他变分方法被设计为对中等程度的噪声具有鲁棒性",{"type":21,"tag":22,"props":57630,"children":57631},{},[57632],{"type":31,"value":57633},"HLQuantum 内置了可应用于任何电路的错误缓解：",{"type":21,"tag":128,"props":57635,"children":57637},{"code":57636,"language":132,"meta":7,"className":130,"style":7},"result = hlq.run(\n    qc,\n    backend=\"qiskit\",\n    device=\"ibm_sherbrooke\",\n    error_mitigation=\"zne\",  # Zero Noise Extrapolation\n    shots=8192\n)\n",[57638],{"type":21,"tag":103,"props":57639,"children":57640},{"__ignoreMap":7},[57641,57656,57663,57682,57701,57725,57741],{"type":21,"tag":138,"props":57642,"children":57643},{"class":140,"line":141},[57644,57648,57652],{"type":21,"tag":138,"props":57645,"children":57646},{"style":151},[57647],{"type":31,"value":4881},{"type":21,"tag":138,"props":57649,"children":57650},{"style":145},[57651],{"type":31,"value":210},{"type":21,"tag":138,"props":57653,"children":57654},{"style":151},[57655],{"type":31,"value":50425},{"type":21,"tag":138,"props":57657,"children":57658},{"class":140,"line":167},[57659],{"type":21,"tag":138,"props":57660,"children":57661},{"style":151},[57662],{"type":31,"value":50433},{"type":21,"tag":138,"props":57664,"children":57665},{"class":140,"line":189},[57666,57670,57674,57678],{"type":21,"tag":138,"props":57667,"children":57668},{"style":929},[57669],{"type":31,"value":44561},{"type":21,"tag":138,"props":57671,"children":57672},{"style":145},[57673],{"type":31,"value":210},{"type":21,"tag":138,"props":57675,"children":57676},{"style":261},[57677],{"type":31,"value":50449},{"type":21,"tag":138,"props":57679,"children":57680},{"style":151},[57681],{"type":31,"value":4824},{"type":21,"tag":138,"props":57683,"children":57684},{"class":140,"line":199},[57685,57689,57693,57697],{"type":21,"tag":138,"props":57686,"children":57687},{"style":929},[57688],{"type":31,"value":50461},{"type":21,"tag":138,"props":57690,"children":57691},{"style":145},[57692],{"type":31,"value":210},{"type":21,"tag":138,"props":57694,"children":57695},{"style":261},[57696],{"type":31,"value":50470},{"type":21,"tag":138,"props":57698,"children":57699},{"style":151},[57700],{"type":31,"value":4824},{"type":21,"tag":138,"props":57702,"children":57703},{"class":140,"line":225},[57704,57708,57712,57716,57720],{"type":21,"tag":138,"props":57705,"children":57706},{"style":929},[57707],{"type":31,"value":50508},{"type":21,"tag":138,"props":57709,"children":57710},{"style":145},[57711],{"type":31,"value":210},{"type":21,"tag":138,"props":57713,"children":57714},{"style":261},[57715],{"type":31,"value":57314},{"type":21,"tag":138,"props":57717,"children":57718},{"style":151},[57719],{"type":31,"value":50475},{"type":21,"tag":138,"props":57721,"children":57722},{"style":219},[57723],{"type":31,"value":57724},"# Zero Noise Extrapolation\n",{"type":21,"tag":138,"props":57726,"children":57727},{"class":140,"line":233},[57728,57732,57736],{"type":21,"tag":138,"props":57729,"children":57730},{"style":929},[57731],{"type":31,"value":50488},{"type":21,"tag":138,"props":57733,"children":57734},{"style":145},[57735],{"type":31,"value":210},{"type":21,"tag":138,"props":57737,"children":57738},{"style":213},[57739],{"type":31,"value":57740},"8192\n",{"type":21,"tag":138,"props":57742,"children":57743},{"class":140,"line":272},[57744],{"type":21,"tag":138,"props":57745,"children":57746},{"style":151},[57747],{"type":31,"value":269},{"type":21,"tag":22,"props":57749,"children":57750},{},[57751],{"type":31,"value":57752},"ZNE 有意在多个层级上放大噪声，然后外推回零噪声极限。它不是 QEC——而是一种统计技巧——但对于短电路它的效果出奇地好。",{"type":21,"tag":41,"props":57754,"children":57756},{"id":57755},"值得关注的近期里程碑",[57757],{"type":31,"value":57755},{"type":21,"tag":22,"props":57759,"children":57760},{},[57761,57766],{"type":21,"tag":16815,"props":57762,"children":57763},{},[57764],{"type":31,"value":57765},"规模化的纠错演示",{"type":31,"value":57767},"——IBM、Google 和 Microsoft 正在竞相演示表面码逻辑量子比特优于物理量子比特（错误率低于阈值）。Google 在 2024 年底声称实现了低于阈值的演示。",{"type":21,"tag":22,"props":57769,"children":57770},{},[57771,57776],{"type":21,"tag":16815,"props":57772,"children":57773},{},[57774],{"type":31,"value":57775},"魔法态蒸馏（Magic state distillation）",{"type":31,"value":57777},"——非 Clifford 门（如 T 门）在容错架构中需要特殊的蒸馏协议。这在量子比特开销上目前极其昂贵。",{"type":21,"tag":22,"props":57779,"children":57780},{},[57781,57786],{"type":21,"tag":16815,"props":57782,"children":57783},{},[57784],{"type":31,"value":57785},"逻辑门速度",{"type":31,"value":57787},"——表面码中的逻辑门比物理门慢得多。加快它们的速度是 2026–2030 年一项关键的硬件挑战。",{"type":21,"tag":22,"props":57789,"children":57790},{},[57791,57793,57798,57799,57804],{"type":31,"value":57792},"要更深入地了解纠错如何与特定 SDK 交互，请参阅",{"type":21,"tag":26,"props":57794,"children":57795},{"href":15841},[57796],{"type":31,"value":57797},"量子纠错术语条目",{"type":31,"value":22358},{"type":21,"tag":26,"props":57800,"children":57801},{"href":22052},[57802],{"type":31,"value":57803},"NISQ 时代指南",{"type":31,"value":3120},{"type":21,"tag":1174,"props":57806,"children":57807},{},[57808],{"type":31,"value":1178},{"title":7,"searchDepth":167,"depth":167,"links":57810},[57811,57812,57813,57814,57815,57816,57817],{"id":57385,"depth":167,"text":57385},{"id":57414,"depth":167,"text":57414},{"id":57462,"depth":167,"text":57465},{"id":57519,"depth":167,"text":57522},{"id":57548,"depth":167,"text":57551},{"id":57587,"depth":167,"text":57590},{"id":57755,"depth":167,"text":57755},"content:zh:blog:understanding-quantum-error-correction.md","zh\u002Fblog\u002Funderstanding-quantum-error-correction.md","zh\u002Fblog\u002Funderstanding-quantum-error-correction"]