[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"blog-de-ibm-quantum-advantage-triple-announcement-2026":3,"blog-translated-locales-ibm-quantum-advantage-triple-announcement-2026":186,"blog-all-de":188},{"_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":180,"_id":181,"_source":182,"_file":183,"_stem":184,"_extension":185},"\u002Fblog\u002Fibm-quantum-advantage-triple-announcement-2026","blog",false,"","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.","2026-08-01","FreeQuantumComputing",[13,14,15],"Industry","Hardware","Qiskit",9,{"type":18,"children":19,"toc":172},"root",[20,28,35,49,62,68,73,78,84,89,94,100,121,126,132,137],{"type":21,"tag":22,"props":23,"children":24},"element","p",{},[25],{"type":26,"value":27},"text","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":29,"props":30,"children":32},"h2",{"id":31},"result-one-ibm-and-the-university-of-chicago-logical-qubits-at-scale",[33],{"type":26,"value":34},"Result one: IBM and the University of Chicago, logical qubits at scale",{"type":21,"tag":22,"props":36,"children":37},{},[38,40,47],{"type":26,"value":39},"The team ran an encoded circuit using 70 ",{"type":21,"tag":41,"props":42,"children":44},"a",{"href":43},"\u002Fglossary\u002Flogical-qubit",[45],{"type":26,"value":46},"logical qubits",{"type":26,"value":48}," 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":50,"children":51},{},[52,54,60],{"type":26,"value":53},"Notice what the coverage did not state: the physical qubit count behind those 70 logical qubits. Our ",{"type":21,"tag":41,"props":55,"children":57},{"href":56},"\u002Fblog\u002Flogical-qubits-fault-tolerance-explained",[58],{"type":26,"value":59},"companion piece on logical qubits and fault tolerance",{"type":26,"value":61}," 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":29,"props":63,"children":65},{"id":64},"result-two-ibm-and-qedma-a-real-physics-question-checked-two-ways",[66],{"type":26,"value":67},"Result two: IBM and Qedma, a real physics question checked two ways",{"type":21,"tag":22,"props":69,"children":70},{},[71],{"type":26,"value":72},"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":74,"children":75},{},[76],{"type":26,"value":77},"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":29,"props":79,"children":81},{"id":80},"result-three-ibm-and-algorithmiq-checking-an-answer-nothing-else-verifies",[82],{"type":26,"value":83},"Result three: IBM and Algorithmiq, checking an answer nothing else verifies",{"type":21,"tag":22,"props":85,"children":86},{},[87],{"type":26,"value":88},"This is the hardest version of the problem. 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":90,"children":91},{},[92],{"type":26,"value":93},"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":29,"props":95,"children":97},{"id":96},"why-the-trust-framing-matters-more-than-the-speed-framing",[98],{"type":26,"value":99},"Why the trust framing matters more than the speed framing",{"type":21,"tag":22,"props":101,"children":102},{},[103,105,111,113,119],{"type":26,"value":104},"\"Beyond classical simulation\" is not a new claim. Google made a related claim in 2019 with its ",{"type":21,"tag":41,"props":106,"children":108},{"href":107},"\u002Fresearch\u002Fgoogle-quantum-supremacy-2019",[109],{"type":26,"value":110},"quantum supremacy result",{"type":26,"value":112},", and better classical algorithms later closed part of that gap. IBM made a related but weaker claim in 2023 with ",{"type":21,"tag":41,"props":114,"children":116},{"href":115},"\u002Fresearch\u002Fibm-quantum-utility-2023",[117],{"type":26,"value":118},"quantum utility",{"type":26,"value":120},", which did not require beating classical computation outright, only being useful and comparable to it.",{"type":21,"tag":22,"props":122,"children":123},{},[124],{"type":26,"value":125},"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":29,"props":127,"children":129},{"id":128},"what-happens-next",[130],{"type":26,"value":131},"What happens next",{"type":21,"tag":22,"props":133,"children":134},{},[135],{"type":26,"value":136},"Peer review and independent replication are the steps that eventually narrowed Google's 2019 claim, and they are the steps to watch for here too. Three same-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":138,"children":139},{},[140,142,148,150,156,158,163,164,170],{"type":26,"value":141},"For a broader sense of how IBM's hardware and error-mitigation approach compares with competing modalities, see our ",{"type":21,"tag":41,"props":143,"children":145},{"href":144},"\u002Fhardware",[146],{"type":26,"value":147},"hardware overview",{"type":26,"value":149}," and ",{"type":21,"tag":41,"props":151,"children":153},{"href":152},"\u002Flandscape",[154],{"type":26,"value":155},"industry landscape",{"type":26,"value":157},". For the mechanics behind logical qubits and why overhead numbers matter more than headline qubit counts, our ",{"type":21,"tag":41,"props":159,"children":160},{"href":56},[161],{"type":26,"value":162},"fault tolerance explainer",{"type":26,"value":149},{"type":21,"tag":41,"props":165,"children":167},{"href":166},"\u002Fblog\u002Fquantinuum-helios-logical-qubits-2026",[168],{"type":26,"value":169},"Quantinuum Helios piece",{"type":26,"value":171}," cover the same questions from a different vendor's claims.",{"title":7,"searchDepth":173,"depth":173,"links":174},2,[175,176,177,178,179],{"id":31,"depth":173,"text":34},{"id":64,"depth":173,"text":67},{"id":80,"depth":173,"text":83},{"id":96,"depth":173,"text":99},{"id":128,"depth":173,"text":131},"markdown","content:blog:ibm-quantum-advantage-triple-announcement-2026.md","content","blog\u002Fibm-quantum-advantage-triple-announcement-2026.md","blog\u002Fibm-quantum-advantage-triple-announcement-2026","md",[187],"en",[189,346,495,774,872,946,1083,1187,1425,1540,1663,1816,1933,2035,2727,2879,2969,3077,4006,7164,8906,9364,10472,11046,11545,13800,15659,16040,18142,19173,20195,21042,23511,24565,27116,28928,31668,33668,35777],{"_path":190,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":191,"description":192,"date":10,"author":11,"tags":193,"readingTime":196,"body":197,"_type":180,"_id":343,"_source":182,"_file":344,"_stem":345,"_extension":185},"\u002Fde\u002Fblog\u002Fquantinuum-helios-logical-qubits-2026","Quantinuums Helios: 48 logische Qubits bei 2:1-Kodierung, erklärt","Quantinuums neuestes Ionenfallen-System beansprucht 48 fehlerkorrigierte logische Qubits aus rund 96 physischen Qubits. Nicht die Qubit-Zahl ist die Schlagzeile — das Verhältnis ist es.",[194,14,195],"Error Correction","Trapped-Ion",7,{"type":18,"children":198,"toc":337},[199,212,224,230,242,248,260,287,293,298,303,309],{"type":21,"tag":22,"props":200,"children":201},{},[202,204,210],{"type":26,"value":203},"Quantinuum hat sein neuestes Ionenfallen-System namens Helios ausgeliefert und beansprucht 48 fehlerkorrigierte logische Qubits, kodiert im Verhältnis von etwa ",{"type":21,"tag":205,"props":206,"children":207},"strong",{},[208],{"type":26,"value":209},"2:1",{"type":26,"value":211}," — rund 96 physische Qubits leisten die Arbeit von 48 logischen. Die Berichterstattung über die Ankündigung stellte meist die Qubit-Zahl in den Vordergrund. Die Zahl, bei der es sich zu verweilen lohnt, ist das Verhältnis.",{"type":21,"tag":22,"props":213,"children":214},{},[215,217,222],{"type":26,"value":216},"Wenn Sie unseren ",{"type":21,"tag":41,"props":218,"children":219},{"href":56},[220],{"type":26,"value":221},"Beitrag über logische Qubits und Fehlertoleranz",{"type":26,"value":223}," gelesen haben, wissen Sie bereits, warum. Schätzungen für den Surface Code auf supraleitender Hardware liegen typischerweise bei Hunderten bis einigen Tausend physischen Qubits pro logischem Qubit, abhängig davon, wie weit die zugrunde liegende Hardware unterhalb der Fehlerschwelle liegt. Ein vom Hersteller gemeldetes Verhältnis von nahezu 2:1 ist keine schrittweise Verbesserung dieser Zahl — es ist ein völlig anderer Bereich des Designraums, und es lohnt sich zu verstehen, was das möglich macht, bevor man die Zahl für bare Münze nimmt.",{"type":21,"tag":29,"props":225,"children":227},{"id":226},"was-helios-ist",[228],{"type":26,"value":229},"Was Helios ist",{"type":21,"tag":22,"props":231,"children":232},{},[233,235,240],{"type":26,"value":234},"Helios ist Quantinuums neuestes Ionenfallen-System der H-Series-Generation — dieselbe Linie, die wiederholt Quantum-Volume-Rekorde gehalten hat und die IonQ, Quantinuums wichtigster Konkurrent im Bereich Ionenfallen, weiterhin als primären Benchmark zu übertreffen versucht. Ionenfallen-Hardware fängt einzelne Ionen in einem elektromagnetischen Feld ein und manipuliert sie mit Laserpulsen, wodurch Gattergeschwindigkeit (Mikrosekunden bis Millisekunden, gegenüber Nanosekunden bei supraleitenden Qubits) gegen zwei Dinge eingetauscht wird, die für die Fehlerkorrektur enorm wichtig sind: höhere Gatter-Fidelity pro Vorgang und ",{"type":21,"tag":205,"props":236,"children":237},{},[238],{"type":26,"value":239},"All-to-all-Konnektivität",{"type":26,"value":241}," — jedes Ion in der Kette kann mit jedem anderen verschränkt werden, ohne über zwischengeschaltete Qubits geleitet zu werden.",{"type":21,"tag":29,"props":243,"children":245},{"id":244},"warum-das-verhältnis-hier-möglich-ist",[246],{"type":26,"value":247},"Warum das Verhältnis hier möglich ist",{"type":21,"tag":22,"props":249,"children":250},{},[251,253,258],{"type":26,"value":252},"Der Surface Code — der Standard-Fehlerkorrekturcode für supraleitende Chips wie Googles Willow — basiert auf ",{"type":21,"tag":205,"props":254,"children":255},{},[256],{"type":26,"value":257},"Nächste-Nachbar",{"type":26,"value":259},"-Paritätsprüfungen, weil das genau das ist, was ein flacher, 2D-supraleitender Chip physisch unterstützt. Diese Einschränkung ist ein wesentlicher Grund dafür, warum sein Overhead so hoch ist: Ein logisches Qubit gegen realistische Fehlerraten zu schützen, erfordert ein beträchtliches 2D-Gitter physischer Qubits.",{"type":21,"tag":22,"props":261,"children":262},{},[263,265,270,272,277,279,285],{"type":26,"value":264},"Ionenfallen unterliegen dieser Einschränkung nicht. Weil jedes Ion mit jedem anderen interagieren kann, werden Codes, die ",{"type":21,"tag":205,"props":266,"children":267},{},[268],{"type":26,"value":269},"nicht-lokale",{"type":26,"value":271}," Paritätsprüfungen benötigen — die Art, die auf einem planaren Chip unerschwinglich teuer zu verdrahten wäre — direkt implementierbar. Das öffnet die Tür zu qubit-effizienteren Code-Familien (grob gesagt qLDPC-artige Konstruktionen), die langsamere Gatter gegen drastisch niedrigeren physisch-zu-logisch-Overhead eintauschen. Unser ",{"type":21,"tag":41,"props":273,"children":274},{"href":144},[275],{"type":26,"value":276},"Hardware-Überblick",{"type":26,"value":278}," und ",{"type":21,"tag":41,"props":280,"children":282},{"href":281},"\u002Fcompare",[283],{"type":26,"value":284},"Modalitätsvergleich",{"type":26,"value":286}," behandeln diesen Kompromiss allgemeiner; Helios ist die deutlichste konkrete Illustration davon, die derzeit ausgeliefert wird.",{"type":21,"tag":29,"props":288,"children":290},{"id":289},"was-das-verhältnis-nicht-verrät",[291],{"type":26,"value":292},"Was das Verhältnis nicht verrät",{"type":21,"tag":22,"props":294,"children":295},{},[296],{"type":26,"value":297},"Overhead ist eine Achse. Es ist nicht die einzige, und eine niedrige Anzahl physischer Qubits pro logischem Qubit macht eine Maschine nicht automatisch nützlicher. Wie wir im Beitrag über logische Qubits dargelegt haben, sollte ein logisches Qubit anhand mehrerer Kennzahlen gemeinsam beurteilt werden: Overhead, Ruhefehlerrate, logische Gatter-Fidelity, logische Gattergeschwindigkeit und Universalität des Gattersatzes. Ionenfallen-Gatter sind um Größenordnungen langsamer als supraleitende Gatter, sodass ein 2:1-kodiertes logisches Qubit, das Millisekunden pro Operation benötigt, nicht einfach „besser\" ist als ein teureres logisches Qubit, das tausendmal schneller läuft — der richtige Vergleich hängt vollständig davon ab, wie viele logische Operationen Ihr Algorithmus benötigt, bevor die Dekohärenz einholt.",{"type":21,"tag":22,"props":299,"children":300},{},[301],{"type":26,"value":302},"Es lohnt sich außerdem, wie bei jeder Hardware-Behauptung in dieser Branche, die Zahl als Herstellerangabe zu lesen, bis sie unabhängig reproduziert wurde. „48 logische Qubits bei 2:1\" beschreibt eine konkrete Demonstration unter bestimmten Betriebsbedingungen, keine allgemein verfügbare Plug-and-Play-Fähigkeit.",{"type":21,"tag":29,"props":304,"children":306},{"id":305},"was-das-für-lernende-heute-bedeutet",[307],{"type":26,"value":308},"Was das für Lernende heute bedeutet",{"type":21,"tag":22,"props":310,"children":311},{},[312,314,320,322,328,330,335],{"type":26,"value":313},"Helios-Hardware ist nicht etwas, für das man sich in einem kostenlosen Tarif anstellt, so wie man es mit ",{"type":21,"tag":41,"props":315,"children":317},{"href":316},"\u002Fblog\u002Fibm-quantum-free-tier-2026",[318],{"type":26,"value":319},"IBMs Open Plan",{"type":26,"value":321}," kann — aber die Konzepte übertragen sich unabhängig davon, welche Hardware sich am Ende durchsetzt. Quantinuums TKET-Compiler ist quelloffen und schon heute kostenlos nutzbar, unabhängig davon, welches Backend Sie ansteuern, und die Konzepte in diesem Beitrag — Kodierungs-Overhead, Konnektivitätsbeschränkungen, das Schwellenwerttheorem — sind dieselben, mit denen Sie jede zukünftige Ankündigung bewerten werden. Unser ",{"type":21,"tag":41,"props":323,"children":325},{"href":324},"\u002Fblog\u002Funderstanding-quantum-error-correction",[326],{"type":26,"value":327},"Fehlerkorrektur-Erklärartikel",{"type":26,"value":329}," behandelt die zugrunde liegenden Mechanismen, und die ",{"type":21,"tag":41,"props":331,"children":332},{"href":152},[333],{"type":26,"value":334},"Quanten-Landschaft",{"type":26,"value":336}," verfolgt, wer über alle Modalitäten hinweg woran arbeitet — nicht nur an dieser.",{"title":7,"searchDepth":173,"depth":173,"links":338},[339,340,341,342],{"id":226,"depth":173,"text":229},{"id":244,"depth":173,"text":247},{"id":289,"depth":173,"text":292},{"id":305,"depth":173,"text":308},"content:de:blog:quantinuum-helios-logical-qubits-2026.md","de\u002Fblog\u002Fquantinuum-helios-logical-qubits-2026.md","de\u002Fblog\u002Fquantinuum-helios-logical-qubits-2026",{"_path":347,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":348,"description":349,"date":10,"author":11,"tags":350,"readingTime":196,"body":353,"_type":180,"_id":492,"_source":182,"_file":493,"_stem":494,"_extension":185},"\u002Fde\u002Fblog\u002Fquantum-chemistry-protein-scale-2026","Quantencomputer haben gerade ein echtes Protein simuliert — was das bedeutet","Cleveland Clinic und IBM haben auf IBMs Heron r2-Chip eine Quanten-Klassik-Hybridsimulation eines 303-Atom-Miniproteins durchgeführt — ein echter Fortschritt gegenüber den Spielzeugmolekülen der meisten VQE-Demos, mit echten Einschränkungen.",[351,352,14],"Chemistry","VQE",{"type":18,"children":354,"toc":485},[355,368,373,379,405,410,416,421,427,448,454,459,465],{"type":21,"tag":22,"props":356,"children":357},{},[358,360,366],{"type":26,"value":359},"Die meisten VQE-Tutorials, die Sie online finden — einschließlich ",{"type":21,"tag":41,"props":361,"children":363},{"href":362},"\u002Fblog\u002Fvqe-pennylane-practical-guide",[364],{"type":26,"value":365},"unseres eigenen",{"type":26,"value":367}," — simulieren Wasserstoff oder Lithiumhydrid: Moleküle mit einer Handvoll Atomen, gewählt, weil genau das ist, was heutige Hardware und heutige Rauschpegel tatsächlich bewältigen können. Im März 2026 veröffentlichten die Cleveland Clinic und IBM etwas kategorial Größeres: einen Quanten-Klassik-Hybrid-Workflow zur Modellierung der Elektronenstruktur von Trp-Cage, einem 303-Atom-Miniprotein, unter Verwendung von IBMs Heron-r2-Prozessor.",{"type":21,"tag":22,"props":369,"children":370},{},[371],{"type":26,"value":372},"Das ist ein echter Sprung in der Größenordnung, und es lohnt sich zu verstehen, warum das schwierig ist — und was die Schlagzeilen-Atomzahl beweist und was nicht.",{"type":21,"tag":29,"props":374,"children":376},{"id":375},"warum-die-molekülgröße-das-ganze-problem-ist",[377],{"type":26,"value":378},"Warum die Molekülgröße das ganze Problem ist",{"type":21,"tag":22,"props":380,"children":381},{},[382,388,390,395,397,403],{"type":21,"tag":41,"props":383,"children":385},{"href":384},"\u002Fresearch\u002Ffeynman-simulating-physics-1982",[386],{"type":26,"value":387},"Feynmans ursprüngliches Argument von 1982 für Quantencomputing",{"type":26,"value":389}," war genau dies: Die exakte Simulation von Quantensystemen kostet auf einem klassischen Computer Ressourcen, die exponentiell mit der Systemgröße wachsen, weil die elektronische Wellenfunktion in einem Hilbertraum lebt, dessen Dimension mit der Anzahl der beteiligten Orbitale explodiert. Chemiker umgehen dies routinemäßig mit Näherungen, aber die exakte Antwort ist für alles jenseits kleiner Moleküle klassisch unerreichbar. Genau das ist die gesamte Motivation für ",{"type":21,"tag":41,"props":391,"children":393},{"href":392},"\u002Fglossary\u002Fvqe",[394],{"type":26,"value":352},{"type":26,"value":396}," — ",{"type":21,"tag":41,"props":398,"children":400},{"href":399},"\u002Fresearch\u002Fperuzzo-vqe-2014",[401],{"type":26,"value":402},"Peruzzos Arbeit von 2014",{"type":26,"value":404},", die VQE einführte, nutzte eine hybride Quanten-Klassik-Schleife genau deshalb, weil nahfristige Hardware die gesamte Berechnung nicht allein bewältigen kann.",{"type":21,"tag":22,"props":406,"children":407},{},[408],{"type":26,"value":409},"Das ist auch der Grund, warum „wie viele Atome?\" ein wirklich aussagekräftiger Maßstab für Quantenchemie-Demonstrationen ist — anders, als es etwa bei einem Random-Circuit-Sampling-Benchmark der Fall wäre. Der Sprung von einem 2-Atom-Molekül zu einem mit 303 Atomen ist keine Marketing-Übertreibung desselben Ergebnisses — es ist ein echter Sprung in der Größe des angegangenen Problems.",{"type":21,"tag":29,"props":411,"children":413},{"id":412},"was-trp-cage-ist-und-warum-es-gewählt-wurde",[414],{"type":26,"value":415},"Was Trp-Cage ist und warum es gewählt wurde",{"type":21,"tag":22,"props":417,"children":418},{},[419],{"type":26,"value":420},"Trp-Cage ist kein beliebiges großes Molekül, das für eine Pressemitteilung ausgewählt wurde — es ist ein gut untersuchtes, 20 Reste umfassendes Miniprotein, das seit Jahren als Standard-Benchmark in der Molekulardynamik- und Proteinfaltungsforschung dient, gerade weil es klein genug ist, um handhabbar zu sein, aber real genug, um sich wie ein tatsächliches Protein zu verhalten. Die Verwendung eines etablierten Referenzsystems statt eines neuartigen macht es leichter, das Ergebnis anhand jahrzehntelanger vorhandener klassischer Simulationsdaten zu überprüfen.",{"type":21,"tag":29,"props":422,"children":424},{"id":423},"was-hybrid-workflow-hier-höchstwahrscheinlich-bedeutet",[425],{"type":26,"value":426},"Was „Hybrid-Workflow\" hier höchstwahrscheinlich bedeutet",{"type":21,"tag":22,"props":428,"children":429},{},[430,432,438,440,446],{"type":26,"value":431},"Lesen Sie die Atomzahl genau. Die vollständige Elektronenstruktur eines 303-Atom-Systems liegt weit außerhalb dessen, was heutige QPUs direkt anfassen, und es ist sehr unwahrscheinlich, dass alle Elektronen aller 303 Atome tatsächlich auf dem Quantenprozessor dargestellt wurden. Das realistische Bild — konsistent mit IBMs veröffentlichtem Ansatz für ähnliche Arbeiten an großen Molekülen — ist ein hybrides Einbettungsschema: Ein sorgfältig ausgewählter aktiver Raum (die Elektronen und Orbitale, die für die untersuchte Eigenschaft am wichtigsten sind) läuft über die Quantenhardware, während der Rest des Systems klassisch behandelt und wieder zusammengefügt wird. Das ist keine Abwertung des Ergebnisses — genau so funktioniert derzeit jede Behauptung „Quantencomputer simuliert ein echtes Molekül\" in dieser Größenordnung, und es entspricht genau dem ",{"type":21,"tag":41,"props":433,"children":435},{"href":434},"\u002Fglossary\u002Fhybrid-algorithm",[436],{"type":26,"value":437},"Hybrid-Algorithmus",{"type":26,"value":439},"-Muster, auf das sich das Feld für die ",{"type":21,"tag":41,"props":441,"children":443},{"href":442},"\u002Fglossary\u002Fnisq",[444],{"type":26,"value":445},"NISQ-Ära",{"type":26,"value":447}," geeinigt hat. Die ehrliche Erkenntnis ist: Die Schlagzeilenzahl beschreibt das untersuchte System, nicht den Beweis, dass die QPU an jedem einzelnen Atom gleich viel Arbeit geleistet hat.",{"type":21,"tag":29,"props":449,"children":451},{"id":450},"warum-es-trotzdem-ein-bedeutender-meilenstein-ist",[452],{"type":26,"value":453},"Warum es trotzdem ein bedeutender Meilenstein ist",{"type":21,"tag":22,"props":455,"children":456},{},[457],{"type":26,"value":458},"Trotz aller Einschränkungen ist dies ein echter Fortschritt darin, was diese Hybrid-Pipelines bewältigen können. Die meisten früheren „Quantencomputer betreibt Chemie\"-Demonstrationen kamen kaum über Moleküle mit minimalem Basissatz und einer Handvoll Atomen hinaus. Die Skalierung derselben Technikklasse auf ein biologisch relevantes, ausführlich charakterisiertes 303-Atom-System — und die Ausführung des Quantenanteils auf echter Hardware statt als klassischen Stellvertreter — zeigt, dass die Pipeline selbst skaliert, was genau der Engpass ist, den Hersteller zu lösen versuchen. Es reiht sich neben andere Chemie-Meilensteine von 2026 in dieselbe Richtung ein, darunter die Demonstration von Qubit Pharmaceuticals und Pasqal zur quantenalgorithmischen Platzierung von Wassermolekülen in einer Proteintasche — eine Aufgabe auf molekularbiologischem Niveau, keine aus dem Lehrbuch.",{"type":21,"tag":29,"props":460,"children":462},{"id":461},"was-das-bedeutet-wenn-sie-gerade-lernen",[463],{"type":26,"value":464},"Was das bedeutet, wenn Sie gerade lernen",{"type":21,"tag":22,"props":466,"children":467},{},[468,470,476,478,483],{"type":26,"value":469},"Sie brauchen keinen Heron-r2-Zugang — oder überhaupt eine echte QPU —, um die hier verwendete Technik zu erlernen. Dieselben VQE-Bausteine (Ansatz-Konstruktion, Auswahl des aktiven Raums, die klassische Optimierungsschleife) gelten unabhängig davon, ob Sie H₂ auf einem ",{"type":21,"tag":41,"props":471,"children":473},{"href":472},"\u002Fsimulators",[474],{"type":26,"value":475},"kostenlosen lokalen Simulator",{"type":26,"value":477}," anpassen oder über ein 303-Atom-Protein lesen. Beginnen Sie mit unserem ",{"type":21,"tag":41,"props":479,"children":480},{"href":362},[481],{"type":26,"value":482},"PennyLane-VQE-Guide",{"type":26,"value":484},", wenn Sie die Kleinmolekül-Version selbst ausführen möchten, und behandeln Sie Schlagzeilen-Atomzahlen in Berichten wie diesem so, wie Sie jede andere Hardware-Behauptung behandeln würden: ein echtes Ergebnis, das es wert ist, genau verstanden zu werden — und noch nicht die ganze Geschichte.",{"title":7,"searchDepth":173,"depth":173,"links":486},[487,488,489,490,491],{"id":375,"depth":173,"text":378},{"id":412,"depth":173,"text":415},{"id":423,"depth":173,"text":426},{"id":450,"depth":173,"text":453},{"id":461,"depth":173,"text":464},"content:de:blog:quantum-chemistry-protein-scale-2026.md","de\u002Fblog\u002Fquantum-chemistry-protein-scale-2026.md","de\u002Fblog\u002Fquantum-chemistry-protein-scale-2026",{"_path":496,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":497,"description":498,"date":10,"author":11,"tags":499,"readingTime":500,"body":501,"_type":180,"_id":771,"_source":182,"_file":772,"_stem":773,"_extension":185},"\u002Fde\u002Fblog\u002Ftop-quantum-computing-companies-2026","Die führenden Quantencomputing-Unternehmen im Juli 2026, im Ranking erklärt","Ein fundiertes Ranking der Quantencomputing-Unternehmen, die im Juli 2026 wirklich zählen: echter Umsatz, echte Hardware-Meilensteine und echte Kassenpositionen, keine Pressemitteilungs-Begeisterung. IonQs Zahlen verdienen den Platz. Rigettis Zahlen liegen noch hinter denen der Konkurrenz.",[13,14],12,{"type":18,"children":502,"toc":757},[503,508,520,526,545,551,556,562,567,588,593,599,611,617,622,628,633,638,644,649,655,660,666,671,677,682,688,726,732],{"type":21,"tag":22,"props":504,"children":505},{},[506],{"type":26,"value":507},"Die meisten Listen der \"führenden Quantencomputing-Unternehmen\" ranken nach Schlagzeilen-Qubitzahl oder danach, wie kürzlich ein Unternehmen eine Pressemitteilung veröffentlicht hat. Beides sagt wenig aus. Eine Qubitzahl ohne zugehörige Fidelity-Angabe verrät nichts darüber, ob eine Maschine nützliche Arbeit leistet, und eine Pressemitteilung misst ein Marketingbudget, keine Hardware-Roadmap.",{"type":21,"tag":22,"props":509,"children":510},{},[511,513,518],{"type":26,"value":512},"Dieses Ranking nutzt stattdessen drei Dinge: nachgewiesenen technischen Fortschritt (Fidelity, logische Qubits, unabhängig reproduzierbare Ergebnisse, nicht bloß Schlagzeilen-Behauptungen), kommerzielle Zugkraft (Umsatz, Aufträge, Auftragsbestand) und finanzielle Belastbarkeit (Kassenposition im Verhältnis zur Verbrennungsrate). Wo eine Zahl allein auf den Angaben eines Unternehmens beruht, wird das ausdrücklich gesagt. Unser ",{"type":21,"tag":41,"props":514,"children":515},{"href":152},[516],{"type":26,"value":517},"vollständiges Branchenverzeichnis",{"type":26,"value":519}," katalogisiert über 60 Unternehmen in jeder Kategorie. Dieser Beitrag ist das Gegenteil davon: eine kurze, meinungsstarke Liste, wer vorn liegt, und warum manche der lautesten Namen es nicht tun.",{"type":21,"tag":29,"props":521,"children":523},{"id":522},"_1-ibm-quantum",[524],{"type":26,"value":525},"1. IBM Quantum",{"type":21,"tag":22,"props":527,"children":528},{},[529,531,536,538,543],{"type":26,"value":530},"IBM bleibt die breiteste Plattform der Branche, und der Juli 2026 war einer ihrer stärksten Monate: drei separate Quantenvorteils-Ergebnisse, am selben Tag angekündigt, mit drei verschiedenen Partnern und drei verschiedenen Verifikationsstrategien. Wir haben ",{"type":21,"tag":41,"props":532,"children":533},{"href":4},[534],{"type":26,"value":535},"die vollständige Ankündigung hier behandelt",{"type":26,"value":537},". Der Nighthawk-Prozessor (120 Qubits, 218 abstimmbare Koppler) ist im Einsatz, und IBMs öffentliche Roadmap zielt über eine Folge von Zwischensystemen auf Fehlertoleranz bis 2029, mit einem Wechsel zu qLDPC-artigen Codes, die den Fehlerkorrektur-Overhead gegenüber dem Surface Code um etwa 90% senken. IBMs Open Plan bleibt zudem der einfachste Weg für jeden, kostenlos einen Schaltkreis auf echter Hardware auszuführen, was IBM zentral dafür macht, wie die nächste Generation von Quantenentwicklern lernt. Siehe unseren ",{"type":21,"tag":41,"props":539,"children":540},{"href":316},[541],{"type":26,"value":542},"Leitfaden zum IBM Quantum Free Tier",{"type":26,"value":544},", wenn du das selbst ausprobieren willst. IBMs Schwäche ist die Kehrseite seiner Breite: Bei so vielen gleichzeitigen Ereignissen erhält jedes einzelne Ergebnis weniger Prüfung, als es von einem kleineren, fokussierteren Konkurrenten erhalten würde.",{"type":21,"tag":29,"props":546,"children":548},{"id":547},"_2-google-quantum-ai",[549],{"type":26,"value":550},"2. Google Quantum AI",{"type":21,"tag":22,"props":552,"children":553},{},[554],{"type":26,"value":555},"Googles Willow-Prozessor lieferte Ende 2025 das Quantum-Echoes-Ergebnis (veröffentlicht in Nature), eine Berechnung, die das Paper auf etwa 13.000-mal schneller als die beste verfügbare klassische Methode schätzt, und die Below-Threshold-Fehlerkorrekturdemonstration ein Jahr zuvor bleibt einer der wenigen vollständig unabhängig geprüften Meilensteine im Feld. Google hat im März 2026 neben seiner supraleitenden Arbeit einen Forschungszweig zu neutralen Atomen aufgebaut, als Absicherung gegen die Möglichkeit, dass Transmon-Qubits nicht die endgültige Antwort sind. Google veröffentlicht seltener als seine Konkurrenten und sagt zwischen den Veröffentlichungen weniger, eine vertretbare Forschungsstrategie, die es aber schwerer macht, den Fortschritt monatlich zu verfolgen.",{"type":21,"tag":29,"props":557,"children":559},{"id":558},"_3-ionq",[560],{"type":26,"value":561},"3. IonQ",{"type":21,"tag":22,"props":563,"children":564},{},[565],{"type":26,"value":566},"IonQs Zahlen sind die stärksten der Branche unter den reinen Quantenhardware-Unternehmen, und das ist eine Tatsachenaussage, keine werbliche. Der Umsatz im ersten Quartal 2026 erreichte 64,7 Millionen Dollar, ein Plus von 755% gegenüber dem Vorjahr, bei einer auf 260-270 Millionen Dollar angehobenen Jahresprognose und verbleibenden Leistungsverpflichtungen von 470 Millionen Dollar, ein Plus von 554%. Das ist nicht das Profil eines auf Hoffnung laufenden Unternehmens. Staatliche Aufträge untermauern das: ein Rahmenvertrag mit der Missile Defense Agency mit einem Höchstwert von bis zu 151 Milliarden Dollar (ein Höchstwert, keine Ausgabengarantie, aber dennoch ein ungewöhnlich großer), ein neuer DARPA-Auftrag im April 2026 und ein Deal mit Südkoreas KISTI-Institut zu souveränem Quanten-HPC.",{"type":21,"tag":22,"props":568,"children":569},{},[570,572,578,580,586],{"type":26,"value":571},"Bei der Hardware profitiert IonQs Trapped-Ion-Ansatz von der \"Smooth Gate\"-Technik aus der Oxford-Ionics-Übernahme, die laut Unternehmensangaben die Zwei-Qubit-Gatter-Fidelity über 99,99% hebt, ohne vollständige Grundzustandskühlung zu benötigen, eine echte technische Abkürzung, falls sie sich unter unabhängiger Prüfung bestätigt. IonQ veröffentlichte im Dezember 2025 zudem ein Decoder-Ergebnis (Beam Search, für Quanten-LDPC-Codes) mit einer behaupteten 5,6- bis 17-fachen Reduktion der logischen Fehlerrate gegenüber der Standard-BP-OSD-Basislinie, bei Dekodierung unter einer Millisekunde auf einem gewöhnlichen CPU-Kern. Skaliert das so, wie IonQ projiziert, wäre es ein deutlich günstigerer Weg zur Echtzeit-Dekodierung als die FPGA- und ASIC-Routen, die Konkurrenten verfolgen, ein Thema, das wir in ",{"type":21,"tag":41,"props":573,"children":575},{"href":574},"\u002Fblog\u002Fquantum-error-decoding-bottleneck",[576],{"type":26,"value":577},"dem Beitrag zum Echtzeit-Dekodier-Engpass",{"type":26,"value":579}," vertiefen. Und die SkyWater-Technology-Foundry-Übernahme, ",{"type":21,"tag":41,"props":581,"children":583},{"href":582},"\u002Fblog\u002Fionq-skywater-acquisition-explained",[584],{"type":26,"value":585},"die wir im Detail untersucht haben",{"type":26,"value":587},", gibt IonQ eine vollständig inländische, für Verteidigungsanwendungen freigegebene Lieferkette für die Elektroden, Photonik und Steuerelektronik rund um seine Qubits, ein echter Vorteil bei staatlichen Käufern unabhängig von der Qubit-Physik.",{"type":21,"tag":22,"props":589,"children":590},{},[591],{"type":26,"value":592},"Nichts davon ist so unabhängig verifiziert wie Googles Below-Threshold-Ergebnis. IonQs Fidelity-, Decoder- und Gattergeschwindigkeits-Behauptungen sind IonQs eigene Zahlen. Aber die kommerzielle und staatliche Zugkraft ist extern berichtet und überprüfbar, anders als Marketingbehauptungen, und es ist selten, dass ein so junges Hardware-Unternehmen echtes Umsatzwachstum in dieser Größenordnung zeigt statt allein Forschungsförderung. Diese Kombination, nachgewiesene kommerzielle Nachfrage plus eine kohärente Hardware-Roadmap, ist der Grund, warum IonQ vor Konkurrenten mit womöglich vergleichbaren oder besseren Laborergebnissen, aber einer deutlich dünneren kommerziellen Geschichte, rangiert.",{"type":21,"tag":29,"props":594,"children":596},{"id":595},"_4-quantinuum",[597],{"type":26,"value":598},"4. Quantinuum",{"type":21,"tag":22,"props":600,"children":601},{},[602,604,609],{"type":26,"value":603},"Quantinuums Helios-System behauptet 48 fehlerkorrigierte logische Qubits aus etwa 96 physischen Qubits, ein Verhältnis von 2:1, das bedeutsam wäre, wenn es sich bestätigt, da Surface-Code-Schätzungen auf supraleitender Hardware typischerweise in die Hunderte oder Tausende physischer Qubits pro logischem Qubit reichen. Wir ",{"type":21,"tag":41,"props":605,"children":606},{"href":166},[607],{"type":26,"value":608},"haben hier erklärt, warum dieses Verhältnis überhaupt möglich ist",{"type":26,"value":610},": Die All-to-all-Konnektivität von Trapped Ions unterstützt nichtlokale Paritätsprüfungen, die ein flacher supraleitender Chip nicht verdrahten kann. Quantinuum ging 2026 mit einer Bewertung von 15,6 Milliarden Dollar an die Börse, mehr als 50% über seiner letzten privaten Finanzierungsrunde Monate zuvor, wobei Honeywell rund 48% der Stimmrechte behält. Diese IPO-Resonanz sagt, dass der Markt der technischen Geschichte glaubt. Die 2:1-Zahl ist, wie IonQs Fidelity-Behauptungen, vom Hersteller berichtet und noch nicht unabhängig reproduziert.",{"type":21,"tag":29,"props":612,"children":614},{"id":613},"_5-d-wave",[615],{"type":26,"value":616},"5. D-Wave",{"type":21,"tag":22,"props":618,"children":619},{},[620],{"type":26,"value":621},"D-Wave besetzt eine andere Kategorie, Annealing statt Gate-Modell-Berechnung, und wird aus diesem Grund leicht unterschätzt. Die Buchungen im ersten Quartal 2026 wuchsen um fast das 20-Fache gegenüber dem Vorjahr auf 33,4 Millionen Dollar, gegenüber vergleichsweise geringen 2,9 Millionen Dollar an erfasstem Umsatz, was bedeutet, dass der Auftragsbestand real ist, die Erfassungsverzögerung aber lang. Eine Kassenposition von 588 Millionen Dollar verschafft Spielraum, das auszusitzen. Deals mit der Florida Atlantic University und einem Fortune-100-Kunden für Quanten-Cloud-Zugang zeigen, dass ihre Nische, Optimierungsprobleme, die sich natürlich auf Annealing abbilden lassen, weiterhin aktive kommerzielle Nachfrage hat.",{"type":21,"tag":29,"props":623,"children":625},{"id":624},"_6-rigetti-computing",[626],{"type":26,"value":627},"6. Rigetti Computing",{"type":21,"tag":22,"props":629,"children":630},{},[631],{"type":26,"value":632},"Rigetti ist das Unternehmen auf dieser Liste, bei dem die Kluft zwischen Erzählung und Zahlen am größten ist. Sein Cepheus-1, ein supraleitendes 108-Qubit-System, erreichte im April 2026 allgemeine Verfügbarkeit, nachdem es vom ursprünglichen Ziel im vierten Quartal 2025 abgerutscht war, verzögert durch Fidelity-Probleme bei den abstimmbaren Kopplern. Nach der Auslieferung lag die berichtete Zwei-Qubit-Fidelity bei etwa 99-99,1%, unter Rigettis eigenem Ziel von 99,5% und deutlich unter den behaupteten Werten von sowohl IonQ als auch Quantinuum für ihre jeweiligen Plattformen. Der Umsatz im ersten Quartal 2026 betrug 4,4 Millionen Dollar, ein Bruchteil von IonQs 64,7 Millionen Dollar im selben Quartal. Öffentliche Berichte beschreiben zudem einen Rückschlag bei einem DARPA-Programmeilenstein, was den Druck auf ein Unternehmen erhöht, das seine Roadmap an diesem Punkt größtenteils selbst finanziert.",{"type":21,"tag":22,"props":634,"children":635},{},[636],{"type":26,"value":637},"Die eine echte Stärke ist die Bilanz: rund 569 Millionen Dollar in bar, keine Schulden, und eine Verbrennungsrate von etwa 26 Millionen Dollar pro Quartal, was echte Reichweite kauft. Das ist es wert, direkt anerkannt zu werden, denn eine starke Kassenposition ist ein echter Vorteil, kein Trostpreis. Aber Bargeld kauft Zeit, keine Wettbewerbsposition, und bei den Kennzahlen, die tatsächlich vorhersagen, ob ein Quantencomputer nützliche Arbeit leistet, Fidelity, Fortschritt bei logischen Qubits, unabhängige kommerzielle Zugkraft, liegt Rigetti hinter IBM, Google, IonQ und Quantinuum, nicht auf gleicher Höhe. Die eigene öffentliche Roadmap in Richtung 1.000+ Qubits liest sich, den Zahlen nach, eher wie ein mehrjähriges Aufholen als eine parallele Spur.",{"type":21,"tag":29,"props":639,"children":641},{"id":640},"_7-psiquantum",[642],{"type":26,"value":643},"7. PsiQuantum",{"type":21,"tag":22,"props":645,"children":646},{},[647],{"type":26,"value":648},"PsiQuantums photonischer, auf Fehlertoleranz ausgerichteter Ansatz sammelte im September 2025 eine Series-E-Runde über 1 Milliarde Dollar ein und sicherte sich rund 940 Millionen australische Dollar (etwa 620 Millionen US-Dollar) an Zusagen von der australischen und Queensland-Regierung. Der Bau seiner Anlage in Brisbane begann im Juni 2026, doch der Lieferzeitplan hat sich vom ursprünglichen Ziel 2027 auf 2029 verschoben. PsiQuantum hat noch nie ein kommerzielles System ausgeliefert und setzt alles darauf, dass eine fehlertolerante Maschine beim ersten Versuch im großen Maßstab funktioniert, ein grundlegend anderes Risikoprofil als bei jedem Gate-Modell-Konkurrenten auf dieser Liste, die alle heute (wenn auch verrauschte) funktionierende Hardware im Einsatz haben.",{"type":21,"tag":29,"props":650,"children":652},{"id":651},"_8-xanadu",[653],{"type":26,"value":654},"8. Xanadu",{"type":21,"tag":22,"props":656,"children":657},{},[658],{"type":26,"value":659},"Xanadu ging im März 2026 an die Nasdaq und die TSX und sammelte 302 Millionen Dollar ein, und sein modulares photonisches System Aurora behauptet Echtzeit-Fehlerkorrektur, ein bedeutender technischer Schritt, sofern unabhängig bestätigt. Sein PennyLane-Framework bleibt eines der am weitesten verbreiteten Open-Source-Werkzeuge im Bereich Quanten-Machine-Learning, unabhängig davon, wessen Hardware es anspricht, was Xanadu einen Ökosystem-Halt verschafft, der nicht davon abhängt, dass die eigenen Chips gewinnen.",{"type":21,"tag":29,"props":661,"children":663},{"id":662},"_9-pasqal",[664],{"type":26,"value":665},"9. Pasqal",{"type":21,"tag":22,"props":667,"children":668},{},[669],{"type":26,"value":670},"Pasqals Ansatz mit neutralen Atomen sammelte 340 Millionen Euro ein und bewertete einen SPAC-Zusammenschluss mit 2 Milliarden Dollar, der in der zweiten Hälfte 2026 abgeschlossen werden soll. Die öffentliche Roadmap zielt 2026 auf eine 250-Qubit-Vorteilsdemonstration und einen Weg zu über 10.000 Qubits mit den Systemen Vela und Centaurus. Neutrale Atome bleiben kommerziell früher im Reifegrad als Trapped Ions oder supraleitende Qubits, aber Pasqals Finanzierung und Regierungsbeziehungen (besonders in Europa) verschaffen echte Durchhaltekraft, um diesen Maßstab zu erreichen.",{"type":21,"tag":29,"props":672,"children":674},{"id":673},"_10-quera-computing",[675],{"type":26,"value":676},"10. QuEra Computing",{"type":21,"tag":22,"props":678,"children":679},{},[680],{"type":26,"value":681},"QuEra berichtete in einem Nature-Paper vom Januar 2026 von 96 logischen Qubits, kodiert über 448 physische Qubits, ein Verhältnis, das, sollte es sich der Prüfung so standhalten wie Googles Below-Threshold-Ergebnis, QuEras logische Qubitzahl vor Quantinuums Helios-Ergebnis stellen würde. Über 507 Millionen Dollar an Gesamtfinanzierung von Geldgebern wie Google und SoftBank verschaffen die Mittel, den Ansatz mit neutralen Atomen weiter Richtung Skalierung voranzutreiben.",{"type":21,"tag":29,"props":683,"children":685},{"id":684},"der-rest-des-feldes-kurz",[686],{"type":26,"value":687},"Der Rest des Feldes, kurz",{"type":21,"tag":22,"props":689,"children":690},{},[691,696,698,703,705,710,712,717,719,724],{"type":21,"tag":205,"props":692,"children":693},{},[694],{"type":26,"value":695},"Atom Computing",{"type":26,"value":697}," strebt bis Ende 2026 50 logische Qubits auf über 1.200 physischen Qubits an, in Zusammenarbeit mit Microsofts QuNorth-Gruppe an der Fehlerkorrektur. ",{"type":21,"tag":205,"props":699,"children":700},{},[701],{"type":26,"value":702},"IQM",{"type":26,"value":704}," sammelte 50 Millionen Euro von BlackRock ein und erreichte eine SPAC-Bewertung von 1,8 Milliarden Dollar, womit es sich als erstes EU-gelistetes reines Quantenhardware-Unternehmen positioniert, mit bereits 21 verkauften Systemen an 13 Kunden. ",{"type":21,"tag":205,"props":706,"children":707},{},[708],{"type":26,"value":709},"Infleqtion",{"type":26,"value":711}," ging im Februar 2026 an die NYSE und berichtet von 1.600 physischen Qubits bei 99,73% Fidelity. ",{"type":21,"tag":205,"props":713,"children":714},{},[715],{"type":26,"value":716},"Microsoft",{"type":26,"value":718}," lieferte im Juni 2026 sein Majorana-2-Update für topologische Qubits aus, mit einer behaupteten 1.000-fachen Verbesserung der Qubit-Lebensdauer, ein Ergebnis, das angesichts der historisch umstrittenen Behauptungen zu topologischen Qubits weiterhin echter Prüfung durch die Physik-Community ausgesetzt ist. ",{"type":21,"tag":205,"props":720,"children":721},{},[722],{"type":26,"value":723},"NVIDIA",{"type":26,"value":725}," baut überhaupt keine Qubits, hat seine NVQLink-Infrastruktur aber als Verbindungsschicht zwischen klassischem Supercomputing und QPUs von Rigetti, SEEQC, Quantinuum und IQM positioniert, eine Wette darauf, die Verbindungsebene zu besitzen, unabhängig davon, welche Hardware-Modalität gewinnt.",{"type":21,"tag":29,"props":727,"children":729},{"id":728},"wie-man-diese-liste-nutzt",[730],{"type":26,"value":731},"Wie man diese Liste nutzt",{"type":21,"tag":22,"props":733,"children":734},{},[735,737,743,745,749,750,755],{"type":26,"value":736},"Ranglisten wie diese altern schnell, und jede Zahl hier stammt aus einem bestimmten Quartal oder einer bestimmten Ankündigung, die innerhalb eines Jahres veraltet wirken wird. Was nicht so schnell altert, ist die Methode: Umsatz gegen Prognose prüfen, Fidelity gegen die eigenen Zielvorgaben des Unternehmens prüfen, prüfen, ob eine Behauptung zu \"logischen Qubits\" oder \"Quantenvorteil\" unabhängig reproduziert wurde oder noch allein auf dem Wort eines Herstellers beruht. Wende dieselbe Methode auf die nächste Ankündigung an, die du liest, unser ",{"type":21,"tag":41,"props":738,"children":740},{"href":739},"\u002Fblog\u002Fquantum-benchmarking-eo-14413",[741],{"type":26,"value":742},"Beitrag zum Quanten-Benchmarking",{"type":26,"value":744}," geht genauer darauf ein, warum dem Feld noch immer ein vertrauenswürdiger, herstellerunabhängiger Weg fehlt, Hardware überhaupt zu vergleichen. Unser ",{"type":21,"tag":41,"props":746,"children":747},{"href":144},[748],{"type":26,"value":276},{"type":26,"value":278},{"type":21,"tag":41,"props":751,"children":752},{"href":281},[753],{"type":26,"value":754},"SDK-Vergleich",{"type":26,"value":756}," sind der nächste Anlaufpunkt, wenn du entscheiden willst, auf welcher Plattform du tatsächlich bauen willst, statt welche du nur beobachtest.",{"title":7,"searchDepth":173,"depth":173,"links":758},[759,760,761,762,763,764,765,766,767,768,769,770],{"id":522,"depth":173,"text":525},{"id":547,"depth":173,"text":550},{"id":558,"depth":173,"text":561},{"id":595,"depth":173,"text":598},{"id":613,"depth":173,"text":616},{"id":624,"depth":173,"text":627},{"id":640,"depth":173,"text":643},{"id":651,"depth":173,"text":654},{"id":662,"depth":173,"text":665},{"id":673,"depth":173,"text":676},{"id":684,"depth":173,"text":687},{"id":728,"depth":173,"text":731},"content:de:blog:top-quantum-computing-companies-2026.md","de\u002Fblog\u002Ftop-quantum-computing-companies-2026.md","de\u002Fblog\u002Ftop-quantum-computing-companies-2026",{"_path":775,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":776,"description":777,"date":10,"author":11,"tags":778,"readingTime":196,"body":779,"_type":180,"_id":869,"_source":182,"_file":870,"_stem":871,"_extension":185},"\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.",[351,352,14],{"type":18,"children":780,"toc":863},[781,792,798,803,808,814,826,832,845,851],{"type":21,"tag":22,"props":782,"children":783},{},[784,786,790],{"type":26,"value":785},"Building a good ",{"type":21,"tag":41,"props":787,"children":788},{"href":392},[789],{"type":26,"value":352},{"type":26,"value":791}," circuit for a specific molecule is itself a hard, expensive search problem, 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":29,"props":793,"children":795},{"id":794},"the-problem-adapt-gqe-targets",[796],{"type":26,"value":797},"The problem ADAPT-GQE targets",{"type":21,"tag":22,"props":799,"children":800},{},[801],{"type":26,"value":802},"The standard method, ADAPT-VQE, builds a molecule-specific 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 grow, since every step re-evaluates the whole operator pool from scratch.",{"type":21,"tag":22,"props":804,"children":805},{},[806],{"type":26,"value":807},"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":29,"props":809,"children":811},{"id":810},"what-the-results-show",[812],{"type":26,"value":813},"What the results show",{"type":21,"tag":22,"props":815,"children":816},{},[817,819,824],{"type":26,"value":818},"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 same hardware we covered in our ",{"type":21,"tag":41,"props":820,"children":821},{"href":166},[822],{"type":26,"value":823},"piece on Helios's logical qubit encoding",{"type":26,"value":825},".",{"type":21,"tag":29,"props":827,"children":829},{"id":828},"read-the-claim-at-the-scale-it-was-tested",[830],{"type":26,"value":831},"Read the claim at the scale it was tested",{"type":21,"tag":22,"props":833,"children":834},{},[835,837,843],{"type":26,"value":836},"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":41,"props":838,"children":840},{"href":839},"\u002Fblog\u002Fquantum-chemistry-protein-scale-2026",[841],{"type":26,"value":842},"Cleveland Clinic and IBM protein-scale simulation",{"type":26,"value":844}," 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":29,"props":846,"children":848},{"id":847},"why-this-fits-a-pattern-worth-naming",[849],{"type":26,"value":850},"Why this fits a pattern worth naming",{"type":21,"tag":22,"props":852,"children":853},{},[854,856,861],{"type":26,"value":855},"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":41,"props":857,"children":858},{"href":362},[859],{"type":26,"value":860},"PennyLane VQE guide",{"type":26,"value":862}," walks through the manual ansatz-construction approach ADAPT-GQE is trying to replace.",{"title":7,"searchDepth":173,"depth":173,"links":864},[865,866,867,868],{"id":794,"depth":173,"text":797},{"id":810,"depth":173,"text":813},{"id":828,"depth":173,"text":831},{"id":847,"depth":173,"text":850},"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":873,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":874,"description":875,"date":10,"author":11,"tags":876,"readingTime":877,"body":878,"_type":180,"_id":943,"_source":182,"_file":944,"_stem":945,"_extension":185},"\u002Fblog\u002Fglobalfoundries-chips-silicon-photonics-award","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.",[13,14],6,{"type":18,"children":879,"toc":938},[880,885,891,896,902,927,933],{"type":21,"tag":22,"props":881,"children":882},{},[883],{"type":26,"value":884},"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":29,"props":886,"children":888},{"id":887},"what-the-award-funds",[889],{"type":26,"value":890},"What the award funds",{"type":21,"tag":22,"props":892,"children":893},{},[894],{"type":26,"value":895},"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":29,"props":897,"children":899},{"id":898},"why-a-chipmakers-ai-deal-shows-up-on-a-quantum-computing-site",[900],{"type":26,"value":901},"Why a chipmaker's AI deal shows up on a quantum computing site",{"type":21,"tag":22,"props":903,"children":904},{},[905,907,912,914,918,920,926],{"type":26,"value":906},"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":41,"props":908,"children":909},{"href":582},[910],{"type":26,"value":911},"IonQ's acquisition of SkyWater Technology",{"type":26,"value":913},". The connection to quantum computing is indirect but real: photonic quantum computing companies like Xanadu and PsiQuantum, tracked on our ",{"type":21,"tag":41,"props":915,"children":916},{"href":152},[917],{"type":26,"value":155},{"type":26,"value":919},", 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":41,"props":921,"children":923},{"href":922},"\u002Fblog\u002Fquantum-networking-distributed-computing",[924],{"type":26,"value":925},"quantum networking and distributed quantum computing",{"type":26,"value":825},{"type":21,"tag":29,"props":928,"children":930},{"id":929},"what-this-does-and-does-not-tell-you-about-quantum-hardware",[931],{"type":26,"value":932},"What this does and does not tell you about quantum hardware",{"type":21,"tag":22,"props":934,"children":935},{},[936],{"type":26,"value":937},"This award funds general-purpose silicon photonics aimed at AI data centers, not a quantum-specific fabrication line. No quantum hardware vendor is named as a direct beneficiary in the announcement. What it does tell you is that the underlying manufacturing base for photonic and optically networked quantum hardware is getting real government investment and real domestic capacity, for reasons that have nothing to do with quantum computing at all. That is worth knowing if you are trying to judge 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":173,"depth":173,"links":939},[940,941,942],{"id":887,"depth":173,"text":890},{"id":898,"depth":173,"text":901},{"id":929,"depth":173,"text":932},"content:blog:globalfoundries-chips-silicon-photonics-award.md","blog\u002Fglobalfoundries-chips-silicon-photonics-award.md","blog\u002Fglobalfoundries-chips-silicon-photonics-award",{"_path":947,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":948,"description":949,"date":10,"author":11,"tags":950,"readingTime":951,"body":952,"_type":180,"_id":1080,"_source":182,"_file":1081,"_stem":1082,"_extension":185},"\u002Fblog\u002Fgoogle-willow-reinforcement-learning-calibration","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.",[14,194,13],8,{"type":18,"children":953,"toc":1074},[954,977,983,988,999,1005,1017,1022,1028,1033,1045,1051,1056],{"type":21,"tag":22,"props":955,"children":956},{},[957,959,967,968,975],{"type":26,"value":958},"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":41,"props":960,"children":964},{"href":961,"rel":962},"https:\u002F\u002Fthequantuminsider.com\u002F2026\u002F07\u002F10\u002Fgoogle-study-shows-quantum-computer-can-learn-from-its-own-errors-while-it-computes\u002F",[963],"nofollow",[965],{"type":26,"value":966},"The Quantum Insider",{"type":26,"value":149},{"type":21,"tag":41,"props":969,"children":972},{"href":970,"rel":971},"https:\u002F\u002Fwww.nature.com\u002Farticles\u002Fs41586-026-10759-2",[963],[973],{"type":26,"value":974},"the paper itself",{"type":26,"value":976},". 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":29,"props":978,"children":980},{"id":979},"the-problem-this-solves",[981],{"type":26,"value":982},"The problem this solves",{"type":21,"tag":22,"props":984,"children":985},{},[986],{"type":26,"value":987},"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 same hardware time, and it only catches drift at the moments you choose to check for it.",{"type":21,"tag":22,"props":989,"children":990},{},[991,997],{"type":21,"tag":41,"props":992,"children":994},{"href":993},"\u002Fglossary\u002Fquantum-error-correction",[995],{"type":26,"value":996},"Quantum error correction",{"type":26,"value":998}," 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":29,"props":1000,"children":1002},{"id":1001},"what-the-reinforcement-learning-agent-does",[1003],{"type":26,"value":1004},"What the reinforcement learning agent does",{"type":21,"tag":22,"props":1006,"children":1007},{},[1008,1010,1015],{"type":26,"value":1009},"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":41,"props":1011,"children":1012},{"href":324},[1013],{"type":26,"value":1014},"surface codes",{"type":26,"value":1016}," 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":1018,"children":1019},{},[1020],{"type":26,"value":1021},"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 new record for that code family.",{"type":21,"tag":29,"props":1023,"children":1025},{"id":1024},"why-this-matters-more-than-the-specific-numbers",[1026],{"type":26,"value":1027},"Why this matters more than the specific numbers",{"type":21,"tag":22,"props":1029,"children":1030},{},[1031],{"type":26,"value":1032},"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 problem, 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":1034,"children":1035},{},[1036,1038,1043],{"type":26,"value":1037},"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":41,"props":1039,"children":1040},{"href":4},[1041],{"type":26,"value":1042},"IBM's roadmap",{"type":26,"value":1044}," 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":29,"props":1046,"children":1048},{"id":1047},"what-is-still-unproven",[1049],{"type":26,"value":1050},"What is still unproven",{"type":21,"tag":22,"props":1052,"children":1053},{},[1054],{"type":26,"value":1055},"This result 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 different 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":1057,"children":1058},{},[1059,1061,1066,1067,1072],{"type":26,"value":1060},"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":41,"props":1062,"children":1063},{"href":324},[1064],{"type":26,"value":1065},"error correction explainer",{"type":26,"value":149},{"type":21,"tag":41,"props":1068,"children":1069},{"href":56},[1070],{"type":26,"value":1071},"logical qubits and fault tolerance piece",{"type":26,"value":1073}," 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":173,"depth":173,"links":1075},[1076,1077,1078,1079],{"id":979,"depth":173,"text":982},{"id":1001,"depth":173,"text":1004},{"id":1024,"depth":173,"text":1027},{"id":1047,"depth":173,"text":1050},"content:blog:google-willow-reinforcement-learning-calibration.md","blog\u002Fgoogle-willow-reinforcement-learning-calibration.md","blog\u002Fgoogle-willow-reinforcement-learning-calibration",{"_path":1084,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":1085,"description":1086,"date":10,"author":11,"tags":1087,"readingTime":196,"body":1088,"_type":180,"_id":1184,"_source":182,"_file":1185,"_stem":1186,"_extension":185},"\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.",[14,194,13],{"type":18,"children":1089,"toc":1179},[1090,1102,1108,1113,1131,1137,1142,1147,1153,1164],{"type":21,"tag":22,"props":1091,"children":1092},{},[1093,1095,1100],{"type":26,"value":1094},"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":41,"props":1096,"children":1097},{"href":993},[1098],{"type":26,"value":1099},"error correction",{"type":26,"value":1101}," on its own.",{"type":21,"tag":29,"props":1103,"children":1105},{"id":1104},"what-hrl-built",[1106],{"type":26,"value":1107},"What HRL built",{"type":21,"tag":22,"props":1109,"children":1110},{},[1111],{"type":26,"value":1112},"The device holds 18 qubits. Next to them, inside the same 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":1114,"children":1115},{},[1116,1118,1123,1124,1129],{"type":26,"value":1117},"The controller chip itself was manufactured at a commercial foundry, the same kind of manufacturing step behind ",{"type":21,"tag":41,"props":1119,"children":1120},{"href":582},[1121],{"type":26,"value":1122},"IonQ's recent purchase of SkyWater Technology",{"type":26,"value":149},{"type":21,"tag":41,"props":1125,"children":1126},{"href":873},[1127],{"type":26,"value":1128},"GlobalFoundries' new silicon photonics funding",{"type":26,"value":1130},". 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":29,"props":1132,"children":1134},{"id":1133},"why-moving-the-controller-matters-more-than-it-sounds",[1135],{"type":26,"value":1136},"Why moving the controller matters more than it sounds",{"type":21,"tag":22,"props":1138,"children":1139},{},[1140],{"type":26,"value":1141},"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":1143,"children":1144},{},[1145],{"type":26,"value":1146},"That is a real, checkable engineering claim, and it is a different kind of claim than a qubit count or a fidelity number. 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":29,"props":1148,"children":1150},{"id":1149},"where-this-sits-next-to-other-2026-scaling-work",[1151],{"type":26,"value":1152},"Where this sits next to other 2026 scaling work",{"type":21,"tag":22,"props":1154,"children":1155},{},[1156,1162],{"type":21,"tag":41,"props":1157,"children":1159},{"href":1158},"\u002Fblog\u002Fwarwick-quantum-phononic-links",[1160],{"type":26,"value":1161},"Warwick researchers published a different answer",{"type":26,"value":1163}," to a related scaling problem the same 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":1165,"children":1166},{},[1167,1169,1173,1174,1178],{"type":26,"value":1168},"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":41,"props":1170,"children":1171},{"href":144},[1172],{"type":26,"value":147},{"type":26,"value":149},{"type":21,"tag":41,"props":1175,"children":1176},{"href":152},[1177],{"type":26,"value":155},{"type":26,"value":825},{"title":7,"searchDepth":173,"depth":173,"links":1180},[1181,1182,1183],{"id":1104,"depth":173,"text":1107},{"id":1133,"depth":173,"text":1136},{"id":1149,"depth":173,"text":1152},"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":1188,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":1189,"description":1190,"date":10,"author":11,"tags":1191,"readingTime":951,"body":1192,"_type":180,"_id":1422,"_source":182,"_file":1423,"_stem":1424,"_extension":185},"\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.",[13,14,194],{"type":18,"children":1193,"toc":1415},[1194,1208,1220,1226,1253,1273,1278,1284,1289,1294,1299,1305,1310,1315,1321,1326,1331,1337,1342,1358],{"type":21,"tag":22,"props":1195,"children":1196},{},[1197,1199,1206],{"type":26,"value":1198},"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":41,"props":1200,"children":1203},{"href":1201,"rel":1202},"https:\u002F\u002Fnewsroom.ibm.com\u002F2026-07-23-ibm-to-acquire-hrl-laboratories-to-power-the-future-of-quantum",[963],[1204],{"type":26,"value":1205},"IBM's newsroom announcement",{"type":26,"value":1207},". 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":1209,"children":1210},{},[1211,1213,1218],{"type":26,"value":1212},"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":41,"props":1214,"children":1215},{"href":1084},[1216],{"type":26,"value":1217},"which we covered here",{"type":26,"value":1219},". 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":29,"props":1221,"children":1223},{"id":1222},"what-hrl-brings",[1224],{"type":26,"value":1225},"What HRL brings",{"type":21,"tag":22,"props":1227,"children":1228},{},[1229,1231,1238,1240,1245,1247,1252],{"type":26,"value":1230},"HRL specializes in silicon-spin qubit engineering, quantum sensing, and quantum materials, according to ",{"type":21,"tag":41,"props":1232,"children":1235},{"href":1233,"rel":1234},"https:\u002F\u002Fresearch.ibm.com\u002Fblog\u002Fhrl-laboratories-ibm",[963],[1236],{"type":26,"value":1237},"IBM Research's own writeup",{"type":26,"value":1239},". That is a different qubit modality from IBM's existing superconducting transmon platform, the one behind ",{"type":21,"tag":41,"props":1241,"children":1242},{"href":4},[1243],{"type":26,"value":1244},"Nighthawk",{"type":26,"value":1246}," and the ",{"type":21,"tag":41,"props":1248,"children":1249},{"href":739},[1250],{"type":26,"value":1251},"Starling and Blue Jay roadmap",{"type":26,"value":825},{"type":21,"tag":22,"props":1254,"children":1255},{},[1256,1258,1264,1266,1271],{"type":26,"value":1257},"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":41,"props":1259,"children":1261},{"href":1260},"\u002Fglossary\u002Fqubit",[1262],{"type":26,"value":1263},"qubits",{"type":26,"value":1265},", 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":41,"props":1267,"children":1268},{"href":1084},[1269],{"type":26,"value":1270},"earlier piece on that result",{"type":26,"value":1272}," 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":1274,"children":1275},{},[1276],{"type":26,"value":1277},"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":29,"props":1279,"children":1281},{"id":1280},"why-ibm-is-buying-instead-of-partnering",[1282],{"type":26,"value":1283},"Why IBM is buying instead of partnering",{"type":21,"tag":22,"props":1285,"children":1286},{},[1287],{"type":26,"value":1288},"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":1290,"children":1291},{},[1292],{"type":26,"value":1293},"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":1295,"children":1296},{},[1297],{"type":26,"value":1298},"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":29,"props":1300,"children":1302},{"id":1301},"the-people-making-the-case",[1303],{"type":26,"value":1304},"The people making the case",{"type":21,"tag":22,"props":1306,"children":1307},{},[1308],{"type":26,"value":1309},"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":1311,"children":1312},{},[1313],{"type":26,"value":1314},"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":29,"props":1316,"children":1318},{"id":1317},"hrls-history-is-longer-than-the-quantum-story-suggests",[1319],{"type":26,"value":1320},"HRL's history is longer than the quantum story suggests",{"type":21,"tag":22,"props":1322,"children":1323},{},[1324],{"type":26,"value":1325},"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":1327,"children":1328},{},[1329],{"type":26,"value":1330},"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":29,"props":1332,"children":1334},{"id":1333},"what-to-watch-once-the-deal-closes",[1335],{"type":26,"value":1336},"What to watch once the deal closes",{"type":21,"tag":22,"props":1338,"children":1339},{},[1340],{"type":26,"value":1341},"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":1343,"children":1344},{},[1345,1347,1351,1352,1356],{"type":26,"value":1346},"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":41,"props":1348,"children":1349},{"href":144},[1350],{"type":26,"value":147},{"type":26,"value":149},{"type":21,"tag":41,"props":1353,"children":1354},{"href":152},[1355],{"type":26,"value":155},{"type":26,"value":1357}," 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":1359,"children":1360},{},[1361,1366,1368,1374,1376,1382,1383,1390,1391,1398,1399,1406,1407,1414],{"type":21,"tag":205,"props":1362,"children":1363},{},[1364],{"type":26,"value":1365},"Sources:",{"type":26,"value":1367}," ",{"type":21,"tag":41,"props":1369,"children":1371},{"href":1201,"rel":1370},[963],[1372],{"type":26,"value":1373},"IBM newsroom announcement",{"type":26,"value":1375},", ",{"type":21,"tag":41,"props":1377,"children":1379},{"href":1233,"rel":1378},[963],[1380],{"type":26,"value":1381},"IBM Research blog",{"type":26,"value":1375},{"type":21,"tag":41,"props":1384,"children":1387},{"href":1385,"rel":1386},"https:\u002F\u002Fsiliconangle.com\u002F2026\u002F07\u002F23\u002Fibm-acquires-quantum-computing-research-lab-hrl\u002F",[963],[1388],{"type":26,"value":1389},"SiliconANGLE",{"type":26,"value":1375},{"type":21,"tag":41,"props":1392,"children":1395},{"href":1393,"rel":1394},"https:\u002F\u002Fwww.govconwire.com\u002Farticles\u002Fibm-buy-hrl-laboratories-quantum-computing",[963],[1396],{"type":26,"value":1397},"GovConWire",{"type":26,"value":1375},{"type":21,"tag":41,"props":1400,"children":1403},{"href":1401,"rel":1402},"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",[963],[1404],{"type":26,"value":1405},"IBM's $10 billion quantum investment announcement",{"type":26,"value":1375},{"type":21,"tag":41,"props":1408,"children":1411},{"href":1409,"rel":1410},"https:\u002F\u002Fwww.hrl.com\u002Fabout\u002Fhistory",[963],[1412],{"type":26,"value":1413},"HRL Laboratories history",{"type":26,"value":825},{"title":7,"searchDepth":173,"depth":173,"links":1416},[1417,1418,1419,1420,1421],{"id":1222,"depth":173,"text":1225},{"id":1280,"depth":173,"text":1283},{"id":1301,"depth":173,"text":1304},{"id":1317,"depth":173,"text":1320},{"id":1333,"depth":173,"text":1336},"content:blog:ibm-hrl-laboratories-acquisition-explained.md","blog\u002Fibm-hrl-laboratories-acquisition-explained.md","blog\u002Fibm-hrl-laboratories-acquisition-explained",{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"author":11,"tags":1426,"readingTime":16,"body":1427,"_type":180,"_id":181,"_source":182,"_file":183,"_stem":184,"_extension":185},[13,14,15],{"type":18,"children":1428,"toc":1533},[1429,1433,1437,1446,1455,1459,1463,1467,1471,1475,1479,1483,1497,1501,1505,1509],{"type":21,"tag":22,"props":1430,"children":1431},{},[1432],{"type":26,"value":27},{"type":21,"tag":29,"props":1434,"children":1435},{"id":31},[1436],{"type":26,"value":34},{"type":21,"tag":22,"props":1438,"children":1439},{},[1440,1441,1445],{"type":26,"value":39},{"type":21,"tag":41,"props":1442,"children":1443},{"href":43},[1444],{"type":26,"value":46},{"type":26,"value":48},{"type":21,"tag":22,"props":1447,"children":1448},{},[1449,1450,1454],{"type":26,"value":53},{"type":21,"tag":41,"props":1451,"children":1452},{"href":56},[1453],{"type":26,"value":59},{"type":26,"value":61},{"type":21,"tag":29,"props":1456,"children":1457},{"id":64},[1458],{"type":26,"value":67},{"type":21,"tag":22,"props":1460,"children":1461},{},[1462],{"type":26,"value":72},{"type":21,"tag":22,"props":1464,"children":1465},{},[1466],{"type":26,"value":77},{"type":21,"tag":29,"props":1468,"children":1469},{"id":80},[1470],{"type":26,"value":83},{"type":21,"tag":22,"props":1472,"children":1473},{},[1474],{"type":26,"value":88},{"type":21,"tag":22,"props":1476,"children":1477},{},[1478],{"type":26,"value":93},{"type":21,"tag":29,"props":1480,"children":1481},{"id":96},[1482],{"type":26,"value":99},{"type":21,"tag":22,"props":1484,"children":1485},{},[1486,1487,1491,1492,1496],{"type":26,"value":104},{"type":21,"tag":41,"props":1488,"children":1489},{"href":107},[1490],{"type":26,"value":110},{"type":26,"value":112},{"type":21,"tag":41,"props":1493,"children":1494},{"href":115},[1495],{"type":26,"value":118},{"type":26,"value":120},{"type":21,"tag":22,"props":1498,"children":1499},{},[1500],{"type":26,"value":125},{"type":21,"tag":29,"props":1502,"children":1503},{"id":128},[1504],{"type":26,"value":131},{"type":21,"tag":22,"props":1506,"children":1507},{},[1508],{"type":26,"value":136},{"type":21,"tag":22,"props":1510,"children":1511},{},[1512,1513,1517,1518,1522,1523,1527,1528,1532],{"type":26,"value":141},{"type":21,"tag":41,"props":1514,"children":1515},{"href":144},[1516],{"type":26,"value":147},{"type":26,"value":149},{"type":21,"tag":41,"props":1519,"children":1520},{"href":152},[1521],{"type":26,"value":155},{"type":26,"value":157},{"type":21,"tag":41,"props":1524,"children":1525},{"href":56},[1526],{"type":26,"value":162},{"type":26,"value":149},{"type":21,"tag":41,"props":1529,"children":1530},{"href":166},[1531],{"type":26,"value":169},{"type":26,"value":171},{"title":7,"searchDepth":173,"depth":173,"links":1534},[1535,1536,1537,1538,1539],{"id":31,"depth":173,"text":34},{"id":64,"depth":173,"text":67},{"id":80,"depth":173,"text":83},{"id":96,"depth":173,"text":99},{"id":128,"depth":173,"text":131},{"_path":1541,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":1542,"description":1543,"date":10,"author":11,"tags":1544,"readingTime":196,"body":1545,"_type":180,"_id":1660,"_source":182,"_file":1661,"_stem":1662,"_extension":185},"\u002Fblog\u002Finfleqtion-sqale-illinois-quantum-park","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.",[14,13],{"type":18,"children":1546,"toc":1655},[1547,1568,1574,1592,1612,1618,1623,1628,1634,1639],{"type":21,"tag":22,"props":1548,"children":1549},{},[1550,1552,1559,1560,1566],{"type":26,"value":1551},"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":41,"props":1553,"children":1556},{"href":1554,"rel":1555},"https:\u002F\u002Finfleqtion.com\u002Finfleqtion-to-deploy-fault-tolerant-neutral-atom-quantum-computer-in-illinois\u002F",[963],[1557],{"type":26,"value":1558},"the company's own announcement",{"type":26,"value":149},{"type":21,"tag":41,"props":1561,"children":1564},{"href":1562,"rel":1563},"https:\u002F\u002Fthequantuminsider.com\u002F2026\u002F07\u002F23\u002Finfleqtion-neutral-atom-quantum-computer-illinois\u002F",[963],[1565],{"type":26,"value":966},{"type":26,"value":1567},". What makes this worth a post 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":29,"props":1569,"children":1571},{"id":1570},"what-sqale-is-supposed-to-do",[1572],{"type":26,"value":1573},"What Sqale is supposed to do",{"type":21,"tag":22,"props":1575,"children":1576},{},[1577,1579,1583,1585,1590],{"type":26,"value":1578},"Sqale is designed to demonstrate more than 50 ",{"type":21,"tag":41,"props":1580,"children":1581},{"href":43},[1582],{"type":26,"value":46},{"type":26,"value":1584}," 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":41,"props":1586,"children":1587},{"href":144},[1588],{"type":26,"value":1589},"neutral-atom systems",{"type":26,"value":1591},", 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":1593,"children":1594},{},[1595,1597,1602,1604,1610],{"type":26,"value":1596},"Fifty logical qubits would be a meaningful jump if it holds up. For comparison, ",{"type":21,"tag":41,"props":1598,"children":1599},{"href":166},[1600],{"type":26,"value":1601},"Quantinuum's Helios system claims 48 logical qubits",{"type":26,"value":1603}," from roughly 96 physical qubits, and ",{"type":21,"tag":41,"props":1605,"children":1607},{"href":1606},"\u002Fblog\u002Ftop-quantum-computing-companies-2026",[1608],{"type":26,"value":1609},"QuEra reported 96 logical qubits",{"type":26,"value":1611}," 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 result.",{"type":21,"tag":29,"props":1613,"children":1615},{"id":1614},"the-energy-grid-angle-is-the-more-interesting-part",[1616],{"type":26,"value":1617},"The energy grid angle is the more interesting part",{"type":21,"tag":22,"props":1619,"children":1620},{},[1621],{"type":26,"value":1622},"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":1624,"children":1625},{},[1626],{"type":26,"value":1627},"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":29,"props":1629,"children":1631},{"id":1630},"what-is-confirmed-and-what-is-not",[1632],{"type":26,"value":1633},"What is confirmed and what is not",{"type":21,"tag":22,"props":1635,"children":1636},{},[1637],{"type":26,"value":1638},"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 has not shipped yet. Infleqtion does have 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, so this is a company with working hardware in the field already, not a pre-revenue startup making a first claim.",{"type":21,"tag":22,"props":1640,"children":1641},{},[1642,1644,1648,1649,1653],{"type":26,"value":1643},"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":41,"props":1645,"children":1646},{"href":144},[1647],{"type":26,"value":147},{"type":26,"value":149},{"type":21,"tag":41,"props":1650,"children":1651},{"href":152},[1652],{"type":26,"value":155},{"type":26,"value":1654}," 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":173,"depth":173,"links":1656},[1657,1658,1659],{"id":1570,"depth":173,"text":1573},{"id":1614,"depth":173,"text":1617},{"id":1630,"depth":173,"text":1633},"content:blog:infleqtion-sqale-illinois-quantum-park.md","blog\u002Finfleqtion-sqale-illinois-quantum-park.md","blog\u002Finfleqtion-sqale-illinois-quantum-park",{"_path":582,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":1664,"description":1665,"date":10,"author":11,"tags":1666,"readingTime":951,"body":1667,"_type":180,"_id":1813,"_source":182,"_file":1814,"_stem":1815,"_extension":185},"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.",[13,14,195],{"type":18,"children":1668,"toc":1805},[1669,1683,1689,1694,1700,1705,1710,1715,1721,1726,1744,1750,1755,1761,1780,1786],{"type":21,"tag":22,"props":1670,"children":1671},{},[1672,1674,1681],{"type":26,"value":1673},"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":41,"props":1675,"children":1678},{"href":1676,"rel":1677},"https:\u002F\u002Finvestors.ionq.com\u002Fnews\u002Fnews-details\u002F2026\u002FIonQ-Completes-Acquisition-of-SkyWater-Technology\u002Fdefault.aspx",[963],[1679],{"type":26,"value":1680},"$1.8 billion",{"type":26,"value":1682},". 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":29,"props":1684,"children":1686},{"id":1685},"what-skywater-builds",[1687],{"type":26,"value":1688},"What SkyWater builds",{"type":21,"tag":22,"props":1690,"children":1691},{},[1692],{"type":26,"value":1693},"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":29,"props":1695,"children":1697},{"id":1696},"the-part-of-ionqs-stack-this-touches",[1698],{"type":26,"value":1699},"The part of IonQ's stack this touches",{"type":21,"tag":22,"props":1701,"children":1702},{},[1703],{"type":26,"value":1704},"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":1706,"children":1707},{},[1708],{"type":26,"value":1709},"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":1711,"children":1712},{},[1713],{"type":26,"value":1714},"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":29,"props":1716,"children":1718},{"id":1717},"what-vertically-integrated-means-precisely",[1719],{"type":26,"value":1720},"What \"vertically integrated\" means, precisely",{"type":21,"tag":22,"props":1722,"children":1723},{},[1724],{"type":26,"value":1725},"No other quantum hardware company 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":1727,"children":1728},{},[1729,1731,1735,1737,1742],{"type":26,"value":1730},"The claim 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":41,"props":1732,"children":1733},{"href":144},[1734],{"type":26,"value":147},{"type":26,"value":1736}," and our ",{"type":21,"tag":41,"props":1738,"children":1739},{"href":281},[1740],{"type":26,"value":1741},"SDK and modality comparison",{"type":26,"value":1743}," cover how IonQ stacks up against competitors across every technology, not only this one.",{"type":21,"tag":29,"props":1745,"children":1747},{"id":1746},"why-the-size-of-the-deal-matters",[1748],{"type":26,"value":1749},"Why the size of the deal matters",{"type":21,"tag":22,"props":1751,"children":1752},{},[1753],{"type":26,"value":1754},"$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":29,"props":1756,"children":1758},{"id":1757},"the-domestic-supply-chain-story-holds-up-best",[1759],{"type":26,"value":1760},"The domestic supply chain story holds up best",{"type":21,"tag":22,"props":1762,"children":1763},{},[1764,1766,1772,1773,1778],{"type":26,"value":1765},"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":41,"props":1767,"children":1769},{"href":1768},"\u002Fblog\u002Fpost-quantum-migration-deadlines",[1770],{"type":26,"value":1771},"accelerated post-quantum migration deadlines",{"type":26,"value":1246},{"type":21,"tag":41,"props":1774,"children":1775},{"href":739},[1776],{"type":26,"value":1777},"quantum benchmarking executive order",{"type":26,"value":1779},". 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":29,"props":1781,"children":1783},{"id":1782},"what-to-watch-next",[1784],{"type":26,"value":1785},"What to watch next",{"type":21,"tag":22,"props":1787,"children":1788},{},[1789,1791,1796,1798,1803],{"type":26,"value":1790},"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":41,"props":1792,"children":1793},{"href":56},[1794],{"type":26,"value":1795},"logical qubits and fault tolerance",{"type":26,"value":1797}," and in our look at ",{"type":21,"tag":41,"props":1799,"children":1800},{"href":166},[1801],{"type":26,"value":1802},"Quantinuum's Helios encoding ratio",{"type":26,"value":1804},". 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":173,"depth":173,"links":1806},[1807,1808,1809,1810,1811,1812],{"id":1685,"depth":173,"text":1688},{"id":1696,"depth":173,"text":1699},{"id":1717,"depth":173,"text":1720},{"id":1746,"depth":173,"text":1749},{"id":1757,"depth":173,"text":1760},{"id":1782,"depth":173,"text":1785},"content:blog:ionq-skywater-acquisition-explained.md","blog\u002Fionq-skywater-acquisition-explained.md","blog\u002Fionq-skywater-acquisition-explained",{"_path":1817,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":1818,"description":1819,"date":10,"author":11,"tags":1820,"readingTime":196,"body":1821,"_type":180,"_id":1930,"_source":182,"_file":1931,"_stem":1932,"_extension":185},"\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.",[13,14],{"type":18,"children":1822,"toc":1924},[1823,1844,1849,1855,1860,1865,1871,1876,1888,1894,1899,1904,1908],{"type":21,"tag":22,"props":1824,"children":1825},{},[1826,1828,1834,1835,1842],{"type":26,"value":1827},"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":41,"props":1829,"children":1832},{"href":1830,"rel":1831},"https:\u002F\u002Fthequantuminsider.com\u002F2026\u002F07\u002F22\u002Fpsiquantum-signs-125-million-agreement-with-darpa\u002F",[963],[1833],{"type":26,"value":966},{"type":26,"value":149},{"type":21,"tag":41,"props":1836,"children":1839},{"href":1837,"rel":1838},"https:\u002F\u002Fwww.psiquantum.com\u002Fnews-import\u002Fpsiquantum-signs-125-million-agreement-with-darpa",[963],[1840],{"type":26,"value":1841},"PsiQuantum's own announcement",{"type":26,"value":1843},". 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":1845,"children":1846},{},[1847],{"type":26,"value":1848},"That framing matters more than the dollar figure. This is not research funding for PsiQuantum to build something new. It funds DARPA and independent evaluators testing whether what PsiQuantum has already built and claimed holds up.",{"type":21,"tag":29,"props":1850,"children":1852},{"id":1851},"what-qbi-tests",[1853],{"type":26,"value":1854},"What QBI tests",{"type":21,"tag":22,"props":1856,"children":1857},{},[1858],{"type":26,"value":1859},"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":1861,"children":1862},{},[1863],{"type":26,"value":1864},"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":29,"props":1866,"children":1868},{"id":1867},"what-the-money-funds",[1869],{"type":26,"value":1870},"What the money funds",{"type":21,"tag":22,"props":1872,"children":1873},{},[1874],{"type":26,"value":1875},"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":1877,"children":1878},{},[1879,1881,1886],{"type":26,"value":1880},"That structure is the point. ",{"type":21,"tag":41,"props":1882,"children":1883},{"href":1606},[1884],{"type":26,"value":1885},"PsiQuantum's photonic, fault-tolerance-first approach",{"type":26,"value":1887}," 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":29,"props":1889,"children":1891},{"id":1890},"why-this-is-a-different-kind-of-evidence-than-a-press-release",[1892],{"type":26,"value":1893},"Why this is a different kind of evidence than a press release",{"type":21,"tag":22,"props":1895,"children":1896},{},[1897],{"type":26,"value":1898},"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":1900,"children":1901},{},[1902],{"type":26,"value":1903},"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 company'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":29,"props":1905,"children":1906},{"id":1782},[1907],{"type":26,"value":1785},{"type":21,"tag":22,"props":1909,"children":1910},{},[1911,1913,1917,1918,1922],{"type":26,"value":1912},"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":41,"props":1914,"children":1915},{"href":144},[1916],{"type":26,"value":147},{"type":26,"value":149},{"type":21,"tag":41,"props":1919,"children":1920},{"href":152},[1921],{"type":26,"value":155},{"type":26,"value":1923}," 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":173,"depth":173,"links":1925},[1926,1927,1928,1929],{"id":1851,"depth":173,"text":1854},{"id":1867,"depth":173,"text":1870},{"id":1890,"depth":173,"text":1893},{"id":1782,"depth":173,"text":1785},"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":1934,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":1935,"description":1936,"date":10,"author":11,"tags":1937,"readingTime":877,"body":1938,"_type":180,"_id":2032,"_source":182,"_file":2033,"_stem":2034,"_extension":185},"\u002Fblog\u002Fquantinuum-bmw-multi-year-partnership","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.",[13,14],{"type":18,"children":1939,"toc":2027},[1940,1961,1967,1972,1977,1983,1995,2000,2006,2011],{"type":21,"tag":22,"props":1941,"children":1942},{},[1943,1945,1952,1953,1959],{"type":26,"value":1944},"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":41,"props":1946,"children":1949},{"href":1947,"rel":1948},"https:\u002F\u002Fwww.quantinuum.com\u002Fpress-releases\u002Fquantinuum-and-bmw-group-expand-landmark-quantum-computing-collaboration-with-new-multi-year-partnership",[963],[1950],{"type":26,"value":1951},"Quantinuum's press release",{"type":26,"value":149},{"type":21,"tag":41,"props":1954,"children":1957},{"href":1955,"rel":1956},"https:\u002F\u002Fthequantuminsider.com\u002F2026\u002F05\u002F05\u002Fquantinuum-and-bmw-group-expand-quantum-computing-collaboration-with-new-multi-year-partnership\u002F",[963],[1958],{"type":26,"value":966},{"type":26,"value":1960},". 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":29,"props":1962,"children":1964},{"id":1963},"five-years-is-the-actual-story-here",[1965],{"type":26,"value":1966},"Five years is the actual story here",{"type":21,"tag":22,"props":1968,"children":1969},{},[1970],{"type":26,"value":1971},"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 problem that determines fuel cell efficiency and where classical simulation methods struggle with the electron correlation effects involved.",{"type":21,"tag":22,"props":1973,"children":1974},{},[1975],{"type":26,"value":1976},"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":29,"props":1978,"children":1980},{"id":1979},"what-bmw-gets",[1981],{"type":26,"value":1982},"What BMW gets",{"type":21,"tag":22,"props":1984,"children":1985},{},[1986,1988,1993],{"type":26,"value":1987},"The expanded partnership gives BMW access to successive generations of Quantinuum's ",{"type":21,"tag":41,"props":1989,"children":1990},{"href":166},[1991],{"type":26,"value":1992},"trapped-ion",{"type":26,"value":1994}," 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":1996,"children":1997},{},[1998],{"type":26,"value":1999},"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":29,"props":2001,"children":2003},{"id":2002},"why-this-is-a-useful-comparison-point",[2004],{"type":26,"value":2005},"Why this is a useful comparison point",{"type":21,"tag":22,"props":2007,"children":2008},{},[2009],{"type":26,"value":2010},"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 result. 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":2012,"children":2013},{},[2014,2016,2020,2021,2025],{"type":26,"value":2015},"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":41,"props":2017,"children":2018},{"href":144},[2019],{"type":26,"value":147},{"type":26,"value":149},{"type":21,"tag":41,"props":2022,"children":2023},{"href":152},[2024],{"type":26,"value":155},{"type":26,"value":2026}," 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":173,"depth":173,"links":2028},[2029,2030,2031],{"id":1963,"depth":173,"text":1966},{"id":1979,"depth":173,"text":1982},{"id":2002,"depth":173,"text":2005},"content:blog:quantinuum-bmw-multi-year-partnership.md","blog\u002Fquantinuum-bmw-multi-year-partnership.md","blog\u002Fquantinuum-bmw-multi-year-partnership",{"_path":2036,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":2037,"description":2038,"date":10,"author":11,"tags":2039,"readingTime":16,"body":2043,"_type":180,"_id":2724,"_source":182,"_file":2725,"_stem":2726,"_extension":185},"\u002Fblog\u002Fquantum-portfolio-optimization-business-case","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.",[2040,2041,2042],"Optimization","QAOA","Use Cases",{"type":18,"children":2044,"toc":2717},[2045,2058,2078,2084,2121,2127,2132,2142,2167,2201,2206,2212,2217,2234,2262,2268,2293,2327,2531,2629,2646,2656,2662,2674,2711],{"type":21,"tag":22,"props":2046,"children":2047},{},[2048,2050,2056],{"type":26,"value":2049},"Writing a QAOA circuit is a solved problem. Dozens of tutorials, including ",{"type":21,"tag":41,"props":2051,"children":2053},{"href":2052},"\u002Fblog\u002Fqaoa-max-cut-tutorial",[2054],{"type":26,"value":2055},"our own",{"type":26,"value":2057},", 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":2059,"children":2060},{},[2061,2068,2070,2076],{"type":21,"tag":41,"props":2062,"children":2065},{"href":2063,"rel":2064},"https:\u002F\u002Fgithub.com\u002FAlinDanielFerenczi\u002FPortfolioQ",[963],[2066],{"type":26,"value":2067},"PortfolioQ",{"type":26,"value":2069}," 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":2071,"props":2072,"children":2073},"em",{},[2074],{"type":26,"value":2075},"any",{"type":26,"value":2077}," quantum optimization claim honestly, portfolio selection or otherwise.",{"type":21,"tag":29,"props":2079,"children":2081},{"id":2080},"the-problem-it-solves",[2082],{"type":26,"value":2083},"The problem it solves",{"type":21,"tag":22,"props":2085,"children":2086},{},[2087,2089,2094,2096,2103,2105,2111,2113,2119],{"type":26,"value":2088},"PortfolioQ targets ",{"type":21,"tag":205,"props":2090,"children":2091},{},[2092],{"type":26,"value":2093},"cardinality-constrained portfolio selection",{"type":26,"value":2095},": 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":2097,"props":2098,"children":2100},"code",{"className":2099},[],[2101],{"type":26,"value":2102},"risk_factor * wᵀΣw - μᵀw",{"type":26,"value":2104}," subject to ",{"type":21,"tag":2097,"props":2106,"children":2108},{"className":2107},[],[2109],{"type":26,"value":2110},"sum(w) == budget",{"type":26,"value":2112},", with each ",{"type":21,"tag":2097,"props":2114,"children":2116},{"className":2115},[],[2117],{"type":26,"value":2118},"w",{"type":26,"value":2120}," 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 easy to get wrong in a naive QAOA implementation.",{"type":21,"tag":29,"props":2122,"children":2124},{"id":2123},"three-solvers-run-side-by-side",[2125],{"type":26,"value":2126},"Three solvers, run side by side",{"type":21,"tag":22,"props":2128,"children":2129},{},[2130],{"type":26,"value":2131},"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":2133,"children":2134},{},[2135,2140],{"type":21,"tag":205,"props":2136,"children":2137},{},[2138],{"type":26,"value":2139},"Classical exact enumeration.",{"type":26,"value":2141}," 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":2143,"children":2144},{},[2145,2150,2152,2158,2160,2165],{"type":21,"tag":205,"props":2146,"children":2147},{},[2148],{"type":26,"value":2149},"Penalty-method QAOA.",{"type":26,"value":2151}," The standard textbook approach: convert the constrained problem to a QUBO via ",{"type":21,"tag":2097,"props":2153,"children":2155},{"className":2154},[],[2156],{"type":26,"value":2157},"QuadraticProgramToQubo",{"type":26,"value":2159},", encode it as an Ising Hamiltonian, run ",{"type":21,"tag":41,"props":2161,"children":2163},{"href":2162},"\u002Fglossary\u002Fqaoa",[2164],{"type":26,"value":2041},{"type":26,"value":2166},". 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":2168,"children":2169},{},[2170,2175,2177,2183,2185,2191,2193,2199],{"type":21,"tag":205,"props":2171,"children":2172},{},[2173],{"type":26,"value":2174},"Dicke-state \u002F XY-mixer QAOA.",{"type":26,"value":2176}," The constraint-preserving alternative. A Dicke-state initialization (built with a small ancilla \"running count\" register that provably lands on exactly ",{"type":21,"tag":2097,"props":2178,"children":2180},{"className":2179},[],[2181],{"type":26,"value":2182},"|budget⟩",{"type":26,"value":2184},") combined with an XY-mixer (",{"type":21,"tag":2097,"props":2186,"children":2188},{"className":2187},[],[2189],{"type":26,"value":2190},"RXX",{"type":26,"value":2192},"\u002F",{"type":21,"tag":2097,"props":2194,"children":2196},{"className":2195},[],[2197],{"type":26,"value":2198},"RYY",{"type":26,"value":2200}," 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":2202,"children":2203},{},[2204],{"type":26,"value":2205},"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":29,"props":2207,"children":2209},{"id":2208},"the-chart-thats-the-actual-deliverable",[2210],{"type":26,"value":2211},"The chart that's the actual deliverable",{"type":21,"tag":22,"props":2213,"children":2214},{},[2215],{"type":26,"value":2216},"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":2218,"props":2219,"children":2220},"blockquote",{},[2221],{"type":21,"tag":22,"props":2222,"children":2223},{},[2224,2226,2232],{"type":26,"value":2225},"Run the same request against a real IBM backend and chart result quality vs. gate count as you increase ",{"type":21,"tag":2097,"props":2227,"children":2229},{"className":2228},[],[2230],{"type":26,"value":2231},"reps",{"type":26,"value":2233},". This is the \"signal vs. noise crossover\" chart that's the actual deliverable for a business-case pitch.",{"type":21,"tag":22,"props":2235,"children":2236},{},[2237,2239,2245,2247,2253,2254,2260],{"type":26,"value":2238},"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":2097,"props":2240,"children":2242},{"className":2241},[],[2243],{"type":26,"value":2244},"pct_of_optimal",{"type":26,"value":2246},": 100% means it matched classical exactly), against how much circuit you had to run to get there (",{"type":21,"tag":2097,"props":2248,"children":2250},{"className":2249},[],[2251],{"type":26,"value":2252},"circuit_depth",{"type":26,"value":149},{"type":21,"tag":2097,"props":2255,"children":2257},{"className":2256},[],[2258],{"type":26,"value":2259},"two_qubit_gates",{"type":26,"value":2261},", both reported alongside every result). Run it on the simulator first, then on real hardware, and watch where the lines cross, or don't.",{"type":21,"tag":29,"props":2263,"children":2265},{"id":2264},"building-the-case-step-by-step",[2266],{"type":26,"value":2267},"Building the case, step by step",{"type":21,"tag":22,"props":2269,"children":2270},{},[2271,2276,2278,2283,2285,2291],{"type":21,"tag":205,"props":2272,"children":2273},{},[2274],{"type":26,"value":2275},"1. Cap your problem size honestly.",{"type":26,"value":2277}," PortfolioQ's own README recommends 10-30 assets for anything run on real hardware, and explains why: current ",{"type":21,"tag":41,"props":2279,"children":2280},{"href":442},[2281],{"type":26,"value":2282},"NISQ",{"type":26,"value":2284}," 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":2097,"props":2286,"children":2288},{"className":2287},[],[2289],{"type":26,"value":2290},"yfinance",{"type":26,"value":2292}," if you don't supply your own).",{"type":21,"tag":22,"props":2294,"children":2295},{},[2296,2301,2303,2309,2311,2317,2319,2325],{"type":21,"tag":205,"props":2297,"children":2298},{},[2299],{"type":26,"value":2300},"2. Establish the in-principle baseline on a simulator.",{"type":26,"value":2302}," Run ",{"type":21,"tag":2097,"props":2304,"children":2306},{"className":2305},[],[2307],{"type":26,"value":2308},"\u002Foptimize\u002Fcompare-all",{"type":26,"value":2310}," on ",{"type":21,"tag":2097,"props":2312,"children":2314},{"className":2313},[],[2315],{"type":26,"value":2316},"aer_simulator",{"type":26,"value":2318}," before touching real hardware. Check that ",{"type":21,"tag":2097,"props":2320,"children":2322},{"className":2321},[],[2323],{"type":26,"value":2324},"feasible_fraction",{"type":26,"value":2326}," 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":2328,"props":2329,"children":2333},"pre",{"className":2330,"code":2331,"language":2332,"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",[2334],{"type":21,"tag":2097,"props":2335,"children":2336},{"__ignoreMap":7},[2337,2349,2357,2419,2443,2465,2485,2506,2523],{"type":21,"tag":2338,"props":2339,"children":2342},"span",{"class":2340,"line":2341},"line",1,[2343],{"type":21,"tag":2338,"props":2344,"children":2346},{"style":2345},"--shiki-default:#E1E4E8",[2347],{"type":26,"value":2348},"POST \u002Foptimize\u002Fcompare-all\n",{"type":21,"tag":2338,"props":2350,"children":2351},{"class":2340,"line":173},[2352],{"type":21,"tag":2338,"props":2353,"children":2354},{"style":2345},[2355],{"type":26,"value":2356},"{\n",{"type":21,"tag":2338,"props":2358,"children":2360},{"class":2340,"line":2359},3,[2361,2367,2372,2378,2382,2387,2391,2396,2400,2405,2409,2414],{"type":21,"tag":2338,"props":2362,"children":2364},{"style":2363},"--shiki-default:#79B8FF",[2365],{"type":26,"value":2366},"  \"tickers\"",{"type":21,"tag":2338,"props":2368,"children":2369},{"style":2345},[2370],{"type":26,"value":2371},": [",{"type":21,"tag":2338,"props":2373,"children":2375},{"style":2374},"--shiki-default:#9ECBFF",[2376],{"type":26,"value":2377},"\"AAPL\"",{"type":21,"tag":2338,"props":2379,"children":2380},{"style":2345},[2381],{"type":26,"value":1375},{"type":21,"tag":2338,"props":2383,"children":2384},{"style":2374},[2385],{"type":26,"value":2386},"\"MSFT\"",{"type":21,"tag":2338,"props":2388,"children":2389},{"style":2345},[2390],{"type":26,"value":1375},{"type":21,"tag":2338,"props":2392,"children":2393},{"style":2374},[2394],{"type":26,"value":2395},"\"GOOGL\"",{"type":21,"tag":2338,"props":2397,"children":2398},{"style":2345},[2399],{"type":26,"value":1375},{"type":21,"tag":2338,"props":2401,"children":2402},{"style":2374},[2403],{"type":26,"value":2404},"\"AMZN\"",{"type":21,"tag":2338,"props":2406,"children":2407},{"style":2345},[2408],{"type":26,"value":1375},{"type":21,"tag":2338,"props":2410,"children":2411},{"style":2374},[2412],{"type":26,"value":2413},"\"NVDA\"",{"type":21,"tag":2338,"props":2415,"children":2416},{"style":2345},[2417],{"type":26,"value":2418},"],\n",{"type":21,"tag":2338,"props":2420,"children":2422},{"class":2340,"line":2421},4,[2423,2428,2433,2438],{"type":21,"tag":2338,"props":2424,"children":2425},{"style":2363},[2426],{"type":26,"value":2427},"  \"budget\"",{"type":21,"tag":2338,"props":2429,"children":2430},{"style":2345},[2431],{"type":26,"value":2432},": ",{"type":21,"tag":2338,"props":2434,"children":2435},{"style":2363},[2436],{"type":26,"value":2437},"2",{"type":21,"tag":2338,"props":2439,"children":2440},{"style":2345},[2441],{"type":26,"value":2442},",\n",{"type":21,"tag":2338,"props":2444,"children":2446},{"class":2340,"line":2445},5,[2447,2452,2456,2461],{"type":21,"tag":2338,"props":2448,"children":2449},{"style":2363},[2450],{"type":26,"value":2451},"  \"risk_factor\"",{"type":21,"tag":2338,"props":2453,"children":2454},{"style":2345},[2455],{"type":26,"value":2432},{"type":21,"tag":2338,"props":2457,"children":2458},{"style":2363},[2459],{"type":26,"value":2460},"0.5",{"type":21,"tag":2338,"props":2462,"children":2463},{"style":2345},[2464],{"type":26,"value":2442},{"type":21,"tag":2338,"props":2466,"children":2467},{"class":2340,"line":877},[2468,2473,2477,2481],{"type":21,"tag":2338,"props":2469,"children":2470},{"style":2363},[2471],{"type":26,"value":2472},"  \"reps\"",{"type":21,"tag":2338,"props":2474,"children":2475},{"style":2345},[2476],{"type":26,"value":2432},{"type":21,"tag":2338,"props":2478,"children":2479},{"style":2363},[2480],{"type":26,"value":2437},{"type":21,"tag":2338,"props":2482,"children":2483},{"style":2345},[2484],{"type":26,"value":2442},{"type":21,"tag":2338,"props":2486,"children":2487},{"class":2340,"line":196},[2488,2493,2497,2502],{"type":21,"tag":2338,"props":2489,"children":2490},{"style":2363},[2491],{"type":26,"value":2492},"  \"shots\"",{"type":21,"tag":2338,"props":2494,"children":2495},{"style":2345},[2496],{"type":26,"value":2432},{"type":21,"tag":2338,"props":2498,"children":2499},{"style":2363},[2500],{"type":26,"value":2501},"1024",{"type":21,"tag":2338,"props":2503,"children":2504},{"style":2345},[2505],{"type":26,"value":2442},{"type":21,"tag":2338,"props":2507,"children":2508},{"class":2340,"line":951},[2509,2514,2518],{"type":21,"tag":2338,"props":2510,"children":2511},{"style":2363},[2512],{"type":26,"value":2513},"  \"backend\"",{"type":21,"tag":2338,"props":2515,"children":2516},{"style":2345},[2517],{"type":26,"value":2432},{"type":21,"tag":2338,"props":2519,"children":2520},{"style":2374},[2521],{"type":26,"value":2522},"\"aer_simulator\"\n",{"type":21,"tag":2338,"props":2524,"children":2525},{"class":2340,"line":16},[2526],{"type":21,"tag":2338,"props":2527,"children":2528},{"style":2345},[2529],{"type":26,"value":2530},"}\n",{"type":21,"tag":22,"props":2532,"children":2533},{},[2534,2545,2547,2553,2555,2561,2563,2568,2570,2575,2577,2583,2584,2589,2591,2596,2598,2603,2605,2611,2613,2619,2621,2627],{"type":21,"tag":205,"props":2535,"children":2536},{},[2537,2539,2544],{"type":26,"value":2538},"3. Move to real hardware and vary ",{"type":21,"tag":2097,"props":2540,"children":2542},{"className":2541},[],[2543],{"type":26,"value":2231},{"type":26,"value":825},{"type":26,"value":2546}," This is where the actual data comes from. Point ",{"type":21,"tag":2097,"props":2548,"children":2550},{"className":2549},[],[2551],{"type":26,"value":2552},"\"backend\"",{"type":26,"value":2554}," at a real device (",{"type":21,"tag":2097,"props":2556,"children":2558},{"className":2557},[],[2559],{"type":26,"value":2560},"\"ibm_torino\"",{"type":26,"value":2562},", for example. See our ",{"type":21,"tag":41,"props":2564,"children":2565},{"href":316},[2566],{"type":26,"value":2567},"IBM Quantum free tier guide",{"type":26,"value":2569}," if you don't have hardware access set up yet) and rerun the same comparison as you increase ",{"type":21,"tag":2097,"props":2571,"children":2573},{"className":2572},[],[2574],{"type":26,"value":2231},{"type":26,"value":2576},". ",{"type":21,"tag":2097,"props":2578,"children":2580},{"className":2579},[],[2581],{"type":26,"value":2582},"qaoa_xy_pct_of_optimal",{"type":26,"value":149},{"type":21,"tag":2097,"props":2585,"children":2587},{"className":2586},[],[2588],{"type":26,"value":2259},{"type":26,"value":2590}," climbing together across a handful of ",{"type":21,"tag":2097,"props":2592,"children":2594},{"className":2593},[],[2595],{"type":26,"value":2231},{"type":26,"value":2597}," values ",{"type":21,"tag":2071,"props":2599,"children":2600},{},[2601],{"type":26,"value":2602},"is",{"type":26,"value":2604}," the chart. Because each COBYLA iteration blocks on a real hardware job, use PortfolioQ's async ",{"type":21,"tag":2097,"props":2606,"children":2608},{"className":2607},[],[2609],{"type":26,"value":2610},"\u002Fsubmit",{"type":26,"value":2612}," + ",{"type":21,"tag":2097,"props":2614,"children":2616},{"className":2615},[],[2617],{"type":26,"value":2618},"\u002Fjobs\u002F{id}",{"type":26,"value":2620}," endpoints rather than the blocking ones. A ",{"type":21,"tag":2097,"props":2622,"children":2624},{"className":2623},[],[2625],{"type":26,"value":2626},"maxiter",{"type":26,"value":2628}," 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":2630,"children":2631},{},[2632,2637,2639,2644],{"type":21,"tag":205,"props":2633,"children":2634},{},[2635],{"type":26,"value":2636},"4. Report the noise honestly, including where it breaks the guarantee.",{"type":26,"value":2638}," Expect ",{"type":21,"tag":2097,"props":2640,"children":2642},{"className":2641},[],[2643],{"type":26,"value":2324},{"type":26,"value":2645}," 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":2647,"children":2648},{},[2649,2654],{"type":21,"tag":205,"props":2650,"children":2651},{},[2652],{"type":26,"value":2653},"5. Write the recommendation the data supports.",{"type":26,"value":2655}," 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 fast, 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":29,"props":2657,"children":2659},{"id":2658},"what-this-template-generalizes-to",[2660],{"type":26,"value":2661},"What this template generalizes to",{"type":21,"tag":22,"props":2663,"children":2664},{},[2665,2667,2672],{"type":26,"value":2666},"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":41,"props":2668,"children":2669},{"href":2052},[2670],{"type":26,"value":2671},"QAOA tutorial",{"type":26,"value":2673},". 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":2675,"children":2676},{},[2677,2679,2685,2687,2693,2695,2701,2703,2709],{"type":26,"value":2678},"If you want to see this pattern extended, PortfolioQ's ",{"type":21,"tag":41,"props":2680,"children":2682},{"href":2063,"rel":2681},[963],[2683],{"type":26,"value":2684},"source on GitHub",{"type":26,"value":2686}," is small enough to read end to end in an afternoon: ",{"type":21,"tag":2097,"props":2688,"children":2690},{"className":2689},[],[2691],{"type":26,"value":2692},"portfolio.py",{"type":26,"value":2694}," for the QUBO construction, ",{"type":21,"tag":2097,"props":2696,"children":2698},{"className":2697},[],[2699],{"type":26,"value":2700},"xy_mixer_solver.py",{"type":26,"value":2702}," for the constraint-preserving ansatz, and ",{"type":21,"tag":2097,"props":2704,"children":2706},{"className":2705},[],[2707],{"type":26,"value":2708},"main.py",{"type":26,"value":2710}," 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":2712,"props":2713,"children":2714},"style",{},[2715],{"type":26,"value":2716},"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":173,"depth":173,"links":2718},[2719,2720,2721,2722,2723],{"id":2080,"depth":173,"text":2083},{"id":2123,"depth":173,"text":2126},{"id":2208,"depth":173,"text":2211},{"id":2264,"depth":173,"text":2267},{"id":2658,"depth":173,"text":2661},"content:blog:quantum-portfolio-optimization-business-case.md","blog\u002Fquantum-portfolio-optimization-business-case.md","blog\u002Fquantum-portfolio-optimization-business-case",{"_path":2728,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":2729,"description":2730,"date":10,"author":11,"tags":2731,"readingTime":196,"body":2732,"_type":180,"_id":2876,"_source":182,"_file":2877,"_stem":2878,"_extension":185},"\u002Fblog\u002Fsaxon-q-room-temperature-diamond-quantum-computer","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.",[14,13],{"type":18,"children":2733,"toc":2870},[2734,2755,2760,2766,2780,2785,2791,2803,2808,2814,2826,2831,2837,2849,2865],{"type":21,"tag":22,"props":2735,"children":2736},{},[2737,2739,2745,2746,2753],{"type":26,"value":2738},"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":41,"props":2740,"children":2743},{"href":2741,"rel":2742},"https:\u002F\u002Fthequantuminsider.com\u002F2026\u002F07\u002F21\u002Fsaxon-q-diamond-nv-center-quantum-computers\u002F",[963],[2744],{"type":26,"value":966},{"type":26,"value":149},{"type":21,"tag":41,"props":2747,"children":2750},{"href":2748,"rel":2749},"https:\u002F\u002Fwww.hpcwire.com\u002Foff-the-wire\u002Fsaxon-q-brings-room-temperature-diamond-quantum-computing-to-commercial-market\u002F",[963],[2751],{"type":26,"value":2752},"HPCwire",{"type":26,"value":2754},". 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":2756,"children":2757},{},[2758],{"type":26,"value":2759},"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":29,"props":2761,"children":2763},{"id":2762},"what-saxon-q-built",[2764],{"type":26,"value":2765},"What SAXON Q built",{"type":21,"tag":22,"props":2767,"children":2768},{},[2769,2771,2778],{"type":26,"value":2770},"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":41,"props":2772,"children":2775},{"href":2773,"rel":2774},"https:\u002F\u002Fwww.saxonq.com\u002Fen\u002Funternehmen\u002F",[963],[2776],{"type":26,"value":2777},"the company's own site",{"type":26,"value":2779},", alongside co-founders Jan Meijer (CTO) and Bernd Burchard (CIPO).",{"type":21,"tag":22,"props":2781,"children":2782},{},[2783],{"type":26,"value":2784},"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":29,"props":2786,"children":2788},{"id":2787},"what-an-nv-center-is",[2789],{"type":26,"value":2790},"What an NV center is",{"type":21,"tag":22,"props":2792,"children":2793},{},[2794,2796,2801],{"type":26,"value":2795},"A nitrogen-vacancy center is a specific defect in a diamond's carbon lattice: a nitrogen atom sits next 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":41,"props":2797,"children":2798},{"href":1260},[2799],{"type":26,"value":2800},"qubit",{"type":26,"value":2802}," 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":2804,"children":2805},{},[2806],{"type":26,"value":2807},"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":29,"props":2809,"children":2811},{"id":2810},"what-to-treat-as-unverified",[2812],{"type":26,"value":2813},"What to treat as unverified",{"type":21,"tag":22,"props":2815,"children":2816},{},[2817,2819,2824],{"type":26,"value":2818},"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":41,"props":2820,"children":2821},{"href":1084},[2822],{"type":26,"value":2823},"self-operating silicon processor",{"type":26,"value":2825}," 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":2827,"children":2828},{},[2829],{"type":26,"value":2830},"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":29,"props":2832,"children":2834},{"id":2833},"where-room-temperature-qubits-fit-against-everything-else",[2835],{"type":26,"value":2836},"Where room-temperature qubits fit against everything else",{"type":21,"tag":22,"props":2838,"children":2839},{},[2840,2842,2847],{"type":26,"value":2841},"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":41,"props":2843,"children":2844},{"href":739},[2845],{"type":26,"value":2846},"independently scrutinized results",{"type":26,"value":2848}," that NV-center systems do not yet have.",{"type":21,"tag":22,"props":2850,"children":2851},{},[2852,2854,2858,2859,2863],{"type":26,"value":2853},"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":41,"props":2855,"children":2856},{"href":144},[2857],{"type":26,"value":147},{"type":26,"value":149},{"type":21,"tag":41,"props":2860,"children":2861},{"href":152},[2862],{"type":26,"value":155},{"type":26,"value":2864}," track how each modality trades those priorities differently.",{"type":21,"tag":22,"props":2866,"children":2867},{},[2868],{"type":26,"value":2869},"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":173,"depth":173,"links":2871},[2872,2873,2874,2875],{"id":2762,"depth":173,"text":2765},{"id":2787,"depth":173,"text":2790},{"id":2810,"depth":173,"text":2813},{"id":2833,"depth":173,"text":2836},"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":1158,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":2880,"description":2881,"date":10,"author":11,"tags":2882,"readingTime":877,"body":2884,"_type":180,"_id":2966,"_source":182,"_file":2967,"_stem":2968,"_extension":185},"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.",[14,13,2883],"Fundamentals",{"type":18,"children":2885,"toc":2961},[2886,2891,2897,2902,2921,2927,2939,2944,2950],{"type":21,"tag":22,"props":2887,"children":2888},{},[2889],{"type":26,"value":2890},"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 next 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":29,"props":2892,"children":2894},{"id":2893},"what-a-phononic-link-is",[2895],{"type":26,"value":2896},"What a phononic link is",{"type":21,"tag":22,"props":2898,"children":2899},{},[2900],{"type":26,"value":2901},"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":2903,"children":2904},{},[2905,2907,2912,2914,2919],{"type":26,"value":2906},"That distance matters. Nearest-neighbor-only connectivity is exactly the constraint that shapes which ",{"type":21,"tag":41,"props":2908,"children":2909},{"href":993},[2910],{"type":26,"value":2911},"error-correcting codes",{"type":26,"value":2913}," a chip even attempts. Our ",{"type":21,"tag":41,"props":2915,"children":2916},{"href":166},[2917],{"type":26,"value":2918},"companion piece on Quantinuum's Helios",{"type":26,"value":2920}," covers why trapped-ion hardware's all-to-all connectivity opens up error-correction codes that a nearest-neighbor superconducting chip cannot use efficiently. A phononic link aimed at chip-scale, non-local connectivity is targeting the same structural limitation from the silicon side.",{"type":21,"tag":29,"props":2922,"children":2924},{"id":2923},"read-the-maturity-level-accurately",[2925],{"type":26,"value":2926},"Read the maturity level accurately",{"type":21,"tag":22,"props":2928,"children":2929},{},[2930,2932,2937],{"type":26,"value":2931},"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":41,"props":2933,"children":2934},{"href":1084},[2935],{"type":26,"value":2936},"HRL's self-operating silicon processor",{"type":26,"value":2938},", 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":2940,"children":2941},{},[2942],{"type":26,"value":2943},"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":29,"props":2945,"children":2947},{"id":2946},"why-the-target-size-is-the-real-headline",[2948],{"type":26,"value":2949},"Why the target size is the real headline",{"type":21,"tag":22,"props":2951,"children":2952},{},[2953,2955,2959],{"type":26,"value":2954},"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 problem 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 result earns a place next to HRL's on the list of things that shipped. See our ",{"type":21,"tag":41,"props":2956,"children":2957},{"href":144},[2958],{"type":26,"value":147},{"type":26,"value":2960}," for how silicon-based approaches compare to the rest of the field.",{"title":7,"searchDepth":173,"depth":173,"links":2962},[2963,2964,2965],{"id":2893,"depth":173,"text":2896},{"id":2923,"depth":173,"text":2926},{"id":2946,"depth":173,"text":2949},"content:blog:warwick-quantum-phononic-links.md","blog\u002Fwarwick-quantum-phononic-links.md","blog\u002Fwarwick-quantum-phononic-links",{"_path":2970,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":2971,"description":2972,"date":10,"author":11,"tags":2973,"readingTime":196,"body":2974,"_type":180,"_id":3074,"_source":182,"_file":3075,"_stem":3076,"_extension":185},"\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.",[14,13,195],{"type":18,"children":2975,"toc":3069},[2976,2996,3007,3013,3025,3030,3036,3041,3046,3052,3057],{"type":21,"tag":22,"props":2977,"children":2978},{},[2979,2981,2987,2988,2994],{"type":26,"value":2980},"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":41,"props":2982,"children":2985},{"href":2983,"rel":2984},"https:\u002F\u002Fthequantuminsider.com\u002F2026\u002F07\u002F28\u002Fzuriq-raises-25-5-million-2d-trapped-ion-quantum-processors\u002F",[963],[2986],{"type":26,"value":966},{"type":26,"value":149},{"type":21,"tag":41,"props":2989,"children":2992},{"href":2990,"rel":2991},"https:\u002F\u002Fsiliconangle.com\u002F2026\u002F07\u002F28\u002Fquantum-computing-startup-zuriq-gets-25-5m-scale-2d-trapped-ion-processor-design\u002F",[963],[2993],{"type":26,"value":1389},{"type":26,"value":2995},". 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":2997,"children":2998},{},[2999,3001,3005],{"type":26,"value":3000},"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":41,"props":3002,"children":3003},{"href":144},[3004],{"type":26,"value":1992},{"type":26,"value":3006}," quantum computer, a linear chain of ions connected through junctions, runs into a scaling wall that a two-dimensional layout avoids.",{"type":21,"tag":29,"props":3008,"children":3010},{"id":3009},"why-linear-chains-are-the-default-and-why-they-cap-out",[3011],{"type":26,"value":3012},"Why linear chains are the default and why they cap out",{"type":21,"tag":22,"props":3014,"children":3015},{},[3016,3018,3023],{"type":26,"value":3017},"IonQ and Quantinuum, ",{"type":21,"tag":41,"props":3019,"children":3020},{"href":1606},[3021],{"type":26,"value":3022},"the two companies furthest along commercially",{"type":26,"value":3024}," with trapped ions, both build on one-dimensional ion chains. Ions sit in a line inside a trap, and moving ions between different 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":3026,"children":3027},{},[3028],{"type":26,"value":3029},"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":29,"props":3031,"children":3033},{"id":3032},"what-has-been-built-so-far",[3034],{"type":26,"value":3035},"What has been built so far",{"type":21,"tag":22,"props":3037,"children":3038},{},[3039],{"type":26,"value":3040},"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":3042,"children":3043},{},[3044],{"type":26,"value":3045},"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":29,"props":3047,"children":3049},{"id":3048},"what-this-does-and-does-not-tell-you",[3050],{"type":26,"value":3051},"What this does and does not tell you",{"type":21,"tag":22,"props":3053,"children":3054},{},[3055],{"type":26,"value":3056},"This is a seed-stage company with a nine-qubit demonstrator, not a commercial system. The claims about how the architecture scales are ZuriQ's own projections, not measured results at any meaningful qubit count. What makes it worth tracking rather than dismissing is the specificity: 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":3058,"children":3059},{},[3060,3062,3067],{"type":26,"value":3061},"If ZuriQ's 2D architecture scales the way it projects, it would address one of the structural bottlenecks in ",{"type":21,"tag":41,"props":3063,"children":3064},{"href":922},[3065],{"type":26,"value":3066},"trapped-ion scaling",{"type":26,"value":3068}," 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":173,"depth":173,"links":3070},[3071,3072,3073],{"id":3009,"depth":173,"text":3012},{"id":3032,"depth":173,"text":3035},{"id":3048,"depth":173,"text":3051},"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":3078,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":3079,"description":3080,"date":3081,"author":11,"tags":3082,"readingTime":951,"body":3084,"_type":180,"_id":4003,"_source":182,"_file":4004,"_stem":4005,"_extension":185},"\u002Fde\u002Fblog\u002Fquantum-benchmarking-eo-14413","Was die neue Quanten-Executive-Order über die wahren Probleme des Feldes verrät","Liest man EO 14413 als technisches statt als politisches Dokument, wird daraus eine offene Liste dessen, was das Quantencomputing noch nicht gelöst hat — angefangen damit, dass niemand zuverlässig messen kann, wie gut ein Quantencomputer ist.","2026-07-18",[13,14,3083],"Performance",{"type":18,"children":3085,"toc":3994},[3086,3098,3103,3108,3114,3119,3131,3136,3195,3200,3205,3709,3734,3740,3745,3750,3771,3783,3789,3801,3806,3832,3837,3843,3848,3853,3874,3880,3885,3890,3911,3917,3929,3934,3940,3945,3973,3978,3990],{"type":21,"tag":22,"props":3087,"children":3088},{},[3089,3091,3096],{"type":26,"value":3090},"Am 22. Juni 2026 wurde die Executive Order 14413 — ",{"type":21,"tag":2071,"props":3092,"children":3093},{},[3094],{"type":26,"value":3095},"Ushering in the Next Frontier of Quantum Innovation",{"type":26,"value":3097}," — unterzeichnet. Die Berichterstattung darüber drehte sich fast ausschließlich um die Politik.",{"type":21,"tag":22,"props":3099,"children":3100},{},[3101],{"type":26,"value":3102},"Das ist schade, denn die interessantere Lesart ist die technische. Politikdokumente dieser Art entstehen unter starker Mitwirkung von Leuten, die Quantenprogramme leiten, und das, was sie einfordern, ist eine ziemlich offene Landkarte dessen, was das Feld immer noch nicht kann. Liest man sie so, ist EO 14413 weniger eine Ankündigung als eine Problemliste.",{"type":21,"tag":22,"props":3104,"children":3105},{},[3106],{"type":26,"value":3107},"Das sind die Punkte, die herausstechen.",{"type":21,"tag":29,"props":3109,"children":3111},{"id":3110},"niemand-kann-zuverlässig-messen-wie-gut-ein-quantencomputer-ist",[3112],{"type":26,"value":3113},"Niemand kann zuverlässig messen, wie gut ein Quantencomputer ist",{"type":21,"tag":22,"props":3115,"children":3116},{},[3117],{"type":26,"value":3118},"Die unauffällig bemerkenswerteste Zeile der Order weist das Department of Energy an, innerhalb von 180 Tagen \"a national center to develop the tools and capabilities required to accurately assess the performance of quantum computing systems\" einzurichten.",{"type":21,"tag":22,"props":3120,"children":3121},{},[3122,3124,3129],{"type":26,"value":3123},"Lass das kurz wirken. Rund fünfundvierzig Jahre nachdem Feynman Quantencomputer vorschlug und sieben Jahre nach dem ersten Anspruch auf Quantenüberlegenheit stellt eine Regierung eine Institution auf die Beine, weil wir keine vertrauenswürdige Methode haben, die Frage ",{"type":21,"tag":2071,"props":3125,"children":3126},{},[3127],{"type":26,"value":3128},"\"ist dieser Quantencomputer eigentlich gut?\"",{"type":26,"value":3130}," zu beantworten.",{"type":21,"tag":22,"props":3132,"children":3133},{},[3134],{"type":26,"value":3135},"Das ist kein bürokratisches Geräusper. Es ist ein echtes Problem, und jeder, der schon einmal zwei QPUs vergleichen wollte, ist darauf gestoßen. Die Schwierigkeit: Jeder Anbieter berichtet andere Zahlen.",{"type":21,"tag":3137,"props":3138,"children":3139},"ul",{},[3140,3151,3165,3175,3185],{"type":21,"tag":3141,"props":3142,"children":3143},"li",{},[3144,3149],{"type":21,"tag":205,"props":3145,"children":3146},{},[3147],{"type":26,"value":3148},"Die Qubit-Anzahl",{"type":26,"value":3150}," ist für sich genommen nahezu bedeutungslos. Hundert schlechte Qubits können für echte Arbeit schlechter sein als zwanzig gute.",{"type":21,"tag":3141,"props":3152,"children":3153},{},[3154,3163],{"type":21,"tag":205,"props":3155,"children":3156},{},[3157],{"type":21,"tag":41,"props":3158,"children":3160},{"href":3159},"\u002Fglossary\u002Fquantum-volume",[3161],{"type":26,"value":3162},"Quantum Volume",{"type":26,"value":3164}," bündelt Qubit-Anzahl, Konnektivität und Fehlerraten in einer einzigen Kennzahl — aber sie sättigt, und sie sagt wenig darüber aus, wie ein Gerät mit genau den Schaltkreisen umgeht, die dich interessieren.",{"type":21,"tag":3141,"props":3166,"children":3167},{},[3168,3173],{"type":21,"tag":205,"props":3169,"children":3170},{},[3171],{"type":26,"value":3172},"Die Gattertreue",{"type":26,"value":3174}," wird meist für isolierte Ein- und Zwei-Qubit-Gatter angegeben, was einen Chip systematisch schmeichelhaft darstellt. Fehler akkumulieren anders, wenn Gatter parallel laufen, und Übersprechen taucht in der Schlagzeilenzahl nicht auf.",{"type":21,"tag":3141,"props":3176,"children":3177},{},[3178,3183],{"type":21,"tag":205,"props":3179,"children":3180},{},[3181],{"type":26,"value":3182},"CLOPS",{"type":26,"value":3184}," und ähnliche Durchsatzmetriken messen Geschwindigkeit, nicht Genauigkeit — eine schnelle Maschine, die Rauschen zurückgibt, ist nicht nützlich.",{"type":21,"tag":3141,"props":3186,"children":3187},{},[3188,3193],{"type":21,"tag":205,"props":3189,"children":3190},{},[3191],{"type":26,"value":3192},"\"Algorithmische Qubits\"",{"type":26,"value":3194}," und andere herstellerdefinierte Metriken sind zwischen Anbietern nicht vergleichbar, was häufig genau der Zweck ist.",{"type":21,"tag":22,"props":3196,"children":3197},{},[3198],{"type":26,"value":3199},"Die Order fordert außerdem einen Mechanismus zum Informationsaustausch zwischen Behörden, \"to improve the Government's ability to assess commercial quantum computing capabilities\" — eine höfliche Umschreibung dafür, dass Marketingaussagen der Hersteller derzeit schwer unabhängig zu überprüfen sind.",{"type":21,"tag":22,"props":3201,"children":3202},{},[3203],{"type":26,"value":3204},"Wenn du selbst Hardware bewertest, lautet die praktische Lehre: Vertraue keiner einzelnen Zahl mehr und benchmarke gegen deine eigene Arbeitslast. Du kannst echte Geräteeigenschaften direkt abrufen, statt dich auf eine Pressemitteilung zu verlassen:",{"type":21,"tag":2328,"props":3206,"children":3210},{"className":3207,"code":3208,"language":3209,"meta":7,"style":7},"language-python shiki shiki-themes github-dark","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","python",[3211],{"type":21,"tag":2097,"props":3212,"children":3213},{"__ignoreMap":7},[3214,3238,3247,3265,3320,3327,3374,3415,3456,3463,3473,3491,3533,3581,3623],{"type":21,"tag":2338,"props":3215,"children":3216},{"class":2340,"line":2341},[3217,3223,3228,3233],{"type":21,"tag":2338,"props":3218,"children":3220},{"style":3219},"--shiki-default:#F97583",[3221],{"type":26,"value":3222},"from",{"type":21,"tag":2338,"props":3224,"children":3225},{"style":2345},[3226],{"type":26,"value":3227}," qiskit_ibm_runtime ",{"type":21,"tag":2338,"props":3229,"children":3230},{"style":3219},[3231],{"type":26,"value":3232},"import",{"type":21,"tag":2338,"props":3234,"children":3235},{"style":2345},[3236],{"type":26,"value":3237}," QiskitRuntimeService\n",{"type":21,"tag":2338,"props":3239,"children":3240},{"class":2340,"line":173},[3241],{"type":21,"tag":2338,"props":3242,"children":3244},{"emptyLinePlaceholder":3243},true,[3245],{"type":26,"value":3246},"\n",{"type":21,"tag":2338,"props":3248,"children":3249},{"class":2340,"line":2359},[3250,3255,3260],{"type":21,"tag":2338,"props":3251,"children":3252},{"style":2345},[3253],{"type":26,"value":3254},"service ",{"type":21,"tag":2338,"props":3256,"children":3257},{"style":3219},[3258],{"type":26,"value":3259},"=",{"type":21,"tag":2338,"props":3261,"children":3262},{"style":2345},[3263],{"type":26,"value":3264}," QiskitRuntimeService()\n",{"type":21,"tag":2338,"props":3266,"children":3267},{"class":2340,"line":2421},[3268,3273,3277,3282,3288,3292,3297,3301,3306,3310,3315],{"type":21,"tag":2338,"props":3269,"children":3270},{"style":2345},[3271],{"type":26,"value":3272},"backend ",{"type":21,"tag":2338,"props":3274,"children":3275},{"style":3219},[3276],{"type":26,"value":3259},{"type":21,"tag":2338,"props":3278,"children":3279},{"style":2345},[3280],{"type":26,"value":3281}," service.least_busy(",{"type":21,"tag":2338,"props":3283,"children":3285},{"style":3284},"--shiki-default:#FFAB70",[3286],{"type":26,"value":3287},"operational",{"type":21,"tag":2338,"props":3289,"children":3290},{"style":3219},[3291],{"type":26,"value":3259},{"type":21,"tag":2338,"props":3293,"children":3294},{"style":2363},[3295],{"type":26,"value":3296},"True",{"type":21,"tag":2338,"props":3298,"children":3299},{"style":2345},[3300],{"type":26,"value":1375},{"type":21,"tag":2338,"props":3302,"children":3303},{"style":3284},[3304],{"type":26,"value":3305},"simulator",{"type":21,"tag":2338,"props":3307,"children":3308},{"style":3219},[3309],{"type":26,"value":3259},{"type":21,"tag":2338,"props":3311,"children":3312},{"style":2363},[3313],{"type":26,"value":3314},"False",{"type":21,"tag":2338,"props":3316,"children":3317},{"style":2345},[3318],{"type":26,"value":3319},")\n",{"type":21,"tag":2338,"props":3321,"children":3322},{"class":2340,"line":2445},[3323],{"type":21,"tag":2338,"props":3324,"children":3325},{"emptyLinePlaceholder":3243},[3326],{"type":26,"value":3246},{"type":21,"tag":2338,"props":3328,"children":3329},{"class":2340,"line":877},[3330,3335,3340,3345,3350,3355,3360,3365,3370],{"type":21,"tag":2338,"props":3331,"children":3332},{"style":2363},[3333],{"type":26,"value":3334},"print",{"type":21,"tag":2338,"props":3336,"children":3337},{"style":2345},[3338],{"type":26,"value":3339},"(",{"type":21,"tag":2338,"props":3341,"children":3342},{"style":3219},[3343],{"type":26,"value":3344},"f",{"type":21,"tag":2338,"props":3346,"children":3347},{"style":2374},[3348],{"type":26,"value":3349},"\"Backend:  ",{"type":21,"tag":2338,"props":3351,"children":3352},{"style":2363},[3353],{"type":26,"value":3354},"{",{"type":21,"tag":2338,"props":3356,"children":3357},{"style":2345},[3358],{"type":26,"value":3359},"backend.name",{"type":21,"tag":2338,"props":3361,"children":3362},{"style":2363},[3363],{"type":26,"value":3364},"}",{"type":21,"tag":2338,"props":3366,"children":3367},{"style":2374},[3368],{"type":26,"value":3369},"\"",{"type":21,"tag":2338,"props":3371,"children":3372},{"style":2345},[3373],{"type":26,"value":3319},{"type":21,"tag":2338,"props":3375,"children":3376},{"class":2340,"line":196},[3377,3381,3385,3389,3394,3398,3403,3407,3411],{"type":21,"tag":2338,"props":3378,"children":3379},{"style":2363},[3380],{"type":26,"value":3334},{"type":21,"tag":2338,"props":3382,"children":3383},{"style":2345},[3384],{"type":26,"value":3339},{"type":21,"tag":2338,"props":3386,"children":3387},{"style":3219},[3388],{"type":26,"value":3344},{"type":21,"tag":2338,"props":3390,"children":3391},{"style":2374},[3392],{"type":26,"value":3393},"\"Qubits:   ",{"type":21,"tag":2338,"props":3395,"children":3396},{"style":2363},[3397],{"type":26,"value":3354},{"type":21,"tag":2338,"props":3399,"children":3400},{"style":2345},[3401],{"type":26,"value":3402},"backend.num_qubits",{"type":21,"tag":2338,"props":3404,"children":3405},{"style":2363},[3406],{"type":26,"value":3364},{"type":21,"tag":2338,"props":3408,"children":3409},{"style":2374},[3410],{"type":26,"value":3369},{"type":21,"tag":2338,"props":3412,"children":3413},{"style":2345},[3414],{"type":26,"value":3319},{"type":21,"tag":2338,"props":3416,"children":3417},{"class":2340,"line":951},[3418,3422,3426,3430,3435,3439,3444,3448,3452],{"type":21,"tag":2338,"props":3419,"children":3420},{"style":2363},[3421],{"type":26,"value":3334},{"type":21,"tag":2338,"props":3423,"children":3424},{"style":2345},[3425],{"type":26,"value":3339},{"type":21,"tag":2338,"props":3427,"children":3428},{"style":3219},[3429],{"type":26,"value":3344},{"type":21,"tag":2338,"props":3431,"children":3432},{"style":2374},[3433],{"type":26,"value":3434},"\"Basis:    ",{"type":21,"tag":2338,"props":3436,"children":3437},{"style":2363},[3438],{"type":26,"value":3354},{"type":21,"tag":2338,"props":3440,"children":3441},{"style":2345},[3442],{"type":26,"value":3443},"backend.basis_gates",{"type":21,"tag":2338,"props":3445,"children":3446},{"style":2363},[3447],{"type":26,"value":3364},{"type":21,"tag":2338,"props":3449,"children":3450},{"style":2374},[3451],{"type":26,"value":3369},{"type":21,"tag":2338,"props":3453,"children":3454},{"style":2345},[3455],{"type":26,"value":3319},{"type":21,"tag":2338,"props":3457,"children":3458},{"class":2340,"line":16},[3459],{"type":21,"tag":2338,"props":3460,"children":3461},{"emptyLinePlaceholder":3243},[3462],{"type":26,"value":3246},{"type":21,"tag":2338,"props":3464,"children":3466},{"class":2340,"line":3465},10,[3467],{"type":21,"tag":2338,"props":3468,"children":3470},{"style":3469},"--shiki-default:#6A737D",[3471],{"type":26,"value":3472},"# Per-qubit error rates vary enormously across a single chip\n",{"type":21,"tag":2338,"props":3474,"children":3476},{"class":2340,"line":3475},11,[3477,3482,3486],{"type":21,"tag":2338,"props":3478,"children":3479},{"style":2345},[3480],{"type":26,"value":3481},"props ",{"type":21,"tag":2338,"props":3483,"children":3484},{"style":3219},[3485],{"type":26,"value":3259},{"type":21,"tag":2338,"props":3487,"children":3488},{"style":2345},[3489],{"type":26,"value":3490}," backend.properties()\n",{"type":21,"tag":2338,"props":3492,"children":3493},{"class":2340,"line":500},[3494,3499,3503,3508,3513,3518,3523,3528],{"type":21,"tag":2338,"props":3495,"children":3496},{"style":2345},[3497],{"type":26,"value":3498},"errors ",{"type":21,"tag":2338,"props":3500,"children":3501},{"style":3219},[3502],{"type":26,"value":3259},{"type":21,"tag":2338,"props":3504,"children":3505},{"style":2345},[3506],{"type":26,"value":3507}," [(q, props.readout_error(q)) ",{"type":21,"tag":2338,"props":3509,"children":3510},{"style":3219},[3511],{"type":26,"value":3512},"for",{"type":21,"tag":2338,"props":3514,"children":3515},{"style":2345},[3516],{"type":26,"value":3517}," q ",{"type":21,"tag":2338,"props":3519,"children":3520},{"style":3219},[3521],{"type":26,"value":3522},"in",{"type":21,"tag":2338,"props":3524,"children":3525},{"style":2363},[3526],{"type":26,"value":3527}," range",{"type":21,"tag":2338,"props":3529,"children":3530},{"style":2345},[3531],{"type":26,"value":3532},"(backend.num_qubits)]\n",{"type":21,"tag":2338,"props":3534,"children":3536},{"class":2340,"line":3535},13,[3537,3542,3546,3551,3556,3561,3566,3571,3576],{"type":21,"tag":2338,"props":3538,"children":3539},{"style":2345},[3540],{"type":26,"value":3541},"worst ",{"type":21,"tag":2338,"props":3543,"children":3544},{"style":3219},[3545],{"type":26,"value":3259},{"type":21,"tag":2338,"props":3547,"children":3548},{"style":2363},[3549],{"type":26,"value":3550}," max",{"type":21,"tag":2338,"props":3552,"children":3553},{"style":2345},[3554],{"type":26,"value":3555},"(errors, ",{"type":21,"tag":2338,"props":3557,"children":3558},{"style":3284},[3559],{"type":26,"value":3560},"key",{"type":21,"tag":2338,"props":3562,"children":3563},{"style":3219},[3564],{"type":26,"value":3565},"=lambda",{"type":21,"tag":2338,"props":3567,"children":3568},{"style":2345},[3569],{"type":26,"value":3570}," x: x[",{"type":21,"tag":2338,"props":3572,"children":3573},{"style":2363},[3574],{"type":26,"value":3575},"1",{"type":21,"tag":2338,"props":3577,"children":3578},{"style":2345},[3579],{"type":26,"value":3580},"])\n",{"type":21,"tag":2338,"props":3582,"children":3584},{"class":2340,"line":3583},14,[3585,3590,3594,3599,3603,3607,3611,3615,3619],{"type":21,"tag":2338,"props":3586,"children":3587},{"style":2345},[3588],{"type":26,"value":3589},"best ",{"type":21,"tag":2338,"props":3591,"children":3592},{"style":3219},[3593],{"type":26,"value":3259},{"type":21,"tag":2338,"props":3595,"children":3596},{"style":2363},[3597],{"type":26,"value":3598}," min",{"type":21,"tag":2338,"props":3600,"children":3601},{"style":2345},[3602],{"type":26,"value":3555},{"type":21,"tag":2338,"props":3604,"children":3605},{"style":3284},[3606],{"type":26,"value":3560},{"type":21,"tag":2338,"props":3608,"children":3609},{"style":3219},[3610],{"type":26,"value":3565},{"type":21,"tag":2338,"props":3612,"children":3613},{"style":2345},[3614],{"type":26,"value":3570},{"type":21,"tag":2338,"props":3616,"children":3617},{"style":2363},[3618],{"type":26,"value":3575},{"type":21,"tag":2338,"props":3620,"children":3621},{"style":2345},[3622],{"type":26,"value":3580},{"type":21,"tag":2338,"props":3624,"children":3626},{"class":2340,"line":3625},15,[3627,3631,3635,3639,3644,3648,3653,3657,3662,3667,3671,3676,3680,3685,3689,3693,3697,3701,3705],{"type":21,"tag":2338,"props":3628,"children":3629},{"style":2363},[3630],{"type":26,"value":3334},{"type":21,"tag":2338,"props":3632,"children":3633},{"style":2345},[3634],{"type":26,"value":3339},{"type":21,"tag":2338,"props":3636,"children":3637},{"style":3219},[3638],{"type":26,"value":3344},{"type":21,"tag":2338,"props":3640,"children":3641},{"style":2374},[3642],{"type":26,"value":3643},"\"Readout error — best qubit: ",{"type":21,"tag":2338,"props":3645,"children":3646},{"style":2363},[3647],{"type":26,"value":3354},{"type":21,"tag":2338,"props":3649,"children":3650},{"style":2345},[3651],{"type":26,"value":3652},"best[",{"type":21,"tag":2338,"props":3654,"children":3655},{"style":2363},[3656],{"type":26,"value":3575},{"type":21,"tag":2338,"props":3658,"children":3659},{"style":2345},[3660],{"type":26,"value":3661},"]",{"type":21,"tag":2338,"props":3663,"children":3664},{"style":3219},[3665],{"type":26,"value":3666},":.4f",{"type":21,"tag":2338,"props":3668,"children":3669},{"style":2363},[3670],{"type":26,"value":3364},{"type":21,"tag":2338,"props":3672,"children":3673},{"style":2374},[3674],{"type":26,"value":3675},", worst: ",{"type":21,"tag":2338,"props":3677,"children":3678},{"style":2363},[3679],{"type":26,"value":3354},{"type":21,"tag":2338,"props":3681,"children":3682},{"style":2345},[3683],{"type":26,"value":3684},"worst[",{"type":21,"tag":2338,"props":3686,"children":3687},{"style":2363},[3688],{"type":26,"value":3575},{"type":21,"tag":2338,"props":3690,"children":3691},{"style":2345},[3692],{"type":26,"value":3661},{"type":21,"tag":2338,"props":3694,"children":3695},{"style":3219},[3696],{"type":26,"value":3666},{"type":21,"tag":2338,"props":3698,"children":3699},{"style":2363},[3700],{"type":26,"value":3364},{"type":21,"tag":2338,"props":3702,"children":3703},{"style":2374},[3704],{"type":26,"value":3369},{"type":21,"tag":2338,"props":3706,"children":3707},{"style":2345},[3708],{"type":26,"value":3319},{"type":21,"tag":22,"props":3710,"children":3711},{},[3712,3714,3719,3721,3725,3727,3732],{"type":26,"value":3713},"Führe das auf fast einem beliebigen aktuellen Gerät aus, und du wirst sehen, dass der Abstand zwischen dem besten und dem schlechtesten Qubit auf ",{"type":21,"tag":2071,"props":3715,"children":3716},{},[3717],{"type":26,"value":3718},"demselben Chip",{"type":26,"value":3720}," oft einen Faktor fünf oder mehr beträgt. Diese Streuung ist in jeder zusammenfassenden Kennzahl unsichtbar, und genau deshalb sind Transpilation und Qubit-Auswahl so wichtig. Unser ",{"type":21,"tag":41,"props":3722,"children":3723},{"href":281},[3724],{"type":26,"value":754},{"type":26,"value":3726}," und der ",{"type":21,"tag":41,"props":3728,"children":3729},{"href":144},[3730],{"type":26,"value":3731},"Hardware-Leitfaden",{"type":26,"value":3733}," gehen tiefer auf die Wahl von Backends ein.",{"type":21,"tag":29,"props":3735,"children":3737},{"id":3736},"das-feld-hat-sich-nicht-auf-eine-siegreiche-qubit-technologie-festgelegt",[3738],{"type":26,"value":3739},"Das Feld hat sich nicht auf eine siegreiche Qubit-Technologie festgelegt",{"type":21,"tag":22,"props":3741,"children":3742},{},[3743],{"type":26,"value":3744},"Bemerkenswert ist etwas durch seine Abwesenheit: Die Order nennt an keiner Stelle eine Qubit-Modalität. Keine Präferenz für supraleitende Schaltkreise, gefangene Ionen, Photonik, neutrale Atome oder Spin-Qubits. Sie spricht allgemein von \"quantum-enabling component technologies\".",{"type":21,"tag":22,"props":3746,"children":3747},{},[3748],{"type":26,"value":3749},"Das ist ein aussagekräftiges Signal. Wenn eine Technologie reift, werden Beschaffungsdokumente konkret. Niemand schreibt eine nationale Strategie für \"Rechengeräte auf Basis irgendeiner Form von Schaltelement\". Die bewusste Unschärfe spiegelt die tatsächliche Realität wider: Stand Mitte 2026 hat sich keine Modalität klar durchgesetzt.",{"type":21,"tag":22,"props":3751,"children":3752},{},[3753,3755,3761,3763,3769],{"type":26,"value":3754},"Jede liegt auf anderen Achsen vorn — supraleitende Chips bei Gattergeschwindigkeit und Fertigungsskalierung, gefangene Ionen bei Treue und All-to-all-Konnektivität, neutrale Atome bei der Qubit-Anzahl, Photonik beim Betrieb bei Raumtemperatur und beim Networking. Das ",{"type":21,"tag":41,"props":3756,"children":3758},{"href":3757},"\u002Fresearch\u002Fholographic-codes-quantum-gravity-2026",[3759],{"type":26,"value":3760},"Experiment zu holografischen Codes",{"type":26,"value":3762}," von 2026 lief auf gefangenen Ionen; ",{"type":21,"tag":41,"props":3764,"children":3766},{"href":3765},"\u002Fresearch\u002Fgoogle-below-threshold-2024",[3767],{"type":26,"value":3768},"Googles Ergebnis zur Fehlerkorrektur unterhalb der Schwelle",{"type":26,"value":3770}," lief auf supraleitender Hardware. Beides waren wegweisende Ergebnisse auf völlig unterschiedlichen Plattformen.",{"type":21,"tag":22,"props":3772,"children":3773},{},[3774,3776,3781],{"type":26,"value":3775},"Für alle, die Quantencomputing lernen, ist das eigentlich eine gute Nachricht, und sie hat eine konkrete Konsequenz: ",{"type":21,"tag":205,"props":3777,"children":3778},{},[3779],{"type":26,"value":3780},"spezialisiere dich nicht zu stark auf den Stack eines einzigen Anbieters.",{"type":26,"value":3782}," Die Abstraktionen — Schaltkreise, Gatter, Messung, Fehlerminderung — lassen sich über Hardware hinweg übertragen. Die herstellerspezifischen API-Details womöglich nicht.",{"type":21,"tag":29,"props":3784,"children":3786},{"id":3785},"jenseits-aktueller-klassischer-fähigkeiten-ist-jetzt-die-messlatte",[3787],{"type":26,"value":3788},"\"Jenseits aktueller klassischer Fähigkeiten\" ist jetzt die Messlatte",{"type":21,"tag":22,"props":3790,"children":3791},{},[3792,3794,3799],{"type":26,"value":3793},"Die Order etabliert das Vorhaben ",{"type":21,"tag":205,"props":3795,"children":3796},{},[3797],{"type":26,"value":3798},"Quantum Computer for Application Development and Discovery Science (QC-ADDS)",{"type":26,"value":3800}," mit dem Ziel, mindestens eine Maschine an eine Einrichtung des Department of Energy zu liefern und sie der wissenschaftlichen Gemeinschaft zugänglich zu machen. Der Secretary of Energy hat 90 Tage Zeit, Spezifikationen für Systeme zu benennen, die zu \"transformative scientific applications... on a path towards economically significant applications and beyond current classical computer capabilities\" fähig sind.",{"type":21,"tag":22,"props":3802,"children":3803},{},[3804],{"type":26,"value":3805},"An dieser Formulierung sind zwei Dinge bemerkenswert.",{"type":21,"tag":22,"props":3807,"children":3808},{},[3809,3811,3816,3818,3823,3825,3830],{"type":26,"value":3810},"Erstens ist der Rahmen ",{"type":21,"tag":205,"props":3812,"children":3813},{},[3814],{"type":26,"value":3815},"Grundlagenforschung",{"type":26,"value":3817},", nicht kommerzieller Vorteil. Das Ziel ist ein wissenschaftliches Instrument — eine Maschine, mit der Forschende etwas herausfinden — und kein Produkt, das klassische Computer bei einer Geschäftsaufgabe schlägt. Das passt dazu, worauf die Belege tatsächlich hindeuten: ",{"type":21,"tag":41,"props":3819,"children":3820},{"href":115},[3821],{"type":26,"value":3822},"IBMs Ergebnis zum Quantennutzen von 2023",{"type":26,"value":3824}," und die Arbeit zu holografischen Codes waren beide ",{"type":21,"tag":2071,"props":3826,"children":3827},{},[3828],{"type":26,"value":3829},"physikalische",{"type":26,"value":3831}," Experimente.",{"type":21,"tag":22,"props":3833,"children":3834},{},[3835],{"type":26,"value":3836},"Zweitens leistet \"on a path towards\" in diesem Satz echte Arbeit. Es ist ein Eingeständnis, dass die spezifizierte Maschine ein Schritt ist, kein Ziel.",{"type":21,"tag":29,"props":3838,"children":3840},{"id":3839},"verteiltes-quantencomputing-taucht-als-ernstes-ziel-auf",[3841],{"type":26,"value":3842},"Verteiltes Quantencomputing taucht als ernstes Ziel auf",{"type":21,"tag":22,"props":3844,"children":3845},{},[3846],{"type":26,"value":3847},"Eingebettet in die Abschnitte zum Networking findet sich die Aufforderung an das DOE, Pläne für Quantennetzwerke zum Zweck des \"distributed quantum computing\" vorzulegen.",{"type":21,"tag":22,"props":3849,"children":3850},{},[3851],{"type":26,"value":3852},"Das ist wichtig, weil es ein Eingeständnis zur Skalierung ist. Einen einzigen riesigen Quantenprozessor zu bauen, ist außerordentlich schwierig — Verkabelung, Kühlung, Übersprechen und Ausbeute werden alle schlechter, je größer die Chips werden. Mehrere kleinere Prozessoren zu einer logischen Maschine zu verbinden, ist ein alternativer Weg, und er hängt davon ab, Verschränkung zwischen getrennten Geräten mit ausreichend hoher Treue zu verteilen.",{"type":21,"tag":22,"props":3854,"children":3855},{},[3856,3858,3864,3866,3872],{"type":26,"value":3857},"Das zugrunde liegende Primitiv ist die ",{"type":21,"tag":41,"props":3859,"children":3861},{"href":3860},"\u002Fresearch\u002Fbennett-teleportation-1993",[3862],{"type":26,"value":3863},"Quantenteleportation",{"type":26,"value":3865},", die den Zustand eines Qubits mithilfe geteilter ",{"type":21,"tag":41,"props":3867,"children":3869},{"href":3868},"\u002Fglossary\u002Fentanglement",[3870],{"type":26,"value":3871},"Verschränkung",{"type":26,"value":3873}," plus zweier klassischer Bits zwischen Orten überträgt. Experimentell ist sie seit Jahren Routine — sie aber schnell und sauber genug hinzubekommen, um Prozessoren zusammenzuschalten, ist es nicht. Dass sie als Fünfjahres-Planungsziel benannt wird, ist ein Zeichen dafür, dass die Strategie des einen großen Chips nicht als ausreichend vorausgesetzt wird.",{"type":21,"tag":29,"props":3875,"children":3877},{"id":3876},"die-fachkräftelücke-wird-als-engpass-behandelt",[3878],{"type":26,"value":3879},"Die Fachkräftelücke wird als Engpass behandelt",{"type":21,"tag":22,"props":3881,"children":3882},{},[3883],{"type":26,"value":3884},"Die Order weist die NSF an, innerhalb von 180 Tagen \"a network of National QIST Workforce Development Institutes\" ins Leben zu rufen, begleitet von Strategien zur Anwerbung und Bindung.",{"type":21,"tag":22,"props":3886,"children":3887},{},[3888],{"type":26,"value":3889},"Abschnitte zu Fachkräften überliest man leicht, aber ihre Aufnahme sagt dir etwas Konkretes: Der begrenzende Faktor für den Quantenfortschritt ist nicht allein die Hardware. Es gibt nicht genug Menschen, die Quantenprogramme schreiben, debuggen und durchdenken können — und dieser Mangel gilt inzwischen als gravierend genug, um eigene Institutionen zu rechtfertigen.",{"type":21,"tag":22,"props":3891,"children":3892},{},[3893,3895,3901,3903,3909],{"type":26,"value":3894},"Für alle, die diese Seite lesen, ist das der unmittelbar umsetzbarste Teil des gesamten Dokuments. Die als knapp beschriebenen Fähigkeiten sind genau jetzt erlernbar, kostenlos, auf echter Hardware. Unsere ",{"type":21,"tag":41,"props":3896,"children":3898},{"href":3897},"\u002Fcourses",[3899],{"type":26,"value":3900},"Kursseite",{"type":26,"value":3902}," sammelt die besten strukturierten Optionen, und der ",{"type":21,"tag":41,"props":3904,"children":3906},{"href":3905},"\u002Fblog\u002Fgetting-started-free-quantum-computing",[3907],{"type":26,"value":3908},"Einstiegsleitfaden",{"type":26,"value":3910}," bringt dich an einem Nachmittag dazu, einen Schaltkreis auf einer echten QPU laufen zu lassen.",{"type":21,"tag":29,"props":3912,"children":3914},{"id":3913},"was-nicht-darin-steht",[3915],{"type":26,"value":3916},"Was nicht darin steht",{"type":21,"tag":22,"props":3918,"children":3919},{},[3920,3922,3927],{"type":26,"value":3921},"Der Genauigkeit halber klar gesagt: Die Order nennt ",{"type":21,"tag":205,"props":3923,"children":3924},{},[3925],{"type":26,"value":3926},"keine Geldbeträge",{"type":26,"value":3928},". Sie gibt die Richtung vor, verteilt Verantwortlichkeiten und setzt Fristen — 90, 120, 180 und 210 Tage in verschiedenen Abschnitten — aber die Mittel kommen von anderswo. Fristen in einer Executive Order sind zudem keine Garantie für Umsetzung.",{"type":21,"tag":22,"props":3930,"children":3931},{},[3932],{"type":26,"value":3933},"Behandle die Zeitpläne als Absichtserklärung, nicht als Terminplan, auf den du bauen kannst.",{"type":21,"tag":29,"props":3935,"children":3937},{"id":3936},"das-fazit",[3938],{"type":26,"value":3939},"Das Fazit",{"type":21,"tag":22,"props":3941,"children":3942},{},[3943],{"type":26,"value":3944},"Nimmt man die Politik heraus, liest sich EO 14413 wie eine ungewöhnlich offene technische Bestandsaufnahme:",{"type":21,"tag":3137,"props":3946,"children":3947},{},[3948,3953,3958,3963,3968],{"type":21,"tag":3141,"props":3949,"children":3950},{},[3951],{"type":26,"value":3952},"Wir können die Leistung von Quantencomputern nicht zuverlässig messen, und das ist inzwischen dringend genug, um institutionalisiert zu werden.",{"type":21,"tag":3141,"props":3954,"children":3955},{},[3956],{"type":26,"value":3957},"Keine Qubit-Technologie hat sich durchgesetzt, also werden die Wetten abgesichert.",{"type":21,"tag":3141,"props":3959,"children":3960},{},[3961],{"type":26,"value":3962},"Das kurzfristige Ziel ist wissenschaftliche Erkenntnis, nicht kommerzieller Vorteil.",{"type":21,"tag":3141,"props":3964,"children":3965},{},[3966],{"type":26,"value":3967},"Skalierung erfordert möglicherweise, Chips zu vernetzen, statt einen gigantischen zu bauen.",{"type":21,"tag":3141,"props":3969,"children":3970},{},[3971],{"type":26,"value":3972},"Es gibt nicht genug ausgebildete Menschen, und das ist ein Engpass erster Ordnung.",{"type":21,"tag":22,"props":3974,"children":3975},{},[3976],{"type":26,"value":3977},"Nichts davon ist pessimistisch. Es ist ein Feld, das über \"funktioniert das überhaupt\" hinaus zu \"wie messen, skalieren und besetzen wir das\" gelangt ist — ungefähr der Übergang, den das klassische Computing in den 1950er-Jahren durchlief.",{"type":21,"tag":22,"props":3979,"children":3980},{},[3981,3983,3989],{"type":26,"value":3982},"Das Messproblem ist das, was man im Auge behalten sollte. Benchmarking klingt neben Rekorden bei der Qubit-Anzahl langweilig, aber man kann nicht entwickeln, was man nicht messen kann, und jede ernsthafte Behauptung über einen Quantenvorteil beruht letztlich darauf. Wenn du verstehen willst, wohin sich das Feld tatsächlich bewegt, lerne, die Fehlerraten statt der Schlagzeilen zu lesen — angefangen mit unserem ",{"type":21,"tag":41,"props":3984,"children":3986},{"href":3985},"\u002Fglossary",[3987],{"type":26,"value":3988},"Glossar der Begriffe, auf die es ankommt",{"type":26,"value":825},{"type":21,"tag":2712,"props":3991,"children":3992},{},[3993],{"type":26,"value":2716},{"title":7,"searchDepth":173,"depth":173,"links":3995},[3996,3997,3998,3999,4000,4001,4002],{"id":3110,"depth":173,"text":3113},{"id":3736,"depth":173,"text":3739},{"id":3785,"depth":173,"text":3788},{"id":3839,"depth":173,"text":3842},{"id":3876,"depth":173,"text":3879},{"id":3913,"depth":173,"text":3916},{"id":3936,"depth":173,"text":3939},"content:de:blog:quantum-benchmarking-eo-14413.md","de\u002Fblog\u002Fquantum-benchmarking-eo-14413.md","de\u002Fblog\u002Fquantum-benchmarking-eo-14413",{"_path":4007,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":4008,"description":4009,"date":3081,"author":11,"tags":4010,"readingTime":3465,"body":4011,"_type":180,"_id":7161,"_source":182,"_file":7162,"_stem":7163,"_extension":185},"\u002Fblog\u002Ferror-mitigation-practical-guide","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.",[194,15,3083],{"type":18,"children":4012,"toc":7150},[4013,4018,4023,4029,4034,4060,4081,4086,4201,4220,4226,4231,4276,5669,5679,5687,5715,5742,5748,5769,5782,5977,5982,5988,6000,6005,6017,6023,6035,6063,6805,6815,6823,6828,6834,6839,6847,6859,6886,6898,6908,6914,6919,6937,6969,6985,6991,7003,7016,7022,7027,7081,7105,7118,7146],{"type":21,"tag":22,"props":4014,"children":4015},{},[4016],{"type":26,"value":4017},"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":4019,"children":4020},{},[4021],{"type":26,"value":4022},"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":29,"props":4024,"children":4026},{"id":4025},"mitigation-is-not-correction",[4027],{"type":26,"value":4028},"Mitigation Is Not Correction",{"type":21,"tag":22,"props":4030,"children":4031},{},[4032],{"type":26,"value":4033},"These get conflated constantly, so let's be precise.",{"type":21,"tag":22,"props":4035,"children":4036},{},[4037,4044,4046,4051,4053,4058],{"type":21,"tag":205,"props":4038,"children":4039},{},[4040],{"type":21,"tag":41,"props":4041,"children":4042},{"href":993},[4043],{"type":26,"value":996},{"type":26,"value":4045}," detects and fixes errors ",{"type":21,"tag":2071,"props":4047,"children":4048},{},[4049],{"type":26,"value":4050},"during",{"type":26,"value":4052}," 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":41,"props":4054,"children":4055},{"href":324},[4056],{"type":26,"value":4057},"error correction primer",{"type":26,"value":4059}," walks through how the surface code does this.",{"type":21,"tag":22,"props":4061,"children":4062},{},[4063,4072,4074,4079],{"type":21,"tag":205,"props":4064,"children":4065},{},[4066],{"type":21,"tag":41,"props":4067,"children":4069},{"href":4068},"\u002Fglossary\u002Ferror-mitigation",[4070],{"type":26,"value":4071},"Error mitigation",{"type":26,"value":4073}," does nothing during the computation. It runs the noisy circuit, collects noisy results, and applies classical statistics afterwards to ",{"type":21,"tag":2071,"props":4075,"children":4076},{},[4077],{"type":26,"value":4078},"estimate",{"type":26,"value":4080}," what a noiseless machine would have said.",{"type":21,"tag":22,"props":4082,"children":4083},{},[4084],{"type":26,"value":4085},"The practical differences matter:",{"type":21,"tag":4087,"props":4088,"children":4089},"table",{},[4090,4112],{"type":21,"tag":4091,"props":4092,"children":4093},"thead",{},[4094],{"type":21,"tag":4095,"props":4096,"children":4097},"tr",{},[4098,4102,4107],{"type":21,"tag":4099,"props":4100,"children":4101},"th",{},[],{"type":21,"tag":4099,"props":4103,"children":4104},{},[4105],{"type":26,"value":4106},"Correction",{"type":21,"tag":4099,"props":4108,"children":4109},{},[4110],{"type":26,"value":4111},"Mitigation",{"type":21,"tag":4113,"props":4114,"children":4115},"tbody",{},[4116,4147,4165,4183],{"type":21,"tag":4095,"props":4117,"children":4118},{},[4119,4125,4136],{"type":21,"tag":4120,"props":4121,"children":4122},"td",{},[4123],{"type":26,"value":4124},"Cost",{"type":21,"tag":4120,"props":4126,"children":4127},{},[4128,4130,4134],{"type":26,"value":4129},"Extra ",{"type":21,"tag":205,"props":4131,"children":4132},{},[4133],{"type":26,"value":1263},{"type":26,"value":4135}," (~1000×)",{"type":21,"tag":4120,"props":4137,"children":4138},{},[4139,4140,4145],{"type":26,"value":4129},{"type":21,"tag":205,"props":4141,"children":4142},{},[4143],{"type":26,"value":4144},"shots",{"type":26,"value":4146}," (2–100×)",{"type":21,"tag":4095,"props":4148,"children":4149},{},[4150,4155,4160],{"type":21,"tag":4120,"props":4151,"children":4152},{},[4153],{"type":26,"value":4154},"Recovers",{"type":21,"tag":4120,"props":4156,"children":4157},{},[4158],{"type":26,"value":4159},"The quantum state",{"type":21,"tag":4120,"props":4161,"children":4162},{},[4163],{"type":26,"value":4164},"An expectation value",{"type":21,"tag":4095,"props":4166,"children":4167},{},[4168,4173,4178],{"type":21,"tag":4120,"props":4169,"children":4170},{},[4171],{"type":26,"value":4172},"Scales to",{"type":21,"tag":4120,"props":4174,"children":4175},{},[4176],{"type":26,"value":4177},"Arbitrary depth",{"type":21,"tag":4120,"props":4179,"children":4180},{},[4181],{"type":26,"value":4182},"Shallow-to-moderate depth only",{"type":21,"tag":4095,"props":4184,"children":4185},{},[4186,4191,4196],{"type":21,"tag":4120,"props":4187,"children":4188},{},[4189],{"type":26,"value":4190},"Available today",{"type":21,"tag":4120,"props":4192,"children":4193},{},[4194],{"type":26,"value":4195},"Barely",{"type":21,"tag":4120,"props":4197,"children":4198},{},[4199],{"type":26,"value":4200},"Yes, right now",{"type":21,"tag":22,"props":4202,"children":4203},{},[4204,4206,4211,4213,4218],{"type":26,"value":4205},"That last row is why mitigation dominates ",{"type":21,"tag":41,"props":4207,"children":4208},{"href":442},[4209],{"type":26,"value":4210},"NISQ-era",{"type":26,"value":4212}," work. But note row three: mitigation's overhead grows ",{"type":21,"tag":2071,"props":4214,"children":4215},{},[4216],{"type":26,"value":4217},"exponentially",{"type":26,"value":4219}," 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":29,"props":4221,"children":4223},{"id":4222},"step-1-readout-error-mitigation-do-this-first",[4224],{"type":26,"value":4225},"Step 1: Readout Error Mitigation (Do This First)",{"type":21,"tag":22,"props":4227,"children":4228},{},[4229],{"type":26,"value":4230},"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":4232,"children":4233},{},[4234,4236,4242,4244,4250,4252,4258,4260,4266,4268,4274],{"type":26,"value":4235},"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":2097,"props":4237,"children":4239},{"className":4238},[],[4240],{"type":26,"value":4241},"M",{"type":26,"value":4243}," where ",{"type":21,"tag":2097,"props":4245,"children":4247},{"className":4246},[],[4248],{"type":26,"value":4249},"M[i][j]",{"type":26,"value":4251}," is the probability of reading ",{"type":21,"tag":2097,"props":4253,"children":4255},{"className":4254},[],[4256],{"type":26,"value":4257},"i",{"type":26,"value":4259}," when the true state was ",{"type":21,"tag":2097,"props":4261,"children":4263},{"className":4262},[],[4264],{"type":26,"value":4265},"j",{"type":26,"value":4267},". Your observed distribution is ",{"type":21,"tag":2097,"props":4269,"children":4271},{"className":4270},[],[4272],{"type":26,"value":4273},"M @ p_true",{"type":26,"value":4275},", so apply the pseudo-inverse.",{"type":21,"tag":2328,"props":4277,"children":4279},{"code":4278,"language":3209,"meta":7,"className":3207,"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",[4280],{"type":21,"tag":2097,"props":4281,"children":4282},{"__ignoreMap":7},[4283,4305,4326,4347,4368,4375,4436,4453,4506,4549,4557,4592,4600,4613,4620,4650,4669,4677,4708,4753,4792,4810,4884,4912,4941,4950,4978,5009,5031,5077,5090,5098,5116,5134,5142,5176,5194,5219,5261,5269,5304,5420,5428,5473,5491,5499,5587],{"type":21,"tag":2338,"props":4284,"children":4285},{"class":2340,"line":2341},[4286,4290,4295,4300],{"type":21,"tag":2338,"props":4287,"children":4288},{"style":3219},[4289],{"type":26,"value":3232},{"type":21,"tag":2338,"props":4291,"children":4292},{"style":2345},[4293],{"type":26,"value":4294}," numpy ",{"type":21,"tag":2338,"props":4296,"children":4297},{"style":3219},[4298],{"type":26,"value":4299},"as",{"type":21,"tag":2338,"props":4301,"children":4302},{"style":2345},[4303],{"type":26,"value":4304}," np\n",{"type":21,"tag":2338,"props":4306,"children":4307},{"class":2340,"line":173},[4308,4312,4317,4321],{"type":21,"tag":2338,"props":4309,"children":4310},{"style":3219},[4311],{"type":26,"value":3222},{"type":21,"tag":2338,"props":4313,"children":4314},{"style":2345},[4315],{"type":26,"value":4316}," qiskit ",{"type":21,"tag":2338,"props":4318,"children":4319},{"style":3219},[4320],{"type":26,"value":3232},{"type":21,"tag":2338,"props":4322,"children":4323},{"style":2345},[4324],{"type":26,"value":4325}," QuantumCircuit, transpile\n",{"type":21,"tag":2338,"props":4327,"children":4328},{"class":2340,"line":2359},[4329,4333,4338,4342],{"type":21,"tag":2338,"props":4330,"children":4331},{"style":3219},[4332],{"type":26,"value":3222},{"type":21,"tag":2338,"props":4334,"children":4335},{"style":2345},[4336],{"type":26,"value":4337}," qiskit_aer ",{"type":21,"tag":2338,"props":4339,"children":4340},{"style":3219},[4341],{"type":26,"value":3232},{"type":21,"tag":2338,"props":4343,"children":4344},{"style":2345},[4345],{"type":26,"value":4346}," AerSimulator\n",{"type":21,"tag":2338,"props":4348,"children":4349},{"class":2340,"line":2421},[4350,4354,4359,4363],{"type":21,"tag":2338,"props":4351,"children":4352},{"style":3219},[4353],{"type":26,"value":3222},{"type":21,"tag":2338,"props":4355,"children":4356},{"style":2345},[4357],{"type":26,"value":4358}," qiskit_aer.noise ",{"type":21,"tag":2338,"props":4360,"children":4361},{"style":3219},[4362],{"type":26,"value":3232},{"type":21,"tag":2338,"props":4364,"children":4365},{"style":2345},[4366],{"type":26,"value":4367}," NoiseModel, depolarizing_error, ReadoutError\n",{"type":21,"tag":2338,"props":4369,"children":4370},{"class":2340,"line":2445},[4371],{"type":21,"tag":2338,"props":4372,"children":4373},{"emptyLinePlaceholder":3243},[4374],{"type":26,"value":3246},{"type":21,"tag":2338,"props":4376,"children":4377},{"class":2340,"line":877},[4378,4383,4389,4394,4398,4403,4408,4412,4417,4422,4426,4431],{"type":21,"tag":2338,"props":4379,"children":4380},{"style":3219},[4381],{"type":26,"value":4382},"def",{"type":21,"tag":2338,"props":4384,"children":4386},{"style":4385},"--shiki-default:#B392F0",[4387],{"type":26,"value":4388}," build_noise",{"type":21,"tag":2338,"props":4390,"children":4391},{"style":2345},[4392],{"type":26,"value":4393},"(p1",{"type":21,"tag":2338,"props":4395,"children":4396},{"style":3219},[4397],{"type":26,"value":3259},{"type":21,"tag":2338,"props":4399,"children":4400},{"style":2363},[4401],{"type":26,"value":4402},"0.002",{"type":21,"tag":2338,"props":4404,"children":4405},{"style":2345},[4406],{"type":26,"value":4407},", p2",{"type":21,"tag":2338,"props":4409,"children":4410},{"style":3219},[4411],{"type":26,"value":3259},{"type":21,"tag":2338,"props":4413,"children":4414},{"style":2363},[4415],{"type":26,"value":4416},"0.02",{"type":21,"tag":2338,"props":4418,"children":4419},{"style":2345},[4420],{"type":26,"value":4421},", p_read",{"type":21,"tag":2338,"props":4423,"children":4424},{"style":3219},[4425],{"type":26,"value":3259},{"type":21,"tag":2338,"props":4427,"children":4428},{"style":2363},[4429],{"type":26,"value":4430},"0.05",{"type":21,"tag":2338,"props":4432,"children":4433},{"style":2345},[4434],{"type":26,"value":4435},"):\n",{"type":21,"tag":2338,"props":4437,"children":4438},{"class":2340,"line":196},[4439,4444,4448],{"type":21,"tag":2338,"props":4440,"children":4441},{"style":2345},[4442],{"type":26,"value":4443},"    nm ",{"type":21,"tag":2338,"props":4445,"children":4446},{"style":3219},[4447],{"type":26,"value":3259},{"type":21,"tag":2338,"props":4449,"children":4450},{"style":2345},[4451],{"type":26,"value":4452}," NoiseModel()\n",{"type":21,"tag":2338,"props":4454,"children":4455},{"class":2340,"line":951},[4456,4461,4465,4470,4475,4479,4484,4488,4493,4497,4502],{"type":21,"tag":2338,"props":4457,"children":4458},{"style":2345},[4459],{"type":26,"value":4460},"    nm.add_all_qubit_quantum_error(depolarizing_error(p1, ",{"type":21,"tag":2338,"props":4462,"children":4463},{"style":2363},[4464],{"type":26,"value":3575},{"type":21,"tag":2338,"props":4466,"children":4467},{"style":2345},[4468],{"type":26,"value":4469},"), [",{"type":21,"tag":2338,"props":4471,"children":4472},{"style":2374},[4473],{"type":26,"value":4474},"\"rz\"",{"type":21,"tag":2338,"props":4476,"children":4477},{"style":2345},[4478],{"type":26,"value":1375},{"type":21,"tag":2338,"props":4480,"children":4481},{"style":2374},[4482],{"type":26,"value":4483},"\"sx\"",{"type":21,"tag":2338,"props":4485,"children":4486},{"style":2345},[4487],{"type":26,"value":1375},{"type":21,"tag":2338,"props":4489,"children":4490},{"style":2374},[4491],{"type":26,"value":4492},"\"x\"",{"type":21,"tag":2338,"props":4494,"children":4495},{"style":2345},[4496],{"type":26,"value":1375},{"type":21,"tag":2338,"props":4498,"children":4499},{"style":2374},[4500],{"type":26,"value":4501},"\"h\"",{"type":21,"tag":2338,"props":4503,"children":4504},{"style":2345},[4505],{"type":26,"value":3580},{"type":21,"tag":2338,"props":4507,"children":4508},{"class":2340,"line":16},[4509,4514,4518,4522,4527,4531,4536,4540,4545],{"type":21,"tag":2338,"props":4510,"children":4511},{"style":2345},[4512],{"type":26,"value":4513},"    nm.add_all_qubit_quantum_error(depolarizing_error(p2, ",{"type":21,"tag":2338,"props":4515,"children":4516},{"style":2363},[4517],{"type":26,"value":2437},{"type":21,"tag":2338,"props":4519,"children":4520},{"style":2345},[4521],{"type":26,"value":4469},{"type":21,"tag":2338,"props":4523,"children":4524},{"style":2374},[4525],{"type":26,"value":4526},"\"cx\"",{"type":21,"tag":2338,"props":4528,"children":4529},{"style":2345},[4530],{"type":26,"value":1375},{"type":21,"tag":2338,"props":4532,"children":4533},{"style":2374},[4534],{"type":26,"value":4535},"\"cz\"",{"type":21,"tag":2338,"props":4537,"children":4538},{"style":2345},[4539],{"type":26,"value":1375},{"type":21,"tag":2338,"props":4541,"children":4542},{"style":2374},[4543],{"type":26,"value":4544},"\"ecr\"",{"type":21,"tag":2338,"props":4546,"children":4547},{"style":2345},[4548],{"type":26,"value":3580},{"type":21,"tag":2338,"props":4550,"children":4551},{"class":2340,"line":3465},[4552],{"type":21,"tag":2338,"props":4553,"children":4554},{"style":2345},[4555],{"type":26,"value":4556},"    nm.add_all_qubit_readout_error(\n",{"type":21,"tag":2338,"props":4558,"children":4559},{"class":2340,"line":3475},[4560,4565,4569,4574,4579,4583,4587],{"type":21,"tag":2338,"props":4561,"children":4562},{"style":2345},[4563],{"type":26,"value":4564},"        ReadoutError([[",{"type":21,"tag":2338,"props":4566,"children":4567},{"style":2363},[4568],{"type":26,"value":3575},{"type":21,"tag":2338,"props":4570,"children":4571},{"style":3219},[4572],{"type":26,"value":4573}," -",{"type":21,"tag":2338,"props":4575,"children":4576},{"style":2345},[4577],{"type":26,"value":4578}," p_read, p_read], [p_read, ",{"type":21,"tag":2338,"props":4580,"children":4581},{"style":2363},[4582],{"type":26,"value":3575},{"type":21,"tag":2338,"props":4584,"children":4585},{"style":3219},[4586],{"type":26,"value":4573},{"type":21,"tag":2338,"props":4588,"children":4589},{"style":2345},[4590],{"type":26,"value":4591}," p_read]])\n",{"type":21,"tag":2338,"props":4593,"children":4594},{"class":2340,"line":500},[4595],{"type":21,"tag":2338,"props":4596,"children":4597},{"style":2345},[4598],{"type":26,"value":4599},"    )\n",{"type":21,"tag":2338,"props":4601,"children":4602},{"class":2340,"line":3535},[4603,4608],{"type":21,"tag":2338,"props":4604,"children":4605},{"style":3219},[4606],{"type":26,"value":4607},"    return",{"type":21,"tag":2338,"props":4609,"children":4610},{"style":2345},[4611],{"type":26,"value":4612}," nm\n",{"type":21,"tag":2338,"props":4614,"children":4615},{"class":2340,"line":3583},[4616],{"type":21,"tag":2338,"props":4617,"children":4618},{"emptyLinePlaceholder":3243},[4619],{"type":26,"value":3246},{"type":21,"tag":2338,"props":4621,"children":4622},{"class":2340,"line":3625},[4623,4627,4631,4636,4641,4645],{"type":21,"tag":2338,"props":4624,"children":4625},{"style":2345},[4626],{"type":26,"value":3272},{"type":21,"tag":2338,"props":4628,"children":4629},{"style":3219},[4630],{"type":26,"value":3259},{"type":21,"tag":2338,"props":4632,"children":4633},{"style":2345},[4634],{"type":26,"value":4635}," AerSimulator(",{"type":21,"tag":2338,"props":4637,"children":4638},{"style":3284},[4639],{"type":26,"value":4640},"noise_model",{"type":21,"tag":2338,"props":4642,"children":4643},{"style":3219},[4644],{"type":26,"value":3259},{"type":21,"tag":2338,"props":4646,"children":4647},{"style":2345},[4648],{"type":26,"value":4649},"build_noise())\n",{"type":21,"tag":2338,"props":4651,"children":4653},{"class":2340,"line":4652},16,[4654,4659,4664],{"type":21,"tag":2338,"props":4655,"children":4656},{"style":2363},[4657],{"type":26,"value":4658},"SHOTS",{"type":21,"tag":2338,"props":4660,"children":4661},{"style":3219},[4662],{"type":26,"value":4663}," =",{"type":21,"tag":2338,"props":4665,"children":4666},{"style":2363},[4667],{"type":26,"value":4668}," 40000\n",{"type":21,"tag":2338,"props":4670,"children":4672},{"class":2340,"line":4671},17,[4673],{"type":21,"tag":2338,"props":4674,"children":4675},{"emptyLinePlaceholder":3243},[4676],{"type":26,"value":3246},{"type":21,"tag":2338,"props":4678,"children":4680},{"class":2340,"line":4679},18,[4681,4685,4690,4695,4699,4704],{"type":21,"tag":2338,"props":4682,"children":4683},{"style":3219},[4684],{"type":26,"value":4382},{"type":21,"tag":2338,"props":4686,"children":4687},{"style":4385},[4688],{"type":26,"value":4689}," calibration_matrix",{"type":21,"tag":2338,"props":4691,"children":4692},{"style":2345},[4693],{"type":26,"value":4694},"(n, backend, shots",{"type":21,"tag":2338,"props":4696,"children":4697},{"style":3219},[4698],{"type":26,"value":3259},{"type":21,"tag":2338,"props":4700,"children":4701},{"style":2363},[4702],{"type":26,"value":4703},"20000",{"type":21,"tag":2338,"props":4705,"children":4706},{"style":2345},[4707],{"type":26,"value":4435},{"type":21,"tag":2338,"props":4709,"children":4711},{"class":2340,"line":4710},19,[4712,4717,4721,4726,4730,4735,4740,4744,4748],{"type":21,"tag":2338,"props":4713,"children":4714},{"style":2345},[4715],{"type":26,"value":4716},"    M ",{"type":21,"tag":2338,"props":4718,"children":4719},{"style":3219},[4720],{"type":26,"value":3259},{"type":21,"tag":2338,"props":4722,"children":4723},{"style":2345},[4724],{"type":26,"value":4725}," np.zeros((",{"type":21,"tag":2338,"props":4727,"children":4728},{"style":2363},[4729],{"type":26,"value":2437},{"type":21,"tag":2338,"props":4731,"children":4732},{"style":3219},[4733],{"type":26,"value":4734},"**",{"type":21,"tag":2338,"props":4736,"children":4737},{"style":2345},[4738],{"type":26,"value":4739},"n, ",{"type":21,"tag":2338,"props":4741,"children":4742},{"style":2363},[4743],{"type":26,"value":2437},{"type":21,"tag":2338,"props":4745,"children":4746},{"style":3219},[4747],{"type":26,"value":4734},{"type":21,"tag":2338,"props":4749,"children":4750},{"style":2345},[4751],{"type":26,"value":4752},"n))\n",{"type":21,"tag":2338,"props":4754,"children":4756},{"class":2340,"line":4755},20,[4757,4762,4767,4771,4775,4779,4783,4787],{"type":21,"tag":2338,"props":4758,"children":4759},{"style":3219},[4760],{"type":26,"value":4761},"    for",{"type":21,"tag":2338,"props":4763,"children":4764},{"style":2345},[4765],{"type":26,"value":4766}," i ",{"type":21,"tag":2338,"props":4768,"children":4769},{"style":3219},[4770],{"type":26,"value":3522},{"type":21,"tag":2338,"props":4772,"children":4773},{"style":2363},[4774],{"type":26,"value":3527},{"type":21,"tag":2338,"props":4776,"children":4777},{"style":2345},[4778],{"type":26,"value":3339},{"type":21,"tag":2338,"props":4780,"children":4781},{"style":2363},[4782],{"type":26,"value":2437},{"type":21,"tag":2338,"props":4784,"children":4785},{"style":3219},[4786],{"type":26,"value":4734},{"type":21,"tag":2338,"props":4788,"children":4789},{"style":2345},[4790],{"type":26,"value":4791},"n):\n",{"type":21,"tag":2338,"props":4793,"children":4795},{"class":2340,"line":4794},21,[4796,4801,4805],{"type":21,"tag":2338,"props":4797,"children":4798},{"style":2345},[4799],{"type":26,"value":4800},"        qc ",{"type":21,"tag":2338,"props":4802,"children":4803},{"style":3219},[4804],{"type":26,"value":3259},{"type":21,"tag":2338,"props":4806,"children":4807},{"style":2345},[4808],{"type":26,"value":4809}," QuantumCircuit(n, n)\n",{"type":21,"tag":2338,"props":4811,"children":4813},{"class":2340,"line":4812},22,[4814,4819,4823,4828,4833,4837,4842,4846,4851,4855,4860,4865,4870,4874,4879],{"type":21,"tag":2338,"props":4815,"children":4816},{"style":2345},[4817],{"type":26,"value":4818},"        bits ",{"type":21,"tag":2338,"props":4820,"children":4821},{"style":3219},[4822],{"type":26,"value":3259},{"type":21,"tag":2338,"props":4824,"children":4825},{"style":2363},[4826],{"type":26,"value":4827}," format",{"type":21,"tag":2338,"props":4829,"children":4830},{"style":2345},[4831],{"type":26,"value":4832},"(i, ",{"type":21,"tag":2338,"props":4834,"children":4835},{"style":3219},[4836],{"type":26,"value":3344},{"type":21,"tag":2338,"props":4838,"children":4839},{"style":2374},[4840],{"type":26,"value":4841},"\"0",{"type":21,"tag":2338,"props":4843,"children":4844},{"style":2363},[4845],{"type":26,"value":3354},{"type":21,"tag":2338,"props":4847,"children":4848},{"style":2345},[4849],{"type":26,"value":4850},"n",{"type":21,"tag":2338,"props":4852,"children":4853},{"style":2363},[4854],{"type":26,"value":3364},{"type":21,"tag":2338,"props":4856,"children":4857},{"style":2374},[4858],{"type":26,"value":4859},"b\"",{"type":21,"tag":2338,"props":4861,"children":4862},{"style":2345},[4863],{"type":26,"value":4864},")[::",{"type":21,"tag":2338,"props":4866,"children":4867},{"style":3219},[4868],{"type":26,"value":4869},"-",{"type":21,"tag":2338,"props":4871,"children":4872},{"style":2363},[4873],{"type":26,"value":3575},{"type":21,"tag":2338,"props":4875,"children":4876},{"style":2345},[4877],{"type":26,"value":4878},"]      ",{"type":21,"tag":2338,"props":4880,"children":4881},{"style":3469},[4882],{"type":26,"value":4883},"# Qiskit is little-endian\n",{"type":21,"tag":2338,"props":4885,"children":4887},{"class":2340,"line":4886},23,[4888,4893,4898,4902,4907],{"type":21,"tag":2338,"props":4889,"children":4890},{"style":3219},[4891],{"type":26,"value":4892},"        for",{"type":21,"tag":2338,"props":4894,"children":4895},{"style":2345},[4896],{"type":26,"value":4897}," q, b ",{"type":21,"tag":2338,"props":4899,"children":4900},{"style":3219},[4901],{"type":26,"value":3522},{"type":21,"tag":2338,"props":4903,"children":4904},{"style":2363},[4905],{"type":26,"value":4906}," enumerate",{"type":21,"tag":2338,"props":4908,"children":4909},{"style":2345},[4910],{"type":26,"value":4911},"(bits):\n",{"type":21,"tag":2338,"props":4913,"children":4915},{"class":2340,"line":4914},24,[4916,4921,4926,4931,4936],{"type":21,"tag":2338,"props":4917,"children":4918},{"style":3219},[4919],{"type":26,"value":4920},"            if",{"type":21,"tag":2338,"props":4922,"children":4923},{"style":2345},[4924],{"type":26,"value":4925}," b ",{"type":21,"tag":2338,"props":4927,"children":4928},{"style":3219},[4929],{"type":26,"value":4930},"==",{"type":21,"tag":2338,"props":4932,"children":4933},{"style":2374},[4934],{"type":26,"value":4935}," \"1\"",{"type":21,"tag":2338,"props":4937,"children":4938},{"style":2345},[4939],{"type":26,"value":4940},":\n",{"type":21,"tag":2338,"props":4942,"children":4944},{"class":2340,"line":4943},25,[4945],{"type":21,"tag":2338,"props":4946,"children":4947},{"style":2345},[4948],{"type":26,"value":4949},"                qc.x(q)\n",{"type":21,"tag":2338,"props":4951,"children":4953},{"class":2340,"line":4952},26,[4954,4959,4964,4969,4973],{"type":21,"tag":2338,"props":4955,"children":4956},{"style":2345},[4957],{"type":26,"value":4958},"        qc.measure(",{"type":21,"tag":2338,"props":4960,"children":4961},{"style":2363},[4962],{"type":26,"value":4963},"range",{"type":21,"tag":2338,"props":4965,"children":4966},{"style":2345},[4967],{"type":26,"value":4968},"(n), ",{"type":21,"tag":2338,"props":4970,"children":4971},{"style":2363},[4972],{"type":26,"value":4963},{"type":21,"tag":2338,"props":4974,"children":4975},{"style":2345},[4976],{"type":26,"value":4977},"(n))\n",{"type":21,"tag":2338,"props":4979,"children":4981},{"class":2340,"line":4980},27,[4982,4987,4991,4996,5000,5004],{"type":21,"tag":2338,"props":4983,"children":4984},{"style":2345},[4985],{"type":26,"value":4986},"        counts ",{"type":21,"tag":2338,"props":4988,"children":4989},{"style":3219},[4990],{"type":26,"value":3259},{"type":21,"tag":2338,"props":4992,"children":4993},{"style":2345},[4994],{"type":26,"value":4995}," backend.run(transpile(qc, backend), ",{"type":21,"tag":2338,"props":4997,"children":4998},{"style":3284},[4999],{"type":26,"value":4144},{"type":21,"tag":2338,"props":5001,"children":5002},{"style":3219},[5003],{"type":26,"value":3259},{"type":21,"tag":2338,"props":5005,"children":5006},{"style":2345},[5007],{"type":26,"value":5008},"shots).result().get_counts()\n",{"type":21,"tag":2338,"props":5010,"children":5012},{"class":2340,"line":5011},28,[5013,5017,5022,5026],{"type":21,"tag":2338,"props":5014,"children":5015},{"style":3219},[5016],{"type":26,"value":4892},{"type":21,"tag":2338,"props":5018,"children":5019},{"style":2345},[5020],{"type":26,"value":5021}," key, v ",{"type":21,"tag":2338,"props":5023,"children":5024},{"style":3219},[5025],{"type":26,"value":3522},{"type":21,"tag":2338,"props":5027,"children":5028},{"style":2345},[5029],{"type":26,"value":5030}," counts.items():\n",{"type":21,"tag":2338,"props":5032,"children":5034},{"class":2340,"line":5033},29,[5035,5040,5045,5050,5054,5059,5063,5068,5072],{"type":21,"tag":2338,"props":5036,"children":5037},{"style":2345},[5038],{"type":26,"value":5039},"            M[",{"type":21,"tag":2338,"props":5041,"children":5042},{"style":2363},[5043],{"type":26,"value":5044},"int",{"type":21,"tag":2338,"props":5046,"children":5047},{"style":2345},[5048],{"type":26,"value":5049},"(key, ",{"type":21,"tag":2338,"props":5051,"children":5052},{"style":2363},[5053],{"type":26,"value":2437},{"type":21,"tag":2338,"props":5055,"children":5056},{"style":2345},[5057],{"type":26,"value":5058},"), i] ",{"type":21,"tag":2338,"props":5060,"children":5061},{"style":3219},[5062],{"type":26,"value":3259},{"type":21,"tag":2338,"props":5064,"children":5065},{"style":2345},[5066],{"type":26,"value":5067}," v ",{"type":21,"tag":2338,"props":5069,"children":5070},{"style":3219},[5071],{"type":26,"value":2192},{"type":21,"tag":2338,"props":5073,"children":5074},{"style":2345},[5075],{"type":26,"value":5076}," shots\n",{"type":21,"tag":2338,"props":5078,"children":5080},{"class":2340,"line":5079},30,[5081,5085],{"type":21,"tag":2338,"props":5082,"children":5083},{"style":3219},[5084],{"type":26,"value":4607},{"type":21,"tag":2338,"props":5086,"children":5087},{"style":2345},[5088],{"type":26,"value":5089}," M\n",{"type":21,"tag":2338,"props":5091,"children":5093},{"class":2340,"line":5092},31,[5094],{"type":21,"tag":2338,"props":5095,"children":5096},{"emptyLinePlaceholder":3243},[5097],{"type":26,"value":3246},{"type":21,"tag":2338,"props":5099,"children":5101},{"class":2340,"line":5100},32,[5102,5107,5111],{"type":21,"tag":2338,"props":5103,"children":5104},{"style":2345},[5105],{"type":26,"value":5106},"n ",{"type":21,"tag":2338,"props":5108,"children":5109},{"style":3219},[5110],{"type":26,"value":3259},{"type":21,"tag":2338,"props":5112,"children":5113},{"style":2363},[5114],{"type":26,"value":5115}," 2\n",{"type":21,"tag":2338,"props":5117,"children":5119},{"class":2340,"line":5118},33,[5120,5125,5129],{"type":21,"tag":2338,"props":5121,"children":5122},{"style":2345},[5123],{"type":26,"value":5124},"Minv ",{"type":21,"tag":2338,"props":5126,"children":5127},{"style":3219},[5128],{"type":26,"value":3259},{"type":21,"tag":2338,"props":5130,"children":5131},{"style":2345},[5132],{"type":26,"value":5133}," np.linalg.pinv(calibration_matrix(n, backend))\n",{"type":21,"tag":2338,"props":5135,"children":5137},{"class":2340,"line":5136},34,[5138],{"type":21,"tag":2338,"props":5139,"children":5140},{"emptyLinePlaceholder":3243},[5141],{"type":26,"value":3246},{"type":21,"tag":2338,"props":5143,"children":5145},{"class":2340,"line":5144},35,[5146,5151,5155,5160,5164,5168,5172],{"type":21,"tag":2338,"props":5147,"children":5148},{"style":2345},[5149],{"type":26,"value":5150},"bell ",{"type":21,"tag":2338,"props":5152,"children":5153},{"style":3219},[5154],{"type":26,"value":3259},{"type":21,"tag":2338,"props":5156,"children":5157},{"style":2345},[5158],{"type":26,"value":5159}," QuantumCircuit(",{"type":21,"tag":2338,"props":5161,"children":5162},{"style":2363},[5163],{"type":26,"value":2437},{"type":21,"tag":2338,"props":5165,"children":5166},{"style":2345},[5167],{"type":26,"value":1375},{"type":21,"tag":2338,"props":5169,"children":5170},{"style":2363},[5171],{"type":26,"value":2437},{"type":21,"tag":2338,"props":5173,"children":5174},{"style":2345},[5175],{"type":26,"value":3319},{"type":21,"tag":2338,"props":5177,"children":5179},{"class":2340,"line":5178},36,[5180,5185,5190],{"type":21,"tag":2338,"props":5181,"children":5182},{"style":2345},[5183],{"type":26,"value":5184},"bell.h(",{"type":21,"tag":2338,"props":5186,"children":5187},{"style":2363},[5188],{"type":26,"value":5189},"0",{"type":21,"tag":2338,"props":5191,"children":5192},{"style":2345},[5193],{"type":26,"value":3319},{"type":21,"tag":2338,"props":5195,"children":5197},{"class":2340,"line":5196},37,[5198,5203,5207,5211,5215],{"type":21,"tag":2338,"props":5199,"children":5200},{"style":2345},[5201],{"type":26,"value":5202},"bell.cx(",{"type":21,"tag":2338,"props":5204,"children":5205},{"style":2363},[5206],{"type":26,"value":5189},{"type":21,"tag":2338,"props":5208,"children":5209},{"style":2345},[5210],{"type":26,"value":1375},{"type":21,"tag":2338,"props":5212,"children":5213},{"style":2363},[5214],{"type":26,"value":3575},{"type":21,"tag":2338,"props":5216,"children":5217},{"style":2345},[5218],{"type":26,"value":3319},{"type":21,"tag":2338,"props":5220,"children":5222},{"class":2340,"line":5221},38,[5223,5228,5232,5236,5240,5245,5249,5253,5257],{"type":21,"tag":2338,"props":5224,"children":5225},{"style":2345},[5226],{"type":26,"value":5227},"bell.measure([",{"type":21,"tag":2338,"props":5229,"children":5230},{"style":2363},[5231],{"type":26,"value":5189},{"type":21,"tag":2338,"props":5233,"children":5234},{"style":2345},[5235],{"type":26,"value":1375},{"type":21,"tag":2338,"props":5237,"children":5238},{"style":2363},[5239],{"type":26,"value":3575},{"type":21,"tag":2338,"props":5241,"children":5242},{"style":2345},[5243],{"type":26,"value":5244},"], [",{"type":21,"tag":2338,"props":5246,"children":5247},{"style":2363},[5248],{"type":26,"value":5189},{"type":21,"tag":2338,"props":5250,"children":5251},{"style":2345},[5252],{"type":26,"value":1375},{"type":21,"tag":2338,"props":5254,"children":5255},{"style":2363},[5256],{"type":26,"value":3575},{"type":21,"tag":2338,"props":5258,"children":5259},{"style":2345},[5260],{"type":26,"value":3580},{"type":21,"tag":2338,"props":5262,"children":5264},{"class":2340,"line":5263},39,[5265],{"type":21,"tag":2338,"props":5266,"children":5267},{"emptyLinePlaceholder":3243},[5268],{"type":26,"value":3246},{"type":21,"tag":2338,"props":5270,"children":5272},{"class":2340,"line":5271},40,[5273,5278,5282,5287,5291,5295,5299],{"type":21,"tag":2338,"props":5274,"children":5275},{"style":2345},[5276],{"type":26,"value":5277},"raw ",{"type":21,"tag":2338,"props":5279,"children":5280},{"style":3219},[5281],{"type":26,"value":3259},{"type":21,"tag":2338,"props":5283,"children":5284},{"style":2345},[5285],{"type":26,"value":5286}," backend.run(transpile(bell, backend), ",{"type":21,"tag":2338,"props":5288,"children":5289},{"style":3284},[5290],{"type":26,"value":4144},{"type":21,"tag":2338,"props":5292,"children":5293},{"style":3219},[5294],{"type":26,"value":3259},{"type":21,"tag":2338,"props":5296,"children":5297},{"style":2363},[5298],{"type":26,"value":4658},{"type":21,"tag":2338,"props":5300,"children":5301},{"style":2345},[5302],{"type":26,"value":5303},").result().get_counts()\n",{"type":21,"tag":2338,"props":5305,"children":5307},{"class":2340,"line":5306},41,[5308,5313,5317,5322,5327,5331,5335,5339,5343,5347,5351,5355,5360,5364,5369,5373,5377,5381,5385,5389,5393,5397,5402,5407,5411,5415],{"type":21,"tag":2338,"props":5309,"children":5310},{"style":2345},[5311],{"type":26,"value":5312},"vec ",{"type":21,"tag":2338,"props":5314,"children":5315},{"style":3219},[5316],{"type":26,"value":3259},{"type":21,"tag":2338,"props":5318,"children":5319},{"style":2345},[5320],{"type":26,"value":5321}," np.array([raw.get(",{"type":21,"tag":2338,"props":5323,"children":5324},{"style":2363},[5325],{"type":26,"value":5326},"format",{"type":21,"tag":2338,"props":5328,"children":5329},{"style":2345},[5330],{"type":26,"value":4832},{"type":21,"tag":2338,"props":5332,"children":5333},{"style":3219},[5334],{"type":26,"value":3344},{"type":21,"tag":2338,"props":5336,"children":5337},{"style":2374},[5338],{"type":26,"value":4841},{"type":21,"tag":2338,"props":5340,"children":5341},{"style":2363},[5342],{"type":26,"value":3354},{"type":21,"tag":2338,"props":5344,"children":5345},{"style":2345},[5346],{"type":26,"value":4850},{"type":21,"tag":2338,"props":5348,"children":5349},{"style":2363},[5350],{"type":26,"value":3364},{"type":21,"tag":2338,"props":5352,"children":5353},{"style":2374},[5354],{"type":26,"value":4859},{"type":21,"tag":2338,"props":5356,"children":5357},{"style":2345},[5358],{"type":26,"value":5359},"), ",{"type":21,"tag":2338,"props":5361,"children":5362},{"style":2363},[5363],{"type":26,"value":5189},{"type":21,"tag":2338,"props":5365,"children":5366},{"style":2345},[5367],{"type":26,"value":5368},") ",{"type":21,"tag":2338,"props":5370,"children":5371},{"style":3219},[5372],{"type":26,"value":3512},{"type":21,"tag":2338,"props":5374,"children":5375},{"style":2345},[5376],{"type":26,"value":4766},{"type":21,"tag":2338,"props":5378,"children":5379},{"style":3219},[5380],{"type":26,"value":3522},{"type":21,"tag":2338,"props":5382,"children":5383},{"style":2363},[5384],{"type":26,"value":3527},{"type":21,"tag":2338,"props":5386,"children":5387},{"style":2345},[5388],{"type":26,"value":3339},{"type":21,"tag":2338,"props":5390,"children":5391},{"style":2363},[5392],{"type":26,"value":2437},{"type":21,"tag":2338,"props":5394,"children":5395},{"style":3219},[5396],{"type":26,"value":4734},{"type":21,"tag":2338,"props":5398,"children":5399},{"style":2345},[5400],{"type":26,"value":5401},"n)], ",{"type":21,"tag":2338,"props":5403,"children":5404},{"style":2363},[5405],{"type":26,"value":5406},"float",{"type":21,"tag":2338,"props":5408,"children":5409},{"style":2345},[5410],{"type":26,"value":5368},{"type":21,"tag":2338,"props":5412,"children":5413},{"style":3219},[5414],{"type":26,"value":2192},{"type":21,"tag":2338,"props":5416,"children":5417},{"style":2363},[5418],{"type":26,"value":5419}," SHOTS\n",{"type":21,"tag":2338,"props":5421,"children":5423},{"class":2340,"line":5422},42,[5424],{"type":21,"tag":2338,"props":5425,"children":5426},{"emptyLinePlaceholder":3243},[5427],{"type":26,"value":3246},{"type":21,"tag":2338,"props":5429,"children":5431},{"class":2340,"line":5430},43,[5432,5437,5441,5446,5451,5456,5460,5464,5469],{"type":21,"tag":2338,"props":5433,"children":5434},{"style":2345},[5435],{"type":26,"value":5436},"mit ",{"type":21,"tag":2338,"props":5438,"children":5439},{"style":3219},[5440],{"type":26,"value":3259},{"type":21,"tag":2338,"props":5442,"children":5443},{"style":2345},[5444],{"type":26,"value":5445}," np.clip(Minv ",{"type":21,"tag":2338,"props":5447,"children":5448},{"style":3219},[5449],{"type":26,"value":5450},"@",{"type":21,"tag":2338,"props":5452,"children":5453},{"style":2345},[5454],{"type":26,"value":5455}," vec, ",{"type":21,"tag":2338,"props":5457,"children":5458},{"style":2363},[5459],{"type":26,"value":5189},{"type":21,"tag":2338,"props":5461,"children":5462},{"style":2345},[5463],{"type":26,"value":1375},{"type":21,"tag":2338,"props":5465,"children":5466},{"style":2363},[5467],{"type":26,"value":5468},"None",{"type":21,"tag":2338,"props":5470,"children":5471},{"style":2345},[5472],{"type":26,"value":3319},{"type":21,"tag":2338,"props":5474,"children":5476},{"class":2340,"line":5475},44,[5477,5481,5486],{"type":21,"tag":2338,"props":5478,"children":5479},{"style":2345},[5480],{"type":26,"value":5436},{"type":21,"tag":2338,"props":5482,"children":5483},{"style":3219},[5484],{"type":26,"value":5485},"\u002F=",{"type":21,"tag":2338,"props":5487,"children":5488},{"style":2345},[5489],{"type":26,"value":5490}," mit.sum()\n",{"type":21,"tag":2338,"props":5492,"children":5494},{"class":2340,"line":5493},45,[5495],{"type":21,"tag":2338,"props":5496,"children":5497},{"emptyLinePlaceholder":3243},[5498],{"type":26,"value":3246},{"type":21,"tag":2338,"props":5500,"children":5502},{"class":2340,"line":5501},46,[5503,5507,5511,5516,5521,5525,5529,5534,5539,5544,5549,5554,5558,5562,5566,5570,5574,5578,5582],{"type":21,"tag":2338,"props":5504,"children":5505},{"style":2363},[5506],{"type":26,"value":3334},{"type":21,"tag":2338,"props":5508,"children":5509},{"style":2345},[5510],{"type":26,"value":3339},{"type":21,"tag":2338,"props":5512,"children":5513},{"style":2374},[5514],{"type":26,"value":5515},"\"raw      :\"",{"type":21,"tag":2338,"props":5517,"children":5518},{"style":2345},[5519],{"type":26,"value":5520},", {",{"type":21,"tag":2338,"props":5522,"children":5523},{"style":2363},[5524],{"type":26,"value":5326},{"type":21,"tag":2338,"props":5526,"children":5527},{"style":2345},[5528],{"type":26,"value":4832},{"type":21,"tag":2338,"props":5530,"children":5531},{"style":2374},[5532],{"type":26,"value":5533},"\"02b\"",{"type":21,"tag":2338,"props":5535,"children":5536},{"style":2345},[5537],{"type":26,"value":5538},"): ",{"type":21,"tag":2338,"props":5540,"children":5541},{"style":2363},[5542],{"type":26,"value":5543},"round",{"type":21,"tag":2338,"props":5545,"children":5546},{"style":2345},[5547],{"type":26,"value":5548},"(vec[i], ",{"type":21,"tag":2338,"props":5550,"children":5551},{"style":2363},[5552],{"type":26,"value":5553},"4",{"type":21,"tag":2338,"props":5555,"children":5556},{"style":2345},[5557],{"type":26,"value":5368},{"type":21,"tag":2338,"props":5559,"children":5560},{"style":3219},[5561],{"type":26,"value":3512},{"type":21,"tag":2338,"props":5563,"children":5564},{"style":2345},[5565],{"type":26,"value":4766},{"type":21,"tag":2338,"props":5567,"children":5568},{"style":3219},[5569],{"type":26,"value":3522},{"type":21,"tag":2338,"props":5571,"children":5572},{"style":2363},[5573],{"type":26,"value":3527},{"type":21,"tag":2338,"props":5575,"children":5576},{"style":2345},[5577],{"type":26,"value":3339},{"type":21,"tag":2338,"props":5579,"children":5580},{"style":2363},[5581],{"type":26,"value":5553},{"type":21,"tag":2338,"props":5583,"children":5584},{"style":2345},[5585],{"type":26,"value":5586},")})\n",{"type":21,"tag":2338,"props":5588,"children":5590},{"class":2340,"line":5589},47,[5591,5595,5599,5604,5608,5612,5616,5620,5624,5628,5633,5637,5641,5645,5649,5653,5657,5661,5665],{"type":21,"tag":2338,"props":5592,"children":5593},{"style":2363},[5594],{"type":26,"value":3334},{"type":21,"tag":2338,"props":5596,"children":5597},{"style":2345},[5598],{"type":26,"value":3339},{"type":21,"tag":2338,"props":5600,"children":5601},{"style":2374},[5602],{"type":26,"value":5603},"\"mitigated:\"",{"type":21,"tag":2338,"props":5605,"children":5606},{"style":2345},[5607],{"type":26,"value":5520},{"type":21,"tag":2338,"props":5609,"children":5610},{"style":2363},[5611],{"type":26,"value":5326},{"type":21,"tag":2338,"props":5613,"children":5614},{"style":2345},[5615],{"type":26,"value":4832},{"type":21,"tag":2338,"props":5617,"children":5618},{"style":2374},[5619],{"type":26,"value":5533},{"type":21,"tag":2338,"props":5621,"children":5622},{"style":2345},[5623],{"type":26,"value":5538},{"type":21,"tag":2338,"props":5625,"children":5626},{"style":2363},[5627],{"type":26,"value":5543},{"type":21,"tag":2338,"props":5629,"children":5630},{"style":2345},[5631],{"type":26,"value":5632},"(mit[i], ",{"type":21,"tag":2338,"props":5634,"children":5635},{"style":2363},[5636],{"type":26,"value":5553},{"type":21,"tag":2338,"props":5638,"children":5639},{"style":2345},[5640],{"type":26,"value":5368},{"type":21,"tag":2338,"props":5642,"children":5643},{"style":3219},[5644],{"type":26,"value":3512},{"type":21,"tag":2338,"props":5646,"children":5647},{"style":2345},[5648],{"type":26,"value":4766},{"type":21,"tag":2338,"props":5650,"children":5651},{"style":3219},[5652],{"type":26,"value":3522},{"type":21,"tag":2338,"props":5654,"children":5655},{"style":2363},[5656],{"type":26,"value":3527},{"type":21,"tag":2338,"props":5658,"children":5659},{"style":2345},[5660],{"type":26,"value":3339},{"type":21,"tag":2338,"props":5662,"children":5663},{"style":2363},[5664],{"type":26,"value":5553},{"type":21,"tag":2338,"props":5666,"children":5667},{"style":2345},[5668],{"type":26,"value":5586},{"type":21,"tag":22,"props":5670,"children":5671},{},[5672,5677],{"type":21,"tag":205,"props":5673,"children":5674},{},[5675],{"type":26,"value":5676},"Actual output from running this",{"type":26,"value":5678}," (Qiskit 2.5.0, Aer 0.17.2, 5% readout error):",{"type":21,"tag":2328,"props":5680,"children":5682},{"code":5681},"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",[5683],{"type":21,"tag":2097,"props":5684,"children":5685},{"__ignoreMap":7},[5686],{"type":26,"value":5681},{"type":21,"tag":22,"props":5688,"children":5689},{},[5690,5692,5698,5699,5705,5707,5713],{"type":26,"value":5691},"A Bell state should produce only ",{"type":21,"tag":2097,"props":5693,"children":5695},{"className":5694},[],[5696],{"type":26,"value":5697},"00",{"type":26,"value":149},{"type":21,"tag":2097,"props":5700,"children":5702},{"className":5701},[],[5703],{"type":26,"value":5704},"11",{"type":26,"value":5706},". 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":2097,"props":5708,"children":5710},{"className":5709},[],[5711],{"type":26,"value":5712},"2^n",{"type":26,"value":5714}," short calibration circuits.",{"type":21,"tag":22,"props":5716,"children":5717},{},[5718,5720,5725,5727,5733,5735,5740],{"type":26,"value":5719},"Two caveats. The ",{"type":21,"tag":2097,"props":5721,"children":5723},{"className":5722},[],[5724],{"type":26,"value":5712},{"type":26,"value":5726}," 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":41,"props":5728,"children":5730},{"href":5729},"\u002Fglossary\u002Fshot-noise",[5731],{"type":26,"value":5732},"shot noise",{"type":26,"value":5734},", which is why the code clips negatives. Run your calibration circuits with ",{"type":21,"tag":2071,"props":5736,"children":5737},{},[5738],{"type":26,"value":5739},"more",{"type":26,"value":5741}," shots than your actual experiment, not fewer.",{"type":21,"tag":29,"props":5743,"children":5745},{"id":5744},"step-2-dynamical-decoupling-nearly-free",[5746],{"type":26,"value":5747},"Step 2: Dynamical Decoupling (Nearly Free)",{"type":21,"tag":22,"props":5749,"children":5750},{},[5751,5753,5759,5761,5767],{"type":26,"value":5752},"Idle qubits are not safe qubits. While one part of your circuit executes, everything else is dephasing at its ",{"type":21,"tag":41,"props":5754,"children":5756},{"href":5755},"\u002Fglossary\u002Ft1-t2-time",[5757],{"type":26,"value":5758},"T2 rate",{"type":26,"value":5760},". Dynamical decoupling inserts pulse sequences (typically ",{"type":21,"tag":2097,"props":5762,"children":5764},{"className":5763},[],[5765],{"type":26,"value":5766},"X–delay–X–delay",{"type":26,"value":5768},") into idle windows, echoing away slow, low-frequency noise.",{"type":21,"tag":22,"props":5770,"children":5771},{},[5772,5774,5780],{"type":26,"value":5773},"In Qiskit this is a ",{"type":21,"tag":41,"props":5775,"children":5777},{"href":5776},"\u002Fglossary\u002Ftranspilation",[5778],{"type":26,"value":5779},"transpilation",{"type":26,"value":5781}," pass, not an algorithm change:",{"type":21,"tag":2328,"props":5783,"children":5785},{"code":5784,"language":3209,"meta":7,"className":3207,"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",[5786],{"type":21,"tag":2097,"props":5787,"children":5788},{"__ignoreMap":7},[5789,5810,5831,5852,5859,5876,5898,5906,5923,5945,5953,5960],{"type":21,"tag":2338,"props":5790,"children":5791},{"class":2340,"line":2341},[5792,5796,5801,5805],{"type":21,"tag":2338,"props":5793,"children":5794},{"style":3219},[5795],{"type":26,"value":3222},{"type":21,"tag":2338,"props":5797,"children":5798},{"style":2345},[5799],{"type":26,"value":5800}," qiskit.transpiler ",{"type":21,"tag":2338,"props":5802,"children":5803},{"style":3219},[5804],{"type":26,"value":3232},{"type":21,"tag":2338,"props":5806,"children":5807},{"style":2345},[5808],{"type":26,"value":5809}," PassManager\n",{"type":21,"tag":2338,"props":5811,"children":5812},{"class":2340,"line":173},[5813,5817,5822,5826],{"type":21,"tag":2338,"props":5814,"children":5815},{"style":3219},[5816],{"type":26,"value":3222},{"type":21,"tag":2338,"props":5818,"children":5819},{"style":2345},[5820],{"type":26,"value":5821}," qiskit.transpiler.passes ",{"type":21,"tag":2338,"props":5823,"children":5824},{"style":3219},[5825],{"type":26,"value":3232},{"type":21,"tag":2338,"props":5827,"children":5828},{"style":2345},[5829],{"type":26,"value":5830}," ALAPScheduleAnalysis, PadDynamicalDecoupling\n",{"type":21,"tag":2338,"props":5832,"children":5833},{"class":2340,"line":2359},[5834,5838,5843,5847],{"type":21,"tag":2338,"props":5835,"children":5836},{"style":3219},[5837],{"type":26,"value":3222},{"type":21,"tag":2338,"props":5839,"children":5840},{"style":2345},[5841],{"type":26,"value":5842}," qiskit.circuit.library ",{"type":21,"tag":2338,"props":5844,"children":5845},{"style":3219},[5846],{"type":26,"value":3232},{"type":21,"tag":2338,"props":5848,"children":5849},{"style":2345},[5850],{"type":26,"value":5851}," XGate\n",{"type":21,"tag":2338,"props":5853,"children":5854},{"class":2340,"line":2421},[5855],{"type":21,"tag":2338,"props":5856,"children":5857},{"emptyLinePlaceholder":3243},[5858],{"type":26,"value":3246},{"type":21,"tag":2338,"props":5860,"children":5861},{"class":2340,"line":2445},[5862,5867,5871],{"type":21,"tag":2338,"props":5863,"children":5864},{"style":2345},[5865],{"type":26,"value":5866},"pm ",{"type":21,"tag":2338,"props":5868,"children":5869},{"style":3219},[5870],{"type":26,"value":3259},{"type":21,"tag":2338,"props":5872,"children":5873},{"style":2345},[5874],{"type":26,"value":5875}," PassManager([\n",{"type":21,"tag":2338,"props":5877,"children":5878},{"class":2340,"line":877},[5879,5884,5889,5893],{"type":21,"tag":2338,"props":5880,"children":5881},{"style":2345},[5882],{"type":26,"value":5883},"    ALAPScheduleAnalysis(",{"type":21,"tag":2338,"props":5885,"children":5886},{"style":3284},[5887],{"type":26,"value":5888},"durations",{"type":21,"tag":2338,"props":5890,"children":5891},{"style":3219},[5892],{"type":26,"value":3259},{"type":21,"tag":2338,"props":5894,"children":5895},{"style":2345},[5896],{"type":26,"value":5897},"backend.instruction_durations),\n",{"type":21,"tag":2338,"props":5899,"children":5900},{"class":2340,"line":196},[5901],{"type":21,"tag":2338,"props":5902,"children":5903},{"style":2345},[5904],{"type":26,"value":5905},"    PadDynamicalDecoupling(\n",{"type":21,"tag":2338,"props":5907,"children":5908},{"class":2340,"line":951},[5909,5914,5918],{"type":21,"tag":2338,"props":5910,"children":5911},{"style":3284},[5912],{"type":26,"value":5913},"        durations",{"type":21,"tag":2338,"props":5915,"children":5916},{"style":3219},[5917],{"type":26,"value":3259},{"type":21,"tag":2338,"props":5919,"children":5920},{"style":2345},[5921],{"type":26,"value":5922},"backend.instruction_durations,\n",{"type":21,"tag":2338,"props":5924,"children":5925},{"class":2340,"line":16},[5926,5931,5935,5940],{"type":21,"tag":2338,"props":5927,"children":5928},{"style":3284},[5929],{"type":26,"value":5930},"        dd_sequence",{"type":21,"tag":2338,"props":5932,"children":5933},{"style":3219},[5934],{"type":26,"value":3259},{"type":21,"tag":2338,"props":5936,"children":5937},{"style":2345},[5938],{"type":26,"value":5939},"[XGate(), XGate()],   ",{"type":21,"tag":2338,"props":5941,"children":5942},{"style":3469},[5943],{"type":26,"value":5944},"# XX sequence\n",{"type":21,"tag":2338,"props":5946,"children":5947},{"class":2340,"line":3465},[5948],{"type":21,"tag":2338,"props":5949,"children":5950},{"style":2345},[5951],{"type":26,"value":5952},"    ),\n",{"type":21,"tag":2338,"props":5954,"children":5955},{"class":2340,"line":3475},[5956],{"type":21,"tag":2338,"props":5957,"children":5958},{"style":2345},[5959],{"type":26,"value":3580},{"type":21,"tag":2338,"props":5961,"children":5962},{"class":2340,"line":500},[5963,5968,5972],{"type":21,"tag":2338,"props":5964,"children":5965},{"style":2345},[5966],{"type":26,"value":5967},"dd_circuit ",{"type":21,"tag":2338,"props":5969,"children":5970},{"style":3219},[5971],{"type":26,"value":3259},{"type":21,"tag":2338,"props":5973,"children":5974},{"style":2345},[5975],{"type":26,"value":5976}," pm.run(transpiled_circuit)\n",{"type":21,"tag":22,"props":5978,"children":5979},{},[5980],{"type":26,"value":5981},"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":29,"props":5983,"children":5985},{"id":5984},"step-3-pauli-twirling-randomized-compiling",[5986],{"type":26,"value":5987},"Step 3: Pauli Twirling \u002F Randomized Compiling",{"type":21,"tag":22,"props":5989,"children":5990},{},[5991,5993,5998],{"type":26,"value":5992},"Coherent errors are the nasty kind. A systematic over-rotation of 0.5° per gate doesn't average out. It accumulates ",{"type":21,"tag":2071,"props":5994,"children":5995},{},[5996],{"type":26,"value":5997},"linearly",{"type":26,"value":5999}," in amplitude, so error in the expectation value grows quadratically with depth. Stochastic errors merely accumulate additively.",{"type":21,"tag":22,"props":6001,"children":6002},{},[6003],{"type":26,"value":6004},"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":6006,"children":6007},{},[6008,6010,6015],{"type":26,"value":6009},"Twirling rarely improves accuracy much on its own. Its real value is that it makes the noise ",{"type":21,"tag":2071,"props":6011,"children":6012},{},[6013],{"type":26,"value":6014},"model-able",{"type":26,"value":6016},", 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":29,"props":6018,"children":6020},{"id":6019},"step-4-zero-noise-extrapolation",[6021],{"type":26,"value":6022},"Step 4: Zero-Noise Extrapolation",{"type":21,"tag":22,"props":6024,"children":6025},{},[6026,6028,6033],{"type":26,"value":6027},"ZNE is the technique behind most headline NISQ results, including IBM's ",{"type":21,"tag":41,"props":6029,"children":6030},{"href":115},[6031],{"type":26,"value":6032},"quantum utility demonstration",{"type":26,"value":6034}," on a 127-qubit Eagle processor.",{"type":21,"tag":22,"props":6036,"children":6037},{},[6038,6040,6045,6047,6053,6055,6061],{"type":26,"value":6039},"The idea: you can't reduce hardware noise, but you ",{"type":21,"tag":2071,"props":6041,"children":6042},{},[6043],{"type":26,"value":6044},"increase",{"type":26,"value":6046}," it in a controlled way. Run the same circuit at noise scale factors λ = 1, 3, 5 (via unitary folding: replace ",{"type":21,"tag":2097,"props":6048,"children":6050},{"className":6049},[],[6051],{"type":26,"value":6052},"U",{"type":26,"value":6054}," with ",{"type":21,"tag":2097,"props":6056,"children":6058},{"className":6057},[],[6059],{"type":26,"value":6060},"U(U†U)^k",{"type":26,"value":6062},", 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":2328,"props":6064,"children":6066},{"code":6065,"language":3209,"meta":7,"className":3207,"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",[6067],{"type":21,"tag":2097,"props":6068,"children":6069},{"__ignoreMap":7},[6070,6087,6095,6134,6151,6176,6193,6205,6212,6242,6259,6267,6284,6322,6330,6420,6450,6457,6465,6489,6505,6537,6558,6589,6620,6640,6659,6666,6709,6744,6783],{"type":21,"tag":2338,"props":6071,"children":6072},{"class":2340,"line":2341},[6073,6077,6082],{"type":21,"tag":2338,"props":6074,"children":6075},{"style":3219},[6076],{"type":26,"value":4382},{"type":21,"tag":2338,"props":6078,"children":6079},{"style":4385},[6080],{"type":26,"value":6081}," fold_global",{"type":21,"tag":2338,"props":6083,"children":6084},{"style":2345},[6085],{"type":26,"value":6086},"(qc, scale):\n",{"type":21,"tag":2338,"props":6088,"children":6089},{"class":2340,"line":173},[6090],{"type":21,"tag":2338,"props":6091,"children":6092},{"style":2374},[6093],{"type":26,"value":6094},"    \"\"\"Odd integer scale: U -> U (U^dag U)^k\"\"\"\n",{"type":21,"tag":2338,"props":6096,"children":6097},{"class":2340,"line":2359},[6098,6103,6107,6112,6116,6121,6125,6130],{"type":21,"tag":2338,"props":6099,"children":6100},{"style":2345},[6101],{"type":26,"value":6102},"    k ",{"type":21,"tag":2338,"props":6104,"children":6105},{"style":3219},[6106],{"type":26,"value":3259},{"type":21,"tag":2338,"props":6108,"children":6109},{"style":2345},[6110],{"type":26,"value":6111}," (scale ",{"type":21,"tag":2338,"props":6113,"children":6114},{"style":3219},[6115],{"type":26,"value":4869},{"type":21,"tag":2338,"props":6117,"children":6118},{"style":2363},[6119],{"type":26,"value":6120}," 1",{"type":21,"tag":2338,"props":6122,"children":6123},{"style":2345},[6124],{"type":26,"value":5368},{"type":21,"tag":2338,"props":6126,"children":6127},{"style":3219},[6128],{"type":26,"value":6129},"\u002F\u002F",{"type":21,"tag":2338,"props":6131,"children":6132},{"style":2363},[6133],{"type":26,"value":5115},{"type":21,"tag":2338,"props":6135,"children":6136},{"class":2340,"line":2421},[6137,6142,6146],{"type":21,"tag":2338,"props":6138,"children":6139},{"style":2345},[6140],{"type":26,"value":6141},"    out, inv ",{"type":21,"tag":2338,"props":6143,"children":6144},{"style":3219},[6145],{"type":26,"value":3259},{"type":21,"tag":2338,"props":6147,"children":6148},{"style":2345},[6149],{"type":26,"value":6150}," qc.copy(), qc.inverse()\n",{"type":21,"tag":2338,"props":6152,"children":6153},{"class":2340,"line":2445},[6154,6158,6163,6167,6171],{"type":21,"tag":2338,"props":6155,"children":6156},{"style":3219},[6157],{"type":26,"value":4761},{"type":21,"tag":2338,"props":6159,"children":6160},{"style":2345},[6161],{"type":26,"value":6162}," _ ",{"type":21,"tag":2338,"props":6164,"children":6165},{"style":3219},[6166],{"type":26,"value":3522},{"type":21,"tag":2338,"props":6168,"children":6169},{"style":2363},[6170],{"type":26,"value":3527},{"type":21,"tag":2338,"props":6172,"children":6173},{"style":2345},[6174],{"type":26,"value":6175},"(k):\n",{"type":21,"tag":2338,"props":6177,"children":6178},{"class":2340,"line":877},[6179,6184,6188],{"type":21,"tag":2338,"props":6180,"children":6181},{"style":2345},[6182],{"type":26,"value":6183},"        out ",{"type":21,"tag":2338,"props":6185,"children":6186},{"style":3219},[6187],{"type":26,"value":3259},{"type":21,"tag":2338,"props":6189,"children":6190},{"style":2345},[6191],{"type":26,"value":6192}," out.compose(inv).compose(qc)\n",{"type":21,"tag":2338,"props":6194,"children":6195},{"class":2340,"line":196},[6196,6200],{"type":21,"tag":2338,"props":6197,"children":6198},{"style":3219},[6199],{"type":26,"value":4607},{"type":21,"tag":2338,"props":6201,"children":6202},{"style":2345},[6203],{"type":26,"value":6204}," out\n",{"type":21,"tag":2338,"props":6206,"children":6207},{"class":2340,"line":951},[6208],{"type":21,"tag":2338,"props":6209,"children":6210},{"emptyLinePlaceholder":3243},[6211],{"type":26,"value":3246},{"type":21,"tag":2338,"props":6213,"children":6214},{"class":2340,"line":16},[6215,6219,6224,6229,6233,6238],{"type":21,"tag":2338,"props":6216,"children":6217},{"style":3219},[6218],{"type":26,"value":4382},{"type":21,"tag":2338,"props":6220,"children":6221},{"style":4385},[6222],{"type":26,"value":6223}," expval_parity",{"type":21,"tag":2338,"props":6225,"children":6226},{"style":2345},[6227],{"type":26,"value":6228},"(qc, backend, shots",{"type":21,"tag":2338,"props":6230,"children":6231},{"style":3219},[6232],{"type":26,"value":3259},{"type":21,"tag":2338,"props":6234,"children":6235},{"style":2363},[6236],{"type":26,"value":6237},"40000",{"type":21,"tag":2338,"props":6239,"children":6240},{"style":2345},[6241],{"type":26,"value":4435},{"type":21,"tag":2338,"props":6243,"children":6244},{"class":2340,"line":3465},[6245,6250,6254],{"type":21,"tag":2338,"props":6246,"children":6247},{"style":2345},[6248],{"type":26,"value":6249},"    c ",{"type":21,"tag":2338,"props":6251,"children":6252},{"style":3219},[6253],{"type":26,"value":3259},{"type":21,"tag":2338,"props":6255,"children":6256},{"style":2345},[6257],{"type":26,"value":6258}," qc.copy()\n",{"type":21,"tag":2338,"props":6260,"children":6261},{"class":2340,"line":3475},[6262],{"type":21,"tag":2338,"props":6263,"children":6264},{"style":2345},[6265],{"type":26,"value":6266},"    c.measure_all()\n",{"type":21,"tag":2338,"props":6268,"children":6269},{"class":2340,"line":500},[6270,6275,6279],{"type":21,"tag":2338,"props":6271,"children":6272},{"style":2345},[6273],{"type":26,"value":6274},"    counts ",{"type":21,"tag":2338,"props":6276,"children":6277},{"style":3219},[6278],{"type":26,"value":3259},{"type":21,"tag":2338,"props":6280,"children":6281},{"style":2345},[6282],{"type":26,"value":6283}," backend.run(\n",{"type":21,"tag":2338,"props":6285,"children":6286},{"class":2340,"line":3535},[6287,6292,6297,6301,6305,6309,6313,6317],{"type":21,"tag":2338,"props":6288,"children":6289},{"style":2345},[6290],{"type":26,"value":6291},"        transpile(c, backend, ",{"type":21,"tag":2338,"props":6293,"children":6294},{"style":3284},[6295],{"type":26,"value":6296},"optimization_level",{"type":21,"tag":2338,"props":6298,"children":6299},{"style":3219},[6300],{"type":26,"value":3259},{"type":21,"tag":2338,"props":6302,"children":6303},{"style":2363},[6304],{"type":26,"value":5189},{"type":21,"tag":2338,"props":6306,"children":6307},{"style":2345},[6308],{"type":26,"value":5359},{"type":21,"tag":2338,"props":6310,"children":6311},{"style":3284},[6312],{"type":26,"value":4144},{"type":21,"tag":2338,"props":6314,"children":6315},{"style":3219},[6316],{"type":26,"value":3259},{"type":21,"tag":2338,"props":6318,"children":6319},{"style":2345},[6320],{"type":26,"value":6321},"shots\n",{"type":21,"tag":2338,"props":6323,"children":6324},{"class":2340,"line":3583},[6325],{"type":21,"tag":2338,"props":6326,"children":6327},{"style":2345},[6328],{"type":26,"value":6329},"    ).result().get_counts()\n",{"type":21,"tag":2338,"props":6331,"children":6332},{"class":2340,"line":3625},[6333,6337,6342,6347,6351,6355,6359,6363,6368,6373,6377,6382,6387,6392,6396,6401,6406,6410,6415],{"type":21,"tag":2338,"props":6334,"children":6335},{"style":3219},[6336],{"type":26,"value":4607},{"type":21,"tag":2338,"props":6338,"children":6339},{"style":2363},[6340],{"type":26,"value":6341}," sum",{"type":21,"tag":2338,"props":6343,"children":6344},{"style":2345},[6345],{"type":26,"value":6346},"((",{"type":21,"tag":2338,"props":6348,"children":6349},{"style":3219},[6350],{"type":26,"value":4869},{"type":21,"tag":2338,"props":6352,"children":6353},{"style":2363},[6354],{"type":26,"value":3575},{"type":21,"tag":2338,"props":6356,"children":6357},{"style":2345},[6358],{"type":26,"value":5368},{"type":21,"tag":2338,"props":6360,"children":6361},{"style":3219},[6362],{"type":26,"value":4734},{"type":21,"tag":2338,"props":6364,"children":6365},{"style":2345},[6366],{"type":26,"value":6367}," (k.replace(",{"type":21,"tag":2338,"props":6369,"children":6370},{"style":2374},[6371],{"type":26,"value":6372},"\" \"",{"type":21,"tag":2338,"props":6374,"children":6375},{"style":2345},[6376],{"type":26,"value":1375},{"type":21,"tag":2338,"props":6378,"children":6379},{"style":2374},[6380],{"type":26,"value":6381},"\"\"",{"type":21,"tag":2338,"props":6383,"children":6384},{"style":2345},[6385],{"type":26,"value":6386},").count(",{"type":21,"tag":2338,"props":6388,"children":6389},{"style":2374},[6390],{"type":26,"value":6391},"\"1\"",{"type":21,"tag":2338,"props":6393,"children":6394},{"style":2345},[6395],{"type":26,"value":5368},{"type":21,"tag":2338,"props":6397,"children":6398},{"style":3219},[6399],{"type":26,"value":6400},"%",{"type":21,"tag":2338,"props":6402,"children":6403},{"style":2363},[6404],{"type":26,"value":6405}," 2",{"type":21,"tag":2338,"props":6407,"children":6408},{"style":2345},[6409],{"type":26,"value":5368},{"type":21,"tag":2338,"props":6411,"children":6412},{"style":3219},[6413],{"type":26,"value":6414},"*",{"type":21,"tag":2338,"props":6416,"children":6417},{"style":2345},[6418],{"type":26,"value":6419}," v\n",{"type":21,"tag":2338,"props":6421,"children":6422},{"class":2340,"line":4652},[6423,6428,6433,6437,6442,6446],{"type":21,"tag":2338,"props":6424,"children":6425},{"style":3219},[6426],{"type":26,"value":6427},"               for",{"type":21,"tag":2338,"props":6429,"children":6430},{"style":2345},[6431],{"type":26,"value":6432}," k, v ",{"type":21,"tag":2338,"props":6434,"children":6435},{"style":3219},[6436],{"type":26,"value":3522},{"type":21,"tag":2338,"props":6438,"children":6439},{"style":2345},[6440],{"type":26,"value":6441}," counts.items()) ",{"type":21,"tag":2338,"props":6443,"children":6444},{"style":3219},[6445],{"type":26,"value":2192},{"type":21,"tag":2338,"props":6447,"children":6448},{"style":2345},[6449],{"type":26,"value":5076},{"type":21,"tag":2338,"props":6451,"children":6452},{"class":2340,"line":4671},[6453],{"type":21,"tag":2338,"props":6454,"children":6455},{"emptyLinePlaceholder":3243},[6456],{"type":26,"value":3246},{"type":21,"tag":2338,"props":6458,"children":6459},{"class":2340,"line":4679},[6460],{"type":21,"tag":2338,"props":6461,"children":6462},{"style":3469},[6463],{"type":26,"value":6464},"# 4-qubit GHZ padded with cancelling CX pairs, ideal \u003CZZZZ> = +1.0\n",{"type":21,"tag":2338,"props":6466,"children":6467},{"class":2340,"line":4710},[6468,6473,6477,6481,6485],{"type":21,"tag":2338,"props":6469,"children":6470},{"style":2345},[6471],{"type":26,"value":6472},"base ",{"type":21,"tag":2338,"props":6474,"children":6475},{"style":3219},[6476],{"type":26,"value":3259},{"type":21,"tag":2338,"props":6478,"children":6479},{"style":2345},[6480],{"type":26,"value":5159},{"type":21,"tag":2338,"props":6482,"children":6483},{"style":2363},[6484],{"type":26,"value":5553},{"type":21,"tag":2338,"props":6486,"children":6487},{"style":2345},[6488],{"type":26,"value":3319},{"type":21,"tag":2338,"props":6490,"children":6491},{"class":2340,"line":4755},[6492,6497,6501],{"type":21,"tag":2338,"props":6493,"children":6494},{"style":2345},[6495],{"type":26,"value":6496},"base.h(",{"type":21,"tag":2338,"props":6498,"children":6499},{"style":2363},[6500],{"type":26,"value":5189},{"type":21,"tag":2338,"props":6502,"children":6503},{"style":2345},[6504],{"type":26,"value":3319},{"type":21,"tag":2338,"props":6506,"children":6507},{"class":2340,"line":4794},[6508,6512,6516,6520,6524,6528,6533],{"type":21,"tag":2338,"props":6509,"children":6510},{"style":3219},[6511],{"type":26,"value":3512},{"type":21,"tag":2338,"props":6513,"children":6514},{"style":2345},[6515],{"type":26,"value":3517},{"type":21,"tag":2338,"props":6517,"children":6518},{"style":3219},[6519],{"type":26,"value":3522},{"type":21,"tag":2338,"props":6521,"children":6522},{"style":2363},[6523],{"type":26,"value":3527},{"type":21,"tag":2338,"props":6525,"children":6526},{"style":2345},[6527],{"type":26,"value":3339},{"type":21,"tag":2338,"props":6529,"children":6530},{"style":2363},[6531],{"type":26,"value":6532},"3",{"type":21,"tag":2338,"props":6534,"children":6535},{"style":2345},[6536],{"type":26,"value":4435},{"type":21,"tag":2338,"props":6538,"children":6539},{"class":2340,"line":4812},[6540,6545,6550,6554],{"type":21,"tag":2338,"props":6541,"children":6542},{"style":2345},[6543],{"type":26,"value":6544},"    base.cx(q, q ",{"type":21,"tag":2338,"props":6546,"children":6547},{"style":3219},[6548],{"type":26,"value":6549},"+",{"type":21,"tag":2338,"props":6551,"children":6552},{"style":2363},[6553],{"type":26,"value":6120},{"type":21,"tag":2338,"props":6555,"children":6556},{"style":2345},[6557],{"type":26,"value":3319},{"type":21,"tag":2338,"props":6559,"children":6560},{"class":2340,"line":4886},[6561,6565,6569,6573,6577,6581,6585],{"type":21,"tag":2338,"props":6562,"children":6563},{"style":3219},[6564],{"type":26,"value":3512},{"type":21,"tag":2338,"props":6566,"children":6567},{"style":2345},[6568],{"type":26,"value":6162},{"type":21,"tag":2338,"props":6570,"children":6571},{"style":3219},[6572],{"type":26,"value":3522},{"type":21,"tag":2338,"props":6574,"children":6575},{"style":2363},[6576],{"type":26,"value":3527},{"type":21,"tag":2338,"props":6578,"children":6579},{"style":2345},[6580],{"type":26,"value":3339},{"type":21,"tag":2338,"props":6582,"children":6583},{"style":2363},[6584],{"type":26,"value":5553},{"type":21,"tag":2338,"props":6586,"children":6587},{"style":2345},[6588],{"type":26,"value":4435},{"type":21,"tag":2338,"props":6590,"children":6591},{"class":2340,"line":4914},[6592,6596,6600,6604,6608,6612,6616],{"type":21,"tag":2338,"props":6593,"children":6594},{"style":3219},[6595],{"type":26,"value":4761},{"type":21,"tag":2338,"props":6597,"children":6598},{"style":2345},[6599],{"type":26,"value":3517},{"type":21,"tag":2338,"props":6601,"children":6602},{"style":3219},[6603],{"type":26,"value":3522},{"type":21,"tag":2338,"props":6605,"children":6606},{"style":2363},[6607],{"type":26,"value":3527},{"type":21,"tag":2338,"props":6609,"children":6610},{"style":2345},[6611],{"type":26,"value":3339},{"type":21,"tag":2338,"props":6613,"children":6614},{"style":2363},[6615],{"type":26,"value":6532},{"type":21,"tag":2338,"props":6617,"children":6618},{"style":2345},[6619],{"type":26,"value":4435},{"type":21,"tag":2338,"props":6621,"children":6622},{"class":2340,"line":4943},[6623,6628,6632,6636],{"type":21,"tag":2338,"props":6624,"children":6625},{"style":2345},[6626],{"type":26,"value":6627},"        base.cx(q, q ",{"type":21,"tag":2338,"props":6629,"children":6630},{"style":3219},[6631],{"type":26,"value":6549},{"type":21,"tag":2338,"props":6633,"children":6634},{"style":2363},[6635],{"type":26,"value":6120},{"type":21,"tag":2338,"props":6637,"children":6638},{"style":2345},[6639],{"type":26,"value":3319},{"type":21,"tag":2338,"props":6641,"children":6642},{"class":2340,"line":4952},[6643,6647,6651,6655],{"type":21,"tag":2338,"props":6644,"children":6645},{"style":2345},[6646],{"type":26,"value":6627},{"type":21,"tag":2338,"props":6648,"children":6649},{"style":3219},[6650],{"type":26,"value":6549},{"type":21,"tag":2338,"props":6652,"children":6653},{"style":2363},[6654],{"type":26,"value":6120},{"type":21,"tag":2338,"props":6656,"children":6657},{"style":2345},[6658],{"type":26,"value":3319},{"type":21,"tag":2338,"props":6660,"children":6661},{"class":2340,"line":4980},[6662],{"type":21,"tag":2338,"props":6663,"children":6664},{"emptyLinePlaceholder":3243},[6665],{"type":26,"value":3246},{"type":21,"tag":2338,"props":6667,"children":6668},{"class":2340,"line":5011},[6669,6674,6678,6683,6687,6691,6695,6699,6704],{"type":21,"tag":2338,"props":6670,"children":6671},{"style":2345},[6672],{"type":26,"value":6673},"scales ",{"type":21,"tag":2338,"props":6675,"children":6676},{"style":3219},[6677],{"type":26,"value":3259},{"type":21,"tag":2338,"props":6679,"children":6680},{"style":2345},[6681],{"type":26,"value":6682}," [",{"type":21,"tag":2338,"props":6684,"children":6685},{"style":2363},[6686],{"type":26,"value":3575},{"type":21,"tag":2338,"props":6688,"children":6689},{"style":2345},[6690],{"type":26,"value":1375},{"type":21,"tag":2338,"props":6692,"children":6693},{"style":2363},[6694],{"type":26,"value":6532},{"type":21,"tag":2338,"props":6696,"children":6697},{"style":2345},[6698],{"type":26,"value":1375},{"type":21,"tag":2338,"props":6700,"children":6701},{"style":2363},[6702],{"type":26,"value":6703},"5",{"type":21,"tag":2338,"props":6705,"children":6706},{"style":2345},[6707],{"type":26,"value":6708},"]\n",{"type":21,"tag":2338,"props":6710,"children":6711},{"class":2340,"line":5033},[6712,6717,6721,6726,6730,6735,6739],{"type":21,"tag":2338,"props":6713,"children":6714},{"style":2345},[6715],{"type":26,"value":6716},"vals ",{"type":21,"tag":2338,"props":6718,"children":6719},{"style":3219},[6720],{"type":26,"value":3259},{"type":21,"tag":2338,"props":6722,"children":6723},{"style":2345},[6724],{"type":26,"value":6725}," [expval_parity(fold_global(base, s), backend) ",{"type":21,"tag":2338,"props":6727,"children":6728},{"style":3219},[6729],{"type":26,"value":3512},{"type":21,"tag":2338,"props":6731,"children":6732},{"style":2345},[6733],{"type":26,"value":6734}," s ",{"type":21,"tag":2338,"props":6736,"children":6737},{"style":3219},[6738],{"type":26,"value":3522},{"type":21,"tag":2338,"props":6740,"children":6741},{"style":2345},[6742],{"type":26,"value":6743}," scales]\n",{"type":21,"tag":2338,"props":6745,"children":6746},{"class":2340,"line":5079},[6747,6752,6756,6761,6765,6769,6773,6778],{"type":21,"tag":2338,"props":6748,"children":6749},{"style":2345},[6750],{"type":26,"value":6751},"zne ",{"type":21,"tag":2338,"props":6753,"children":6754},{"style":3219},[6755],{"type":26,"value":3259},{"type":21,"tag":2338,"props":6757,"children":6758},{"style":2345},[6759],{"type":26,"value":6760}," np.polyval(np.polyfit(scales, vals, ",{"type":21,"tag":2338,"props":6762,"children":6763},{"style":2363},[6764],{"type":26,"value":2437},{"type":21,"tag":2338,"props":6766,"children":6767},{"style":2345},[6768],{"type":26,"value":5359},{"type":21,"tag":2338,"props":6770,"children":6771},{"style":2363},[6772],{"type":26,"value":5189},{"type":21,"tag":2338,"props":6774,"children":6775},{"style":2345},[6776],{"type":26,"value":6777},")   ",{"type":21,"tag":2338,"props":6779,"children":6780},{"style":3469},[6781],{"type":26,"value":6782},"# Richardson, order 2\n",{"type":21,"tag":2338,"props":6784,"children":6785},{"class":2340,"line":5092},[6786,6790,6795,6800],{"type":21,"tag":2338,"props":6787,"children":6788},{"style":2363},[6789],{"type":26,"value":3334},{"type":21,"tag":2338,"props":6791,"children":6792},{"style":2345},[6793],{"type":26,"value":6794},"(vals, ",{"type":21,"tag":2338,"props":6796,"children":6797},{"style":2374},[6798],{"type":26,"value":6799},"\"->\"",{"type":21,"tag":2338,"props":6801,"children":6802},{"style":2345},[6803],{"type":26,"value":6804},", zne)\n",{"type":21,"tag":22,"props":6806,"children":6807},{},[6808,6813],{"type":21,"tag":205,"props":6809,"children":6810},{},[6811],{"type":26,"value":6812},"Real measured output",{"type":26,"value":6814},", same versions, readout error switched off to isolate gate noise. With a 0.4% two-qubit error rate:",{"type":21,"tag":2328,"props":6816,"children":6818},{"code":6817},"scale 1: 0.8973   scale 3: 0.7286   scale 5: 0.5767\nZNE estimate: 0.988   (exact: 1.000)\n",[6819],{"type":21,"tag":2097,"props":6820,"children":6821},{"__ignoreMap":7},[6822],{"type":26,"value":6817},{"type":21,"tag":22,"props":6824,"children":6825},{},[6826],{"type":26,"value":6827},"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":29,"props":6829,"children":6831},{"id":6830},"when-zne-lies",[6832],{"type":26,"value":6833},"When ZNE Lies",{"type":21,"tag":22,"props":6835,"children":6836},{},[6837],{"type":26,"value":6838},"Now turn the two-qubit error rate up to 4% and rerun the identical code:",{"type":21,"tag":2328,"props":6840,"children":6842},{"code":6841},"scale 1: 0.3311   scale 3: 0.0320   scale 5: 0.0008\nZNE estimate: 0.581   (exact: 1.000)\n",[6843],{"type":21,"tag":2097,"props":6844,"children":6845},{"__ignoreMap":7},[6846],{"type":26,"value":6841},{"type":21,"tag":22,"props":6848,"children":6849},{},[6850,6852,6857],{"type":26,"value":6851},"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":2071,"props":6853,"children":6854},{},[6855],{"type":26,"value":6856},"gone",{"type":26,"value":6858},". 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":6860,"children":6861},{},[6862,6864,6870,6872,6877,6879,6884],{"type":26,"value":6863},"This is precisely the failure mode Köster and Mauerer characterize in ",{"type":21,"tag":41,"props":6865,"children":6867},{"href":6866},"\u002Fresearch\u002Fzne-artefactual-improvements-2026",[6868],{"type":26,"value":6869},"Artefactual Improvements in Zero-Noise Extrapolation",{"type":26,"value":6871}," (2026). Their finding: once noise amplification pushes past usable signal, ",{"type":21,"tag":205,"props":6873,"children":6874},{},[6875],{"type":26,"value":6876},"Richardson extrapolation degenerates into a fixed rescaling of a single noisy measurement",{"type":26,"value":6878},". 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":2071,"props":6880,"children":6881},{},[6882],{"type":26,"value":6883},"overshot",{"type":26,"value":6885}," the ideal value by up to 21%.",{"type":21,"tag":22,"props":6887,"children":6888},{},[6889,6891,6896],{"type":26,"value":6890},"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":2071,"props":6892,"children":6893},{},[6894],{"type":26,"value":6895},"larger",{"type":26,"value":6897}," 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":6899,"children":6900},{},[6901,6906],{"type":21,"tag":205,"props":6902,"children":6903},{},[6904],{"type":26,"value":6905},"The operational lesson: improvement magnitude never validates a mitigation result.",{"type":26,"value":6907}," 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":29,"props":6909,"children":6911},{"id":6910},"the-sanity-checks-that-catch-this",[6912],{"type":26,"value":6913},"The Sanity Checks That Catch This",{"type":21,"tag":22,"props":6915,"children":6916},{},[6917],{"type":26,"value":6918},"Three of them, none expensive:",{"type":21,"tag":22,"props":6920,"children":6921},{},[6922,6927,6929,6935],{"type":21,"tag":205,"props":6923,"children":6924},{},[6925],{"type":26,"value":6926},"1. Inspect the raw scale-factor points, always.",{"type":26,"value":6928}," 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":2097,"props":6930,"children":6932},{"className":6931},[],[6933],{"type":26,"value":6934},"0.0008",{"type":26,"value":6936}," tells you the extrapolation is unsupported.",{"type":21,"tag":22,"props":6938,"children":6939},{},[6940,6945,6947,6952,6954,6960,6962,6967],{"type":21,"tag":205,"props":6941,"children":6942},{},[6943],{"type":26,"value":6944},"2. Run a negative control.",{"type":26,"value":6946}," Build a variant of your folding that ",{"type":21,"tag":2071,"props":6948,"children":6949},{},[6950],{"type":26,"value":6951},"shouldn't",{"type":26,"value":6953}," work (random gates of comparable depth instead of ",{"type":21,"tag":2097,"props":6955,"children":6957},{"className":6956},[],[6958],{"type":26,"value":6959},"U†U",{"type":26,"value":6961}," 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":2071,"props":6963,"children":6964},{},[6965],{"type":26,"value":6966},"away",{"type":26,"value":6968}," 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":6970,"children":6971},{},[6972,6983],{"type":21,"tag":205,"props":6973,"children":6974},{},[6975,6977,6981],{"type":26,"value":6976},"3. Verify against a ",{"type":21,"tag":41,"props":6978,"children":6979},{"href":472},[6980],{"type":26,"value":3305},{"type":26,"value":6982}," at small scale.",{"type":26,"value":6984}," Run the same mitigation pipeline on a problem size you compute exactly. If ZNE doesn't recover the known answer at 6 qubits, nothing about 60 qubits will be trustworthy.",{"type":21,"tag":29,"props":6986,"children":6988},{"id":6987},"probabilistic-error-cancellation-briefly",[6989],{"type":26,"value":6990},"Probabilistic Error Cancellation (Briefly)",{"type":21,"tag":22,"props":6992,"children":6993},{},[6994,6996,7001],{"type":26,"value":6995},"PEC is the rigorous option. Characterize the noise channel precisely, express the ",{"type":21,"tag":2071,"props":6997,"children":6998},{},[6999],{"type":26,"value":7000},"inverse",{"type":26,"value":7002}," 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":7004,"children":7005},{},[7006,7008,7014],{"type":26,"value":7007},"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":41,"props":7009,"children":7011},{"href":7010},"\u002Fglossary\u002Fshot-budget",[7012],{"type":26,"value":7013},"shot budget",{"type":26,"value":7015},". For most work, it isn't.",{"type":21,"tag":29,"props":7017,"children":7019},{"id":7018},"what-to-do",[7020],{"type":26,"value":7021},"What To Do",{"type":21,"tag":22,"props":7023,"children":7024},{},[7025],{"type":26,"value":7026},"In order:",{"type":21,"tag":7028,"props":7029,"children":7030},"ol",{},[7031,7041,7051,7061,7071],{"type":21,"tag":3141,"props":7032,"children":7033},{},[7034,7039],{"type":21,"tag":205,"props":7035,"children":7036},{},[7037],{"type":26,"value":7038},"Readout mitigation",{"type":26,"value":7040},": always. Cheap, bounded, low-risk.",{"type":21,"tag":3141,"props":7042,"children":7043},{},[7044,7049],{"type":21,"tag":205,"props":7045,"children":7046},{},[7047],{"type":26,"value":7048},"Dynamical decoupling",{"type":26,"value":7050},": always, if your circuit has idle qubits. Free.",{"type":21,"tag":3141,"props":7052,"children":7053},{},[7054,7059],{"type":21,"tag":205,"props":7055,"children":7056},{},[7057],{"type":26,"value":7058},"Twirling",{"type":26,"value":7060},": if you plan to use ZNE or PEC, so the noise is stochastic.",{"type":21,"tag":3141,"props":7062,"children":7063},{},[7064,7069],{"type":21,"tag":205,"props":7065,"children":7066},{},[7067],{"type":26,"value":7068},"ZNE",{"type":26,"value":7070},": only with scale-factor inspection and a negative control.",{"type":21,"tag":3141,"props":7072,"children":7073},{},[7074,7079],{"type":21,"tag":205,"props":7075,"children":7076},{},[7077],{"type":26,"value":7078},"PEC",{"type":26,"value":7080},": only when the circuit is small and the answer matters more than the cost.",{"type":21,"tag":22,"props":7082,"children":7083},{},[7084,7089,7091,7096,7098,7104],{"type":21,"tag":205,"props":7085,"children":7086},{},[7087],{"type":26,"value":7088},"Skip mitigation entirely when:",{"type":26,"value":7090}," 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":2071,"props":7092,"children":7093},{},[7094],{"type":26,"value":7095},"gradient direction",{"type":26,"value":7097},": 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":41,"props":7099,"children":7101},{"href":7100},"\u002Fblog\u002Freduce-shot-count",[7102],{"type":26,"value":7103},"cutting your shot count",{"type":26,"value":825},{"type":21,"tag":22,"props":7106,"children":7107},{},[7108,7110,7116],{"type":26,"value":7109},"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":41,"props":7111,"children":7113},{"href":7112},"\u002Fsdks\u002Fqiskit",[7114],{"type":26,"value":7115},"Qiskit tooling",{"type":26,"value":7117},", always sanity-check against exact simulation, and treat any unvalidated improvement as a hypothesis rather than a result.",{"type":21,"tag":22,"props":7119,"children":7120},{},[7121,7126,7127,7132,7134,7139,7140],{"type":21,"tag":205,"props":7122,"children":7123},{},[7124],{"type":26,"value":7125},"Related:",{"type":26,"value":1367},{"type":21,"tag":41,"props":7128,"children":7129},{"href":324},[7130],{"type":26,"value":7131},"Error correction explained",{"type":26,"value":7133}," · ",{"type":21,"tag":41,"props":7135,"children":7136},{"href":6866},[7137],{"type":26,"value":7138},"ZNE artefacts paper",{"type":26,"value":7133},{"type":21,"tag":41,"props":7141,"children":7143},{"href":7142},"\u002Fglossary\u002Fquantum-utility",[7144],{"type":26,"value":7145},"Quantum utility",{"type":21,"tag":2712,"props":7147,"children":7148},{},[7149],{"type":26,"value":2716},{"title":7,"searchDepth":173,"depth":173,"links":7151},[7152,7153,7154,7155,7156,7157,7158,7159,7160],{"id":4025,"depth":173,"text":4028},{"id":4222,"depth":173,"text":4225},{"id":5744,"depth":173,"text":5747},{"id":5984,"depth":173,"text":5987},{"id":6019,"depth":173,"text":6022},{"id":6830,"depth":173,"text":6833},{"id":6910,"depth":173,"text":6913},{"id":6987,"depth":173,"text":6990},{"id":7018,"depth":173,"text":7021},"content:blog:error-mitigation-practical-guide.md","blog\u002Ferror-mitigation-practical-guide.md","blog\u002Ferror-mitigation-practical-guide",{"_path":7165,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":7166,"description":7167,"date":3081,"author":11,"tags":7168,"readingTime":3465,"body":7171,"_type":180,"_id":8903,"_source":182,"_file":8904,"_stem":8905,"_extension":185},"\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.",[7169,15,7170],"Algorithms","Beginners",{"type":18,"children":7172,"toc":8891},[7173,7184,7189,7195,7200,7205,7217,7223,7228,7258,7263,7269,7282,7434,7447,7453,7458,7479,7800,7828,7834,7839,8061,8074,8080,8085,8093,8103,8108,8526,8531,8539,8551,8557,8569,8574,8582,8594,8606,8612,8617,8635,8645,8669,8681,8687,8699,8767,8786,8805,8811,8887],{"type":21,"tag":22,"props":7174,"children":7175},{},[7176,7182],{"type":21,"tag":41,"props":7177,"children":7179},{"href":7178},"\u002Fglossary\u002Fgrover-algorithm",[7180],{"type":26,"value":7181},"Grover's algorithm",{"type":26,"value":7183}," 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":7185,"children":7186},{},[7187],{"type":26,"value":7188},"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":29,"props":7190,"children":7192},{"id":7191},"the-problem-unstructured-search",[7193],{"type":26,"value":7194},"The Problem: Unstructured Search",{"type":21,"tag":22,"props":7196,"children":7197},{},[7198],{"type":26,"value":7199},"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":7201,"children":7202},{},[7203],{"type":26,"value":7204},"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":7206,"children":7207},{},[7208,7210,7215],{"type":26,"value":7209},"The word ",{"type":21,"tag":205,"props":7211,"children":7212},{},[7213],{"type":26,"value":7214},"unstructured",{"type":26,"value":7216}," 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":29,"props":7218,"children":7220},{"id":7219},"the-core-idea-amplitude-amplification",[7221],{"type":26,"value":7222},"The Core Idea: Amplitude Amplification",{"type":21,"tag":22,"props":7224,"children":7225},{},[7226],{"type":26,"value":7227},"Start with every state equally likely. Then repeat two operations:",{"type":21,"tag":7028,"props":7229,"children":7230},{},[7231,7248],{"type":21,"tag":3141,"props":7232,"children":7233},{},[7234,7239,7241,7246],{"type":21,"tag":205,"props":7235,"children":7236},{},[7237],{"type":26,"value":7238},"The oracle",{"type":26,"value":7240}," flips the ",{"type":21,"tag":2071,"props":7242,"children":7243},{},[7244],{"type":26,"value":7245},"sign",{"type":26,"value":7247}," 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":3141,"props":7249,"children":7250},{},[7251,7256],{"type":21,"tag":205,"props":7252,"children":7253},{},[7254],{"type":26,"value":7255},"The diffusion operator",{"type":26,"value":7257}," 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":7259,"children":7260},{},[7261],{"type":26,"value":7262},"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":29,"props":7264,"children":7266},{"id":7265},"step-1-uniform-superposition",[7267],{"type":26,"value":7268},"Step 1: Uniform Superposition",{"type":21,"tag":22,"props":7270,"children":7271},{},[7272,7274,7280],{"type":26,"value":7273},"Apply a ",{"type":21,"tag":41,"props":7275,"children":7277},{"href":7276},"\u002Fglossary\u002Fhadamard-gate",[7278],{"type":26,"value":7279},"Hadamard gate",{"type":26,"value":7281}," to every qubit. Three qubits give eight basis states each with amplitude 1\u002F√8.",{"type":21,"tag":2328,"props":7283,"children":7285},{"code":7284,"language":3209,"meta":7,"className":3207,"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",[7286],{"type":21,"tag":2097,"props":7287,"children":7288},{"__ignoreMap":7},[7289,7308,7327,7339,7346,7367,7389,7396,7412],{"type":21,"tag":2338,"props":7290,"children":7291},{"class":2340,"line":2341},[7292,7296,7300,7304],{"type":21,"tag":2338,"props":7293,"children":7294},{"style":3219},[7295],{"type":26,"value":3222},{"type":21,"tag":2338,"props":7297,"children":7298},{"style":2345},[7299],{"type":26,"value":4316},{"type":21,"tag":2338,"props":7301,"children":7302},{"style":3219},[7303],{"type":26,"value":3232},{"type":21,"tag":2338,"props":7305,"children":7306},{"style":2345},[7307],{"type":26,"value":4325},{"type":21,"tag":2338,"props":7309,"children":7310},{"class":2340,"line":173},[7311,7315,7319,7323],{"type":21,"tag":2338,"props":7312,"children":7313},{"style":3219},[7314],{"type":26,"value":3222},{"type":21,"tag":2338,"props":7316,"children":7317},{"style":2345},[7318],{"type":26,"value":4337},{"type":21,"tag":2338,"props":7320,"children":7321},{"style":3219},[7322],{"type":26,"value":3232},{"type":21,"tag":2338,"props":7324,"children":7325},{"style":2345},[7326],{"type":26,"value":4346},{"type":21,"tag":2338,"props":7328,"children":7329},{"class":2340,"line":2359},[7330,7334],{"type":21,"tag":2338,"props":7331,"children":7332},{"style":3219},[7333],{"type":26,"value":3232},{"type":21,"tag":2338,"props":7335,"children":7336},{"style":2345},[7337],{"type":26,"value":7338}," math\n",{"type":21,"tag":2338,"props":7340,"children":7341},{"class":2340,"line":2421},[7342],{"type":21,"tag":2338,"props":7343,"children":7344},{"emptyLinePlaceholder":3243},[7345],{"type":26,"value":3246},{"type":21,"tag":2338,"props":7347,"children":7348},{"class":2340,"line":2445},[7349,7353,7357,7362],{"type":21,"tag":2338,"props":7350,"children":7351},{"style":2345},[7352],{"type":26,"value":5106},{"type":21,"tag":2338,"props":7354,"children":7355},{"style":3219},[7356],{"type":26,"value":3259},{"type":21,"tag":2338,"props":7358,"children":7359},{"style":2363},[7360],{"type":26,"value":7361}," 3",{"type":21,"tag":2338,"props":7363,"children":7364},{"style":3469},[7365],{"type":26,"value":7366},"                # 3 qubits -> N = 8 states\n",{"type":21,"tag":2338,"props":7368,"children":7369},{"class":2340,"line":877},[7370,7375,7379,7384],{"type":21,"tag":2338,"props":7371,"children":7372},{"style":2345},[7373],{"type":26,"value":7374},"marked ",{"type":21,"tag":2338,"props":7376,"children":7377},{"style":3219},[7378],{"type":26,"value":3259},{"type":21,"tag":2338,"props":7380,"children":7381},{"style":2374},[7382],{"type":26,"value":7383}," \"101\"",{"type":21,"tag":2338,"props":7385,"children":7386},{"style":3469},[7387],{"type":26,"value":7388},"       # the state we want to find\n",{"type":21,"tag":2338,"props":7390,"children":7391},{"class":2340,"line":196},[7392],{"type":21,"tag":2338,"props":7393,"children":7394},{"emptyLinePlaceholder":3243},[7395],{"type":26,"value":3246},{"type":21,"tag":2338,"props":7397,"children":7398},{"class":2340,"line":951},[7399,7404,7408],{"type":21,"tag":2338,"props":7400,"children":7401},{"style":2345},[7402],{"type":26,"value":7403},"qc ",{"type":21,"tag":2338,"props":7405,"children":7406},{"style":3219},[7407],{"type":26,"value":3259},{"type":21,"tag":2338,"props":7409,"children":7410},{"style":2345},[7411],{"type":26,"value":4809},{"type":21,"tag":2338,"props":7413,"children":7414},{"class":2340,"line":16},[7415,7420,7424,7429],{"type":21,"tag":2338,"props":7416,"children":7417},{"style":2345},[7418],{"type":26,"value":7419},"qc.h(",{"type":21,"tag":2338,"props":7421,"children":7422},{"style":2363},[7423],{"type":26,"value":4963},{"type":21,"tag":2338,"props":7425,"children":7426},{"style":2345},[7427],{"type":26,"value":7428},"(n))       ",{"type":21,"tag":2338,"props":7430,"children":7431},{"style":3469},[7432],{"type":26,"value":7433},"# uniform superposition\n",{"type":21,"tag":22,"props":7435,"children":7436},{},[7437,7439,7445],{"type":26,"value":7438},"If you ",{"type":21,"tag":41,"props":7440,"children":7442},{"href":7441},"\u002Fglossary\u002Fmeasurement",[7443],{"type":26,"value":7444},"measure",{"type":26,"value":7446}," here you get a uniform random bitstring: 12.5% for each of the eight outcomes. That's the baseline to beat.",{"type":21,"tag":29,"props":7448,"children":7450},{"id":7449},"step-2-the-oracle",[7451],{"type":26,"value":7452},"Step 2: The Oracle",{"type":21,"tag":22,"props":7454,"children":7455},{},[7456],{"type":26,"value":7457},"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":7459,"children":7460},{},[7461,7463,7469,7471,7477],{"type":26,"value":7462},"Qiskit has no ",{"type":21,"tag":2097,"props":7464,"children":7466},{"className":7465},[],[7467],{"type":26,"value":7468},"mcz",{"type":26,"value":7470},", so we build it the standard way: an H on the target, a multi-controlled X (",{"type":21,"tag":41,"props":7472,"children":7474},{"href":7473},"\u002Fglossary\u002Ftoffoli-gate",[7475],{"type":26,"value":7476},"Toffoli",{"type":26,"value":7478}," generalized), an H back:",{"type":21,"tag":2328,"props":7480,"children":7482},{"code":7481,"language":3209,"meta":7,"className":3207,"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",[7483],{"type":21,"tag":2097,"props":7484,"children":7485},{"__ignoreMap":7},[7486,7503,7511,7546,7580,7605,7631,7639,7665,7716,7735,7758,7781,7788],{"type":21,"tag":2338,"props":7487,"children":7488},{"class":2340,"line":2341},[7489,7493,7498],{"type":21,"tag":2338,"props":7490,"children":7491},{"style":3219},[7492],{"type":26,"value":4382},{"type":21,"tag":2338,"props":7494,"children":7495},{"style":4385},[7496],{"type":26,"value":7497}," oracle",{"type":21,"tag":2338,"props":7499,"children":7500},{"style":2345},[7501],{"type":26,"value":7502},"(n, marked):\n",{"type":21,"tag":2338,"props":7504,"children":7505},{"class":2340,"line":173},[7506],{"type":21,"tag":2338,"props":7507,"children":7508},{"style":2374},[7509],{"type":26,"value":7510},"    \"\"\"Phase-flip the marked basis state.\"\"\"\n",{"type":21,"tag":2338,"props":7512,"children":7513},{"class":2340,"line":2359},[7514,7519,7523,7528,7533,7537,7542],{"type":21,"tag":2338,"props":7515,"children":7516},{"style":2345},[7517],{"type":26,"value":7518},"    qc ",{"type":21,"tag":2338,"props":7520,"children":7521},{"style":3219},[7522],{"type":26,"value":3259},{"type":21,"tag":2338,"props":7524,"children":7525},{"style":2345},[7526],{"type":26,"value":7527}," QuantumCircuit(n, ",{"type":21,"tag":2338,"props":7529,"children":7530},{"style":3284},[7531],{"type":26,"value":7532},"name",{"type":21,"tag":2338,"props":7534,"children":7535},{"style":3219},[7536],{"type":26,"value":3259},{"type":21,"tag":2338,"props":7538,"children":7539},{"style":2374},[7540],{"type":26,"value":7541},"\"Oracle\"",{"type":21,"tag":2338,"props":7543,"children":7544},{"style":2345},[7545],{"type":26,"value":3319},{"type":21,"tag":2338,"props":7547,"children":7548},{"class":2340,"line":2421},[7549,7554,7558,7563,7567,7571,7576],{"type":21,"tag":2338,"props":7550,"children":7551},{"style":2345},[7552],{"type":26,"value":7553},"    rev ",{"type":21,"tag":2338,"props":7555,"children":7556},{"style":3219},[7557],{"type":26,"value":3259},{"type":21,"tag":2338,"props":7559,"children":7560},{"style":2345},[7561],{"type":26,"value":7562}," marked[::",{"type":21,"tag":2338,"props":7564,"children":7565},{"style":3219},[7566],{"type":26,"value":4869},{"type":21,"tag":2338,"props":7568,"children":7569},{"style":2363},[7570],{"type":26,"value":3575},{"type":21,"tag":2338,"props":7572,"children":7573},{"style":2345},[7574],{"type":26,"value":7575},"]              ",{"type":21,"tag":2338,"props":7577,"children":7578},{"style":3469},[7579],{"type":26,"value":4883},{"type":21,"tag":2338,"props":7581,"children":7582},{"class":2340,"line":2445},[7583,7587,7592,7596,7600],{"type":21,"tag":2338,"props":7584,"children":7585},{"style":3219},[7586],{"type":26,"value":4761},{"type":21,"tag":2338,"props":7588,"children":7589},{"style":2345},[7590],{"type":26,"value":7591}," i, bit ",{"type":21,"tag":2338,"props":7593,"children":7594},{"style":3219},[7595],{"type":26,"value":3522},{"type":21,"tag":2338,"props":7597,"children":7598},{"style":2363},[7599],{"type":26,"value":4906},{"type":21,"tag":2338,"props":7601,"children":7602},{"style":2345},[7603],{"type":26,"value":7604},"(rev):\n",{"type":21,"tag":2338,"props":7606,"children":7607},{"class":2340,"line":877},[7608,7613,7618,7622,7627],{"type":21,"tag":2338,"props":7609,"children":7610},{"style":3219},[7611],{"type":26,"value":7612},"        if",{"type":21,"tag":2338,"props":7614,"children":7615},{"style":2345},[7616],{"type":26,"value":7617}," bit ",{"type":21,"tag":2338,"props":7619,"children":7620},{"style":3219},[7621],{"type":26,"value":4930},{"type":21,"tag":2338,"props":7623,"children":7624},{"style":2374},[7625],{"type":26,"value":7626}," \"0\"",{"type":21,"tag":2338,"props":7628,"children":7629},{"style":2345},[7630],{"type":26,"value":4940},{"type":21,"tag":2338,"props":7632,"children":7633},{"class":2340,"line":196},[7634],{"type":21,"tag":2338,"props":7635,"children":7636},{"style":2345},[7637],{"type":26,"value":7638},"            qc.x(i)\n",{"type":21,"tag":2338,"props":7640,"children":7641},{"class":2340,"line":951},[7642,7647,7651,7655,7660],{"type":21,"tag":2338,"props":7643,"children":7644},{"style":2345},[7645],{"type":26,"value":7646},"    qc.h(n ",{"type":21,"tag":2338,"props":7648,"children":7649},{"style":3219},[7650],{"type":26,"value":4869},{"type":21,"tag":2338,"props":7652,"children":7653},{"style":2363},[7654],{"type":26,"value":6120},{"type":21,"tag":2338,"props":7656,"children":7657},{"style":2345},[7658],{"type":26,"value":7659},")                     ",{"type":21,"tag":2338,"props":7661,"children":7662},{"style":3469},[7663],{"type":26,"value":7664},"# multi-controlled Z\n",{"type":21,"tag":2338,"props":7666,"children":7667},{"class":2340,"line":16},[7668,7673,7678,7682,7686,7691,7695,7699,7704,7708,7712],{"type":21,"tag":2338,"props":7669,"children":7670},{"style":2345},[7671],{"type":26,"value":7672},"    qc.mcx(",{"type":21,"tag":2338,"props":7674,"children":7675},{"style":2363},[7676],{"type":26,"value":7677},"list",{"type":21,"tag":2338,"props":7679,"children":7680},{"style":2345},[7681],{"type":26,"value":3339},{"type":21,"tag":2338,"props":7683,"children":7684},{"style":2363},[7685],{"type":26,"value":4963},{"type":21,"tag":2338,"props":7687,"children":7688},{"style":2345},[7689],{"type":26,"value":7690},"(n ",{"type":21,"tag":2338,"props":7692,"children":7693},{"style":3219},[7694],{"type":26,"value":4869},{"type":21,"tag":2338,"props":7696,"children":7697},{"style":2363},[7698],{"type":26,"value":6120},{"type":21,"tag":2338,"props":7700,"children":7701},{"style":2345},[7702],{"type":26,"value":7703},")), n ",{"type":21,"tag":2338,"props":7705,"children":7706},{"style":3219},[7707],{"type":26,"value":4869},{"type":21,"tag":2338,"props":7709,"children":7710},{"style":2363},[7711],{"type":26,"value":6120},{"type":21,"tag":2338,"props":7713,"children":7714},{"style":2345},[7715],{"type":26,"value":3319},{"type":21,"tag":2338,"props":7717,"children":7718},{"class":2340,"line":3465},[7719,7723,7727,7731],{"type":21,"tag":2338,"props":7720,"children":7721},{"style":2345},[7722],{"type":26,"value":7646},{"type":21,"tag":2338,"props":7724,"children":7725},{"style":3219},[7726],{"type":26,"value":4869},{"type":21,"tag":2338,"props":7728,"children":7729},{"style":2363},[7730],{"type":26,"value":6120},{"type":21,"tag":2338,"props":7732,"children":7733},{"style":2345},[7734],{"type":26,"value":3319},{"type":21,"tag":2338,"props":7736,"children":7737},{"class":2340,"line":3475},[7738,7742,7746,7750,7754],{"type":21,"tag":2338,"props":7739,"children":7740},{"style":3219},[7741],{"type":26,"value":4761},{"type":21,"tag":2338,"props":7743,"children":7744},{"style":2345},[7745],{"type":26,"value":7591},{"type":21,"tag":2338,"props":7747,"children":7748},{"style":3219},[7749],{"type":26,"value":3522},{"type":21,"tag":2338,"props":7751,"children":7752},{"style":2363},[7753],{"type":26,"value":4906},{"type":21,"tag":2338,"props":7755,"children":7756},{"style":2345},[7757],{"type":26,"value":7604},{"type":21,"tag":2338,"props":7759,"children":7760},{"class":2340,"line":500},[7761,7765,7769,7773,7777],{"type":21,"tag":2338,"props":7762,"children":7763},{"style":3219},[7764],{"type":26,"value":7612},{"type":21,"tag":2338,"props":7766,"children":7767},{"style":2345},[7768],{"type":26,"value":7617},{"type":21,"tag":2338,"props":7770,"children":7771},{"style":3219},[7772],{"type":26,"value":4930},{"type":21,"tag":2338,"props":7774,"children":7775},{"style":2374},[7776],{"type":26,"value":7626},{"type":21,"tag":2338,"props":7778,"children":7779},{"style":2345},[7780],{"type":26,"value":4940},{"type":21,"tag":2338,"props":7782,"children":7783},{"class":2340,"line":3535},[7784],{"type":21,"tag":2338,"props":7785,"children":7786},{"style":2345},[7787],{"type":26,"value":7638},{"type":21,"tag":2338,"props":7789,"children":7790},{"class":2340,"line":3583},[7791,7795],{"type":21,"tag":2338,"props":7792,"children":7793},{"style":3219},[7794],{"type":26,"value":4607},{"type":21,"tag":2338,"props":7796,"children":7797},{"style":2345},[7798],{"type":26,"value":7799}," qc\n",{"type":21,"tag":22,"props":7801,"children":7802},{},[7803,7805,7810,7812,7818,7820,7826],{"type":26,"value":7804},"Watch the endianness. Qiskit orders bitstrings with qubit 0 on the ",{"type":21,"tag":205,"props":7806,"children":7807},{},[7808],{"type":26,"value":7809},"right",{"type":26,"value":7811},", so ",{"type":21,"tag":2097,"props":7813,"children":7815},{"className":7814},[],[7816],{"type":26,"value":7817},"marked[::-1]",{"type":26,"value":7819}," 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":2097,"props":7821,"children":7823},{"className":7822},[],[7824],{"type":26,"value":7825},"101",{"type":26,"value":7827}," reversed and wonder why.",{"type":21,"tag":29,"props":7829,"children":7831},{"id":7830},"step-3-the-diffusion-operator",[7832],{"type":26,"value":7833},"Step 3: The Diffusion Operator",{"type":21,"tag":22,"props":7835,"children":7836},{},[7837],{"type":26,"value":7838},"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":2328,"props":7840,"children":7842},{"code":7841,"language":3209,"meta":7,"className":3207,"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",[7843],{"type":21,"tag":2097,"props":7844,"children":7845},{"__ignoreMap":7},[7846,7863,7871,7903,7919,7935,7954,8001,8020,8035,8050],{"type":21,"tag":2338,"props":7847,"children":7848},{"class":2340,"line":2341},[7849,7853,7858],{"type":21,"tag":2338,"props":7850,"children":7851},{"style":3219},[7852],{"type":26,"value":4382},{"type":21,"tag":2338,"props":7854,"children":7855},{"style":4385},[7856],{"type":26,"value":7857}," diffuser",{"type":21,"tag":2338,"props":7859,"children":7860},{"style":2345},[7861],{"type":26,"value":7862},"(n):\n",{"type":21,"tag":2338,"props":7864,"children":7865},{"class":2340,"line":173},[7866],{"type":21,"tag":2338,"props":7867,"children":7868},{"style":2374},[7869],{"type":26,"value":7870},"    \"\"\"Inversion about the mean.\"\"\"\n",{"type":21,"tag":2338,"props":7872,"children":7873},{"class":2340,"line":2359},[7874,7878,7882,7886,7890,7894,7899],{"type":21,"tag":2338,"props":7875,"children":7876},{"style":2345},[7877],{"type":26,"value":7518},{"type":21,"tag":2338,"props":7879,"children":7880},{"style":3219},[7881],{"type":26,"value":3259},{"type":21,"tag":2338,"props":7883,"children":7884},{"style":2345},[7885],{"type":26,"value":7527},{"type":21,"tag":2338,"props":7887,"children":7888},{"style":3284},[7889],{"type":26,"value":7532},{"type":21,"tag":2338,"props":7891,"children":7892},{"style":3219},[7893],{"type":26,"value":3259},{"type":21,"tag":2338,"props":7895,"children":7896},{"style":2374},[7897],{"type":26,"value":7898},"\"Diffuser\"",{"type":21,"tag":2338,"props":7900,"children":7901},{"style":2345},[7902],{"type":26,"value":3319},{"type":21,"tag":2338,"props":7904,"children":7905},{"class":2340,"line":2421},[7906,7911,7915],{"type":21,"tag":2338,"props":7907,"children":7908},{"style":2345},[7909],{"type":26,"value":7910},"    qc.h(",{"type":21,"tag":2338,"props":7912,"children":7913},{"style":2363},[7914],{"type":26,"value":4963},{"type":21,"tag":2338,"props":7916,"children":7917},{"style":2345},[7918],{"type":26,"value":4977},{"type":21,"tag":2338,"props":7920,"children":7921},{"class":2340,"line":2445},[7922,7927,7931],{"type":21,"tag":2338,"props":7923,"children":7924},{"style":2345},[7925],{"type":26,"value":7926},"    qc.x(",{"type":21,"tag":2338,"props":7928,"children":7929},{"style":2363},[7930],{"type":26,"value":4963},{"type":21,"tag":2338,"props":7932,"children":7933},{"style":2345},[7934],{"type":26,"value":4977},{"type":21,"tag":2338,"props":7936,"children":7937},{"class":2340,"line":877},[7938,7942,7946,7950],{"type":21,"tag":2338,"props":7939,"children":7940},{"style":2345},[7941],{"type":26,"value":7646},{"type":21,"tag":2338,"props":7943,"children":7944},{"style":3219},[7945],{"type":26,"value":4869},{"type":21,"tag":2338,"props":7947,"children":7948},{"style":2363},[7949],{"type":26,"value":6120},{"type":21,"tag":2338,"props":7951,"children":7952},{"style":2345},[7953],{"type":26,"value":3319},{"type":21,"tag":2338,"props":7955,"children":7956},{"class":2340,"line":196},[7957,7961,7965,7969,7973,7977,7981,7985,7989,7993,7997],{"type":21,"tag":2338,"props":7958,"children":7959},{"style":2345},[7960],{"type":26,"value":7672},{"type":21,"tag":2338,"props":7962,"children":7963},{"style":2363},[7964],{"type":26,"value":7677},{"type":21,"tag":2338,"props":7966,"children":7967},{"style":2345},[7968],{"type":26,"value":3339},{"type":21,"tag":2338,"props":7970,"children":7971},{"style":2363},[7972],{"type":26,"value":4963},{"type":21,"tag":2338,"props":7974,"children":7975},{"style":2345},[7976],{"type":26,"value":7690},{"type":21,"tag":2338,"props":7978,"children":7979},{"style":3219},[7980],{"type":26,"value":4869},{"type":21,"tag":2338,"props":7982,"children":7983},{"style":2363},[7984],{"type":26,"value":6120},{"type":21,"tag":2338,"props":7986,"children":7987},{"style":2345},[7988],{"type":26,"value":7703},{"type":21,"tag":2338,"props":7990,"children":7991},{"style":3219},[7992],{"type":26,"value":4869},{"type":21,"tag":2338,"props":7994,"children":7995},{"style":2363},[7996],{"type":26,"value":6120},{"type":21,"tag":2338,"props":7998,"children":7999},{"style":2345},[8000],{"type":26,"value":3319},{"type":21,"tag":2338,"props":8002,"children":8003},{"class":2340,"line":951},[8004,8008,8012,8016],{"type":21,"tag":2338,"props":8005,"children":8006},{"style":2345},[8007],{"type":26,"value":7646},{"type":21,"tag":2338,"props":8009,"children":8010},{"style":3219},[8011],{"type":26,"value":4869},{"type":21,"tag":2338,"props":8013,"children":8014},{"style":2363},[8015],{"type":26,"value":6120},{"type":21,"tag":2338,"props":8017,"children":8018},{"style":2345},[8019],{"type":26,"value":3319},{"type":21,"tag":2338,"props":8021,"children":8022},{"class":2340,"line":16},[8023,8027,8031],{"type":21,"tag":2338,"props":8024,"children":8025},{"style":2345},[8026],{"type":26,"value":7926},{"type":21,"tag":2338,"props":8028,"children":8029},{"style":2363},[8030],{"type":26,"value":4963},{"type":21,"tag":2338,"props":8032,"children":8033},{"style":2345},[8034],{"type":26,"value":4977},{"type":21,"tag":2338,"props":8036,"children":8037},{"class":2340,"line":3465},[8038,8042,8046],{"type":21,"tag":2338,"props":8039,"children":8040},{"style":2345},[8041],{"type":26,"value":7910},{"type":21,"tag":2338,"props":8043,"children":8044},{"style":2363},[8045],{"type":26,"value":4963},{"type":21,"tag":2338,"props":8047,"children":8048},{"style":2345},[8049],{"type":26,"value":4977},{"type":21,"tag":2338,"props":8051,"children":8052},{"class":2340,"line":3475},[8053,8057],{"type":21,"tag":2338,"props":8054,"children":8055},{"style":3219},[8056],{"type":26,"value":4607},{"type":21,"tag":2338,"props":8058,"children":8059},{"style":2345},[8060],{"type":26,"value":7799},{"type":21,"tag":22,"props":8062,"children":8063},{},[8064,8066,8072],{"type":26,"value":8065},"Note the diffuser knows nothing about the marked state. It is the same ",{"type":21,"tag":41,"props":8067,"children":8069},{"href":8068},"\u002Fglossary\u002Fquantum-circuit",[8070],{"type":26,"value":8071},"circuit",{"type":26,"value":8073}," for every search problem. Only the oracle changes.",{"type":21,"tag":29,"props":8075,"children":8077},{"id":8076},"step-4-iterate-the-right-number-of-times",[8078],{"type":26,"value":8079},"Step 4: Iterate the Right Number of Times",{"type":21,"tag":22,"props":8081,"children":8082},{},[8083],{"type":26,"value":8084},"This is where people go wrong. The optimal count is:",{"type":21,"tag":2328,"props":8086,"children":8088},{"code":8087},"k = floor( (π\u002F4) · √(N\u002FM) )\n",[8089],{"type":21,"tag":2097,"props":8090,"children":8091},{"__ignoreMap":7},[8092],{"type":26,"value":8087},{"type":21,"tag":22,"props":8094,"children":8095},{},[8096,8098,8102],{"type":26,"value":8097},"where N = 2ⁿ and M is the number of marked states. For N = 8, M = 1: k = floor(2.22) = ",{"type":21,"tag":205,"props":8099,"children":8100},{},[8101],{"type":26,"value":2437},{"type":26,"value":825},{"type":21,"tag":22,"props":8104,"children":8105},{},[8106],{"type":26,"value":8107},"Here's the complete program:",{"type":21,"tag":2328,"props":8109,"children":8111},{"code":8110,"language":3209,"meta":7,"className":3207,"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",[8112],{"type":21,"tag":2097,"props":8113,"children":8114},{"__ignoreMap":7},[8115,8132,8147,8167,8184,8208,8239,8268,8292,8303,8310,8336,8372,8431,8438,8455,8471,8505],{"type":21,"tag":2338,"props":8116,"children":8117},{"class":2340,"line":2341},[8118,8122,8127],{"type":21,"tag":2338,"props":8119,"children":8120},{"style":3219},[8121],{"type":26,"value":4382},{"type":21,"tag":2338,"props":8123,"children":8124},{"style":4385},[8125],{"type":26,"value":8126}," grover",{"type":21,"tag":2338,"props":8128,"children":8129},{"style":2345},[8130],{"type":26,"value":8131},"(n, marked, iterations):\n",{"type":21,"tag":2338,"props":8133,"children":8134},{"class":2340,"line":173},[8135,8139,8143],{"type":21,"tag":2338,"props":8136,"children":8137},{"style":2345},[8138],{"type":26,"value":7518},{"type":21,"tag":2338,"props":8140,"children":8141},{"style":3219},[8142],{"type":26,"value":3259},{"type":21,"tag":2338,"props":8144,"children":8145},{"style":2345},[8146],{"type":26,"value":4809},{"type":21,"tag":2338,"props":8148,"children":8149},{"class":2340,"line":2359},[8150,8154,8158,8163],{"type":21,"tag":2338,"props":8151,"children":8152},{"style":2345},[8153],{"type":26,"value":7910},{"type":21,"tag":2338,"props":8155,"children":8156},{"style":2363},[8157],{"type":26,"value":4963},{"type":21,"tag":2338,"props":8159,"children":8160},{"style":2345},[8161],{"type":26,"value":8162},"(n))                       ",{"type":21,"tag":2338,"props":8164,"children":8165},{"style":3469},[8166],{"type":26,"value":7433},{"type":21,"tag":2338,"props":8168,"children":8169},{"class":2340,"line":2421},[8170,8175,8179],{"type":21,"tag":2338,"props":8171,"children":8172},{"style":2345},[8173],{"type":26,"value":8174},"    orc, dif ",{"type":21,"tag":2338,"props":8176,"children":8177},{"style":3219},[8178],{"type":26,"value":3259},{"type":21,"tag":2338,"props":8180,"children":8181},{"style":2345},[8182],{"type":26,"value":8183}," oracle(n, marked), diffuser(n)\n",{"type":21,"tag":2338,"props":8185,"children":8186},{"class":2340,"line":2445},[8187,8191,8195,8199,8203],{"type":21,"tag":2338,"props":8188,"children":8189},{"style":3219},[8190],{"type":26,"value":4761},{"type":21,"tag":2338,"props":8192,"children":8193},{"style":2345},[8194],{"type":26,"value":6162},{"type":21,"tag":2338,"props":8196,"children":8197},{"style":3219},[8198],{"type":26,"value":3522},{"type":21,"tag":2338,"props":8200,"children":8201},{"style":2363},[8202],{"type":26,"value":3527},{"type":21,"tag":2338,"props":8204,"children":8205},{"style":2345},[8206],{"type":26,"value":8207},"(iterations):\n",{"type":21,"tag":2338,"props":8209,"children":8210},{"class":2340,"line":877},[8211,8216,8221,8225,8229,8234],{"type":21,"tag":2338,"props":8212,"children":8213},{"style":2345},[8214],{"type":26,"value":8215},"        qc.compose(orc, ",{"type":21,"tag":2338,"props":8217,"children":8218},{"style":3284},[8219],{"type":26,"value":8220},"inplace",{"type":21,"tag":2338,"props":8222,"children":8223},{"style":3219},[8224],{"type":26,"value":3259},{"type":21,"tag":2338,"props":8226,"children":8227},{"style":2363},[8228],{"type":26,"value":3296},{"type":21,"tag":2338,"props":8230,"children":8231},{"style":2345},[8232],{"type":26,"value":8233},")    ",{"type":21,"tag":2338,"props":8235,"children":8236},{"style":3469},[8237],{"type":26,"value":8238},"# phase-flip the target\n",{"type":21,"tag":2338,"props":8240,"children":8241},{"class":2340,"line":196},[8242,8247,8251,8255,8259,8263],{"type":21,"tag":2338,"props":8243,"children":8244},{"style":2345},[8245],{"type":26,"value":8246},"        qc.compose(dif, ",{"type":21,"tag":2338,"props":8248,"children":8249},{"style":3284},[8250],{"type":26,"value":8220},{"type":21,"tag":2338,"props":8252,"children":8253},{"style":3219},[8254],{"type":26,"value":3259},{"type":21,"tag":2338,"props":8256,"children":8257},{"style":2363},[8258],{"type":26,"value":3296},{"type":21,"tag":2338,"props":8260,"children":8261},{"style":2345},[8262],{"type":26,"value":8233},{"type":21,"tag":2338,"props":8264,"children":8265},{"style":3469},[8266],{"type":26,"value":8267},"# amplify it\n",{"type":21,"tag":2338,"props":8269,"children":8270},{"class":2340,"line":951},[8271,8276,8280,8284,8288],{"type":21,"tag":2338,"props":8272,"children":8273},{"style":2345},[8274],{"type":26,"value":8275},"    qc.measure(",{"type":21,"tag":2338,"props":8277,"children":8278},{"style":2363},[8279],{"type":26,"value":4963},{"type":21,"tag":2338,"props":8281,"children":8282},{"style":2345},[8283],{"type":26,"value":4968},{"type":21,"tag":2338,"props":8285,"children":8286},{"style":2363},[8287],{"type":26,"value":4963},{"type":21,"tag":2338,"props":8289,"children":8290},{"style":2345},[8291],{"type":26,"value":4977},{"type":21,"tag":2338,"props":8293,"children":8294},{"class":2340,"line":16},[8295,8299],{"type":21,"tag":2338,"props":8296,"children":8297},{"style":3219},[8298],{"type":26,"value":4607},{"type":21,"tag":2338,"props":8300,"children":8301},{"style":2345},[8302],{"type":26,"value":7799},{"type":21,"tag":2338,"props":8304,"children":8305},{"class":2340,"line":3465},[8306],{"type":21,"tag":2338,"props":8307,"children":8308},{"emptyLinePlaceholder":3243},[8309],{"type":26,"value":3246},{"type":21,"tag":2338,"props":8311,"children":8312},{"class":2340,"line":3475},[8313,8318,8322,8326,8331],{"type":21,"tag":2338,"props":8314,"children":8315},{"style":2345},[8316],{"type":26,"value":8317},"N ",{"type":21,"tag":2338,"props":8319,"children":8320},{"style":3219},[8321],{"type":26,"value":3259},{"type":21,"tag":2338,"props":8323,"children":8324},{"style":2363},[8325],{"type":26,"value":6405},{"type":21,"tag":2338,"props":8327,"children":8328},{"style":3219},[8329],{"type":26,"value":8330}," **",{"type":21,"tag":2338,"props":8332,"children":8333},{"style":2345},[8334],{"type":26,"value":8335}," n\n",{"type":21,"tag":2338,"props":8337,"children":8338},{"class":2340,"line":500},[8339,8344,8348,8353,8357,8362,8367],{"type":21,"tag":2338,"props":8340,"children":8341},{"style":2345},[8342],{"type":26,"value":8343},"optimal ",{"type":21,"tag":2338,"props":8345,"children":8346},{"style":3219},[8347],{"type":26,"value":3259},{"type":21,"tag":2338,"props":8349,"children":8350},{"style":2345},[8351],{"type":26,"value":8352}," math.floor(math.pi ",{"type":21,"tag":2338,"props":8354,"children":8355},{"style":3219},[8356],{"type":26,"value":2192},{"type":21,"tag":2338,"props":8358,"children":8359},{"style":2363},[8360],{"type":26,"value":8361}," 4",{"type":21,"tag":2338,"props":8363,"children":8364},{"style":3219},[8365],{"type":26,"value":8366}," *",{"type":21,"tag":2338,"props":8368,"children":8369},{"style":2345},[8370],{"type":26,"value":8371}," math.sqrt(N))\n",{"type":21,"tag":2338,"props":8373,"children":8374},{"class":2340,"line":3535},[8375,8379,8383,8387,8392,8396,8401,8405,8410,8414,8419,8423,8427],{"type":21,"tag":2338,"props":8376,"children":8377},{"style":2363},[8378],{"type":26,"value":3334},{"type":21,"tag":2338,"props":8380,"children":8381},{"style":2345},[8382],{"type":26,"value":3339},{"type":21,"tag":2338,"props":8384,"children":8385},{"style":3219},[8386],{"type":26,"value":3344},{"type":21,"tag":2338,"props":8388,"children":8389},{"style":2374},[8390],{"type":26,"value":8391},"\"N = ",{"type":21,"tag":2338,"props":8393,"children":8394},{"style":2363},[8395],{"type":26,"value":3354},{"type":21,"tag":2338,"props":8397,"children":8398},{"style":2345},[8399],{"type":26,"value":8400},"N",{"type":21,"tag":2338,"props":8402,"children":8403},{"style":2363},[8404],{"type":26,"value":3364},{"type":21,"tag":2338,"props":8406,"children":8407},{"style":2374},[8408],{"type":26,"value":8409},", optimal iterations = ",{"type":21,"tag":2338,"props":8411,"children":8412},{"style":2363},[8413],{"type":26,"value":3354},{"type":21,"tag":2338,"props":8415,"children":8416},{"style":2345},[8417],{"type":26,"value":8418},"optimal",{"type":21,"tag":2338,"props":8420,"children":8421},{"style":2363},[8422],{"type":26,"value":3364},{"type":21,"tag":2338,"props":8424,"children":8425},{"style":2374},[8426],{"type":26,"value":3369},{"type":21,"tag":2338,"props":8428,"children":8429},{"style":2345},[8430],{"type":26,"value":3319},{"type":21,"tag":2338,"props":8432,"children":8433},{"class":2340,"line":3583},[8434],{"type":21,"tag":2338,"props":8435,"children":8436},{"emptyLinePlaceholder":3243},[8437],{"type":26,"value":3246},{"type":21,"tag":2338,"props":8439,"children":8440},{"class":2340,"line":3625},[8441,8446,8450],{"type":21,"tag":2338,"props":8442,"children":8443},{"style":2345},[8444],{"type":26,"value":8445},"sim ",{"type":21,"tag":2338,"props":8447,"children":8448},{"style":3219},[8449],{"type":26,"value":3259},{"type":21,"tag":2338,"props":8451,"children":8452},{"style":2345},[8453],{"type":26,"value":8454}," AerSimulator()\n",{"type":21,"tag":2338,"props":8456,"children":8457},{"class":2340,"line":4652},[8458,8462,8466],{"type":21,"tag":2338,"props":8459,"children":8460},{"style":2345},[8461],{"type":26,"value":7403},{"type":21,"tag":2338,"props":8463,"children":8464},{"style":3219},[8465],{"type":26,"value":3259},{"type":21,"tag":2338,"props":8467,"children":8468},{"style":2345},[8469],{"type":26,"value":8470}," grover(n, marked, optimal)\n",{"type":21,"tag":2338,"props":8472,"children":8473},{"class":2340,"line":4671},[8474,8479,8483,8488,8492,8496,8501],{"type":21,"tag":2338,"props":8475,"children":8476},{"style":2345},[8477],{"type":26,"value":8478},"counts ",{"type":21,"tag":2338,"props":8480,"children":8481},{"style":3219},[8482],{"type":26,"value":3259},{"type":21,"tag":2338,"props":8484,"children":8485},{"style":2345},[8486],{"type":26,"value":8487}," sim.run(transpile(qc, sim), ",{"type":21,"tag":2338,"props":8489,"children":8490},{"style":3284},[8491],{"type":26,"value":4144},{"type":21,"tag":2338,"props":8493,"children":8494},{"style":3219},[8495],{"type":26,"value":3259},{"type":21,"tag":2338,"props":8497,"children":8498},{"style":2363},[8499],{"type":26,"value":8500},"4096",{"type":21,"tag":2338,"props":8502,"children":8503},{"style":2345},[8504],{"type":26,"value":5303},{"type":21,"tag":2338,"props":8506,"children":8507},{"class":2340,"line":4679},[8508,8512,8516,8521],{"type":21,"tag":2338,"props":8509,"children":8510},{"style":2363},[8511],{"type":26,"value":3334},{"type":21,"tag":2338,"props":8513,"children":8514},{"style":2345},[8515],{"type":26,"value":3339},{"type":21,"tag":2338,"props":8517,"children":8518},{"style":2363},[8519],{"type":26,"value":8520},"sorted",{"type":21,"tag":2338,"props":8522,"children":8523},{"style":2345},[8524],{"type":26,"value":8525},"(counts.items()))\n",{"type":21,"tag":22,"props":8527,"children":8528},{},[8529],{"type":26,"value":8530},"Real output from this exact code (Qiskit 2.5, Aer 0.17):",{"type":21,"tag":2328,"props":8532,"children":8534},{"code":8533},"N = 8, optimal iterations = 2\n[('000', 35), ('001', 34), ('010', 33), ('011', 27),\n ('100', 33), ('101', 3866), ('110', 35), ('111', 33)]\n",[8535],{"type":21,"tag":2097,"props":8536,"children":8537},{"__ignoreMap":7},[8538],{"type":26,"value":8533},{"type":21,"tag":22,"props":8540,"children":8541},{},[8542,8544,8549],{"type":26,"value":8543},"94.4% on ",{"type":21,"tag":2097,"props":8545,"children":8547},{"className":8546},[],[8548],{"type":26,"value":7825},{"type":26,"value":8550},", versus 12.5% by chance. Two oracle calls where classical search would need 4.5 on average.",{"type":21,"tag":29,"props":8552,"children":8554},{"id":8553},"the-mistake-more-iterations-make-it-worse",[8555],{"type":26,"value":8556},"The Mistake: More Iterations Make It Worse",{"type":21,"tag":22,"props":8558,"children":8559},{},[8560,8562,8567],{"type":26,"value":8561},"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":205,"props":8563,"children":8564},{},[8565],{"type":26,"value":8566},"fixed",{"type":26,"value":8568}," 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":8570,"children":8571},{},[8572],{"type":26,"value":8573},"Loop the iteration count and watch. Measured counts over 4096 shots each:",{"type":21,"tag":2328,"props":8575,"children":8577},{"code":8576},"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",[8578],{"type":21,"tag":2097,"props":8579,"children":8580},{"__ignoreMap":7},[8581],{"type":26,"value":8576},{"type":21,"tag":22,"props":8583,"children":8584},{},[8585,8587,8592],{"type":26,"value":8586},"Four iterations gives you a 1.3% success rate. You did ",{"type":21,"tag":2071,"props":8588,"children":8589},{},[8590],{"type":26,"value":8591},"twice",{"type":26,"value":8593}," 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":8595,"children":8596},{},[8597,8599,8604],{"type":26,"value":8598},"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":205,"props":8600,"children":8601},{},[8602],{"type":26,"value":8603},"quantum counting",{"type":26,"value":8605}," (an amplitude-estimation routine) first, or you use randomized iteration counts, which costs you a constant factor. Textbook presentations tend to skip this.",{"type":21,"tag":29,"props":8607,"children":8609},{"id":8608},"what-the-speedup-buys-you",[8610],{"type":26,"value":8611},"What the Speedup Buys You",{"type":21,"tag":22,"props":8613,"children":8614},{},[8615],{"type":26,"value":8616},"Be precise about this, because a lot of writing on Grover is not.",{"type":21,"tag":22,"props":8618,"children":8619},{},[8620,8625,8627,8633],{"type":21,"tag":205,"props":8621,"children":8622},{},[8623],{"type":26,"value":8624},"It is quadratic, not exponential.",{"type":26,"value":8626}," √N versus N. ",{"type":21,"tag":41,"props":8628,"children":8630},{"href":8629},"\u002Fresearch\u002Fshor-factoring-1994",[8631],{"type":26,"value":8632},"Shor's factoring algorithm",{"type":26,"value":8634}," is exponential. That's a categorically different 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":8636,"children":8637},{},[8638,8643],{"type":21,"tag":205,"props":8639,"children":8640},{},[8641],{"type":26,"value":8642},"It does not make NP-hard problems easy.",{"type":26,"value":8644}," 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":8646,"children":8647},{},[8648,8653,8655,8660,8662,8667],{"type":21,"tag":205,"props":8649,"children":8650},{},[8651],{"type":26,"value":8652},"The \"database search\" framing is misleading.",{"type":26,"value":8654}," Grover needs an ",{"type":21,"tag":2071,"props":8656,"children":8657},{},[8658],{"type":26,"value":8659},"oracle",{"type":26,"value":8661}," (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":2071,"props":8663,"children":8664},{},[8665],{"type":26,"value":8666},"defined by a computable property",{"type":26,"value":8668}," (this key decrypts the ciphertext, this input hashes to that digest) rather than looked up in a table.",{"type":21,"tag":22,"props":8670,"children":8671},{},[8672,8674,8680],{"type":26,"value":8673},"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":41,"props":8675,"children":8677},{"href":8676},"\u002Fresearch\u002Fgrover-search-1996",[8678],{"type":26,"value":8679},"breakdown of the paper",{"type":26,"value":825},{"type":21,"tag":29,"props":8682,"children":8684},{"id":8683},"running-on-real-hardware",[8685],{"type":26,"value":8686},"Running on Real Hardware",{"type":21,"tag":22,"props":8688,"children":8689},{},[8690,8692,8697],{"type":26,"value":8691},"Moving to a QPU, the picture changes fast. Multi-controlled X gates are not native to any hardware. ",{"type":21,"tag":41,"props":8693,"children":8694},{"href":5776},[8695],{"type":26,"value":8696},"Transpilation",{"type":26,"value":8698}," 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":2328,"props":8700,"children":8702},{"code":8701,"language":3209,"meta":7,"className":3207,"style":7},"# Check what your circuit costs before submitting\nqc = grover(3, \"101\", 2)\nprint(qc.decompose().count_ops())\n",[8703],{"type":21,"tag":2097,"props":8704,"children":8705},{"__ignoreMap":7},[8706,8714,8755],{"type":21,"tag":2338,"props":8707,"children":8708},{"class":2340,"line":2341},[8709],{"type":21,"tag":2338,"props":8710,"children":8711},{"style":3469},[8712],{"type":26,"value":8713},"# Check what your circuit costs before submitting\n",{"type":21,"tag":2338,"props":8715,"children":8716},{"class":2340,"line":173},[8717,8721,8725,8730,8734,8738,8743,8747,8751],{"type":21,"tag":2338,"props":8718,"children":8719},{"style":2345},[8720],{"type":26,"value":7403},{"type":21,"tag":2338,"props":8722,"children":8723},{"style":3219},[8724],{"type":26,"value":3259},{"type":21,"tag":2338,"props":8726,"children":8727},{"style":2345},[8728],{"type":26,"value":8729}," grover(",{"type":21,"tag":2338,"props":8731,"children":8732},{"style":2363},[8733],{"type":26,"value":6532},{"type":21,"tag":2338,"props":8735,"children":8736},{"style":2345},[8737],{"type":26,"value":1375},{"type":21,"tag":2338,"props":8739,"children":8740},{"style":2374},[8741],{"type":26,"value":8742},"\"101\"",{"type":21,"tag":2338,"props":8744,"children":8745},{"style":2345},[8746],{"type":26,"value":1375},{"type":21,"tag":2338,"props":8748,"children":8749},{"style":2363},[8750],{"type":26,"value":2437},{"type":21,"tag":2338,"props":8752,"children":8753},{"style":2345},[8754],{"type":26,"value":3319},{"type":21,"tag":2338,"props":8756,"children":8757},{"class":2340,"line":2359},[8758,8762],{"type":21,"tag":2338,"props":8759,"children":8760},{"style":2363},[8761],{"type":26,"value":3334},{"type":21,"tag":2338,"props":8763,"children":8764},{"style":2345},[8765],{"type":26,"value":8766},"(qc.decompose().count_ops())\n",{"type":21,"tag":22,"props":8768,"children":8769},{},[8770,8772,8778,8780,8784],{"type":26,"value":8771},"On ",{"type":21,"tag":41,"props":8773,"children":8775},{"href":8774},"\u002Fresearch\u002Fpreskill-nisq-2018",[8776],{"type":26,"value":8777},"NISQ devices",{"type":26,"value":8779},", 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":41,"props":8781,"children":8782},{"href":5729},[8783],{"type":26,"value":5732},{"type":26,"value":8785}," on top and you need enough samples to distinguish a modest peak from the floor.",{"type":21,"tag":22,"props":8787,"children":8788},{},[8789,8791,8796,8798,8803],{"type":26,"value":8790},"The practical advice: develop and debug on ",{"type":21,"tag":41,"props":8792,"children":8793},{"href":472},[8794],{"type":26,"value":8795},"simulators",{"type":26,"value":8797},", where you verify correctness exactly. Only move to ",{"type":21,"tag":41,"props":8799,"children":8800},{"href":144},[8801],{"type":26,"value":8802},"real hardware",{"type":26,"value":8804}," when you understand what your circuit costs in native gates, and expect degraded results.",{"type":21,"tag":29,"props":8806,"children":8808},{"id":8807},"next-steps",[8809],{"type":26,"value":8810},"Next Steps",{"type":21,"tag":3137,"props":8812,"children":8813},{},[8814,8827,8839,8860],{"type":21,"tag":3141,"props":8815,"children":8816},{},[8817,8825],{"type":21,"tag":205,"props":8818,"children":8819},{},[8820],{"type":21,"tag":41,"props":8821,"children":8822},{"href":7112},[8823],{"type":26,"value":8824},"Qiskit SDK guide",{"type":26,"value":8826},": full setup, backends, and transpiler options",{"type":21,"tag":3141,"props":8828,"children":8829},{},[8830,8837],{"type":21,"tag":205,"props":8831,"children":8832},{},[8833],{"type":21,"tag":41,"props":8834,"children":8835},{"href":2052},[8836],{"type":26,"value":2671},{"type":26,"value":8838},": the other big near-term algorithm, applied to Max-Cut",{"type":21,"tag":3141,"props":8840,"children":8841},{},[8842,8850,8852,8858],{"type":21,"tag":205,"props":8843,"children":8844},{},[8845],{"type":21,"tag":41,"props":8846,"children":8847},{"href":281},[8848],{"type":26,"value":8849},"Compare the SDKs",{"type":26,"value":8851},": the same Grover circuit in ",{"type":21,"tag":41,"props":8853,"children":8855},{"href":8854},"\u002Fsdks\u002Fcirq",[8856],{"type":26,"value":8857},"Cirq",{"type":26,"value":8859}," or PennyLane",{"type":21,"tag":3141,"props":8861,"children":8862},{},[8863,8871,8872,8878,8879,8885],{"type":21,"tag":205,"props":8864,"children":8865},{},[8866],{"type":21,"tag":41,"props":8867,"children":8868},{"href":3985},[8869],{"type":26,"value":8870},"Glossary",{"type":26,"value":2432},{"type":21,"tag":41,"props":8873,"children":8875},{"href":8874},"\u002Fglossary\u002Fsuperposition",[8876],{"type":26,"value":8877},"superposition",{"type":26,"value":1375},{"type":21,"tag":41,"props":8880,"children":8882},{"href":8881},"\u002Fglossary\u002Fquantum-advantage",[8883],{"type":26,"value":8884},"quantum advantage",{"type":26,"value":8886},", and the rest of the vocabulary",{"type":21,"tag":2712,"props":8888,"children":8889},{},[8890],{"type":26,"value":2716},{"title":7,"searchDepth":173,"depth":173,"links":8892},[8893,8894,8895,8896,8897,8898,8899,8900,8901,8902],{"id":7191,"depth":173,"text":7194},{"id":7219,"depth":173,"text":7222},{"id":7265,"depth":173,"text":7268},{"id":7449,"depth":173,"text":7452},{"id":7830,"depth":173,"text":7833},{"id":8076,"depth":173,"text":8079},{"id":8553,"depth":173,"text":8556},{"id":8608,"depth":173,"text":8611},{"id":8683,"depth":173,"text":8686},{"id":8807,"depth":173,"text":8810},"content:blog:grover-algorithm-tutorial.md","blog\u002Fgrover-algorithm-tutorial.md","blog\u002Fgrover-algorithm-tutorial",{"_path":56,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8907,"description":8908,"date":3081,"author":11,"tags":8909,"readingTime":951,"body":8911,"_type":180,"_id":9361,"_source":182,"_file":9362,"_stem":9363,"_extension":185},"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.",[194,14,8910],"QPU",{"type":18,"children":8912,"toc":9351},[8913,8918,8930,8936,8963,8977,9004,9010,9022,9027,9040,9058,9064,9069,9080,9093,9098,9103,9109,9121,9126,9145,9150,9156,9161,9171,9181,9204,9210,9215,9225,9235,9245,9255,9260,9266,9271,9276,9302,9321,9327,9339],{"type":21,"tag":22,"props":8914,"children":8915},{},[8916],{"type":26,"value":8917},"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":8919,"children":8920},{},[8921,8923,8928],{"type":26,"value":8922},"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":2071,"props":8924,"children":8925},{},[8926],{"type":26,"value":8927},"worse",{"type":26,"value":8929}," 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":29,"props":8931,"children":8933},{"id":8932},"two-things-called-qubit",[8934],{"type":26,"value":8935},"Two things called \"qubit\"",{"type":21,"tag":22,"props":8937,"children":8938},{},[8939,8941,8946,8948,8954,8956,8961],{"type":26,"value":8940},"A ",{"type":21,"tag":205,"props":8942,"children":8943},{},[8944],{"type":26,"value":8945},"physical qubit",{"type":26,"value":8947}," 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":41,"props":8949,"children":8951},{"href":8950},"\u002Fglossary\u002Fdecoherence",[8952],{"type":26,"value":8953},"decoherence",{"type":26,"value":8955},", and the ",{"type":21,"tag":41,"props":8957,"children":8958},{"href":5755},[8959],{"type":26,"value":8960},"T1 and T2 times",{"type":26,"value":8962}," that quantify it are among the few hardware specs worth reading closely.",{"type":21,"tag":22,"props":8964,"children":8965},{},[8966,8967,8975],{"type":26,"value":8940},{"type":21,"tag":205,"props":8968,"children":8969},{},[8970],{"type":21,"tag":41,"props":8971,"children":8972},{"href":43},[8973],{"type":26,"value":8974},"logical qubit",{"type":26,"value":8976}," 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":8978,"children":8979},{},[8980,8982,8987,8989,8994,8996,9002],{"type":26,"value":8981},"The technique is ",{"type":21,"tag":41,"props":8983,"children":8984},{"href":993},[8985],{"type":26,"value":8986},"quantum error correction",{"type":26,"value":8988},", and our ",{"type":21,"tag":41,"props":8990,"children":8991},{"href":324},[8992],{"type":26,"value":8993},"companion post on QEC",{"type":26,"value":8995}," covers the mechanics: parity checks, ",{"type":21,"tag":41,"props":8997,"children":8999},{"href":8998},"\u002Fglossary\u002Fancilla-qubit",[9000],{"type":26,"value":9001},"ancilla qubits",{"type":26,"value":9003},", 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":29,"props":9005,"children":9007},{"id":9006},"why-how-many-qubits-is-nearly-meaningless",[9008],{"type":26,"value":9009},"Why \"how many qubits?\" is nearly meaningless",{"type":21,"tag":22,"props":9011,"children":9012},{},[9013,9015,9020],{"type":26,"value":9014},"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":205,"props":9016,"children":9017},{},[9018],{"type":26,"value":9019},"zero",{"type":26,"value":9021}," logical qubits, not few, zero.",{"type":21,"tag":22,"props":9023,"children":9024},{},[9025],{"type":26,"value":9026},"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":9028,"children":9029},{},[9030,9032,9038],{"type":26,"value":9031},"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":41,"props":9033,"children":9035},{"href":9034},"\u002Fglossary\u002Ffidelity",[9036],{"type":26,"value":9037},"fidelity",{"type":26,"value":9039}," improvements that look small in isolation. A 2x hardware win is a 4x or 8x win after encoding.",{"type":21,"tag":22,"props":9041,"children":9042},{},[9043,9045,9049,9051,9056],{"type":26,"value":9044},"This is also why single-number benchmarks keep failing the field. ",{"type":21,"tag":41,"props":9046,"children":9047},{"href":3159},[9048],{"type":26,"value":3162},{"type":26,"value":9050},", algorithmic qubits, gate counts: each captures a slice and hides the rest. We wrote about that measurement problem ",{"type":21,"tag":41,"props":9052,"children":9053},{"href":739},[9054],{"type":26,"value":9055},"in the context of EO 14413",{"type":26,"value":9057},", and it applies with full force here.",{"type":21,"tag":29,"props":9059,"children":9061},{"id":9060},"the-overhead-is-the-whole-story",[9062],{"type":26,"value":9063},"The overhead is the whole story",{"type":21,"tag":22,"props":9065,"children":9066},{},[9067],{"type":26,"value":9068},"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":9070,"children":9071},{},[9072,9078],{"type":21,"tag":41,"props":9073,"children":9075},{"href":9074},"\u002Fresearch\u002Fshor-error-correction-1995",[9076],{"type":26,"value":9077},"Shor's 1995 code",{"type":26,"value":9079},", 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":9081,"children":9082},{},[9083,9085,9091],{"type":26,"value":9084},"Nine turned out to be optimistic for practical machines. ",{"type":21,"tag":41,"props":9086,"children":9088},{"href":9087},"\u002Fresearch\u002Fkitaev-anyons-1997",[9089],{"type":26,"value":9090},"Kitaev's 1997 work on anyons",{"type":26,"value":9092}," 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":9094,"children":9095},{},[9096],{"type":26,"value":9097},"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":9099,"children":9100},{},[9101],{"type":26,"value":9102},"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":29,"props":9104,"children":9106},{"id":9105},"the-threshold-theorem-and-why-2024-mattered",[9107],{"type":26,"value":9108},"The threshold theorem, and why 2024 mattered",{"type":21,"tag":22,"props":9110,"children":9111},{},[9112,9114,9119],{"type":26,"value":9113},"The theoretical foundation under all of this is the ",{"type":21,"tag":205,"props":9115,"children":9116},{},[9117],{"type":26,"value":9118},"threshold theorem",{"type":26,"value":9120},". It says there exists a critical physical error rate. Below it, increasing the size of your code suppresses logical errors exponentially. You make them as small as you like by spending more qubits. Above it, the opposite: bigger codes are worse codes.",{"type":21,"tag":22,"props":9122,"children":9123},{},[9124],{"type":26,"value":9125},"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":9127,"children":9128},{},[9129,9131,9136,9138,9143],{"type":26,"value":9130},"That changed with ",{"type":21,"tag":41,"props":9132,"children":9133},{"href":3765},[9134],{"type":26,"value":9135},"Google's below-threshold result in 2024",{"type":26,"value":9137},". 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":205,"props":9139,"children":9140},{},[9141],{"type":26,"value":9142},"halving",{"type":26,"value":9144}," 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":9146,"children":9147},{},[9148],{"type":26,"value":9149},"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":29,"props":9151,"children":9153},{"id":9152},"different-hardware-different-arithmetic",[9154],{"type":26,"value":9155},"Different hardware, different arithmetic",{"type":21,"tag":22,"props":9157,"children":9158},{},[9159],{"type":26,"value":9160},"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":9162,"children":9163},{},[9164,9169],{"type":21,"tag":205,"props":9165,"children":9166},{},[9167],{"type":26,"value":9168},"Superconducting",{"type":26,"value":9170}," processors offer fast 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":9172,"children":9173},{},[9174,9179],{"type":21,"tag":205,"props":9175,"children":9176},{},[9177],{"type":26,"value":9178},"Trapped ions",{"type":26,"value":9180}," 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":9182,"children":9183},{},[9184,9186,9190,9191,9196,9198,9202],{"type":26,"value":9185},"Neither is obviously winning. Our ",{"type":21,"tag":41,"props":9187,"children":9188},{"href":144},[9189],{"type":26,"value":147},{"type":26,"value":149},{"type":21,"tag":41,"props":9192,"children":9193},{"href":281},[9194],{"type":26,"value":9195},"modality comparison",{"type":26,"value":9197}," go into the specifics, and the broader ",{"type":21,"tag":41,"props":9199,"children":9200},{"href":152},[9201],{"type":26,"value":155},{"type":26,"value":9203}," 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":29,"props":9205,"children":9207},{"id":9206},"encoding-is-necessary-not-sufficient",[9208],{"type":26,"value":9209},"Encoding is necessary, not sufficient",{"type":21,"tag":22,"props":9211,"children":9212},{},[9213],{"type":26,"value":9214},"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":9216,"children":9217},{},[9218,9223],{"type":21,"tag":205,"props":9219,"children":9220},{},[9221],{"type":26,"value":9222},"Fault-tolerant gate operations.",{"type":26,"value":9224}," 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":9226,"children":9227},{},[9228,9233],{"type":21,"tag":205,"props":9229,"children":9230},{},[9231],{"type":26,"value":9232},"Continuous syndrome extraction.",{"type":26,"value":9234}," 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":9236,"children":9237},{},[9238,9243],{"type":21,"tag":205,"props":9239,"children":9240},{},[9241],{"type":26,"value":9242},"Magic state distillation.",{"type":26,"value":9244}," 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":9246,"children":9247},{},[9248,9253],{"type":21,"tag":205,"props":9249,"children":9250},{},[9251],{"type":26,"value":9252},"Real-time decoding.",{"type":26,"value":9254}," 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":9256,"children":9257},{},[9258],{"type":26,"value":9259},"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":29,"props":9261,"children":9263},{"id":9262},"where-the-field-stands",[9264],{"type":26,"value":9265},"Where the field stands",{"type":21,"tag":22,"props":9267,"children":9268},{},[9269],{"type":26,"value":9270},"Honest summary as of mid-2026: logical qubits are real, demonstrated, and few.",{"type":21,"tag":22,"props":9272,"children":9273},{},[9274],{"type":26,"value":9275},"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 small numbers of encoded qubits. These are genuine milestones, not marketing.",{"type":21,"tag":22,"props":9277,"children":9278},{},[9279,9281,9286,9288,9293,9295,9300],{"type":26,"value":9280},"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":41,"props":9282,"children":9283},{"href":442},[9284],{"type":26,"value":9285},"NISQ regime",{"type":26,"value":9287}," that ",{"type":21,"tag":41,"props":9289,"children":9290},{"href":8774},[9291],{"type":26,"value":9292},"Preskill named in 2018",{"type":26,"value":9294},", where ",{"type":21,"tag":41,"props":9296,"children":9297},{"href":4068},[9298],{"type":26,"value":9299},"error mitigation",{"type":26,"value":9301}," (statistical post-processing rather than true correction) is the practical tool.",{"type":21,"tag":22,"props":9303,"children":9304},{},[9305,9307,9312,9314,9319],{"type":26,"value":9306},"None of which means waiting around. The abstractions transfer: circuits, gates, measurement, and noise behave the same way whether you're on a simulator or a fault-tolerant machine a decade out. You start on ",{"type":21,"tag":41,"props":9308,"children":9309},{"href":472},[9310],{"type":26,"value":9311},"free simulators",{"type":26,"value":9313}," or real QPUs today, and the ",{"type":21,"tag":41,"props":9315,"children":9316},{"href":3897},[9317],{"type":26,"value":9318},"courses page",{"type":26,"value":9320}," collects structured routes in.",{"type":21,"tag":29,"props":9322,"children":9324},{"id":9323},"the-one-habit-worth-forming",[9325],{"type":26,"value":9326},"The one habit worth forming",{"type":21,"tag":22,"props":9328,"children":9329},{},[9330,9332,9337],{"type":26,"value":9331},"When you next 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":2071,"props":9333,"children":9334},{},[9335],{"type":26,"value":9336},"logical",{"type":26,"value":9338}," qubits does that imply?",{"type":21,"tag":22,"props":9340,"children":9341},{},[9342,9344,9349],{"type":26,"value":9343},"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":41,"props":9345,"children":9346},{"href":3985},[9347],{"type":26,"value":9348},"glossary",{"type":26,"value":9350}," is a decent place to build the vocabulary for it.",{"title":7,"searchDepth":173,"depth":173,"links":9352},[9353,9354,9355,9356,9357,9358,9359,9360],{"id":8932,"depth":173,"text":8935},{"id":9006,"depth":173,"text":9009},{"id":9060,"depth":173,"text":9063},{"id":9105,"depth":173,"text":9108},{"id":9152,"depth":173,"text":9155},{"id":9206,"depth":173,"text":9209},{"id":9262,"depth":173,"text":9265},{"id":9323,"depth":173,"text":9326},"content:blog:logical-qubits-fault-tolerance-explained.md","blog\u002Flogical-qubits-fault-tolerance-explained.md","blog\u002Flogical-qubits-fault-tolerance-explained",{"_path":1768,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":9365,"description":9366,"date":3081,"author":11,"tags":9367,"readingTime":951,"body":9371,"_type":180,"_id":10469,"_source":182,"_file":10470,"_stem":10471,"_extension":185},"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.",[9368,9369,9370],"Post-Quantum","Security","Cryptography",{"type":18,"children":9372,"toc":10459},[9373,9393,9406,9412,9417,9527,9532,9551,9557,9562,9592,9602,9612,9624,9629,9635,9655,9660,9686,9697,9703,9708,9751,9757,9762,10182,10194,10200,10212,10224,10274,10279,10285,10290,10399,10405,10417,10422,10455],{"type":21,"tag":22,"props":9374,"children":9375},{},[9376,9378,9384,9386,9391],{"type":26,"value":9377},"Most discussions of ",{"type":21,"tag":41,"props":9379,"children":9381},{"href":9380},"\u002Fglossary\u002Fpost-quantum-cryptography",[9382],{"type":26,"value":9383},"post-quantum cryptography",{"type":26,"value":9385}," stall at the same place: ",{"type":21,"tag":2071,"props":9387,"children":9388},{},[9389],{"type":26,"value":9390},"when do we have to do this?",{"type":26,"value":9392}," 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":9394,"children":9395},{},[9396,9398,9404],{"type":26,"value":9397},"If you already understand what PQC is and which algorithms replace which, our ",{"type":21,"tag":41,"props":9399,"children":9401},{"href":9400},"\u002Fblog\u002Fpost-quantum-cryptography-guide",[9402],{"type":26,"value":9403},"guide to post-quantum cryptography",{"type":26,"value":9405}," covers that ground. This post is about the calendar and the project plan.",{"type":21,"tag":29,"props":9407,"children":9409},{"id":9408},"the-standards-are-settled",[9410],{"type":26,"value":9411},"The standards are settled",{"type":21,"tag":22,"props":9413,"children":9414},{},[9415],{"type":26,"value":9416},"NIST finalized three post-quantum standards on August 13, 2024, after an eight-year competition:",{"type":21,"tag":4087,"props":9418,"children":9419},{},[9420,9446],{"type":21,"tag":4091,"props":9421,"children":9422},{},[9423],{"type":21,"tag":4095,"props":9424,"children":9425},{},[9426,9431,9436,9441],{"type":21,"tag":4099,"props":9427,"children":9428},{},[9429],{"type":26,"value":9430},"Standard",{"type":21,"tag":4099,"props":9432,"children":9433},{},[9434],{"type":26,"value":9435},"Algorithm",{"type":21,"tag":4099,"props":9437,"children":9438},{},[9439],{"type":26,"value":9440},"Formerly",{"type":21,"tag":4099,"props":9442,"children":9443},{},[9444],{"type":26,"value":9445},"Replaces",{"type":21,"tag":4113,"props":9447,"children":9448},{},[9449,9475,9501],{"type":21,"tag":4095,"props":9450,"children":9451},{},[9452,9460,9465,9470],{"type":21,"tag":4120,"props":9453,"children":9454},{},[9455],{"type":21,"tag":205,"props":9456,"children":9457},{},[9458],{"type":26,"value":9459},"FIPS 203",{"type":21,"tag":4120,"props":9461,"children":9462},{},[9463],{"type":26,"value":9464},"ML-KEM",{"type":21,"tag":4120,"props":9466,"children":9467},{},[9468],{"type":26,"value":9469},"CRYSTALS-Kyber",{"type":21,"tag":4120,"props":9471,"children":9472},{},[9473],{"type":26,"value":9474},"RSA key transport, ECDH",{"type":21,"tag":4095,"props":9476,"children":9477},{},[9478,9486,9491,9496],{"type":21,"tag":4120,"props":9479,"children":9480},{},[9481],{"type":21,"tag":205,"props":9482,"children":9483},{},[9484],{"type":26,"value":9485},"FIPS 204",{"type":21,"tag":4120,"props":9487,"children":9488},{},[9489],{"type":26,"value":9490},"ML-DSA",{"type":21,"tag":4120,"props":9492,"children":9493},{},[9494],{"type":26,"value":9495},"CRYSTALS-Dilithium",{"type":21,"tag":4120,"props":9497,"children":9498},{},[9499],{"type":26,"value":9500},"ECDSA, RSA-PSS signatures",{"type":21,"tag":4095,"props":9502,"children":9503},{},[9504,9512,9517,9522],{"type":21,"tag":4120,"props":9505,"children":9506},{},[9507],{"type":21,"tag":205,"props":9508,"children":9509},{},[9510],{"type":26,"value":9511},"FIPS 205",{"type":21,"tag":4120,"props":9513,"children":9514},{},[9515],{"type":26,"value":9516},"SLH-DSA",{"type":21,"tag":4120,"props":9518,"children":9519},{},[9520],{"type":26,"value":9521},"SPHINCS+",{"type":21,"tag":4120,"props":9523,"children":9524},{},[9525],{"type":26,"value":9526},"Conservative hash-based signing",{"type":21,"tag":22,"props":9528,"children":9529},{},[9530],{"type":26,"value":9531},"Use the FIPS names in procurement documents and internal specs. \"Kyber\" and \"Dilithium\" refer to the competition submissions, which differ in small but real ways from the standardized versions. A vendor claiming \"Kyber support\" does or doesn't mean FIPS 203 compliance, and that ambiguity has already caused interop problems.",{"type":21,"tag":22,"props":9533,"children":9534},{},[9535,9537,9542,9544,9549],{"type":26,"value":9536},"Two more are in flight. NIST selected ",{"type":21,"tag":205,"props":9538,"children":9539},{},[9540],{"type":26,"value":9541},"HQC",{"type":26,"value":9543}," 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":205,"props":9545,"children":9546},{},[9547],{"type":26,"value":9548},"FN-DSA",{"type":26,"value":9550}," (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":29,"props":9552,"children":9554},{"id":9553},"the-deadlines-that-exist-on-paper",[9555],{"type":26,"value":9556},"The deadlines that exist on paper",{"type":21,"tag":22,"props":9558,"children":9559},{},[9560],{"type":26,"value":9561},"Three separate sets of dates matter, and they don't line up.",{"type":21,"tag":22,"props":9563,"children":9564},{},[9565,9570,9572,9577,9579,9584,9585,9590],{"type":21,"tag":205,"props":9566,"children":9567},{},[9568],{"type":26,"value":9569},"NIST IR 8547",{"type":26,"value":9571}," (",{"type":21,"tag":2071,"props":9573,"children":9574},{},[9575],{"type":26,"value":9576},"Transition to Post-Quantum Cryptography Standards",{"type":26,"value":9578},", 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":205,"props":9580,"children":9581},{},[9582],{"type":26,"value":9583},"deprecated after 2030",{"type":26,"value":149},{"type":21,"tag":205,"props":9586,"children":9587},{},[9588],{"type":26,"value":9589},"disallowed after 2035",{"type":26,"value":9591},". 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":9593,"children":9594},{},[9595,9600],{"type":21,"tag":205,"props":9596,"children":9597},{},[9598],{"type":26,"value":9599},"NSA's CNSA 2.0",{"type":26,"value":9601}," 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":9603,"children":9604},{},[9605,9610],{"type":21,"tag":205,"props":9606,"children":9607},{},[9608],{"type":26,"value":9609},"OMB M-23-02",{"type":26,"value":9611}," (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 full federal migration targeted for 2035.",{"type":21,"tag":22,"props":9613,"children":9614},{},[9615,9617,9622],{"type":26,"value":9616},"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":205,"props":9618,"children":9619},{},[9620],{"type":26,"value":9621},"2027, not 2035",{"type":26,"value":9623},". 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":9625,"children":9626},{},[9627],{"type":26,"value":9628},"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":29,"props":9630,"children":9632},{"id":9631},"why-the-threat-model-has-no-start-date",[9633],{"type":26,"value":9634},"Why the threat model has no start date",{"type":21,"tag":22,"props":9636,"children":9637},{},[9638,9640,9645,9647,9653],{"type":26,"value":9639},"The reason a 2030 deadline is defensible even though nobody expects a code-breaking quantum computer by 2030 is ",{"type":21,"tag":205,"props":9641,"children":9642},{},[9643],{"type":26,"value":9644},"harvest now, decrypt later",{"type":26,"value":9646},". An adversary records encrypted traffic today and decrypts it whenever ",{"type":21,"tag":41,"props":9648,"children":9650},{"href":9649},"\u002Fglossary\u002Fshor-algorithm",[9651],{"type":26,"value":9652},"Shor's algorithm",{"type":26,"value":9654}," becomes runnable at scale. Any data whose confidentiality must outlive that moment is already exposed.",{"type":21,"tag":22,"props":9656,"children":9657},{},[9658],{"type":26,"value":9659},"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":9661,"children":9662},{},[9663,9665,9670,9672,9676,9678,9684],{"type":26,"value":9664},"What makes this hard to plan against is that the hardware estimate keeps moving. ",{"type":21,"tag":41,"props":9666,"children":9667},{"href":8629},[9668],{"type":26,"value":9669},"Shor's 1994 paper",{"type":26,"value":9671}," established the algorithm. The resource question (how many ",{"type":21,"tag":41,"props":9673,"children":9674},{"href":43},[9675],{"type":26,"value":46},{"type":26,"value":9677}," and how many gates to break RSA-2048) has been re-estimated downward repeatedly as compilation techniques improved. Recent work ",{"type":21,"tag":41,"props":9679,"children":9681},{"href":9680},"\u002Fresearch\u002Fshor-lean-formalization-2026",[9682],{"type":26,"value":9683},"machine-checking those estimates in Lean",{"type":26,"value":9685}," is valuable precisely because it removes hand-waving from a number 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":9687,"children":9688},{},[9689,9691,9695],{"type":26,"value":9690},"For the record: symmetric cryptography is fine. ",{"type":21,"tag":41,"props":9692,"children":9693},{"href":7178},[9694],{"type":26,"value":7181},{"type":26,"value":9696}," gives only a quadratic speedup, so AES-256 retains 128-bit effective security. The migration is an asymmetric-crypto migration.",{"type":21,"tag":29,"props":9698,"children":9700},{"id":9699},"why-this-takes-years",[9701],{"type":26,"value":9702},"Why this takes years",{"type":21,"tag":22,"props":9704,"children":9705},{},[9706],{"type":26,"value":9707},"Migration is slow for reasons that have nothing to do with the algorithms:",{"type":21,"tag":3137,"props":9709,"children":9710},{},[9711,9721,9731,9741],{"type":21,"tag":3141,"props":9712,"children":9713},{},[9714,9719],{"type":21,"tag":205,"props":9715,"children":9716},{},[9717],{"type":26,"value":9718},"You don't know where your crypto is.",{"type":26,"value":9720}," 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":3141,"props":9722,"children":9723},{},[9724,9729],{"type":21,"tag":205,"props":9725,"children":9726},{},[9727],{"type":26,"value":9728},"Key and signature sizes change.",{"type":26,"value":9730}," 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":3141,"props":9732,"children":9733},{},[9734,9739],{"type":21,"tag":205,"props":9735,"children":9736},{},[9737],{"type":26,"value":9738},"Both endpoints must upgrade.",{"type":26,"value":9740}," You migrate at the speed of your slowest counterparty.",{"type":21,"tag":3141,"props":9742,"children":9743},{},[9744,9749],{"type":21,"tag":205,"props":9745,"children":9746},{},[9747],{"type":26,"value":9748},"Hardware has a decade-long tail.",{"type":26,"value":9750}," HSMs and embedded devices deployed today will still be running in 2035.",{"type":21,"tag":29,"props":9752,"children":9754},{"id":9753},"inventory-first-a-starting-point",[9755],{"type":26,"value":9756},"Inventory first: a starting point",{"type":21,"tag":22,"props":9758,"children":9759},{},[9760],{"type":26,"value":9761},"You cannot migrate an unknown. Start with automated discovery of what's negotiated in production, not what your architecture diagram claims.",{"type":21,"tag":2328,"props":9763,"children":9767},{"className":9764,"code":9765,"language":9766,"meta":7,"style":7},"language-bash shiki shiki-themes github-dark","# 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","bash",[9768],{"type":21,"tag":2097,"props":9769,"children":9770},{"__ignoreMap":7},[9771,9779,9827,9850,9857,9865,9873,9896,9940,9947,9955,9988,10055,10094,10115,10165],{"type":21,"tag":2338,"props":9772,"children":9773},{"class":2340,"line":2341},[9774],{"type":21,"tag":2338,"props":9775,"children":9776},{"style":3469},[9777],{"type":26,"value":9778},"# What key exchange and signature algorithms is this endpoint using?\n",{"type":21,"tag":2338,"props":9780,"children":9781},{"class":2340,"line":173},[9782,9787,9792,9797,9802,9807,9812,9817,9822],{"type":21,"tag":2338,"props":9783,"children":9784},{"style":4385},[9785],{"type":26,"value":9786},"openssl",{"type":21,"tag":2338,"props":9788,"children":9789},{"style":2374},[9790],{"type":26,"value":9791}," s_client",{"type":21,"tag":2338,"props":9793,"children":9794},{"style":2363},[9795],{"type":26,"value":9796}," -connect",{"type":21,"tag":2338,"props":9798,"children":9799},{"style":2374},[9800],{"type":26,"value":9801}," example.com:443",{"type":21,"tag":2338,"props":9803,"children":9804},{"style":2363},[9805],{"type":26,"value":9806}," -brief",{"type":21,"tag":2338,"props":9808,"children":9809},{"style":3219},[9810],{"type":26,"value":9811}," \u003C",{"type":21,"tag":2338,"props":9813,"children":9814},{"style":2374},[9815],{"type":26,"value":9816},"\u002Fdev\u002Fnull",{"type":21,"tag":2338,"props":9818,"children":9819},{"style":3219},[9820],{"type":26,"value":9821}," 2>&1",{"type":21,"tag":2338,"props":9823,"children":9824},{"style":2363},[9825],{"type":26,"value":9826}," \\\n",{"type":21,"tag":2338,"props":9828,"children":9829},{"class":2340,"line":2359},[9830,9835,9840,9845],{"type":21,"tag":2338,"props":9831,"children":9832},{"style":3219},[9833],{"type":26,"value":9834},"  |",{"type":21,"tag":2338,"props":9836,"children":9837},{"style":4385},[9838],{"type":26,"value":9839}," grep",{"type":21,"tag":2338,"props":9841,"children":9842},{"style":2363},[9843],{"type":26,"value":9844}," -Ei",{"type":21,"tag":2338,"props":9846,"children":9847},{"style":2374},[9848],{"type":26,"value":9849}," 'protocol|ciphersuite|group|peer signature'\n",{"type":21,"tag":2338,"props":9851,"children":9852},{"class":2340,"line":2421},[9853],{"type":21,"tag":2338,"props":9854,"children":9855},{"emptyLinePlaceholder":3243},[9856],{"type":26,"value":3246},{"type":21,"tag":2338,"props":9858,"children":9859},{"class":2340,"line":2445},[9860],{"type":21,"tag":2338,"props":9861,"children":9862},{"style":3469},[9863],{"type":26,"value":9864},"# Does the endpoint support hybrid post-quantum key exchange?\n",{"type":21,"tag":2338,"props":9866,"children":9867},{"class":2340,"line":877},[9868],{"type":21,"tag":2338,"props":9869,"children":9870},{"style":3469},[9871],{"type":26,"value":9872},"# Requires OpenSSL 3.5+, which ships ML-KEM natively.\n",{"type":21,"tag":2338,"props":9874,"children":9875},{"class":2340,"line":196},[9876,9880,9884,9888,9892],{"type":21,"tag":2338,"props":9877,"children":9878},{"style":4385},[9879],{"type":26,"value":9786},{"type":21,"tag":2338,"props":9881,"children":9882},{"style":2374},[9883],{"type":26,"value":9791},{"type":21,"tag":2338,"props":9885,"children":9886},{"style":2363},[9887],{"type":26,"value":9796},{"type":21,"tag":2338,"props":9889,"children":9890},{"style":2374},[9891],{"type":26,"value":9801},{"type":21,"tag":2338,"props":9893,"children":9894},{"style":2363},[9895],{"type":26,"value":9826},{"type":21,"tag":2338,"props":9897,"children":9898},{"class":2340,"line":951},[9899,9904,9909,9913,9917,9921,9926,9930,9935],{"type":21,"tag":2338,"props":9900,"children":9901},{"style":2363},[9902],{"type":26,"value":9903},"  -groups",{"type":21,"tag":2338,"props":9905,"children":9906},{"style":2374},[9907],{"type":26,"value":9908}," X25519MLKEM768",{"type":21,"tag":2338,"props":9910,"children":9911},{"style":3219},[9912],{"type":26,"value":9811},{"type":21,"tag":2338,"props":9914,"children":9915},{"style":2374},[9916],{"type":26,"value":9816},{"type":21,"tag":2338,"props":9918,"children":9919},{"style":3219},[9920],{"type":26,"value":9821},{"type":21,"tag":2338,"props":9922,"children":9923},{"style":3219},[9924],{"type":26,"value":9925}," |",{"type":21,"tag":2338,"props":9927,"children":9928},{"style":4385},[9929],{"type":26,"value":9839},{"type":21,"tag":2338,"props":9931,"children":9932},{"style":2363},[9933],{"type":26,"value":9934}," -i",{"type":21,"tag":2338,"props":9936,"children":9937},{"style":2374},[9938],{"type":26,"value":9939}," 'group\\|error'\n",{"type":21,"tag":2338,"props":9941,"children":9942},{"class":2340,"line":16},[9943],{"type":21,"tag":2338,"props":9944,"children":9945},{"emptyLinePlaceholder":3243},[9946],{"type":26,"value":3246},{"type":21,"tag":2338,"props":9948,"children":9949},{"class":2340,"line":3465},[9950],{"type":21,"tag":2338,"props":9951,"children":9952},{"style":3469},[9953],{"type":26,"value":9954},"# Inventory certificate signature algorithms across an internal fleet\n",{"type":21,"tag":2338,"props":9956,"children":9957},{"class":2340,"line":3475},[9958,9963,9968,9973,9978,9983],{"type":21,"tag":2338,"props":9959,"children":9960},{"style":3219},[9961],{"type":26,"value":9962},"while",{"type":21,"tag":2338,"props":9964,"children":9965},{"style":2363},[9966],{"type":26,"value":9967}," read",{"type":21,"tag":2338,"props":9969,"children":9970},{"style":2363},[9971],{"type":26,"value":9972}," -r",{"type":21,"tag":2338,"props":9974,"children":9975},{"style":2374},[9976],{"type":26,"value":9977}," host",{"type":21,"tag":2338,"props":9979,"children":9980},{"style":2345},[9981],{"type":26,"value":9982},"; ",{"type":21,"tag":2338,"props":9984,"children":9985},{"style":3219},[9986],{"type":26,"value":9987},"do\n",{"type":21,"tag":2338,"props":9989,"children":9990},{"class":2340,"line":500},[9991,9996,10000,10005,10010,10014,10019,10023,10027,10032,10037,10042,10047,10051],{"type":21,"tag":2338,"props":9992,"children":9993},{"style":2345},[9994],{"type":26,"value":9995},"  alg",{"type":21,"tag":2338,"props":9997,"children":9998},{"style":3219},[9999],{"type":26,"value":3259},{"type":21,"tag":2338,"props":10001,"children":10002},{"style":2345},[10003],{"type":26,"value":10004},"$(",{"type":21,"tag":2338,"props":10006,"children":10007},{"style":2363},[10008],{"type":26,"value":10009},"echo",{"type":21,"tag":2338,"props":10011,"children":10012},{"style":3219},[10013],{"type":26,"value":9925},{"type":21,"tag":2338,"props":10015,"children":10016},{"style":4385},[10017],{"type":26,"value":10018}," openssl",{"type":21,"tag":2338,"props":10020,"children":10021},{"style":2374},[10022],{"type":26,"value":9791},{"type":21,"tag":2338,"props":10024,"children":10025},{"style":2363},[10026],{"type":26,"value":9796},{"type":21,"tag":2338,"props":10028,"children":10029},{"style":2374},[10030],{"type":26,"value":10031}," \"",{"type":21,"tag":2338,"props":10033,"children":10034},{"style":2345},[10035],{"type":26,"value":10036},"$host",{"type":21,"tag":2338,"props":10038,"children":10039},{"style":2374},[10040],{"type":26,"value":10041},":443\"",{"type":21,"tag":2338,"props":10043,"children":10044},{"style":3219},[10045],{"type":26,"value":10046}," 2>",{"type":21,"tag":2338,"props":10048,"children":10049},{"style":2374},[10050],{"type":26,"value":9816},{"type":21,"tag":2338,"props":10052,"children":10053},{"style":2363},[10054],{"type":26,"value":9826},{"type":21,"tag":2338,"props":10056,"children":10057},{"class":2340,"line":3535},[10058,10063,10067,10072,10077,10082,10086,10090],{"type":21,"tag":2338,"props":10059,"children":10060},{"style":3219},[10061],{"type":26,"value":10062},"    |",{"type":21,"tag":2338,"props":10064,"children":10065},{"style":4385},[10066],{"type":26,"value":10018},{"type":21,"tag":2338,"props":10068,"children":10069},{"style":2374},[10070],{"type":26,"value":10071}," x509",{"type":21,"tag":2338,"props":10073,"children":10074},{"style":2363},[10075],{"type":26,"value":10076}," -noout",{"type":21,"tag":2338,"props":10078,"children":10079},{"style":2363},[10080],{"type":26,"value":10081}," -text",{"type":21,"tag":2338,"props":10083,"children":10084},{"style":3219},[10085],{"type":26,"value":10046},{"type":21,"tag":2338,"props":10087,"children":10088},{"style":2374},[10089],{"type":26,"value":9816},{"type":21,"tag":2338,"props":10091,"children":10092},{"style":2363},[10093],{"type":26,"value":9826},{"type":21,"tag":2338,"props":10095,"children":10096},{"class":2340,"line":3583},[10097,10101,10106,10111],{"type":21,"tag":2338,"props":10098,"children":10099},{"style":3219},[10100],{"type":26,"value":10062},{"type":21,"tag":2338,"props":10102,"children":10103},{"style":4385},[10104],{"type":26,"value":10105}," awk",{"type":21,"tag":2338,"props":10107,"children":10108},{"style":2374},[10109],{"type":26,"value":10110}," '\u002FSignature Algorithm\u002F {print $3; exit}'",{"type":21,"tag":2338,"props":10112,"children":10113},{"style":2345},[10114],{"type":26,"value":3319},{"type":21,"tag":2338,"props":10116,"children":10117},{"class":2340,"line":3625},[10118,10123,10128,10132,10136,10140,10145,10150,10155,10160],{"type":21,"tag":2338,"props":10119,"children":10120},{"style":2363},[10121],{"type":26,"value":10122},"  printf",{"type":21,"tag":2338,"props":10124,"children":10125},{"style":2374},[10126],{"type":26,"value":10127}," '%s\\t%s\\n'",{"type":21,"tag":2338,"props":10129,"children":10130},{"style":2374},[10131],{"type":26,"value":10031},{"type":21,"tag":2338,"props":10133,"children":10134},{"style":2345},[10135],{"type":26,"value":10036},{"type":21,"tag":2338,"props":10137,"children":10138},{"style":2374},[10139],{"type":26,"value":3369},{"type":21,"tag":2338,"props":10141,"children":10142},{"style":2374},[10143],{"type":26,"value":10144}," \"${",{"type":21,"tag":2338,"props":10146,"children":10147},{"style":2345},[10148],{"type":26,"value":10149},"alg",{"type":21,"tag":2338,"props":10151,"children":10152},{"style":3219},[10153],{"type":26,"value":10154},":-",{"type":21,"tag":2338,"props":10156,"children":10157},{"style":2345},[10158],{"type":26,"value":10159},"UNREACHABLE",{"type":21,"tag":2338,"props":10161,"children":10162},{"style":2374},[10163],{"type":26,"value":10164},"}\"\n",{"type":21,"tag":2338,"props":10166,"children":10167},{"class":2340,"line":4652},[10168,10173,10177],{"type":21,"tag":2338,"props":10169,"children":10170},{"style":3219},[10171],{"type":26,"value":10172},"done",{"type":21,"tag":2338,"props":10174,"children":10175},{"style":3219},[10176],{"type":26,"value":9811},{"type":21,"tag":2338,"props":10178,"children":10179},{"style":2345},[10180],{"type":26,"value":10181}," hosts.txt\n",{"type":21,"tag":22,"props":10183,"children":10184},{},[10185,10187,10192],{"type":26,"value":10186},"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":205,"props":10188,"children":10189},{},[10190],{"type":26,"value":10191},"how long the data it protects must stay confidential",{"type":26,"value":10193},". That last column is what turns an inventory into a prioritized migration order.",{"type":21,"tag":29,"props":10195,"children":10197},{"id":10196},"hybrid-deployment-is-the-low-risk-path",[10198],{"type":26,"value":10199},"Hybrid deployment is the low-risk path",{"type":21,"tag":22,"props":10201,"children":10202},{},[10203,10205,10210],{"type":26,"value":10204},"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":2071,"props":10206,"children":10207},{},[10208],{"type":26,"value":10209},"both",{"type":26,"value":10211}," are broken. This hedges against implementation bugs and undiscovered cryptanalysis in the newer lattice schemes.",{"type":21,"tag":22,"props":10213,"children":10214},{},[10215,10217,10222],{"type":26,"value":10216},"This is no longer experimental. ",{"type":21,"tag":205,"props":10218,"children":10219},{},[10220],{"type":26,"value":10221},"X25519MLKEM768",{"type":26,"value":10223}," 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":2328,"props":10225,"children":10227},{"className":9764,"code":10226,"language":9766,"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",[10228],{"type":21,"tag":2097,"props":10229,"children":10230},{"__ignoreMap":7},[10231,10239,10257],{"type":21,"tag":2338,"props":10232,"children":10233},{"class":2340,"line":2341},[10234],{"type":21,"tag":2338,"props":10235,"children":10236},{"style":3469},[10237],{"type":26,"value":10238},"# nginx with OpenSSL 3.5+: explicit hybrid preference, classical fallback\n",{"type":21,"tag":2338,"props":10240,"children":10241},{"class":2340,"line":173},[10242,10247,10252],{"type":21,"tag":2338,"props":10243,"children":10244},{"style":4385},[10245],{"type":26,"value":10246},"ssl_protocols",{"type":21,"tag":2338,"props":10248,"children":10249},{"style":2374},[10250],{"type":26,"value":10251}," TLSv1.3",{"type":21,"tag":2338,"props":10253,"children":10254},{"style":2345},[10255],{"type":26,"value":10256},";\n",{"type":21,"tag":2338,"props":10258,"children":10259},{"class":2340,"line":2359},[10260,10265,10270],{"type":21,"tag":2338,"props":10261,"children":10262},{"style":4385},[10263],{"type":26,"value":10264},"ssl_ecdh_curve",{"type":21,"tag":2338,"props":10266,"children":10267},{"style":2374},[10268],{"type":26,"value":10269}," X25519MLKEM768:X25519:P-256",{"type":21,"tag":2338,"props":10271,"children":10272},{"style":2345},[10273],{"type":26,"value":10256},{"type":21,"tag":22,"props":10275,"children":10276},{},[10277],{"type":26,"value":10278},"Signatures are further behind. Public CAs are not yet issuing ML-DSA certificates at scale, so key exchange is where you get real HNDL protection today, and it's the cheapest win available.",{"type":21,"tag":29,"props":10280,"children":10282},{"id":10281},"what-to-do-this-quarter",[10283],{"type":26,"value":10284},"What to do this quarter",{"type":21,"tag":22,"props":10286,"children":10287},{},[10288],{"type":26,"value":10289},"A realistic 90-day slice:",{"type":21,"tag":7028,"props":10291,"children":10292},{},[10293,10303,10342,10352,10362,10372,10389],{"type":21,"tag":3141,"props":10294,"children":10295},{},[10296,10301],{"type":21,"tag":205,"props":10297,"children":10298},{},[10299],{"type":26,"value":10300},"Appoint an owner.",{"type":26,"value":10302}," Migrations without a named accountable person do not happen. This is a multi-year program, not a ticket.",{"type":21,"tag":3141,"props":10304,"children":10305},{},[10306,10311,10313,10319,10320,10326,10327,10333,10334,10340],{"type":21,"tag":205,"props":10307,"children":10308},{},[10309],{"type":26,"value":10310},"Run automated discovery",{"type":26,"value":10312}," across external endpoints, internal service mesh, and code repositories. Grep your codebases for ",{"type":21,"tag":2097,"props":10314,"children":10316},{"className":10315},[],[10317],{"type":26,"value":10318},"RSA",{"type":26,"value":1375},{"type":21,"tag":2097,"props":10321,"children":10323},{"className":10322},[],[10324],{"type":26,"value":10325},"ECDSA",{"type":26,"value":1375},{"type":21,"tag":2097,"props":10328,"children":10330},{"className":10329},[],[10331],{"type":26,"value":10332},"secp256",{"type":26,"value":1375},{"type":21,"tag":2097,"props":10335,"children":10337},{"className":10336},[],[10338],{"type":26,"value":10339},"PKCS1",{"type":26,"value":10341},", and hardcoded algorithm identifiers.",{"type":21,"tag":3141,"props":10343,"children":10344},{},[10345,10350],{"type":21,"tag":205,"props":10346,"children":10347},{},[10348],{"type":26,"value":10349},"Classify by data lifetime.",{"type":26,"value":10351}," Sort systems by how long their data must stay secret. Anything over ten years is priority one.",{"type":21,"tag":3141,"props":10353,"children":10354},{},[10355,10360],{"type":21,"tag":205,"props":10356,"children":10357},{},[10358],{"type":26,"value":10359},"Turn on hybrid TLS where it's free.",{"type":26,"value":10361}," Upgrade to OpenSSL 3.5+ or a TLS terminator that supports X25519MLKEM768. For many organizations this is a load-balancer config change covering the majority of traffic.",{"type":21,"tag":3141,"props":10363,"children":10364},{},[10365,10370],{"type":21,"tag":205,"props":10366,"children":10367},{},[10368],{"type":26,"value":10369},"Send the vendor questionnaire.",{"type":26,"value":10371}," 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":3141,"props":10373,"children":10374},{},[10375,10380,10382,10387],{"type":21,"tag":205,"props":10376,"children":10377},{},[10378],{"type":26,"value":10379},"Fix crypto-agility in new code.",{"type":26,"value":10381}," Stop hardcoding algorithms. Route every operation through an abstraction that takes the algorithm from configuration, so the ",{"type":21,"tag":2071,"props":10383,"children":10384},{},[10385],{"type":26,"value":10386},"next",{"type":26,"value":10388}," 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":3141,"props":10390,"children":10391},{},[10392,10397],{"type":21,"tag":205,"props":10393,"children":10394},{},[10395],{"type":26,"value":10396},"Move code signing early.",{"type":26,"value":10398}," It has the earliest federal deadline, the longest verification tail, and signatures that must remain verifiable for decades.",{"type":21,"tag":29,"props":10400,"children":10402},{"id":10401},"the-bottom-line",[10403],{"type":26,"value":10404},"The bottom line",{"type":21,"tag":22,"props":10406,"children":10407},{},[10408,10410,10415],{"type":26,"value":10409},"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":205,"props":10411,"children":10412},{},[10413],{"type":26,"value":10414},"after 2030, classical asymmetric crypto is deprecated, and after 2035, it's disallowed",{"type":26,"value":10416},", with federal national-security systems running years ahead of that.",{"type":21,"tag":22,"props":10418,"children":10419},{},[10420],{"type":26,"value":10421},"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":10423,"children":10424},{},[10425,10430,10431,10436,10437,10442,10443,10448,10449],{"type":21,"tag":205,"props":10426,"children":10427},{},[10428],{"type":26,"value":10429},"Further reading:",{"type":26,"value":1367},{"type":21,"tag":41,"props":10432,"children":10433},{"href":9400},[10434],{"type":26,"value":10435},"What PQC is",{"type":26,"value":7133},{"type":21,"tag":41,"props":10438,"children":10439},{"href":739},[10440],{"type":26,"value":10441},"Reading policy documents as technical assessments",{"type":26,"value":7133},{"type":21,"tag":41,"props":10444,"children":10445},{"href":3985},[10446],{"type":26,"value":10447},"Quantum computing glossary",{"type":26,"value":7133},{"type":21,"tag":41,"props":10450,"children":10452},{"href":10451},"\u002Fnews",[10453],{"type":26,"value":10454},"Latest developments",{"type":21,"tag":2712,"props":10456,"children":10457},{},[10458],{"type":26,"value":2716},{"title":7,"searchDepth":173,"depth":173,"links":10460},[10461,10462,10463,10464,10465,10466,10467,10468],{"id":9408,"depth":173,"text":9411},{"id":9553,"depth":173,"text":9556},{"id":9631,"depth":173,"text":9634},{"id":9699,"depth":173,"text":9702},{"id":9753,"depth":173,"text":9756},{"id":10196,"depth":173,"text":10199},{"id":10281,"depth":173,"text":10284},{"id":10401,"depth":173,"text":10404},"content:blog:post-quantum-migration-deadlines.md","blog\u002Fpost-quantum-migration-deadlines.md","blog\u002Fpost-quantum-migration-deadlines",{"_path":10473,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":10474,"description":10475,"date":3081,"author":11,"tags":10476,"readingTime":16,"body":10477,"_type":180,"_id":11043,"_source":182,"_file":11044,"_stem":11045,"_extension":185},"\u002Fblog\u002Fq-day-breaking-rsa-2048","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.",[9368,9369,9370],{"type":18,"children":10478,"toc":11033},[10479,10484,10489,10495,10519,10531,10536,10542,10560,10572,10578,10598,10637,10666,10672,10706,10733,10759,10785,10790,10843,10853,10859,10883,10895,10901,10906,10918,10924,10929,10955,10967,10973,10978,10990,11002],{"type":21,"tag":22,"props":10480,"children":10481},{},[10482],{"type":26,"value":10483},"\"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 different things, and the gap between them is measured in years and billions of dollars of engineering.",{"type":21,"tag":22,"props":10485,"children":10486},{},[10487],{"type":26,"value":10488},"This post 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":29,"props":10490,"children":10492},{"id":10491},"defining-the-term-precisely",[10493],{"type":26,"value":10494},"Defining the term precisely",{"type":21,"tag":22,"props":10496,"children":10497},{},[10498,10504,10506,10511,10513,10517],{"type":21,"tag":41,"props":10499,"children":10501},{"href":10500},"\u002Fglossary\u002Fq-day",[10502],{"type":26,"value":10503},"Q-Day",{"type":26,"value":10505}," is most usefully defined as ",{"type":21,"tag":205,"props":10507,"children":10508},{},[10509],{"type":26,"value":10510},"the day a cryptographically relevant quantum computer (CRQC) first exists",{"type":26,"value":10512},": a machine that runs ",{"type":21,"tag":41,"props":10514,"children":10515},{"href":9649},[10516],{"type":26,"value":9652},{"type":26,"value":10518}," against real-world key sizes within an operationally useful time.",{"type":21,"tag":22,"props":10520,"children":10521},{},[10522,10524,10529],{"type":26,"value":10523},"The looseness creeps in around \"real-world key sizes.\" Some writers use Q-Day to mean specifically ",{"type":21,"tag":2071,"props":10525,"children":10526},{},[10527],{"type":26,"value":10528},"RSA-2048 is broken",{"type":26,"value":10530},". Others use it for any CRQC, which would include a machine that breaks NIST P-256 elliptic-curve keys, a meaningfully easier target, 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":10532,"children":10533},{},[10534],{"type":26,"value":10535},"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":29,"props":10537,"children":10539},{"id":10538},"why-the-date-matters-less-than-youd-think",[10540],{"type":26,"value":10541},"Why the date matters less than you'd think",{"type":21,"tag":22,"props":10543,"children":10544},{},[10545,10547,10551,10553,10558],{"type":26,"value":10546},"The instinct on hearing \"Q-Day\" is to ask when. That question is less decision-relevant than it feels, because of ",{"type":21,"tag":205,"props":10548,"children":10549},{},[10550],{"type":26,"value":9644},{"type":26,"value":10552},": 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":2071,"props":10554,"children":10555},{},[10556],{"type":26,"value":10557},"now",{"type":26,"value":10559},", regardless of when Q-Day lands.",{"type":21,"tag":22,"props":10561,"children":10562},{},[10563,10565,10570],{"type":26,"value":10564},"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":41,"props":10566,"children":10567},{"href":1768},[10568],{"type":26,"value":10569},"the post-quantum migration clock",{"type":26,"value":10571},", and they are deliberately independent of any hardware forecast.",{"type":21,"tag":29,"props":10573,"children":10575},{"id":10574},"the-core-question-what-would-the-machine-look-like",[10576],{"type":26,"value":10577},"The core question: what would the machine look like?",{"type":21,"tag":22,"props":10579,"children":10580},{},[10581,10583,10588,10590,10596],{"type":26,"value":10582},"Shor's algorithm, ",{"type":21,"tag":41,"props":10584,"children":10585},{"href":8629},[10586],{"type":26,"value":10587},"introduced in 1994",{"type":26,"value":10589},", reduces factoring to period-finding, which it solves using ",{"type":21,"tag":41,"props":10591,"children":10593},{"href":10592},"\u002Fglossary\u002Fphase-estimation",[10594],{"type":26,"value":10595},"quantum phase estimation",{"type":26,"value":10597}," 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":10599,"children":10600},{},[10601,10606,10608,10614,10616,10620,10622,10627,10629,10635],{"type":21,"tag":205,"props":10602,"children":10603},{},[10604],{"type":26,"value":10605},"Logical qubits",{"type":26,"value":10607}," are the idealized, error-free qubits the algorithm is written against. Gidney and Ekerå's 2019 construction expresses this as ",{"type":21,"tag":2097,"props":10609,"children":10611},{"className":10610},[],[10612],{"type":26,"value":10613},"3n + 0.002·n·lg n",{"type":26,"value":10615}," logical qubits for an ",{"type":21,"tag":2071,"props":10617,"children":10618},{},[10619],{"type":26,"value":4850},{"type":26,"value":10621},"-bit modulus. For RSA-2048 that works out to roughly ",{"type":21,"tag":205,"props":10623,"children":10624},{},[10625],{"type":26,"value":10626},"6,200 logical qubits",{"type":26,"value":10628},", alongside a Toffoli gate count on the order of ",{"type":21,"tag":2097,"props":10630,"children":10632},{"className":10631},[],[10633],{"type":26,"value":10634},"0.3n³",{"type":26,"value":10636},", billions of gates.",{"type":21,"tag":22,"props":10638,"children":10639},{},[10640,10645,10647,10651,10653,10657,10659,10664],{"type":21,"tag":205,"props":10641,"children":10642},{},[10643],{"type":26,"value":10644},"Physical qubits",{"type":26,"value":10646}," are what you build. The ratio between them is the overhead imposed by ",{"type":21,"tag":41,"props":10648,"children":10649},{"href":993},[10650],{"type":26,"value":8986},{"type":26,"value":10652},", and it is brutal. Under the surface code, each ",{"type":21,"tag":41,"props":10654,"children":10655},{"href":43},[10656],{"type":26,"value":8974},{"type":26,"value":10658}," is encoded across a patch of physical qubits whose size grows with the ",{"type":21,"tag":2071,"props":10660,"children":10661},{},[10662],{"type":26,"value":10663},"code distance",{"type":26,"value":10665},", 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":29,"props":10667,"children":10669},{"id":10668},"the-published-estimates-and-why-they-moved",[10670],{"type":26,"value":10671},"The published estimates, and why they moved",{"type":21,"tag":22,"props":10673,"children":10674},{},[10675,10677,10682,10684,10689,10690,10697,10699,10704],{"type":26,"value":10676},"The most-cited figure comes from ",{"type":21,"tag":205,"props":10678,"children":10679},{},[10680],{"type":26,"value":10681},"Gidney and Ekerå (2019)",{"type":26,"value":10683},": factoring a 2048-bit RSA integer in ",{"type":21,"tag":205,"props":10685,"children":10686},{},[10687],{"type":26,"value":10688},"8 hours using 20 million noisy physical qubits",{"type":26,"value":9571},{"type":21,"tag":41,"props":10691,"children":10694},{"href":10692,"rel":10693},"https:\u002F\u002Farxiv.org\u002Fabs\u002F1905.09749",[963],[10695],{"type":26,"value":10696},"arXiv:1905.09749",{"type":26,"value":10698},", later published in ",{"type":21,"tag":2071,"props":10700,"children":10701},{},[10702],{"type":26,"value":10703},"Quantum",{"type":26,"value":10705},"). That was already a hundredfold reduction in spacetime volume over prior proposals.",{"type":21,"tag":22,"props":10707,"children":10708},{},[10709,10711,10716,10718,10723,10724,10731],{"type":26,"value":10710},"In May 2025, ",{"type":21,"tag":205,"props":10712,"children":10713},{},[10714],{"type":26,"value":10715},"Gidney",{"type":26,"value":10717}," published a revised analysis: ",{"type":21,"tag":205,"props":10719,"children":10720},{},[10721],{"type":26,"value":10722},"fewer than one million noisy physical qubits, running for under a week",{"type":26,"value":9571},{"type":21,"tag":41,"props":10725,"children":10728},{"href":10726,"rel":10727},"https:\u002F\u002Farxiv.org\u002Fabs\u002F2505.15917",[963],[10729],{"type":26,"value":10730},"arXiv:2505.15917",{"type":26,"value":10732},"). That is roughly a 20× reduction in qubit count against his own earlier number, traded for a longer runtime.",{"type":21,"tag":22,"props":10734,"children":10735},{},[10736,10738,10743,10745,10750,10752,10757],{"type":26,"value":10737},"Both papers assume broadly the same hardware model: a planar square grid of superconducting qubits with nearest-neighbour connectivity, a ",{"type":21,"tag":205,"props":10739,"children":10740},{},[10741],{"type":26,"value":10742},"0.1% gate error rate",{"type":26,"value":10744},", a ",{"type":21,"tag":205,"props":10746,"children":10747},{},[10748],{"type":26,"value":10749},"1 microsecond",{"type":26,"value":10751}," surface code cycle, and a ",{"type":21,"tag":205,"props":10753,"children":10754},{},[10755],{"type":26,"value":10756},"10 microsecond",{"type":26,"value":10758}," control-system reaction time.",{"type":21,"tag":22,"props":10760,"children":10761},{},[10762,10764,10769,10771,10776,10778,10783],{"type":26,"value":10763},"That is the key insight about the discrepancy: ",{"type":21,"tag":205,"props":10765,"children":10766},{},[10767],{"type":26,"value":10768},"the hardware assumptions barely changed. The algorithms and codes did.",{"type":26,"value":10770}," The 2025 reduction comes from three specific advances: approximate residue arithmetic (fewer operations), ",{"type":21,"tag":2071,"props":10772,"children":10773},{},[10774],{"type":26,"value":10775},"yoked surface codes",{"type":26,"value":10777}," (roughly tripling storage density for idle logical qubits), and ",{"type":21,"tag":2071,"props":10779,"children":10780},{},[10781],{"type":26,"value":10782},"magic state cultivation",{"type":26,"value":10784},", which makes producing the high-fidelity non-Clifford resource states that dominate the cost far cheaper than traditional distillation.",{"type":21,"tag":22,"props":10786,"children":10787},{},[10788],{"type":26,"value":10789},"This is why estimates in the wild vary so wildly. Any published number is a function of at least five assumptions:",{"type":21,"tag":3137,"props":10791,"children":10792},{},[10793,10803,10813,10823,10833],{"type":21,"tag":3141,"props":10794,"children":10795},{},[10796,10801],{"type":21,"tag":205,"props":10797,"children":10798},{},[10799],{"type":26,"value":10800},"Physical error rate.",{"type":26,"value":10802}," 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":3141,"props":10804,"children":10805},{},[10806,10811],{"type":21,"tag":205,"props":10807,"children":10808},{},[10809],{"type":26,"value":10810},"Code choice.",{"type":26,"value":10812}," 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":3141,"props":10814,"children":10815},{},[10816,10821],{"type":21,"tag":205,"props":10817,"children":10818},{},[10819],{"type":26,"value":10820},"Cycle and reaction time.",{"type":26,"value":10822}," These set wall-clock runtime, and runtime feeds back into how much error correction you need.",{"type":21,"tag":3141,"props":10824,"children":10825},{},[10826,10831],{"type":21,"tag":205,"props":10827,"children":10828},{},[10829],{"type":26,"value":10830},"Magic state strategy.",{"type":26,"value":10832}," Distillation factories historically consumed the majority of the machine's footprint. Cultivation changes that budget.",{"type":21,"tag":3141,"props":10834,"children":10835},{},[10836,10841],{"type":21,"tag":205,"props":10837,"children":10838},{},[10839],{"type":26,"value":10840},"Space–time tradeoff.",{"type":26,"value":10842}," 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":10844,"children":10845},{},[10846,10851],{"type":21,"tag":205,"props":10847,"children":10848},{},[10849],{"type":26,"value":10850},"The direction of travel is the important dynamic.",{"type":26,"value":10852}," 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":29,"props":10854,"children":10856},{"id":10855},"where-hardware-stands",[10857],{"type":26,"value":10858},"Where hardware stands",{"type":21,"tag":22,"props":10860,"children":10861},{},[10862,10864,10869,10871,10875,10877,10881],{"type":26,"value":10863},"Current devices carry roughly 100 to 1,000 physical qubits. Google's Willow processor, used in the 2024 ",{"type":21,"tag":41,"props":10865,"children":10866},{"href":3765},[10867],{"type":26,"value":10868},"below-threshold demonstration",{"type":26,"value":10870},", 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":41,"props":10872,"children":10873},{"href":9034},[10874],{"type":26,"value":9037},{"type":26,"value":10876},", connectivity, and control requirements those papers assume. Our ",{"type":21,"tag":41,"props":10878,"children":10879},{"href":144},[10880],{"type":26,"value":147},{"type":26,"value":10882}," tracks what is available.",{"type":21,"tag":22,"props":10884,"children":10885},{},[10886,10888,10893],{"type":26,"value":10887},"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":2071,"props":10889,"children":10890},{},[10891],{"type":26,"value":10892},"halved",{"type":26,"value":10894}," 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 different category of hard.",{"type":21,"tag":29,"props":10896,"children":10898},{"id":10897},"machine-checking-the-numbers",[10899],{"type":26,"value":10900},"Machine-checking the numbers",{"type":21,"tag":22,"props":10902,"children":10903},{},[10904],{"type":26,"value":10905},"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":10907,"children":10908},{},[10909,10911,10916],{"type":26,"value":10910},"That is why the 2026 ",{"type":21,"tag":41,"props":10912,"children":10913},{"href":9680},[10914],{"type":26,"value":10915},"Lean formalization of Shor's algorithm",{"type":26,"value":10917}," 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":29,"props":10919,"children":10921},{"id":10920},"the-vendor-perspective-clearly-labelled",[10922],{"type":26,"value":10923},"The vendor perspective, clearly labelled",{"type":21,"tag":22,"props":10925,"children":10926},{},[10927],{"type":26,"value":10928},"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":10930,"children":10931},{},[10932,10934,10939,10941,10946,10948,10953],{"type":26,"value":10933},"IonQ's December 2024 post ",{"type":21,"tag":2071,"props":10935,"children":10936},{},[10937],{"type":26,"value":10938},"Q-Day and the Impact of Breaking RSA2048",{"type":26,"value":10940},", by SVP of Product and Applications Ariel Braunstein, is a reasonable example. ",{"type":21,"tag":205,"props":10942,"children":10943},{},[10944],{"type":26,"value":10945},"IonQ argues",{"type":26,"value":10947}," 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":205,"props":10949,"children":10950},{},[10951],{"type":26,"value":10952},"IonQ's recommendation",{"type":26,"value":10954}," (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":10956,"children":10957},{},[10958,10960,10965],{"type":26,"value":10959},"Note also what it does not contain. ",{"type":21,"tag":205,"props":10961,"children":10962},{},[10963],{"type":26,"value":10964},"The IonQ post cites no qubit count or resource estimate for RSA-2048 at all.",{"type":26,"value":10966}," 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 different workload, and it is not evidence about factoring. Treat vendor content as a directionally useful signal about industry expectations, not as a neutral source for the resource question.",{"type":21,"tag":29,"props":10968,"children":10970},{"id":10969},"how-to-reason-about-it-yourself",[10971],{"type":26,"value":10972},"How to reason about it yourself",{"type":21,"tag":22,"props":10974,"children":10975},{},[10976],{"type":26,"value":10977},"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":10979,"children":10980},{},[10981,10983,10988],{"type":26,"value":10982},"So the honest conclusion is an uncomfortable one: ",{"type":21,"tag":205,"props":10984,"children":10985},{},[10986],{"type":26,"value":10987},"nobody credible gives you a date, and anyone who does is telling you about their business model or their priors, not about physics.",{"type":26,"value":10989}," 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":10991,"children":10992},{},[10993,10995,11000],{"type":26,"value":10994},"The responsible posture is to migrate on a schedule that does not depend on knowing the date. Start with ",{"type":21,"tag":41,"props":10996,"children":10997},{"href":9400},[10998],{"type":26,"value":10999},"what PQC is",{"type":26,"value":11001},", then work the calendar. If your plan breaks when the estimate drops another 10×, it was never a plan.",{"type":21,"tag":22,"props":11003,"children":11004},{},[11005,11009,11010,11015,11016,11021,11022,11028,11029],{"type":21,"tag":205,"props":11006,"children":11007},{},[11008],{"type":26,"value":10429},{"type":26,"value":1367},{"type":21,"tag":41,"props":11011,"children":11012},{"href":1768},[11013],{"type":26,"value":11014},"Post-quantum migration deadlines",{"type":26,"value":7133},{"type":21,"tag":41,"props":11017,"children":11018},{"href":324},[11019],{"type":26,"value":11020},"Quantum error correction explained",{"type":26,"value":7133},{"type":21,"tag":41,"props":11023,"children":11025},{"href":11024},"\u002Fresearch",[11026],{"type":26,"value":11027},"Landmark research papers",{"type":26,"value":7133},{"type":21,"tag":41,"props":11030,"children":11031},{"href":10451},[11032],{"type":26,"value":10454},{"title":7,"searchDepth":173,"depth":173,"links":11034},[11035,11036,11037,11038,11039,11040,11041,11042],{"id":10491,"depth":173,"text":10494},{"id":10538,"depth":173,"text":10541},{"id":10574,"depth":173,"text":10577},{"id":10668,"depth":173,"text":10671},{"id":10855,"depth":173,"text":10858},{"id":10897,"depth":173,"text":10900},{"id":10920,"depth":173,"text":10923},{"id":10969,"depth":173,"text":10972},"content:blog:q-day-breaking-rsa-2048.md","blog\u002Fq-day-breaking-rsa-2048.md","blog\u002Fq-day-breaking-rsa-2048",{"_path":574,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":11047,"description":11048,"date":3081,"author":11,"tags":11049,"readingTime":16,"body":11050,"_type":180,"_id":11542,"_source":182,"_file":11543,"_stem":11544,"_extension":185},"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.",[194,14,3083],{"type":18,"children":11051,"toc":11532},[11052,11069,11081,11087,11099,11112,11124,11136,11142,11147,11152,11157,11169,11181,11193,11205,11211,11216,11226,11236,11246,11252,11257,11262,11274,11293,11298,11303,11309,11321,11326,11357,11369,11375,11380,11412,11417,11423,11435,11440,11459,11465,11470,11475,11486],{"type":21,"tag":22,"props":11053,"children":11054},{},[11055,11057,11061,11063,11067],{"type":26,"value":11056},"Most explanations of ",{"type":21,"tag":41,"props":11058,"children":11059},{"href":993},[11060],{"type":26,"value":8986},{"type":26,"value":11062}," end at the same place. You encode a logical qubit across many physical ones, you run parity checks with ",{"type":21,"tag":41,"props":11064,"children":11065},{"href":8998},[11066],{"type":26,"value":9001},{"type":26,"value":11068},", you detect errors without collapsing the state, and then the article stops, having implied that detection is correction.",{"type":21,"tag":22,"props":11070,"children":11071},{},[11072,11074,11079],{"type":26,"value":11073},"It isn't. In our ",{"type":21,"tag":41,"props":11075,"children":11076},{"href":56},[11077],{"type":26,"value":11078},"companion post on logical qubits and fault tolerance",{"type":26,"value":11080},", 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":29,"props":11082,"children":11084},{"id":11083},"what-syndrome-measurement-gives-you",[11085],{"type":26,"value":11086},"What syndrome measurement gives you",{"type":21,"tag":22,"props":11088,"children":11089},{},[11090,11092,11097],{"type":26,"value":11091},"The ",{"type":21,"tag":41,"props":11093,"children":11094},{"href":324},[11095],{"type":26,"value":11096},"QEC basics post",{"type":26,"value":11098}," 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":11100,"children":11101},{},[11102,11104,11110],{"type":26,"value":11103},"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":41,"props":11105,"children":11107},{"href":11106},"\u002Fglossary\u002Fpauli-operators",[11108],{"type":26,"value":11109},"Pauli operator",{"type":26,"value":11111}," 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":11113,"children":11114},{},[11115,11117,11122],{"type":26,"value":11116},"Worse, the ",{"type":21,"tag":41,"props":11118,"children":11119},{"href":7441},[11120],{"type":26,"value":11121},"measurement",{"type":26,"value":11123}," 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":11125,"children":11126},{},[11127,11129,11134],{"type":26,"value":11128},"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":205,"props":11130,"children":11131},{},[11132],{"type":26,"value":11133},"decoding",{"type":26,"value":11135},", and it is a genuine combinatorial optimisation problem.",{"type":21,"tag":29,"props":11137,"children":11139},{"id":11138},"the-part-that-makes-it-urgent",[11140],{"type":26,"value":11141},"The part that makes it urgent",{"type":21,"tag":22,"props":11143,"children":11144},{},[11145],{"type":26,"value":11146},"Here is where it stops being an interesting algorithms question and becomes an engineering crisis.",{"type":21,"tag":22,"props":11148,"children":11149},{},[11150],{"type":26,"value":11151},"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":11153,"children":11154},{},[11155],{"type":26,"value":11156},"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":11158,"children":11159},{},[11160,11162,11167],{"type":26,"value":11161},"If it doesn't, you get the ",{"type":21,"tag":205,"props":11163,"children":11164},{},[11165],{"type":26,"value":11166},"backlog problem",{"type":26,"value":11168},", 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":11170,"children":11171},{},[11172,11174,11179],{"type":26,"value":11173},"Certain operations in a fault-tolerant computation are ",{"type":21,"tag":2071,"props":11175,"children":11176},{},[11177],{"type":26,"value":11178},"conditional",{"type":26,"value":11180},": 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":11182,"children":11183},{},[11184,11186,11191],{"type":26,"value":11185},"The result is an ",{"type":21,"tag":205,"props":11187,"children":11188},{},[11189],{"type":26,"value":11190},"exponential slowdown",{"type":26,"value":11192},". 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 hard throughput threshold, not a performance preference.",{"type":21,"tag":22,"props":11194,"children":11195},{},[11196,11198,11203],{"type":26,"value":11197},"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":2071,"props":11199,"children":11200},{},[11201],{"type":26,"value":11202},"memory",{"type":26,"value":11204}," experiment, where you only want to know whether the stored state survived. It is useless for computation.",{"type":21,"tag":29,"props":11206,"children":11208},{"id":11207},"the-decoder-families-and-their-bargains",[11209],{"type":26,"value":11210},"The decoder families, and their bargains",{"type":21,"tag":22,"props":11212,"children":11213},{},[11214],{"type":26,"value":11215},"The decoding problem has a beautiful structure in the surface code, and a much uglier one elsewhere.",{"type":21,"tag":22,"props":11217,"children":11218},{},[11219,11224],{"type":21,"tag":205,"props":11220,"children":11221},{},[11222],{"type":26,"value":11223},"Minimum-weight perfect matching (MWPM).",{"type":26,"value":11225}," 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":11227,"children":11228},{},[11229,11234],{"type":21,"tag":205,"props":11230,"children":11231},{},[11232],{"type":26,"value":11233},"Union-find.",{"type":26,"value":11235}," 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 fast 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":11237,"children":11238},{},[11239,11244],{"type":21,"tag":205,"props":11240,"children":11241},{},[11242],{"type":26,"value":11243},"Belief propagation plus ordered statistics (BP-OSD).",{"type":26,"value":11245}," This is what you reach for when the matching trick stops working, which is exactly what happens with quantum LDPC codes.",{"type":21,"tag":29,"props":11247,"children":11249},{"id":11248},"why-qldpc-decoding-is-genuinely-harder",[11250],{"type":26,"value":11251},"Why qLDPC decoding is genuinely harder",{"type":21,"tag":22,"props":11253,"children":11254},{},[11255],{"type":26,"value":11256},"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":11258,"children":11259},{},[11260],{"type":26,"value":11261},"Except it works worse in the quantum case, for two structural reasons.",{"type":21,"tag":22,"props":11263,"children":11264},{},[11265,11267,11272],{"type":26,"value":11266},"First, ",{"type":21,"tag":205,"props":11268,"children":11269},{},[11270],{"type":26,"value":11271},"short cycles",{"type":26,"value":11273},". 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":11275,"children":11276},{},[11277,11279,11284,11286,11291],{"type":26,"value":11278},"Second, and more fundamentally, ",{"type":21,"tag":205,"props":11280,"children":11281},{},[11282],{"type":26,"value":11283},"degeneracy",{"type":26,"value":11285},". In a quantum code, genuinely different physical error patterns are sometimes ",{"type":21,"tag":2071,"props":11287,"children":11288},{},[11289],{"type":26,"value":11290},"equivalent",{"type":26,"value":11292},": 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":11294,"children":11295},{},[11296],{"type":26,"value":11297},"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":11299,"children":11300},{},[11301],{"type":26,"value":11302},"So qLDPC codes present the field with an awkward bargain: better codes, worse decoders.",{"type":21,"tag":29,"props":11304,"children":11306},{"id":11305},"why-anyone-puts-up-with-it",[11307],{"type":26,"value":11308},"Why anyone puts up with it",{"type":21,"tag":22,"props":11310,"children":11311},{},[11312,11314,11319],{"type":26,"value":11313},"Because the encoding rate is dramatically better. Surface codes are extravagant: the ",{"type":21,"tag":41,"props":11315,"children":11316},{"href":43},[11317],{"type":26,"value":11318},"logical qubit overhead",{"type":26,"value":11320}," 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":11322,"children":11323},{},[11324],{"type":26,"value":11325},"This is where vendors have entered the picture, and where the claims need careful handling.",{"type":21,"tag":22,"props":11327,"children":11328},{},[11329,11334,11336,11341,11343,11348,11350,11355],{"type":21,"tag":205,"props":11330,"children":11331},{},[11332],{"type":26,"value":11333},"IonQ reports",{"type":26,"value":11335}," having developed a \"Beam Search\" decoder intended to replace BP-OSD for quantum LDPC codes. On bivariate bicycle codes, ",{"type":21,"tag":205,"props":11337,"children":11338},{},[11339],{"type":26,"value":11340},"IonQ claims",{"type":26,"value":11342}," 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":205,"props":11344,"children":11345},{},[11346],{"type":26,"value":11347},"IonQ states",{"type":26,"value":11349}," it brought under one millisecond on a single core of a commercial CPU. ",{"type":21,"tag":205,"props":11351,"children":11352},{},[11353],{"type":26,"value":11354},"IonQ further estimates",{"type":26,"value":11356}," 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":11358,"children":11359},{},[11360,11362,11367],{"type":26,"value":11361},"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 specific multipliers should be treated as claims pending independent reproduction, in the same way we'd treat any ",{"type":21,"tag":41,"props":11363,"children":11364},{"href":739},[11365],{"type":26,"value":11366},"benchmark",{"type":26,"value":11368}," that hasn't been replicated by a disinterested party.",{"type":21,"tag":29,"props":11370,"children":11372},{"id":11371},"why-you-cant-simply-pick-the-fast-decoder",[11373],{"type":26,"value":11374},"Why you can't simply pick the fast decoder",{"type":21,"tag":22,"props":11376,"children":11377},{},[11378],{"type":26,"value":11379},"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":11381,"children":11382},{},[11383,11385,11390,11392,11397,11399,11404,11406,11410],{"type":26,"value":11384},"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":41,"props":11386,"children":11387},{"href":3765},[11388],{"type":26,"value":11389},"Google's 2024 below-threshold result",{"type":26,"value":11391}," (the first experimental demonstration that increasing code distance suppresses logical errors rather than amplifying them, descending from ",{"type":21,"tag":41,"props":11393,"children":11394},{"href":9087},[11395],{"type":26,"value":11396},"Kitaev's topological codes",{"type":26,"value":11398}," and ultimately ",{"type":21,"tag":41,"props":11400,"children":11401},{"href":9074},[11402],{"type":26,"value":11403},"Shor's original 1995 code",{"type":26,"value":11405},") was a narrow win. Each distance increase roughly halved the error rate. A decoder that degrades logical ",{"type":21,"tag":41,"props":11407,"children":11408},{"href":9034},[11409],{"type":26,"value":9037},{"type":26,"value":11411}," 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":11413,"children":11414},{},[11415],{"type":26,"value":11416},"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 same 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":29,"props":11418,"children":11420},{"id":11419},"where-the-decoder-physically-lives",[11421],{"type":26,"value":11422},"Where the decoder physically lives",{"type":21,"tag":22,"props":11424,"children":11425},{},[11426,11428,11433],{"type":26,"value":11427},"The last constraint is a plumbing one. Syndrome bits have to travel from the ",{"type":21,"tag":41,"props":11429,"children":11431},{"href":11430},"\u002Fglossary\u002Fqpu",[11432],{"type":26,"value":8910},{"type":26,"value":11434}," to whatever computes on them, and the answer has to travel back, inside the error-correction cycle time.",{"type":21,"tag":22,"props":11436,"children":11437},{},[11438],{"type":26,"value":11439},"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 easy 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":11441,"children":11442},{},[11443,11445,11450,11452,11457],{"type":26,"value":11444},"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":41,"props":11446,"children":11447},{"href":281},[11448],{"type":26,"value":11449},"modality differences",{"type":26,"value":11451}," drive architecture rather than being incidental, and it's visible in the ",{"type":21,"tag":41,"props":11453,"children":11454},{"href":152},[11455],{"type":26,"value":11456},"hardware landscape",{"type":26,"value":11458}," if you know to look for it.",{"type":21,"tag":29,"props":11460,"children":11462},{"id":11461},"the-honest-state-of-things",[11463],{"type":26,"value":11464},"The honest state of things",{"type":21,"tag":22,"props":11466,"children":11467},{},[11468],{"type":26,"value":11469},"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":11471,"children":11472},{},[11473],{"type":26,"value":11474},"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":11476,"children":11477},{},[11478,11480,11485],{"type":26,"value":11479},"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":41,"props":11481,"children":11482},{"href":10451},[11483],{"type":26,"value":11484},"quantum news",{"type":26,"value":825},{"type":21,"tag":22,"props":11487,"children":11488},{},[11489,11491,11495,11497,11501,11503,11507,11509,11514,11516,11522,11524,11530],{"type":26,"value":11490},"None of this is a reason to wait. The concepts underneath (noise, ",{"type":21,"tag":41,"props":11492,"children":11493},{"href":8950},[11494],{"type":26,"value":8953},{"type":26,"value":11496},", what a ",{"type":21,"tag":41,"props":11498,"children":11499},{"href":1260},[11500],{"type":26,"value":2800},{"type":26,"value":11502}," 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":41,"props":11504,"children":11505},{"href":472},[11506],{"type":26,"value":9311},{"type":26,"value":11508},". The ",{"type":21,"tag":41,"props":11510,"children":11511},{"href":11024},[11512],{"type":26,"value":11513},"research library",{"type":26,"value":11515}," has the primary sources, ",{"type":21,"tag":41,"props":11517,"children":11519},{"href":11518},"\u002Fglossary\u002Fsyndrome-decoding",[11520],{"type":26,"value":11521},"syndrome decoding",{"type":26,"value":11523}," has the compact definition, and if you want to see what problems this infrastructure is ultimately being built for, the ",{"type":21,"tag":41,"props":11525,"children":11527},{"href":11526},"\u002Fuse-cases",[11528],{"type":26,"value":11529},"use cases page",{"type":26,"value":11531}," is the place to start.",{"title":7,"searchDepth":173,"depth":173,"links":11533},[11534,11535,11536,11537,11538,11539,11540,11541],{"id":11083,"depth":173,"text":11086},{"id":11138,"depth":173,"text":11141},{"id":11207,"depth":173,"text":11210},{"id":11248,"depth":173,"text":11251},{"id":11305,"depth":173,"text":11308},{"id":11371,"depth":173,"text":11374},{"id":11419,"depth":173,"text":11422},{"id":11461,"depth":173,"text":11464},"content:blog:quantum-error-decoding-bottleneck.md","blog\u002Fquantum-error-decoding-bottleneck.md","blog\u002Fquantum-error-decoding-bottleneck",{"_path":11546,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":11547,"description":11548,"date":3081,"author":11,"tags":11549,"readingTime":3465,"body":11550,"_type":180,"_id":13797,"_source":182,"_file":13798,"_stem":13799,"_extension":185},"\u002Fblog\u002Fquantum-fourier-transform-tutorial","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.",[7169,15,2883],{"type":18,"children":11551,"toc":13786},[11552,11564,11569,11577,11583,11595,11600,11608,11636,11647,11653,11665,11670,11693,11705,11711,11716,11767,11784,11790,11801,11831,11836,12402,12407,12415,12420,12426,12439,12621,12625,12633,12653,12659,12670,13012,13016,13024,13036,13041,13215,13219,13227,13232,13238,13261,13271,13297,13302,13308,13320,13624,13629,13721,13732,13738,13777,13782],{"type":21,"tag":22,"props":11553,"children":11554},{},[11555,11556,11562],{"type":26,"value":11091},{"type":21,"tag":41,"props":11557,"children":11559},{"href":11558},"\u002Fglossary\u002Fqft",[11560],{"type":26,"value":11561},"Quantum Fourier Transform",{"type":26,"value":11563}," is the single most important 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":11565,"children":11566},{},[11567],{"type":26,"value":11568},"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":11570,"children":11571},{},[11572],{"type":21,"tag":205,"props":11573,"children":11574},{},[11575],{"type":26,"value":11576},"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":29,"props":11578,"children":11580},{"id":11579},"what-the-qft-does",[11581],{"type":26,"value":11582},"What the QFT does",{"type":21,"tag":22,"props":11584,"children":11585},{},[11586,11588,11593],{"type":26,"value":11587},"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":2071,"props":11589,"children":11590},{},[11591],{"type":26,"value":11592},"amplitude vector",{"type":26,"value":11594}," of an n-qubit state, so N = 2ⁿ.",{"type":21,"tag":22,"props":11596,"children":11597},{},[11598],{"type":26,"value":11599},"On basis states it acts as:",{"type":21,"tag":2328,"props":11601,"children":11603},{"code":11602},"QFT |x⟩ = (1\u002F√N) Σ_{k=0}^{N-1} e^{2πi·xk\u002FN} |k⟩\n",[11604],{"type":21,"tag":2097,"props":11605,"children":11606},{"__ignoreMap":7},[11607],{"type":26,"value":11602},{"type":21,"tag":22,"props":11609,"children":11610},{},[11611,11613,11618,11620,11626,11628,11634],{"type":26,"value":11612},"Notice what's on the right: every basis state gets amplitude of the ",{"type":21,"tag":2071,"props":11614,"children":11615},{},[11616],{"type":26,"value":11617},"same magnitude",{"type":26,"value":11619}," (1\u002F√N), and all the information about ",{"type":21,"tag":2097,"props":11621,"children":11623},{"className":11622},[],[11624],{"type":26,"value":11625},"x",{"type":26,"value":11627}," lives in the complex phase ",{"type":21,"tag":2097,"props":11629,"children":11631},{"className":11630},[],[11632],{"type":26,"value":11633},"e^{2πi·xk\u002FN}",{"type":26,"value":11635},". The QFT takes information that was sitting in the computational basis and pushes it into the phases.",{"type":21,"tag":22,"props":11637,"children":11638},{},[11639,11641,11645],{"type":26,"value":11640},"That single fact is the whole story of the QFT. It's a perfectly uniform state, as far as any ",{"type":21,"tag":41,"props":11642,"children":11643},{"href":7441},[11644],{"type":26,"value":11121},{"type":26,"value":11646}," 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":29,"props":11648,"children":11650},{"id":11649},"the-readout-problem-stated-plainly",[11651],{"type":26,"value":11652},"The readout problem, stated plainly",{"type":21,"tag":22,"props":11654,"children":11655},{},[11656,11658,11663],{"type":26,"value":11657},"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":2071,"props":11659,"children":11660},{},[11661],{"type":26,"value":11662},"gate count",{"type":26,"value":11664},", and it's the number everybody quotes.",{"type":21,"tag":22,"props":11666,"children":11667},{},[11668],{"type":26,"value":11669},"But it isn't a usable speedup, for two reasons:",{"type":21,"tag":7028,"props":11671,"children":11672},{},[11673,11683],{"type":21,"tag":3141,"props":11674,"children":11675},{},[11676,11681],{"type":21,"tag":205,"props":11677,"children":11678},{},[11679],{"type":26,"value":11680},"You can't load the input.",{"type":26,"value":11682}," Getting 2ⁿ arbitrary classical amplitudes into a quantum register generally costs O(2ⁿ) gates, wiping out the advantage before you start.",{"type":21,"tag":3141,"props":11684,"children":11685},{},[11686,11691],{"type":21,"tag":205,"props":11687,"children":11688},{},[11689],{"type":26,"value":11690},"You can't read the output.",{"type":26,"value":11692}," 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":11694,"children":11695},{},[11696,11698,11703],{"type":26,"value":11697},"So the QFT is never a drop-in replacement for the FFT. It is a ",{"type":21,"tag":2071,"props":11699,"children":11700},{},[11701],{"type":26,"value":11702},"transform you apply in the middle of a larger circuit",{"type":26,"value":11704},", 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":29,"props":11706,"children":11708},{"id":11707},"the-circuit-hadamard-rotate-recurse-swap",[11709],{"type":26,"value":11710},"The circuit: Hadamard, rotate, recurse, swap",{"type":21,"tag":22,"props":11712,"children":11713},{},[11714],{"type":26,"value":11715},"The construction follows directly from factoring the exponential above into a product over qubits. For the most significant qubit:",{"type":21,"tag":7028,"props":11717,"children":11718},{},[11719,11736,11757,11762],{"type":21,"tag":3141,"props":11720,"children":11721},{},[11722,11723,11728,11730,11734],{"type":26,"value":7273},{"type":21,"tag":41,"props":11724,"children":11725},{"href":7276},[11726],{"type":26,"value":11727},"Hadamard",{"type":26,"value":11729},". This creates a ",{"type":21,"tag":41,"props":11731,"children":11732},{"href":8874},[11733],{"type":26,"value":8877},{"type":26,"value":11735}," whose relative phase encodes one bit of the input.",{"type":21,"tag":3141,"props":11737,"children":11738},{},[11739,11741,11747,11749,11755],{"type":26,"value":11740},"Apply controlled-phase gates ",{"type":21,"tag":2097,"props":11742,"children":11744},{"className":11743},[],[11745],{"type":26,"value":11746},"CP(π\u002F2^k)",{"type":26,"value":11748}," from each less significant qubit, controlled onto that same qubit. Qubit distance ",{"type":21,"tag":2097,"props":11750,"children":11752},{"className":11751},[],[11753],{"type":26,"value":11754},"k",{"type":26,"value":11756}," contributes a rotation of π\u002F2^k: the further away, the smaller the correction.",{"type":21,"tag":3141,"props":11758,"children":11759},{},[11760],{"type":26,"value":11761},"Recurse on the remaining n−1 qubits.",{"type":21,"tag":3141,"props":11763,"children":11764},{},[11765],{"type":26,"value":11766},"Swap the qubit order at the end.",{"type":21,"tag":22,"props":11768,"children":11769},{},[11770,11775,11777,11782],{"type":21,"tag":205,"props":11771,"children":11772},{},[11773],{"type":26,"value":11774},"Why the swaps?",{"type":26,"value":11776}," 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 get a bit-reversed answer. The swaps fix it. (In hardware-aware compilation you sometimes ",{"type":21,"tag":2071,"props":11778,"children":11779},{},[11780],{"type":26,"value":11781},"do",{"type":26,"value":11783}," 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":29,"props":11785,"children":11787},{"id":11786},"building-it-in-qiskit",[11788],{"type":26,"value":11789},"Building it in Qiskit",{"type":21,"tag":22,"props":11791,"children":11792},{},[11793,11795,11799],{"type":26,"value":11794},"Make sure you have ",{"type":21,"tag":41,"props":11796,"children":11797},{"href":7112},[11798],{"type":26,"value":15},{"type":26,"value":11800}," and the Aer simulator installed:",{"type":21,"tag":2328,"props":11802,"children":11804},{"code":11803,"language":9766,"meta":7,"className":9764,"style":7},"pip install qiskit qiskit-aer\n",[11805],{"type":21,"tag":2097,"props":11806,"children":11807},{"__ignoreMap":7},[11808],{"type":21,"tag":2338,"props":11809,"children":11810},{"class":2340,"line":2341},[11811,11816,11821,11826],{"type":21,"tag":2338,"props":11812,"children":11813},{"style":4385},[11814],{"type":26,"value":11815},"pip",{"type":21,"tag":2338,"props":11817,"children":11818},{"style":2374},[11819],{"type":26,"value":11820}," install",{"type":21,"tag":2338,"props":11822,"children":11823},{"style":2374},[11824],{"type":26,"value":11825}," qiskit",{"type":21,"tag":2338,"props":11827,"children":11828},{"style":2374},[11829],{"type":26,"value":11830}," qiskit-aer\n",{"type":21,"tag":22,"props":11832,"children":11833},{},[11834],{"type":26,"value":11835},"Now the construction, written recursively so it mirrors the math:",{"type":21,"tag":2328,"props":11837,"children":11839},{"code":11838,"language":3209,"meta":7,"className":3207,"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",[11840],{"type":21,"tag":2097,"props":11841,"children":11842},{"__ignoreMap":7},[11843,11862,11881,11902,11921,11928,11935,11952,11960,11986,11999,12021,12029,12053,12061,12095,12108,12119,12126,12133,12149,12157,12192,12220,12231,12238,12245,12261,12293,12301,12309,12320,12327,12334,12359,12390],{"type":21,"tag":2338,"props":11844,"children":11845},{"class":2340,"line":2341},[11846,11850,11854,11858],{"type":21,"tag":2338,"props":11847,"children":11848},{"style":3219},[11849],{"type":26,"value":3232},{"type":21,"tag":2338,"props":11851,"children":11852},{"style":2345},[11853],{"type":26,"value":4294},{"type":21,"tag":2338,"props":11855,"children":11856},{"style":3219},[11857],{"type":26,"value":4299},{"type":21,"tag":2338,"props":11859,"children":11860},{"style":2345},[11861],{"type":26,"value":4304},{"type":21,"tag":2338,"props":11863,"children":11864},{"class":2340,"line":173},[11865,11869,11873,11877],{"type":21,"tag":2338,"props":11866,"children":11867},{"style":3219},[11868],{"type":26,"value":3222},{"type":21,"tag":2338,"props":11870,"children":11871},{"style":2345},[11872],{"type":26,"value":4316},{"type":21,"tag":2338,"props":11874,"children":11875},{"style":3219},[11876],{"type":26,"value":3232},{"type":21,"tag":2338,"props":11878,"children":11879},{"style":2345},[11880],{"type":26,"value":4325},{"type":21,"tag":2338,"props":11882,"children":11883},{"class":2340,"line":2359},[11884,11888,11893,11897],{"type":21,"tag":2338,"props":11885,"children":11886},{"style":3219},[11887],{"type":26,"value":3222},{"type":21,"tag":2338,"props":11889,"children":11890},{"style":2345},[11891],{"type":26,"value":11892}," qiskit.quantum_info ",{"type":21,"tag":2338,"props":11894,"children":11895},{"style":3219},[11896],{"type":26,"value":3232},{"type":21,"tag":2338,"props":11898,"children":11899},{"style":2345},[11900],{"type":26,"value":11901}," Statevector, Operator\n",{"type":21,"tag":2338,"props":11903,"children":11904},{"class":2340,"line":2421},[11905,11909,11913,11917],{"type":21,"tag":2338,"props":11906,"children":11907},{"style":3219},[11908],{"type":26,"value":3222},{"type":21,"tag":2338,"props":11910,"children":11911},{"style":2345},[11912],{"type":26,"value":4337},{"type":21,"tag":2338,"props":11914,"children":11915},{"style":3219},[11916],{"type":26,"value":3232},{"type":21,"tag":2338,"props":11918,"children":11919},{"style":2345},[11920],{"type":26,"value":4346},{"type":21,"tag":2338,"props":11922,"children":11923},{"class":2340,"line":2445},[11924],{"type":21,"tag":2338,"props":11925,"children":11926},{"emptyLinePlaceholder":3243},[11927],{"type":26,"value":3246},{"type":21,"tag":2338,"props":11929,"children":11930},{"class":2340,"line":877},[11931],{"type":21,"tag":2338,"props":11932,"children":11933},{"emptyLinePlaceholder":3243},[11934],{"type":26,"value":3246},{"type":21,"tag":2338,"props":11936,"children":11937},{"class":2340,"line":196},[11938,11942,11947],{"type":21,"tag":2338,"props":11939,"children":11940},{"style":3219},[11941],{"type":26,"value":4382},{"type":21,"tag":2338,"props":11943,"children":11944},{"style":4385},[11945],{"type":26,"value":11946}," qft_rotations",{"type":21,"tag":2338,"props":11948,"children":11949},{"style":2345},[11950],{"type":26,"value":11951},"(circuit, n):\n",{"type":21,"tag":2338,"props":11953,"children":11954},{"class":2340,"line":951},[11955],{"type":21,"tag":2338,"props":11956,"children":11957},{"style":2374},[11958],{"type":26,"value":11959},"    \"\"\"Hadamard + controlled phases on the top qubit, then recurse.\"\"\"\n",{"type":21,"tag":2338,"props":11961,"children":11962},{"class":2340,"line":16},[11963,11968,11973,11977,11982],{"type":21,"tag":2338,"props":11964,"children":11965},{"style":3219},[11966],{"type":26,"value":11967},"    if",{"type":21,"tag":2338,"props":11969,"children":11970},{"style":2345},[11971],{"type":26,"value":11972}," n ",{"type":21,"tag":2338,"props":11974,"children":11975},{"style":3219},[11976],{"type":26,"value":4930},{"type":21,"tag":2338,"props":11978,"children":11979},{"style":2363},[11980],{"type":26,"value":11981}," 0",{"type":21,"tag":2338,"props":11983,"children":11984},{"style":2345},[11985],{"type":26,"value":4940},{"type":21,"tag":2338,"props":11987,"children":11988},{"class":2340,"line":3465},[11989,11994],{"type":21,"tag":2338,"props":11990,"children":11991},{"style":3219},[11992],{"type":26,"value":11993},"        return",{"type":21,"tag":2338,"props":11995,"children":11996},{"style":2345},[11997],{"type":26,"value":11998}," circuit\n",{"type":21,"tag":2338,"props":12000,"children":12001},{"class":2340,"line":3475},[12002,12007,12012,12016],{"type":21,"tag":2338,"props":12003,"children":12004},{"style":2345},[12005],{"type":26,"value":12006},"    n ",{"type":21,"tag":2338,"props":12008,"children":12009},{"style":3219},[12010],{"type":26,"value":12011},"-=",{"type":21,"tag":2338,"props":12013,"children":12014},{"style":2363},[12015],{"type":26,"value":6120},{"type":21,"tag":2338,"props":12017,"children":12018},{"style":3469},[12019],{"type":26,"value":12020},"                      # index of the most significant qubit\n",{"type":21,"tag":2338,"props":12022,"children":12023},{"class":2340,"line":500},[12024],{"type":21,"tag":2338,"props":12025,"children":12026},{"style":2345},[12027],{"type":26,"value":12028},"    circuit.h(n)\n",{"type":21,"tag":2338,"props":12030,"children":12031},{"class":2340,"line":3535},[12032,12036,12041,12045,12049],{"type":21,"tag":2338,"props":12033,"children":12034},{"style":3219},[12035],{"type":26,"value":4761},{"type":21,"tag":2338,"props":12037,"children":12038},{"style":2345},[12039],{"type":26,"value":12040}," qubit ",{"type":21,"tag":2338,"props":12042,"children":12043},{"style":3219},[12044],{"type":26,"value":3522},{"type":21,"tag":2338,"props":12046,"children":12047},{"style":2363},[12048],{"type":26,"value":3527},{"type":21,"tag":2338,"props":12050,"children":12051},{"style":2345},[12052],{"type":26,"value":7862},{"type":21,"tag":2338,"props":12054,"children":12055},{"class":2340,"line":3583},[12056],{"type":21,"tag":2338,"props":12057,"children":12058},{"style":3469},[12059],{"type":26,"value":12060},"        # qubit is (n - qubit) positions below the target\n",{"type":21,"tag":2338,"props":12062,"children":12063},{"class":2340,"line":3625},[12064,12069,12073,12077,12081,12086,12090],{"type":21,"tag":2338,"props":12065,"children":12066},{"style":2345},[12067],{"type":26,"value":12068},"        circuit.cp(np.pi ",{"type":21,"tag":2338,"props":12070,"children":12071},{"style":3219},[12072],{"type":26,"value":2192},{"type":21,"tag":2338,"props":12074,"children":12075},{"style":2363},[12076],{"type":26,"value":6405},{"type":21,"tag":2338,"props":12078,"children":12079},{"style":3219},[12080],{"type":26,"value":8330},{"type":21,"tag":2338,"props":12082,"children":12083},{"style":2345},[12084],{"type":26,"value":12085}," (n ",{"type":21,"tag":2338,"props":12087,"children":12088},{"style":3219},[12089],{"type":26,"value":4869},{"type":21,"tag":2338,"props":12091,"children":12092},{"style":2345},[12093],{"type":26,"value":12094}," qubit), qubit, n)\n",{"type":21,"tag":2338,"props":12096,"children":12097},{"class":2340,"line":4652},[12098,12103],{"type":21,"tag":2338,"props":12099,"children":12100},{"style":2345},[12101],{"type":26,"value":12102},"    qft_rotations(circuit, n)   ",{"type":21,"tag":2338,"props":12104,"children":12105},{"style":3469},[12106],{"type":26,"value":12107},"# recurse on the rest\n",{"type":21,"tag":2338,"props":12109,"children":12110},{"class":2340,"line":4671},[12111,12115],{"type":21,"tag":2338,"props":12112,"children":12113},{"style":3219},[12114],{"type":26,"value":4607},{"type":21,"tag":2338,"props":12116,"children":12117},{"style":2345},[12118],{"type":26,"value":11998},{"type":21,"tag":2338,"props":12120,"children":12121},{"class":2340,"line":4679},[12122],{"type":21,"tag":2338,"props":12123,"children":12124},{"emptyLinePlaceholder":3243},[12125],{"type":26,"value":3246},{"type":21,"tag":2338,"props":12127,"children":12128},{"class":2340,"line":4710},[12129],{"type":21,"tag":2338,"props":12130,"children":12131},{"emptyLinePlaceholder":3243},[12132],{"type":26,"value":3246},{"type":21,"tag":2338,"props":12134,"children":12135},{"class":2340,"line":4755},[12136,12140,12145],{"type":21,"tag":2338,"props":12137,"children":12138},{"style":3219},[12139],{"type":26,"value":4382},{"type":21,"tag":2338,"props":12141,"children":12142},{"style":4385},[12143],{"type":26,"value":12144}," swap_registers",{"type":21,"tag":2338,"props":12146,"children":12147},{"style":2345},[12148],{"type":26,"value":11951},{"type":21,"tag":2338,"props":12150,"children":12151},{"class":2340,"line":4794},[12152],{"type":21,"tag":2338,"props":12153,"children":12154},{"style":2374},[12155],{"type":26,"value":12156},"    \"\"\"Reverse the qubit order to undo the bit reversal.\"\"\"\n",{"type":21,"tag":2338,"props":12158,"children":12159},{"class":2340,"line":4812},[12160,12164,12168,12172,12176,12180,12184,12188],{"type":21,"tag":2338,"props":12161,"children":12162},{"style":3219},[12163],{"type":26,"value":4761},{"type":21,"tag":2338,"props":12165,"children":12166},{"style":2345},[12167],{"type":26,"value":12040},{"type":21,"tag":2338,"props":12169,"children":12170},{"style":3219},[12171],{"type":26,"value":3522},{"type":21,"tag":2338,"props":12173,"children":12174},{"style":2363},[12175],{"type":26,"value":3527},{"type":21,"tag":2338,"props":12177,"children":12178},{"style":2345},[12179],{"type":26,"value":7690},{"type":21,"tag":2338,"props":12181,"children":12182},{"style":3219},[12183],{"type":26,"value":6129},{"type":21,"tag":2338,"props":12185,"children":12186},{"style":2363},[12187],{"type":26,"value":6405},{"type":21,"tag":2338,"props":12189,"children":12190},{"style":2345},[12191],{"type":26,"value":4435},{"type":21,"tag":2338,"props":12193,"children":12194},{"class":2340,"line":4886},[12195,12200,12204,12208,12212,12216],{"type":21,"tag":2338,"props":12196,"children":12197},{"style":2345},[12198],{"type":26,"value":12199},"        circuit.swap(qubit, n ",{"type":21,"tag":2338,"props":12201,"children":12202},{"style":3219},[12203],{"type":26,"value":4869},{"type":21,"tag":2338,"props":12205,"children":12206},{"style":2345},[12207],{"type":26,"value":12040},{"type":21,"tag":2338,"props":12209,"children":12210},{"style":3219},[12211],{"type":26,"value":4869},{"type":21,"tag":2338,"props":12213,"children":12214},{"style":2363},[12215],{"type":26,"value":6120},{"type":21,"tag":2338,"props":12217,"children":12218},{"style":2345},[12219],{"type":26,"value":3319},{"type":21,"tag":2338,"props":12221,"children":12222},{"class":2340,"line":4914},[12223,12227],{"type":21,"tag":2338,"props":12224,"children":12225},{"style":3219},[12226],{"type":26,"value":4607},{"type":21,"tag":2338,"props":12228,"children":12229},{"style":2345},[12230],{"type":26,"value":11998},{"type":21,"tag":2338,"props":12232,"children":12233},{"class":2340,"line":4943},[12234],{"type":21,"tag":2338,"props":12235,"children":12236},{"emptyLinePlaceholder":3243},[12237],{"type":26,"value":3246},{"type":21,"tag":2338,"props":12239,"children":12240},{"class":2340,"line":4952},[12241],{"type":21,"tag":2338,"props":12242,"children":12243},{"emptyLinePlaceholder":3243},[12244],{"type":26,"value":3246},{"type":21,"tag":2338,"props":12246,"children":12247},{"class":2340,"line":4980},[12248,12252,12257],{"type":21,"tag":2338,"props":12249,"children":12250},{"style":3219},[12251],{"type":26,"value":4382},{"type":21,"tag":2338,"props":12253,"children":12254},{"style":4385},[12255],{"type":26,"value":12256}," qft",{"type":21,"tag":2338,"props":12258,"children":12259},{"style":2345},[12260],{"type":26,"value":7862},{"type":21,"tag":2338,"props":12262,"children":12263},{"class":2340,"line":5011},[12264,12268,12272,12276,12280,12284,12289],{"type":21,"tag":2338,"props":12265,"children":12266},{"style":2345},[12267],{"type":26,"value":7518},{"type":21,"tag":2338,"props":12269,"children":12270},{"style":3219},[12271],{"type":26,"value":3259},{"type":21,"tag":2338,"props":12273,"children":12274},{"style":2345},[12275],{"type":26,"value":7527},{"type":21,"tag":2338,"props":12277,"children":12278},{"style":3284},[12279],{"type":26,"value":7532},{"type":21,"tag":2338,"props":12281,"children":12282},{"style":3219},[12283],{"type":26,"value":3259},{"type":21,"tag":2338,"props":12285,"children":12286},{"style":2374},[12287],{"type":26,"value":12288},"\"QFT\"",{"type":21,"tag":2338,"props":12290,"children":12291},{"style":2345},[12292],{"type":26,"value":3319},{"type":21,"tag":2338,"props":12294,"children":12295},{"class":2340,"line":5033},[12296],{"type":21,"tag":2338,"props":12297,"children":12298},{"style":2345},[12299],{"type":26,"value":12300},"    qft_rotations(qc, n)\n",{"type":21,"tag":2338,"props":12302,"children":12303},{"class":2340,"line":5079},[12304],{"type":21,"tag":2338,"props":12305,"children":12306},{"style":2345},[12307],{"type":26,"value":12308},"    swap_registers(qc, n)\n",{"type":21,"tag":2338,"props":12310,"children":12311},{"class":2340,"line":5092},[12312,12316],{"type":21,"tag":2338,"props":12313,"children":12314},{"style":3219},[12315],{"type":26,"value":4607},{"type":21,"tag":2338,"props":12317,"children":12318},{"style":2345},[12319],{"type":26,"value":7799},{"type":21,"tag":2338,"props":12321,"children":12322},{"class":2340,"line":5100},[12323],{"type":21,"tag":2338,"props":12324,"children":12325},{"emptyLinePlaceholder":3243},[12326],{"type":26,"value":3246},{"type":21,"tag":2338,"props":12328,"children":12329},{"class":2340,"line":5118},[12330],{"type":21,"tag":2338,"props":12331,"children":12332},{"emptyLinePlaceholder":3243},[12333],{"type":26,"value":3246},{"type":21,"tag":2338,"props":12335,"children":12336},{"class":2340,"line":5136},[12337,12342,12346,12351,12355],{"type":21,"tag":2338,"props":12338,"children":12339},{"style":2345},[12340],{"type":26,"value":12341},"my_qft ",{"type":21,"tag":2338,"props":12343,"children":12344},{"style":3219},[12345],{"type":26,"value":3259},{"type":21,"tag":2338,"props":12347,"children":12348},{"style":2345},[12349],{"type":26,"value":12350}," qft(",{"type":21,"tag":2338,"props":12352,"children":12353},{"style":2363},[12354],{"type":26,"value":5553},{"type":21,"tag":2338,"props":12356,"children":12357},{"style":2345},[12358],{"type":26,"value":3319},{"type":21,"tag":2338,"props":12360,"children":12361},{"class":2340,"line":5144},[12362,12366,12371,12376,12380,12385],{"type":21,"tag":2338,"props":12363,"children":12364},{"style":2363},[12365],{"type":26,"value":3334},{"type":21,"tag":2338,"props":12367,"children":12368},{"style":2345},[12369],{"type":26,"value":12370},"(my_qft.draw(",{"type":21,"tag":2338,"props":12372,"children":12373},{"style":3284},[12374],{"type":26,"value":12375},"output",{"type":21,"tag":2338,"props":12377,"children":12378},{"style":3219},[12379],{"type":26,"value":3259},{"type":21,"tag":2338,"props":12381,"children":12382},{"style":2374},[12383],{"type":26,"value":12384},"\"text\"",{"type":21,"tag":2338,"props":12386,"children":12387},{"style":2345},[12388],{"type":26,"value":12389},"))\n",{"type":21,"tag":2338,"props":12391,"children":12392},{"class":2340,"line":5178},[12393,12397],{"type":21,"tag":2338,"props":12394,"children":12395},{"style":2363},[12396],{"type":26,"value":3334},{"type":21,"tag":2338,"props":12398,"children":12399},{"style":2345},[12400],{"type":26,"value":12401},"(my_qft.count_ops())\n",{"type":21,"tag":22,"props":12403,"children":12404},{},[12405],{"type":26,"value":12406},"Real output:",{"type":21,"tag":2328,"props":12408,"children":12410},{"code":12409},"                                                                          ┌───┐»\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",[12411],{"type":21,"tag":2097,"props":12412,"children":12413},{"__ignoreMap":7},[12414],{"type":26,"value":12409},{"type":21,"tag":22,"props":12416,"children":12417},{},[12418],{"type":26,"value":12419},"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":29,"props":12421,"children":12423},{"id":12422},"proving-its-correct",[12424],{"type":26,"value":12425},"Proving it's correct",{"type":21,"tag":22,"props":12427,"children":12428},{},[12429,12431,12437],{"type":26,"value":12430},"Never trust a hand-built QFT. Compare the full unitary against Qiskit's ",{"type":21,"tag":2097,"props":12432,"children":12434},{"className":12433},[],[12435],{"type":26,"value":12436},"QFTGate",{"type":26,"value":12438},":",{"type":21,"tag":2328,"props":12440,"children":12442},{"code":12441,"language":3209,"meta":7,"className":3207,"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",[12443],{"type":21,"tag":2097,"props":12444,"children":12445},{"__ignoreMap":7},[12446,12466,12473,12489,12506,12513,12530,12546,12553,12570,12591],{"type":21,"tag":2338,"props":12447,"children":12448},{"class":2340,"line":2341},[12449,12453,12457,12461],{"type":21,"tag":2338,"props":12450,"children":12451},{"style":3219},[12452],{"type":26,"value":3222},{"type":21,"tag":2338,"props":12454,"children":12455},{"style":2345},[12456],{"type":26,"value":5842},{"type":21,"tag":2338,"props":12458,"children":12459},{"style":3219},[12460],{"type":26,"value":3232},{"type":21,"tag":2338,"props":12462,"children":12463},{"style":2345},[12464],{"type":26,"value":12465}," QFTGate\n",{"type":21,"tag":2338,"props":12467,"children":12468},{"class":2340,"line":173},[12469],{"type":21,"tag":2338,"props":12470,"children":12471},{"emptyLinePlaceholder":3243},[12472],{"type":26,"value":3246},{"type":21,"tag":2338,"props":12474,"children":12475},{"class":2340,"line":2359},[12476,12480,12484],{"type":21,"tag":2338,"props":12477,"children":12478},{"style":2345},[12479],{"type":26,"value":5106},{"type":21,"tag":2338,"props":12481,"children":12482},{"style":3219},[12483],{"type":26,"value":3259},{"type":21,"tag":2338,"props":12485,"children":12486},{"style":2363},[12487],{"type":26,"value":12488}," 4\n",{"type":21,"tag":2338,"props":12490,"children":12491},{"class":2340,"line":2421},[12492,12497,12501],{"type":21,"tag":2338,"props":12493,"children":12494},{"style":2345},[12495],{"type":26,"value":12496},"mine ",{"type":21,"tag":2338,"props":12498,"children":12499},{"style":3219},[12500],{"type":26,"value":3259},{"type":21,"tag":2338,"props":12502,"children":12503},{"style":2345},[12504],{"type":26,"value":12505}," qft(n)\n",{"type":21,"tag":2338,"props":12507,"children":12508},{"class":2340,"line":2445},[12509],{"type":21,"tag":2338,"props":12510,"children":12511},{"emptyLinePlaceholder":3243},[12512],{"type":26,"value":3246},{"type":21,"tag":2338,"props":12514,"children":12515},{"class":2340,"line":877},[12516,12521,12525],{"type":21,"tag":2338,"props":12517,"children":12518},{"style":2345},[12519],{"type":26,"value":12520},"reference ",{"type":21,"tag":2338,"props":12522,"children":12523},{"style":3219},[12524],{"type":26,"value":3259},{"type":21,"tag":2338,"props":12526,"children":12527},{"style":2345},[12528],{"type":26,"value":12529}," QuantumCircuit(n)\n",{"type":21,"tag":2338,"props":12531,"children":12532},{"class":2340,"line":196},[12533,12538,12542],{"type":21,"tag":2338,"props":12534,"children":12535},{"style":2345},[12536],{"type":26,"value":12537},"reference.append(QFTGate(n), ",{"type":21,"tag":2338,"props":12539,"children":12540},{"style":2363},[12541],{"type":26,"value":4963},{"type":21,"tag":2338,"props":12543,"children":12544},{"style":2345},[12545],{"type":26,"value":4977},{"type":21,"tag":2338,"props":12547,"children":12548},{"class":2340,"line":951},[12549],{"type":21,"tag":2338,"props":12550,"children":12551},{"emptyLinePlaceholder":3243},[12552],{"type":26,"value":3246},{"type":21,"tag":2338,"props":12554,"children":12555},{"class":2340,"line":16},[12556,12561,12565],{"type":21,"tag":2338,"props":12557,"children":12558},{"style":2345},[12559],{"type":26,"value":12560},"a, b ",{"type":21,"tag":2338,"props":12562,"children":12563},{"style":3219},[12564],{"type":26,"value":3259},{"type":21,"tag":2338,"props":12566,"children":12567},{"style":2345},[12568],{"type":26,"value":12569}," Operator(mine), Operator(reference)\n",{"type":21,"tag":2338,"props":12571,"children":12572},{"class":2340,"line":3465},[12573,12577,12581,12586],{"type":21,"tag":2338,"props":12574,"children":12575},{"style":2363},[12576],{"type":26,"value":3334},{"type":21,"tag":2338,"props":12578,"children":12579},{"style":2345},[12580],{"type":26,"value":3339},{"type":21,"tag":2338,"props":12582,"children":12583},{"style":2374},[12584],{"type":26,"value":12585},"\"Equivalent:\"",{"type":21,"tag":2338,"props":12587,"children":12588},{"style":2345},[12589],{"type":26,"value":12590},", a.equiv(b))\n",{"type":21,"tag":2338,"props":12592,"children":12593},{"class":2340,"line":3475},[12594,12598,12602,12607,12612,12616],{"type":21,"tag":2338,"props":12595,"children":12596},{"style":2363},[12597],{"type":26,"value":3334},{"type":21,"tag":2338,"props":12599,"children":12600},{"style":2345},[12601],{"type":26,"value":3339},{"type":21,"tag":2338,"props":12603,"children":12604},{"style":2374},[12605],{"type":26,"value":12606},"\"Max element difference:\"",{"type":21,"tag":2338,"props":12608,"children":12609},{"style":2345},[12610],{"type":26,"value":12611},", np.abs(a.data ",{"type":21,"tag":2338,"props":12613,"children":12614},{"style":3219},[12615],{"type":26,"value":4869},{"type":21,"tag":2338,"props":12617,"children":12618},{"style":2345},[12619],{"type":26,"value":12620}," b.data).max())\n",{"type":21,"tag":22,"props":12622,"children":12623},{},[12624],{"type":26,"value":12406},{"type":21,"tag":2328,"props":12626,"children":12628},{"code":12627},"Equivalent: True\nMax element difference: 2.285583597498884e-15\n",[12629],{"type":21,"tag":2097,"props":12630,"children":12631},{"__ignoreMap":7},[12632],{"type":26,"value":12627},{"type":21,"tag":22,"props":12634,"children":12635},{},[12636,12638,12644,12645,12651],{"type":26,"value":12637},"Identical to floating-point precision, not merely equal up to a global phase. If you're on an older Qiskit, use ",{"type":21,"tag":2097,"props":12639,"children":12641},{"className":12640},[],[12642],{"type":26,"value":12643},"from qiskit.circuit.library import QFT",{"type":26,"value":149},{"type":21,"tag":2097,"props":12646,"children":12648},{"className":12647},[],[12649],{"type":26,"value":12650},"QFT(n).decompose()",{"type":26,"value":12652}," instead.",{"type":21,"tag":29,"props":12654,"children":12656},{"id":12655},"seeing-it-find-a-period",[12657],{"type":26,"value":12658},"Seeing it find a period",{"type":21,"tag":22,"props":12660,"children":12661},{},[12662,12664,12668],{"type":26,"value":12663},"This is the one demonstration that shows what the QFT is ",{"type":21,"tag":2071,"props":12665,"children":12666},{},[12667],{"type":26,"value":3512},{"type":26,"value":12669},". Prepare a state that's a uniform superposition over multiples of 4 (a comb with period 4) and transform it:",{"type":21,"tag":2328,"props":12671,"children":12673},{"code":12672,"language":3209,"meta":7,"className":3207,"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",[12674],{"type":21,"tag":2097,"props":12675,"children":12676},{"__ignoreMap":7},[12677,12692,12740,12798,12815,12831,12838,12855,12880,12906],{"type":21,"tag":2338,"props":12678,"children":12679},{"class":2340,"line":2341},[12680,12684,12688],{"type":21,"tag":2338,"props":12681,"children":12682},{"style":2345},[12683],{"type":26,"value":5106},{"type":21,"tag":2338,"props":12685,"children":12686},{"style":3219},[12687],{"type":26,"value":3259},{"type":21,"tag":2338,"props":12689,"children":12690},{"style":2363},[12691],{"type":26,"value":12488},{"type":21,"tag":2338,"props":12693,"children":12694},{"class":2340,"line":173},[12695,12700,12704,12709,12713,12717,12722,12727,12731,12736],{"type":21,"tag":2338,"props":12696,"children":12697},{"style":2345},[12698],{"type":26,"value":12699},"psi ",{"type":21,"tag":2338,"props":12701,"children":12702},{"style":3219},[12703],{"type":26,"value":3259},{"type":21,"tag":2338,"props":12705,"children":12706},{"style":2345},[12707],{"type":26,"value":12708}," np.zeros(",{"type":21,"tag":2338,"props":12710,"children":12711},{"style":2363},[12712],{"type":26,"value":2437},{"type":21,"tag":2338,"props":12714,"children":12715},{"style":3219},[12716],{"type":26,"value":8330},{"type":21,"tag":2338,"props":12718,"children":12719},{"style":2345},[12720],{"type":26,"value":12721}," n, ",{"type":21,"tag":2338,"props":12723,"children":12724},{"style":3284},[12725],{"type":26,"value":12726},"dtype",{"type":21,"tag":2338,"props":12728,"children":12729},{"style":3219},[12730],{"type":26,"value":3259},{"type":21,"tag":2338,"props":12732,"children":12733},{"style":2363},[12734],{"type":26,"value":12735},"complex",{"type":21,"tag":2338,"props":12737,"children":12738},{"style":2345},[12739],{"type":26,"value":3319},{"type":21,"tag":2338,"props":12741,"children":12742},{"class":2340,"line":2359},[12743,12747,12752,12756,12760,12764,12768,12772,12776,12780,12784,12788,12793],{"type":21,"tag":2338,"props":12744,"children":12745},{"style":3219},[12746],{"type":26,"value":3512},{"type":21,"tag":2338,"props":12748,"children":12749},{"style":2345},[12750],{"type":26,"value":12751}," x ",{"type":21,"tag":2338,"props":12753,"children":12754},{"style":3219},[12755],{"type":26,"value":3522},{"type":21,"tag":2338,"props":12757,"children":12758},{"style":2363},[12759],{"type":26,"value":3527},{"type":21,"tag":2338,"props":12761,"children":12762},{"style":2345},[12763],{"type":26,"value":3339},{"type":21,"tag":2338,"props":12765,"children":12766},{"style":2363},[12767],{"type":26,"value":5189},{"type":21,"tag":2338,"props":12769,"children":12770},{"style":2345},[12771],{"type":26,"value":1375},{"type":21,"tag":2338,"props":12773,"children":12774},{"style":2363},[12775],{"type":26,"value":2437},{"type":21,"tag":2338,"props":12777,"children":12778},{"style":3219},[12779],{"type":26,"value":8330},{"type":21,"tag":2338,"props":12781,"children":12782},{"style":2345},[12783],{"type":26,"value":12721},{"type":21,"tag":2338,"props":12785,"children":12786},{"style":2363},[12787],{"type":26,"value":5553},{"type":21,"tag":2338,"props":12789,"children":12790},{"style":2345},[12791],{"type":26,"value":12792},"):   ",{"type":21,"tag":2338,"props":12794,"children":12795},{"style":3469},[12796],{"type":26,"value":12797},"# |0> + |4> + |8> + |12>\n",{"type":21,"tag":2338,"props":12799,"children":12800},{"class":2340,"line":2421},[12801,12806,12810],{"type":21,"tag":2338,"props":12802,"children":12803},{"style":2345},[12804],{"type":26,"value":12805},"    psi[x] ",{"type":21,"tag":2338,"props":12807,"children":12808},{"style":3219},[12809],{"type":26,"value":3259},{"type":21,"tag":2338,"props":12811,"children":12812},{"style":2363},[12813],{"type":26,"value":12814}," 1\n",{"type":21,"tag":2338,"props":12816,"children":12817},{"class":2340,"line":2445},[12818,12822,12826],{"type":21,"tag":2338,"props":12819,"children":12820},{"style":2345},[12821],{"type":26,"value":12699},{"type":21,"tag":2338,"props":12823,"children":12824},{"style":3219},[12825],{"type":26,"value":5485},{"type":21,"tag":2338,"props":12827,"children":12828},{"style":2345},[12829],{"type":26,"value":12830}," np.linalg.norm(psi)\n",{"type":21,"tag":2338,"props":12832,"children":12833},{"class":2340,"line":877},[12834],{"type":21,"tag":2338,"props":12835,"children":12836},{"emptyLinePlaceholder":3243},[12837],{"type":26,"value":3246},{"type":21,"tag":2338,"props":12839,"children":12840},{"class":2340,"line":196},[12841,12846,12850],{"type":21,"tag":2338,"props":12842,"children":12843},{"style":2345},[12844],{"type":26,"value":12845},"out ",{"type":21,"tag":2338,"props":12847,"children":12848},{"style":3219},[12849],{"type":26,"value":3259},{"type":21,"tag":2338,"props":12851,"children":12852},{"style":2345},[12853],{"type":26,"value":12854}," Statevector(psi).evolve(qft(n))\n",{"type":21,"tag":2338,"props":12856,"children":12857},{"class":2340,"line":951},[12858,12862,12867,12871,12875],{"type":21,"tag":2338,"props":12859,"children":12860},{"style":3219},[12861],{"type":26,"value":3512},{"type":21,"tag":2338,"props":12863,"children":12864},{"style":2345},[12865],{"type":26,"value":12866}," i, p ",{"type":21,"tag":2338,"props":12868,"children":12869},{"style":3219},[12870],{"type":26,"value":3522},{"type":21,"tag":2338,"props":12872,"children":12873},{"style":2363},[12874],{"type":26,"value":4906},{"type":21,"tag":2338,"props":12876,"children":12877},{"style":2345},[12878],{"type":26,"value":12879},"(out.probabilities()):\n",{"type":21,"tag":2338,"props":12881,"children":12882},{"class":2340,"line":16},[12883,12887,12892,12897,12902],{"type":21,"tag":2338,"props":12884,"children":12885},{"style":3219},[12886],{"type":26,"value":11967},{"type":21,"tag":2338,"props":12888,"children":12889},{"style":2345},[12890],{"type":26,"value":12891}," p ",{"type":21,"tag":2338,"props":12893,"children":12894},{"style":3219},[12895],{"type":26,"value":12896},">",{"type":21,"tag":2338,"props":12898,"children":12899},{"style":2363},[12900],{"type":26,"value":12901}," 1e-6",{"type":21,"tag":2338,"props":12903,"children":12904},{"style":2345},[12905],{"type":26,"value":4940},{"type":21,"tag":2338,"props":12907,"children":12908},{"class":2340,"line":3465},[12909,12914,12918,12922,12927,12931,12935,12940,12944,12948,12952,12957,12961,12966,12970,12974,12979,12983,12988,12992,12996,13000,13004,13008],{"type":21,"tag":2338,"props":12910,"children":12911},{"style":2363},[12912],{"type":26,"value":12913},"        print",{"type":21,"tag":2338,"props":12915,"children":12916},{"style":2345},[12917],{"type":26,"value":3339},{"type":21,"tag":2338,"props":12919,"children":12920},{"style":3219},[12921],{"type":26,"value":3344},{"type":21,"tag":2338,"props":12923,"children":12924},{"style":2374},[12925],{"type":26,"value":12926},"\"|",{"type":21,"tag":2338,"props":12928,"children":12929},{"style":2363},[12930],{"type":26,"value":3354},{"type":21,"tag":2338,"props":12932,"children":12933},{"style":2345},[12934],{"type":26,"value":4257},{"type":21,"tag":2338,"props":12936,"children":12937},{"style":3219},[12938],{"type":26,"value":12939},":0",{"type":21,"tag":2338,"props":12941,"children":12942},{"style":2363},[12943],{"type":26,"value":3354},{"type":21,"tag":2338,"props":12945,"children":12946},{"style":2345},[12947],{"type":26,"value":4850},{"type":21,"tag":2338,"props":12949,"children":12950},{"style":2363},[12951],{"type":26,"value":3364},{"type":21,"tag":2338,"props":12953,"children":12954},{"style":3219},[12955],{"type":26,"value":12956},"b",{"type":21,"tag":2338,"props":12958,"children":12959},{"style":2363},[12960],{"type":26,"value":3364},{"type":21,"tag":2338,"props":12962,"children":12963},{"style":2374},[12964],{"type":26,"value":12965},"> = ",{"type":21,"tag":2338,"props":12967,"children":12968},{"style":2363},[12969],{"type":26,"value":3354},{"type":21,"tag":2338,"props":12971,"children":12972},{"style":2345},[12973],{"type":26,"value":4257},{"type":21,"tag":2338,"props":12975,"children":12976},{"style":3219},[12977],{"type":26,"value":12978},":2d",{"type":21,"tag":2338,"props":12980,"children":12981},{"style":2363},[12982],{"type":26,"value":3364},{"type":21,"tag":2338,"props":12984,"children":12985},{"style":2374},[12986],{"type":26,"value":12987},"   p = ",{"type":21,"tag":2338,"props":12989,"children":12990},{"style":2363},[12991],{"type":26,"value":3354},{"type":21,"tag":2338,"props":12993,"children":12994},{"style":2345},[12995],{"type":26,"value":22},{"type":21,"tag":2338,"props":12997,"children":12998},{"style":3219},[12999],{"type":26,"value":3666},{"type":21,"tag":2338,"props":13001,"children":13002},{"style":2363},[13003],{"type":26,"value":3364},{"type":21,"tag":2338,"props":13005,"children":13006},{"style":2374},[13007],{"type":26,"value":3369},{"type":21,"tag":2338,"props":13009,"children":13010},{"style":2345},[13011],{"type":26,"value":3319},{"type":21,"tag":22,"props":13013,"children":13014},{},[13015],{"type":26,"value":12406},{"type":21,"tag":2328,"props":13017,"children":13019},{"code":13018},"|0000> =  0   p = 0.2500\n|0100> =  4   p = 0.2500\n|1000> =  8   p = 0.2500\n|1100> = 12   p = 0.2500\n",[13020],{"type":21,"tag":2097,"props":13021,"children":13022},{"__ignoreMap":7},[13023],{"type":26,"value":13018},{"type":21,"tag":22,"props":13025,"children":13026},{},[13027,13029,13034],{"type":26,"value":13028},"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":205,"props":13030,"children":13031},{},[13032],{"type":26,"value":13033},"That",{"type":26,"value":13035}," is the readable signal: not the coefficients, but a periodicity converted into a sampling distribution.",{"type":21,"tag":22,"props":13037,"children":13038},{},[13039],{"type":26,"value":13040},"Confirm it on the simulator with actual shots:",{"type":21,"tag":2328,"props":13042,"children":13044},{"code":13043,"language":3209,"meta":7,"className":3207,"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",[13045],{"type":21,"tag":2097,"props":13046,"children":13047},{"__ignoreMap":7},[13048,13063,13079,13103,13111,13118,13133,13164],{"type":21,"tag":2338,"props":13049,"children":13050},{"class":2340,"line":2341},[13051,13055,13059],{"type":21,"tag":2338,"props":13052,"children":13053},{"style":2345},[13054],{"type":26,"value":7403},{"type":21,"tag":2338,"props":13056,"children":13057},{"style":3219},[13058],{"type":26,"value":3259},{"type":21,"tag":2338,"props":13060,"children":13061},{"style":2345},[13062],{"type":26,"value":12529},{"type":21,"tag":2338,"props":13064,"children":13065},{"class":2340,"line":173},[13066,13071,13075],{"type":21,"tag":2338,"props":13067,"children":13068},{"style":2345},[13069],{"type":26,"value":13070},"qc.initialize(psi, ",{"type":21,"tag":2338,"props":13072,"children":13073},{"style":2363},[13074],{"type":26,"value":4963},{"type":21,"tag":2338,"props":13076,"children":13077},{"style":2345},[13078],{"type":26,"value":4977},{"type":21,"tag":2338,"props":13080,"children":13081},{"class":2340,"line":2359},[13082,13087,13091,13095,13099],{"type":21,"tag":2338,"props":13083,"children":13084},{"style":2345},[13085],{"type":26,"value":13086},"qc.compose(qft(n), ",{"type":21,"tag":2338,"props":13088,"children":13089},{"style":3284},[13090],{"type":26,"value":8220},{"type":21,"tag":2338,"props":13092,"children":13093},{"style":3219},[13094],{"type":26,"value":3259},{"type":21,"tag":2338,"props":13096,"children":13097},{"style":2363},[13098],{"type":26,"value":3296},{"type":21,"tag":2338,"props":13100,"children":13101},{"style":2345},[13102],{"type":26,"value":3319},{"type":21,"tag":2338,"props":13104,"children":13105},{"class":2340,"line":2421},[13106],{"type":21,"tag":2338,"props":13107,"children":13108},{"style":2345},[13109],{"type":26,"value":13110},"qc.measure_all()\n",{"type":21,"tag":2338,"props":13112,"children":13113},{"class":2340,"line":2445},[13114],{"type":21,"tag":2338,"props":13115,"children":13116},{"emptyLinePlaceholder":3243},[13117],{"type":26,"value":3246},{"type":21,"tag":2338,"props":13119,"children":13120},{"class":2340,"line":877},[13121,13125,13129],{"type":21,"tag":2338,"props":13122,"children":13123},{"style":2345},[13124],{"type":26,"value":8445},{"type":21,"tag":2338,"props":13126,"children":13127},{"style":3219},[13128],{"type":26,"value":3259},{"type":21,"tag":2338,"props":13130,"children":13131},{"style":2345},[13132],{"type":26,"value":8454},{"type":21,"tag":2338,"props":13134,"children":13135},{"class":2340,"line":196},[13136,13140,13144,13148,13152,13156,13160],{"type":21,"tag":2338,"props":13137,"children":13138},{"style":2345},[13139],{"type":26,"value":8478},{"type":21,"tag":2338,"props":13141,"children":13142},{"style":3219},[13143],{"type":26,"value":3259},{"type":21,"tag":2338,"props":13145,"children":13146},{"style":2345},[13147],{"type":26,"value":8487},{"type":21,"tag":2338,"props":13149,"children":13150},{"style":3284},[13151],{"type":26,"value":4144},{"type":21,"tag":2338,"props":13153,"children":13154},{"style":3219},[13155],{"type":26,"value":3259},{"type":21,"tag":2338,"props":13157,"children":13158},{"style":2363},[13159],{"type":26,"value":8500},{"type":21,"tag":2338,"props":13161,"children":13162},{"style":2345},[13163],{"type":26,"value":5303},{"type":21,"tag":2338,"props":13165,"children":13166},{"class":2340,"line":951},[13167,13171,13175,13179,13184,13188,13192,13197,13201,13206,13210],{"type":21,"tag":2338,"props":13168,"children":13169},{"style":2363},[13170],{"type":26,"value":3334},{"type":21,"tag":2338,"props":13172,"children":13173},{"style":2345},[13174],{"type":26,"value":3339},{"type":21,"tag":2338,"props":13176,"children":13177},{"style":2363},[13178],{"type":26,"value":8520},{"type":21,"tag":2338,"props":13180,"children":13181},{"style":2345},[13182],{"type":26,"value":13183},"(counts.items(), ",{"type":21,"tag":2338,"props":13185,"children":13186},{"style":3284},[13187],{"type":26,"value":3560},{"type":21,"tag":2338,"props":13189,"children":13190},{"style":3219},[13191],{"type":26,"value":3565},{"type":21,"tag":2338,"props":13193,"children":13194},{"style":2345},[13195],{"type":26,"value":13196}," kv: ",{"type":21,"tag":2338,"props":13198,"children":13199},{"style":3219},[13200],{"type":26,"value":4869},{"type":21,"tag":2338,"props":13202,"children":13203},{"style":2345},[13204],{"type":26,"value":13205},"kv[",{"type":21,"tag":2338,"props":13207,"children":13208},{"style":2363},[13209],{"type":26,"value":3575},{"type":21,"tag":2338,"props":13211,"children":13212},{"style":2345},[13213],{"type":26,"value":13214},"]))\n",{"type":21,"tag":22,"props":13216,"children":13217},{},[13218],{"type":26,"value":12406},{"type":21,"tag":2328,"props":13220,"children":13222},{"code":13221},"[('0100', 1079), ('1000', 1030), ('0000', 1018), ('1100', 969)]\n",[13223],{"type":21,"tag":2097,"props":13224,"children":13225},{"__ignoreMap":7},[13226],{"type":26,"value":13221},{"type":21,"tag":22,"props":13228,"children":13229},{},[13230],{"type":26,"value":13231},"Four peaks, roughly 1024 counts each. Nothing else appears.",{"type":21,"tag":29,"props":13233,"children":13235},{"id":13234},"where-the-qft-earns-its-keep",[13236],{"type":26,"value":13237},"Where the QFT earns its keep",{"type":21,"tag":22,"props":13239,"children":13240},{},[13241,13246,13248,13252,13254,13260],{"type":21,"tag":205,"props":13242,"children":13243},{},[13244],{"type":26,"value":13245},"Quantum phase estimation (QPE).",{"type":26,"value":13247}," 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":2071,"props":13249,"children":13250},{},[13251],{"type":26,"value":7000},{"type":26,"value":13253}," 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":2097,"props":13255,"children":13257},{"className":13256},[],[13258],{"type":26,"value":13259},"qft(n).inverse()",{"type":26,"value":825},{"type":21,"tag":22,"props":13262,"children":13263},{},[13264,13269],{"type":21,"tag":205,"props":13265,"children":13266},{},[13267],{"type":26,"value":13268},"Order finding.",{"type":26,"value":13270}," 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":13272,"children":13273},{},[13274,13282,13284,13289,13291,13295],{"type":21,"tag":205,"props":13275,"children":13276},{},[13277,13281],{"type":21,"tag":41,"props":13278,"children":13279},{"href":9649},[13280],{"type":26,"value":9652},{"type":26,"value":825},{"type":26,"value":13283}," Factoring reduces to order finding, so Shor's is order finding plus classical post-processing (continued fractions and a GCD). The ",{"type":21,"tag":41,"props":13285,"children":13286},{"href":8629},[13287],{"type":26,"value":13288},"1994 paper",{"type":26,"value":13290}," is worth reading precisely because the QFT is the only quantum part: everything else is number theory. This is also why the algorithm threatens RSA, and why ",{"type":21,"tag":41,"props":13292,"children":13293},{"href":9400},[13294],{"type":26,"value":9383},{"type":26,"value":13296}," migration is happening now rather than later.",{"type":21,"tag":22,"props":13298,"children":13299},{},[13300],{"type":26,"value":13301},"In all three cases the QFT is doing the same job: turning phase information into position information so a measurement sees it.",{"type":21,"tag":29,"props":13303,"children":13305},{"id":13304},"approximate-qft-drop-the-tiny-rotations",[13306],{"type":26,"value":13307},"Approximate QFT: drop the tiny rotations",{"type":21,"tag":22,"props":13309,"children":13310},{},[13311,13313,13318],{"type":26,"value":13312},"On real hardware, ",{"type":21,"tag":2097,"props":13314,"children":13316},{"className":13315},[],[13317],{"type":26,"value":11746},{"type":26,"value":13319}," 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":2328,"props":13321,"children":13323},{"code":13322,"language":3209,"meta":7,"className":3207,"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",[13324],{"type":21,"tag":2097,"props":13325,"children":13326},{"__ignoreMap":7},[13327,13344,13376,13421,13445,13453,13477,13503,13525,13550,13585,13613],{"type":21,"tag":2338,"props":13328,"children":13329},{"class":2340,"line":2341},[13330,13334,13339],{"type":21,"tag":2338,"props":13331,"children":13332},{"style":3219},[13333],{"type":26,"value":4382},{"type":21,"tag":2338,"props":13335,"children":13336},{"style":4385},[13337],{"type":26,"value":13338}," aqft",{"type":21,"tag":2338,"props":13340,"children":13341},{"style":2345},[13342],{"type":26,"value":13343},"(n, k_max):\n",{"type":21,"tag":2338,"props":13345,"children":13346},{"class":2340,"line":173},[13347,13351,13355,13359,13363,13367,13372],{"type":21,"tag":2338,"props":13348,"children":13349},{"style":2345},[13350],{"type":26,"value":7518},{"type":21,"tag":2338,"props":13352,"children":13353},{"style":3219},[13354],{"type":26,"value":3259},{"type":21,"tag":2338,"props":13356,"children":13357},{"style":2345},[13358],{"type":26,"value":7527},{"type":21,"tag":2338,"props":13360,"children":13361},{"style":3284},[13362],{"type":26,"value":7532},{"type":21,"tag":2338,"props":13364,"children":13365},{"style":3219},[13366],{"type":26,"value":3259},{"type":21,"tag":2338,"props":13368,"children":13369},{"style":2374},[13370],{"type":26,"value":13371},"\"AQFT\"",{"type":21,"tag":2338,"props":13373,"children":13374},{"style":2345},[13375],{"type":26,"value":3319},{"type":21,"tag":2338,"props":13377,"children":13378},{"class":2340,"line":2359},[13379,13383,13388,13392,13396,13401,13405,13409,13413,13417],{"type":21,"tag":2338,"props":13380,"children":13381},{"style":3219},[13382],{"type":26,"value":4761},{"type":21,"tag":2338,"props":13384,"children":13385},{"style":2345},[13386],{"type":26,"value":13387}," size ",{"type":21,"tag":2338,"props":13389,"children":13390},{"style":3219},[13391],{"type":26,"value":3522},{"type":21,"tag":2338,"props":13393,"children":13394},{"style":2363},[13395],{"type":26,"value":3527},{"type":21,"tag":2338,"props":13397,"children":13398},{"style":2345},[13399],{"type":26,"value":13400},"(n, ",{"type":21,"tag":2338,"props":13402,"children":13403},{"style":2363},[13404],{"type":26,"value":5189},{"type":21,"tag":2338,"props":13406,"children":13407},{"style":2345},[13408],{"type":26,"value":1375},{"type":21,"tag":2338,"props":13410,"children":13411},{"style":3219},[13412],{"type":26,"value":4869},{"type":21,"tag":2338,"props":13414,"children":13415},{"style":2363},[13416],{"type":26,"value":3575},{"type":21,"tag":2338,"props":13418,"children":13419},{"style":2345},[13420],{"type":26,"value":4435},{"type":21,"tag":2338,"props":13422,"children":13423},{"class":2340,"line":2421},[13424,13429,13433,13437,13441],{"type":21,"tag":2338,"props":13425,"children":13426},{"style":2345},[13427],{"type":26,"value":13428},"        m ",{"type":21,"tag":2338,"props":13430,"children":13431},{"style":3219},[13432],{"type":26,"value":3259},{"type":21,"tag":2338,"props":13434,"children":13435},{"style":2345},[13436],{"type":26,"value":13387},{"type":21,"tag":2338,"props":13438,"children":13439},{"style":3219},[13440],{"type":26,"value":4869},{"type":21,"tag":2338,"props":13442,"children":13443},{"style":2363},[13444],{"type":26,"value":12814},{"type":21,"tag":2338,"props":13446,"children":13447},{"class":2340,"line":2445},[13448],{"type":21,"tag":2338,"props":13449,"children":13450},{"style":2345},[13451],{"type":26,"value":13452},"        qc.h(m)\n",{"type":21,"tag":2338,"props":13454,"children":13455},{"class":2340,"line":877},[13456,13460,13464,13468,13472],{"type":21,"tag":2338,"props":13457,"children":13458},{"style":3219},[13459],{"type":26,"value":4892},{"type":21,"tag":2338,"props":13461,"children":13462},{"style":2345},[13463],{"type":26,"value":12040},{"type":21,"tag":2338,"props":13465,"children":13466},{"style":3219},[13467],{"type":26,"value":3522},{"type":21,"tag":2338,"props":13469,"children":13470},{"style":2363},[13471],{"type":26,"value":3527},{"type":21,"tag":2338,"props":13473,"children":13474},{"style":2345},[13475],{"type":26,"value":13476},"(m):\n",{"type":21,"tag":2338,"props":13478,"children":13479},{"class":2340,"line":196},[13480,13485,13489,13494,13498],{"type":21,"tag":2338,"props":13481,"children":13482},{"style":2345},[13483],{"type":26,"value":13484},"            k ",{"type":21,"tag":2338,"props":13486,"children":13487},{"style":3219},[13488],{"type":26,"value":3259},{"type":21,"tag":2338,"props":13490,"children":13491},{"style":2345},[13492],{"type":26,"value":13493}," m ",{"type":21,"tag":2338,"props":13495,"children":13496},{"style":3219},[13497],{"type":26,"value":4869},{"type":21,"tag":2338,"props":13499,"children":13500},{"style":2345},[13501],{"type":26,"value":13502}," qubit\n",{"type":21,"tag":2338,"props":13504,"children":13505},{"class":2340,"line":951},[13506,13510,13515,13520],{"type":21,"tag":2338,"props":13507,"children":13508},{"style":3219},[13509],{"type":26,"value":4920},{"type":21,"tag":2338,"props":13511,"children":13512},{"style":2345},[13513],{"type":26,"value":13514}," k ",{"type":21,"tag":2338,"props":13516,"children":13517},{"style":3219},[13518],{"type":26,"value":13519},"\u003C=",{"type":21,"tag":2338,"props":13521,"children":13522},{"style":2345},[13523],{"type":26,"value":13524}," k_max:\n",{"type":21,"tag":2338,"props":13526,"children":13527},{"class":2340,"line":16},[13528,13533,13537,13541,13545],{"type":21,"tag":2338,"props":13529,"children":13530},{"style":2345},[13531],{"type":26,"value":13532},"                qc.cp(np.pi ",{"type":21,"tag":2338,"props":13534,"children":13535},{"style":3219},[13536],{"type":26,"value":2192},{"type":21,"tag":2338,"props":13538,"children":13539},{"style":2363},[13540],{"type":26,"value":6405},{"type":21,"tag":2338,"props":13542,"children":13543},{"style":3219},[13544],{"type":26,"value":8330},{"type":21,"tag":2338,"props":13546,"children":13547},{"style":2345},[13548],{"type":26,"value":13549}," k, qubit, m)\n",{"type":21,"tag":2338,"props":13551,"children":13552},{"class":2340,"line":3465},[13553,13557,13561,13565,13569,13573,13577,13581],{"type":21,"tag":2338,"props":13554,"children":13555},{"style":3219},[13556],{"type":26,"value":4761},{"type":21,"tag":2338,"props":13558,"children":13559},{"style":2345},[13560],{"type":26,"value":3517},{"type":21,"tag":2338,"props":13562,"children":13563},{"style":3219},[13564],{"type":26,"value":3522},{"type":21,"tag":2338,"props":13566,"children":13567},{"style":2363},[13568],{"type":26,"value":3527},{"type":21,"tag":2338,"props":13570,"children":13571},{"style":2345},[13572],{"type":26,"value":7690},{"type":21,"tag":2338,"props":13574,"children":13575},{"style":3219},[13576],{"type":26,"value":6129},{"type":21,"tag":2338,"props":13578,"children":13579},{"style":2363},[13580],{"type":26,"value":6405},{"type":21,"tag":2338,"props":13582,"children":13583},{"style":2345},[13584],{"type":26,"value":4435},{"type":21,"tag":2338,"props":13586,"children":13587},{"class":2340,"line":3475},[13588,13593,13597,13601,13605,13609],{"type":21,"tag":2338,"props":13589,"children":13590},{"style":2345},[13591],{"type":26,"value":13592},"        qc.swap(q, n ",{"type":21,"tag":2338,"props":13594,"children":13595},{"style":3219},[13596],{"type":26,"value":4869},{"type":21,"tag":2338,"props":13598,"children":13599},{"style":2345},[13600],{"type":26,"value":3517},{"type":21,"tag":2338,"props":13602,"children":13603},{"style":3219},[13604],{"type":26,"value":4869},{"type":21,"tag":2338,"props":13606,"children":13607},{"style":2363},[13608],{"type":26,"value":6120},{"type":21,"tag":2338,"props":13610,"children":13611},{"style":2345},[13612],{"type":26,"value":3319},{"type":21,"tag":2338,"props":13614,"children":13615},{"class":2340,"line":500},[13616,13620],{"type":21,"tag":2338,"props":13617,"children":13618},{"style":3219},[13619],{"type":26,"value":4607},{"type":21,"tag":2338,"props":13621,"children":13622},{"style":2345},[13623],{"type":26,"value":7799},{"type":21,"tag":22,"props":13625,"children":13626},{},[13627],{"type":26,"value":13628},"Measured fidelity against the exact 4-qubit QFT:",{"type":21,"tag":4087,"props":13630,"children":13631},{},[13632,13653],{"type":21,"tag":4091,"props":13633,"children":13634},{},[13635],{"type":21,"tag":4095,"props":13636,"children":13637},{},[13638,13643,13648],{"type":21,"tag":4099,"props":13639,"children":13640},{},[13641],{"type":26,"value":13642},"k_max",{"type":21,"tag":4099,"props":13644,"children":13645},{},[13646],{"type":26,"value":13647},"CP gates",{"type":21,"tag":4099,"props":13649,"children":13650},{},[13651],{"type":26,"value":13652},"Fidelity",{"type":21,"tag":4113,"props":13654,"children":13655},{},[13656,13672,13688,13705],{"type":21,"tag":4095,"props":13657,"children":13658},{},[13659,13663,13667],{"type":21,"tag":4120,"props":13660,"children":13661},{},[13662],{"type":26,"value":3575},{"type":21,"tag":4120,"props":13664,"children":13665},{},[13666],{"type":26,"value":6532},{"type":21,"tag":4120,"props":13668,"children":13669},{},[13670],{"type":26,"value":13671},"0.8456",{"type":21,"tag":4095,"props":13673,"children":13674},{},[13675,13679,13683],{"type":21,"tag":4120,"props":13676,"children":13677},{},[13678],{"type":26,"value":2437},{"type":21,"tag":4120,"props":13680,"children":13681},{},[13682],{"type":26,"value":6703},{"type":21,"tag":4120,"props":13684,"children":13685},{},[13686],{"type":26,"value":13687},"0.9856",{"type":21,"tag":4095,"props":13689,"children":13690},{},[13691,13695,13700],{"type":21,"tag":4120,"props":13692,"children":13693},{},[13694],{"type":26,"value":6532},{"type":21,"tag":4120,"props":13696,"children":13697},{},[13698],{"type":26,"value":13699},"6",{"type":21,"tag":4120,"props":13701,"children":13702},{},[13703],{"type":26,"value":13704},"1.0000",{"type":21,"tag":4095,"props":13706,"children":13707},{},[13708,13713,13717],{"type":21,"tag":4120,"props":13709,"children":13710},{},[13711],{"type":26,"value":13712},"exact",{"type":21,"tag":4120,"props":13714,"children":13715},{},[13716],{"type":26,"value":13699},{"type":21,"tag":4120,"props":13718,"children":13719},{},[13720],{"type":26,"value":13704},{"type":21,"tag":22,"props":13722,"children":13723},{},[13724,13726,13730],{"type":26,"value":13725},"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":41,"props":13727,"children":13728},{"href":472},[13729],{"type":26,"value":3305},{"type":26,"value":13731}," with a realistic noise model before committing.",{"type":21,"tag":29,"props":13733,"children":13735},{"id":13734},"try-this-next",[13736],{"type":26,"value":13737},"Try this next",{"type":21,"tag":3137,"props":13739,"children":13740},{},[13741,13753,13766],{"type":21,"tag":3141,"props":13742,"children":13743},{},[13744,13746,13751],{"type":26,"value":13745},"Build ",{"type":21,"tag":2097,"props":13747,"children":13749},{"className":13748},[],[13750],{"type":26,"value":13259},{"type":26,"value":13752}," and use it to implement phase estimation on a T gate. You should recover θ = 1\u002F8 exactly with 3 counting qubits.",{"type":21,"tag":3141,"props":13754,"children":13755},{},[13756,13758,13764],{"type":26,"value":13757},"Run the 4-qubit QFT through ",{"type":21,"tag":2097,"props":13759,"children":13761},{"className":13760},[],[13762],{"type":26,"value":13763},"transpile(qc, backend, optimization_level=3)",{"type":26,"value":13765}," for a real device and watch the CP gates decompose into CNOTs. The depth increase is sobering.",{"type":21,"tag":3141,"props":13767,"children":13768},{},[13769,13771,13775],{"type":26,"value":13770},"Compare against a variational algorithm like ",{"type":21,"tag":41,"props":13772,"children":13773},{"href":2052},[13774],{"type":26,"value":2041},{"type":26,"value":13776}," to see the contrast between structured algorithms with proven speedups and heuristic NISQ ones.",{"type":21,"tag":22,"props":13778,"children":13779},{},[13780],{"type":26,"value":13781},"The takeaway to keep: the QFT is fast, exact, and useless by itself. Its power is entirely in what you wrap around it.",{"type":21,"tag":2712,"props":13783,"children":13784},{},[13785],{"type":26,"value":2716},{"title":7,"searchDepth":173,"depth":173,"links":13787},[13788,13789,13790,13791,13792,13793,13794,13795,13796],{"id":11579,"depth":173,"text":11582},{"id":11649,"depth":173,"text":11652},{"id":11707,"depth":173,"text":11710},{"id":11786,"depth":173,"text":11789},{"id":12422,"depth":173,"text":12425},{"id":12655,"depth":173,"text":12658},{"id":13234,"depth":173,"text":13237},{"id":13304,"depth":173,"text":13307},{"id":13734,"depth":173,"text":13737},"content:blog:quantum-fourier-transform-tutorial.md","blog\u002Fquantum-fourier-transform-tutorial.md","blog\u002Fquantum-fourier-transform-tutorial",{"_path":13801,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":13802,"description":13803,"date":3081,"author":11,"tags":13804,"readingTime":16,"body":13807,"_type":180,"_id":15656,"_source":182,"_file":15657,"_stem":15658,"_extension":185},"\u002Fblog\u002Fquantum-machine-learning-reality-check","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.",[13805,13806,7169],"QML","PennyLane",{"type":18,"children":13808,"toc":15647},[13809,13814,13826,13831,13837,13842,13873,13883,13899,13909,13915,13927,13939,13944,13954,13960,13972,13984,13995,14000,14006,14011,14022,14027,14060,14065,14077,14083,14095,15428,15441,15496,15508,15527,15533,15538,15561,15571,15581,15587,15603,15615,15625,15643],{"type":21,"tag":22,"props":13810,"children":13811},{},[13812],{"type":26,"value":13813},"\"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":13815,"children":13816},{},[13817,13819,13824],{"type":26,"value":13818},"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":2071,"props":13820,"children":13821},{},[13822],{"type":26,"value":13823},"said",{"type":26,"value":13825}," 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":13827,"children":13828},{},[13829],{"type":26,"value":13830},"So: what QML is, what the evidence shows, and what's still worth watching.",{"type":21,"tag":29,"props":13832,"children":13834},{"id":13833},"what-quantum-machine-learning-means",[13835],{"type":26,"value":13836},"What quantum machine learning means",{"type":21,"tag":22,"props":13838,"children":13839},{},[13840],{"type":26,"value":13841},"The term covers several quite different things that get blurred together.",{"type":21,"tag":22,"props":13843,"children":13844},{},[13845,13850,13852,13858,13860,13865,13867,13871],{"type":21,"tag":205,"props":13846,"children":13847},{},[13848],{"type":26,"value":13849},"Variational circuits as trainable models.",{"type":26,"value":13851}," This is what most people building QML today are doing. You write a parameterized quantum circuit, a ",{"type":21,"tag":41,"props":13853,"children":13855},{"href":13854},"\u002Fglossary\u002Fvariational-circuit",[13856],{"type":26,"value":13857},"variational circuit",{"type":26,"value":13859},", 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":41,"props":13861,"children":13862},{"href":434},[13863],{"type":26,"value":13864},"hybrid algorithm",{"type":26,"value":13866}," pattern as ",{"type":21,"tag":41,"props":13868,"children":13869},{"href":392},[13870],{"type":26,"value":352},{"type":26,"value":13872},", 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":13874,"children":13875},{},[13876,13881],{"type":21,"tag":205,"props":13877,"children":13878},{},[13879],{"type":26,"value":13880},"Quantum kernels.",{"type":26,"value":13882}," 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":13884,"children":13885},{},[13886,13891,13893,13897],{"type":21,"tag":205,"props":13887,"children":13888},{},[13889],{"type":26,"value":13890},"Data encoding.",{"type":26,"value":13892}," 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":41,"props":13894,"children":13895},{"href":1260},[13896],{"type":26,"value":2800},{"type":26,"value":13898}," 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":13900,"children":13901},{},[13902,13907],{"type":21,"tag":205,"props":13903,"children":13904},{},[13905],{"type":26,"value":13906},"Quantum-accelerated linear algebra.",{"type":26,"value":13908}," 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":29,"props":13910,"children":13912},{"id":13911},"the-data-loading-bottleneck",[13913],{"type":26,"value":13914},"The data-loading bottleneck",{"type":21,"tag":22,"props":13916,"children":13917},{},[13918,13919,13925],{"type":26,"value":11091},{"type":21,"tag":41,"props":13920,"children":13922},{"href":13921},"\u002Fresearch\u002Fbiamonte-quantum-machine-learning-2017",[13923],{"type":26,"value":13924},"Biamonte et al. review",{"type":26,"value":13926},", 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":13928,"children":13929},{},[13930,13932,13937],{"type":26,"value":13931},"Many quantum ML algorithms with proven exponential speedups assume your data is ",{"type":21,"tag":2071,"props":13933,"children":13934},{},[13935],{"type":26,"value":13936},"already",{"type":26,"value":13938}," 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":13940,"children":13941},{},[13942],{"type":26,"value":13943},"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":13945,"children":13946},{},[13947,13949],{"type":26,"value":13948},"The practical rule: ",{"type":21,"tag":205,"props":13950,"children":13951},{},[13952],{"type":26,"value":13953},"be suspicious of any quantum ML speedup claim that doesn't account for how the data got in.",{"type":21,"tag":29,"props":13955,"children":13957},{"id":13956},"barren-plateaus",[13958],{"type":26,"value":13959},"Barren plateaus",{"type":21,"tag":22,"props":13961,"children":13962},{},[13963,13965,13971],{"type":26,"value":13964},"The variational approach (the one most people build with) has its own structural obstacle, and it's the one described in ",{"type":21,"tag":41,"props":13966,"children":13968},{"href":13967},"\u002Fresearch\u002Fmcclean-barren-plateaus-2018",[13969],{"type":26,"value":13970},"McClean et al.",{"type":26,"value":825},{"type":21,"tag":22,"props":13973,"children":13974},{},[13975,13977,13982],{"type":26,"value":13976},"Training a variational model means computing gradients and stepping downhill. McClean and colleagues showed that for randomly initialized circuits, the ",{"type":21,"tag":2071,"props":13978,"children":13979},{},[13980],{"type":26,"value":13981},"variance",{"type":26,"value":13983}," 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":13985,"children":13986},{},[13987,13989,13993],{"type":26,"value":13988},"Why this is fatal rather than merely annoying: gradients on quantum hardware are estimated from measurement statistics, so they come with ",{"type":21,"tag":41,"props":13990,"children":13991},{"href":5729},[13992],{"type":26,"value":5732},{"type":26,"value":13994},". 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":13996,"children":13997},{},[13998],{"type":26,"value":13999},"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 claim that a variational quantum model scales to useful problem sizes has to explain how it escapes this, and most don't.",{"type":21,"tag":29,"props":14001,"children":14003},{"id":14002},"the-2026-head-to-head-comparison",[14004],{"type":26,"value":14005},"The 2026 head-to-head comparison",{"type":21,"tag":22,"props":14007,"children":14008},{},[14009],{"type":26,"value":14010},"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":14012,"children":14013},{},[14014,14020],{"type":21,"tag":41,"props":14015,"children":14017},{"href":14016},"\u002Fresearch\u002Fquantum-vs-classical-ml-2026",[14018],{"type":26,"value":14019},"Yu et al. (2026)",{"type":26,"value":14021}," 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":14023,"children":14024},{},[14025],{"type":26,"value":14026},"The quantum models lost. Not on one axis: on three:",{"type":21,"tag":3137,"props":14028,"children":14029},{},[14030,14040,14050],{"type":21,"tag":3141,"props":14031,"children":14032},{},[14033,14038],{"type":21,"tag":205,"props":14034,"children":14035},{},[14036],{"type":26,"value":14037},"Prediction performance.",{"type":26,"value":14039}," Classical baselines were more accurate.",{"type":21,"tag":3141,"props":14041,"children":14042},{},[14043,14048],{"type":21,"tag":205,"props":14044,"children":14045},{},[14046],{"type":26,"value":14047},"Policy stability.",{"type":26,"value":14049}," In the reinforcement learning tasks, the quantum models produced less stable policies.",{"type":21,"tag":3141,"props":14051,"children":14052},{},[14053,14058],{"type":21,"tag":205,"props":14054,"children":14055},{},[14056],{"type":26,"value":14057},"Training time.",{"type":26,"value":14059}," The quantum models were slower to train.",{"type":21,"tag":22,"props":14061,"children":14062},{},[14063],{"type":26,"value":14064},"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":14066,"children":14067},{},[14068,14070,14075],{"type":26,"value":14069},"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":205,"props":14071,"children":14072},{},[14073],{"type":26,"value":14074},"As of mid-2026, \"quantum will make AI faster\" is not supported by the evidence.",{"type":26,"value":14076}," If someone tells you otherwise, ask them for the head-to-head benchmark.",{"type":21,"tag":29,"props":14078,"children":14080},{"id":14079},"try-it-yourself",[14081],{"type":26,"value":14082},"Try it yourself",{"type":21,"tag":22,"props":14084,"children":14085},{},[14086,14088,14093],{"type":26,"value":14087},"The best way to develop intuition here is to build one. This is a complete variational quantum classifier in ",{"type":21,"tag":41,"props":14089,"children":14091},{"href":14090},"\u002Fsdks\u002Fpennylane",[14092],{"type":26,"value":13806},{"type":26,"value":14094},": angle encoding, a trainable entangling ansatz, and a gradient-descent loop:",{"type":21,"tag":2328,"props":14096,"children":14098},{"className":3207,"code":14097,"language":3209,"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",[14099],{"type":21,"tag":2097,"props":14100,"children":14101},{"__ignoreMap":7},[14102,14123,14150,14171,14192,14199,14215,14232,14239,14279,14286,14299,14316,14324,14367,14374,14382,14407,14414,14434,14441,14458,14479,14486,14503,14536,14543,14560,14594,14606,14613,14621,14692,14725,14742,14781,14788,14795,14839,14864,14916,14958,14965,14999,15016,15023,15056,15091,15109,15127,15135,15169,15204,15231,15322,15330,15364],{"type":21,"tag":2338,"props":14103,"children":14104},{"class":2340,"line":2341},[14105,14109,14114,14118],{"type":21,"tag":2338,"props":14106,"children":14107},{"style":3219},[14108],{"type":26,"value":3232},{"type":21,"tag":2338,"props":14110,"children":14111},{"style":2345},[14112],{"type":26,"value":14113}," pennylane ",{"type":21,"tag":2338,"props":14115,"children":14116},{"style":3219},[14117],{"type":26,"value":4299},{"type":21,"tag":2338,"props":14119,"children":14120},{"style":2345},[14121],{"type":26,"value":14122}," qml\n",{"type":21,"tag":2338,"props":14124,"children":14125},{"class":2340,"line":173},[14126,14130,14134,14138,14142,14146],{"type":21,"tag":2338,"props":14127,"children":14128},{"style":3219},[14129],{"type":26,"value":3222},{"type":21,"tag":2338,"props":14131,"children":14132},{"style":2345},[14133],{"type":26,"value":14113},{"type":21,"tag":2338,"props":14135,"children":14136},{"style":3219},[14137],{"type":26,"value":3232},{"type":21,"tag":2338,"props":14139,"children":14140},{"style":2345},[14141],{"type":26,"value":4294},{"type":21,"tag":2338,"props":14143,"children":14144},{"style":3219},[14145],{"type":26,"value":4299},{"type":21,"tag":2338,"props":14147,"children":14148},{"style":2345},[14149],{"type":26,"value":4304},{"type":21,"tag":2338,"props":14151,"children":14152},{"class":2340,"line":2359},[14153,14157,14162,14166],{"type":21,"tag":2338,"props":14154,"children":14155},{"style":3219},[14156],{"type":26,"value":3222},{"type":21,"tag":2338,"props":14158,"children":14159},{"style":2345},[14160],{"type":26,"value":14161}," sklearn.datasets ",{"type":21,"tag":2338,"props":14163,"children":14164},{"style":3219},[14165],{"type":26,"value":3232},{"type":21,"tag":2338,"props":14167,"children":14168},{"style":2345},[14169],{"type":26,"value":14170}," make_moons\n",{"type":21,"tag":2338,"props":14172,"children":14173},{"class":2340,"line":2421},[14174,14178,14183,14187],{"type":21,"tag":2338,"props":14175,"children":14176},{"style":3219},[14177],{"type":26,"value":3222},{"type":21,"tag":2338,"props":14179,"children":14180},{"style":2345},[14181],{"type":26,"value":14182}," sklearn.model_selection ",{"type":21,"tag":2338,"props":14184,"children":14185},{"style":3219},[14186],{"type":26,"value":3232},{"type":21,"tag":2338,"props":14188,"children":14189},{"style":2345},[14190],{"type":26,"value":14191}," train_test_split\n",{"type":21,"tag":2338,"props":14193,"children":14194},{"class":2340,"line":2445},[14195],{"type":21,"tag":2338,"props":14196,"children":14197},{"emptyLinePlaceholder":3243},[14198],{"type":26,"value":3246},{"type":21,"tag":2338,"props":14200,"children":14201},{"class":2340,"line":877},[14202,14207,14211],{"type":21,"tag":2338,"props":14203,"children":14204},{"style":2345},[14205],{"type":26,"value":14206},"n_qubits ",{"type":21,"tag":2338,"props":14208,"children":14209},{"style":3219},[14210],{"type":26,"value":3259},{"type":21,"tag":2338,"props":14212,"children":14213},{"style":2363},[14214],{"type":26,"value":5115},{"type":21,"tag":2338,"props":14216,"children":14217},{"class":2340,"line":196},[14218,14223,14227],{"type":21,"tag":2338,"props":14219,"children":14220},{"style":2345},[14221],{"type":26,"value":14222},"n_layers ",{"type":21,"tag":2338,"props":14224,"children":14225},{"style":3219},[14226],{"type":26,"value":3259},{"type":21,"tag":2338,"props":14228,"children":14229},{"style":2363},[14230],{"type":26,"value":14231}," 3\n",{"type":21,"tag":2338,"props":14233,"children":14234},{"class":2340,"line":951},[14235],{"type":21,"tag":2338,"props":14236,"children":14237},{"emptyLinePlaceholder":3243},[14238],{"type":26,"value":3246},{"type":21,"tag":2338,"props":14240,"children":14241},{"class":2340,"line":16},[14242,14247,14251,14256,14261,14265,14270,14274],{"type":21,"tag":2338,"props":14243,"children":14244},{"style":2345},[14245],{"type":26,"value":14246},"dev ",{"type":21,"tag":2338,"props":14248,"children":14249},{"style":3219},[14250],{"type":26,"value":3259},{"type":21,"tag":2338,"props":14252,"children":14253},{"style":2345},[14254],{"type":26,"value":14255}," qml.device(",{"type":21,"tag":2338,"props":14257,"children":14258},{"style":2374},[14259],{"type":26,"value":14260},"\"default.qubit\"",{"type":21,"tag":2338,"props":14262,"children":14263},{"style":2345},[14264],{"type":26,"value":1375},{"type":21,"tag":2338,"props":14266,"children":14267},{"style":3284},[14268],{"type":26,"value":14269},"wires",{"type":21,"tag":2338,"props":14271,"children":14272},{"style":3219},[14273],{"type":26,"value":3259},{"type":21,"tag":2338,"props":14275,"children":14276},{"style":2345},[14277],{"type":26,"value":14278},"n_qubits)\n",{"type":21,"tag":2338,"props":14280,"children":14281},{"class":2340,"line":3465},[14282],{"type":21,"tag":2338,"props":14283,"children":14284},{"emptyLinePlaceholder":3243},[14285],{"type":26,"value":3246},{"type":21,"tag":2338,"props":14287,"children":14288},{"class":2340,"line":3475},[14289,14294],{"type":21,"tag":2338,"props":14290,"children":14291},{"style":4385},[14292],{"type":26,"value":14293},"@qml.qnode",{"type":21,"tag":2338,"props":14295,"children":14296},{"style":2345},[14297],{"type":26,"value":14298},"(dev)\n",{"type":21,"tag":2338,"props":14300,"children":14301},{"class":2340,"line":500},[14302,14306,14311],{"type":21,"tag":2338,"props":14303,"children":14304},{"style":3219},[14305],{"type":26,"value":4382},{"type":21,"tag":2338,"props":14307,"children":14308},{"style":4385},[14309],{"type":26,"value":14310}," circuit",{"type":21,"tag":2338,"props":14312,"children":14313},{"style":2345},[14314],{"type":26,"value":14315},"(weights, x):\n",{"type":21,"tag":2338,"props":14317,"children":14318},{"class":2340,"line":3535},[14319],{"type":21,"tag":2338,"props":14320,"children":14321},{"style":3469},[14322],{"type":26,"value":14323},"    # Data encoding: each feature becomes a rotation angle\n",{"type":21,"tag":2338,"props":14325,"children":14326},{"class":2340,"line":3583},[14327,14332,14336,14340,14344,14349,14354,14358,14363],{"type":21,"tag":2338,"props":14328,"children":14329},{"style":2345},[14330],{"type":26,"value":14331},"    qml.AngleEmbedding(x, ",{"type":21,"tag":2338,"props":14333,"children":14334},{"style":3284},[14335],{"type":26,"value":14269},{"type":21,"tag":2338,"props":14337,"children":14338},{"style":3219},[14339],{"type":26,"value":3259},{"type":21,"tag":2338,"props":14341,"children":14342},{"style":2363},[14343],{"type":26,"value":4963},{"type":21,"tag":2338,"props":14345,"children":14346},{"style":2345},[14347],{"type":26,"value":14348},"(n_qubits), ",{"type":21,"tag":2338,"props":14350,"children":14351},{"style":3284},[14352],{"type":26,"value":14353},"rotation",{"type":21,"tag":2338,"props":14355,"children":14356},{"style":3219},[14357],{"type":26,"value":3259},{"type":21,"tag":2338,"props":14359,"children":14360},{"style":2374},[14361],{"type":26,"value":14362},"\"Y\"",{"type":21,"tag":2338,"props":14364,"children":14365},{"style":2345},[14366],{"type":26,"value":3319},{"type":21,"tag":2338,"props":14368,"children":14369},{"class":2340,"line":3625},[14370],{"type":21,"tag":2338,"props":14371,"children":14372},{"emptyLinePlaceholder":3243},[14373],{"type":26,"value":3246},{"type":21,"tag":2338,"props":14375,"children":14376},{"class":2340,"line":4652},[14377],{"type":21,"tag":2338,"props":14378,"children":14379},{"style":3469},[14380],{"type":26,"value":14381},"    # Trainable ansatz: rotations plus entangling CNOTs\n",{"type":21,"tag":2338,"props":14383,"children":14384},{"class":2340,"line":4671},[14385,14390,14394,14398,14402],{"type":21,"tag":2338,"props":14386,"children":14387},{"style":2345},[14388],{"type":26,"value":14389},"    qml.BasicEntanglerLayers(weights, ",{"type":21,"tag":2338,"props":14391,"children":14392},{"style":3284},[14393],{"type":26,"value":14269},{"type":21,"tag":2338,"props":14395,"children":14396},{"style":3219},[14397],{"type":26,"value":3259},{"type":21,"tag":2338,"props":14399,"children":14400},{"style":2363},[14401],{"type":26,"value":4963},{"type":21,"tag":2338,"props":14403,"children":14404},{"style":2345},[14405],{"type":26,"value":14406},"(n_qubits))\n",{"type":21,"tag":2338,"props":14408,"children":14409},{"class":2340,"line":4679},[14410],{"type":21,"tag":2338,"props":14411,"children":14412},{"emptyLinePlaceholder":3243},[14413],{"type":26,"value":3246},{"type":21,"tag":2338,"props":14415,"children":14416},{"class":2340,"line":4710},[14417,14421,14426,14430],{"type":21,"tag":2338,"props":14418,"children":14419},{"style":3219},[14420],{"type":26,"value":4607},{"type":21,"tag":2338,"props":14422,"children":14423},{"style":2345},[14424],{"type":26,"value":14425}," qml.expval(qml.PauliZ(",{"type":21,"tag":2338,"props":14427,"children":14428},{"style":2363},[14429],{"type":26,"value":5189},{"type":21,"tag":2338,"props":14431,"children":14432},{"style":2345},[14433],{"type":26,"value":12389},{"type":21,"tag":2338,"props":14435,"children":14436},{"class":2340,"line":4755},[14437],{"type":21,"tag":2338,"props":14438,"children":14439},{"emptyLinePlaceholder":3243},[14440],{"type":26,"value":3246},{"type":21,"tag":2338,"props":14442,"children":14443},{"class":2340,"line":4794},[14444,14448,14453],{"type":21,"tag":2338,"props":14445,"children":14446},{"style":3219},[14447],{"type":26,"value":4382},{"type":21,"tag":2338,"props":14449,"children":14450},{"style":4385},[14451],{"type":26,"value":14452}," variational_classifier",{"type":21,"tag":2338,"props":14454,"children":14455},{"style":2345},[14456],{"type":26,"value":14457},"(weights, bias, x):\n",{"type":21,"tag":2338,"props":14459,"children":14460},{"class":2340,"line":4812},[14461,14465,14470,14474],{"type":21,"tag":2338,"props":14462,"children":14463},{"style":3219},[14464],{"type":26,"value":4607},{"type":21,"tag":2338,"props":14466,"children":14467},{"style":2345},[14468],{"type":26,"value":14469}," circuit(weights, x) ",{"type":21,"tag":2338,"props":14471,"children":14472},{"style":3219},[14473],{"type":26,"value":6549},{"type":21,"tag":2338,"props":14475,"children":14476},{"style":2345},[14477],{"type":26,"value":14478}," bias\n",{"type":21,"tag":2338,"props":14480,"children":14481},{"class":2340,"line":4886},[14482],{"type":21,"tag":2338,"props":14483,"children":14484},{"emptyLinePlaceholder":3243},[14485],{"type":26,"value":3246},{"type":21,"tag":2338,"props":14487,"children":14488},{"class":2340,"line":4914},[14489,14493,14498],{"type":21,"tag":2338,"props":14490,"children":14491},{"style":3219},[14492],{"type":26,"value":4382},{"type":21,"tag":2338,"props":14494,"children":14495},{"style":4385},[14496],{"type":26,"value":14497}," square_loss",{"type":21,"tag":2338,"props":14499,"children":14500},{"style":2345},[14501],{"type":26,"value":14502},"(labels, preds):\n",{"type":21,"tag":2338,"props":14504,"children":14505},{"class":2340,"line":4943},[14506,14510,14515,14519,14524,14528,14532],{"type":21,"tag":2338,"props":14507,"children":14508},{"style":3219},[14509],{"type":26,"value":4607},{"type":21,"tag":2338,"props":14511,"children":14512},{"style":2345},[14513],{"type":26,"value":14514}," np.mean((labels ",{"type":21,"tag":2338,"props":14516,"children":14517},{"style":3219},[14518],{"type":26,"value":4869},{"type":21,"tag":2338,"props":14520,"children":14521},{"style":2345},[14522],{"type":26,"value":14523}," qml.math.stack(preds)) ",{"type":21,"tag":2338,"props":14525,"children":14526},{"style":3219},[14527],{"type":26,"value":4734},{"type":21,"tag":2338,"props":14529,"children":14530},{"style":2363},[14531],{"type":26,"value":6405},{"type":21,"tag":2338,"props":14533,"children":14534},{"style":2345},[14535],{"type":26,"value":3319},{"type":21,"tag":2338,"props":14537,"children":14538},{"class":2340,"line":4952},[14539],{"type":21,"tag":2338,"props":14540,"children":14541},{"emptyLinePlaceholder":3243},[14542],{"type":26,"value":3246},{"type":21,"tag":2338,"props":14544,"children":14545},{"class":2340,"line":4980},[14546,14550,14555],{"type":21,"tag":2338,"props":14547,"children":14548},{"style":3219},[14549],{"type":26,"value":4382},{"type":21,"tag":2338,"props":14551,"children":14552},{"style":4385},[14553],{"type":26,"value":14554}," cost",{"type":21,"tag":2338,"props":14556,"children":14557},{"style":2345},[14558],{"type":26,"value":14559},"(weights, bias, X, Y):\n",{"type":21,"tag":2338,"props":14561,"children":14562},{"class":2340,"line":5011},[14563,14568,14572,14577,14581,14585,14589],{"type":21,"tag":2338,"props":14564,"children":14565},{"style":2345},[14566],{"type":26,"value":14567},"    preds ",{"type":21,"tag":2338,"props":14569,"children":14570},{"style":3219},[14571],{"type":26,"value":3259},{"type":21,"tag":2338,"props":14573,"children":14574},{"style":2345},[14575],{"type":26,"value":14576}," [variational_classifier(weights, bias, x) ",{"type":21,"tag":2338,"props":14578,"children":14579},{"style":3219},[14580],{"type":26,"value":3512},{"type":21,"tag":2338,"props":14582,"children":14583},{"style":2345},[14584],{"type":26,"value":12751},{"type":21,"tag":2338,"props":14586,"children":14587},{"style":3219},[14588],{"type":26,"value":3522},{"type":21,"tag":2338,"props":14590,"children":14591},{"style":2345},[14592],{"type":26,"value":14593}," X]\n",{"type":21,"tag":2338,"props":14595,"children":14596},{"class":2340,"line":5033},[14597,14601],{"type":21,"tag":2338,"props":14598,"children":14599},{"style":3219},[14600],{"type":26,"value":4607},{"type":21,"tag":2338,"props":14602,"children":14603},{"style":2345},[14604],{"type":26,"value":14605}," square_loss(Y, preds)\n",{"type":21,"tag":2338,"props":14607,"children":14608},{"class":2340,"line":5079},[14609],{"type":21,"tag":2338,"props":14610,"children":14611},{"emptyLinePlaceholder":3243},[14612],{"type":26,"value":3246},{"type":21,"tag":2338,"props":14614,"children":14615},{"class":2340,"line":5092},[14616],{"type":21,"tag":2338,"props":14617,"children":14618},{"style":3469},[14619],{"type":26,"value":14620},"# Two-moons dataset, labels mapped to -1 \u002F +1 to match \u003CZ>\n",{"type":21,"tag":2338,"props":14622,"children":14623},{"class":2340,"line":5100},[14624,14629,14633,14638,14643,14647,14652,14656,14661,14665,14670,14674,14679,14683,14688],{"type":21,"tag":2338,"props":14625,"children":14626},{"style":2345},[14627],{"type":26,"value":14628},"X, y ",{"type":21,"tag":2338,"props":14630,"children":14631},{"style":3219},[14632],{"type":26,"value":3259},{"type":21,"tag":2338,"props":14634,"children":14635},{"style":2345},[14636],{"type":26,"value":14637}," make_moons(",{"type":21,"tag":2338,"props":14639,"children":14640},{"style":3284},[14641],{"type":26,"value":14642},"n_samples",{"type":21,"tag":2338,"props":14644,"children":14645},{"style":3219},[14646],{"type":26,"value":3259},{"type":21,"tag":2338,"props":14648,"children":14649},{"style":2363},[14650],{"type":26,"value":14651},"200",{"type":21,"tag":2338,"props":14653,"children":14654},{"style":2345},[14655],{"type":26,"value":1375},{"type":21,"tag":2338,"props":14657,"children":14658},{"style":3284},[14659],{"type":26,"value":14660},"noise",{"type":21,"tag":2338,"props":14662,"children":14663},{"style":3219},[14664],{"type":26,"value":3259},{"type":21,"tag":2338,"props":14666,"children":14667},{"style":2363},[14668],{"type":26,"value":14669},"0.15",{"type":21,"tag":2338,"props":14671,"children":14672},{"style":2345},[14673],{"type":26,"value":1375},{"type":21,"tag":2338,"props":14675,"children":14676},{"style":3284},[14677],{"type":26,"value":14678},"random_state",{"type":21,"tag":2338,"props":14680,"children":14681},{"style":3219},[14682],{"type":26,"value":3259},{"type":21,"tag":2338,"props":14684,"children":14685},{"style":2363},[14686],{"type":26,"value":14687},"42",{"type":21,"tag":2338,"props":14689,"children":14690},{"style":2345},[14691],{"type":26,"value":3319},{"type":21,"tag":2338,"props":14693,"children":14694},{"class":2340,"line":5118},[14695,14700,14704,14708,14712,14717,14721],{"type":21,"tag":2338,"props":14696,"children":14697},{"style":2345},[14698],{"type":26,"value":14699},"y ",{"type":21,"tag":2338,"props":14701,"children":14702},{"style":3219},[14703],{"type":26,"value":3259},{"type":21,"tag":2338,"props":14705,"children":14706},{"style":2363},[14707],{"type":26,"value":6405},{"type":21,"tag":2338,"props":14709,"children":14710},{"style":3219},[14711],{"type":26,"value":8366},{"type":21,"tag":2338,"props":14713,"children":14714},{"style":2345},[14715],{"type":26,"value":14716}," y ",{"type":21,"tag":2338,"props":14718,"children":14719},{"style":3219},[14720],{"type":26,"value":4869},{"type":21,"tag":2338,"props":14722,"children":14723},{"style":2363},[14724],{"type":26,"value":12814},{"type":21,"tag":2338,"props":14726,"children":14727},{"class":2340,"line":5136},[14728,14733,14737],{"type":21,"tag":2338,"props":14729,"children":14730},{"style":2345},[14731],{"type":26,"value":14732},"X_train, X_test, y_train, y_test ",{"type":21,"tag":2338,"props":14734,"children":14735},{"style":3219},[14736],{"type":26,"value":3259},{"type":21,"tag":2338,"props":14738,"children":14739},{"style":2345},[14740],{"type":26,"value":14741}," train_test_split(\n",{"type":21,"tag":2338,"props":14743,"children":14744},{"class":2340,"line":5144},[14745,14750,14755,14759,14764,14768,14772,14776],{"type":21,"tag":2338,"props":14746,"children":14747},{"style":2345},[14748],{"type":26,"value":14749},"    X, y, ",{"type":21,"tag":2338,"props":14751,"children":14752},{"style":3284},[14753],{"type":26,"value":14754},"test_size",{"type":21,"tag":2338,"props":14756,"children":14757},{"style":3219},[14758],{"type":26,"value":3259},{"type":21,"tag":2338,"props":14760,"children":14761},{"style":2363},[14762],{"type":26,"value":14763},"0.3",{"type":21,"tag":2338,"props":14765,"children":14766},{"style":2345},[14767],{"type":26,"value":1375},{"type":21,"tag":2338,"props":14769,"children":14770},{"style":3284},[14771],{"type":26,"value":14678},{"type":21,"tag":2338,"props":14773,"children":14774},{"style":3219},[14775],{"type":26,"value":3259},{"type":21,"tag":2338,"props":14777,"children":14778},{"style":2363},[14779],{"type":26,"value":14780},"42\n",{"type":21,"tag":2338,"props":14782,"children":14783},{"class":2340,"line":5178},[14784],{"type":21,"tag":2338,"props":14785,"children":14786},{"style":2345},[14787],{"type":26,"value":3319},{"type":21,"tag":2338,"props":14789,"children":14790},{"class":2340,"line":5196},[14791],{"type":21,"tag":2338,"props":14792,"children":14793},{"emptyLinePlaceholder":3243},[14794],{"type":26,"value":3246},{"type":21,"tag":2338,"props":14796,"children":14797},{"class":2340,"line":5221},[14798,14803,14807,14812,14817,14821,14826,14831,14835],{"type":21,"tag":2338,"props":14799,"children":14800},{"style":2345},[14801],{"type":26,"value":14802},"shape ",{"type":21,"tag":2338,"props":14804,"children":14805},{"style":3219},[14806],{"type":26,"value":3259},{"type":21,"tag":2338,"props":14808,"children":14809},{"style":2345},[14810],{"type":26,"value":14811}," qml.BasicEntanglerLayers.shape(",{"type":21,"tag":2338,"props":14813,"children":14814},{"style":3284},[14815],{"type":26,"value":14816},"n_layers",{"type":21,"tag":2338,"props":14818,"children":14819},{"style":3219},[14820],{"type":26,"value":3259},{"type":21,"tag":2338,"props":14822,"children":14823},{"style":2345},[14824],{"type":26,"value":14825},"n_layers, ",{"type":21,"tag":2338,"props":14827,"children":14828},{"style":3284},[14829],{"type":26,"value":14830},"n_wires",{"type":21,"tag":2338,"props":14832,"children":14833},{"style":3219},[14834],{"type":26,"value":3259},{"type":21,"tag":2338,"props":14836,"children":14837},{"style":2345},[14838],{"type":26,"value":14278},{"type":21,"tag":2338,"props":14840,"children":14841},{"class":2340,"line":5263},[14842,14847,14851,14856,14860],{"type":21,"tag":2338,"props":14843,"children":14844},{"style":2345},[14845],{"type":26,"value":14846},"rng ",{"type":21,"tag":2338,"props":14848,"children":14849},{"style":3219},[14850],{"type":26,"value":3259},{"type":21,"tag":2338,"props":14852,"children":14853},{"style":2345},[14854],{"type":26,"value":14855}," np.random.default_rng(",{"type":21,"tag":2338,"props":14857,"children":14858},{"style":2363},[14859],{"type":26,"value":14687},{"type":21,"tag":2338,"props":14861,"children":14862},{"style":2345},[14863],{"type":26,"value":3319},{"type":21,"tag":2338,"props":14865,"children":14866},{"class":2340,"line":5271},[14867,14872,14876,14881,14885,14889,14894,14899,14904,14908,14912],{"type":21,"tag":2338,"props":14868,"children":14869},{"style":2345},[14870],{"type":26,"value":14871},"weights ",{"type":21,"tag":2338,"props":14873,"children":14874},{"style":3219},[14875],{"type":26,"value":3259},{"type":21,"tag":2338,"props":14877,"children":14878},{"style":2345},[14879],{"type":26,"value":14880}," np.array(rng.normal(",{"type":21,"tag":2338,"props":14882,"children":14883},{"style":2363},[14884],{"type":26,"value":5189},{"type":21,"tag":2338,"props":14886,"children":14887},{"style":2345},[14888],{"type":26,"value":1375},{"type":21,"tag":2338,"props":14890,"children":14891},{"style":2363},[14892],{"type":26,"value":14893},"0.1",{"type":21,"tag":2338,"props":14895,"children":14896},{"style":2345},[14897],{"type":26,"value":14898},", shape), ",{"type":21,"tag":2338,"props":14900,"children":14901},{"style":3284},[14902],{"type":26,"value":14903},"requires_grad",{"type":21,"tag":2338,"props":14905,"children":14906},{"style":3219},[14907],{"type":26,"value":3259},{"type":21,"tag":2338,"props":14909,"children":14910},{"style":2363},[14911],{"type":26,"value":3296},{"type":21,"tag":2338,"props":14913,"children":14914},{"style":2345},[14915],{"type":26,"value":3319},{"type":21,"tag":2338,"props":14917,"children":14918},{"class":2340,"line":5306},[14919,14924,14928,14933,14938,14942,14946,14950,14954],{"type":21,"tag":2338,"props":14920,"children":14921},{"style":2345},[14922],{"type":26,"value":14923},"bias ",{"type":21,"tag":2338,"props":14925,"children":14926},{"style":3219},[14927],{"type":26,"value":3259},{"type":21,"tag":2338,"props":14929,"children":14930},{"style":2345},[14931],{"type":26,"value":14932}," np.array(",{"type":21,"tag":2338,"props":14934,"children":14935},{"style":2363},[14936],{"type":26,"value":14937},"0.0",{"type":21,"tag":2338,"props":14939,"children":14940},{"style":2345},[14941],{"type":26,"value":1375},{"type":21,"tag":2338,"props":14943,"children":14944},{"style":3284},[14945],{"type":26,"value":14903},{"type":21,"tag":2338,"props":14947,"children":14948},{"style":3219},[14949],{"type":26,"value":3259},{"type":21,"tag":2338,"props":14951,"children":14952},{"style":2363},[14953],{"type":26,"value":3296},{"type":21,"tag":2338,"props":14955,"children":14956},{"style":2345},[14957],{"type":26,"value":3319},{"type":21,"tag":2338,"props":14959,"children":14960},{"class":2340,"line":5422},[14961],{"type":21,"tag":2338,"props":14962,"children":14963},{"emptyLinePlaceholder":3243},[14964],{"type":26,"value":3246},{"type":21,"tag":2338,"props":14966,"children":14967},{"class":2340,"line":5430},[14968,14973,14977,14982,14987,14991,14995],{"type":21,"tag":2338,"props":14969,"children":14970},{"style":2345},[14971],{"type":26,"value":14972},"opt ",{"type":21,"tag":2338,"props":14974,"children":14975},{"style":3219},[14976],{"type":26,"value":3259},{"type":21,"tag":2338,"props":14978,"children":14979},{"style":2345},[14980],{"type":26,"value":14981}," qml.AdamOptimizer(",{"type":21,"tag":2338,"props":14983,"children":14984},{"style":3284},[14985],{"type":26,"value":14986},"stepsize",{"type":21,"tag":2338,"props":14988,"children":14989},{"style":3219},[14990],{"type":26,"value":3259},{"type":21,"tag":2338,"props":14992,"children":14993},{"style":2363},[14994],{"type":26,"value":14893},{"type":21,"tag":2338,"props":14996,"children":14997},{"style":2345},[14998],{"type":26,"value":3319},{"type":21,"tag":2338,"props":15000,"children":15001},{"class":2340,"line":5475},[15002,15007,15011],{"type":21,"tag":2338,"props":15003,"children":15004},{"style":2345},[15005],{"type":26,"value":15006},"batch_size ",{"type":21,"tag":2338,"props":15008,"children":15009},{"style":3219},[15010],{"type":26,"value":3259},{"type":21,"tag":2338,"props":15012,"children":15013},{"style":2363},[15014],{"type":26,"value":15015}," 20\n",{"type":21,"tag":2338,"props":15017,"children":15018},{"class":2340,"line":5493},[15019],{"type":21,"tag":2338,"props":15020,"children":15021},{"emptyLinePlaceholder":3243},[15022],{"type":26,"value":3246},{"type":21,"tag":2338,"props":15024,"children":15025},{"class":2340,"line":5501},[15026,15030,15035,15039,15043,15047,15052],{"type":21,"tag":2338,"props":15027,"children":15028},{"style":3219},[15029],{"type":26,"value":3512},{"type":21,"tag":2338,"props":15031,"children":15032},{"style":2345},[15033],{"type":26,"value":15034}," step ",{"type":21,"tag":2338,"props":15036,"children":15037},{"style":3219},[15038],{"type":26,"value":3522},{"type":21,"tag":2338,"props":15040,"children":15041},{"style":2363},[15042],{"type":26,"value":3527},{"type":21,"tag":2338,"props":15044,"children":15045},{"style":2345},[15046],{"type":26,"value":3339},{"type":21,"tag":2338,"props":15048,"children":15049},{"style":2363},[15050],{"type":26,"value":15051},"60",{"type":21,"tag":2338,"props":15053,"children":15054},{"style":2345},[15055],{"type":26,"value":4435},{"type":21,"tag":2338,"props":15057,"children":15058},{"class":2340,"line":5589},[15059,15064,15068,15073,15077,15081,15086],{"type":21,"tag":2338,"props":15060,"children":15061},{"style":2345},[15062],{"type":26,"value":15063},"    idx ",{"type":21,"tag":2338,"props":15065,"children":15066},{"style":3219},[15067],{"type":26,"value":3259},{"type":21,"tag":2338,"props":15069,"children":15070},{"style":2345},[15071],{"type":26,"value":15072}," np.random.randint(",{"type":21,"tag":2338,"props":15074,"children":15075},{"style":2363},[15076],{"type":26,"value":5189},{"type":21,"tag":2338,"props":15078,"children":15079},{"style":2345},[15080],{"type":26,"value":1375},{"type":21,"tag":2338,"props":15082,"children":15083},{"style":2363},[15084],{"type":26,"value":15085},"len",{"type":21,"tag":2338,"props":15087,"children":15088},{"style":2345},[15089],{"type":26,"value":15090},"(X_train), (batch_size,))\n",{"type":21,"tag":2338,"props":15092,"children":15094},{"class":2340,"line":15093},48,[15095,15100,15104],{"type":21,"tag":2338,"props":15096,"children":15097},{"style":2345},[15098],{"type":26,"value":15099},"    X_batch, y_batch ",{"type":21,"tag":2338,"props":15101,"children":15102},{"style":3219},[15103],{"type":26,"value":3259},{"type":21,"tag":2338,"props":15105,"children":15106},{"style":2345},[15107],{"type":26,"value":15108}," X_train[idx], y_train[idx]\n",{"type":21,"tag":2338,"props":15110,"children":15112},{"class":2340,"line":15111},49,[15113,15118,15122],{"type":21,"tag":2338,"props":15114,"children":15115},{"style":2345},[15116],{"type":26,"value":15117},"    weights, bias, _, _ ",{"type":21,"tag":2338,"props":15119,"children":15120},{"style":3219},[15121],{"type":26,"value":3259},{"type":21,"tag":2338,"props":15123,"children":15124},{"style":2345},[15125],{"type":26,"value":15126}," opt.step(cost, weights, bias, X_batch, y_batch)\n",{"type":21,"tag":2338,"props":15128,"children":15130},{"class":2340,"line":15129},50,[15131],{"type":21,"tag":2338,"props":15132,"children":15133},{"emptyLinePlaceholder":3243},[15134],{"type":26,"value":3246},{"type":21,"tag":2338,"props":15136,"children":15138},{"class":2340,"line":15137},51,[15139,15143,15147,15151,15156,15161,15165],{"type":21,"tag":2338,"props":15140,"children":15141},{"style":3219},[15142],{"type":26,"value":11967},{"type":21,"tag":2338,"props":15144,"children":15145},{"style":2345},[15146],{"type":26,"value":15034},{"type":21,"tag":2338,"props":15148,"children":15149},{"style":3219},[15150],{"type":26,"value":6400},{"type":21,"tag":2338,"props":15152,"children":15153},{"style":2363},[15154],{"type":26,"value":15155}," 15",{"type":21,"tag":2338,"props":15157,"children":15158},{"style":3219},[15159],{"type":26,"value":15160}," ==",{"type":21,"tag":2338,"props":15162,"children":15163},{"style":2363},[15164],{"type":26,"value":11981},{"type":21,"tag":2338,"props":15166,"children":15167},{"style":2345},[15168],{"type":26,"value":4940},{"type":21,"tag":2338,"props":15170,"children":15172},{"class":2340,"line":15171},52,[15173,15178,15182,15187,15191,15195,15199],{"type":21,"tag":2338,"props":15174,"children":15175},{"style":2345},[15176],{"type":26,"value":15177},"        preds ",{"type":21,"tag":2338,"props":15179,"children":15180},{"style":3219},[15181],{"type":26,"value":3259},{"type":21,"tag":2338,"props":15183,"children":15184},{"style":2345},[15185],{"type":26,"value":15186}," [np.sign(variational_classifier(weights, bias, x)) ",{"type":21,"tag":2338,"props":15188,"children":15189},{"style":3219},[15190],{"type":26,"value":3512},{"type":21,"tag":2338,"props":15192,"children":15193},{"style":2345},[15194],{"type":26,"value":12751},{"type":21,"tag":2338,"props":15196,"children":15197},{"style":3219},[15198],{"type":26,"value":3522},{"type":21,"tag":2338,"props":15200,"children":15201},{"style":2345},[15202],{"type":26,"value":15203}," X_train]\n",{"type":21,"tag":2338,"props":15205,"children":15207},{"class":2340,"line":15206},53,[15208,15213,15217,15222,15226],{"type":21,"tag":2338,"props":15209,"children":15210},{"style":2345},[15211],{"type":26,"value":15212},"        acc ",{"type":21,"tag":2338,"props":15214,"children":15215},{"style":3219},[15216],{"type":26,"value":3259},{"type":21,"tag":2338,"props":15218,"children":15219},{"style":2345},[15220],{"type":26,"value":15221}," np.mean(np.array(preds) ",{"type":21,"tag":2338,"props":15223,"children":15224},{"style":3219},[15225],{"type":26,"value":4930},{"type":21,"tag":2338,"props":15227,"children":15228},{"style":2345},[15229],{"type":26,"value":15230}," y_train)\n",{"type":21,"tag":2338,"props":15232,"children":15234},{"class":2340,"line":15233},54,[15235,15239,15243,15247,15252,15256,15261,15265,15269,15274,15278,15283,15287,15291,15296,15300,15305,15310,15314,15318],{"type":21,"tag":2338,"props":15236,"children":15237},{"style":2363},[15238],{"type":26,"value":12913},{"type":21,"tag":2338,"props":15240,"children":15241},{"style":2345},[15242],{"type":26,"value":3339},{"type":21,"tag":2338,"props":15244,"children":15245},{"style":3219},[15246],{"type":26,"value":3344},{"type":21,"tag":2338,"props":15248,"children":15249},{"style":2374},[15250],{"type":26,"value":15251},"\"Step ",{"type":21,"tag":2338,"props":15253,"children":15254},{"style":2363},[15255],{"type":26,"value":3354},{"type":21,"tag":2338,"props":15257,"children":15258},{"style":2345},[15259],{"type":26,"value":15260},"step",{"type":21,"tag":2338,"props":15262,"children":15263},{"style":3219},[15264],{"type":26,"value":12978},{"type":21,"tag":2338,"props":15266,"children":15267},{"style":2363},[15268],{"type":26,"value":3364},{"type":21,"tag":2338,"props":15270,"children":15271},{"style":2374},[15272],{"type":26,"value":15273}," | cost ",{"type":21,"tag":2338,"props":15275,"children":15276},{"style":2363},[15277],{"type":26,"value":3354},{"type":21,"tag":2338,"props":15279,"children":15280},{"style":2345},[15281],{"type":26,"value":15282},"cost(weights, bias, X_train, y_train)",{"type":21,"tag":2338,"props":15284,"children":15285},{"style":3219},[15286],{"type":26,"value":3666},{"type":21,"tag":2338,"props":15288,"children":15289},{"style":2363},[15290],{"type":26,"value":3364},{"type":21,"tag":2338,"props":15292,"children":15293},{"style":2374},[15294],{"type":26,"value":15295}," | acc ",{"type":21,"tag":2338,"props":15297,"children":15298},{"style":2363},[15299],{"type":26,"value":3354},{"type":21,"tag":2338,"props":15301,"children":15302},{"style":2345},[15303],{"type":26,"value":15304},"acc",{"type":21,"tag":2338,"props":15306,"children":15307},{"style":3219},[15308],{"type":26,"value":15309},":.3f",{"type":21,"tag":2338,"props":15311,"children":15312},{"style":2363},[15313],{"type":26,"value":3364},{"type":21,"tag":2338,"props":15315,"children":15316},{"style":2374},[15317],{"type":26,"value":3369},{"type":21,"tag":2338,"props":15319,"children":15320},{"style":2345},[15321],{"type":26,"value":3319},{"type":21,"tag":2338,"props":15323,"children":15325},{"class":2340,"line":15324},55,[15326],{"type":21,"tag":2338,"props":15327,"children":15328},{"emptyLinePlaceholder":3243},[15329],{"type":26,"value":3246},{"type":21,"tag":2338,"props":15331,"children":15333},{"class":2340,"line":15332},56,[15334,15339,15343,15347,15351,15355,15359],{"type":21,"tag":2338,"props":15335,"children":15336},{"style":2345},[15337],{"type":26,"value":15338},"test_preds ",{"type":21,"tag":2338,"props":15340,"children":15341},{"style":3219},[15342],{"type":26,"value":3259},{"type":21,"tag":2338,"props":15344,"children":15345},{"style":2345},[15346],{"type":26,"value":15186},{"type":21,"tag":2338,"props":15348,"children":15349},{"style":3219},[15350],{"type":26,"value":3512},{"type":21,"tag":2338,"props":15352,"children":15353},{"style":2345},[15354],{"type":26,"value":12751},{"type":21,"tag":2338,"props":15356,"children":15357},{"style":3219},[15358],{"type":26,"value":3522},{"type":21,"tag":2338,"props":15360,"children":15361},{"style":2345},[15362],{"type":26,"value":15363}," X_test]\n",{"type":21,"tag":2338,"props":15365,"children":15367},{"class":2340,"line":15366},57,[15368,15372,15376,15380,15384,15389,15394,15398,15403,15407,15412,15416,15420,15424],{"type":21,"tag":2338,"props":15369,"children":15370},{"style":2363},[15371],{"type":26,"value":3334},{"type":21,"tag":2338,"props":15373,"children":15374},{"style":2345},[15375],{"type":26,"value":3339},{"type":21,"tag":2338,"props":15377,"children":15378},{"style":3219},[15379],{"type":26,"value":3344},{"type":21,"tag":2338,"props":15381,"children":15382},{"style":2374},[15383],{"type":26,"value":3369},{"type":21,"tag":2338,"props":15385,"children":15386},{"style":2363},[15387],{"type":26,"value":15388},"\\n",{"type":21,"tag":2338,"props":15390,"children":15391},{"style":2374},[15392],{"type":26,"value":15393},"Test accuracy: ",{"type":21,"tag":2338,"props":15395,"children":15396},{"style":2363},[15397],{"type":26,"value":3354},{"type":21,"tag":2338,"props":15399,"children":15400},{"style":2345},[15401],{"type":26,"value":15402},"np.mean(np.array(test_preds) ",{"type":21,"tag":2338,"props":15404,"children":15405},{"style":3219},[15406],{"type":26,"value":4930},{"type":21,"tag":2338,"props":15408,"children":15409},{"style":2345},[15410],{"type":26,"value":15411}," y_test)",{"type":21,"tag":2338,"props":15413,"children":15414},{"style":3219},[15415],{"type":26,"value":15309},{"type":21,"tag":2338,"props":15417,"children":15418},{"style":2363},[15419],{"type":26,"value":3364},{"type":21,"tag":2338,"props":15421,"children":15422},{"style":2374},[15423],{"type":26,"value":3369},{"type":21,"tag":2338,"props":15425,"children":15426},{"style":2345},[15427],{"type":26,"value":3319},{"type":21,"tag":22,"props":15429,"children":15430},{},[15431,15433,15439],{"type":26,"value":15432},"Running it (PennyLane 0.45, ",{"type":21,"tag":2097,"props":15434,"children":15436},{"className":15435},[],[15437],{"type":26,"value":15438},"default.qubit",{"type":26,"value":15440},") gives:",{"type":21,"tag":2328,"props":15442,"children":15445},{"className":15443,"code":15444,"language":26,"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",[15446],{"type":21,"tag":2097,"props":15447,"children":15448},{"__ignoreMap":7},[15449,15457,15465,15473,15481,15488],{"type":21,"tag":2338,"props":15450,"children":15451},{"class":2340,"line":2341},[15452],{"type":21,"tag":2338,"props":15453,"children":15454},{},[15455],{"type":26,"value":15456},"Step  0 | cost 1.6158 | acc 0.336\n",{"type":21,"tag":2338,"props":15458,"children":15459},{"class":2340,"line":173},[15460],{"type":21,"tag":2338,"props":15461,"children":15462},{},[15463],{"type":26,"value":15464},"Step 15 | cost 0.6775 | acc 0.764\n",{"type":21,"tag":2338,"props":15466,"children":15467},{"class":2340,"line":2359},[15468],{"type":21,"tag":2338,"props":15469,"children":15470},{},[15471],{"type":26,"value":15472},"Step 30 | cost 0.6466 | acc 0.779\n",{"type":21,"tag":2338,"props":15474,"children":15475},{"class":2340,"line":2421},[15476],{"type":21,"tag":2338,"props":15477,"children":15478},{},[15479],{"type":26,"value":15480},"Step 45 | cost 0.6372 | acc 0.850\n",{"type":21,"tag":2338,"props":15482,"children":15483},{"class":2340,"line":2445},[15484],{"type":21,"tag":2338,"props":15485,"children":15486},{"emptyLinePlaceholder":3243},[15487],{"type":26,"value":3246},{"type":21,"tag":2338,"props":15489,"children":15490},{"class":2340,"line":877},[15491],{"type":21,"tag":2338,"props":15492,"children":15493},{},[15494],{"type":26,"value":15495},"Test accuracy: 0.817\n",{"type":21,"tag":22,"props":15497,"children":15498},{},[15499,15501,15506],{"type":26,"value":15500},"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":205,"props":15502,"children":15503},{},[15504],{"type":26,"value":15505},"0.983",{"type":26,"value":15507}," 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":15509,"children":15510},{},[15511,15513,15519,15521,15525],{"type":26,"value":15512},"Try scaling it. Push ",{"type":21,"tag":2097,"props":15514,"children":15516},{"className":15515},[],[15517],{"type":26,"value":15518},"n_qubits",{"type":26,"value":15520}," up, widen the ansatz, and watch the gradients shrink. You reproduce the barren-plateau effect on a ",{"type":21,"tag":41,"props":15522,"children":15523},{"href":472},[15524],{"type":26,"value":3305},{"type":26,"value":15526}," in an afternoon, which is a far better education than reading about it.",{"type":21,"tag":29,"props":15528,"children":15530},{"id":15529},"whats-genuinely-promising",[15531],{"type":26,"value":15532},"What's genuinely promising",{"type":21,"tag":22,"props":15534,"children":15535},{},[15536],{"type":26,"value":15537},"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":15539,"children":15540},{},[15541,15546,15548,15553,15555,15559],{"type":21,"tag":205,"props":15542,"children":15543},{},[15544],{"type":26,"value":15545},"Quantum data instead of classical data.",{"type":26,"value":15547}," The data-loading bottleneck exists because we're forcing classical numbers into quantum states. If your data is ",{"type":21,"tag":2071,"props":15549,"children":15550},{},[15551],{"type":26,"value":15552},"already quantum",{"type":26,"value":15554}," (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":41,"props":15556,"children":15557},{"href":11526},[15558],{"type":26,"value":11529},{"type":26,"value":15560}," covers the distinction.",{"type":21,"tag":22,"props":15562,"children":15563},{},[15564,15569],{"type":21,"tag":205,"props":15565,"children":15566},{},[15567],{"type":26,"value":15568},"Quantum kernels for structured data.",{"type":26,"value":15570}," 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":15572,"children":15573},{},[15574,15579],{"type":21,"tag":205,"props":15575,"children":15576},{},[15577],{"type":26,"value":15578},"Noise filtering.",{"type":26,"value":15580}," 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, specific niches are how technologies gain footholds.",{"type":21,"tag":29,"props":15582,"children":15584},{"id":15583},"where-this-leaves-you",[15585],{"type":26,"value":15586},"Where this leaves you",{"type":21,"tag":22,"props":15588,"children":15589},{},[15590,15592,15596,15597,15601],{"type":26,"value":15591},"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":41,"props":15593,"children":15594},{"href":362},[15595],{"type":26,"value":352},{"type":26,"value":149},{"type":21,"tag":41,"props":15598,"children":15599},{"href":2052},[15600],{"type":26,"value":2041},{"type":26,"value":15602}," need, and those have clearer near-term paths. Learning QML makes you better at variational quantum computing generally.",{"type":21,"tag":22,"props":15604,"children":15605},{},[15606,15608,15613],{"type":26,"value":15607},"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":41,"props":15609,"children":15610},{"href":739},[15611],{"type":26,"value":15612},"benchmarking hardware claims",{"type":26,"value":15614},": ask what the classical baseline was, ask whether data loading was counted, ask how many qubits the result scales to.",{"type":21,"tag":22,"props":15616,"children":15617},{},[15618,15623],{"type":21,"tag":41,"props":15619,"children":15620},{"href":8774},[15621],{"type":26,"value":15622},"Preskill's NISQ paper",{"type":26,"value":15624}," 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":15626,"children":15627},{},[15628,15630,15635,15637,15641],{"type":26,"value":15629},"The field is more interesting when you stop needing it to be revolutionary. Start with the ",{"type":21,"tag":41,"props":15631,"children":15632},{"href":14090},[15633],{"type":26,"value":15634},"PennyLane SDK guide",{"type":26,"value":15636},", keep the ",{"type":21,"tag":41,"props":15638,"children":15639},{"href":3985},[15640],{"type":26,"value":9348},{"type":26,"value":15642}," open, and run the experiments yourself. The evidence is more useful than the pitch.",{"type":21,"tag":2712,"props":15644,"children":15645},{},[15646],{"type":26,"value":2716},{"title":7,"searchDepth":173,"depth":173,"links":15648},[15649,15650,15651,15652,15653,15654,15655],{"id":13833,"depth":173,"text":13836},{"id":13911,"depth":173,"text":13914},{"id":13956,"depth":173,"text":13959},{"id":14002,"depth":173,"text":14005},{"id":14079,"depth":173,"text":14082},{"id":15529,"depth":173,"text":15532},{"id":15583,"depth":173,"text":15586},"content:blog:quantum-machine-learning-reality-check.md","blog\u002Fquantum-machine-learning-reality-check.md","blog\u002Fquantum-machine-learning-reality-check",{"_path":922,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":15660,"description":15661,"date":3081,"author":11,"tags":15662,"readingTime":16,"body":15663,"_type":180,"_id":16037,"_source":182,"_file":16038,"_stem":16039,"_extension":185},"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.",[14,8910,13],{"type":18,"children":15664,"toc":16028},[15665,15670,15675,15695,15700,15706,15711,15721,15752,15762,15767,15773,15778,15789,15794,15824,15842,15848,15860,15865,15877,15882,15888,15893,15898,15903,15914,15920,15925,15934,15951,15962,15968,15973,15978,15983,15988,15994,15999,16016],{"type":21,"tag":22,"props":15666,"children":15667},{},[15668],{"type":26,"value":15669},"There is a ceiling problem in quantum hardware that doesn't get discussed as often as qubit counts do.",{"type":21,"tag":22,"props":15671,"children":15672},{},[15673],{"type":26,"value":15674},"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":15676,"children":15677},{},[15678,15680,15686,15688,15693],{"type":26,"value":15679},"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":41,"props":15681,"children":15683},{"href":15682},"\u002Fglossary\u002Fdistributed-quantum-computing",[15684],{"type":26,"value":15685},"distributed quantum computing",{"type":26,"value":15687}," means, and it is why quantum networking has moved from a communications curiosity to a scaling strategy. When we ",{"type":21,"tag":41,"props":15689,"children":15690},{"href":739},[15691],{"type":26,"value":15692},"read EO 14413 as a technical document",{"type":26,"value":15694},", 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":15696,"children":15697},{},[15698],{"type":26,"value":15699},"The catch is that connecting quantum computers is nothing like connecting classical ones.",{"type":21,"tag":29,"props":15701,"children":15703},{"id":15702},"three-different-things-people-call-quantum-networking",[15704],{"type":26,"value":15705},"Three different things people call \"quantum networking\"",{"type":21,"tag":22,"props":15707,"children":15708},{},[15709],{"type":26,"value":15710},"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":15712,"children":15713},{},[15714,15719],{"type":21,"tag":205,"props":15715,"children":15716},{},[15717],{"type":26,"value":15718},"(a) Quantum networking for distributed computation.",{"type":26,"value":15720}," 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":15722,"children":15723},{},[15724,15729,15731,15736,15738,15744,15746,15750],{"type":21,"tag":205,"props":15725,"children":15726},{},[15727],{"type":26,"value":15728},"(b) Quantum key distribution and the \"quantum internet.\"",{"type":26,"value":15730}," 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":2071,"props":15732,"children":15733},{},[15734],{"type":26,"value":15735},"communications security",{"type":26,"value":15737}," technology, descending from ",{"type":21,"tag":41,"props":15739,"children":15741},{"href":15740},"\u002Fresearch\u002Fbennett-brassard-bb84-1984",[15742],{"type":26,"value":15743},"Bennett and Brassard's BB84 protocol",{"type":26,"value":15745},". 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":41,"props":15747,"children":15748},{"href":9400},[15749],{"type":26,"value":9383},{"type":26,"value":15751},", which is software you deploy today, not hardware that needs new fibre.",{"type":21,"tag":22,"props":15753,"children":15754},{},[15755,15760],{"type":21,"tag":205,"props":15756,"children":15757},{},[15758],{"type":26,"value":15759},"(c) Classical networking of quantum computers.",{"type":26,"value":15761}," 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":15763,"children":15764},{},[15765],{"type":26,"value":15766},"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":29,"props":15768,"children":15770},{"id":15769},"why-you-cannot-simply-amplify-a-qubit",[15771],{"type":26,"value":15772},"Why you cannot simply amplify a qubit",{"type":21,"tag":22,"props":15774,"children":15775},{},[15776],{"type":26,"value":15777},"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":15779,"children":15780},{},[15781,15783,15787],{"type":26,"value":15782},"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":41,"props":15784,"children":15785},{"href":8874},[15786],{"type":26,"value":8877},{"type":26,"value":15788}," 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":15790,"children":15791},{},[15792],{"type":26,"value":15793},"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":15795,"children":15796},{},[15797,15799,15807,15809,15814,15816,15822],{"type":26,"value":15798},"Quantum repeaters solve this by a genuinely different mechanism. Rather than relaying the qubit, they relay ",{"type":21,"tag":2071,"props":15800,"children":15801},{},[15802],{"type":21,"tag":41,"props":15803,"children":15804},{"href":3868},[15805],{"type":26,"value":15806},"entanglement",{"type":26,"value":15808},". 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":205,"props":15810,"children":15811},{},[15812],{"type":26,"value":15813},"entanglement swapping",{"type":26,"value":15815},": at each intermediate node, jointly measure the two local halves of two adjacent pairs in the ",{"type":21,"tag":41,"props":15817,"children":15819},{"href":15818},"\u002Fglossary\u002Fbell-state",[15820],{"type":26,"value":15821},"Bell basis",{"type":26,"value":15823},". 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":15825,"children":15826},{},[15827,15829,15833,15835,15840],{"type":26,"value":15828},"The ingredients this demands are exactly the hard 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":41,"props":15830,"children":15831},{"href":9034},[15832],{"type":26,"value":9037},{"type":26,"value":15834}," from degrading across hops. ",{"type":21,"tag":41,"props":15836,"children":15837},{"href":8950},[15838],{"type":26,"value":15839},"Decoherence",{"type":26,"value":15841}," 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":29,"props":15843,"children":15845},{"id":15844},"teleportation-is-the-transport-primitive",[15846],{"type":26,"value":15847},"Teleportation is the transport primitive",{"type":21,"tag":22,"props":15849,"children":15850},{},[15851,15853,15858],{"type":26,"value":15852},"Once two nodes share an entangled pair, moving an actual qubit between them is a solved protocol: ",{"type":21,"tag":41,"props":15854,"children":15855},{"href":3860},[15856],{"type":26,"value":15857},"quantum teleportation",{"type":26,"value":15859},", from Bennett and colleagues in 1993.",{"type":21,"tag":22,"props":15861,"children":15862},{},[15863],{"type":26,"value":15864},"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":15866,"children":15867},{},[15868,15870,15875],{"type":26,"value":15869},"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":205,"props":15871,"children":15872},{},[15873],{"type":26,"value":15874},"the classical channel is mandatory",{"type":26,"value":15876},". 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":15878,"children":15879},{},[15880],{"type":26,"value":15881},"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":29,"props":15883,"children":15885},{"id":15884},"the-interconnect-is-the-bottleneck",[15886],{"type":26,"value":15887},"The interconnect is the bottleneck",{"type":21,"tag":22,"props":15889,"children":15890},{},[15891],{"type":26,"value":15892},"Now the engineering reality of stitching QPUs together.",{"type":21,"tag":22,"props":15894,"children":15895},{},[15896],{"type":26,"value":15897},"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":15899,"children":15900},{},[15901],{"type":26,"value":15902},"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":15904,"children":15905},{},[15906,15908,15912],{"type":26,"value":15907},"There is a genuinely appealing upside, though, and it's the reason serious people pursue this: ",{"type":21,"tag":41,"props":15909,"children":15910},{"href":56},[15911],{"type":26,"value":1099},{"type":26,"value":15913}," 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":29,"props":15915,"children":15917},{"id":15916},"modality-matters-here-more-than-usual",[15918],{"type":26,"value":15919},"Modality matters here more than usual",{"type":21,"tag":22,"props":15921,"children":15922},{},[15923],{"type":26,"value":15924},"The photonic interface is where hardware platforms diverge sharply.",{"type":21,"tag":22,"props":15926,"children":15927},{},[15928,15932],{"type":21,"tag":205,"props":15929,"children":15930},{},[15931],{"type":26,"value":9178},{"type":26,"value":15933}," 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 vendor 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":15935,"children":15936},{},[15937,15942,15944,15949],{"type":21,"tag":205,"props":15938,"children":15939},{},[15940],{"type":26,"value":15941},"Superconducting qubits",{"type":26,"value":15943}," 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":205,"props":15945,"children":15946},{},[15947],{"type":26,"value":15948},"microwave-to-optical transduction",{"type":26,"value":15950},": 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":15952,"children":15953},{},[15954,15956,15960],{"type":26,"value":15955},"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":41,"props":15957,"children":15958},{"href":281},[15959],{"type":26,"value":9195},{"type":26,"value":15961}," covers the broader trade-offs.",{"type":21,"tag":29,"props":15963,"children":15965},{"id":15964},"where-this-stands",[15966],{"type":26,"value":15967},"Where this stands",{"type":21,"tag":22,"props":15969,"children":15970},{},[15971],{"type":26,"value":15972},"Plainly: early.",{"type":21,"tag":22,"props":15974,"children":15975},{},[15976],{"type":26,"value":15977},"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":15979,"children":15980},{},[15981],{"type":26,"value":15982},"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 fast 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 company describing why its own architecture wins.",{"type":21,"tag":22,"props":15984,"children":15985},{},[15986],{"type":26,"value":15987},"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":29,"props":15989,"children":15991},{"id":15990},"the-takeaway",[15992],{"type":26,"value":15993},"The takeaway",{"type":21,"tag":22,"props":15995,"children":15996},{},[15997],{"type":26,"value":15998},"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":16000,"children":16001},{},[16002,16004,16009,16010,16014],{"type":26,"value":16003},"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":2071,"props":16005,"children":16006},{},[16007],{"type":26,"value":16008},"rate",{"type":26,"value":149},{"type":21,"tag":2071,"props":16011,"children":16012},{},[16013],{"type":26,"value":9037},{"type":26,"value":16015}," 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":16017,"children":16018},{},[16019,16021,16026],{"type":26,"value":16020},"Answers to those tend to be absent from the announcements, which is itself informative. The ",{"type":21,"tag":41,"props":16022,"children":16024},{"href":16023},"\u002Fglossary\u002Fquantum-network",[16025],{"type":26,"value":9348},{"type":26,"value":16027}," covers the vocabulary if you want to read the primary sources yourself.",{"title":7,"searchDepth":173,"depth":173,"links":16029},[16030,16031,16032,16033,16034,16035,16036],{"id":15702,"depth":173,"text":15705},{"id":15769,"depth":173,"text":15772},{"id":15844,"depth":173,"text":15847},{"id":15884,"depth":173,"text":15887},{"id":15916,"depth":173,"text":15919},{"id":15964,"depth":173,"text":15967},{"id":15990,"depth":173,"text":15993},"content:blog:quantum-networking-distributed-computing.md","blog\u002Fquantum-networking-distributed-computing.md","blog\u002Fquantum-networking-distributed-computing",{"_path":16041,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":16042,"description":16043,"date":3081,"author":11,"tags":16044,"readingTime":3475,"body":16045,"_type":180,"_id":18139,"_source":182,"_file":18140,"_stem":18141,"_extension":185},"\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.",[7169,15,2883],{"type":18,"children":16046,"toc":18127},[16047,16065,16083,16088,16096,16102,16107,16115,16120,16131,16170,16175,16187,16193,16198,16209,16217,16241,16249,16259,16264,16272,16292,16298,16309,16314,16324,16329,16357,16361,16397,17347,17351,17359,17369,17377,17382,17389,17421,17434,17442,17462,17467,17473,17478,17722,17726,17734,17746,17758,17766,17778,17790,17796,17819,17836,17864,17962,17986,17992,18003,18014,18056,18061,18066,18123],{"type":21,"tag":22,"props":16048,"children":16049},{},[16050,16052,16057,16059,16063],{"type":26,"value":16051},"Our ",{"type":21,"tag":41,"props":16053,"children":16054},{"href":11546},[16055],{"type":26,"value":16056},"QFT tutorial",{"type":26,"value":16058}," ended on a deliberately unsatisfying note: the ",{"type":21,"tag":41,"props":16060,"children":16061},{"href":11558},[16062],{"type":26,"value":11561},{"type":26,"value":16064}," 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":16066,"children":16067},{},[16068,16070,16074,16076,16081],{"type":26,"value":16069},"This post is the sequel that resolves that. Quantum phase estimation (QPE) is the machine that turns the ",{"type":21,"tag":2071,"props":16071,"children":16072},{},[16073],{"type":26,"value":7000},{"type":26,"value":16075}," QFT into a readout primitive. It's the reason the QFT matters, and it is the algorithm sitting underneath ",{"type":21,"tag":41,"props":16077,"children":16078},{"href":9649},[16079],{"type":26,"value":16080},"Shor's",{"type":26,"value":16082},": Shor's is QPE applied to modular exponentiation, plus number theory.",{"type":21,"tag":22,"props":16084,"children":16085},{},[16086],{"type":26,"value":16087},"Read the QFT post first if you haven't. This one assumes the construction and won't rebuild it.",{"type":21,"tag":22,"props":16089,"children":16090},{},[16091],{"type":21,"tag":205,"props":16092,"children":16093},{},[16094],{"type":26,"value":16095},"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":29,"props":16097,"children":16099},{"id":16098},"the-problem-qpe-solves",[16100],{"type":26,"value":16101},"The problem QPE solves",{"type":21,"tag":22,"props":16103,"children":16104},{},[16105],{"type":26,"value":16106},"Given a unitary U and an eigenstate |ψ⟩ satisfying",{"type":21,"tag":2328,"props":16108,"children":16110},{"code":16109},"U|ψ⟩ = e^{2πiθ} |ψ⟩\n",[16111],{"type":21,"tag":2097,"props":16112,"children":16113},{"__ignoreMap":7},[16114],{"type":26,"value":16109},{"type":21,"tag":22,"props":16116,"children":16117},{},[16118],{"type":26,"value":16119},"estimate θ ∈ [0, 1).",{"type":21,"tag":22,"props":16121,"children":16122},{},[16123,16125,16130],{"type":26,"value":16124},"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":2071,"props":16126,"children":16127},{},[16128],{"type":26,"value":16129},"enormous numbers of questions are secretly eigenvalue questions",{"type":26,"value":12438},{"type":21,"tag":3137,"props":16132,"children":16133},{},[16134,16144,16154],{"type":21,"tag":3141,"props":16135,"children":16136},{},[16137,16142],{"type":21,"tag":205,"props":16138,"children":16139},{},[16140],{"type":26,"value":16141},"What is a molecule's ground-state energy?",{"type":26,"value":16143}," Build U = e^{-iHt} for the molecular Hamiltonian H. Its eigenphases are the energy levels. Estimating θ estimates the energy.",{"type":21,"tag":3141,"props":16145,"children":16146},{},[16147,16152],{"type":21,"tag":205,"props":16148,"children":16149},{},[16150],{"type":26,"value":16151},"What is the order of a mod N?",{"type":26,"value":16153}," 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":3141,"props":16155,"children":16156},{},[16157,16162,16164,16169],{"type":21,"tag":205,"props":16158,"children":16159},{},[16160],{"type":26,"value":16161},"How many solutions does an oracle mark?",{"type":26,"value":16163}," 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":41,"props":16165,"children":16166},{"href":7165},[16167],{"type":26,"value":16168},"Grover tutorial",{"type":26,"value":825},{"type":21,"tag":22,"props":16171,"children":16172},{},[16173],{"type":26,"value":16174},"One primitive, three flagship algorithms. That's why \"estimate an eigenphase\" is worth a dedicated circuit.",{"type":21,"tag":22,"props":16176,"children":16177},{},[16178,16180,16185],{"type":26,"value":16179},"Note the precondition, which people gloss over: you need to ",{"type":21,"tag":2071,"props":16181,"children":16182},{},[16183],{"type":26,"value":16184},"have",{"type":26,"value":16186}," 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":29,"props":16188,"children":16190},{"id":16189},"phase-kickback-the-key-insight",[16191],{"type":26,"value":16192},"Phase kickback: the key insight",{"type":21,"tag":22,"props":16194,"children":16195},{},[16196],{"type":26,"value":16197},"Here's the thing that makes QPE work, and it's worth slowing down for.",{"type":21,"tag":22,"props":16199,"children":16200},{},[16201,16203,16207],{"type":26,"value":16202},"A controlled-U applied to a control ",{"type":21,"tag":41,"props":16204,"children":16205},{"href":1260},[16206],{"type":26,"value":2800},{"type":26,"value":16208}," in state |1⟩ and a target in the eigenstate |ψ⟩ gives:",{"type":21,"tag":2328,"props":16210,"children":16212},{"code":16211},"CU |1⟩|ψ⟩ = |1⟩ ⊗ U|ψ⟩ = |1⟩ ⊗ e^{2πiθ}|ψ⟩ = e^{2πiθ} |1⟩|ψ⟩\n",[16213],{"type":21,"tag":2097,"props":16214,"children":16215},{"__ignoreMap":7},[16216],{"type":26,"value":16211},{"type":21,"tag":22,"props":16218,"children":16219},{},[16220,16222,16227,16229,16233,16235,16239],{"type":26,"value":16221},"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":2071,"props":16223,"children":16224},{},[16225],{"type":26,"value":16226},"relative",{"type":26,"value":16228}," phase on the control qubit. Put the control in ",{"type":21,"tag":41,"props":16230,"children":16231},{"href":8874},[16232],{"type":26,"value":8877},{"type":26,"value":16234}," with a ",{"type":21,"tag":41,"props":16236,"children":16237},{"href":7276},[16238],{"type":26,"value":11727},{"type":26,"value":16240}," and you get:",{"type":21,"tag":2328,"props":16242,"children":16244},{"code":16243},"CU (|0⟩+|1⟩)\u002F√2 ⊗ |ψ⟩ = (|0⟩ + e^{2πiθ}|1⟩)\u002F√2 ⊗ |ψ⟩\n",[16245],{"type":21,"tag":2097,"props":16246,"children":16247},{"__ignoreMap":7},[16248],{"type":26,"value":16243},{"type":21,"tag":22,"props":16250,"children":16251},{},[16252,16257],{"type":21,"tag":205,"props":16253,"children":16254},{},[16255],{"type":26,"value":16256},"The phase kicked back from the target onto the control.",{"type":26,"value":16258}," 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":16260,"children":16261},{},[16262],{"type":26,"value":16263},"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":2328,"props":16265,"children":16267},{"code":16266},"(1\u002F√N) Σ_{x=0}^{N-1} e^{2πi·x·θ} |x⟩\n",[16268],{"type":21,"tag":2097,"props":16269,"children":16270},{"__ignoreMap":7},[16271],{"type":26,"value":16266},{"type":21,"tag":22,"props":16273,"children":16274},{},[16275,16277,16283,16285,16290],{"type":26,"value":16276},"Stare at that and compare it to the QFT formula from the previous post: ",{"type":21,"tag":2097,"props":16278,"children":16280},{"className":16279},[],[16281],{"type":26,"value":16282},"QFT|j⟩ = (1\u002F√N) Σ_x e^{2πi·jx\u002FN}|x⟩",{"type":26,"value":16284},". They are the ",{"type":21,"tag":2071,"props":16286,"children":16287},{},[16288],{"type":26,"value":16289},"same state",{"type":26,"value":16291},", with j\u002FN = θ. The counting register is holding the QFT of the number j = Nθ.",{"type":21,"tag":29,"props":16293,"children":16295},{"id":16294},"why-the-inverse-qft",[16296],{"type":26,"value":16297},"Why the inverse QFT",{"type":21,"tag":22,"props":16299,"children":16300},{},[16301,16303,16307],{"type":26,"value":16302},"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":41,"props":16304,"children":16305},{"href":7441},[16306],{"type":26,"value":11121},{"type":26,"value":16308},". Measure now and you get uniform noise.",{"type":21,"tag":22,"props":16310,"children":16311},{},[16312],{"type":26,"value":16313},"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":16315,"children":16316},{},[16317,16319,16323],{"type":26,"value":16318},"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":41,"props":16320,"children":16321},{"href":8068},[16322],{"type":26,"value":8071},{"type":26,"value":825},{"type":21,"tag":22,"props":16325,"children":16326},{},[16327],{"type":26,"value":16328},"The full recipe:",{"type":21,"tag":7028,"props":16330,"children":16331},{},[16332,16337,16342,16347,16352],{"type":21,"tag":3141,"props":16333,"children":16334},{},[16335],{"type":26,"value":16336},"n counting qubits + enough qubits to hold |ψ⟩.",{"type":21,"tag":3141,"props":16338,"children":16339},{},[16340],{"type":26,"value":16341},"Hadamard the counting register.",{"type":21,"tag":3141,"props":16343,"children":16344},{},[16345],{"type":26,"value":16346},"For k = 0…n−1: apply controlled-U^(2^k) from counting qubit k onto the eigenstate register.",{"type":21,"tag":3141,"props":16348,"children":16349},{},[16350],{"type":26,"value":16351},"Apply the inverse QFT to the counting register.",{"type":21,"tag":3141,"props":16353,"children":16354},{},[16355],{"type":26,"value":16356},"Measure the counting register. The result, read as a binary fraction, is θ.",{"type":21,"tag":29,"props":16358,"children":16359},{"id":11786},[16360],{"type":26,"value":11789},{"type":21,"tag":22,"props":16362,"children":16363},{},[16364,16366,16372,16374,16380,16382,16387,16389,16395],{"type":26,"value":16365},"Simplest possible U with a known answer: the phase gate ",{"type":21,"tag":2097,"props":16367,"children":16369},{"className":16368},[],[16370],{"type":26,"value":16371},"P(λ)",{"type":26,"value":16373},", 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":2097,"props":16375,"children":16377},{"className":16376},[],[16378],{"type":26,"value":16379},"qft",{"type":26,"value":16381}," function from the ",{"type":21,"tag":41,"props":16383,"children":16384},{"href":11546},[16385],{"type":26,"value":16386},"previous post",{"type":26,"value":16388}," and simply call ",{"type":21,"tag":2097,"props":16390,"children":16392},{"className":16391},[],[16393],{"type":26,"value":16394},".inverse()",{"type":26,"value":16396}," on it.",{"type":21,"tag":2328,"props":16398,"children":16400},{"code":16399,"language":3209,"meta":7,"className":3207,"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",[16401],{"type":21,"tag":2097,"props":16402,"children":16403},{"__ignoreMap":7},[16404,16423,16442,16461,16468,16475,16490,16513,16524,16539,16546,16569,16600,16608,16619,16626,16633,16648,16679,16686,16727,16754,16765,16772,16779,16796,16804,16833,16854,16867,16874,16903,16950,16957,16998,17022,17033,17040,17047,17062,17101,17132,17139,17193,17239],{"type":21,"tag":2338,"props":16405,"children":16406},{"class":2340,"line":2341},[16407,16411,16415,16419],{"type":21,"tag":2338,"props":16408,"children":16409},{"style":3219},[16410],{"type":26,"value":3232},{"type":21,"tag":2338,"props":16412,"children":16413},{"style":2345},[16414],{"type":26,"value":4294},{"type":21,"tag":2338,"props":16416,"children":16417},{"style":3219},[16418],{"type":26,"value":4299},{"type":21,"tag":2338,"props":16420,"children":16421},{"style":2345},[16422],{"type":26,"value":4304},{"type":21,"tag":2338,"props":16424,"children":16425},{"class":2340,"line":173},[16426,16430,16434,16438],{"type":21,"tag":2338,"props":16427,"children":16428},{"style":3219},[16429],{"type":26,"value":3222},{"type":21,"tag":2338,"props":16431,"children":16432},{"style":2345},[16433],{"type":26,"value":4316},{"type":21,"tag":2338,"props":16435,"children":16436},{"style":3219},[16437],{"type":26,"value":3232},{"type":21,"tag":2338,"props":16439,"children":16440},{"style":2345},[16441],{"type":26,"value":4325},{"type":21,"tag":2338,"props":16443,"children":16444},{"class":2340,"line":2359},[16445,16449,16453,16457],{"type":21,"tag":2338,"props":16446,"children":16447},{"style":3219},[16448],{"type":26,"value":3222},{"type":21,"tag":2338,"props":16450,"children":16451},{"style":2345},[16452],{"type":26,"value":4337},{"type":21,"tag":2338,"props":16454,"children":16455},{"style":3219},[16456],{"type":26,"value":3232},{"type":21,"tag":2338,"props":16458,"children":16459},{"style":2345},[16460],{"type":26,"value":4346},{"type":21,"tag":2338,"props":16462,"children":16463},{"class":2340,"line":2421},[16464],{"type":21,"tag":2338,"props":16465,"children":16466},{"emptyLinePlaceholder":3243},[16467],{"type":26,"value":3246},{"type":21,"tag":2338,"props":16469,"children":16470},{"class":2340,"line":2445},[16471],{"type":21,"tag":2338,"props":16472,"children":16473},{"emptyLinePlaceholder":3243},[16474],{"type":26,"value":3246},{"type":21,"tag":2338,"props":16476,"children":16477},{"class":2340,"line":877},[16478,16482,16486],{"type":21,"tag":2338,"props":16479,"children":16480},{"style":3219},[16481],{"type":26,"value":4382},{"type":21,"tag":2338,"props":16483,"children":16484},{"style":4385},[16485],{"type":26,"value":11946},{"type":21,"tag":2338,"props":16487,"children":16488},{"style":2345},[16489],{"type":26,"value":11951},{"type":21,"tag":2338,"props":16491,"children":16492},{"class":2340,"line":196},[16493,16497,16501,16505,16509],{"type":21,"tag":2338,"props":16494,"children":16495},{"style":3219},[16496],{"type":26,"value":11967},{"type":21,"tag":2338,"props":16498,"children":16499},{"style":2345},[16500],{"type":26,"value":11972},{"type":21,"tag":2338,"props":16502,"children":16503},{"style":3219},[16504],{"type":26,"value":4930},{"type":21,"tag":2338,"props":16506,"children":16507},{"style":2363},[16508],{"type":26,"value":11981},{"type":21,"tag":2338,"props":16510,"children":16511},{"style":2345},[16512],{"type":26,"value":4940},{"type":21,"tag":2338,"props":16514,"children":16515},{"class":2340,"line":951},[16516,16520],{"type":21,"tag":2338,"props":16517,"children":16518},{"style":3219},[16519],{"type":26,"value":11993},{"type":21,"tag":2338,"props":16521,"children":16522},{"style":2345},[16523],{"type":26,"value":11998},{"type":21,"tag":2338,"props":16525,"children":16526},{"class":2340,"line":16},[16527,16531,16535],{"type":21,"tag":2338,"props":16528,"children":16529},{"style":2345},[16530],{"type":26,"value":12006},{"type":21,"tag":2338,"props":16532,"children":16533},{"style":3219},[16534],{"type":26,"value":12011},{"type":21,"tag":2338,"props":16536,"children":16537},{"style":2363},[16538],{"type":26,"value":12814},{"type":21,"tag":2338,"props":16540,"children":16541},{"class":2340,"line":3465},[16542],{"type":21,"tag":2338,"props":16543,"children":16544},{"style":2345},[16545],{"type":26,"value":12028},{"type":21,"tag":2338,"props":16547,"children":16548},{"class":2340,"line":3475},[16549,16553,16557,16561,16565],{"type":21,"tag":2338,"props":16550,"children":16551},{"style":3219},[16552],{"type":26,"value":4761},{"type":21,"tag":2338,"props":16554,"children":16555},{"style":2345},[16556],{"type":26,"value":12040},{"type":21,"tag":2338,"props":16558,"children":16559},{"style":3219},[16560],{"type":26,"value":3522},{"type":21,"tag":2338,"props":16562,"children":16563},{"style":2363},[16564],{"type":26,"value":3527},{"type":21,"tag":2338,"props":16566,"children":16567},{"style":2345},[16568],{"type":26,"value":7862},{"type":21,"tag":2338,"props":16570,"children":16571},{"class":2340,"line":500},[16572,16576,16580,16584,16588,16592,16596],{"type":21,"tag":2338,"props":16573,"children":16574},{"style":2345},[16575],{"type":26,"value":12068},{"type":21,"tag":2338,"props":16577,"children":16578},{"style":3219},[16579],{"type":26,"value":2192},{"type":21,"tag":2338,"props":16581,"children":16582},{"style":2363},[16583],{"type":26,"value":6405},{"type":21,"tag":2338,"props":16585,"children":16586},{"style":3219},[16587],{"type":26,"value":8330},{"type":21,"tag":2338,"props":16589,"children":16590},{"style":2345},[16591],{"type":26,"value":12085},{"type":21,"tag":2338,"props":16593,"children":16594},{"style":3219},[16595],{"type":26,"value":4869},{"type":21,"tag":2338,"props":16597,"children":16598},{"style":2345},[16599],{"type":26,"value":12094},{"type":21,"tag":2338,"props":16601,"children":16602},{"class":2340,"line":3535},[16603],{"type":21,"tag":2338,"props":16604,"children":16605},{"style":2345},[16606],{"type":26,"value":16607},"    qft_rotations(circuit, n)\n",{"type":21,"tag":2338,"props":16609,"children":16610},{"class":2340,"line":3583},[16611,16615],{"type":21,"tag":2338,"props":16612,"children":16613},{"style":3219},[16614],{"type":26,"value":4607},{"type":21,"tag":2338,"props":16616,"children":16617},{"style":2345},[16618],{"type":26,"value":11998},{"type":21,"tag":2338,"props":16620,"children":16621},{"class":2340,"line":3625},[16622],{"type":21,"tag":2338,"props":16623,"children":16624},{"emptyLinePlaceholder":3243},[16625],{"type":26,"value":3246},{"type":21,"tag":2338,"props":16627,"children":16628},{"class":2340,"line":4652},[16629],{"type":21,"tag":2338,"props":16630,"children":16631},{"emptyLinePlaceholder":3243},[16632],{"type":26,"value":3246},{"type":21,"tag":2338,"props":16634,"children":16635},{"class":2340,"line":4671},[16636,16640,16644],{"type":21,"tag":2338,"props":16637,"children":16638},{"style":3219},[16639],{"type":26,"value":4382},{"type":21,"tag":2338,"props":16641,"children":16642},{"style":4385},[16643],{"type":26,"value":12256},{"type":21,"tag":2338,"props":16645,"children":16646},{"style":2345},[16647],{"type":26,"value":7862},{"type":21,"tag":2338,"props":16649,"children":16650},{"class":2340,"line":4679},[16651,16655,16659,16663,16667,16671,16675],{"type":21,"tag":2338,"props":16652,"children":16653},{"style":2345},[16654],{"type":26,"value":7518},{"type":21,"tag":2338,"props":16656,"children":16657},{"style":3219},[16658],{"type":26,"value":3259},{"type":21,"tag":2338,"props":16660,"children":16661},{"style":2345},[16662],{"type":26,"value":7527},{"type":21,"tag":2338,"props":16664,"children":16665},{"style":3284},[16666],{"type":26,"value":7532},{"type":21,"tag":2338,"props":16668,"children":16669},{"style":3219},[16670],{"type":26,"value":3259},{"type":21,"tag":2338,"props":16672,"children":16673},{"style":2374},[16674],{"type":26,"value":12288},{"type":21,"tag":2338,"props":16676,"children":16677},{"style":2345},[16678],{"type":26,"value":3319},{"type":21,"tag":2338,"props":16680,"children":16681},{"class":2340,"line":4710},[16682],{"type":21,"tag":2338,"props":16683,"children":16684},{"style":2345},[16685],{"type":26,"value":12300},{"type":21,"tag":2338,"props":16687,"children":16688},{"class":2340,"line":4755},[16689,16693,16697,16701,16705,16709,16713,16717,16722],{"type":21,"tag":2338,"props":16690,"children":16691},{"style":3219},[16692],{"type":26,"value":4761},{"type":21,"tag":2338,"props":16694,"children":16695},{"style":2345},[16696],{"type":26,"value":3517},{"type":21,"tag":2338,"props":16698,"children":16699},{"style":3219},[16700],{"type":26,"value":3522},{"type":21,"tag":2338,"props":16702,"children":16703},{"style":2363},[16704],{"type":26,"value":3527},{"type":21,"tag":2338,"props":16706,"children":16707},{"style":2345},[16708],{"type":26,"value":7690},{"type":21,"tag":2338,"props":16710,"children":16711},{"style":3219},[16712],{"type":26,"value":6129},{"type":21,"tag":2338,"props":16714,"children":16715},{"style":2363},[16716],{"type":26,"value":6405},{"type":21,"tag":2338,"props":16718,"children":16719},{"style":2345},[16720],{"type":26,"value":16721},"):          ",{"type":21,"tag":2338,"props":16723,"children":16724},{"style":3469},[16725],{"type":26,"value":16726},"# the swaps matter here, see below\n",{"type":21,"tag":2338,"props":16728,"children":16729},{"class":2340,"line":4794},[16730,16734,16738,16742,16746,16750],{"type":21,"tag":2338,"props":16731,"children":16732},{"style":2345},[16733],{"type":26,"value":13592},{"type":21,"tag":2338,"props":16735,"children":16736},{"style":3219},[16737],{"type":26,"value":4869},{"type":21,"tag":2338,"props":16739,"children":16740},{"style":2345},[16741],{"type":26,"value":3517},{"type":21,"tag":2338,"props":16743,"children":16744},{"style":3219},[16745],{"type":26,"value":4869},{"type":21,"tag":2338,"props":16747,"children":16748},{"style":2363},[16749],{"type":26,"value":6120},{"type":21,"tag":2338,"props":16751,"children":16752},{"style":2345},[16753],{"type":26,"value":3319},{"type":21,"tag":2338,"props":16755,"children":16756},{"class":2340,"line":4812},[16757,16761],{"type":21,"tag":2338,"props":16758,"children":16759},{"style":3219},[16760],{"type":26,"value":4607},{"type":21,"tag":2338,"props":16762,"children":16763},{"style":2345},[16764],{"type":26,"value":7799},{"type":21,"tag":2338,"props":16766,"children":16767},{"class":2340,"line":4886},[16768],{"type":21,"tag":2338,"props":16769,"children":16770},{"emptyLinePlaceholder":3243},[16771],{"type":26,"value":3246},{"type":21,"tag":2338,"props":16773,"children":16774},{"class":2340,"line":4914},[16775],{"type":21,"tag":2338,"props":16776,"children":16777},{"emptyLinePlaceholder":3243},[16778],{"type":26,"value":3246},{"type":21,"tag":2338,"props":16780,"children":16781},{"class":2340,"line":4943},[16782,16786,16791],{"type":21,"tag":2338,"props":16783,"children":16784},{"style":3219},[16785],{"type":26,"value":4382},{"type":21,"tag":2338,"props":16787,"children":16788},{"style":4385},[16789],{"type":26,"value":16790}," qpe_phase_gate",{"type":21,"tag":2338,"props":16792,"children":16793},{"style":2345},[16794],{"type":26,"value":16795},"(n_count, theta):\n",{"type":21,"tag":2338,"props":16797,"children":16798},{"class":2340,"line":4952},[16799],{"type":21,"tag":2338,"props":16800,"children":16801},{"style":2374},[16802],{"type":26,"value":16803},"    \"\"\"QPE for U = P(2*pi*theta), whose eigenstate is |1>.\"\"\"\n",{"type":21,"tag":2338,"props":16805,"children":16806},{"class":2340,"line":4980},[16807,16811,16815,16820,16824,16828],{"type":21,"tag":2338,"props":16808,"children":16809},{"style":2345},[16810],{"type":26,"value":7518},{"type":21,"tag":2338,"props":16812,"children":16813},{"style":3219},[16814],{"type":26,"value":3259},{"type":21,"tag":2338,"props":16816,"children":16817},{"style":2345},[16818],{"type":26,"value":16819}," QuantumCircuit(n_count ",{"type":21,"tag":2338,"props":16821,"children":16822},{"style":3219},[16823],{"type":26,"value":6549},{"type":21,"tag":2338,"props":16825,"children":16826},{"style":2363},[16827],{"type":26,"value":6120},{"type":21,"tag":2338,"props":16829,"children":16830},{"style":2345},[16831],{"type":26,"value":16832},", n_count)\n",{"type":21,"tag":2338,"props":16834,"children":16835},{"class":2340,"line":5011},[16836,16840,16844,16849],{"type":21,"tag":2338,"props":16837,"children":16838},{"style":2345},[16839],{"type":26,"value":7910},{"type":21,"tag":2338,"props":16841,"children":16842},{"style":2363},[16843],{"type":26,"value":4963},{"type":21,"tag":2338,"props":16845,"children":16846},{"style":2345},[16847],{"type":26,"value":16848},"(n_count))             ",{"type":21,"tag":2338,"props":16850,"children":16851},{"style":3469},[16852],{"type":26,"value":16853},"# counting register in superposition\n",{"type":21,"tag":2338,"props":16855,"children":16856},{"class":2340,"line":5033},[16857,16862],{"type":21,"tag":2338,"props":16858,"children":16859},{"style":2345},[16860],{"type":26,"value":16861},"    qc.x(n_count)                    ",{"type":21,"tag":2338,"props":16863,"children":16864},{"style":3469},[16865],{"type":26,"value":16866},"# prepare the eigenstate |1>\n",{"type":21,"tag":2338,"props":16868,"children":16869},{"class":2340,"line":5079},[16870],{"type":21,"tag":2338,"props":16871,"children":16872},{"emptyLinePlaceholder":3243},[16873],{"type":26,"value":3246},{"type":21,"tag":2338,"props":16875,"children":16876},{"class":2340,"line":5092},[16877,16881,16885,16889,16893,16898],{"type":21,"tag":2338,"props":16878,"children":16879},{"style":3219},[16880],{"type":26,"value":4761},{"type":21,"tag":2338,"props":16882,"children":16883},{"style":2345},[16884],{"type":26,"value":13514},{"type":21,"tag":2338,"props":16886,"children":16887},{"style":3219},[16888],{"type":26,"value":3522},{"type":21,"tag":2338,"props":16890,"children":16891},{"style":2363},[16892],{"type":26,"value":3527},{"type":21,"tag":2338,"props":16894,"children":16895},{"style":2345},[16896],{"type":26,"value":16897},"(n_count):         ",{"type":21,"tag":2338,"props":16899,"children":16900},{"style":3469},[16901],{"type":26,"value":16902},"# controlled-U^(2^k) = CP(2*pi*theta*2^k)\n",{"type":21,"tag":2338,"props":16904,"children":16905},{"class":2340,"line":5100},[16906,16911,16915,16919,16924,16928,16933,16937,16941,16945],{"type":21,"tag":2338,"props":16907,"children":16908},{"style":2345},[16909],{"type":26,"value":16910},"        qc.cp(",{"type":21,"tag":2338,"props":16912,"children":16913},{"style":2363},[16914],{"type":26,"value":2437},{"type":21,"tag":2338,"props":16916,"children":16917},{"style":3219},[16918],{"type":26,"value":8366},{"type":21,"tag":2338,"props":16920,"children":16921},{"style":2345},[16922],{"type":26,"value":16923}," np.pi ",{"type":21,"tag":2338,"props":16925,"children":16926},{"style":3219},[16927],{"type":26,"value":6414},{"type":21,"tag":2338,"props":16929,"children":16930},{"style":2345},[16931],{"type":26,"value":16932}," theta ",{"type":21,"tag":2338,"props":16934,"children":16935},{"style":3219},[16936],{"type":26,"value":6414},{"type":21,"tag":2338,"props":16938,"children":16939},{"style":2363},[16940],{"type":26,"value":6405},{"type":21,"tag":2338,"props":16942,"children":16943},{"style":3219},[16944],{"type":26,"value":8330},{"type":21,"tag":2338,"props":16946,"children":16947},{"style":2345},[16948],{"type":26,"value":16949}," k, k, n_count)\n",{"type":21,"tag":2338,"props":16951,"children":16952},{"class":2340,"line":5118},[16953],{"type":21,"tag":2338,"props":16954,"children":16955},{"emptyLinePlaceholder":3243},[16956],{"type":26,"value":3246},{"type":21,"tag":2338,"props":16958,"children":16959},{"class":2340,"line":5136},[16960,16965,16969,16973,16977,16982,16986,16990,16994],{"type":21,"tag":2338,"props":16961,"children":16962},{"style":2345},[16963],{"type":26,"value":16964},"    qc.compose(qft(n_count).inverse(), ",{"type":21,"tag":2338,"props":16966,"children":16967},{"style":3284},[16968],{"type":26,"value":1263},{"type":21,"tag":2338,"props":16970,"children":16971},{"style":3219},[16972],{"type":26,"value":3259},{"type":21,"tag":2338,"props":16974,"children":16975},{"style":2363},[16976],{"type":26,"value":4963},{"type":21,"tag":2338,"props":16978,"children":16979},{"style":2345},[16980],{"type":26,"value":16981},"(n_count), ",{"type":21,"tag":2338,"props":16983,"children":16984},{"style":3284},[16985],{"type":26,"value":8220},{"type":21,"tag":2338,"props":16987,"children":16988},{"style":3219},[16989],{"type":26,"value":3259},{"type":21,"tag":2338,"props":16991,"children":16992},{"style":2363},[16993],{"type":26,"value":3296},{"type":21,"tag":2338,"props":16995,"children":16996},{"style":2345},[16997],{"type":26,"value":3319},{"type":21,"tag":2338,"props":16999,"children":17000},{"class":2340,"line":5144},[17001,17005,17009,17013,17017],{"type":21,"tag":2338,"props":17002,"children":17003},{"style":2345},[17004],{"type":26,"value":8275},{"type":21,"tag":2338,"props":17006,"children":17007},{"style":2363},[17008],{"type":26,"value":4963},{"type":21,"tag":2338,"props":17010,"children":17011},{"style":2345},[17012],{"type":26,"value":16981},{"type":21,"tag":2338,"props":17014,"children":17015},{"style":2363},[17016],{"type":26,"value":4963},{"type":21,"tag":2338,"props":17018,"children":17019},{"style":2345},[17020],{"type":26,"value":17021},"(n_count))\n",{"type":21,"tag":2338,"props":17023,"children":17024},{"class":2340,"line":5178},[17025,17029],{"type":21,"tag":2338,"props":17026,"children":17027},{"style":3219},[17028],{"type":26,"value":4607},{"type":21,"tag":2338,"props":17030,"children":17031},{"style":2345},[17032],{"type":26,"value":7799},{"type":21,"tag":2338,"props":17034,"children":17035},{"class":2340,"line":5196},[17036],{"type":21,"tag":2338,"props":17037,"children":17038},{"emptyLinePlaceholder":3243},[17039],{"type":26,"value":3246},{"type":21,"tag":2338,"props":17041,"children":17042},{"class":2340,"line":5221},[17043],{"type":21,"tag":2338,"props":17044,"children":17045},{"emptyLinePlaceholder":3243},[17046],{"type":26,"value":3246},{"type":21,"tag":2338,"props":17048,"children":17049},{"class":2340,"line":5263},[17050,17054,17058],{"type":21,"tag":2338,"props":17051,"children":17052},{"style":2345},[17053],{"type":26,"value":8445},{"type":21,"tag":2338,"props":17055,"children":17056},{"style":3219},[17057],{"type":26,"value":3259},{"type":21,"tag":2338,"props":17059,"children":17060},{"style":2345},[17061],{"type":26,"value":8454},{"type":21,"tag":2338,"props":17063,"children":17064},{"class":2340,"line":5271},[17065,17069,17073,17078,17082,17086,17091,17096],{"type":21,"tag":2338,"props":17066,"children":17067},{"style":2345},[17068],{"type":26,"value":7403},{"type":21,"tag":2338,"props":17070,"children":17071},{"style":3219},[17072],{"type":26,"value":3259},{"type":21,"tag":2338,"props":17074,"children":17075},{"style":2345},[17076],{"type":26,"value":17077}," qpe_phase_gate(",{"type":21,"tag":2338,"props":17079,"children":17080},{"style":2363},[17081],{"type":26,"value":5553},{"type":21,"tag":2338,"props":17083,"children":17084},{"style":2345},[17085],{"type":26,"value":1375},{"type":21,"tag":2338,"props":17087,"children":17088},{"style":2363},[17089],{"type":26,"value":17090},"0.625",{"type":21,"tag":2338,"props":17092,"children":17093},{"style":2345},[17094],{"type":26,"value":17095},")        ",{"type":21,"tag":2338,"props":17097,"children":17098},{"style":3469},[17099],{"type":26,"value":17100},"# theta = 0.625 = 0.1010 in binary\n",{"type":21,"tag":2338,"props":17102,"children":17103},{"class":2340,"line":5306},[17104,17108,17112,17116,17120,17124,17128],{"type":21,"tag":2338,"props":17105,"children":17106},{"style":2345},[17107],{"type":26,"value":8478},{"type":21,"tag":2338,"props":17109,"children":17110},{"style":3219},[17111],{"type":26,"value":3259},{"type":21,"tag":2338,"props":17113,"children":17114},{"style":2345},[17115],{"type":26,"value":8487},{"type":21,"tag":2338,"props":17117,"children":17118},{"style":3284},[17119],{"type":26,"value":4144},{"type":21,"tag":2338,"props":17121,"children":17122},{"style":3219},[17123],{"type":26,"value":3259},{"type":21,"tag":2338,"props":17125,"children":17126},{"style":2363},[17127],{"type":26,"value":8500},{"type":21,"tag":2338,"props":17129,"children":17130},{"style":2345},[17131],{"type":26,"value":5303},{"type":21,"tag":2338,"props":17133,"children":17134},{"class":2340,"line":5422},[17135],{"type":21,"tag":2338,"props":17136,"children":17137},{"emptyLinePlaceholder":3243},[17138],{"type":26,"value":3246},{"type":21,"tag":2338,"props":17140,"children":17141},{"class":2340,"line":5430},[17142,17146,17151,17155,17160,17164,17168,17172,17176,17180,17184,17188],{"type":21,"tag":2338,"props":17143,"children":17144},{"style":3219},[17145],{"type":26,"value":3512},{"type":21,"tag":2338,"props":17147,"children":17148},{"style":2345},[17149],{"type":26,"value":17150}," bits, c ",{"type":21,"tag":2338,"props":17152,"children":17153},{"style":3219},[17154],{"type":26,"value":3522},{"type":21,"tag":2338,"props":17156,"children":17157},{"style":2363},[17158],{"type":26,"value":17159}," sorted",{"type":21,"tag":2338,"props":17161,"children":17162},{"style":2345},[17163],{"type":26,"value":13183},{"type":21,"tag":2338,"props":17165,"children":17166},{"style":3284},[17167],{"type":26,"value":3560},{"type":21,"tag":2338,"props":17169,"children":17170},{"style":3219},[17171],{"type":26,"value":3565},{"type":21,"tag":2338,"props":17173,"children":17174},{"style":2345},[17175],{"type":26,"value":13196},{"type":21,"tag":2338,"props":17177,"children":17178},{"style":3219},[17179],{"type":26,"value":4869},{"type":21,"tag":2338,"props":17181,"children":17182},{"style":2345},[17183],{"type":26,"value":13205},{"type":21,"tag":2338,"props":17185,"children":17186},{"style":2363},[17187],{"type":26,"value":3575},{"type":21,"tag":2338,"props":17189,"children":17190},{"style":2345},[17191],{"type":26,"value":17192},"]):\n",{"type":21,"tag":2338,"props":17194,"children":17195},{"class":2340,"line":5475},[17196,17201,17205,17210,17215,17219,17223,17227,17231,17235],{"type":21,"tag":2338,"props":17197,"children":17198},{"style":2345},[17199],{"type":26,"value":17200},"    est ",{"type":21,"tag":2338,"props":17202,"children":17203},{"style":3219},[17204],{"type":26,"value":3259},{"type":21,"tag":2338,"props":17206,"children":17207},{"style":2363},[17208],{"type":26,"value":17209}," int",{"type":21,"tag":2338,"props":17211,"children":17212},{"style":2345},[17213],{"type":26,"value":17214},"(bits, ",{"type":21,"tag":2338,"props":17216,"children":17217},{"style":2363},[17218],{"type":26,"value":2437},{"type":21,"tag":2338,"props":17220,"children":17221},{"style":2345},[17222],{"type":26,"value":5368},{"type":21,"tag":2338,"props":17224,"children":17225},{"style":3219},[17226],{"type":26,"value":2192},{"type":21,"tag":2338,"props":17228,"children":17229},{"style":2363},[17230],{"type":26,"value":6405},{"type":21,"tag":2338,"props":17232,"children":17233},{"style":3219},[17234],{"type":26,"value":8330},{"type":21,"tag":2338,"props":17236,"children":17237},{"style":2363},[17238],{"type":26,"value":12488},{"type":21,"tag":2338,"props":17240,"children":17241},{"class":2340,"line":5493},[17242,17247,17251,17255,17259,17263,17268,17272,17277,17282,17286,17290,17295,17299,17304,17308,17313,17317,17321,17326,17330,17335,17339,17343],{"type":21,"tag":2338,"props":17243,"children":17244},{"style":2363},[17245],{"type":26,"value":17246},"    print",{"type":21,"tag":2338,"props":17248,"children":17249},{"style":2345},[17250],{"type":26,"value":3339},{"type":21,"tag":2338,"props":17252,"children":17253},{"style":3219},[17254],{"type":26,"value":3344},{"type":21,"tag":2338,"props":17256,"children":17257},{"style":2374},[17258],{"type":26,"value":3369},{"type":21,"tag":2338,"props":17260,"children":17261},{"style":2363},[17262],{"type":26,"value":3354},{"type":21,"tag":2338,"props":17264,"children":17265},{"style":2345},[17266],{"type":26,"value":17267},"bits",{"type":21,"tag":2338,"props":17269,"children":17270},{"style":2363},[17271],{"type":26,"value":3364},{"type":21,"tag":2338,"props":17273,"children":17274},{"style":2374},[17275],{"type":26,"value":17276}," -> theta = ",{"type":21,"tag":2338,"props":17278,"children":17279},{"style":2363},[17280],{"type":26,"value":17281},"{int",{"type":21,"tag":2338,"props":17283,"children":17284},{"style":2345},[17285],{"type":26,"value":17214},{"type":21,"tag":2338,"props":17287,"children":17288},{"style":2363},[17289],{"type":26,"value":2437},{"type":21,"tag":2338,"props":17291,"children":17292},{"style":2345},[17293],{"type":26,"value":17294},")",{"type":21,"tag":2338,"props":17296,"children":17297},{"style":2363},[17298],{"type":26,"value":3364},{"type":21,"tag":2338,"props":17300,"children":17301},{"style":2374},[17302],{"type":26,"value":17303},"\u002F16 = ",{"type":21,"tag":2338,"props":17305,"children":17306},{"style":2363},[17307],{"type":26,"value":3354},{"type":21,"tag":2338,"props":17309,"children":17310},{"style":2345},[17311],{"type":26,"value":17312},"est",{"type":21,"tag":2338,"props":17314,"children":17315},{"style":3219},[17316],{"type":26,"value":3666},{"type":21,"tag":2338,"props":17318,"children":17319},{"style":2363},[17320],{"type":26,"value":3364},{"type":21,"tag":2338,"props":17322,"children":17323},{"style":2374},[17324],{"type":26,"value":17325},"   counts = ",{"type":21,"tag":2338,"props":17327,"children":17328},{"style":2363},[17329],{"type":26,"value":3354},{"type":21,"tag":2338,"props":17331,"children":17332},{"style":2345},[17333],{"type":26,"value":17334},"c",{"type":21,"tag":2338,"props":17336,"children":17337},{"style":2363},[17338],{"type":26,"value":3364},{"type":21,"tag":2338,"props":17340,"children":17341},{"style":2374},[17342],{"type":26,"value":3369},{"type":21,"tag":2338,"props":17344,"children":17345},{"style":2345},[17346],{"type":26,"value":3319},{"type":21,"tag":22,"props":17348,"children":17349},{},[17350],{"type":26,"value":12406},{"type":21,"tag":2328,"props":17352,"children":17354},{"code":17353},"1010 -> theta = 10\u002F16 = 0.6250   counts = 4096\n",[17355],{"type":21,"tag":2097,"props":17356,"children":17357},{"__ignoreMap":7},[17358],{"type":26,"value":17353},{"type":21,"tag":22,"props":17360,"children":17361},{},[17362,17367],{"type":21,"tag":205,"props":17363,"children":17364},{},[17365],{"type":26,"value":17366},"4096 out of 4096 shots.",{"type":26,"value":17368}," θ = 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":2328,"props":17370,"children":17372},{"code":17371},"[('001', 4096)]\n",[17373],{"type":21,"tag":2097,"props":17374,"children":17375},{"__ignoreMap":7},[17376],{"type":26,"value":17371},{"type":21,"tag":22,"props":17378,"children":17379},{},[17380],{"type":26,"value":17381},"001 = 1, and 1\u002F8 = 0.125. Exact again.",{"type":21,"tag":17383,"props":17384,"children":17386},"h3",{"id":17385},"the-endianness-trap",[17387],{"type":26,"value":17388},"The endianness trap",{"type":21,"tag":22,"props":17390,"children":17391},{},[17392,17398,17400,17405,17407,17411,17413,17419],{"type":21,"tag":2097,"props":17393,"children":17395},{"className":17394},[],[17396],{"type":26,"value":17397},"int(bits, 2) \u002F 2**n",{"type":26,"value":17399}," worked above, and it is worth understanding ",{"type":21,"tag":2071,"props":17401,"children":17402},{},[17403],{"type":26,"value":17404},"why",{"type":26,"value":17406}," rather than copying it. Qiskit prints bitstrings with classical bit 0 on the ",{"type":21,"tag":205,"props":17408,"children":17409},{},[17410],{"type":26,"value":7809},{"type":26,"value":17412},", and our counting qubit 0 (the one that got the smallest rotation, ",{"type":21,"tag":2097,"props":17414,"children":17416},{"className":17415},[],[17417],{"type":26,"value":17418},"U^1",{"type":26,"value":17420},") 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":17422,"children":17423},{},[17424,17426,17432],{"type":26,"value":17425},"Drop the swaps from ",{"type":21,"tag":2097,"props":17427,"children":17429},{"className":17428},[],[17430],{"type":26,"value":17431},"qft()",{"type":26,"value":17433}," (a tempting \"optimization\", since they look cosmetic) and rerun the exact θ = 0.625 case. Real output over 2048 shots:",{"type":21,"tag":2328,"props":17435,"children":17437},{"code":17436},"{'1101': 1007, '0101': 470, '0001': 251, '0100': 80, '1100': 77,\n '0010': 66, '1110': 64, '0110': 16, '1010': 9, '1001': 8}\n",[17438],{"type":21,"tag":2097,"props":17439,"children":17440},{"__ignoreMap":7},[17441],{"type":26,"value":17436},{"type":21,"tag":22,"props":17443,"children":17444},{},[17445,17447,17453,17455,17460],{"type":26,"value":17446},"The correct answer ",{"type":21,"tag":2097,"props":17448,"children":17450},{"className":17449},[],[17451],{"type":26,"value":17452},"1010",{"type":26,"value":17454}," now gets ",{"type":21,"tag":205,"props":17456,"children":17457},{},[17458],{"type":26,"value":17459},"9 shots out of 2048",{"type":26,"value":17461},". 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":17463,"children":17464},{},[17465],{"type":26,"value":17466},"Always sanity-check a QPE implementation against a θ you already know before pointing it at one you don't.",{"type":21,"tag":29,"props":17468,"children":17470},{"id":17469},"when-θ-doesnt-fit-in-n-bits",[17471],{"type":26,"value":17472},"When θ doesn't fit in n bits",{"type":21,"tag":22,"props":17474,"children":17475},{},[17476],{"type":26,"value":17477},"Real eigenphases are not tidy binary fractions. Try θ = 0.3, which has an infinite binary expansion, with 4 counting qubits:",{"type":21,"tag":2328,"props":17479,"children":17481},{"code":17480,"language":3209,"meta":7,"className":3207,"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",[17482],{"type":21,"tag":2097,"props":17483,"children":17484},{"__ignoreMap":7},[17485,17516,17547,17608],{"type":21,"tag":2338,"props":17486,"children":17487},{"class":2340,"line":2341},[17488,17492,17496,17500,17504,17508,17512],{"type":21,"tag":2338,"props":17489,"children":17490},{"style":2345},[17491],{"type":26,"value":7403},{"type":21,"tag":2338,"props":17493,"children":17494},{"style":3219},[17495],{"type":26,"value":3259},{"type":21,"tag":2338,"props":17497,"children":17498},{"style":2345},[17499],{"type":26,"value":17077},{"type":21,"tag":2338,"props":17501,"children":17502},{"style":2363},[17503],{"type":26,"value":5553},{"type":21,"tag":2338,"props":17505,"children":17506},{"style":2345},[17507],{"type":26,"value":1375},{"type":21,"tag":2338,"props":17509,"children":17510},{"style":2363},[17511],{"type":26,"value":14763},{"type":21,"tag":2338,"props":17513,"children":17514},{"style":2345},[17515],{"type":26,"value":3319},{"type":21,"tag":2338,"props":17517,"children":17518},{"class":2340,"line":173},[17519,17523,17527,17531,17535,17539,17543],{"type":21,"tag":2338,"props":17520,"children":17521},{"style":2345},[17522],{"type":26,"value":8478},{"type":21,"tag":2338,"props":17524,"children":17525},{"style":3219},[17526],{"type":26,"value":3259},{"type":21,"tag":2338,"props":17528,"children":17529},{"style":2345},[17530],{"type":26,"value":8487},{"type":21,"tag":2338,"props":17532,"children":17533},{"style":3284},[17534],{"type":26,"value":4144},{"type":21,"tag":2338,"props":17536,"children":17537},{"style":3219},[17538],{"type":26,"value":3259},{"type":21,"tag":2338,"props":17540,"children":17541},{"style":2363},[17542],{"type":26,"value":8500},{"type":21,"tag":2338,"props":17544,"children":17545},{"style":2345},[17546],{"type":26,"value":5303},{"type":21,"tag":2338,"props":17548,"children":17549},{"class":2340,"line":2359},[17550,17554,17558,17562,17566,17570,17574,17578,17582,17586,17590,17594,17599,17603],{"type":21,"tag":2338,"props":17551,"children":17552},{"style":3219},[17553],{"type":26,"value":3512},{"type":21,"tag":2338,"props":17555,"children":17556},{"style":2345},[17557],{"type":26,"value":17150},{"type":21,"tag":2338,"props":17559,"children":17560},{"style":3219},[17561],{"type":26,"value":3522},{"type":21,"tag":2338,"props":17563,"children":17564},{"style":2363},[17565],{"type":26,"value":17159},{"type":21,"tag":2338,"props":17567,"children":17568},{"style":2345},[17569],{"type":26,"value":13183},{"type":21,"tag":2338,"props":17571,"children":17572},{"style":3284},[17573],{"type":26,"value":3560},{"type":21,"tag":2338,"props":17575,"children":17576},{"style":3219},[17577],{"type":26,"value":3565},{"type":21,"tag":2338,"props":17579,"children":17580},{"style":2345},[17581],{"type":26,"value":13196},{"type":21,"tag":2338,"props":17583,"children":17584},{"style":3219},[17585],{"type":26,"value":4869},{"type":21,"tag":2338,"props":17587,"children":17588},{"style":2345},[17589],{"type":26,"value":13205},{"type":21,"tag":2338,"props":17591,"children":17592},{"style":2363},[17593],{"type":26,"value":3575},{"type":21,"tag":2338,"props":17595,"children":17596},{"style":2345},[17597],{"type":26,"value":17598},"])[:",{"type":21,"tag":2338,"props":17600,"children":17601},{"style":2363},[17602],{"type":26,"value":13699},{"type":21,"tag":2338,"props":17604,"children":17605},{"style":2345},[17606],{"type":26,"value":17607},"]:\n",{"type":21,"tag":2338,"props":17609,"children":17610},{"class":2340,"line":2421},[17611,17615,17619,17623,17627,17631,17635,17639,17644,17648,17652,17656,17660,17664,17668,17672,17676,17680,17684,17688,17692,17697,17701,17706,17710,17714,17718],{"type":21,"tag":2338,"props":17612,"children":17613},{"style":2363},[17614],{"type":26,"value":17246},{"type":21,"tag":2338,"props":17616,"children":17617},{"style":2345},[17618],{"type":26,"value":3339},{"type":21,"tag":2338,"props":17620,"children":17621},{"style":3219},[17622],{"type":26,"value":3344},{"type":21,"tag":2338,"props":17624,"children":17625},{"style":2374},[17626],{"type":26,"value":3369},{"type":21,"tag":2338,"props":17628,"children":17629},{"style":2363},[17630],{"type":26,"value":3354},{"type":21,"tag":2338,"props":17632,"children":17633},{"style":2345},[17634],{"type":26,"value":17267},{"type":21,"tag":2338,"props":17636,"children":17637},{"style":2363},[17638],{"type":26,"value":3364},{"type":21,"tag":2338,"props":17640,"children":17641},{"style":2374},[17642],{"type":26,"value":17643},"  theta_est = ",{"type":21,"tag":2338,"props":17645,"children":17646},{"style":2363},[17647],{"type":26,"value":17281},{"type":21,"tag":2338,"props":17649,"children":17650},{"style":2345},[17651],{"type":26,"value":17214},{"type":21,"tag":2338,"props":17653,"children":17654},{"style":2363},[17655],{"type":26,"value":2437},{"type":21,"tag":2338,"props":17657,"children":17658},{"style":2345},[17659],{"type":26,"value":5368},{"type":21,"tag":2338,"props":17661,"children":17662},{"style":3219},[17663],{"type":26,"value":2192},{"type":21,"tag":2338,"props":17665,"children":17666},{"style":2363},[17667],{"type":26,"value":6405},{"type":21,"tag":2338,"props":17669,"children":17670},{"style":3219},[17671],{"type":26,"value":4734},{"type":21,"tag":2338,"props":17673,"children":17674},{"style":2363},[17675],{"type":26,"value":5553},{"type":21,"tag":2338,"props":17677,"children":17678},{"style":3219},[17679],{"type":26,"value":3666},{"type":21,"tag":2338,"props":17681,"children":17682},{"style":2363},[17683],{"type":26,"value":3364},{"type":21,"tag":2338,"props":17685,"children":17686},{"style":2374},[17687],{"type":26,"value":12987},{"type":21,"tag":2338,"props":17689,"children":17690},{"style":2363},[17691],{"type":26,"value":3354},{"type":21,"tag":2338,"props":17693,"children":17694},{"style":2345},[17695],{"type":26,"value":17696},"c ",{"type":21,"tag":2338,"props":17698,"children":17699},{"style":3219},[17700],{"type":26,"value":2192},{"type":21,"tag":2338,"props":17702,"children":17703},{"style":2363},[17704],{"type":26,"value":17705}," 4096",{"type":21,"tag":2338,"props":17707,"children":17708},{"style":3219},[17709],{"type":26,"value":3666},{"type":21,"tag":2338,"props":17711,"children":17712},{"style":2363},[17713],{"type":26,"value":3364},{"type":21,"tag":2338,"props":17715,"children":17716},{"style":2374},[17717],{"type":26,"value":3369},{"type":21,"tag":2338,"props":17719,"children":17720},{"style":2345},[17721],{"type":26,"value":3319},{"type":21,"tag":22,"props":17723,"children":17724},{},[17725],{"type":26,"value":12406},{"type":21,"tag":2328,"props":17727,"children":17729},{"code":17728},"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",[17730],{"type":21,"tag":2097,"props":17731,"children":17732},{"__ignoreMap":7},[17733],{"type":26,"value":17728},{"type":21,"tag":22,"props":17735,"children":17736},{},[17737,17739,17744],{"type":26,"value":17738},"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":205,"props":17740,"children":17741},{},[17742],{"type":26,"value":17743},"you get the nearest n-bit value with high probability, not certainty.",{"type":26,"value":17745}," 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":17747,"children":17748},{},[17749,17751,17756],{"type":26,"value":17750},"Two things improve together when you add counting qubits: finer resolution ",{"type":21,"tag":2071,"props":17752,"children":17753},{},[17754],{"type":26,"value":17755},"and",{"type":26,"value":17757}," a tighter peak. Same θ = 0.3 with 8 counting qubits:",{"type":21,"tag":2328,"props":17759,"children":17761},{"code":17760},"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",[17762],{"type":21,"tag":2097,"props":17763,"children":17764},{"__ignoreMap":7},[17765],{"type":26,"value":17760},{"type":21,"tag":22,"props":17767,"children":17768},{},[17769,17771,17776],{"type":26,"value":17770},"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":41,"props":17772,"children":17773},{"href":8998},[17774],{"type":26,"value":17775},"ancillas",{"type":26,"value":17777}," buys you a lot of confidence.",{"type":21,"tag":22,"props":17779,"children":17780},{},[17781,17783,17788],{"type":26,"value":17782},"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":205,"props":17784,"children":17785},{},[17786],{"type":26,"value":17787},"doubles",{"type":26,"value":17789}," 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":29,"props":17791,"children":17793},{"id":17792},"where-qpe-gets-used",[17794],{"type":26,"value":17795},"Where QPE gets used",{"type":21,"tag":22,"props":17797,"children":17798},{},[17799,17804,17806,17810,17812,17817],{"type":21,"tag":205,"props":17800,"children":17801},{},[17802],{"type":26,"value":17803},"Shor's algorithm.",{"type":26,"value":17805}," 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":41,"props":17807,"children":17808},{"href":8629},[17809],{"type":26,"value":9669},{"type":26,"value":17811}," 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":41,"props":17813,"children":17814},{"href":9680},[17815],{"type":26,"value":17816},"machine-verified in Lean",{"type":26,"value":17818},", if you want the formal treatment.)",{"type":21,"tag":22,"props":17820,"children":17821},{},[17822,17827,17829,17834],{"type":21,"tag":205,"props":17823,"children":17824},{},[17825],{"type":26,"value":17826},"Quantum chemistry.",{"type":26,"value":17828}," 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":2071,"props":17830,"children":17831},{},[17832],{"type":26,"value":17833},"provable",{"type":26,"value":17835}," 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":17837,"children":17838},{},[17839,17844,17845,17849,17851,17855,17857,17862],{"type":21,"tag":205,"props":17840,"children":17841},{},[17842],{"type":26,"value":17843},"Contrast with VQE.",{"type":26,"value":1367},{"type":21,"tag":41,"props":17846,"children":17847},{"href":392},[17848],{"type":26,"value":352},{"type":26,"value":17850}," attacks the same chemistry problem from the opposite direction. Instead of one deep coherent circuit, it uses a shallow ",{"type":21,"tag":41,"props":17852,"children":17853},{"href":13854},[17854],{"type":26,"value":13857},{"type":26,"value":17856}," plus a classical optimizer, as introduced in ",{"type":21,"tag":41,"props":17858,"children":17859},{"href":399},[17860],{"type":26,"value":17861},"Peruzzo et al. 2014",{"type":26,"value":17863},". The trade is explicit:",{"type":21,"tag":4087,"props":17865,"children":17866},{},[17867,17885],{"type":21,"tag":4091,"props":17868,"children":17869},{},[17870],{"type":21,"tag":4095,"props":17871,"children":17872},{},[17873,17876,17881],{"type":21,"tag":4099,"props":17874,"children":17875},{},[],{"type":21,"tag":4099,"props":17877,"children":17878},{},[17879],{"type":26,"value":17880},"QPE",{"type":21,"tag":4099,"props":17882,"children":17883},{},[17884],{"type":26,"value":352},{"type":21,"tag":4113,"props":17886,"children":17887},{},[17888,17906,17924,17942],{"type":21,"tag":4095,"props":17889,"children":17890},{},[17891,17896,17901],{"type":21,"tag":4120,"props":17892,"children":17893},{},[17894],{"type":26,"value":17895},"Circuit depth",{"type":21,"tag":4120,"props":17897,"children":17898},{},[17899],{"type":26,"value":17900},"Deep, grows as 2ⁿ in precision bits",{"type":21,"tag":4120,"props":17902,"children":17903},{},[17904],{"type":26,"value":17905},"Shallow, fixed ansatz",{"type":21,"tag":4095,"props":17907,"children":17908},{},[17909,17914,17919],{"type":21,"tag":4120,"props":17910,"children":17911},{},[17912],{"type":26,"value":17913},"Precision",{"type":21,"tag":4120,"props":17915,"children":17916},{},[17917],{"type":26,"value":17918},"Provable, arbitrary",{"type":21,"tag":4120,"props":17920,"children":17921},{},[17922],{"type":26,"value":17923},"Heuristic, ansatz-limited",{"type":21,"tag":4095,"props":17925,"children":17926},{},[17927,17932,17937],{"type":21,"tag":4120,"props":17928,"children":17929},{},[17930],{"type":26,"value":17931},"Measurements",{"type":21,"tag":4120,"props":17933,"children":17934},{},[17935],{"type":26,"value":17936},"Few shots",{"type":21,"tag":4120,"props":17938,"children":17939},{},[17940],{"type":26,"value":17941},"Many thousands per iteration",{"type":21,"tag":4095,"props":17943,"children":17944},{},[17945,17950,17955],{"type":21,"tag":4120,"props":17946,"children":17947},{},[17948],{"type":26,"value":17949},"Hardware era",{"type":21,"tag":4120,"props":17951,"children":17952},{},[17953],{"type":26,"value":17954},"Fault-tolerant",{"type":21,"tag":4120,"props":17956,"children":17957},{},[17958],{"type":21,"tag":41,"props":17959,"children":17960},{"href":442},[17961],{"type":26,"value":2282},{"type":21,"tag":22,"props":17963,"children":17964},{},[17965,17967,17972,17974,17978,17980,17984],{"type":26,"value":17966},"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":41,"props":17968,"children":17969},{"href":362},[17970],{"type":26,"value":17971},"VQE walkthrough in PennyLane",{"type":26,"value":17973}," covers the near-term side. ",{"type":21,"tag":41,"props":17975,"children":17976},{"href":14090},[17977],{"type":26,"value":13806},{"type":26,"value":17979}," is generally the better fit for variational work while ",{"type":21,"tag":41,"props":17981,"children":17982},{"href":7112},[17983],{"type":26,"value":15},{"type":26,"value":17985}," suits structured circuits like this one.",{"type":21,"tag":29,"props":17987,"children":17989},{"id":17988},"the-honest-caveat",[17990],{"type":26,"value":17991},"The honest caveat",{"type":21,"tag":22,"props":17993,"children":17994},{},[17995,17997,18001],{"type":26,"value":17996},"QPE is not a NISQ algorithm and no amount of clever ",{"type":21,"tag":41,"props":17998,"children":17999},{"href":5776},[18000],{"type":26,"value":5779},{"type":26,"value":18002}," will make it one.",{"type":21,"tag":22,"props":18004,"children":18005},{},[18006,18008,18012],{"type":26,"value":18007},"The circuit must stay coherent through 2ⁿ − 1 controlled-U applications, each of which decomposes into many 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":41,"props":18009,"children":18010},{"href":8950},[18011],{"type":26,"value":15839},{"type":26,"value":18013}," 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":18015,"children":18016},{},[18017,18019,18023,18025,18030,18032,18036,18038,18042,18044,18048,18050,18055],{"type":26,"value":18018},"QPE becomes practical when circuits run on ",{"type":21,"tag":41,"props":18020,"children":18021},{"href":43},[18022],{"type":26,"value":46},{"type":26,"value":18024}," rather than physical ones. Google's ",{"type":21,"tag":41,"props":18026,"children":18027},{"href":3765},[18028],{"type":26,"value":18029},"below-threshold result",{"type":26,"value":18031}," is the first real evidence that path is open, and our ",{"type":21,"tag":41,"props":18033,"children":18034},{"href":56},[18035],{"type":26,"value":162},{"type":26,"value":18037}," covers what still has to happen. Until then: develop QPE on ",{"type":21,"tag":41,"props":18039,"children":18040},{"href":472},[18041],{"type":26,"value":8795},{"type":26,"value":18043},", where you verify it exactly, and reach for VQE or ",{"type":21,"tag":41,"props":18045,"children":18046},{"href":4007},[18047],{"type":26,"value":9299},{"type":26,"value":18049}," if you need results from ",{"type":21,"tag":41,"props":18051,"children":18052},{"href":144},[18053],{"type":26,"value":18054},"today's hardware",{"type":26,"value":825},{"type":21,"tag":22,"props":18057,"children":18058},{},[18059],{"type":26,"value":18060},"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":29,"props":18062,"children":18063},{"id":8807},[18064],{"type":26,"value":18065},"Next steps",{"type":21,"tag":3137,"props":18067,"children":18068},{},[18069,18081,18094,18118],{"type":21,"tag":3141,"props":18070,"children":18071},{},[18072,18079],{"type":21,"tag":205,"props":18073,"children":18074},{},[18075],{"type":21,"tag":41,"props":18076,"children":18077},{"href":281},[18078],{"type":26,"value":8849},{"type":26,"value":18080},": build the same QPE circuit in Cirq or Braket",{"type":21,"tag":3141,"props":18082,"children":18083},{},[18084,18092],{"type":21,"tag":205,"props":18085,"children":18086},{},[18087],{"type":21,"tag":41,"props":18088,"children":18089},{"href":3897},[18090],{"type":26,"value":18091},"Courses",{"type":26,"value":18093},": structured paths through the algorithm canon",{"type":21,"tag":3141,"props":18095,"children":18096},{},[18097,18104,18105,18111,18112,18117],{"type":21,"tag":205,"props":18098,"children":18099},{},[18100],{"type":21,"tag":41,"props":18101,"children":18102},{"href":3985},[18103],{"type":26,"value":8870},{"type":26,"value":2432},{"type":21,"tag":41,"props":18106,"children":18108},{"href":18107},"\u002Fglossary\u002Fquantum-gate",[18109],{"type":26,"value":18110},"quantum gate",{"type":26,"value":1375},{"type":21,"tag":41,"props":18113,"children":18114},{"href":8998},[18115],{"type":26,"value":18116},"ancilla qubit",{"type":26,"value":8886},{"type":21,"tag":3141,"props":18119,"children":18120},{},[18121],{"type":26,"value":18122},"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":2712,"props":18124,"children":18125},{},[18126],{"type":26,"value":2716},{"title":7,"searchDepth":173,"depth":173,"links":18128},[18129,18130,18131,18132,18135,18136,18137,18138],{"id":16098,"depth":173,"text":16101},{"id":16189,"depth":173,"text":16192},{"id":16294,"depth":173,"text":16297},{"id":11786,"depth":173,"text":11789,"children":18133},[18134],{"id":17385,"depth":2359,"text":17388},{"id":17469,"depth":173,"text":17472},{"id":17792,"depth":173,"text":17795},{"id":17988,"depth":173,"text":17991},{"id":8807,"depth":173,"text":18065},"content:blog:quantum-phase-estimation-tutorial.md","blog\u002Fquantum-phase-estimation-tutorial.md","blog\u002Fquantum-phase-estimation-tutorial",{"_path":18143,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":18144,"description":18145,"date":18146,"author":11,"tags":18147,"readingTime":16,"body":18149,"_type":180,"_id":19170,"_source":182,"_file":19171,"_stem":19172,"_extension":185},"\u002Fde\u002Fblog\u002Fquantum-computing-new-vocabulary","Das neue Vokabular des Quantencomputings: 16 Begriffe, die sich durchsetzen werden","So wie uns die KI 'Tokens', 'Halluzinationen' und 'Fine-Tuning' beschert hat, baut sich das Quantencomputing sein eigenes Vokabular auf. Hier sind die Begriffe, die Entwickler und Unternehmen in wenigen Jahren verwenden werden.","2026-03-15",[7170,13,18148],"Terminology",{"type":18,"children":18150,"toc":19151},[18151,18187,18192,18197,18201,18207,18215,18220,18246,18251,18254,18260,18268,18287,18292,18300,18305,18308,18314,18322,18334,18345,18357,18360,18366,18374,18385,18397,18400,18406,18414,18426,18516,18521,18524,18530,18538,18564,18576,18584,18589,18592,18598,18606,18618,18623,18626,18632,18640,18649,18654,18657,18663,18671,18697,18709,18714,18719,18722,18728,18736,18748,18760,18772,18775,18781,18789,18801,18806,18809,18815,18823,18841,18846,18849,18855,18863,18872,18877,18880,18886,18894,18913,18918,18921,18927,18935,18940,18949,18966,18971,18974,18980,18988,19000,19023,19036,19039,19045,19050,19123,19128,19133,19147],{"type":21,"tag":22,"props":18152,"children":18153},{},[18154,18156,18161,18162,18167,18168,18173,18174,18179,18180,18185],{"type":26,"value":18155},"Als Deep Learning um 2022–2023 in den Mainstream vordrang, zog es ein ganz neues Vokabular in den Alltag hinein. Plötzlich sprachen alle über ",{"type":21,"tag":2071,"props":18157,"children":18158},{},[18159],{"type":26,"value":18160},"Tokens",{"type":26,"value":1375},{"type":21,"tag":2071,"props":18163,"children":18164},{},[18165],{"type":26,"value":18166},"Halluzinationen",{"type":26,"value":1375},{"type":21,"tag":2071,"props":18169,"children":18170},{},[18171],{"type":26,"value":18172},"Kontextfenster",{"type":26,"value":1375},{"type":21,"tag":2071,"props":18175,"children":18176},{},[18177],{"type":26,"value":18178},"Fine-Tuning",{"type":26,"value":278},{"type":21,"tag":2071,"props":18181,"children":18182},{},[18183],{"type":26,"value":18184},"Prompt Engineering",{"type":26,"value":18186}," — Begriffe, die im gängigen Entwickler-Wortschatz ein Jahrzehnt zuvor kaum existierten. Eine neue Generation von \"KI-Ingenieuren\" entstand, GPU-Zeit wurde zu einem kostbaren Gut, und \"Inferenzkosten\" wurden zu einem Posten in Engineering-Budgets.",{"type":21,"tag":22,"props":18188,"children":18189},{},[18190],{"type":26,"value":18191},"Das Quantencomputing befindet sich auf einer ähnlichen Bahn. Es steht früher in der Kurve, aber der Wendepunkt kommt — und mit ihm eine neue Reihe von Begriffen, die aus Forschungsarbeiten in Stellenbeschreibungen, Start-up-Pitches und Stack-Overflow-Fragen wandern werden. Einige davon existieren bereits in der Quanten-Community. Die meisten sind außerhalb davon unbekannt. Sie alle lohnt es sich, jetzt zu lernen, bevor es alle anderen tun.",{"type":21,"tag":22,"props":18193,"children":18194},{},[18195],{"type":26,"value":18196},"Hier sind 16 Begriffe aus der Welt des Quantencomputings, die auf dem besten Weg sind, sich durchzusetzen.",{"type":21,"tag":18198,"props":18199,"children":18200},"hr",{},[],{"type":21,"tag":29,"props":18202,"children":18204},{"id":18203},"_1-qpu-quantum-processing-unit",[18205],{"type":26,"value":18206},"1. QPU (Quantum Processing Unit)",{"type":21,"tag":22,"props":18208,"children":18209},{},[18210],{"type":21,"tag":205,"props":18211,"children":18212},{},[18213],{"type":26,"value":18214},"Die KI-Parallele: GPU",{"type":21,"tag":22,"props":18216,"children":18217},{},[18218],{"type":26,"value":18219},"\"Hast du GPU-Zugang?\" wurde zu einer Standardfrage in ML-Teams. \"Hast du QPU-Zugang?\" wird zum quantentechnischen Äquivalent.",{"type":21,"tag":22,"props":18221,"children":18222},{},[18223,18225,18230,18232,18237,18239,18244],{"type":26,"value":18224},"Eine QPU ist der Hardware-Chip, der Quantenschaltkreise ausführt. IBM nennt seine Systeme ",{"type":21,"tag":2071,"props":18226,"children":18227},{},[18228],{"type":26,"value":18229},"Quantencomputer",{"type":26,"value":18231},", NVIDIA hat ",{"type":21,"tag":205,"props":18233,"children":18234},{},[18235],{"type":26,"value":18236},"CUDA-Q",{"type":26,"value":18238}," für GPU-beschleunigte Simulation, und IonQs Ionenfallen-Systeme sind die QPUs mit der höchsten Fidelity, die heute verfügbar sind. So wie \"GPU-Zeit\" zu einer Ressource wurde, um die Ingenieure kämpfen, wird ",{"type":21,"tag":205,"props":18240,"children":18241},{},[18242],{"type":26,"value":18243},"QPU-Zeit",{"type":26,"value":18245}," — tatsächliche Ausführungszyklen auf Quantenhardware — zu einer erstklassigen, planbaren Ressource werden.",{"type":21,"tag":22,"props":18247,"children":18248},{},[18249],{"type":26,"value":18250},"Der Begriff taucht bereits auf Cloud-Preisseiten auf (AWS Braket, Azure Quantum). Innerhalb von fünf Jahren wird er in Stellenbeschreibungen stehen.",{"type":21,"tag":18198,"props":18252,"children":18253},{},[],{"type":21,"tag":29,"props":18255,"children":18257},{"id":18256},"_2-shot-budget",[18258],{"type":26,"value":18259},"2. Shot Budget",{"type":21,"tag":22,"props":18261,"children":18262},{},[18263],{"type":21,"tag":205,"props":18264,"children":18265},{},[18266],{"type":26,"value":18267},"Die KI-Parallele: Token-Budget \u002F Kontextfenster",{"type":21,"tag":22,"props":18269,"children":18270},{},[18271,18273,18278,18280,18285],{"type":26,"value":18272},"Wenn du einen Quantenschaltkreis ausführst, erhältst du keine einzelne Antwort — du erhältst eine ",{"type":21,"tag":2071,"props":18274,"children":18275},{},[18276],{"type":26,"value":18277},"Wahrscheinlichkeitsverteilung",{"type":26,"value":18279},", die durch vielfaches Ausführen des Schaltkreises abgetastet wird. Jede Ausführung wird als ",{"type":21,"tag":205,"props":18281,"children":18282},{},[18283],{"type":26,"value":18284},"Shot",{"type":26,"value":18286}," bezeichnet. Ein 1.000-mal ausgeführter Schaltkreis kostet mehr QPU-Zeit als derselbe Schaltkreis, der 100-mal ausgeführt wird.",{"type":21,"tag":22,"props":18288,"children":18289},{},[18290],{"type":26,"value":18291},"Das \"Shot Budget\" — wie viele Ausführungen du dir leisten kannst — wird zu einem echten Optimierungsproblem, wenn der QPU-Zugang skaliert. So wie Entwickler lernten, Prompts zu kürzen, um innerhalb der Token-Grenzen zu bleiben, werden Quantenentwickler lernen, Schaltkreise so zu entwerfen, dass sie mit einem minimalen Shot Budget maximales Signal herausholen.",{"type":21,"tag":2218,"props":18293,"children":18294},{},[18295],{"type":21,"tag":22,"props":18296,"children":18297},{},[18298],{"type":26,"value":18299},"\"Wir haben die VQE in 200 statt 2.000 Shots zur Konvergenz gebracht — das hat unsere QPU-Kosten um 90 % gesenkt.\"",{"type":21,"tag":22,"props":18301,"children":18302},{},[18303],{"type":26,"value":18304},"Dies ist bereits ein reales Problem bei Variationsalgorithmen wie VQE und QAOA, bei denen Shot-Rauschen die Ergebnisqualität direkt beeinflusst.",{"type":21,"tag":18198,"props":18306,"children":18307},{},[],{"type":21,"tag":29,"props":18309,"children":18311},{"id":18310},"_3-quantum-advantage",[18312],{"type":26,"value":18313},"3. Quantum Advantage",{"type":21,"tag":22,"props":18315,"children":18316},{},[18317],{"type":21,"tag":205,"props":18318,"children":18319},{},[18320],{"type":26,"value":18321},"Die KI-Parallele: 10-facher Speedup, \"besser als der Mensch\"",{"type":21,"tag":22,"props":18323,"children":18324},{},[18325,18327,18332],{"type":26,"value":18326},"\"Quantum Advantage\" ist der Moment, in dem ein Quantencomputer ein bestimmtes reales Problem ",{"type":21,"tag":2071,"props":18328,"children":18329},{},[18330],{"type":26,"value":18331},"schneller oder besser",{"type":26,"value":18333}," löst, als es jeder klassische Computer kann. Es ist das quantentechnische Äquivalent zur \"übermenschlichen Leistung\" in KI-Benchmarks.",{"type":21,"tag":22,"props":18335,"children":18336},{},[18337,18339,18343],{"type":26,"value":18338},"IBM führte 2023 den verwandten Begriff ",{"type":21,"tag":205,"props":18340,"children":18341},{},[18342],{"type":26,"value":118},{"type":26,"value":18344}," ein, um Schaltkreise zu beschreiben, die zu komplex sind, um klassisch simuliert zu werden, aber praktisch nützlich sind — ein bodenständigerer Vorläufer des vollständigen Quantum Advantage. Erwarte, dass beide Begriffe in Pressemitteilungen, Finanzierungsankündigungen und regulatorischen Diskussionen auftauchen, wenn die Hardware ausreift.",{"type":21,"tag":22,"props":18346,"children":18347},{},[18348,18350,18355],{"type":26,"value":18349},"Die Unterscheidung ist wichtig: Quantum Advantage ist eine Eigenschaft einer ",{"type":21,"tag":2071,"props":18351,"children":18352},{},[18353],{"type":26,"value":18354},"Kombination aus Problem + Hardware",{"type":26,"value":18356},", keine pauschale Aussage darüber, dass Quantencomputer \"besser\" seien. Dies zu verstehen wird informierte Quantengespräche vom Hype trennen.",{"type":21,"tag":18198,"props":18358,"children":18359},{},[],{"type":21,"tag":29,"props":18361,"children":18363},{"id":18362},"_4-quantum-utility",[18364],{"type":26,"value":18365},"4. Quantum Utility",{"type":21,"tag":22,"props":18367,"children":18368},{},[18369],{"type":21,"tag":205,"props":18370,"children":18371},{},[18372],{"type":26,"value":18373},"Die KI-Parallele: \"Produktions-KI\" vs. Forschungsdemos",{"type":21,"tag":22,"props":18375,"children":18376},{},[18377,18379,18383],{"type":26,"value":18378},"Eng verwandt mit Quantum Advantage bedeutet ",{"type":21,"tag":205,"props":18380,"children":18381},{},[18382],{"type":26,"value":118},{"type":26,"value":18384}," speziell: ein Quantenschaltkreis, der Ergebnisse liefert, die für eine reale Anwendung nützlich sind, selbst wenn eine klassische Simulation genau dieses Schaltkreises im Prinzip noch möglich, aber unpraktikabel ist.",{"type":21,"tag":22,"props":18386,"children":18387},{},[18388,18390,18395],{"type":26,"value":18389},"IBM verwendete den Begriff erstmals in einer ",{"type":21,"tag":2071,"props":18391,"children":18392},{},[18393],{"type":26,"value":18394},"Nature",{"type":26,"value":18396},"-Arbeit von 2023, in der gezeigt wurde, dass bestimmte Quantenschaltkreise, die auf ihrem Eagle-Prozessor liefen, Ergebnisse produzierten, die eine klassische Simulation nicht leicht verifizieren konnte. Es ist ein erreichbarerer, kurzfristigerer Meilenstein als der vollständige Quantum Advantage — und derjenige, von dem wir in den nächsten Jahren am ehesten hören werden.",{"type":21,"tag":18198,"props":18398,"children":18399},{},[],{"type":21,"tag":29,"props":18401,"children":18403},{"id":18402},"_5-transpilation",[18404],{"type":26,"value":18405},"5. Transpilation",{"type":21,"tag":22,"props":18407,"children":18408},{},[18409],{"type":21,"tag":205,"props":18410,"children":18411},{},[18412],{"type":26,"value":18413},"Die KI-Parallele: Modellkompilierung \u002F Quantisierung",{"type":21,"tag":22,"props":18415,"children":18416},{},[18417,18419,18424],{"type":26,"value":18418},"Bevor ein Quantenschaltkreis auf echter Hardware läuft, muss er ",{"type":21,"tag":2071,"props":18420,"children":18421},{},[18422],{"type":26,"value":18423},"transpiliert",{"type":26,"value":18425}," werden — von abstrakten Operationen in den nativen Gate-Satz der Hardware umgewandelt, wobei Qubit-Operationen umgeleitet werden, um physische Konnektivitätsbeschränkungen zu berücksichtigen. Dies ist analog dazu, wie ein Deep-Learning-Modell für eine bestimmte Chip-Architektur kompiliert und optimiert werden muss.",{"type":21,"tag":2328,"props":18427,"children":18429},{"className":3207,"code":18428,"language":3209,"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",[18430],{"type":21,"tag":2097,"props":18431,"children":18432},{"__ignoreMap":7},[18433,18454,18461,18469],{"type":21,"tag":2338,"props":18434,"children":18435},{"class":2340,"line":2341},[18436,18440,18445,18449],{"type":21,"tag":2338,"props":18437,"children":18438},{"style":3219},[18439],{"type":26,"value":3222},{"type":21,"tag":2338,"props":18441,"children":18442},{"style":2345},[18443],{"type":26,"value":18444}," qiskit.compiler ",{"type":21,"tag":2338,"props":18446,"children":18447},{"style":3219},[18448],{"type":26,"value":3232},{"type":21,"tag":2338,"props":18450,"children":18451},{"style":2345},[18452],{"type":26,"value":18453}," transpile\n",{"type":21,"tag":2338,"props":18455,"children":18456},{"class":2340,"line":173},[18457],{"type":21,"tag":2338,"props":18458,"children":18459},{"emptyLinePlaceholder":3243},[18460],{"type":26,"value":3246},{"type":21,"tag":2338,"props":18462,"children":18463},{"class":2340,"line":2359},[18464],{"type":21,"tag":2338,"props":18465,"children":18466},{"style":3469},[18467],{"type":26,"value":18468},"# Circuit written in abstract gates\n",{"type":21,"tag":2338,"props":18470,"children":18471},{"class":2340,"line":2421},[18472,18477,18481,18486,18491,18495,18500,18504,18508,18512],{"type":21,"tag":2338,"props":18473,"children":18474},{"style":2345},[18475],{"type":26,"value":18476},"transpiled ",{"type":21,"tag":2338,"props":18478,"children":18479},{"style":3219},[18480],{"type":26,"value":3259},{"type":21,"tag":2338,"props":18482,"children":18483},{"style":2345},[18484],{"type":26,"value":18485}," transpile(circuit, ",{"type":21,"tag":2338,"props":18487,"children":18488},{"style":3284},[18489],{"type":26,"value":18490},"backend",{"type":21,"tag":2338,"props":18492,"children":18493},{"style":3219},[18494],{"type":26,"value":3259},{"type":21,"tag":2338,"props":18496,"children":18497},{"style":2345},[18498],{"type":26,"value":18499},"real_qpu, ",{"type":21,"tag":2338,"props":18501,"children":18502},{"style":3284},[18503],{"type":26,"value":6296},{"type":21,"tag":2338,"props":18505,"children":18506},{"style":3219},[18507],{"type":26,"value":3259},{"type":21,"tag":2338,"props":18509,"children":18510},{"style":2363},[18511],{"type":26,"value":6532},{"type":21,"tag":2338,"props":18513,"children":18514},{"style":2345},[18515],{"type":26,"value":3319},{"type":21,"tag":22,"props":18517,"children":18518},{},[18519],{"type":26,"value":18520},"Wenn Quantum in die Produktion geht, werden \"Transpilations-Overhead\" und \"Transpilations-Tiefe\" zu Standard-Engineering-Themen — genau wie Inferenzlatenz und Modellquantisierung es heute sind.",{"type":21,"tag":18198,"props":18522,"children":18523},{},[],{"type":21,"tag":29,"props":18525,"children":18527},{"id":18526},"_6-coherence-time-t1-t2",[18528],{"type":26,"value":18529},"6. Coherence Time (T1 \u002F T2)",{"type":21,"tag":22,"props":18531,"children":18532},{},[18533],{"type":21,"tag":205,"props":18534,"children":18535},{},[18536],{"type":26,"value":18537},"Die KI-Parallele: Kontextfenster \u002F Speicherlimit",{"type":21,"tag":22,"props":18539,"children":18540},{},[18541,18543,18548,18550,18555,18557,18562],{"type":26,"value":18542},"Ein Qubit bleibt nicht für immer quantenmechanisch. Es zerfällt — es verliert seine Superposition durch Umgebungsrauschen in einem Prozess, der als ",{"type":21,"tag":2071,"props":18544,"children":18545},{},[18546],{"type":26,"value":18547},"Dekohärenz",{"type":26,"value":18549}," bezeichnet wird. Die ",{"type":21,"tag":205,"props":18551,"children":18552},{},[18553],{"type":26,"value":18554},"T1-Zeit",{"type":26,"value":18556}," (Energierelaxation) und die ",{"type":21,"tag":205,"props":18558,"children":18559},{},[18560],{"type":26,"value":18561},"T2-Zeit",{"type":26,"value":18563}," (Phasenkohärenz) messen, wie lange ein Qubit nutzbar bleibt.",{"type":21,"tag":22,"props":18565,"children":18566},{},[18567,18569,18574],{"type":26,"value":18568},"Dies ist das quantentechnische Äquivalent eines Kontextfensters: Es definiert die ",{"type":21,"tag":2071,"props":18570,"children":18571},{},[18572],{"type":26,"value":18573},"maximale Schaltkreistiefe",{"type":26,"value":18575},", die du ausführen kannst, bevor deine Qubits zu klassischem Rauschen werden. IBMs supraleitende Qubits haben T2-Zeiten von etwa 100–300 Mikrosekunden. IonQs Ionenfallen-Qubits haben T2-Zeiten von über einer Sekunde — weshalb ihre Schaltkreise viel tiefer sein können.",{"type":21,"tag":2218,"props":18577,"children":18578},{},[18579],{"type":21,"tag":22,"props":18580,"children":18581},{},[18582],{"type":26,"value":18583},"\"Unser Schaltkreis ist zu tief für dieses Backend — wir erreichen T2, bevor das letzte Gate ausgeführt wird.\"",{"type":21,"tag":22,"props":18585,"children":18586},{},[18587],{"type":26,"value":18588},"Entwickler werden lernen, Kohärenzzeit so einzuplanen, wie sie Speicher einplanen.",{"type":21,"tag":18198,"props":18590,"children":18591},{},[],{"type":21,"tag":29,"props":18593,"children":18595},{"id":18594},"_7-decoherence-budget",[18596],{"type":26,"value":18597},"7. Decoherence Budget",{"type":21,"tag":22,"props":18599,"children":18600},{},[18601],{"type":21,"tag":205,"props":18602,"children":18603},{},[18604],{"type":26,"value":18605},"Die KI-Parallele: Latenz-Budget \u002F Compute-Budget",{"type":21,"tag":22,"props":18607,"children":18608},{},[18609,18611,18616],{"type":26,"value":18610},"Eine natürliche Erweiterung von T1\u002FT2: Das ",{"type":21,"tag":205,"props":18612,"children":18613},{},[18614],{"type":26,"value":18615},"Decoherence Budget",{"type":26,"value":18617}," ist die gesamte \"Kohärenzzeit\", die einem Schaltkreis zur Fertigstellung zur Verfügung steht, bevor sich Fehler über die Nutzbarkeit hinaus anhäufen. Längere Schaltkreise verbrauchen mehr Decoherence Budget.",{"type":21,"tag":22,"props":18619,"children":18620},{},[18621],{"type":26,"value":18622},"Da Quantenanwendungen komplexer werden, werden Architekten Systeme entwerfen, die innerhalb der Decoherence Budgets bleiben — und dabei Schaltkreistiefe gegen Ergebnis-Fidelity abwägen, ähnlich wie Backend-Ingenieure heute Antwortlatenz gegen Rechenkosten abwägen.",{"type":21,"tag":18198,"props":18624,"children":18625},{},[],{"type":21,"tag":29,"props":18627,"children":18629},{"id":18628},"_8-circuit-fidelity",[18630],{"type":26,"value":18631},"8. Circuit Fidelity",{"type":21,"tag":22,"props":18633,"children":18634},{},[18635],{"type":21,"tag":205,"props":18636,"children":18637},{},[18638],{"type":26,"value":18639},"Die KI-Parallele: Modellgenauigkeit \u002F F1-Score",{"type":21,"tag":22,"props":18641,"children":18642},{},[18643,18647],{"type":21,"tag":205,"props":18644,"children":18645},{},[18646],{"type":26,"value":13652},{"type":26,"value":18648}," misst, wie nah der tatsächliche Quantenzustand, den ein Schaltkreis erzeugt, am idealen theoretischen Zustand liegt. Ein Schaltkreis mit 99 % Fidelity ist ausgezeichnet. Einer mit 90 % kann für Präzisionsanwendungen unbrauchbar sein.",{"type":21,"tag":22,"props":18650,"children":18651},{},[18652],{"type":26,"value":18653},"Fidelity verschlechtert sich mit jedem angewendeten Gate (jedes Gate hat eine Fehlerrate) und mit der Schaltkreistiefe (längere Schaltkreise dekohärieren mehr). Sie wird zur primären Qualitätsmetrik für QPU-Ergebnisse werden — dem quantentechnischen Äquivalent der Modellgenauigkeit auf einem Benchmark.",{"type":21,"tag":18198,"props":18655,"children":18656},{},[],{"type":21,"tag":29,"props":18658,"children":18660},{"id":18659},"_9-physical-vs-logical-qubit",[18661],{"type":26,"value":18662},"9. Physical vs. Logical Qubit",{"type":21,"tag":22,"props":18664,"children":18665},{},[18666],{"type":21,"tag":205,"props":18667,"children":18668},{},[18669],{"type":26,"value":18670},"Die KI-Parallele: Rohparameter vs. effektive Modellkapazität",{"type":21,"tag":22,"props":18672,"children":18673},{},[18674,18676,18681,18683,18688,18690,18695],{"type":26,"value":18675},"Eine der wichtigsten Unterscheidungen, die sich durchsetzt: Ein ",{"type":21,"tag":205,"props":18677,"children":18678},{},[18679],{"type":26,"value":18680},"physisches Qubit",{"type":26,"value":18682}," ist ein echtes Hardware-Qubit (verrauscht, fehleranfällig). Ein ",{"type":21,"tag":205,"props":18684,"children":18685},{},[18686],{"type":26,"value":18687},"logisches Qubit",{"type":26,"value":18689}," ist ein ",{"type":21,"tag":2071,"props":18691,"children":18692},{},[18693],{"type":26,"value":18694},"fehlerkorrigiertes",{"type":26,"value":18696}," Qubit, das über viele physische Qubits hinweg kodiert ist — zuverlässig, aber teuer.",{"type":21,"tag":22,"props":18698,"children":18699},{},[18700,18702,18707],{"type":26,"value":18701},"Die heute beste Hardware (IBM, IonQ) arbeitet mit physischen Qubits. Vollständig fehlertolerantes Quantencomputing erfordert logische Qubits. Aktuelle Schätzungen beziffern das Verhältnis auf ",{"type":21,"tag":205,"props":18703,"children":18704},{},[18705],{"type":26,"value":18706},"1.000–10.000 physische Qubits pro logischem Qubit",{"type":26,"value":18708}," für die Fehlerkorrektur mit Surface Code.",{"type":21,"tag":22,"props":18710,"children":18711},{},[18712],{"type":26,"value":18713},"Wenn du hörst \"IBM hat 1.000 Qubits\", sind das physische Qubits. Ein fehlertoleranter Computer, der Shors Algorithmus gegen RSA-2048 ausführen kann, würde Millionen physischer Qubits benötigen.",{"type":21,"tag":22,"props":18715,"children":18716},{},[18717],{"type":26,"value":18718},"Das Verständnis dieser Unterscheidung wird entscheidend sein, um Quantenhardware-Marketing von der technischen Realität zu trennen.",{"type":21,"tag":18198,"props":18720,"children":18721},{},[],{"type":21,"tag":29,"props":18723,"children":18725},{"id":18724},"_10-quantum-safe-post-quantum-cryptography",[18726],{"type":26,"value":18727},"10. Quantum-Safe \u002F Post-Quantum Cryptography",{"type":21,"tag":22,"props":18729,"children":18730},{},[18731],{"type":21,"tag":205,"props":18732,"children":18733},{},[18734],{"type":26,"value":18735},"Die KI-Parallele: \"KI-resistent\" (weniger treffend) → tatsächlich näher an \"DSGVO für Algorithmen\"",{"type":21,"tag":22,"props":18737,"children":18738},{},[18739,18741,18746],{"type":26,"value":18740},"Diese verlässt bereits die Forschungswelt. ",{"type":21,"tag":205,"props":18742,"children":18743},{},[18744],{"type":26,"value":18745},"Post-Quantum Cryptography",{"type":26,"value":18747}," (PQC) bezeichnet klassische kryptografische Algorithmen, die so konzipiert sind, dass sie Angriffen von Quantencomputern widerstehen. Die Bedrohung: Shors Algorithmus kann die großen Primzahlen faktorisieren, die RSA zugrunde liegen, und damit den Großteil der heutigen Public-Key-Verschlüsselung brechen.",{"type":21,"tag":22,"props":18749,"children":18750},{},[18751,18753,18758],{"type":26,"value":18752},"NIST finalisierte 2024 seine ersten Post-Quantum-Cryptography-Standards (CRYSTALS-Kyber, CRYSTALS-Dilithium). ",{"type":21,"tag":205,"props":18754,"children":18755},{},[18756],{"type":26,"value":18757},"\"Quantum-safe\"",{"type":26,"value":18759}," wird innerhalb von fünf Jahren zu einem Zertifizierungs- und Compliance-Begriff — der in Sicherheitsaudits, Beschaffungsanforderungen und der Dokumentation von Cloud-Anbietern auftaucht.",{"type":21,"tag":22,"props":18761,"children":18762},{},[18763,18765,18770],{"type":26,"value":18764},"Der Angriffsvektor, auf den sich die meisten Organisationen vorbereiten sollten: ",{"type":21,"tag":205,"props":18766,"children":18767},{},[18768],{"type":26,"value":18769},"\"harvest now, decrypt later\"",{"type":26,"value":18771}," — Angreifer sammeln heute verschlüsselte Daten mit der Absicht, sie zu entschlüsseln, sobald Quantencomputer leistungsfähig genug sind.",{"type":21,"tag":18198,"props":18773,"children":18774},{},[],{"type":21,"tag":29,"props":18776,"children":18778},{"id":18777},"_11-hybrid-algorithm-quantum-classical-hybrid",[18779],{"type":26,"value":18780},"11. Hybrid Algorithm \u002F Quantum-Classical Hybrid",{"type":21,"tag":22,"props":18782,"children":18783},{},[18784],{"type":21,"tag":205,"props":18785,"children":18786},{},[18787],{"type":26,"value":18788},"Die KI-Parallele: \"KI-gestützte\" Workflows, heterogenes CPU+GPU-Computing",{"type":21,"tag":22,"props":18790,"children":18791},{},[18792,18794,18799],{"type":26,"value":18793},"Fast alle kurzfristigen Quantenanwendungen sind ",{"type":21,"tag":205,"props":18795,"children":18796},{},[18797],{"type":26,"value":18798},"hybrid",{"type":26,"value":18800},": Ein klassischer Optimierer ruft wiederholt einen Quantenschaltkreis auf und nutzt Quantenhardware für die Teile, mit denen klassische Computer Schwierigkeiten haben (Zustandspräparation, Interferenz), während klassische Computer die Optimierungsschleifen übernehmen.",{"type":21,"tag":22,"props":18802,"children":18803},{},[18804],{"type":26,"value":18805},"VQE und QAOA sind die kanonischen Hybridalgorithmen. Wenn Quanten-Programmier-Frameworks ausreifen, wird \"Hybrid-Workflow-Orchestrierung\" — das Verwalten der Übergabe zwischen klassischer und Quanten-Berechnung — zu einem Standard-Softwareproblem. Erwarte Werkzeuge, Frameworks und Berufsbezeichnungen, die darum herum aufgebaut werden.",{"type":21,"tag":18198,"props":18807,"children":18808},{},[],{"type":21,"tag":29,"props":18810,"children":18812},{"id":18811},"_12-variational-circuit-parameterized-quantum-circuit",[18813],{"type":26,"value":18814},"12. Variational Circuit (Parameterized Quantum Circuit)",{"type":21,"tag":22,"props":18816,"children":18817},{},[18818],{"type":21,"tag":205,"props":18819,"children":18820},{},[18821],{"type":26,"value":18822},"Die KI-Parallele: Neuronales Netz (trainierbare Gewichte)",{"type":21,"tag":22,"props":18824,"children":18825},{},[18826,18828,18832,18834,18839],{"type":26,"value":18827},"Ein ",{"type":21,"tag":205,"props":18829,"children":18830},{},[18831],{"type":26,"value":13857},{"type":26,"value":18833}," oder ",{"type":21,"tag":205,"props":18835,"children":18836},{},[18837],{"type":26,"value":18838},"parameterized quantum circuit (PQC)",{"type":26,"value":18840}," ist ein Quantenschaltkreis mit einstellbaren Rotationswinkeln — im Wesentlichen eine Schicht eines quantenmechanischen neuronalen Netzes. Die Parameter werden von einem klassischen Optimierer angepasst, um eine Kostenfunktion zu minimieren.",{"type":21,"tag":22,"props":18842,"children":18843},{},[18844],{"type":26,"value":18845},"VQE verwendet einen variational circuit als Energieschätzer. QAOA verwendet einen, um Optimierungsprobleme zu kodieren. Wenn sich das quantenmechanische Machine Learning entwickelt, wird \"einen Quantenschaltkreis trainieren\" zu einer ebenso natürlichen Formulierung wie \"ein neuronales Netz trainieren\".",{"type":21,"tag":18198,"props":18847,"children":18848},{},[],{"type":21,"tag":29,"props":18850,"children":18852},{"id":18851},"_13-quantum-volume-qv",[18853],{"type":26,"value":18854},"13. Quantum Volume (QV)",{"type":21,"tag":22,"props":18856,"children":18857},{},[18858],{"type":21,"tag":205,"props":18859,"children":18860},{},[18861],{"type":26,"value":18862},"Die KI-Parallele: FLOPS, Benchmark-Scores (MLPerf)",{"type":21,"tag":22,"props":18864,"children":18865},{},[18866,18870],{"type":21,"tag":205,"props":18867,"children":18868},{},[18869],{"type":26,"value":3162},{"type":26,"value":18871}," ist ein von IBM eingeführter Benchmark aus einer einzigen Zahl, der die QPU-Leistung ganzheitlich erfasst — indem er Qubit-Anzahl, Gate-Fidelity, Konnektivität und maximal ausführbare Schaltkreistiefe gleichzeitig berücksichtigt.",{"type":21,"tag":22,"props":18873,"children":18874},{},[18875],{"type":26,"value":18876},"Eine QPU mit QV 128 (= 2^7, ein Schaltkreis, der 7 Qubits entspricht) übertrifft eine mit QV 64, selbst wenn die Maschine mit niedrigerem QV mehr rohe Qubits hat. Es ist der \"MLPerf-Score\" der Quantenwelt — eine Zahl, mit der Anbieter werben und die Entwickler zum Vergleich von Hardware verwenden werden.",{"type":21,"tag":18198,"props":18878,"children":18879},{},[],{"type":21,"tag":29,"props":18881,"children":18883},{"id":18882},"_14-quantum-job-quantum-queue",[18884],{"type":26,"value":18885},"14. Quantum Job \u002F Quantum Queue",{"type":21,"tag":22,"props":18887,"children":18888},{},[18889],{"type":21,"tag":205,"props":18890,"children":18891},{},[18892],{"type":26,"value":18893},"Die KI-Parallele: Batch-Inferenz-Jobs, GPU-Warteschlange",{"type":21,"tag":22,"props":18895,"children":18896},{},[18897,18899,18904,18906,18911],{"type":26,"value":18898},"Wenn du einen Schaltkreis an eine echte QPU übermittelst, sendest du einen ",{"type":21,"tag":205,"props":18900,"children":18901},{},[18902],{"type":26,"value":18903},"quantum job",{"type":26,"value":18905},", der in eine ",{"type":21,"tag":205,"props":18907,"children":18908},{},[18909],{"type":26,"value":18910},"quantum queue",{"type":26,"value":18912}," eintritt — ein Planungssystem, das den Zugriff auf gemeinsam genutzte Hardware verwaltet. Jobs im kostenlosen Tarif von IBM Quantum warten oft Minuten oder Stunden in der Warteschlange hinter zahlenden Kunden.",{"type":21,"tag":22,"props":18914,"children":18915},{},[18916],{"type":26,"value":18917},"\"Job-Durchsatz\", \"Warteschlangentiefe\" und \"Job-Priorität\" werden zu operativen Metriken für Quanten-Infrastrukturteams — dem Geiste nach identisch mit dem heutigen Verwalten von Job-Warteschlangen in GPU-Clustern.",{"type":21,"tag":18198,"props":18919,"children":18920},{},[],{"type":21,"tag":29,"props":18922,"children":18924},{"id":18923},"_15-error-mitigation-vs-error-correction",[18925],{"type":26,"value":18926},"15. Error Mitigation vs. Error Correction",{"type":21,"tag":22,"props":18928,"children":18929},{},[18930],{"type":21,"tag":205,"props":18931,"children":18932},{},[18933],{"type":26,"value":18934},"Die KI-Parallele: Regularisierung (Mitigation) vs. Hardware-ECC (Correction)",{"type":21,"tag":22,"props":18936,"children":18937},{},[18938],{"type":26,"value":18939},"Diese Unterscheidung ist wichtig und wird ständig falsch verwendet werden, sobald Quantum in den Mainstream gelangt.",{"type":21,"tag":22,"props":18941,"children":18942},{},[18943,18947],{"type":21,"tag":205,"props":18944,"children":18945},{},[18946],{"type":26,"value":194},{"type":26,"value":18948}," — das Kodieren logischer Qubits mit Redundanz, damit Fehler erkannt und behoben werden können. Erfordert einen physisch-zu-logisch-Overhead von etwa 1.000:1. Noch nicht in großem Maßstab verfügbar.",{"type":21,"tag":22,"props":18950,"children":18951},{},[18952,18957,18959,18964],{"type":21,"tag":205,"props":18953,"children":18954},{},[18955],{"type":26,"value":18956},"Error Mitigation",{"type":26,"value":18958}," — klassische Nachbearbeitungstechniken, die den Effekt von Rauschen statistisch reduzieren, ",{"type":21,"tag":2071,"props":18960,"children":18961},{},[18962],{"type":26,"value":18963},"ohne",{"type":26,"value":18965}," ihn physisch zu korrigieren. Zero-Noise Extrapolation, Probabilistic Error Cancellation, Measurement Error Mitigation. Jetzt verfügbar, auf NISQ-Hardware.",{"type":21,"tag":22,"props":18967,"children":18968},{},[18969],{"type":26,"value":18970},"Wenn ein Anbieter behauptet, seine QPU \"behandle Fehler\", frage immer, welche der beiden er meint.",{"type":21,"tag":18198,"props":18972,"children":18973},{},[],{"type":21,"tag":29,"props":18975,"children":18977},{"id":18976},"_16-quantum-developer-quantum-engineer",[18978],{"type":26,"value":18979},"16. Quantum Developer \u002F Quantum Engineer",{"type":21,"tag":22,"props":18981,"children":18982},{},[18983],{"type":21,"tag":205,"props":18984,"children":18985},{},[18986],{"type":26,"value":18987},"Die KI-Parallele: ML Engineer, AI Engineer, Prompt Engineer",{"type":21,"tag":22,"props":18989,"children":18990},{},[18991,18993,18998],{"type":26,"value":18992},"Vielleicht der folgenreichste neue Begriff: der ",{"type":21,"tag":205,"props":18994,"children":18995},{},[18996],{"type":26,"value":18997},"quantum developer",{"type":26,"value":18999},". So wie sich die Rolle des \"AI Engineer\" um 2023 herauskristallisierte — abgegrenzt sowohl vom traditionellen Software Engineering als auch von der ML-Forschung — entsteht die Rolle des \"quantum developer\" rund um ein spezifisches Kompetenzprofil:",{"type":21,"tag":3137,"props":19001,"children":19002},{},[19003,19008,19013,19018],{"type":21,"tag":3141,"props":19004,"children":19005},{},[19006],{"type":26,"value":19007},"Schreiben von Schaltkreisen in Frameworks wie Qiskit, Cirq oder HLQuantum",{"type":21,"tag":3141,"props":19009,"children":19010},{},[19011],{"type":26,"value":19012},"Verständnis von Hardware-Beschränkungen (Konnektivität, Rauschen, Kohärenz)",{"type":21,"tag":3141,"props":19014,"children":19015},{},[19016],{"type":26,"value":19017},"Entwurf hybrider klassisch-quantenmechanischer Workflows",{"type":21,"tag":3141,"props":19019,"children":19020},{},[19021],{"type":26,"value":19022},"Interpretation probabilistischer Ergebnisse und Fidelity-Metriken",{"type":21,"tag":22,"props":19024,"children":19025},{},[19026,19028,19034],{"type":26,"value":19027},"Werkzeuge wie ",{"type":21,"tag":41,"props":19029,"children":19031},{"href":19030},"\u002Fhlquantum",[19032],{"type":26,"value":19033},"HLQuantum",{"type":26,"value":19035}," — die eine einheitliche API über alle Backends hinweg bereitstellen — beschleunigen dies, indem sie Entwicklern ermöglichen, portablen Quantencode zu schreiben, ohne tiefe Expertise in den Eigenheiten jedes einzelnen SDKs zu benötigen. Der \"quantum developer\" von 2028 wird wahrscheinlich eine Abstraktionsschicht so nutzen, wie der heutige Webentwickler ein Framework nutzt, anstatt rohe Schaltkreise für jedes Backend zu schreiben.",{"type":21,"tag":18198,"props":19037,"children":19038},{},[],{"type":21,"tag":29,"props":19040,"children":19042},{"id":19041},"das-muster",[19043],{"type":26,"value":19044},"Das Muster",{"type":21,"tag":22,"props":19046,"children":19047},{},[19048],{"type":26,"value":19049},"Wenn man diese 16 Begriffe überblickt, zeichnet sich ein Muster ab. Jeder große Plattformwechsel erzeugt:",{"type":21,"tag":7028,"props":19051,"children":19052},{},[19053,19063,19073,19083,19093,19103,19113],{"type":21,"tag":3141,"props":19054,"children":19055},{},[19056,19061],{"type":21,"tag":205,"props":19057,"children":19058},{},[19059],{"type":26,"value":19060},"Eine neue Recheneinheit",{"type":26,"value":19062}," — GPU → QPU, Tokens → Shots",{"type":21,"tag":3141,"props":19064,"children":19065},{},[19066,19071],{"type":21,"tag":205,"props":19067,"children":19068},{},[19069],{"type":26,"value":19070},"Eine neue Ressourcenbeschränkung",{"type":26,"value":19072}," — VRAM, Kontextfenster → Kohärenzzeit, Shot Budget",{"type":21,"tag":3141,"props":19074,"children":19075},{},[19076,19081],{"type":21,"tag":205,"props":19077,"children":19078},{},[19079],{"type":26,"value":19080},"Eine neue Qualitätsmetrik",{"type":26,"value":19082}," — Genauigkeit, F1 → Fidelity, Quantum Volume",{"type":21,"tag":3141,"props":19084,"children":19085},{},[19086,19091],{"type":21,"tag":205,"props":19087,"children":19088},{},[19089],{"type":26,"value":19090},"Ein neuer Kompilierungsschritt",{"type":26,"value":19092}," — Modellquantisierung → Transpilation",{"type":21,"tag":3141,"props":19094,"children":19095},{},[19096,19101],{"type":21,"tag":205,"props":19097,"children":19098},{},[19099],{"type":26,"value":19100},"Eine neue Hybridarchitektur",{"type":26,"value":19102}," — CPU+GPU → klassisch+quantenmechanisch",{"type":21,"tag":3141,"props":19104,"children":19105},{},[19106,19111],{"type":21,"tag":205,"props":19107,"children":19108},{},[19109],{"type":26,"value":19110},"Eine neue Sicherheitsfläche",{"type":26,"value":19112}," — adversariales ML → Post-Quantum Cryptography",{"type":21,"tag":3141,"props":19114,"children":19115},{},[19116,19121],{"type":21,"tag":205,"props":19117,"children":19118},{},[19119],{"type":26,"value":19120},"Eine neue Berufsbezeichnung",{"type":26,"value":19122}," — ML Engineer → Quantum Engineer",{"type":21,"tag":22,"props":19124,"children":19125},{},[19126],{"type":26,"value":19127},"Das Vokabular des Quantencomputings ist nicht nur Fachjargon — es bildet direkt reale Engineering-Beschränkungen, reale Kompromisse und reale Chancen ab. Es zu lernen, bevor die Mainstream-Welle eintrifft, ist dieselbe Wette, die frühe Cloud-Ingenieure eingingen, als sie anfingen, sich um \"Latenz\" und \"Durchsatz\" zu kümmern, bevor es die meisten Entwickler taten.",{"type":21,"tag":22,"props":19129,"children":19130},{},[19131],{"type":26,"value":19132},"Der beste Zeitpunkt zum Anfangen war vor fünf Jahren. Der zweitbeste ist jetzt — solange der Zugang zur Hardware noch kostenlos und die Lernkurve am niedrigsten ist.",{"type":21,"tag":22,"props":19134,"children":19135},{},[19136,19141,19142],{"type":21,"tag":205,"props":19137,"children":19138},{},[19139],{"type":26,"value":19140},"Fang hier an:",{"type":26,"value":1367},{"type":21,"tag":41,"props":19143,"children":19144},{"href":472},[19145],{"type":26,"value":19146},"Führe deinen ersten Quantenschaltkreis kostenlos aus →",{"type":21,"tag":2712,"props":19148,"children":19149},{},[19150],{"type":26,"value":2716},{"title":7,"searchDepth":173,"depth":173,"links":19152},[19153,19154,19155,19156,19157,19158,19159,19160,19161,19162,19163,19164,19165,19166,19167,19168,19169],{"id":18203,"depth":173,"text":18206},{"id":18256,"depth":173,"text":18259},{"id":18310,"depth":173,"text":18313},{"id":18362,"depth":173,"text":18365},{"id":18402,"depth":173,"text":18405},{"id":18526,"depth":173,"text":18529},{"id":18594,"depth":173,"text":18597},{"id":18628,"depth":173,"text":18631},{"id":18659,"depth":173,"text":18662},{"id":18724,"depth":173,"text":18727},{"id":18777,"depth":173,"text":18780},{"id":18811,"depth":173,"text":18814},{"id":18851,"depth":173,"text":18854},{"id":18882,"depth":173,"text":18885},{"id":18923,"depth":173,"text":18926},{"id":18976,"depth":173,"text":18979},{"id":19041,"depth":173,"text":19044},"content:de:blog:quantum-computing-new-vocabulary.md","de\u002Fblog\u002Fquantum-computing-new-vocabulary.md","de\u002Fblog\u002Fquantum-computing-new-vocabulary",{"_path":19174,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":19175,"description":19176,"date":19177,"author":11,"tags":19178,"readingTime":16,"body":19179,"_type":180,"_id":20192,"_source":182,"_file":20193,"_stem":20194,"_extension":185},"\u002Fde\u002Fblog\u002Fquantum-use-cases-2026","Was Quantencomputer 2026 tatsächlich können","Ein realistischer Blick darauf, welche Anwendungen des Quantencomputings heute produktionsreif sind, welche kurzfristig bevorstehen und welche langfristige Forschungsziele bleiben — echter Fortschritt getrennt vom Hype.","2026-03-12",[13,2042,7169],{"type":18,"children":19180,"toc":20172},[19181,19186,19191,19197,19202,19235,19240,19243,19249,19255,19265,19275,19285,19295,19305,19470,19473,19479,19488,19497,19515,19525,19534,19537,19543,19552,19569,19578,19595,19598,19604,19613,19622,19639,19649,19652,19658,19664,19673,19682,19692,19702,19705,19711,19736,19745,19754,19757,19763,19772,19781,19790,19799,19802,19808,19814,19823,19833,19843,19859,19862,19868,19877,19886,19895,19898,19904,19913,19922,19931,19934,19940,20106,20125,20137,20142,20168],{"type":21,"tag":22,"props":19182,"children":19183},{},[19184],{"type":26,"value":19185},"„Quantencomputer werden die Medikamentenentwicklung revolutionieren, jede Verschlüsselung knacken und den Klimawandel lösen.\" Sie kennen diesen Pitch. Und hier ist die ehrliche Antwort: Was können Quantencomputer 2026 tatsächlich leisten, auf der Hardware, die heute existiert?",{"type":21,"tag":22,"props":19187,"children":19188},{},[19189],{"type":26,"value":19190},"Die ehrliche Antwort ist vielschichtig — und interessanter, als es sowohl der Hype als auch die Skepsis vermuten lassen.",{"type":21,"tag":29,"props":19192,"children":19194},{"id":19193},"wie-man-über-quantenreife-nachdenken-sollte",[19195],{"type":26,"value":19196},"Wie man über Quantenreife nachdenken sollte",{"type":21,"tag":22,"props":19198,"children":19199},{},[19200],{"type":26,"value":19201},"Quantenanwendungen fallen in drei Kategorien:",{"type":21,"tag":3137,"props":19203,"children":19204},{},[19205,19215,19225],{"type":21,"tag":3141,"props":19206,"children":19207},{},[19208,19213],{"type":21,"tag":205,"props":19209,"children":19210},{},[19211],{"type":26,"value":19212},"Anwendungen der NISQ-Ära (jetzt):",{"type":26,"value":19214}," Algorithmen, die auf der heutigen verrauschten Hardware mit 50–1000 Qubits und begrenzter Schaltkreistiefe funktionieren. Ergebnisse können näherungsweise sein. Der Wert ist explorativ oder demonstrativ.",{"type":21,"tag":3141,"props":19216,"children":19217},{},[19218,19223],{"type":21,"tag":205,"props":19219,"children":19220},{},[19221],{"type":26,"value":19222},"Kurzfristige Anwendungen (2–7 Jahre):",{"type":26,"value":19224}," Erfordern moderate Fehlerkorrektur — Hunderte bis einige Tausend logische Qubits. Praktische Beschleunigungen für bestimmte Probleminstanzen beginnen aufzutauchen.",{"type":21,"tag":3141,"props":19226,"children":19227},{},[19228,19233],{"type":21,"tag":205,"props":19229,"children":19230},{},[19231],{"type":26,"value":19232},"Langfristige Anwendungen (7–20+ Jahre):",{"type":26,"value":19234}," Erfordern Millionen physischer Qubits und vollständige Fehlertoleranz. Transformative Wirkung.",{"type":21,"tag":22,"props":19236,"children":19237},{},[19238],{"type":26,"value":19239},"Die Kluft zwischen Hype und Realität entsteht meist durch die Verwechslung dieser drei Kategorien.",{"type":21,"tag":18198,"props":19241,"children":19242},{},[],{"type":21,"tag":29,"props":19244,"children":19246},{"id":19245},"was-jetzt-funktioniert-nisq-ära",[19247],{"type":26,"value":19248},"Was jetzt funktioniert (NISQ-Ära)",{"type":21,"tag":17383,"props":19250,"children":19252},{"id":19251},"quantenchemie-simulation-begrenzte-moleküle",[19253],{"type":26,"value":19254},"Quantenchemie-Simulation — begrenzte Moleküle",{"type":21,"tag":22,"props":19256,"children":19257},{},[19258,19263],{"type":21,"tag":205,"props":19259,"children":19260},{},[19261],{"type":26,"value":19262},"Was:",{"type":26,"value":19264}," Simulation der Grundzustandsenergie kleiner Moleküle mit VQE.",{"type":21,"tag":22,"props":19266,"children":19267},{},[19268,19273],{"type":21,"tag":205,"props":19269,"children":19270},{},[19271],{"type":26,"value":19272},"Demonstriert:",{"type":26,"value":19274}," IBM und andere haben Grundzustandsenergien für H₂, LiH, BeH₂ und kleine Kohlenwasserstoffe auf echten QPUs berechnet. Die Ergebnisse stimmen für Probleme mit 4–12 Qubits mit klassischen Methoden überein.",{"type":21,"tag":22,"props":19276,"children":19277},{},[19278,19283],{"type":21,"tag":205,"props":19279,"children":19280},{},[19281],{"type":26,"value":19282},"Praktischer Wert jetzt:",{"type":26,"value":19284}," Forschung und Benchmarking. Für Moleküle, die auch klassische Computer exakt simulieren können, gibt es keinen Vorteil — aber die Methoden werden validiert.",{"type":21,"tag":22,"props":19286,"children":19287},{},[19288,19293],{"type":21,"tag":205,"props":19289,"children":19290},{},[19291],{"type":26,"value":19292},"Engpass:",{"type":26,"value":19294}," Die Skalierung auf Moleküle mit praktischer pharmazeutischer Relevanz (50+ Atome) erfordert Hunderte logischer Qubits. Auf der aktuellen verrauschten Hardware nicht möglich.",{"type":21,"tag":22,"props":19296,"children":19297},{},[19298,19303],{"type":21,"tag":205,"props":19299,"children":19300},{},[19301],{"type":26,"value":19302},"Wer daran arbeitet:",{"type":26,"value":19304}," IBM Quantum, IonQ (für Partnerschaften in der Medikamentenentwicklung), Quantinuum.",{"type":21,"tag":2328,"props":19306,"children":19308},{"className":3207,"code":19307,"language":3209,"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",[19309],{"type":21,"tag":2097,"props":19310,"children":19311},{"__ignoreMap":7},[19312,19333,19340,19348,19418],{"type":21,"tag":2338,"props":19313,"children":19314},{"class":2340,"line":2341},[19315,19319,19324,19328],{"type":21,"tag":2338,"props":19316,"children":19317},{"style":3219},[19318],{"type":26,"value":3232},{"type":21,"tag":2338,"props":19320,"children":19321},{"style":2345},[19322],{"type":26,"value":19323}," hlquantum ",{"type":21,"tag":2338,"props":19325,"children":19326},{"style":3219},[19327],{"type":26,"value":4299},{"type":21,"tag":2338,"props":19329,"children":19330},{"style":2345},[19331],{"type":26,"value":19332}," hlq\n",{"type":21,"tag":2338,"props":19334,"children":19335},{"class":2340,"line":173},[19336],{"type":21,"tag":2338,"props":19337,"children":19338},{"emptyLinePlaceholder":3243},[19339],{"type":26,"value":3246},{"type":21,"tag":2338,"props":19341,"children":19342},{"class":2340,"line":2359},[19343],{"type":21,"tag":2338,"props":19344,"children":19345},{"style":3469},[19346],{"type":26,"value":19347},"# VQE for H2 — works today, results match classical\n",{"type":21,"tag":2338,"props":19349,"children":19350},{"class":2340,"line":2421},[19351,19356,19360,19365,19370,19374,19379,19383,19388,19392,19397,19401,19405,19409,19414],{"type":21,"tag":2338,"props":19352,"children":19353},{"style":2345},[19354],{"type":26,"value":19355},"result ",{"type":21,"tag":2338,"props":19357,"children":19358},{"style":3219},[19359],{"type":26,"value":3259},{"type":21,"tag":2338,"props":19361,"children":19362},{"style":2345},[19363],{"type":26,"value":19364}," hlq.algorithms.vqe(",{"type":21,"tag":2338,"props":19366,"children":19367},{"style":3284},[19368],{"type":26,"value":19369},"molecule",{"type":21,"tag":2338,"props":19371,"children":19372},{"style":3219},[19373],{"type":26,"value":3259},{"type":21,"tag":2338,"props":19375,"children":19376},{"style":2374},[19377],{"type":26,"value":19378},"'H2'",{"type":21,"tag":2338,"props":19380,"children":19381},{"style":2345},[19382],{"type":26,"value":1375},{"type":21,"tag":2338,"props":19384,"children":19385},{"style":3284},[19386],{"type":26,"value":19387},"basis",{"type":21,"tag":2338,"props":19389,"children":19390},{"style":3219},[19391],{"type":26,"value":3259},{"type":21,"tag":2338,"props":19393,"children":19394},{"style":2374},[19395],{"type":26,"value":19396},"'sto-3g'",{"type":21,"tag":2338,"props":19398,"children":19399},{"style":2345},[19400],{"type":26,"value":1375},{"type":21,"tag":2338,"props":19402,"children":19403},{"style":3284},[19404],{"type":26,"value":18490},{"type":21,"tag":2338,"props":19406,"children":19407},{"style":3219},[19408],{"type":26,"value":3259},{"type":21,"tag":2338,"props":19410,"children":19411},{"style":2374},[19412],{"type":26,"value":19413},"'qiskit'",{"type":21,"tag":2338,"props":19415,"children":19416},{"style":2345},[19417],{"type":26,"value":3319},{"type":21,"tag":2338,"props":19419,"children":19420},{"class":2340,"line":2445},[19421,19425,19429,19433,19438,19442,19447,19451,19455,19460,19465],{"type":21,"tag":2338,"props":19422,"children":19423},{"style":2363},[19424],{"type":26,"value":3334},{"type":21,"tag":2338,"props":19426,"children":19427},{"style":2345},[19428],{"type":26,"value":3339},{"type":21,"tag":2338,"props":19430,"children":19431},{"style":3219},[19432],{"type":26,"value":3344},{"type":21,"tag":2338,"props":19434,"children":19435},{"style":2374},[19436],{"type":26,"value":19437},"\"Ground state: ",{"type":21,"tag":2338,"props":19439,"children":19440},{"style":2363},[19441],{"type":26,"value":3354},{"type":21,"tag":2338,"props":19443,"children":19444},{"style":2345},[19445],{"type":26,"value":19446},"result.energy",{"type":21,"tag":2338,"props":19448,"children":19449},{"style":3219},[19450],{"type":26,"value":3666},{"type":21,"tag":2338,"props":19452,"children":19453},{"style":2363},[19454],{"type":26,"value":3364},{"type":21,"tag":2338,"props":19456,"children":19457},{"style":2374},[19458],{"type":26,"value":19459}," Ha\"",{"type":21,"tag":2338,"props":19461,"children":19462},{"style":2345},[19463],{"type":26,"value":19464},")  ",{"type":21,"tag":2338,"props":19466,"children":19467},{"style":3469},[19468],{"type":26,"value":19469},"# -1.1372 Ha\n",{"type":21,"tag":18198,"props":19471,"children":19472},{},[],{"type":21,"tag":17383,"props":19474,"children":19476},{"id":19475},"quantum-machine-learning-machbarkeitsnachweis",[19477],{"type":26,"value":19478},"Quantum Machine Learning — Machbarkeitsnachweis",{"type":21,"tag":22,"props":19480,"children":19481},{},[19482,19486],{"type":21,"tag":205,"props":19483,"children":19484},{},[19485],{"type":26,"value":19262},{"type":26,"value":19487}," Quanten-neuronale Netze (QNNs) und Quanten-Kernel-Methoden zur Klassifikation.",{"type":21,"tag":22,"props":19489,"children":19490},{},[19491,19495],{"type":21,"tag":205,"props":19492,"children":19493},{},[19494],{"type":26,"value":19272},{"type":26,"value":19496}," Quanten-Kernel funktionieren nachweislich auf Spielzeug-Datensätzen. Für praktische Datensätze wurde kein Quantenvorteil gegenüber klassischem ML nachgewiesen.",{"type":21,"tag":22,"props":19498,"children":19499},{},[19500,19504,19506,19513],{"type":21,"tag":205,"props":19501,"children":19502},{},[19503],{"type":26,"value":19282},{"type":26,"value":19505}," Forschung. Das „",{"type":21,"tag":41,"props":19507,"children":19510},{"href":19508,"rel":19509},"https:\u002F\u002Farxiv.org\u002Fabs\u002F2109.01aborting",[963],[19511],{"type":26,"value":19512},"no free lunch",{"type":26,"value":19514},"\"-Problem gilt — ein Quantenvorteil im QML, falls er existiert, wird für spezifische Daten mit spezifischer Quantenstruktur bestehen.",{"type":21,"tag":22,"props":19516,"children":19517},{},[19518,19523],{"type":21,"tag":205,"props":19519,"children":19520},{},[19521],{"type":26,"value":19522},"Aufkommender realistischer Anwendungsfall:",{"type":26,"value":19524}," Quanten-Kernel für Datensätze, die aus quantenphysikalischen Experimenten stammen, könnten eine inhärente Quantenstruktur besitzen, die Quanten-ML besser ausnutzt als klassische Methoden.",{"type":21,"tag":22,"props":19526,"children":19527},{},[19528,19532],{"type":21,"tag":205,"props":19529,"children":19530},{},[19531],{"type":26,"value":19302},{"type":26,"value":19533}," PennyLane\u002FXanadu (QML-Fokus), IBM, Google (Quantum AI).",{"type":21,"tag":18198,"props":19535,"children":19536},{},[],{"type":21,"tag":17383,"props":19538,"children":19540},{"id":19539},"optimierungs-benchmarking-qaoa",[19541],{"type":26,"value":19542},"Optimierungs-Benchmarking (QAOA)",{"type":21,"tag":22,"props":19544,"children":19545},{},[19546,19550],{"type":21,"tag":205,"props":19547,"children":19548},{},[19549],{"type":26,"value":19262},{"type":26,"value":19551}," QAOA angewandt auf Max-Cut, Portfolio-Optimierung, Fahrzeugrouting.",{"type":21,"tag":22,"props":19553,"children":19554},{},[19555,19559,19561,19567],{"type":21,"tag":205,"props":19556,"children":19557},{},[19558],{"type":26,"value":19272},{"type":26,"value":19560}," QAOA-Schaltkreise wurden auf echter Hardware ausgeführt. Bei ",{"type":21,"tag":2097,"props":19562,"children":19564},{"className":19563},[],[19565],{"type":26,"value":19566},"p=1",{"type":26,"value":19568}," sind auf NISQ-Geräten Approximationsverhältnisse von ~0,75 bei Max-Cut erreichbar.",{"type":21,"tag":22,"props":19570,"children":19571},{},[19572,19576],{"type":21,"tag":205,"props":19573,"children":19574},{},[19575],{"type":26,"value":19282},{"type":26,"value":19577}," Nicht konkurrenzfähig mit klassischen Solvern (Simulated Annealing, GUROBI) für reale Problemgrößen. Wertvoll für Forschung und Hardware-Benchmarking.",{"type":21,"tag":22,"props":19579,"children":19580},{},[19581,19586,19588,19593],{"type":21,"tag":205,"props":19582,"children":19583},{},[19584],{"type":26,"value":19585},"Wann es relevant wird:",{"type":26,"value":19587}," Bei ",{"type":21,"tag":2097,"props":19589,"children":19591},{"className":19590},[],[19592],{"type":26,"value":22},{"type":26,"value":19594}," groß genug für einen signifikanten Vorteil sind die Schaltkreise zu tief für NISQ-Geräte. Fehlerkorrektur wird benötigt.",{"type":21,"tag":18198,"props":19596,"children":19597},{},[],{"type":21,"tag":17383,"props":19599,"children":19601},{"id":19600},"random-circuit-sampling-ansprüche-auf-quantenüberlegenheit",[19602],{"type":26,"value":19603},"Random Circuit Sampling (Ansprüche auf Quantenüberlegenheit)",{"type":21,"tag":22,"props":19605,"children":19606},{},[19607,19611],{"type":21,"tag":205,"props":19608,"children":19609},{},[19610],{"type":26,"value":19262},{"type":26,"value":19612}," Sampling aus zufälligen Quantenschaltkreisen.",{"type":21,"tag":22,"props":19614,"children":19615},{},[19616,19620],{"type":21,"tag":205,"props":19617,"children":19618},{},[19619],{"type":26,"value":19272},{"type":26,"value":19621}," Google (2019, Sycamore), IBM (2023, Eagle), chinesische Gruppen (2020, 2021).",{"type":21,"tag":22,"props":19623,"children":19624},{},[19625,19630,19632,19637],{"type":21,"tag":205,"props":19626,"children":19627},{},[19628],{"type":26,"value":19629},"Praktischer Wert:",{"type":26,"value":19631}," Derzeit keiner — Random Circuit Sampling hat keine bekannte Anwendung. Es ist ein Hardware-Benchmark, der zeigt, dass Quantengeräte ",{"type":21,"tag":2071,"props":19633,"children":19634},{},[19635],{"type":26,"value":19636},"etwas",{"type":26,"value":19638}," tun, das klassische Computer nur schwer simulieren können.",{"type":21,"tag":22,"props":19640,"children":19641},{},[19642,19647],{"type":21,"tag":205,"props":19643,"children":19644},{},[19645],{"type":26,"value":19646},"Warum es wichtig ist:",{"type":26,"value":19648}," Es bestätigt, dass die Quantenhardware korrekt arbeitet und dass die klassische Simulation für bestimmte Schaltkreisgrößen unlösbar wird.",{"type":21,"tag":18198,"props":19650,"children":19651},{},[],{"type":21,"tag":29,"props":19653,"children":19655},{"id":19654},"was-kurzfristig-bevorsteht-27-jahre",[19656],{"type":26,"value":19657},"Was kurzfristig bevorsteht (2–7 Jahre)",{"type":21,"tag":17383,"props":19659,"children":19661},{"id":19660},"quantengestützte-medikamentenentwicklung",[19662],{"type":26,"value":19663},"Quantengestützte Medikamentenentwicklung",{"type":21,"tag":22,"props":19665,"children":19666},{},[19667,19671],{"type":21,"tag":205,"props":19668,"children":19669},{},[19670],{"type":26,"value":19262},{"type":26,"value":19672}," Einsatz von Quantensimulation zur Modellierung von Protein-Ligand-Bindungsenergien, um vorherzusagen, welche Wirkstoffkandidaten synthetisiert werden sollten.",{"type":21,"tag":22,"props":19674,"children":19675},{},[19676,19680],{"type":21,"tag":205,"props":19677,"children":19678},{},[19679],{"type":26,"value":19646},{"type":26,"value":19681}," Die Medikamentenentwicklung kostet ~2,5 Milliarden Dollar pro zugelassenem Medikament. Die Reduzierung gescheiterter klinischer Studien durch besseres computergestütztes Screening ist enorm wertvoll.",{"type":21,"tag":22,"props":19683,"children":19684},{},[19685,19690],{"type":21,"tag":205,"props":19686,"children":19687},{},[19688],{"type":26,"value":19689},"Aktueller Stand:",{"type":26,"value":19691}," IBM und pharmazeutische Partner (Pfizer, AstraZeneca, JSR) führen VQE auf Molekülen mit bis zu ~50 Qubits auf Quantenhardware aus. Noch demonstrativ — klassische Methoden bleiben für kommerziell relevante Moleküle genauer.",{"type":21,"tag":22,"props":19693,"children":19694},{},[19695,19700],{"type":21,"tag":205,"props":19696,"children":19697},{},[19698],{"type":26,"value":19699},"Wann es real wird:",{"type":26,"value":19701}," Wenn die Zahl logischer Qubits ~1.000–5.000 erreicht. Dann kann die Quantensimulation klassische Methoden für wichtige Molekülklassen übertreffen. Aktuelle Schätzungen: 5–10 Jahre.",{"type":21,"tag":18198,"props":19703,"children":19704},{},[],{"type":21,"tag":17383,"props":19706,"children":19708},{"id":19707},"quantum-finance-monte-carlo-beschleunigung",[19709],{"type":26,"value":19710},"Quantum Finance: Monte-Carlo-Beschleunigung",{"type":21,"tag":22,"props":19712,"children":19713},{},[19714,19718,19720,19726,19728,19734],{"type":21,"tag":205,"props":19715,"children":19716},{},[19717],{"type":26,"value":19262},{"type":26,"value":19719}," Quanten-Amplitudenschätzung kann die Monte-Carlo-Integration theoretisch von ",{"type":21,"tag":2097,"props":19721,"children":19723},{"className":19722},[],[19724],{"type":26,"value":19725},"O(1\u002Fε²)",{"type":26,"value":19727}," auf ",{"type":21,"tag":2097,"props":19729,"children":19731},{"className":19730},[],[19732],{"type":26,"value":19733},"O(1\u002Fε)",{"type":26,"value":19735}," beschleunigen — eine quadratische Beschleunigung, die für die Optionsbewertung und Risikosimulation enorm wichtig ist.",{"type":21,"tag":22,"props":19737,"children":19738},{},[19739,19743],{"type":21,"tag":205,"props":19740,"children":19741},{},[19742],{"type":26,"value":19689},{"type":26,"value":19744}," Goldman Sachs, JPMorgan und BBVA forschen aktiv daran. Kleinskalige Demonstrationen wurden durchgeführt. Noch nicht produktionsreif skaliert.",{"type":21,"tag":22,"props":19746,"children":19747},{},[19748,19752],{"type":21,"tag":205,"props":19749,"children":19750},{},[19751],{"type":26,"value":19699},{"type":26,"value":19753}," Es wird moderate Fehlertoleranz (Tausende logischer Qubits) benötigt. Die Schätzungen reichen von 5–15 Jahren für praktische Beschleunigungen im Finanzwesen.",{"type":21,"tag":18198,"props":19755,"children":19756},{},[],{"type":21,"tag":17383,"props":19758,"children":19760},{"id":19759},"materialwissenschaft-design-von-batterien-und-solarzellen",[19761],{"type":26,"value":19762},"Materialwissenschaft: Design von Batterien und Solarzellen",{"type":21,"tag":22,"props":19764,"children":19765},{},[19766,19770],{"type":21,"tag":205,"props":19767,"children":19768},{},[19769],{"type":26,"value":19262},{"type":26,"value":19771}," Quantensimulation von Materialkandidaten für Lithium-Luft-Batterien, Katalysatoren zur Stickstofffixierung (als Ersatz für das Haber-Bosch-Verfahren) und photovoltaische Materialien.",{"type":21,"tag":22,"props":19773,"children":19774},{},[19775,19779],{"type":21,"tag":205,"props":19776,"children":19777},{},[19778],{"type":26,"value":19646},{"type":26,"value":19780}," Bessere Batterien = Revolution der Elektromobilität. Effiziente N₂-Fixierung = drastisch reduzierter Energieverbrauch bei der Düngemittelherstellung (derzeit 1–2 % des globalen Energieverbrauchs). Das sind Probleme im Billionen-Dollar-Bereich.",{"type":21,"tag":22,"props":19782,"children":19783},{},[19784,19788],{"type":21,"tag":205,"props":19785,"children":19786},{},[19787],{"type":26,"value":19689},{"type":26,"value":19789}," Microsoft (StationQ), IBM und Start-ups wie QunaSys und Good Chemistry verfolgen diesen Ansatz. Forschung im Frühstadium.",{"type":21,"tag":22,"props":19791,"children":19792},{},[19793,19797],{"type":21,"tag":205,"props":19794,"children":19795},{},[19796],{"type":26,"value":19699},{"type":26,"value":19798}," 5–20 Jahre, abhängig von der angestrebten Genauigkeit und Molekülgröße.",{"type":21,"tag":18198,"props":19800,"children":19801},{},[],{"type":21,"tag":29,"props":19803,"children":19805},{"id":19804},"was-vollständige-fehlertoleranz-erfordert-720-jahre",[19806],{"type":26,"value":19807},"Was vollständige Fehlertoleranz erfordert (7–20+ Jahre)",{"type":21,"tag":17383,"props":19809,"children":19811},{"id":19810},"knacken-von-rsaecc-mit-shors-algorithmus",[19812],{"type":26,"value":19813},"Knacken von RSA\u002FECC mit Shors Algorithmus",{"type":21,"tag":22,"props":19815,"children":19816},{},[19817,19821],{"type":21,"tag":205,"props":19818,"children":19819},{},[19820],{"type":26,"value":19262},{"type":26,"value":19822}," Faktorisierung der großen Primzahlen, die RSA-2048 zugrunde liegen.",{"type":21,"tag":22,"props":19824,"children":19825},{},[19826,19831],{"type":21,"tag":205,"props":19827,"children":19828},{},[19829],{"type":26,"value":19830},"Erforderlich:",{"type":26,"value":19832}," ~4.000 logische Qubits (jedes erfordert ~1.000 physische Qubits = ~4 Millionen physische Qubits). Aktueller Stand: Hunderte physischer Qubits, sehr verrauscht.",{"type":21,"tag":22,"props":19834,"children":19835},{},[19836,19841],{"type":21,"tag":205,"props":19837,"children":19838},{},[19839],{"type":26,"value":19840},"Zeithorizont:",{"type":26,"value":19842}," Die meisten Schätzungen setzen RSA-bedrohende Quantencomputer auf 2030–2040 an. Manche sagen: nie — die ingenieurtechnischen Herausforderungen könnten in diesem Maßstab unlösbar sein.",{"type":21,"tag":22,"props":19844,"children":19845},{},[19846,19851,19852,19857],{"type":21,"tag":205,"props":19847,"children":19848},{},[19849],{"type":26,"value":19850},"Was jetzt zu tun ist:",{"type":26,"value":1367},{"type":21,"tag":41,"props":19853,"children":19854},{"href":9400},[19855],{"type":26,"value":19856},"Migrieren Sie zu Post-Quanten-Kryptografie",{"type":26,"value":19858},", unabhängig vom Zeithorizont. Der Übergang dauert Jahre, und HNDL-Angriffe finden bereits jetzt statt.",{"type":21,"tag":18198,"props":19860,"children":19861},{},[],{"type":21,"tag":17383,"props":19863,"children":19865},{"id":19864},"grover-suche-im-großen-maßstab",[19866],{"type":26,"value":19867},"Grover-Suche im großen Maßstab",{"type":21,"tag":22,"props":19869,"children":19870},{},[19871,19875],{"type":21,"tag":205,"props":19872,"children":19873},{},[19874],{"type":26,"value":19262},{"type":26,"value":19876}," Quadratische Beschleunigung bei der Suche in unsortierten Datenbanken und beim Lösen NP-schwerer Probleme.",{"type":21,"tag":22,"props":19878,"children":19879},{},[19880,19884],{"type":21,"tag":205,"props":19881,"children":19882},{},[19883],{"type":26,"value":19830},{"type":26,"value":19885}," Tiefe, fehlerkorrigierte Schaltkreise. Quadratische Beschleunigung bedeutet, dass √N für große N immer noch enorm ist — die konstanten Faktoren müssen zugunsten der Quantenhardware ausfallen.",{"type":21,"tag":22,"props":19887,"children":19888},{},[19889,19893],{"type":21,"tag":205,"props":19890,"children":19891},{},[19892],{"type":26,"value":19840},{"type":26,"value":19894}," Langfristige Forschung.",{"type":21,"tag":18198,"props":19896,"children":19897},{},[],{"type":21,"tag":17383,"props":19899,"children":19901},{"id":19900},"klimamodellierung-und-strömungsmechanik",[19902],{"type":26,"value":19903},"Klimamodellierung und Strömungsmechanik",{"type":21,"tag":22,"props":19905,"children":19906},{},[19907,19911],{"type":21,"tag":205,"props":19908,"children":19909},{},[19910],{"type":26,"value":19262},{"type":26,"value":19912}," Quantenalgorithmen zum Lösen von Differentialgleichungen (HHL-Algorithmus) könnten Klimasimulationen, Strömungsmechanik und Finanzmodellierung beschleunigen.",{"type":21,"tag":22,"props":19914,"children":19915},{},[19916,19920],{"type":21,"tag":205,"props":19917,"children":19918},{},[19919],{"type":26,"value":19830},{"type":26,"value":19921}," Vollständige Fehlertoleranz. Der HHL-Algorithmus hat einen enormen Overhead, der einen praktischen Vorteil selbst in der Theorie alles andere als klar erscheinen lässt.",{"type":21,"tag":22,"props":19923,"children":19924},{},[19925,19929],{"type":21,"tag":205,"props":19926,"children":19927},{},[19928],{"type":26,"value":19840},{"type":26,"value":19930}," Dies ist die spekulativste Kategorie. Ein Quantenvorteil beim Lösen von PDEs bleibt in der Praxis unbewiesen.",{"type":21,"tag":18198,"props":19932,"children":19933},{},[],{"type":21,"tag":29,"props":19935,"children":19937},{"id":19936},"das-ehrliche-fazit",[19938],{"type":26,"value":19939},"Das ehrliche Fazit",{"type":21,"tag":4087,"props":19941,"children":19942},{},[19943,19964],{"type":21,"tag":4091,"props":19944,"children":19945},{},[19946],{"type":21,"tag":4095,"props":19947,"children":19948},{},[19949,19954,19959],{"type":21,"tag":4099,"props":19950,"children":19951},{},[19952],{"type":26,"value":19953},"Anwendung",{"type":21,"tag":4099,"props":19955,"children":19956},{},[19957],{"type":26,"value":19958},"Quantenvorteil heute?",{"type":21,"tag":4099,"props":19960,"children":19961},{},[19962],{"type":26,"value":19963},"Zeithorizont",{"type":21,"tag":4113,"props":19965,"children":19966},{},[19967,19985,20003,20020,20038,20056,20072,20089],{"type":21,"tag":4095,"props":19968,"children":19969},{},[19970,19975,19980],{"type":21,"tag":4120,"props":19971,"children":19972},{},[19973],{"type":26,"value":19974},"Random Circuit Sampling",{"type":21,"tag":4120,"props":19976,"children":19977},{},[19978],{"type":26,"value":19979},"Marginal, keine Anwendung",{"type":21,"tag":4120,"props":19981,"children":19982},{},[19983],{"type":26,"value":19984},"Jetzt (nur Forschung)",{"type":21,"tag":4095,"props":19986,"children":19987},{},[19988,19993,19998],{"type":21,"tag":4120,"props":19989,"children":19990},{},[19991],{"type":26,"value":19992},"VQE für kleine Moleküle",{"type":21,"tag":4120,"props":19994,"children":19995},{},[19996],{"type":26,"value":19997},"Kein klassischer Vorteil",{"type":21,"tag":4120,"props":19999,"children":20000},{},[20001],{"type":26,"value":20002},"3–5 Jahre für nützliche Moleküle",{"type":21,"tag":4095,"props":20004,"children":20005},{},[20006,20011,20015],{"type":21,"tag":4120,"props":20007,"children":20008},{},[20009],{"type":26,"value":20010},"QAOA für Optimierung",{"type":21,"tag":4120,"props":20012,"children":20013},{},[20014],{"type":26,"value":19997},{"type":21,"tag":4120,"props":20016,"children":20017},{},[20018],{"type":26,"value":20019},"5–10 Jahre",{"type":21,"tag":4095,"props":20021,"children":20022},{},[20023,20028,20033],{"type":21,"tag":4120,"props":20024,"children":20025},{},[20026],{"type":26,"value":20027},"QML \u002F Quanten-Kernel",{"type":21,"tag":4120,"props":20029,"children":20030},{},[20031],{"type":26,"value":20032},"Kein Vorteil für reale Daten",{"type":21,"tag":4120,"props":20034,"children":20035},{},[20036],{"type":26,"value":20037},"Ungewiss",{"type":21,"tag":4095,"props":20039,"children":20040},{},[20041,20046,20051],{"type":21,"tag":4120,"props":20042,"children":20043},{},[20044],{"type":26,"value":20045},"Medikamentenentwicklung",{"type":21,"tag":4120,"props":20047,"children":20048},{},[20049],{"type":26,"value":20050},"Nein",{"type":21,"tag":4120,"props":20052,"children":20053},{},[20054],{"type":26,"value":20055},"7–10 Jahre",{"type":21,"tag":4095,"props":20057,"children":20058},{},[20059,20064,20068],{"type":21,"tag":4120,"props":20060,"children":20061},{},[20062],{"type":26,"value":20063},"Finanzwesen (Monte Carlo)",{"type":21,"tag":4120,"props":20065,"children":20066},{},[20067],{"type":26,"value":20050},{"type":21,"tag":4120,"props":20069,"children":20070},{},[20071],{"type":26,"value":20019},{"type":21,"tag":4095,"props":20073,"children":20074},{},[20075,20080,20084],{"type":21,"tag":4120,"props":20076,"children":20077},{},[20078],{"type":26,"value":20079},"Materialsimulation",{"type":21,"tag":4120,"props":20081,"children":20082},{},[20083],{"type":26,"value":20050},{"type":21,"tag":4120,"props":20085,"children":20086},{},[20087],{"type":26,"value":20088},"7–15 Jahre",{"type":21,"tag":4095,"props":20090,"children":20091},{},[20092,20097,20101],{"type":21,"tag":4120,"props":20093,"children":20094},{},[20095],{"type":26,"value":20096},"Kryptografie (Shor)",{"type":21,"tag":4120,"props":20098,"children":20099},{},[20100],{"type":26,"value":20050},{"type":21,"tag":4120,"props":20102,"children":20103},{},[20104],{"type":26,"value":20105},"10–20+ Jahre",{"type":21,"tag":22,"props":20107,"children":20108},{},[20109,20111,20116,20118,20123],{"type":26,"value":20110},"Der unmittelbarste Quantenwert liegt ",{"type":21,"tag":205,"props":20112,"children":20113},{},[20114],{"type":26,"value":20115},"nicht",{"type":26,"value":20117}," im Ausführen von Algorithmen — er liegt im ",{"type":21,"tag":205,"props":20119,"children":20120},{},[20121],{"type":26,"value":20122},"frühen Erlernen des Fachgebiets",{"type":26,"value":20124},". Unternehmen wie IBM, Google, NVIDIA, AWS, IonQ und Dutzende von Start-ups stellen Quanteningenieure ein. Der Kompetenzsatz — Schaltkreisdesign, variationelle Algorithmen, hybride Quanten-klassische Workflows — ist wirklich selten. Diese Lücke wird sich schließen, und diejenigen, die früh gelernt haben, werden gut positioniert sein.",{"type":21,"tag":22,"props":20126,"children":20127},{},[20128,20130,20135],{"type":26,"value":20129},"Der zweitunmittelbarste Wert liegt in der ",{"type":21,"tag":205,"props":20131,"children":20132},{},[20133],{"type":26,"value":20134},"Post-Quanten-Kryptografie",{"type":26,"value":20136}," — die ein klassisches Softwareproblem mit einer Quantenbedrohung darstellt und bei der die erforderlichen Maßnahmen klar und dringend sind.",{"type":21,"tag":22,"props":20138,"children":20139},{},[20140],{"type":26,"value":20141},"Für alles andere gilt: Die Hardware ist real, der Fortschritt ist echt, der Hype ist verfrüht, und die Entwicklungskurve ist steil.",{"type":21,"tag":22,"props":20143,"children":20144},{},[20145,20150,20151,20156,20157,20162,20163],{"type":21,"tag":205,"props":20146,"children":20147},{},[20148],{"type":26,"value":20149},"Entdecken Sie die Hardware:",{"type":26,"value":1367},{"type":21,"tag":41,"props":20152,"children":20153},{"href":144},[20154],{"type":26,"value":20155},"Kostenloser QPU-Zugang",{"type":26,"value":7133},{"type":21,"tag":41,"props":20158,"children":20159},{"href":472},[20160],{"type":26,"value":20161},"Alle Simulatoren vergleichen",{"type":26,"value":7133},{"type":21,"tag":41,"props":20164,"children":20165},{"href":11526},[20166],{"type":26,"value":20167},"Vertiefung zu Quantenanwendungsfällen",{"type":21,"tag":2712,"props":20169,"children":20170},{},[20171],{"type":26,"value":2716},{"title":7,"searchDepth":173,"depth":173,"links":20173},[20174,20175,20181,20186,20191],{"id":19193,"depth":173,"text":19196},{"id":19245,"depth":173,"text":19248,"children":20176},[20177,20178,20179,20180],{"id":19251,"depth":2359,"text":19254},{"id":19475,"depth":2359,"text":19478},{"id":19539,"depth":2359,"text":19542},{"id":19600,"depth":2359,"text":19603},{"id":19654,"depth":173,"text":19657,"children":20182},[20183,20184,20185],{"id":19660,"depth":2359,"text":19663},{"id":19707,"depth":2359,"text":19710},{"id":19759,"depth":2359,"text":19762},{"id":19804,"depth":173,"text":19807,"children":20187},[20188,20189,20190],{"id":19810,"depth":2359,"text":19813},{"id":19864,"depth":2359,"text":19867},{"id":19900,"depth":2359,"text":19903},{"id":19936,"depth":173,"text":19939},"content:de:blog:quantum-use-cases-2026.md","de\u002Fblog\u002Fquantum-use-cases-2026.md","de\u002Fblog\u002Fquantum-use-cases-2026",{"_path":20196,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":20197,"description":20198,"date":20199,"author":11,"tags":20200,"readingTime":877,"body":20202,"_type":180,"_id":21039,"_source":182,"_file":21040,"_stem":21041,"_extension":185},"\u002Fde\u002Fblog\u002Fgetting-started-free-quantum-computing","Erste Schritte mit kostenlosem Quantencomputing im Jahr 2026","Ein vollständiger Einsteigerleitfaden, um deinen ersten Quantenschaltkreis kostenlos auszuführen — keine teure Hardware, keine kostenpflichtigen Abonnements.","2026-03-10",[7170,20201,15],"Simulators",{"type":18,"children":20203,"toc":21031},[20204,20209,20215,20220,20253,20258,20264,20269,20294,20306,20516,20549,20555,20560,20634,20654,20660,20672,20699,20785,20793,20798,20804,20918,20929,20935,20940,20988,21006,21009,21027],{"type":21,"tag":22,"props":20205,"children":20206},{},[20207],{"type":26,"value":20208},"Quantencomputing ist nicht länger hinter millionenschwerer Ausrüstung von Forschungslaboren verschlossen. Heute kannst du einen Quantenschaltkreis auf einer echten Maschine mit 127 Qubits schreiben und ausführen — kostenlos — von deinem Laptop aus. Dieser Leitfaden führt dich durch jede Option, die dir gerade jetzt zur Verfügung steht.",{"type":21,"tag":29,"props":20210,"children":20212},{"id":20211},"was-du-wirklich-brauchst",[20213],{"type":26,"value":20214},"Was du wirklich brauchst",{"type":21,"tag":22,"props":20216,"children":20217},{},[20218],{"type":26,"value":20219},"Um loszulegen, brauchst du genau drei Dinge:",{"type":21,"tag":7028,"props":20221,"children":20222},{},[20223,20233,20243],{"type":21,"tag":3141,"props":20224,"children":20225},{},[20226,20231],{"type":21,"tag":205,"props":20227,"children":20228},{},[20229],{"type":26,"value":20230},"Python 3.9+",{"type":26,"value":20232}," auf deinem Rechner installiert",{"type":21,"tag":3141,"props":20234,"children":20235},{},[20236,20241],{"type":21,"tag":205,"props":20237,"children":20238},{},[20239],{"type":26,"value":20240},"Ein kostenloses Konto",{"type":26,"value":20242}," bei einer der Quanten-Cloud-Plattformen (IBM Quantum ist am einfachsten)",{"type":21,"tag":3141,"props":20244,"children":20245},{},[20246,20251],{"type":21,"tag":205,"props":20247,"children":20248},{},[20249],{"type":26,"value":20250},"Fünf Minuten",{"type":26,"value":20252},", um deinen ersten Bell-Zustand auszuführen",{"type":21,"tag":22,"props":20254,"children":20255},{},[20256],{"type":26,"value":20257},"Das war's. Keine GPU. Keine spezielle Hardware. Keine Kreditkarte.",{"type":21,"tag":29,"props":20259,"children":20261},{"id":20260},"dein-erster-quantenschaltkreis",[20262],{"type":26,"value":20263},"Dein erster Quantenschaltkreis",{"type":21,"tag":22,"props":20265,"children":20266},{},[20267],{"type":26,"value":20268},"Installiere Qiskit und seinen Simulator:",{"type":21,"tag":2328,"props":20270,"children":20271},{"className":9764,"code":11803,"language":9766,"meta":7,"style":7},[20272],{"type":21,"tag":2097,"props":20273,"children":20274},{"__ignoreMap":7},[20275],{"type":21,"tag":2338,"props":20276,"children":20277},{"class":2340,"line":2341},[20278,20282,20286,20290],{"type":21,"tag":2338,"props":20279,"children":20280},{"style":4385},[20281],{"type":26,"value":11815},{"type":21,"tag":2338,"props":20283,"children":20284},{"style":2374},[20285],{"type":26,"value":11820},{"type":21,"tag":2338,"props":20287,"children":20288},{"style":2374},[20289],{"type":26,"value":11825},{"type":21,"tag":2338,"props":20291,"children":20292},{"style":2374},[20293],{"type":26,"value":11830},{"type":21,"tag":22,"props":20295,"children":20296},{},[20297,20299,20304],{"type":26,"value":20298},"Erstelle nun einen ",{"type":21,"tag":205,"props":20300,"children":20301},{},[20302],{"type":26,"value":20303},"Bell-Zustand",{"type":26,"value":20305}," — den klassischen Zwei-Qubit-Schaltkreis, der Superposition und Verschränkung demonstriert:",{"type":21,"tag":2328,"props":20307,"children":20309},{"className":3207,"code":20308,"language":3209,"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",[20310],{"type":21,"tag":2097,"props":20311,"children":20312},{"__ignoreMap":7},[20313,20333,20352,20359,20367,20390,20411,20440,20447,20454,20462,20496,20508],{"type":21,"tag":2338,"props":20314,"children":20315},{"class":2340,"line":2341},[20316,20320,20324,20328],{"type":21,"tag":2338,"props":20317,"children":20318},{"style":3219},[20319],{"type":26,"value":3222},{"type":21,"tag":2338,"props":20321,"children":20322},{"style":2345},[20323],{"type":26,"value":4316},{"type":21,"tag":2338,"props":20325,"children":20326},{"style":3219},[20327],{"type":26,"value":3232},{"type":21,"tag":2338,"props":20329,"children":20330},{"style":2345},[20331],{"type":26,"value":20332}," QuantumCircuit\n",{"type":21,"tag":2338,"props":20334,"children":20335},{"class":2340,"line":173},[20336,20340,20344,20348],{"type":21,"tag":2338,"props":20337,"children":20338},{"style":3219},[20339],{"type":26,"value":3222},{"type":21,"tag":2338,"props":20341,"children":20342},{"style":2345},[20343],{"type":26,"value":4337},{"type":21,"tag":2338,"props":20345,"children":20346},{"style":3219},[20347],{"type":26,"value":3232},{"type":21,"tag":2338,"props":20349,"children":20350},{"style":2345},[20351],{"type":26,"value":4346},{"type":21,"tag":2338,"props":20353,"children":20354},{"class":2340,"line":2359},[20355],{"type":21,"tag":2338,"props":20356,"children":20357},{"emptyLinePlaceholder":3243},[20358],{"type":26,"value":3246},{"type":21,"tag":2338,"props":20360,"children":20361},{"class":2340,"line":2421},[20362],{"type":21,"tag":2338,"props":20363,"children":20364},{"style":3469},[20365],{"type":26,"value":20366},"# Build the circuit\n",{"type":21,"tag":2338,"props":20368,"children":20369},{"class":2340,"line":2445},[20370,20374,20378,20382,20386],{"type":21,"tag":2338,"props":20371,"children":20372},{"style":2345},[20373],{"type":26,"value":7403},{"type":21,"tag":2338,"props":20375,"children":20376},{"style":3219},[20377],{"type":26,"value":3259},{"type":21,"tag":2338,"props":20379,"children":20380},{"style":2345},[20381],{"type":26,"value":5159},{"type":21,"tag":2338,"props":20383,"children":20384},{"style":2363},[20385],{"type":26,"value":2437},{"type":21,"tag":2338,"props":20387,"children":20388},{"style":2345},[20389],{"type":26,"value":3319},{"type":21,"tag":2338,"props":20391,"children":20392},{"class":2340,"line":877},[20393,20397,20401,20406],{"type":21,"tag":2338,"props":20394,"children":20395},{"style":2345},[20396],{"type":26,"value":7419},{"type":21,"tag":2338,"props":20398,"children":20399},{"style":2363},[20400],{"type":26,"value":5189},{"type":21,"tag":2338,"props":20402,"children":20403},{"style":2345},[20404],{"type":26,"value":20405},")       ",{"type":21,"tag":2338,"props":20407,"children":20408},{"style":3469},[20409],{"type":26,"value":20410},"# Hadamard — puts qubit 0 into superposition\n",{"type":21,"tag":2338,"props":20412,"children":20413},{"class":2340,"line":196},[20414,20419,20423,20427,20431,20435],{"type":21,"tag":2338,"props":20415,"children":20416},{"style":2345},[20417],{"type":26,"value":20418},"qc.cx(",{"type":21,"tag":2338,"props":20420,"children":20421},{"style":2363},[20422],{"type":26,"value":5189},{"type":21,"tag":2338,"props":20424,"children":20425},{"style":2345},[20426],{"type":26,"value":1375},{"type":21,"tag":2338,"props":20428,"children":20429},{"style":2363},[20430],{"type":26,"value":3575},{"type":21,"tag":2338,"props":20432,"children":20433},{"style":2345},[20434],{"type":26,"value":6777},{"type":21,"tag":2338,"props":20436,"children":20437},{"style":3469},[20438],{"type":26,"value":20439},"# CNOT — entangles qubit 1 with qubit 0\n",{"type":21,"tag":2338,"props":20441,"children":20442},{"class":2340,"line":951},[20443],{"type":21,"tag":2338,"props":20444,"children":20445},{"style":2345},[20446],{"type":26,"value":13110},{"type":21,"tag":2338,"props":20448,"children":20449},{"class":2340,"line":16},[20450],{"type":21,"tag":2338,"props":20451,"children":20452},{"emptyLinePlaceholder":3243},[20453],{"type":26,"value":3246},{"type":21,"tag":2338,"props":20455,"children":20456},{"class":2340,"line":3465},[20457],{"type":21,"tag":2338,"props":20458,"children":20459},{"style":3469},[20460],{"type":26,"value":20461},"# Run locally on a simulator\n",{"type":21,"tag":2338,"props":20463,"children":20464},{"class":2340,"line":3475},[20465,20469,20473,20478,20482,20486,20491],{"type":21,"tag":2338,"props":20466,"children":20467},{"style":2345},[20468],{"type":26,"value":19355},{"type":21,"tag":2338,"props":20470,"children":20471},{"style":3219},[20472],{"type":26,"value":3259},{"type":21,"tag":2338,"props":20474,"children":20475},{"style":2345},[20476],{"type":26,"value":20477}," AerSimulator().run(qc, ",{"type":21,"tag":2338,"props":20479,"children":20480},{"style":3284},[20481],{"type":26,"value":4144},{"type":21,"tag":2338,"props":20483,"children":20484},{"style":3219},[20485],{"type":26,"value":3259},{"type":21,"tag":2338,"props":20487,"children":20488},{"style":2363},[20489],{"type":26,"value":20490},"1000",{"type":21,"tag":2338,"props":20492,"children":20493},{"style":2345},[20494],{"type":26,"value":20495},").result()\n",{"type":21,"tag":2338,"props":20497,"children":20498},{"class":2340,"line":500},[20499,20503],{"type":21,"tag":2338,"props":20500,"children":20501},{"style":2363},[20502],{"type":26,"value":3334},{"type":21,"tag":2338,"props":20504,"children":20505},{"style":2345},[20506],{"type":26,"value":20507},"(result.get_counts())\n",{"type":21,"tag":2338,"props":20509,"children":20510},{"class":2340,"line":3535},[20511],{"type":21,"tag":2338,"props":20512,"children":20513},{"style":3469},[20514],{"type":26,"value":20515},"# {'00': 503, '11': 497}\n",{"type":21,"tag":22,"props":20517,"children":20518},{},[20519,20521,20526,20527,20532,20534,20540,20541,20547],{"type":26,"value":20520},"Die Ausgabe — ungefähr gleich viele Zählungen von ",{"type":21,"tag":2097,"props":20522,"children":20524},{"className":20523},[],[20525],{"type":26,"value":5697},{"type":26,"value":278},{"type":21,"tag":2097,"props":20528,"children":20530},{"className":20529},[],[20531],{"type":26,"value":5704},{"type":26,"value":20533},", niemals ",{"type":21,"tag":2097,"props":20535,"children":20537},{"className":20536},[],[20538],{"type":26,"value":20539},"01",{"type":26,"value":18833},{"type":21,"tag":2097,"props":20542,"children":20544},{"className":20543},[],[20545],{"type":26,"value":20546},"10",{"type":26,"value":20548}," — ist das Kennzeichen der Verschränkung. Miss ein Qubit und du weißt sofort das andere, unabhängig von der Entfernung zwischen ihnen.",{"type":21,"tag":29,"props":20550,"children":20552},{"id":20551},"kostenlose-simulatoren-kein-konto-erforderlich",[20553],{"type":26,"value":20554},"Kostenlose Simulatoren: Kein Konto erforderlich",{"type":21,"tag":22,"props":20556,"children":20557},{},[20558],{"type":26,"value":20559},"Alle wichtigen SDKs enthalten leistungsstarke lokale Simulatoren, die ohne Anmeldung auf deiner CPU oder GPU laufen:",{"type":21,"tag":2328,"props":20561,"children":20563},{"className":9764,"code":20562,"language":9766,"meta":7,"style":7},"pip install qiskit qiskit-aer   # IBM Qiskit + Aer simulator\npip install cirq                 # Google Cirq\npip install pennylane            # PennyLane\n",[20564],{"type":21,"tag":2097,"props":20565,"children":20566},{"__ignoreMap":7},[20567,20592,20613],{"type":21,"tag":2338,"props":20568,"children":20569},{"class":2340,"line":2341},[20570,20574,20578,20582,20587],{"type":21,"tag":2338,"props":20571,"children":20572},{"style":4385},[20573],{"type":26,"value":11815},{"type":21,"tag":2338,"props":20575,"children":20576},{"style":2374},[20577],{"type":26,"value":11820},{"type":21,"tag":2338,"props":20579,"children":20580},{"style":2374},[20581],{"type":26,"value":11825},{"type":21,"tag":2338,"props":20583,"children":20584},{"style":2374},[20585],{"type":26,"value":20586}," qiskit-aer",{"type":21,"tag":2338,"props":20588,"children":20589},{"style":3469},[20590],{"type":26,"value":20591},"   # IBM Qiskit + Aer simulator\n",{"type":21,"tag":2338,"props":20593,"children":20594},{"class":2340,"line":173},[20595,20599,20603,20608],{"type":21,"tag":2338,"props":20596,"children":20597},{"style":4385},[20598],{"type":26,"value":11815},{"type":21,"tag":2338,"props":20600,"children":20601},{"style":2374},[20602],{"type":26,"value":11820},{"type":21,"tag":2338,"props":20604,"children":20605},{"style":2374},[20606],{"type":26,"value":20607}," cirq",{"type":21,"tag":2338,"props":20609,"children":20610},{"style":3469},[20611],{"type":26,"value":20612},"                 # Google Cirq\n",{"type":21,"tag":2338,"props":20614,"children":20615},{"class":2340,"line":2359},[20616,20620,20624,20629],{"type":21,"tag":2338,"props":20617,"children":20618},{"style":4385},[20619],{"type":26,"value":11815},{"type":21,"tag":2338,"props":20621,"children":20622},{"style":2374},[20623],{"type":26,"value":11820},{"type":21,"tag":2338,"props":20625,"children":20626},{"style":2374},[20627],{"type":26,"value":20628}," pennylane",{"type":21,"tag":2338,"props":20630,"children":20631},{"style":3469},[20632],{"type":26,"value":20633},"            # PennyLane\n",{"type":21,"tag":22,"props":20635,"children":20636},{},[20637,20639,20645,20647,20652],{"type":26,"value":20638},"Jeder bewältigt Schaltkreise mit 20–30 Qubits problemlos. Für große Schaltkreise oder GPU-Beschleunigung kann ",{"type":21,"tag":41,"props":20640,"children":20642},{"href":20641},"\u002Fsdks\u002Fcudaq",[20643],{"type":26,"value":20644},"NVIDIA CUDA-Q",{"type":26,"value":20646}," 34+ Qubits auf einer einzigen GPU simulieren. Siehe den vollständigen ",{"type":21,"tag":41,"props":20648,"children":20649},{"href":472},[20650],{"type":26,"value":20651},"Simulators guide",{"type":26,"value":20653}," für einen detaillierten Vergleich.",{"type":21,"tag":29,"props":20655,"children":20657},{"id":20656},"kostenlose-echte-hardware-ibm-quantum",[20658],{"type":26,"value":20659},"Kostenlose echte Hardware: IBM Quantum",{"type":21,"tag":22,"props":20661,"children":20662},{},[20663,20665,20670],{"type":26,"value":20664},"IBM Quantum bietet ",{"type":21,"tag":205,"props":20666,"children":20667},{},[20668],{"type":26,"value":20669},"völlig kostenlosen",{"type":26,"value":20671}," Zugang zu echten Quantenprozessoren für jeden mit einer IBM ID:",{"type":21,"tag":7028,"props":20673,"children":20674},{},[20675,20689,20694],{"type":21,"tag":3141,"props":20676,"children":20677},{},[20678,20680,20687],{"type":26,"value":20679},"Gehe zu ",{"type":21,"tag":41,"props":20681,"children":20684},{"href":20682,"rel":20683},"https:\u002F\u002Fquantum.ibm.com\u002F",[963],[20685],{"type":26,"value":20686},"quantum.ibm.com",{"type":26,"value":20688}," und erstelle ein kostenloses Konto",{"type":21,"tag":3141,"props":20690,"children":20691},{},[20692],{"type":26,"value":20693},"Kopiere dein API-Token aus den Kontoeinstellungen",{"type":21,"tag":3141,"props":20695,"children":20696},{},[20697],{"type":26,"value":20698},"Konfiguriere Qiskit mit deinem Token:",{"type":21,"tag":2328,"props":20700,"children":20702},{"className":3207,"code":20701,"language":3209,"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",[20703],{"type":21,"tag":2097,"props":20704,"children":20705},{"__ignoreMap":7},[20706,20725,20732,20740,20761,20778],{"type":21,"tag":2338,"props":20707,"children":20708},{"class":2340,"line":2341},[20709,20713,20717,20721],{"type":21,"tag":2338,"props":20710,"children":20711},{"style":3219},[20712],{"type":26,"value":3222},{"type":21,"tag":2338,"props":20714,"children":20715},{"style":2345},[20716],{"type":26,"value":3227},{"type":21,"tag":2338,"props":20718,"children":20719},{"style":3219},[20720],{"type":26,"value":3232},{"type":21,"tag":2338,"props":20722,"children":20723},{"style":2345},[20724],{"type":26,"value":3237},{"type":21,"tag":2338,"props":20726,"children":20727},{"class":2340,"line":173},[20728],{"type":21,"tag":2338,"props":20729,"children":20730},{"emptyLinePlaceholder":3243},[20731],{"type":26,"value":3246},{"type":21,"tag":2338,"props":20733,"children":20734},{"class":2340,"line":2359},[20735],{"type":21,"tag":2338,"props":20736,"children":20737},{"style":2345},[20738],{"type":26,"value":20739},"QiskitRuntimeService.save_account(\n",{"type":21,"tag":2338,"props":20741,"children":20742},{"class":2340,"line":2421},[20743,20748,20752,20757],{"type":21,"tag":2338,"props":20744,"children":20745},{"style":3284},[20746],{"type":26,"value":20747},"    channel",{"type":21,"tag":2338,"props":20749,"children":20750},{"style":3219},[20751],{"type":26,"value":3259},{"type":21,"tag":2338,"props":20753,"children":20754},{"style":2374},[20755],{"type":26,"value":20756},"\"ibm_quantum\"",{"type":21,"tag":2338,"props":20758,"children":20759},{"style":2345},[20760],{"type":26,"value":2442},{"type":21,"tag":2338,"props":20762,"children":20763},{"class":2340,"line":2445},[20764,20769,20773],{"type":21,"tag":2338,"props":20765,"children":20766},{"style":3284},[20767],{"type":26,"value":20768},"    token",{"type":21,"tag":2338,"props":20770,"children":20771},{"style":3219},[20772],{"type":26,"value":3259},{"type":21,"tag":2338,"props":20774,"children":20775},{"style":2374},[20776],{"type":26,"value":20777},"\"YOUR_TOKEN_HERE\"\n",{"type":21,"tag":2338,"props":20779,"children":20780},{"class":2340,"line":877},[20781],{"type":21,"tag":2338,"props":20782,"children":20783},{"style":2345},[20784],{"type":26,"value":3319},{"type":21,"tag":7028,"props":20786,"children":20787},{"start":2421},[20788],{"type":21,"tag":3141,"props":20789,"children":20790},{},[20791],{"type":26,"value":20792},"Reiche Jobs bei einem beliebigen kostenlosen öffentlichen QPU von IBM ein",{"type":21,"tag":22,"props":20794,"children":20795},{},[20796],{"type":26,"value":20797},"Die Wartezeiten in den öffentlichen Systemen liegen typischerweise zwischen wenigen Minuten und einigen Stunden. Du teilst dir die Zeit mit Forschern und Studenten weltweit — das ist der einzige Haken.",{"type":21,"tag":29,"props":20799,"children":20801},{"id":20800},"die-wahl-deines-ersten-sdk",[20802],{"type":26,"value":20803},"Die Wahl deines ersten SDK",{"type":21,"tag":4087,"props":20805,"children":20806},{},[20807,20828],{"type":21,"tag":4091,"props":20808,"children":20809},{},[20810],{"type":21,"tag":4095,"props":20811,"children":20812},{},[20813,20818,20823],{"type":21,"tag":4099,"props":20814,"children":20815},{},[20816],{"type":26,"value":20817},"SDK",{"type":21,"tag":4099,"props":20819,"children":20820},{},[20821],{"type":26,"value":20822},"Am besten geeignet für",{"type":21,"tag":4099,"props":20824,"children":20825},{},[20826],{"type":26,"value":20827},"Kostenlose Stufe",{"type":21,"tag":4113,"props":20829,"children":20830},{},[20831,20849,20866,20883,20901],{"type":21,"tag":4095,"props":20832,"children":20833},{},[20834,20839,20844],{"type":21,"tag":4120,"props":20835,"children":20836},{},[20837],{"type":26,"value":20838},"IBM Qiskit",{"type":21,"tag":4120,"props":20840,"children":20841},{},[20842],{"type":26,"value":20843},"Allzweck, echte Hardware",{"type":21,"tag":4120,"props":20845,"children":20846},{},[20847],{"type":26,"value":20848},"Vollständig — lokal + echtes QPU",{"type":21,"tag":4095,"props":20850,"children":20851},{},[20852,20856,20861],{"type":21,"tag":4120,"props":20853,"children":20854},{},[20855],{"type":26,"value":13806},{"type":21,"tag":4120,"props":20857,"children":20858},{},[20859],{"type":26,"value":20860},"Quanten-ML, Gradienten",{"type":21,"tag":4120,"props":20862,"children":20863},{},[20864],{"type":26,"value":20865},"Vollständig — lokale Simulatoren",{"type":21,"tag":4095,"props":20867,"children":20868},{},[20869,20874,20879],{"type":21,"tag":4120,"props":20870,"children":20871},{},[20872],{"type":26,"value":20873},"Google Cirq",{"type":21,"tag":4120,"props":20875,"children":20876},{},[20877],{"type":26,"value":20878},"NISQ-Forschung",{"type":21,"tag":4120,"props":20880,"children":20881},{},[20882],{"type":26,"value":20865},{"type":21,"tag":4095,"props":20884,"children":20885},{},[20886,20891,20896],{"type":21,"tag":4120,"props":20887,"children":20888},{},[20889],{"type":26,"value":20890},"Amazon Braket",{"type":21,"tag":4120,"props":20892,"children":20893},{},[20894],{"type":26,"value":20895},"AWS-Integration",{"type":21,"tag":4120,"props":20897,"children":20898},{},[20899],{"type":26,"value":20900},"Kostenlose lokale Simulation, kostenpflichtige Cloud",{"type":21,"tag":4095,"props":20902,"children":20903},{},[20904,20908,20913],{"type":21,"tag":4120,"props":20905,"children":20906},{},[20907],{"type":26,"value":20644},{"type":21,"tag":4120,"props":20909,"children":20910},{},[20911],{"type":26,"value":20912},"GPU-Beschleunigung",{"type":21,"tag":4120,"props":20914,"children":20915},{},[20916],{"type":26,"value":20917},"Vollständig — lokale GPU",{"type":21,"tag":22,"props":20919,"children":20920},{},[20921,20923,20927],{"type":26,"value":20922},"Für die meisten Einsteiger ist ",{"type":21,"tag":205,"props":20924,"children":20925},{},[20926],{"type":26,"value":15},{"type":26,"value":20928}," der beste Ausgangspunkt — es hat die größte Community, die meiste Dokumentation und direkten Zugang zu echter IBM-Hardware.",{"type":21,"tag":29,"props":20930,"children":20932},{"id":20931},"was-du-als-nächstes-bauen-solltest",[20933],{"type":26,"value":20934},"Was du als Nächstes bauen solltest",{"type":21,"tag":22,"props":20936,"children":20937},{},[20938],{"type":26,"value":20939},"Sobald dein Bell-Zustand läuft, hier eine Abfolge interessanter Schaltkreise zum Ausprobieren:",{"type":21,"tag":3137,"props":20941,"children":20942},{},[20943,20960,20969,20979],{"type":21,"tag":3141,"props":20944,"children":20945},{},[20946,20951,20953,20959],{"type":21,"tag":205,"props":20947,"children":20948},{},[20949],{"type":26,"value":20950},"GHZ-Zustand",{"type":26,"value":20952}," — ein verschränkter 3-Qubit-Zustand (",{"type":21,"tag":2097,"props":20954,"children":20956},{"className":20955},[],[20957],{"type":26,"value":20958},"h(0).cx(0,1).cx(0,2)",{"type":26,"value":17294},{"type":21,"tag":3141,"props":20961,"children":20962},{},[20963,20967],{"type":21,"tag":205,"props":20964,"children":20965},{},[20966],{"type":26,"value":3863},{"type":26,"value":20968}," — übertrage einen Qubit-Zustand mittels Verschränkung und klassischer Kommunikation",{"type":21,"tag":3141,"props":20970,"children":20971},{},[20972,20977],{"type":21,"tag":205,"props":20973,"children":20974},{},[20975],{"type":26,"value":20976},"Grovers Suche",{"type":26,"value":20978}," — finde ein markiertes Element in einer Liste quadratisch schneller als mit roher Gewalt",{"type":21,"tag":3141,"props":20980,"children":20981},{},[20982,20986],{"type":21,"tag":205,"props":20983,"children":20984},{},[20985],{"type":26,"value":352},{"type":26,"value":20987}," — schätze die Grundzustandsenergien von Molekülen mit einem variationellen Algorithmus",{"type":21,"tag":22,"props":20989,"children":20990},{},[20991,20993,20997,20999,21004],{"type":26,"value":20992},"Wirf einen Blick in den ",{"type":21,"tag":41,"props":20994,"children":20995},{"href":472},[20996],{"type":26,"value":20651},{"type":26,"value":20998}," und den ",{"type":21,"tag":41,"props":21000,"children":21001},{"href":144},[21002],{"type":26,"value":21003},"Hardware guide",{"type":26,"value":21005},", um tiefer einzutauchen.",{"type":21,"tag":18198,"props":21007,"children":21008},{},[],{"type":21,"tag":22,"props":21010,"children":21011},{},[21012,21014,21019,21021,21025],{"type":26,"value":21013},"💡 ",{"type":21,"tag":205,"props":21015,"children":21016},{},[21017],{"type":26,"value":21018},"Tipp:",{"type":26,"value":21020}," Wenn du planst, mit mehreren SDKs zu experimentieren, ohne deine Schaltkreise jedes Mal neu zu schreiben, bietet ",{"type":21,"tag":41,"props":21022,"children":21023},{"href":19030},[21024],{"type":26,"value":19033},{"type":26,"value":21026}," eine einheitliche API, die denselben Schaltkreis auf Qiskit, Cirq, PennyLane, Braket, CUDA-Q oder IonQ mit einem einzigen Backend-Flag ausführt.",{"type":21,"tag":2712,"props":21028,"children":21029},{},[21030],{"type":26,"value":2716},{"title":7,"searchDepth":173,"depth":173,"links":21032},[21033,21034,21035,21036,21037,21038],{"id":20211,"depth":173,"text":20214},{"id":20260,"depth":173,"text":20263},{"id":20551,"depth":173,"text":20554},{"id":20656,"depth":173,"text":20659},{"id":20800,"depth":173,"text":20803},{"id":20931,"depth":173,"text":20934},"content:de:blog:getting-started-free-quantum-computing.md","de\u002Fblog\u002Fgetting-started-free-quantum-computing.md","de\u002Fblog\u002Fgetting-started-free-quantum-computing",{"_path":21043,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":21044,"description":21045,"date":21046,"author":11,"tags":21047,"readingTime":196,"body":21049,"_type":180,"_id":23508,"_source":182,"_file":23509,"_stem":23510,"_extension":185},"\u002Fde\u002Fblog\u002Fhlquantum-vs-qiskit","HLQuantum vs. reines Qiskit: Wann man eine Abstraktionsschicht verwenden sollte","Ein praktischer Vergleich zwischen dem direkten Schreiben von Quantenschaltkreisen in Qiskit und der Verwendung der einheitlichen API von HLQuantum — mit Code im direkten Vergleich und einem Entscheidungsrahmen.","2026-03-08",[19033,15,7170,21048],"Best Practices",{"type":18,"children":21050,"toc":23498},[21051,21056,21061,21067,21076,21085,21091,21099,21331,21339,21500,21505,21511,21519,22035,22043,22380,22385,22391,22399,22790,22798,23041,23046,23052,23057,23139,23145,23150,23224,23230,23235,23444,23449,23455,23463,23468,23494],{"type":21,"tag":22,"props":21052,"children":21053},{},[21054],{"type":26,"value":21055},"Zu Beginn eines Quantencomputing-Projekts stellt sich eine echte Frage: Sollte man Schaltkreise direkt in Qiskit schreiben oder die Abstraktionsschicht von HLQuantum darüber verwenden? Beides sind gültige Entscheidungen, und die richtige Antwort hängt davon ab, was man baut.",{"type":21,"tag":22,"props":21057,"children":21058},{},[21059],{"type":26,"value":21060},"Dieser Beitrag bietet einen konkreten, codegetriebenen Vergleich, der bei der Entscheidung hilft.",{"type":21,"tag":29,"props":21062,"children":21064},{"id":21063},"der-grundlegende-unterschied",[21065],{"type":26,"value":21066},"Der grundlegende Unterschied",{"type":21,"tag":22,"props":21068,"children":21069},{},[21070,21074],{"type":21,"tag":205,"props":21071,"children":21072},{},[21073],{"type":26,"value":15},{"type":26,"value":21075}," ist das Quanten-SDK von IBM. Es gibt dir direkte, präzise Kontrolle über jedes Gatter, jedes Qubit, jede Messung und jeden Kompilierungsschritt. Es zielt nativ auf IBM-Hardware ab und verfügt über das umfangreichste Ökosystem für IBM-spezifische Arbeitsabläufe.",{"type":21,"tag":22,"props":21077,"children":21078},{},[21079,21083],{"type":21,"tag":205,"props":21080,"children":21081},{},[21082],{"type":26,"value":19033},{"type":26,"value":21084}," ist eine einheitliche API, die über Qiskit, Cirq, PennyLane, Braket, CUDA-Q und IonQ liegt. Du schreibst einen Schaltkreis; sie übersetzt ihn und leitet ihn an das jeweilige Backend weiter, auf das du sie ausrichtest. Sie tauscht etwas Low-Level-Kontrolle gegen Portabilität und Einfachheit ein.",{"type":21,"tag":29,"props":21086,"children":21088},{"id":21087},"direkter-vergleich-bell-zustand",[21089],{"type":26,"value":21090},"Direkter Vergleich: Bell-Zustand",{"type":21,"tag":22,"props":21092,"children":21093},{},[21094],{"type":21,"tag":205,"props":21095,"children":21096},{},[21097],{"type":26,"value":21098},"Reines Qiskit:",{"type":21,"tag":2328,"props":21100,"children":21102},{"code":21101,"language":3209,"meta":7,"className":3207,"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",[21103],{"type":21,"tag":2097,"props":21104,"children":21105},{"__ignoreMap":7},[21106,21125,21144,21151,21182,21197,21220,21260,21267,21282,21314],{"type":21,"tag":2338,"props":21107,"children":21108},{"class":2340,"line":2341},[21109,21113,21117,21121],{"type":21,"tag":2338,"props":21110,"children":21111},{"style":3219},[21112],{"type":26,"value":3222},{"type":21,"tag":2338,"props":21114,"children":21115},{"style":2345},[21116],{"type":26,"value":4316},{"type":21,"tag":2338,"props":21118,"children":21119},{"style":3219},[21120],{"type":26,"value":3232},{"type":21,"tag":2338,"props":21122,"children":21123},{"style":2345},[21124],{"type":26,"value":20332},{"type":21,"tag":2338,"props":21126,"children":21127},{"class":2340,"line":173},[21128,21132,21136,21140],{"type":21,"tag":2338,"props":21129,"children":21130},{"style":3219},[21131],{"type":26,"value":3222},{"type":21,"tag":2338,"props":21133,"children":21134},{"style":2345},[21135],{"type":26,"value":4337},{"type":21,"tag":2338,"props":21137,"children":21138},{"style":3219},[21139],{"type":26,"value":3232},{"type":21,"tag":2338,"props":21141,"children":21142},{"style":2345},[21143],{"type":26,"value":4346},{"type":21,"tag":2338,"props":21145,"children":21146},{"class":2340,"line":2359},[21147],{"type":21,"tag":2338,"props":21148,"children":21149},{"emptyLinePlaceholder":3243},[21150],{"type":26,"value":3246},{"type":21,"tag":2338,"props":21152,"children":21153},{"class":2340,"line":2421},[21154,21158,21162,21166,21170,21174,21178],{"type":21,"tag":2338,"props":21155,"children":21156},{"style":2345},[21157],{"type":26,"value":7403},{"type":21,"tag":2338,"props":21159,"children":21160},{"style":3219},[21161],{"type":26,"value":3259},{"type":21,"tag":2338,"props":21163,"children":21164},{"style":2345},[21165],{"type":26,"value":5159},{"type":21,"tag":2338,"props":21167,"children":21168},{"style":2363},[21169],{"type":26,"value":2437},{"type":21,"tag":2338,"props":21171,"children":21172},{"style":2345},[21173],{"type":26,"value":1375},{"type":21,"tag":2338,"props":21175,"children":21176},{"style":2363},[21177],{"type":26,"value":2437},{"type":21,"tag":2338,"props":21179,"children":21180},{"style":2345},[21181],{"type":26,"value":3319},{"type":21,"tag":2338,"props":21183,"children":21184},{"class":2340,"line":2445},[21185,21189,21193],{"type":21,"tag":2338,"props":21186,"children":21187},{"style":2345},[21188],{"type":26,"value":7419},{"type":21,"tag":2338,"props":21190,"children":21191},{"style":2363},[21192],{"type":26,"value":5189},{"type":21,"tag":2338,"props":21194,"children":21195},{"style":2345},[21196],{"type":26,"value":3319},{"type":21,"tag":2338,"props":21198,"children":21199},{"class":2340,"line":877},[21200,21204,21208,21212,21216],{"type":21,"tag":2338,"props":21201,"children":21202},{"style":2345},[21203],{"type":26,"value":20418},{"type":21,"tag":2338,"props":21205,"children":21206},{"style":2363},[21207],{"type":26,"value":5189},{"type":21,"tag":2338,"props":21209,"children":21210},{"style":2345},[21211],{"type":26,"value":1375},{"type":21,"tag":2338,"props":21213,"children":21214},{"style":2363},[21215],{"type":26,"value":3575},{"type":21,"tag":2338,"props":21217,"children":21218},{"style":2345},[21219],{"type":26,"value":3319},{"type":21,"tag":2338,"props":21221,"children":21222},{"class":2340,"line":196},[21223,21228,21232,21236,21240,21244,21248,21252,21256],{"type":21,"tag":2338,"props":21224,"children":21225},{"style":2345},[21226],{"type":26,"value":21227},"qc.measure([",{"type":21,"tag":2338,"props":21229,"children":21230},{"style":2363},[21231],{"type":26,"value":5189},{"type":21,"tag":2338,"props":21233,"children":21234},{"style":2345},[21235],{"type":26,"value":1375},{"type":21,"tag":2338,"props":21237,"children":21238},{"style":2363},[21239],{"type":26,"value":3575},{"type":21,"tag":2338,"props":21241,"children":21242},{"style":2345},[21243],{"type":26,"value":5244},{"type":21,"tag":2338,"props":21245,"children":21246},{"style":2363},[21247],{"type":26,"value":5189},{"type":21,"tag":2338,"props":21249,"children":21250},{"style":2345},[21251],{"type":26,"value":1375},{"type":21,"tag":2338,"props":21253,"children":21254},{"style":2363},[21255],{"type":26,"value":3575},{"type":21,"tag":2338,"props":21257,"children":21258},{"style":2345},[21259],{"type":26,"value":3580},{"type":21,"tag":2338,"props":21261,"children":21262},{"class":2340,"line":951},[21263],{"type":21,"tag":2338,"props":21264,"children":21265},{"emptyLinePlaceholder":3243},[21266],{"type":26,"value":3246},{"type":21,"tag":2338,"props":21268,"children":21269},{"class":2340,"line":16},[21270,21274,21278],{"type":21,"tag":2338,"props":21271,"children":21272},{"style":2345},[21273],{"type":26,"value":8445},{"type":21,"tag":2338,"props":21275,"children":21276},{"style":3219},[21277],{"type":26,"value":3259},{"type":21,"tag":2338,"props":21279,"children":21280},{"style":2345},[21281],{"type":26,"value":8454},{"type":21,"tag":2338,"props":21283,"children":21284},{"class":2340,"line":3465},[21285,21289,21293,21298,21302,21306,21310],{"type":21,"tag":2338,"props":21286,"children":21287},{"style":2345},[21288],{"type":26,"value":19355},{"type":21,"tag":2338,"props":21290,"children":21291},{"style":3219},[21292],{"type":26,"value":3259},{"type":21,"tag":2338,"props":21294,"children":21295},{"style":2345},[21296],{"type":26,"value":21297}," sim.run(qc, ",{"type":21,"tag":2338,"props":21299,"children":21300},{"style":3284},[21301],{"type":26,"value":4144},{"type":21,"tag":2338,"props":21303,"children":21304},{"style":3219},[21305],{"type":26,"value":3259},{"type":21,"tag":2338,"props":21307,"children":21308},{"style":2363},[21309],{"type":26,"value":20490},{"type":21,"tag":2338,"props":21311,"children":21312},{"style":2345},[21313],{"type":26,"value":20495},{"type":21,"tag":2338,"props":21315,"children":21316},{"class":2340,"line":3475},[21317,21321,21326],{"type":21,"tag":2338,"props":21318,"children":21319},{"style":2363},[21320],{"type":26,"value":3334},{"type":21,"tag":2338,"props":21322,"children":21323},{"style":2345},[21324],{"type":26,"value":21325},"(result.get_counts())  ",{"type":21,"tag":2338,"props":21327,"children":21328},{"style":3469},[21329],{"type":26,"value":21330},"# {'00': 501, '11': 499}\n",{"type":21,"tag":22,"props":21332,"children":21333},{},[21334],{"type":21,"tag":205,"props":21335,"children":21336},{},[21337],{"type":26,"value":21338},"HLQuantum:",{"type":21,"tag":2328,"props":21340,"children":21342},{"code":21341,"language":3209,"meta":7,"className":3207,"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",[21343],{"type":21,"tag":2097,"props":21344,"children":21345},{"__ignoreMap":7},[21346,21365,21372,21396,21429,21436,21484],{"type":21,"tag":2338,"props":21347,"children":21348},{"class":2340,"line":2341},[21349,21353,21357,21361],{"type":21,"tag":2338,"props":21350,"children":21351},{"style":3219},[21352],{"type":26,"value":3232},{"type":21,"tag":2338,"props":21354,"children":21355},{"style":2345},[21356],{"type":26,"value":19323},{"type":21,"tag":2338,"props":21358,"children":21359},{"style":3219},[21360],{"type":26,"value":4299},{"type":21,"tag":2338,"props":21362,"children":21363},{"style":2345},[21364],{"type":26,"value":19332},{"type":21,"tag":2338,"props":21366,"children":21367},{"class":2340,"line":173},[21368],{"type":21,"tag":2338,"props":21369,"children":21370},{"emptyLinePlaceholder":3243},[21371],{"type":26,"value":3246},{"type":21,"tag":2338,"props":21373,"children":21374},{"class":2340,"line":2359},[21375,21379,21383,21388,21392],{"type":21,"tag":2338,"props":21376,"children":21377},{"style":2345},[21378],{"type":26,"value":7403},{"type":21,"tag":2338,"props":21380,"children":21381},{"style":3219},[21382],{"type":26,"value":3259},{"type":21,"tag":2338,"props":21384,"children":21385},{"style":2345},[21386],{"type":26,"value":21387}," hlq.Circuit(",{"type":21,"tag":2338,"props":21389,"children":21390},{"style":2363},[21391],{"type":26,"value":2437},{"type":21,"tag":2338,"props":21393,"children":21394},{"style":2345},[21395],{"type":26,"value":3319},{"type":21,"tag":2338,"props":21397,"children":21398},{"class":2340,"line":2421},[21399,21403,21407,21412,21416,21420,21424],{"type":21,"tag":2338,"props":21400,"children":21401},{"style":2345},[21402],{"type":26,"value":7419},{"type":21,"tag":2338,"props":21404,"children":21405},{"style":2363},[21406],{"type":26,"value":5189},{"type":21,"tag":2338,"props":21408,"children":21409},{"style":2345},[21410],{"type":26,"value":21411},").cx(",{"type":21,"tag":2338,"props":21413,"children":21414},{"style":2363},[21415],{"type":26,"value":5189},{"type":21,"tag":2338,"props":21417,"children":21418},{"style":2345},[21419],{"type":26,"value":1375},{"type":21,"tag":2338,"props":21421,"children":21422},{"style":2363},[21423],{"type":26,"value":3575},{"type":21,"tag":2338,"props":21425,"children":21426},{"style":2345},[21427],{"type":26,"value":21428},").measure_all()\n",{"type":21,"tag":2338,"props":21430,"children":21431},{"class":2340,"line":2445},[21432],{"type":21,"tag":2338,"props":21433,"children":21434},{"emptyLinePlaceholder":3243},[21435],{"type":26,"value":3246},{"type":21,"tag":2338,"props":21437,"children":21438},{"class":2340,"line":877},[21439,21443,21447,21452,21456,21460,21464,21468,21472,21476,21480],{"type":21,"tag":2338,"props":21440,"children":21441},{"style":2345},[21442],{"type":26,"value":19355},{"type":21,"tag":2338,"props":21444,"children":21445},{"style":3219},[21446],{"type":26,"value":3259},{"type":21,"tag":2338,"props":21448,"children":21449},{"style":2345},[21450],{"type":26,"value":21451}," hlq.run(qc, ",{"type":21,"tag":2338,"props":21453,"children":21454},{"style":3284},[21455],{"type":26,"value":18490},{"type":21,"tag":2338,"props":21457,"children":21458},{"style":3219},[21459],{"type":26,"value":3259},{"type":21,"tag":2338,"props":21461,"children":21462},{"style":2374},[21463],{"type":26,"value":19413},{"type":21,"tag":2338,"props":21465,"children":21466},{"style":2345},[21467],{"type":26,"value":1375},{"type":21,"tag":2338,"props":21469,"children":21470},{"style":3284},[21471],{"type":26,"value":4144},{"type":21,"tag":2338,"props":21473,"children":21474},{"style":3219},[21475],{"type":26,"value":3259},{"type":21,"tag":2338,"props":21477,"children":21478},{"style":2363},[21479],{"type":26,"value":20490},{"type":21,"tag":2338,"props":21481,"children":21482},{"style":2345},[21483],{"type":26,"value":3319},{"type":21,"tag":2338,"props":21485,"children":21486},{"class":2340,"line":196},[21487,21491,21496],{"type":21,"tag":2338,"props":21488,"children":21489},{"style":2363},[21490],{"type":26,"value":3334},{"type":21,"tag":2338,"props":21492,"children":21493},{"style":2345},[21494],{"type":26,"value":21495},"(result.counts)  ",{"type":21,"tag":2338,"props":21497,"children":21498},{"style":3469},[21499],{"type":26,"value":21330},{"type":21,"tag":22,"props":21501,"children":21502},{},[21503],{"type":26,"value":21504},"Etwa gleicher Umfang für ein einzelnes Backend. Der Unterschied zeigt sich, wenn man weitere Backends hinzufügt.",{"type":21,"tag":29,"props":21506,"children":21508},{"id":21507},"direkter-vergleich-ausführung-auf-mehreren-backends",[21509],{"type":26,"value":21510},"Direkter Vergleich: Ausführung auf mehreren Backends",{"type":21,"tag":22,"props":21512,"children":21513},{},[21514],{"type":21,"tag":205,"props":21515,"children":21516},{},[21517],{"type":26,"value":21518},"Reines Qiskit (um ein zweites Backend hinzuzufügen, muss man neu schreiben):",{"type":21,"tag":2328,"props":21520,"children":21522},{"code":21521,"language":3209,"meta":7,"className":3207,"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 — völlig andere API, Schaltkreis neu schreiben\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 — noch eine weitere API, erneut neu schreiben\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",[21523],{"type":21,"tag":2097,"props":21524,"children":21525},{"__ignoreMap":7},[21526,21534,21553,21572,21604,21638,21671,21678,21686,21705,21745,21756,21773,21797,21834,21874,21891,21898,21906,21918,21926,21941,21966,22001],{"type":21,"tag":2338,"props":21527,"children":21528},{"class":2340,"line":2341},[21529],{"type":21,"tag":2338,"props":21530,"children":21531},{"style":3469},[21532],{"type":26,"value":21533},"# Qiskit Aer\n",{"type":21,"tag":2338,"props":21535,"children":21536},{"class":2340,"line":173},[21537,21541,21545,21549],{"type":21,"tag":2338,"props":21538,"children":21539},{"style":3219},[21540],{"type":26,"value":3222},{"type":21,"tag":2338,"props":21542,"children":21543},{"style":2345},[21544],{"type":26,"value":4316},{"type":21,"tag":2338,"props":21546,"children":21547},{"style":3219},[21548],{"type":26,"value":3232},{"type":21,"tag":2338,"props":21550,"children":21551},{"style":2345},[21552],{"type":26,"value":20332},{"type":21,"tag":2338,"props":21554,"children":21555},{"class":2340,"line":2359},[21556,21560,21564,21568],{"type":21,"tag":2338,"props":21557,"children":21558},{"style":3219},[21559],{"type":26,"value":3222},{"type":21,"tag":2338,"props":21561,"children":21562},{"style":2345},[21563],{"type":26,"value":4337},{"type":21,"tag":2338,"props":21565,"children":21566},{"style":3219},[21567],{"type":26,"value":3232},{"type":21,"tag":2338,"props":21569,"children":21570},{"style":2345},[21571],{"type":26,"value":4346},{"type":21,"tag":2338,"props":21573,"children":21574},{"class":2340,"line":2421},[21575,21580,21584,21588,21592,21596,21600],{"type":21,"tag":2338,"props":21576,"children":21577},{"style":2345},[21578],{"type":26,"value":21579},"qc_qiskit ",{"type":21,"tag":2338,"props":21581,"children":21582},{"style":3219},[21583],{"type":26,"value":3259},{"type":21,"tag":2338,"props":21585,"children":21586},{"style":2345},[21587],{"type":26,"value":5159},{"type":21,"tag":2338,"props":21589,"children":21590},{"style":2363},[21591],{"type":26,"value":2437},{"type":21,"tag":2338,"props":21593,"children":21594},{"style":2345},[21595],{"type":26,"value":1375},{"type":21,"tag":2338,"props":21597,"children":21598},{"style":2363},[21599],{"type":26,"value":2437},{"type":21,"tag":2338,"props":21601,"children":21602},{"style":2345},[21603],{"type":26,"value":3319},{"type":21,"tag":2338,"props":21605,"children":21606},{"class":2340,"line":2445},[21607,21612,21616,21621,21625,21629,21633],{"type":21,"tag":2338,"props":21608,"children":21609},{"style":2345},[21610],{"type":26,"value":21611},"qc_qiskit.h(",{"type":21,"tag":2338,"props":21613,"children":21614},{"style":2363},[21615],{"type":26,"value":5189},{"type":21,"tag":2338,"props":21617,"children":21618},{"style":2345},[21619],{"type":26,"value":21620},"); qc_qiskit.cx(",{"type":21,"tag":2338,"props":21622,"children":21623},{"style":2363},[21624],{"type":26,"value":5189},{"type":21,"tag":2338,"props":21626,"children":21627},{"style":2345},[21628],{"type":26,"value":1375},{"type":21,"tag":2338,"props":21630,"children":21631},{"style":2363},[21632],{"type":26,"value":3575},{"type":21,"tag":2338,"props":21634,"children":21635},{"style":2345},[21636],{"type":26,"value":21637},"); qc_qiskit.measure_all()\n",{"type":21,"tag":2338,"props":21639,"children":21640},{"class":2340,"line":877},[21641,21646,21650,21655,21659,21663,21667],{"type":21,"tag":2338,"props":21642,"children":21643},{"style":2345},[21644],{"type":26,"value":21645},"result_qiskit ",{"type":21,"tag":2338,"props":21647,"children":21648},{"style":3219},[21649],{"type":26,"value":3259},{"type":21,"tag":2338,"props":21651,"children":21652},{"style":2345},[21653],{"type":26,"value":21654}," AerSimulator().run(qc_qiskit, ",{"type":21,"tag":2338,"props":21656,"children":21657},{"style":3284},[21658],{"type":26,"value":4144},{"type":21,"tag":2338,"props":21660,"children":21661},{"style":3219},[21662],{"type":26,"value":3259},{"type":21,"tag":2338,"props":21664,"children":21665},{"style":2363},[21666],{"type":26,"value":20490},{"type":21,"tag":2338,"props":21668,"children":21669},{"style":2345},[21670],{"type":26,"value":20495},{"type":21,"tag":2338,"props":21672,"children":21673},{"class":2340,"line":196},[21674],{"type":21,"tag":2338,"props":21675,"children":21676},{"emptyLinePlaceholder":3243},[21677],{"type":26,"value":3246},{"type":21,"tag":2338,"props":21679,"children":21680},{"class":2340,"line":951},[21681],{"type":21,"tag":2338,"props":21682,"children":21683},{"style":3469},[21684],{"type":26,"value":21685},"# PennyLane — völlig andere API, Schaltkreis neu schreiben\n",{"type":21,"tag":2338,"props":21687,"children":21688},{"class":2340,"line":16},[21689,21693,21697,21701],{"type":21,"tag":2338,"props":21690,"children":21691},{"style":3219},[21692],{"type":26,"value":3232},{"type":21,"tag":2338,"props":21694,"children":21695},{"style":2345},[21696],{"type":26,"value":14113},{"type":21,"tag":2338,"props":21698,"children":21699},{"style":3219},[21700],{"type":26,"value":4299},{"type":21,"tag":2338,"props":21702,"children":21703},{"style":2345},[21704],{"type":26,"value":14122},{"type":21,"tag":2338,"props":21706,"children":21707},{"class":2340,"line":3465},[21708,21712,21716,21720,21725,21729,21733,21737,21741],{"type":21,"tag":2338,"props":21709,"children":21710},{"style":2345},[21711],{"type":26,"value":14246},{"type":21,"tag":2338,"props":21713,"children":21714},{"style":3219},[21715],{"type":26,"value":3259},{"type":21,"tag":2338,"props":21717,"children":21718},{"style":2345},[21719],{"type":26,"value":14255},{"type":21,"tag":2338,"props":21721,"children":21722},{"style":2374},[21723],{"type":26,"value":21724},"'default.qubit'",{"type":21,"tag":2338,"props":21726,"children":21727},{"style":2345},[21728],{"type":26,"value":1375},{"type":21,"tag":2338,"props":21730,"children":21731},{"style":3284},[21732],{"type":26,"value":14269},{"type":21,"tag":2338,"props":21734,"children":21735},{"style":3219},[21736],{"type":26,"value":3259},{"type":21,"tag":2338,"props":21738,"children":21739},{"style":2363},[21740],{"type":26,"value":2437},{"type":21,"tag":2338,"props":21742,"children":21743},{"style":2345},[21744],{"type":26,"value":3319},{"type":21,"tag":2338,"props":21746,"children":21747},{"class":2340,"line":3475},[21748,21752],{"type":21,"tag":2338,"props":21749,"children":21750},{"style":4385},[21751],{"type":26,"value":14293},{"type":21,"tag":2338,"props":21753,"children":21754},{"style":2345},[21755],{"type":26,"value":14298},{"type":21,"tag":2338,"props":21757,"children":21758},{"class":2340,"line":500},[21759,21763,21768],{"type":21,"tag":2338,"props":21760,"children":21761},{"style":3219},[21762],{"type":26,"value":4382},{"type":21,"tag":2338,"props":21764,"children":21765},{"style":4385},[21766],{"type":26,"value":21767}," bell",{"type":21,"tag":2338,"props":21769,"children":21770},{"style":2345},[21771],{"type":26,"value":21772},"():\n",{"type":21,"tag":2338,"props":21774,"children":21775},{"class":2340,"line":3535},[21776,21781,21785,21789,21793],{"type":21,"tag":2338,"props":21777,"children":21778},{"style":2345},[21779],{"type":26,"value":21780},"    qml.Hadamard(",{"type":21,"tag":2338,"props":21782,"children":21783},{"style":3284},[21784],{"type":26,"value":14269},{"type":21,"tag":2338,"props":21786,"children":21787},{"style":3219},[21788],{"type":26,"value":3259},{"type":21,"tag":2338,"props":21790,"children":21791},{"style":2363},[21792],{"type":26,"value":5189},{"type":21,"tag":2338,"props":21794,"children":21795},{"style":2345},[21796],{"type":26,"value":3319},{"type":21,"tag":2338,"props":21798,"children":21799},{"class":2340,"line":3583},[21800,21805,21809,21813,21818,21822,21826,21830],{"type":21,"tag":2338,"props":21801,"children":21802},{"style":2345},[21803],{"type":26,"value":21804},"    qml.CNOT(",{"type":21,"tag":2338,"props":21806,"children":21807},{"style":3284},[21808],{"type":26,"value":14269},{"type":21,"tag":2338,"props":21810,"children":21811},{"style":3219},[21812],{"type":26,"value":3259},{"type":21,"tag":2338,"props":21814,"children":21815},{"style":2345},[21816],{"type":26,"value":21817},"[",{"type":21,"tag":2338,"props":21819,"children":21820},{"style":2363},[21821],{"type":26,"value":5189},{"type":21,"tag":2338,"props":21823,"children":21824},{"style":2345},[21825],{"type":26,"value":1375},{"type":21,"tag":2338,"props":21827,"children":21828},{"style":2363},[21829],{"type":26,"value":3575},{"type":21,"tag":2338,"props":21831,"children":21832},{"style":2345},[21833],{"type":26,"value":3580},{"type":21,"tag":2338,"props":21835,"children":21836},{"class":2340,"line":3625},[21837,21841,21846,21850,21854,21858,21862,21866,21870],{"type":21,"tag":2338,"props":21838,"children":21839},{"style":3219},[21840],{"type":26,"value":4607},{"type":21,"tag":2338,"props":21842,"children":21843},{"style":2345},[21844],{"type":26,"value":21845}," qml.probs(",{"type":21,"tag":2338,"props":21847,"children":21848},{"style":3284},[21849],{"type":26,"value":14269},{"type":21,"tag":2338,"props":21851,"children":21852},{"style":3219},[21853],{"type":26,"value":3259},{"type":21,"tag":2338,"props":21855,"children":21856},{"style":2345},[21857],{"type":26,"value":21817},{"type":21,"tag":2338,"props":21859,"children":21860},{"style":2363},[21861],{"type":26,"value":5189},{"type":21,"tag":2338,"props":21863,"children":21864},{"style":2345},[21865],{"type":26,"value":1375},{"type":21,"tag":2338,"props":21867,"children":21868},{"style":2363},[21869],{"type":26,"value":3575},{"type":21,"tag":2338,"props":21871,"children":21872},{"style":2345},[21873],{"type":26,"value":3580},{"type":21,"tag":2338,"props":21875,"children":21876},{"class":2340,"line":4652},[21877,21882,21886],{"type":21,"tag":2338,"props":21878,"children":21879},{"style":2345},[21880],{"type":26,"value":21881},"result_pennylane ",{"type":21,"tag":2338,"props":21883,"children":21884},{"style":3219},[21885],{"type":26,"value":3259},{"type":21,"tag":2338,"props":21887,"children":21888},{"style":2345},[21889],{"type":26,"value":21890}," bell()\n",{"type":21,"tag":2338,"props":21892,"children":21893},{"class":2340,"line":4671},[21894],{"type":21,"tag":2338,"props":21895,"children":21896},{"emptyLinePlaceholder":3243},[21897],{"type":26,"value":3246},{"type":21,"tag":2338,"props":21899,"children":21900},{"class":2340,"line":4679},[21901],{"type":21,"tag":2338,"props":21902,"children":21903},{"style":3469},[21904],{"type":26,"value":21905},"# CUDA-Q — noch eine weitere API, erneut neu schreiben\n",{"type":21,"tag":2338,"props":21907,"children":21908},{"class":2340,"line":4710},[21909,21913],{"type":21,"tag":2338,"props":21910,"children":21911},{"style":3219},[21912],{"type":26,"value":3232},{"type":21,"tag":2338,"props":21914,"children":21915},{"style":2345},[21916],{"type":26,"value":21917}," cudaq\n",{"type":21,"tag":2338,"props":21919,"children":21920},{"class":2340,"line":4755},[21921],{"type":21,"tag":2338,"props":21922,"children":21923},{"style":4385},[21924],{"type":26,"value":21925},"@cudaq.kernel\n",{"type":21,"tag":2338,"props":21927,"children":21928},{"class":2340,"line":4794},[21929,21933,21937],{"type":21,"tag":2338,"props":21930,"children":21931},{"style":3219},[21932],{"type":26,"value":4382},{"type":21,"tag":2338,"props":21934,"children":21935},{"style":4385},[21936],{"type":26,"value":21767},{"type":21,"tag":2338,"props":21938,"children":21939},{"style":2345},[21940],{"type":26,"value":21772},{"type":21,"tag":2338,"props":21942,"children":21943},{"class":2340,"line":4812},[21944,21949,21953,21958,21962],{"type":21,"tag":2338,"props":21945,"children":21946},{"style":2345},[21947],{"type":26,"value":21948},"    qvec ",{"type":21,"tag":2338,"props":21950,"children":21951},{"style":3219},[21952],{"type":26,"value":3259},{"type":21,"tag":2338,"props":21954,"children":21955},{"style":2345},[21956],{"type":26,"value":21957}," cudaq.qvector(",{"type":21,"tag":2338,"props":21959,"children":21960},{"style":2363},[21961],{"type":26,"value":2437},{"type":21,"tag":2338,"props":21963,"children":21964},{"style":2345},[21965],{"type":26,"value":3319},{"type":21,"tag":2338,"props":21967,"children":21968},{"class":2340,"line":4886},[21969,21974,21978,21983,21987,21992,21996],{"type":21,"tag":2338,"props":21970,"children":21971},{"style":2345},[21972],{"type":26,"value":21973},"    h(qvec[",{"type":21,"tag":2338,"props":21975,"children":21976},{"style":2363},[21977],{"type":26,"value":5189},{"type":21,"tag":2338,"props":21979,"children":21980},{"style":2345},[21981],{"type":26,"value":21982},"]); cx(qvec[",{"type":21,"tag":2338,"props":21984,"children":21985},{"style":2363},[21986],{"type":26,"value":5189},{"type":21,"tag":2338,"props":21988,"children":21989},{"style":2345},[21990],{"type":26,"value":21991},"], qvec[",{"type":21,"tag":2338,"props":21993,"children":21994},{"style":2363},[21995],{"type":26,"value":3575},{"type":21,"tag":2338,"props":21997,"children":21998},{"style":2345},[21999],{"type":26,"value":22000},"]); mz(qvec)\n",{"type":21,"tag":2338,"props":22002,"children":22003},{"class":2340,"line":4914},[22004,22009,22013,22018,22023,22027,22031],{"type":21,"tag":2338,"props":22005,"children":22006},{"style":2345},[22007],{"type":26,"value":22008},"result_cudaq ",{"type":21,"tag":2338,"props":22010,"children":22011},{"style":3219},[22012],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22014,"children":22015},{"style":2345},[22016],{"type":26,"value":22017}," cudaq.sample(bell, ",{"type":21,"tag":2338,"props":22019,"children":22020},{"style":3284},[22021],{"type":26,"value":22022},"shots_count",{"type":21,"tag":2338,"props":22024,"children":22025},{"style":3219},[22026],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22028,"children":22029},{"style":2363},[22030],{"type":26,"value":20490},{"type":21,"tag":2338,"props":22032,"children":22033},{"style":2345},[22034],{"type":26,"value":3319},{"type":21,"tag":22,"props":22036,"children":22037},{},[22038],{"type":21,"tag":205,"props":22039,"children":22040},{},[22041],{"type":26,"value":22042},"HLQuantum (ein Schaltkreis, jedes Backend):",{"type":21,"tag":2328,"props":22044,"children":22046},{"code":22045,"language":3209,"meta":7,"className":3207,"style":7},"import hlquantum as hlq\n\nqc = hlq.Circuit(2)\nqc.h(0).cx(0, 1).measure_all()\n\n# Backends mit einem Wort wechseln\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",[22047],{"type":21,"tag":2097,"props":22048,"children":22049},{"__ignoreMap":7},[22050,22069,22076,22099,22130,22137,22145,22177,22209,22247,22280,22331],{"type":21,"tag":2338,"props":22051,"children":22052},{"class":2340,"line":2341},[22053,22057,22061,22065],{"type":21,"tag":2338,"props":22054,"children":22055},{"style":3219},[22056],{"type":26,"value":3232},{"type":21,"tag":2338,"props":22058,"children":22059},{"style":2345},[22060],{"type":26,"value":19323},{"type":21,"tag":2338,"props":22062,"children":22063},{"style":3219},[22064],{"type":26,"value":4299},{"type":21,"tag":2338,"props":22066,"children":22067},{"style":2345},[22068],{"type":26,"value":19332},{"type":21,"tag":2338,"props":22070,"children":22071},{"class":2340,"line":173},[22072],{"type":21,"tag":2338,"props":22073,"children":22074},{"emptyLinePlaceholder":3243},[22075],{"type":26,"value":3246},{"type":21,"tag":2338,"props":22077,"children":22078},{"class":2340,"line":2359},[22079,22083,22087,22091,22095],{"type":21,"tag":2338,"props":22080,"children":22081},{"style":2345},[22082],{"type":26,"value":7403},{"type":21,"tag":2338,"props":22084,"children":22085},{"style":3219},[22086],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22088,"children":22089},{"style":2345},[22090],{"type":26,"value":21387},{"type":21,"tag":2338,"props":22092,"children":22093},{"style":2363},[22094],{"type":26,"value":2437},{"type":21,"tag":2338,"props":22096,"children":22097},{"style":2345},[22098],{"type":26,"value":3319},{"type":21,"tag":2338,"props":22100,"children":22101},{"class":2340,"line":2421},[22102,22106,22110,22114,22118,22122,22126],{"type":21,"tag":2338,"props":22103,"children":22104},{"style":2345},[22105],{"type":26,"value":7419},{"type":21,"tag":2338,"props":22107,"children":22108},{"style":2363},[22109],{"type":26,"value":5189},{"type":21,"tag":2338,"props":22111,"children":22112},{"style":2345},[22113],{"type":26,"value":21411},{"type":21,"tag":2338,"props":22115,"children":22116},{"style":2363},[22117],{"type":26,"value":5189},{"type":21,"tag":2338,"props":22119,"children":22120},{"style":2345},[22121],{"type":26,"value":1375},{"type":21,"tag":2338,"props":22123,"children":22124},{"style":2363},[22125],{"type":26,"value":3575},{"type":21,"tag":2338,"props":22127,"children":22128},{"style":2345},[22129],{"type":26,"value":21428},{"type":21,"tag":2338,"props":22131,"children":22132},{"class":2340,"line":2445},[22133],{"type":21,"tag":2338,"props":22134,"children":22135},{"emptyLinePlaceholder":3243},[22136],{"type":26,"value":3246},{"type":21,"tag":2338,"props":22138,"children":22139},{"class":2340,"line":877},[22140],{"type":21,"tag":2338,"props":22141,"children":22142},{"style":3469},[22143],{"type":26,"value":22144},"# Backends mit einem Wort wechseln\n",{"type":21,"tag":2338,"props":22146,"children":22147},{"class":2340,"line":196},[22148,22153,22157,22161,22165,22169,22173],{"type":21,"tag":2338,"props":22149,"children":22150},{"style":2345},[22151],{"type":26,"value":22152},"result_qiskit    ",{"type":21,"tag":2338,"props":22154,"children":22155},{"style":3219},[22156],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22158,"children":22159},{"style":2345},[22160],{"type":26,"value":21451},{"type":21,"tag":2338,"props":22162,"children":22163},{"style":3284},[22164],{"type":26,"value":18490},{"type":21,"tag":2338,"props":22166,"children":22167},{"style":3219},[22168],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22170,"children":22171},{"style":2374},[22172],{"type":26,"value":19413},{"type":21,"tag":2338,"props":22174,"children":22175},{"style":2345},[22176],{"type":26,"value":3319},{"type":21,"tag":2338,"props":22178,"children":22179},{"class":2340,"line":951},[22180,22184,22188,22192,22196,22200,22205],{"type":21,"tag":2338,"props":22181,"children":22182},{"style":2345},[22183],{"type":26,"value":21881},{"type":21,"tag":2338,"props":22185,"children":22186},{"style":3219},[22187],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22189,"children":22190},{"style":2345},[22191],{"type":26,"value":21451},{"type":21,"tag":2338,"props":22193,"children":22194},{"style":3284},[22195],{"type":26,"value":18490},{"type":21,"tag":2338,"props":22197,"children":22198},{"style":3219},[22199],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22201,"children":22202},{"style":2374},[22203],{"type":26,"value":22204},"'pennylane'",{"type":21,"tag":2338,"props":22206,"children":22207},{"style":2345},[22208],{"type":26,"value":3319},{"type":21,"tag":2338,"props":22210,"children":22211},{"class":2340,"line":16},[22212,22217,22221,22225,22229,22233,22238,22242],{"type":21,"tag":2338,"props":22213,"children":22214},{"style":2345},[22215],{"type":26,"value":22216},"result_cudaq     ",{"type":21,"tag":2338,"props":22218,"children":22219},{"style":3219},[22220],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22222,"children":22223},{"style":2345},[22224],{"type":26,"value":21451},{"type":21,"tag":2338,"props":22226,"children":22227},{"style":3284},[22228],{"type":26,"value":18490},{"type":21,"tag":2338,"props":22230,"children":22231},{"style":3219},[22232],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22234,"children":22235},{"style":2374},[22236],{"type":26,"value":22237},"'cudaq'",{"type":21,"tag":2338,"props":22239,"children":22240},{"style":2345},[22241],{"type":26,"value":8233},{"type":21,"tag":2338,"props":22243,"children":22244},{"style":3469},[22245],{"type":26,"value":22246},"# GPU\n",{"type":21,"tag":2338,"props":22248,"children":22249},{"class":2340,"line":3465},[22250,22255,22259,22263,22267,22271,22276],{"type":21,"tag":2338,"props":22251,"children":22252},{"style":2345},[22253],{"type":26,"value":22254},"result_cirq      ",{"type":21,"tag":2338,"props":22256,"children":22257},{"style":3219},[22258],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22260,"children":22261},{"style":2345},[22262],{"type":26,"value":21451},{"type":21,"tag":2338,"props":22264,"children":22265},{"style":3284},[22266],{"type":26,"value":18490},{"type":21,"tag":2338,"props":22268,"children":22269},{"style":3219},[22270],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22272,"children":22273},{"style":2374},[22274],{"type":26,"value":22275},"'cirq'",{"type":21,"tag":2338,"props":22277,"children":22278},{"style":2345},[22279],{"type":26,"value":3319},{"type":21,"tag":2338,"props":22281,"children":22282},{"class":2340,"line":3475},[22283,22288,22292,22296,22300,22304,22309,22313,22318,22322,22327],{"type":21,"tag":2338,"props":22284,"children":22285},{"style":2345},[22286],{"type":26,"value":22287},"result_ionq      ",{"type":21,"tag":2338,"props":22289,"children":22290},{"style":3219},[22291],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22293,"children":22294},{"style":2345},[22295],{"type":26,"value":21451},{"type":21,"tag":2338,"props":22297,"children":22298},{"style":3284},[22299],{"type":26,"value":18490},{"type":21,"tag":2338,"props":22301,"children":22302},{"style":3219},[22303],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22305,"children":22306},{"style":2374},[22307],{"type":26,"value":22308},"'ionq'",{"type":21,"tag":2338,"props":22310,"children":22311},{"style":2345},[22312],{"type":26,"value":1375},{"type":21,"tag":2338,"props":22314,"children":22315},{"style":3284},[22316],{"type":26,"value":22317},"device",{"type":21,"tag":2338,"props":22319,"children":22320},{"style":3219},[22321],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22323,"children":22324},{"style":2374},[22325],{"type":26,"value":22326},"'aria-1'",{"type":21,"tag":2338,"props":22328,"children":22329},{"style":2345},[22330],{"type":26,"value":3319},{"type":21,"tag":2338,"props":22332,"children":22333},{"class":2340,"line":500},[22334,22339,22343,22347,22351,22355,22359,22363,22367,22371,22376],{"type":21,"tag":2338,"props":22335,"children":22336},{"style":2345},[22337],{"type":26,"value":22338},"result_ibm       ",{"type":21,"tag":2338,"props":22340,"children":22341},{"style":3219},[22342],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22344,"children":22345},{"style":2345},[22346],{"type":26,"value":21451},{"type":21,"tag":2338,"props":22348,"children":22349},{"style":3284},[22350],{"type":26,"value":18490},{"type":21,"tag":2338,"props":22352,"children":22353},{"style":3219},[22354],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22356,"children":22357},{"style":2374},[22358],{"type":26,"value":19413},{"type":21,"tag":2338,"props":22360,"children":22361},{"style":2345},[22362],{"type":26,"value":1375},{"type":21,"tag":2338,"props":22364,"children":22365},{"style":3284},[22366],{"type":26,"value":22317},{"type":21,"tag":2338,"props":22368,"children":22369},{"style":3219},[22370],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22372,"children":22373},{"style":2374},[22374],{"type":26,"value":22375},"'ibm_sherbrooke'",{"type":21,"tag":2338,"props":22377,"children":22378},{"style":2345},[22379],{"type":26,"value":3319},{"type":21,"tag":22,"props":22381,"children":22382},{},[22383],{"type":26,"value":22384},"Hier macht sich HLQuantum bezahlt — Prototyping auf einem lokalen Simulator und Deployment auf einer QPU, ohne den Schaltkreis neu zu schreiben.",{"type":21,"tag":29,"props":22386,"children":22388},{"id":22387},"direkter-vergleich-vqe",[22389],{"type":26,"value":22390},"Direkter Vergleich: VQE",{"type":21,"tag":22,"props":22392,"children":22393},{},[22394],{"type":21,"tag":205,"props":22395,"children":22396},{},[22397],{"type":26,"value":22398},"Reines Qiskit VQE:",{"type":21,"tag":2328,"props":22400,"children":22402},{"code":22401,"language":3209,"meta":7,"className":3207,"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",[22403],{"type":21,"tag":2097,"props":22404,"children":22405},{"__ignoreMap":7},[22406,22427,22448,22469,22490,22511,22532,22539,22574,22591,22608,22633,22640,22657,22665,22673,22681,22698,22705,22712,22729,22745],{"type":21,"tag":2338,"props":22407,"children":22408},{"class":2340,"line":2341},[22409,22413,22418,22422],{"type":21,"tag":2338,"props":22410,"children":22411},{"style":3219},[22412],{"type":26,"value":3222},{"type":21,"tag":2338,"props":22414,"children":22415},{"style":2345},[22416],{"type":26,"value":22417}," qiskit_nature.second_q.drivers ",{"type":21,"tag":2338,"props":22419,"children":22420},{"style":3219},[22421],{"type":26,"value":3232},{"type":21,"tag":2338,"props":22423,"children":22424},{"style":2345},[22425],{"type":26,"value":22426}," PySCFDriver\n",{"type":21,"tag":2338,"props":22428,"children":22429},{"class":2340,"line":173},[22430,22434,22439,22443],{"type":21,"tag":2338,"props":22431,"children":22432},{"style":3219},[22433],{"type":26,"value":3222},{"type":21,"tag":2338,"props":22435,"children":22436},{"style":2345},[22437],{"type":26,"value":22438}," qiskit_nature.second_q.mappers ",{"type":21,"tag":2338,"props":22440,"children":22441},{"style":3219},[22442],{"type":26,"value":3232},{"type":21,"tag":2338,"props":22444,"children":22445},{"style":2345},[22446],{"type":26,"value":22447}," JordanWignerMapper\n",{"type":21,"tag":2338,"props":22449,"children":22450},{"class":2340,"line":2359},[22451,22455,22460,22464],{"type":21,"tag":2338,"props":22452,"children":22453},{"style":3219},[22454],{"type":26,"value":3222},{"type":21,"tag":2338,"props":22456,"children":22457},{"style":2345},[22458],{"type":26,"value":22459}," qiskit_nature.second_q.circuit.library ",{"type":21,"tag":2338,"props":22461,"children":22462},{"style":3219},[22463],{"type":26,"value":3232},{"type":21,"tag":2338,"props":22465,"children":22466},{"style":2363},[22467],{"type":26,"value":22468}," UCCSD\n",{"type":21,"tag":2338,"props":22470,"children":22471},{"class":2340,"line":2421},[22472,22476,22481,22485],{"type":21,"tag":2338,"props":22473,"children":22474},{"style":3219},[22475],{"type":26,"value":3222},{"type":21,"tag":2338,"props":22477,"children":22478},{"style":2345},[22479],{"type":26,"value":22480}," qiskit_algorithms ",{"type":21,"tag":2338,"props":22482,"children":22483},{"style":3219},[22484],{"type":26,"value":3232},{"type":21,"tag":2338,"props":22486,"children":22487},{"style":2363},[22488],{"type":26,"value":22489}," VQE\n",{"type":21,"tag":2338,"props":22491,"children":22492},{"class":2340,"line":2445},[22493,22497,22502,22506],{"type":21,"tag":2338,"props":22494,"children":22495},{"style":3219},[22496],{"type":26,"value":3222},{"type":21,"tag":2338,"props":22498,"children":22499},{"style":2345},[22500],{"type":26,"value":22501}," qiskit_algorithms.optimizers ",{"type":21,"tag":2338,"props":22503,"children":22504},{"style":3219},[22505],{"type":26,"value":3232},{"type":21,"tag":2338,"props":22507,"children":22508},{"style":2363},[22509],{"type":26,"value":22510}," COBYLA\n",{"type":21,"tag":2338,"props":22512,"children":22513},{"class":2340,"line":877},[22514,22518,22523,22527],{"type":21,"tag":2338,"props":22515,"children":22516},{"style":3219},[22517],{"type":26,"value":3222},{"type":21,"tag":2338,"props":22519,"children":22520},{"style":2345},[22521],{"type":26,"value":22522}," qiskit.primitives ",{"type":21,"tag":2338,"props":22524,"children":22525},{"style":3219},[22526],{"type":26,"value":3232},{"type":21,"tag":2338,"props":22528,"children":22529},{"style":2345},[22530],{"type":26,"value":22531}," Estimator\n",{"type":21,"tag":2338,"props":22533,"children":22534},{"class":2340,"line":196},[22535],{"type":21,"tag":2338,"props":22536,"children":22537},{"emptyLinePlaceholder":3243},[22538],{"type":26,"value":3246},{"type":21,"tag":2338,"props":22540,"children":22541},{"class":2340,"line":951},[22542,22547,22551,22556,22561,22565,22570],{"type":21,"tag":2338,"props":22543,"children":22544},{"style":2345},[22545],{"type":26,"value":22546},"driver ",{"type":21,"tag":2338,"props":22548,"children":22549},{"style":3219},[22550],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22552,"children":22553},{"style":2345},[22554],{"type":26,"value":22555}," PySCFDriver(",{"type":21,"tag":2338,"props":22557,"children":22558},{"style":3284},[22559],{"type":26,"value":22560},"atom",{"type":21,"tag":2338,"props":22562,"children":22563},{"style":3219},[22564],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22566,"children":22567},{"style":2374},[22568],{"type":26,"value":22569},"'H .0 .0 .0; H .0 .0 0.735'",{"type":21,"tag":2338,"props":22571,"children":22572},{"style":2345},[22573],{"type":26,"value":3319},{"type":21,"tag":2338,"props":22575,"children":22576},{"class":2340,"line":16},[22577,22582,22586],{"type":21,"tag":2338,"props":22578,"children":22579},{"style":2345},[22580],{"type":26,"value":22581},"problem ",{"type":21,"tag":2338,"props":22583,"children":22584},{"style":3219},[22585],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22587,"children":22588},{"style":2345},[22589],{"type":26,"value":22590}," driver.run()\n",{"type":21,"tag":2338,"props":22592,"children":22593},{"class":2340,"line":3465},[22594,22599,22603],{"type":21,"tag":2338,"props":22595,"children":22596},{"style":2345},[22597],{"type":26,"value":22598},"mapper ",{"type":21,"tag":2338,"props":22600,"children":22601},{"style":3219},[22602],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22604,"children":22605},{"style":2345},[22606],{"type":26,"value":22607}," JordanWignerMapper()\n",{"type":21,"tag":2338,"props":22609,"children":22610},{"class":2340,"line":3475},[22611,22616,22620,22625,22629],{"type":21,"tag":2338,"props":22612,"children":22613},{"style":2345},[22614],{"type":26,"value":22615},"hamiltonian ",{"type":21,"tag":2338,"props":22617,"children":22618},{"style":3219},[22619],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22621,"children":22622},{"style":2345},[22623],{"type":26,"value":22624}," mapper.map(problem.second_q_ops()[",{"type":21,"tag":2338,"props":22626,"children":22627},{"style":2363},[22628],{"type":26,"value":5189},{"type":21,"tag":2338,"props":22630,"children":22631},{"style":2345},[22632],{"type":26,"value":3580},{"type":21,"tag":2338,"props":22634,"children":22635},{"class":2340,"line":500},[22636],{"type":21,"tag":2338,"props":22637,"children":22638},{"emptyLinePlaceholder":3243},[22639],{"type":26,"value":3246},{"type":21,"tag":2338,"props":22641,"children":22642},{"class":2340,"line":3535},[22643,22648,22652],{"type":21,"tag":2338,"props":22644,"children":22645},{"style":2345},[22646],{"type":26,"value":22647},"ansatz ",{"type":21,"tag":2338,"props":22649,"children":22650},{"style":3219},[22651],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22653,"children":22654},{"style":2345},[22655],{"type":26,"value":22656}," UCCSD(\n",{"type":21,"tag":2338,"props":22658,"children":22659},{"class":2340,"line":3583},[22660],{"type":21,"tag":2338,"props":22661,"children":22662},{"style":2345},[22663],{"type":26,"value":22664},"    problem.num_spatial_orbitals,\n",{"type":21,"tag":2338,"props":22666,"children":22667},{"class":2340,"line":3625},[22668],{"type":21,"tag":2338,"props":22669,"children":22670},{"style":2345},[22671],{"type":26,"value":22672},"    problem.num_particles,\n",{"type":21,"tag":2338,"props":22674,"children":22675},{"class":2340,"line":4652},[22676],{"type":21,"tag":2338,"props":22677,"children":22678},{"style":2345},[22679],{"type":26,"value":22680},"    mapper,\n",{"type":21,"tag":2338,"props":22682,"children":22683},{"class":2340,"line":4671},[22684,22689,22693],{"type":21,"tag":2338,"props":22685,"children":22686},{"style":3284},[22687],{"type":26,"value":22688},"    initial_state",{"type":21,"tag":2338,"props":22690,"children":22691},{"style":3219},[22692],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22694,"children":22695},{"style":2345},[22696],{"type":26,"value":22697},"problem.reference_state,\n",{"type":21,"tag":2338,"props":22699,"children":22700},{"class":2340,"line":4679},[22701],{"type":21,"tag":2338,"props":22702,"children":22703},{"style":2345},[22704],{"type":26,"value":3319},{"type":21,"tag":2338,"props":22706,"children":22707},{"class":2340,"line":4710},[22708],{"type":21,"tag":2338,"props":22709,"children":22710},{"emptyLinePlaceholder":3243},[22711],{"type":26,"value":3246},{"type":21,"tag":2338,"props":22713,"children":22714},{"class":2340,"line":4755},[22715,22720,22724],{"type":21,"tag":2338,"props":22716,"children":22717},{"style":2345},[22718],{"type":26,"value":22719},"vqe ",{"type":21,"tag":2338,"props":22721,"children":22722},{"style":3219},[22723],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22725,"children":22726},{"style":2345},[22727],{"type":26,"value":22728}," VQE(Estimator(), ansatz, COBYLA())\n",{"type":21,"tag":2338,"props":22730,"children":22731},{"class":2340,"line":4794},[22732,22736,22740],{"type":21,"tag":2338,"props":22733,"children":22734},{"style":2345},[22735],{"type":26,"value":19355},{"type":21,"tag":2338,"props":22737,"children":22738},{"style":3219},[22739],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22741,"children":22742},{"style":2345},[22743],{"type":26,"value":22744}," vqe.compute_minimum_eigenvalue(hamiltonian)\n",{"type":21,"tag":2338,"props":22746,"children":22747},{"class":2340,"line":4812},[22748,22752,22756,22760,22765,22769,22774,22778,22782,22786],{"type":21,"tag":2338,"props":22749,"children":22750},{"style":2363},[22751],{"type":26,"value":3334},{"type":21,"tag":2338,"props":22753,"children":22754},{"style":2345},[22755],{"type":26,"value":3339},{"type":21,"tag":2338,"props":22757,"children":22758},{"style":3219},[22759],{"type":26,"value":3344},{"type":21,"tag":2338,"props":22761,"children":22762},{"style":2374},[22763],{"type":26,"value":22764},"\"H2 ground state: ",{"type":21,"tag":2338,"props":22766,"children":22767},{"style":2363},[22768],{"type":26,"value":3354},{"type":21,"tag":2338,"props":22770,"children":22771},{"style":2345},[22772],{"type":26,"value":22773},"result.eigenvalue.real",{"type":21,"tag":2338,"props":22775,"children":22776},{"style":3219},[22777],{"type":26,"value":3666},{"type":21,"tag":2338,"props":22779,"children":22780},{"style":2363},[22781],{"type":26,"value":3364},{"type":21,"tag":2338,"props":22783,"children":22784},{"style":2374},[22785],{"type":26,"value":19459},{"type":21,"tag":2338,"props":22787,"children":22788},{"style":2345},[22789],{"type":26,"value":3319},{"type":21,"tag":22,"props":22791,"children":22792},{},[22793],{"type":21,"tag":205,"props":22794,"children":22795},{},[22796],{"type":26,"value":22797},"HLQuantum VQE:",{"type":21,"tag":2328,"props":22799,"children":22801},{"code":22800,"language":3209,"meta":7,"className":3207,"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# Auf GPU umstellen:\nresult_gpu = hlq.algorithms.vqe(molecule='H2', backend='cudaq')\n",[22802],{"type":21,"tag":2097,"props":22803,"children":22804},{"__ignoreMap":7},[22805,22824,22831,22847,22867,22887,22907,22928,22935,22978,22985,22993],{"type":21,"tag":2338,"props":22806,"children":22807},{"class":2340,"line":2341},[22808,22812,22816,22820],{"type":21,"tag":2338,"props":22809,"children":22810},{"style":3219},[22811],{"type":26,"value":3232},{"type":21,"tag":2338,"props":22813,"children":22814},{"style":2345},[22815],{"type":26,"value":19323},{"type":21,"tag":2338,"props":22817,"children":22818},{"style":3219},[22819],{"type":26,"value":4299},{"type":21,"tag":2338,"props":22821,"children":22822},{"style":2345},[22823],{"type":26,"value":19332},{"type":21,"tag":2338,"props":22825,"children":22826},{"class":2340,"line":173},[22827],{"type":21,"tag":2338,"props":22828,"children":22829},{"emptyLinePlaceholder":3243},[22830],{"type":26,"value":3246},{"type":21,"tag":2338,"props":22832,"children":22833},{"class":2340,"line":2359},[22834,22838,22842],{"type":21,"tag":2338,"props":22835,"children":22836},{"style":2345},[22837],{"type":26,"value":19355},{"type":21,"tag":2338,"props":22839,"children":22840},{"style":3219},[22841],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22843,"children":22844},{"style":2345},[22845],{"type":26,"value":22846}," hlq.algorithms.vqe(\n",{"type":21,"tag":2338,"props":22848,"children":22849},{"class":2340,"line":2421},[22850,22855,22859,22863],{"type":21,"tag":2338,"props":22851,"children":22852},{"style":3284},[22853],{"type":26,"value":22854},"    molecule",{"type":21,"tag":2338,"props":22856,"children":22857},{"style":3219},[22858],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22860,"children":22861},{"style":2374},[22862],{"type":26,"value":19378},{"type":21,"tag":2338,"props":22864,"children":22865},{"style":2345},[22866],{"type":26,"value":2442},{"type":21,"tag":2338,"props":22868,"children":22869},{"class":2340,"line":2445},[22870,22875,22879,22883],{"type":21,"tag":2338,"props":22871,"children":22872},{"style":3284},[22873],{"type":26,"value":22874},"    basis",{"type":21,"tag":2338,"props":22876,"children":22877},{"style":3219},[22878],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22880,"children":22881},{"style":2374},[22882],{"type":26,"value":19396},{"type":21,"tag":2338,"props":22884,"children":22885},{"style":2345},[22886],{"type":26,"value":2442},{"type":21,"tag":2338,"props":22888,"children":22889},{"class":2340,"line":877},[22890,22895,22899,22903],{"type":21,"tag":2338,"props":22891,"children":22892},{"style":3284},[22893],{"type":26,"value":22894},"    backend",{"type":21,"tag":2338,"props":22896,"children":22897},{"style":3219},[22898],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22900,"children":22901},{"style":2374},[22902],{"type":26,"value":19413},{"type":21,"tag":2338,"props":22904,"children":22905},{"style":2345},[22906],{"type":26,"value":2442},{"type":21,"tag":2338,"props":22908,"children":22909},{"class":2340,"line":196},[22910,22915,22919,22924],{"type":21,"tag":2338,"props":22911,"children":22912},{"style":3284},[22913],{"type":26,"value":22914},"    optimizer",{"type":21,"tag":2338,"props":22916,"children":22917},{"style":3219},[22918],{"type":26,"value":3259},{"type":21,"tag":2338,"props":22920,"children":22921},{"style":2374},[22922],{"type":26,"value":22923},"'COBYLA'",{"type":21,"tag":2338,"props":22925,"children":22926},{"style":2345},[22927],{"type":26,"value":2442},{"type":21,"tag":2338,"props":22929,"children":22930},{"class":2340,"line":951},[22931],{"type":21,"tag":2338,"props":22932,"children":22933},{"style":2345},[22934],{"type":26,"value":3319},{"type":21,"tag":2338,"props":22936,"children":22937},{"class":2340,"line":16},[22938,22942,22946,22950,22954,22958,22962,22966,22970,22974],{"type":21,"tag":2338,"props":22939,"children":22940},{"style":2363},[22941],{"type":26,"value":3334},{"type":21,"tag":2338,"props":22943,"children":22944},{"style":2345},[22945],{"type":26,"value":3339},{"type":21,"tag":2338,"props":22947,"children":22948},{"style":3219},[22949],{"type":26,"value":3344},{"type":21,"tag":2338,"props":22951,"children":22952},{"style":2374},[22953],{"type":26,"value":22764},{"type":21,"tag":2338,"props":22955,"children":22956},{"style":2363},[22957],{"type":26,"value":3354},{"type":21,"tag":2338,"props":22959,"children":22960},{"style":2345},[22961],{"type":26,"value":19446},{"type":21,"tag":2338,"props":22963,"children":22964},{"style":3219},[22965],{"type":26,"value":3666},{"type":21,"tag":2338,"props":22967,"children":22968},{"style":2363},[22969],{"type":26,"value":3364},{"type":21,"tag":2338,"props":22971,"children":22972},{"style":2374},[22973],{"type":26,"value":19459},{"type":21,"tag":2338,"props":22975,"children":22976},{"style":2345},[22977],{"type":26,"value":3319},{"type":21,"tag":2338,"props":22979,"children":22980},{"class":2340,"line":3465},[22981],{"type":21,"tag":2338,"props":22982,"children":22983},{"emptyLinePlaceholder":3243},[22984],{"type":26,"value":3246},{"type":21,"tag":2338,"props":22986,"children":22987},{"class":2340,"line":3475},[22988],{"type":21,"tag":2338,"props":22989,"children":22990},{"style":3469},[22991],{"type":26,"value":22992},"# Auf GPU umstellen:\n",{"type":21,"tag":2338,"props":22994,"children":22995},{"class":2340,"line":500},[22996,23001,23005,23009,23013,23017,23021,23025,23029,23033,23037],{"type":21,"tag":2338,"props":22997,"children":22998},{"style":2345},[22999],{"type":26,"value":23000},"result_gpu ",{"type":21,"tag":2338,"props":23002,"children":23003},{"style":3219},[23004],{"type":26,"value":3259},{"type":21,"tag":2338,"props":23006,"children":23007},{"style":2345},[23008],{"type":26,"value":19364},{"type":21,"tag":2338,"props":23010,"children":23011},{"style":3284},[23012],{"type":26,"value":19369},{"type":21,"tag":2338,"props":23014,"children":23015},{"style":3219},[23016],{"type":26,"value":3259},{"type":21,"tag":2338,"props":23018,"children":23019},{"style":2374},[23020],{"type":26,"value":19378},{"type":21,"tag":2338,"props":23022,"children":23023},{"style":2345},[23024],{"type":26,"value":1375},{"type":21,"tag":2338,"props":23026,"children":23027},{"style":3284},[23028],{"type":26,"value":18490},{"type":21,"tag":2338,"props":23030,"children":23031},{"style":3219},[23032],{"type":26,"value":3259},{"type":21,"tag":2338,"props":23034,"children":23035},{"style":2374},[23036],{"type":26,"value":22237},{"type":21,"tag":2338,"props":23038,"children":23039},{"style":2345},[23040],{"type":26,"value":3319},{"type":21,"tag":22,"props":23042,"children":23043},{},[23044],{"type":26,"value":23045},"Reines Qiskit gibt dir volle Kontrolle über Ansatz, Mapper und Driver. Der Einzeiler von HLQuantum eignet sich am besten, um Backends zu vergleichen oder schnell Ergebnisse zu erhalten; reines Qiskit ist besser, wenn du benutzerdefinierte Ansätze oder Feinabstimmung des Algorithmus benötigst.",{"type":21,"tag":29,"props":23047,"children":23049},{"id":23048},"wann-man-reines-qiskit-verwenden-sollte",[23050],{"type":26,"value":23051},"Wann man reines Qiskit verwenden sollte",{"type":21,"tag":22,"props":23053,"children":23054},{},[23055],{"type":26,"value":23056},"Verwende Qiskit direkt, wenn:",{"type":21,"tag":7028,"props":23058,"children":23059},{},[23060,23070,23080,23119,23129],{"type":21,"tag":3141,"props":23061,"children":23062},{},[23063,23068],{"type":21,"tag":205,"props":23064,"children":23065},{},[23066],{"type":26,"value":23067},"Du ausschließlich auf IBM-Hardware abzielst",{"type":26,"value":23069}," — der Transpiler von Qiskit und die IBM-Runtime-Primitiven bieten dir die beste Leistung auf IBM-QPUs. Die Abstraktion von HLQuantum verursacht Overhead.",{"type":21,"tag":3141,"props":23071,"children":23072},{},[23073,23078],{"type":21,"tag":205,"props":23074,"children":23075},{},[23076],{"type":26,"value":23077},"Du feingranulare Schaltkreiskontrolle benötigst",{"type":26,"value":23079}," — benutzerdefinierte Gatter-Zerlegungen, spezifische Transpiler-Durchläufe, Pulse-Level-Kontrolle, dynamische Schaltkreise mit Messungen mitten im Schaltkreis.",{"type":21,"tag":3141,"props":23081,"children":23082},{},[23083,23088,23090,23096,23097,23103,23104,23110,23111,23117],{"type":21,"tag":205,"props":23084,"children":23085},{},[23086],{"type":26,"value":23087},"Du Forschung im IBM-Ökosystem betreibst",{"type":26,"value":23089}," — Verwendung von ",{"type":21,"tag":2097,"props":23091,"children":23093},{"className":23092},[],[23094],{"type":26,"value":23095},"qiskit-nature",{"type":26,"value":1375},{"type":21,"tag":2097,"props":23098,"children":23100},{"className":23099},[],[23101],{"type":26,"value":23102},"qiskit-finance",{"type":26,"value":1375},{"type":21,"tag":2097,"props":23105,"children":23107},{"className":23106},[],[23108],{"type":26,"value":23109},"qiskit-optimization",{"type":26,"value":18833},{"type":21,"tag":2097,"props":23112,"children":23114},{"className":23113},[],[23115],{"type":26,"value":23116},"qiskit-machine-learning",{"type":26,"value":23118}," — diese sind am tiefsten in reines Qiskit integriert.",{"type":21,"tag":3141,"props":23120,"children":23121},{},[23122,23127],{"type":21,"tag":205,"props":23123,"children":23124},{},[23125],{"type":26,"value":23126},"Leistung entscheidend ist",{"type":26,"value":23128}," — direkter Qiskit-Code hat weniger Overhead als die Übersetzungsschicht in HLQuantum.",{"type":21,"tag":3141,"props":23130,"children":23131},{},[23132,23137],{"type":21,"tag":205,"props":23133,"children":23134},{},[23135],{"type":26,"value":23136},"Du zum Qiskit-Ökosystem beiträgst",{"type":26,"value":23138}," — beim Schreiben von Qiskit-Plugins, Tutorials oder Forschungsarbeiten, bei denen Qiskit die Referenzimplementierung ist.",{"type":21,"tag":29,"props":23140,"children":23142},{"id":23141},"wann-man-hlquantum-verwenden-sollte",[23143],{"type":26,"value":23144},"Wann man HLQuantum verwenden sollte",{"type":21,"tag":22,"props":23146,"children":23147},{},[23148],{"type":26,"value":23149},"Verwende HLQuantum, wenn:",{"type":21,"tag":7028,"props":23151,"children":23152},{},[23153,23163,23173,23183,23214],{"type":21,"tag":3141,"props":23154,"children":23155},{},[23156,23161],{"type":21,"tag":205,"props":23157,"children":23158},{},[23159],{"type":26,"value":23160},"Du Backend-Flexibilität benötigst",{"type":26,"value":23162}," — Vergleich der Simulator-Leistung, Benchmarking von Schaltkreisen auf verschiedenen Architekturen oder Zugriff auf mehrere Cloud-QPUs.",{"type":21,"tag":3141,"props":23164,"children":23165},{},[23166,23171],{"type":21,"tag":205,"props":23167,"children":23168},{},[23169],{"type":26,"value":23170},"Du Algorithmen prototypst",{"type":26,"value":23172}," — einmal schreiben, überall testen. Keine Neuverdrahtung von Schaltkreisen beim Wechsel von lokaler Simulation zu GPU zu echter Hardware.",{"type":21,"tag":3141,"props":23174,"children":23175},{},[23176,23181],{"type":21,"tag":205,"props":23177,"children":23178},{},[23179],{"type":26,"value":23180},"Du lehrst oder lernst",{"type":26,"value":23182}," — eine einheitliche API über alle Backends hinweg erleichtert das Lernen. Kein Bedarf, 6 verschiedene APIs zu lernen.",{"type":21,"tag":3141,"props":23184,"children":23185},{},[23186,23191,23192,23198,23199,23205,23206,23212],{"type":21,"tag":205,"props":23187,"children":23188},{},[23189],{"type":26,"value":23190},"Du integrierte Algorithmen möchtest",{"type":26,"value":396},{"type":21,"tag":2097,"props":23193,"children":23195},{"className":23194},[],[23196],{"type":26,"value":23197},"hlq.algorithms.vqe()",{"type":26,"value":1375},{"type":21,"tag":2097,"props":23200,"children":23202},{"className":23201},[],[23203],{"type":26,"value":23204},"hlq.algorithms.qaoa()",{"type":26,"value":1375},{"type":21,"tag":2097,"props":23207,"children":23209},{"className":23208},[],[23210],{"type":26,"value":23211},"hlq.algorithms.grover()",{"type":26,"value":23213}," übernehmen den Boilerplate.",{"type":21,"tag":3141,"props":23215,"children":23216},{},[23217,23222],{"type":21,"tag":205,"props":23218,"children":23219},{},[23220],{"type":26,"value":23221},"Du Multi-Backend-Anwendungen baust",{"type":26,"value":23223}," — wenn deine App auf der QPU laufen muss, die die kürzeste Warteschlange oder die niedrigsten Kosten hat, übernimmt das der Dispatcher von HLQuantum.",{"type":21,"tag":29,"props":23225,"children":23227},{"id":23226},"migration-qiskit-hlquantum",[23228],{"type":26,"value":23229},"Migration: Qiskit → HLQuantum",{"type":21,"tag":22,"props":23231,"children":23232},{},[23233],{"type":26,"value":23234},"Wenn du bereits vorhandenen Qiskit-Code hast, kann HLQuantum Qiskit-Schaltkreise direkt verarbeiten:",{"type":21,"tag":2328,"props":23236,"children":23238},{"code":23237,"language":3209,"meta":7,"className":3207,"style":7},"import hlquantum as hlq\nfrom qiskit import QuantumCircuit\n\n# Vorhandener Qiskit-Schaltkreis\nqc = QuantumCircuit(3)\nqc.h(0); qc.cx(0, 1); qc.cx(1, 2)\n\n# Auf jedem Backend umschließen und ausführen\nresult = hlq.run(hlq.from_qiskit(qc), backend='pennylane')\nresult_gpu = hlq.run(hlq.from_qiskit(qc), backend='cudaq')\n",[23239],{"type":21,"tag":2097,"props":23240,"children":23241},{"__ignoreMap":7},[23242,23261,23280,23287,23295,23318,23366,23373,23381,23413],{"type":21,"tag":2338,"props":23243,"children":23244},{"class":2340,"line":2341},[23245,23249,23253,23257],{"type":21,"tag":2338,"props":23246,"children":23247},{"style":3219},[23248],{"type":26,"value":3232},{"type":21,"tag":2338,"props":23250,"children":23251},{"style":2345},[23252],{"type":26,"value":19323},{"type":21,"tag":2338,"props":23254,"children":23255},{"style":3219},[23256],{"type":26,"value":4299},{"type":21,"tag":2338,"props":23258,"children":23259},{"style":2345},[23260],{"type":26,"value":19332},{"type":21,"tag":2338,"props":23262,"children":23263},{"class":2340,"line":173},[23264,23268,23272,23276],{"type":21,"tag":2338,"props":23265,"children":23266},{"style":3219},[23267],{"type":26,"value":3222},{"type":21,"tag":2338,"props":23269,"children":23270},{"style":2345},[23271],{"type":26,"value":4316},{"type":21,"tag":2338,"props":23273,"children":23274},{"style":3219},[23275],{"type":26,"value":3232},{"type":21,"tag":2338,"props":23277,"children":23278},{"style":2345},[23279],{"type":26,"value":20332},{"type":21,"tag":2338,"props":23281,"children":23282},{"class":2340,"line":2359},[23283],{"type":21,"tag":2338,"props":23284,"children":23285},{"emptyLinePlaceholder":3243},[23286],{"type":26,"value":3246},{"type":21,"tag":2338,"props":23288,"children":23289},{"class":2340,"line":2421},[23290],{"type":21,"tag":2338,"props":23291,"children":23292},{"style":3469},[23293],{"type":26,"value":23294},"# Vorhandener Qiskit-Schaltkreis\n",{"type":21,"tag":2338,"props":23296,"children":23297},{"class":2340,"line":2445},[23298,23302,23306,23310,23314],{"type":21,"tag":2338,"props":23299,"children":23300},{"style":2345},[23301],{"type":26,"value":7403},{"type":21,"tag":2338,"props":23303,"children":23304},{"style":3219},[23305],{"type":26,"value":3259},{"type":21,"tag":2338,"props":23307,"children":23308},{"style":2345},[23309],{"type":26,"value":5159},{"type":21,"tag":2338,"props":23311,"children":23312},{"style":2363},[23313],{"type":26,"value":6532},{"type":21,"tag":2338,"props":23315,"children":23316},{"style":2345},[23317],{"type":26,"value":3319},{"type":21,"tag":2338,"props":23319,"children":23320},{"class":2340,"line":877},[23321,23325,23329,23334,23338,23342,23346,23350,23354,23358,23362],{"type":21,"tag":2338,"props":23322,"children":23323},{"style":2345},[23324],{"type":26,"value":7419},{"type":21,"tag":2338,"props":23326,"children":23327},{"style":2363},[23328],{"type":26,"value":5189},{"type":21,"tag":2338,"props":23330,"children":23331},{"style":2345},[23332],{"type":26,"value":23333},"); qc.cx(",{"type":21,"tag":2338,"props":23335,"children":23336},{"style":2363},[23337],{"type":26,"value":5189},{"type":21,"tag":2338,"props":23339,"children":23340},{"style":2345},[23341],{"type":26,"value":1375},{"type":21,"tag":2338,"props":23343,"children":23344},{"style":2363},[23345],{"type":26,"value":3575},{"type":21,"tag":2338,"props":23347,"children":23348},{"style":2345},[23349],{"type":26,"value":23333},{"type":21,"tag":2338,"props":23351,"children":23352},{"style":2363},[23353],{"type":26,"value":3575},{"type":21,"tag":2338,"props":23355,"children":23356},{"style":2345},[23357],{"type":26,"value":1375},{"type":21,"tag":2338,"props":23359,"children":23360},{"style":2363},[23361],{"type":26,"value":2437},{"type":21,"tag":2338,"props":23363,"children":23364},{"style":2345},[23365],{"type":26,"value":3319},{"type":21,"tag":2338,"props":23367,"children":23368},{"class":2340,"line":196},[23369],{"type":21,"tag":2338,"props":23370,"children":23371},{"emptyLinePlaceholder":3243},[23372],{"type":26,"value":3246},{"type":21,"tag":2338,"props":23374,"children":23375},{"class":2340,"line":951},[23376],{"type":21,"tag":2338,"props":23377,"children":23378},{"style":3469},[23379],{"type":26,"value":23380},"# Auf jedem Backend umschließen und ausführen\n",{"type":21,"tag":2338,"props":23382,"children":23383},{"class":2340,"line":16},[23384,23388,23392,23397,23401,23405,23409],{"type":21,"tag":2338,"props":23385,"children":23386},{"style":2345},[23387],{"type":26,"value":19355},{"type":21,"tag":2338,"props":23389,"children":23390},{"style":3219},[23391],{"type":26,"value":3259},{"type":21,"tag":2338,"props":23393,"children":23394},{"style":2345},[23395],{"type":26,"value":23396}," hlq.run(hlq.from_qiskit(qc), ",{"type":21,"tag":2338,"props":23398,"children":23399},{"style":3284},[23400],{"type":26,"value":18490},{"type":21,"tag":2338,"props":23402,"children":23403},{"style":3219},[23404],{"type":26,"value":3259},{"type":21,"tag":2338,"props":23406,"children":23407},{"style":2374},[23408],{"type":26,"value":22204},{"type":21,"tag":2338,"props":23410,"children":23411},{"style":2345},[23412],{"type":26,"value":3319},{"type":21,"tag":2338,"props":23414,"children":23415},{"class":2340,"line":3465},[23416,23420,23424,23428,23432,23436,23440],{"type":21,"tag":2338,"props":23417,"children":23418},{"style":2345},[23419],{"type":26,"value":23000},{"type":21,"tag":2338,"props":23421,"children":23422},{"style":3219},[23423],{"type":26,"value":3259},{"type":21,"tag":2338,"props":23425,"children":23426},{"style":2345},[23427],{"type":26,"value":23396},{"type":21,"tag":2338,"props":23429,"children":23430},{"style":3284},[23431],{"type":26,"value":18490},{"type":21,"tag":2338,"props":23433,"children":23434},{"style":3219},[23435],{"type":26,"value":3259},{"type":21,"tag":2338,"props":23437,"children":23438},{"style":2374},[23439],{"type":26,"value":22237},{"type":21,"tag":2338,"props":23441,"children":23442},{"style":2345},[23443],{"type":26,"value":3319},{"type":21,"tag":22,"props":23445,"children":23446},{},[23447],{"type":26,"value":23448},"Keine Neuschreibung erforderlich — du kannst die Multi-Backend-Fähigkeiten von HLQuantum schrittweise zu vorhandenem Qiskit-Code hinzufügen.",{"type":21,"tag":29,"props":23450,"children":23452},{"id":23451},"entscheidungs-checkliste",[23453],{"type":26,"value":23454},"Entscheidungs-Checkliste",{"type":21,"tag":2328,"props":23456,"children":23458},{"code":23457},"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",[23459],{"type":21,"tag":2097,"props":23460,"children":23461},{"__ignoreMap":7},[23462],{"type":26,"value":23457},{"type":21,"tag":22,"props":23464,"children":23465},{},[23466],{"type":26,"value":23467},"Die beiden schließen sich nicht gegenseitig aus. Viele Arbeitsabläufe beginnen mit reinem Qiskit für das Schaltkreisdesign und umschließen es dann mit HLQuantum für das Multi-Backend-Deployment.",{"type":21,"tag":22,"props":23469,"children":23470},{},[23471,23476,23477,23482,23483,23488,23489],{"type":21,"tag":205,"props":23472,"children":23473},{},[23474],{"type":26,"value":23475},"Erste Schritte:",{"type":26,"value":1367},{"type":21,"tag":41,"props":23478,"children":23479},{"href":19030},[23480],{"type":26,"value":23481},"HLQuantum-Leitfaden",{"type":26,"value":7133},{"type":21,"tag":41,"props":23484,"children":23485},{"href":7112},[23486],{"type":26,"value":23487},"Qiskit-SDK-Leitfaden",{"type":26,"value":7133},{"type":21,"tag":41,"props":23490,"children":23491},{"href":281},[23492],{"type":26,"value":23493},"Alle SDKs vergleichen",{"type":21,"tag":2712,"props":23495,"children":23496},{},[23497],{"type":26,"value":2716},{"title":7,"searchDepth":173,"depth":173,"links":23499},[23500,23501,23502,23503,23504,23505,23506,23507],{"id":21063,"depth":173,"text":21066},{"id":21087,"depth":173,"text":21090},{"id":21507,"depth":173,"text":21510},{"id":22387,"depth":173,"text":22390},{"id":23048,"depth":173,"text":23051},{"id":23141,"depth":173,"text":23144},{"id":23226,"depth":173,"text":23229},{"id":23451,"depth":173,"text":23454},"content:de:blog:hlquantum-vs-qiskit.md","de\u002Fblog\u002Fhlquantum-vs-qiskit.md","de\u002Fblog\u002Fhlquantum-vs-qiskit",{"_path":23512,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":23513,"description":23514,"date":23515,"author":11,"tags":23516,"readingTime":3465,"body":23517,"_type":180,"_id":24562,"_source":182,"_file":24563,"_stem":24564,"_extension":185},"\u002Fde\u002Fblog\u002Fpost-quantum-cryptography-guide","Post-Quanten-Kryptografie: Was Entwickler jetzt tun müssen","Shors Algorithmus bedroht RSA und ECC. Das NIST hat seine Post-Quanten-Standards finalisiert. Hier erfahren Sie, worin die Bedrohung besteht, was die Standards besagen und welche Maßnahmen Entwickler heute ergreifen sollten.","2026-03-05",[9369,9370,9368],{"type":18,"children":23518,"toc":24546},[23519,23531,23536,23542,23555,23563,23586,23594,23617,23628,23634,23639,23657,23675,23683,23711,23719,23737,23743,23748,23754,23797,23958,23964,24003,24126,24132,24171,24183,24189,24195,24205,24228,24238,24248,24254,24272,24297,24307,24317,24323,24333,24343,24353,24359,24503,24509,24517,24522,24542],{"type":21,"tag":22,"props":23520,"children":23521},{},[23522,23524,23529],{"type":26,"value":23523},"Quantencomputer bedrohen Ihre Verschlüsselung noch nicht. Ein Quantencomputer, der in der Lage wäre, RSA-2048 zu brechen, würde Millionen fehlerkorrigierter logischer Qubits benötigen — wir haben Hunderte verrauschter physikalischer. Doch hier liegt das Problem: Angreifer sammeln möglicherweise ",{"type":21,"tag":205,"props":23525,"children":23526},{},[23527],{"type":26,"value":23528},"genau jetzt",{"type":26,"value":23530}," verschlüsselte Daten mit der Absicht, sie später zu entschlüsseln, sobald Quantenhardware ausgereift ist. Und die Migration kryptografischer Infrastruktur dauert Jahre.",{"type":21,"tag":22,"props":23532,"children":23533},{},[23534],{"type":26,"value":23535},"Deshalb sind die NIST-Standards für Post-Quanten-Kryptografie aus dem Jahr 2024 für Entwickler heute relevant, nicht erst 2035.",{"type":21,"tag":29,"props":23537,"children":23539},{"id":23538},"die-eigentliche-bedrohung-shors-algorithmus",[23540],{"type":26,"value":23541},"Die eigentliche Bedrohung: Shors Algorithmus",{"type":21,"tag":22,"props":23543,"children":23544},{},[23545,23547,23553],{"type":26,"value":23546},"1994 bewies Peter Shor, dass ein Quantencomputer große ganze Zahlen in polynomieller Zeit ",{"type":21,"tag":2097,"props":23548,"children":23550},{"className":23549},[],[23551],{"type":26,"value":23552},"O((log N)³)",{"type":26,"value":23554}," faktorisieren kann. Das bricht RSA, dessen Sicherheit darauf beruht, dass Faktorisierung schwierig ist. Derselbe Algorithmus — mit geringfügigen Änderungen — bricht die Elliptische-Kurven-Kryptografie (ECC), die ECDSA und ECDH zugrunde liegt.",{"type":21,"tag":22,"props":23556,"children":23557},{},[23558],{"type":21,"tag":205,"props":23559,"children":23560},{},[23561],{"type":26,"value":23562},"Was gebrochen wird:",{"type":21,"tag":3137,"props":23564,"children":23565},{},[23566,23571,23576,23581],{"type":21,"tag":3141,"props":23567,"children":23568},{},[23569],{"type":26,"value":23570},"RSA (Verschlüsselung, Signaturen)",{"type":21,"tag":3141,"props":23572,"children":23573},{},[23574],{"type":26,"value":23575},"ECDSA (Signieren — verwendet in TLS, SSH, Code-Signing, Bitcoin)",{"type":21,"tag":3141,"props":23577,"children":23578},{},[23579],{"type":26,"value":23580},"ECDH (Schlüsselaustausch — verwendet in TLS, Signal, WhatsApp, iMessage)",{"type":21,"tag":3141,"props":23582,"children":23583},{},[23584],{"type":26,"value":23585},"Diffie-Hellman (Schlüsselaustausch)",{"type":21,"tag":22,"props":23587,"children":23588},{},[23589],{"type":21,"tag":205,"props":23590,"children":23591},{},[23592],{"type":26,"value":23593},"Was nicht gebrochen wird:",{"type":21,"tag":3137,"props":23595,"children":23596},{},[23597,23602,23607,23612],{"type":21,"tag":3141,"props":23598,"children":23599},{},[23600],{"type":26,"value":23601},"AES-256 (symmetrische Verschlüsselung) — Grovers Algorithmus bietet nur eine quadratische Beschleunigung und reduziert die effektive Schlüsselstärke von 256 auf 128 Bit. Das ist beherrschbar.",{"type":21,"tag":3141,"props":23603,"children":23604},{},[23605],{"type":26,"value":23606},"SHA-256, SHA-3 (Hash-Funktionen) — dasselbe: Grover bietet eine geringfügige Beschleunigung, die Sicherheit halbiert sich, ist mit den aktuellen Schlüsselgrößen aber noch stark genug",{"type":21,"tag":3141,"props":23608,"children":23609},{},[23610],{"type":26,"value":23611},"HMAC — sicher",{"type":21,"tag":3141,"props":23613,"children":23614},{},[23615],{"type":26,"value":23616},"Argon2, bcrypt (Passwort-Hashing) — sicher",{"type":21,"tag":22,"props":23618,"children":23619},{},[23620,23622,23627],{"type":26,"value":23621},"Das Fazit: ",{"type":21,"tag":205,"props":23623,"children":23624},{},[23625],{"type":26,"value":23626},"Asymmetrische Kryptografie muss ersetzt werden; symmetrische Kryptografie benötigt eine Erhöhung der Schlüsselgröße (AES-128 → AES-256)",{"type":26,"value":825},{"type":21,"tag":29,"props":23629,"children":23631},{"id":23630},"harvest-now-decrypt-later",[23632],{"type":26,"value":23633},"Harvest Now, Decrypt Later",{"type":21,"tag":22,"props":23635,"children":23636},{},[23637],{"type":26,"value":23638},"Die Bedrohung lautet nicht „Quantencomputer werden nächstes Jahr die Verschlüsselung brechen\". Die Bedrohung ist:",{"type":21,"tag":7028,"props":23640,"children":23641},{},[23642,23647,23652],{"type":21,"tag":3141,"props":23643,"children":23644},{},[23645],{"type":26,"value":23646},"Ein Angreifer erfasst und speichert heute Ihren verschlüsselten TLS-Datenverkehr",{"type":21,"tag":3141,"props":23648,"children":23649},{},[23650],{"type":26,"value":23651},"In den Jahren 2032–2040 wendet er Shors Algorithmus darauf an",{"type":21,"tag":3141,"props":23653,"children":23654},{},[23655],{"type":26,"value":23656},"Er entschlüsselt alles rückwirkend",{"type":21,"tag":22,"props":23658,"children":23659},{},[23660,23662,23667,23668,23673],{"type":26,"value":23661},"Dieser Angriff — genannt ",{"type":21,"tag":205,"props":23663,"children":23664},{},[23665],{"type":26,"value":23666},"„harvest now, decrypt later\"",{"type":26,"value":18833},{"type":21,"tag":205,"props":23669,"children":23670},{},[23671],{"type":26,"value":23672},"HNDL",{"type":26,"value":23674}," — findet bereits statt. Die NSA und andere Nachrichtendienste speichern mit ziemlicher Sicherheit große Mengen verschlüsselten Datenverkehrs. Der NSA-Hinweis von 2022 warnte ausdrücklich davor.",{"type":21,"tag":22,"props":23676,"children":23677},{},[23678],{"type":21,"tag":205,"props":23679,"children":23680},{},[23681],{"type":26,"value":23682},"Daten, die heute vor HNDL geschützt werden müssen:",{"type":21,"tag":3137,"props":23684,"children":23685},{},[23686,23691,23696,23701,23706],{"type":21,"tag":3141,"props":23687,"children":23688},{},[23689],{"type":26,"value":23690},"Staatsgeheimnisse, klassifizierte Regierungsdaten",{"type":21,"tag":3141,"props":23692,"children":23693},{},[23694],{"type":26,"value":23695},"Langlebige persönliche Daten (Krankenakten, Ausweisdokumente)",{"type":21,"tag":3141,"props":23697,"children":23698},{},[23699],{"type":26,"value":23700},"Finanzdaten mit langen regulatorischen Aufbewahrungspflichten",{"type":21,"tag":3141,"props":23702,"children":23703},{},[23704],{"type":26,"value":23705},"Geschäftsgeheimnisse und geistiges Eigentum",{"type":21,"tag":3141,"props":23707,"children":23708},{},[23709],{"type":26,"value":23710},"Passwort-Datenbanken (obwohl bcrypt\u002FArgon2 sicher sind)",{"type":21,"tag":22,"props":23712,"children":23713},{},[23714],{"type":21,"tag":205,"props":23715,"children":23716},{},[23717],{"type":26,"value":23718},"Daten, um die man sich nicht sofort sorgen muss:",{"type":21,"tag":3137,"props":23720,"children":23721},{},[23722,23727,23732],{"type":21,"tag":3141,"props":23723,"children":23724},{},[23725],{"type":26,"value":23726},"Session-Tokens (kurzlebig, in 10 Jahren wertlos)",{"type":21,"tag":3141,"props":23728,"children":23729},{},[23730],{"type":26,"value":23731},"Flüchtige Chat-Nachrichten (es sei denn, Sie sind ein hochwertiges Ziel)",{"type":21,"tag":3141,"props":23733,"children":23734},{},[23735],{"type":26,"value":23736},"Öffentliche Informationen",{"type":21,"tag":29,"props":23738,"children":23740},{"id":23739},"die-post-quanten-standards-des-nist-2024",[23741],{"type":26,"value":23742},"Die Post-Quanten-Standards des NIST (2024)",{"type":21,"tag":22,"props":23744,"children":23745},{},[23746],{"type":26,"value":23747},"Nach einem 8-jährigen Wettbewerb finalisierte das NIST im August 2024 drei Post-Quanten-Kryptografie-Algorithmen:",{"type":21,"tag":17383,"props":23749,"children":23751},{"id":23750},"ml-kem-crystals-kyber-key-encapsulation",[23752],{"type":26,"value":23753},"ML-KEM (CRYSTALS-Kyber) — Key Encapsulation",{"type":21,"tag":3137,"props":23755,"children":23756},{},[23757,23767,23777,23787],{"type":21,"tag":3141,"props":23758,"children":23759},{},[23760,23765],{"type":21,"tag":205,"props":23761,"children":23762},{},[23763],{"type":26,"value":23764},"Ersetzt:",{"type":26,"value":23766}," RSA-Schlüsselaustausch, ECDH",{"type":21,"tag":3141,"props":23768,"children":23769},{},[23770,23775],{"type":21,"tag":205,"props":23771,"children":23772},{},[23773],{"type":26,"value":23774},"Sicherheitsgrundlage:",{"type":26,"value":23776}," Module-Learning-With-Errors-Problem (MLWE) — gilt sowohl für klassische als auch für Quantencomputer als schwer",{"type":21,"tag":3141,"props":23778,"children":23779},{},[23780,23785],{"type":21,"tag":205,"props":23781,"children":23782},{},[23783],{"type":26,"value":23784},"Leistung:",{"type":26,"value":23786}," Schnell, kleine Schlüssel (~800 Bytes für KEM-768), schnelle Operationen",{"type":21,"tag":3141,"props":23788,"children":23789},{},[23790,23795],{"type":21,"tag":205,"props":23791,"children":23792},{},[23793],{"type":26,"value":23794},"Verwenden für:",{"type":26,"value":23796}," TLS-Schlüsselaustausch, verschlüsseltes Key-Wrapping, hybride Verschlüsselungsverfahren",{"type":21,"tag":2328,"props":23798,"children":23800},{"code":23799,"language":3209,"meta":7,"className":3207,"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",[23801],{"type":21,"tag":2097,"props":23802,"children":23803},{"__ignoreMap":7},[23804,23812,23833,23840,23857,23864,23872,23889,23896,23904,23921,23928,23950],{"type":21,"tag":2338,"props":23805,"children":23806},{"class":2340,"line":2341},[23807],{"type":21,"tag":2338,"props":23808,"children":23809},{"style":3469},[23810],{"type":26,"value":23811},"# Python example using pqcrypto library\n",{"type":21,"tag":2338,"props":23813,"children":23814},{"class":2340,"line":173},[23815,23819,23824,23828],{"type":21,"tag":2338,"props":23816,"children":23817},{"style":3219},[23818],{"type":26,"value":3222},{"type":21,"tag":2338,"props":23820,"children":23821},{"style":2345},[23822],{"type":26,"value":23823}," pqcrypto.kem.kyber768 ",{"type":21,"tag":2338,"props":23825,"children":23826},{"style":3219},[23827],{"type":26,"value":3232},{"type":21,"tag":2338,"props":23829,"children":23830},{"style":2345},[23831],{"type":26,"value":23832}," generate_keypair, encapsulate, decapsulate\n",{"type":21,"tag":2338,"props":23834,"children":23835},{"class":2340,"line":2359},[23836],{"type":21,"tag":2338,"props":23837,"children":23838},{"emptyLinePlaceholder":3243},[23839],{"type":26,"value":3246},{"type":21,"tag":2338,"props":23841,"children":23842},{"class":2340,"line":2421},[23843,23848,23852],{"type":21,"tag":2338,"props":23844,"children":23845},{"style":2345},[23846],{"type":26,"value":23847},"public_key, secret_key ",{"type":21,"tag":2338,"props":23849,"children":23850},{"style":3219},[23851],{"type":26,"value":3259},{"type":21,"tag":2338,"props":23853,"children":23854},{"style":2345},[23855],{"type":26,"value":23856}," generate_keypair()\n",{"type":21,"tag":2338,"props":23858,"children":23859},{"class":2340,"line":2445},[23860],{"type":21,"tag":2338,"props":23861,"children":23862},{"emptyLinePlaceholder":3243},[23863],{"type":26,"value":3246},{"type":21,"tag":2338,"props":23865,"children":23866},{"class":2340,"line":877},[23867],{"type":21,"tag":2338,"props":23868,"children":23869},{"style":3469},[23870],{"type":26,"value":23871},"# Sender encapsulates a shared secret\n",{"type":21,"tag":2338,"props":23873,"children":23874},{"class":2340,"line":196},[23875,23880,23884],{"type":21,"tag":2338,"props":23876,"children":23877},{"style":2345},[23878],{"type":26,"value":23879},"ciphertext, shared_secret_sender ",{"type":21,"tag":2338,"props":23881,"children":23882},{"style":3219},[23883],{"type":26,"value":3259},{"type":21,"tag":2338,"props":23885,"children":23886},{"style":2345},[23887],{"type":26,"value":23888}," encapsulate(public_key)\n",{"type":21,"tag":2338,"props":23890,"children":23891},{"class":2340,"line":951},[23892],{"type":21,"tag":2338,"props":23893,"children":23894},{"emptyLinePlaceholder":3243},[23895],{"type":26,"value":3246},{"type":21,"tag":2338,"props":23897,"children":23898},{"class":2340,"line":16},[23899],{"type":21,"tag":2338,"props":23900,"children":23901},{"style":3469},[23902],{"type":26,"value":23903},"# Receiver decapsulates\n",{"type":21,"tag":2338,"props":23905,"children":23906},{"class":2340,"line":3465},[23907,23912,23916],{"type":21,"tag":2338,"props":23908,"children":23909},{"style":2345},[23910],{"type":26,"value":23911},"shared_secret_receiver ",{"type":21,"tag":2338,"props":23913,"children":23914},{"style":3219},[23915],{"type":26,"value":3259},{"type":21,"tag":2338,"props":23917,"children":23918},{"style":2345},[23919],{"type":26,"value":23920}," decapsulate(secret_key, ciphertext)\n",{"type":21,"tag":2338,"props":23922,"children":23923},{"class":2340,"line":3475},[23924],{"type":21,"tag":2338,"props":23925,"children":23926},{"emptyLinePlaceholder":3243},[23927],{"type":26,"value":3246},{"type":21,"tag":2338,"props":23929,"children":23930},{"class":2340,"line":500},[23931,23936,23941,23945],{"type":21,"tag":2338,"props":23932,"children":23933},{"style":3219},[23934],{"type":26,"value":23935},"assert",{"type":21,"tag":2338,"props":23937,"children":23938},{"style":2345},[23939],{"type":26,"value":23940}," shared_secret_sender ",{"type":21,"tag":2338,"props":23942,"children":23943},{"style":3219},[23944],{"type":26,"value":4930},{"type":21,"tag":2338,"props":23946,"children":23947},{"style":2345},[23948],{"type":26,"value":23949}," shared_secret_receiver\n",{"type":21,"tag":2338,"props":23951,"children":23952},{"class":2340,"line":3535},[23953],{"type":21,"tag":2338,"props":23954,"children":23955},{"style":3469},[23956],{"type":26,"value":23957},"# Now use shared_secret as AES key\n",{"type":21,"tag":17383,"props":23959,"children":23961},{"id":23960},"ml-dsa-crystals-dilithium-digitale-signaturen",[23962],{"type":26,"value":23963},"ML-DSA (CRYSTALS-Dilithium) — Digitale Signaturen",{"type":21,"tag":3137,"props":23965,"children":23966},{},[23967,23976,23985,23994],{"type":21,"tag":3141,"props":23968,"children":23969},{},[23970,23974],{"type":21,"tag":205,"props":23971,"children":23972},{},[23973],{"type":26,"value":23764},{"type":26,"value":23975}," ECDSA, RSA-PSS zum Signieren",{"type":21,"tag":3141,"props":23977,"children":23978},{},[23979,23983],{"type":21,"tag":205,"props":23980,"children":23981},{},[23982],{"type":26,"value":23774},{"type":26,"value":23984}," MLWE- + MSIS-Probleme",{"type":21,"tag":3141,"props":23986,"children":23987},{},[23988,23992],{"type":21,"tag":205,"props":23989,"children":23990},{},[23991],{"type":26,"value":23784},{"type":26,"value":23993}," Moderate Schlüsselgrößen (~1.312 Bytes öffentlicher Schlüssel), schnelles Signieren",{"type":21,"tag":3141,"props":23995,"children":23996},{},[23997,24001],{"type":21,"tag":205,"props":23998,"children":23999},{},[24000],{"type":26,"value":23794},{"type":26,"value":24002}," Code-Signing, TLS-Zertifikate, Dokumentensignierung, JWT-Signaturen",{"type":21,"tag":2328,"props":24004,"children":24006},{"code":24005,"language":3209,"meta":7,"className":3207,"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",[24007],{"type":21,"tag":2097,"props":24008,"children":24009},{"__ignoreMap":7},[24010,24031,24038,24053,24060,24082,24099,24106,24114],{"type":21,"tag":2338,"props":24011,"children":24012},{"class":2340,"line":2341},[24013,24017,24022,24026],{"type":21,"tag":2338,"props":24014,"children":24015},{"style":3219},[24016],{"type":26,"value":3222},{"type":21,"tag":2338,"props":24018,"children":24019},{"style":2345},[24020],{"type":26,"value":24021}," pqcrypto.sign.dilithium3 ",{"type":21,"tag":2338,"props":24023,"children":24024},{"style":3219},[24025],{"type":26,"value":3232},{"type":21,"tag":2338,"props":24027,"children":24028},{"style":2345},[24029],{"type":26,"value":24030}," generate_keypair, sign, verify\n",{"type":21,"tag":2338,"props":24032,"children":24033},{"class":2340,"line":173},[24034],{"type":21,"tag":2338,"props":24035,"children":24036},{"emptyLinePlaceholder":3243},[24037],{"type":26,"value":3246},{"type":21,"tag":2338,"props":24039,"children":24040},{"class":2340,"line":2359},[24041,24045,24049],{"type":21,"tag":2338,"props":24042,"children":24043},{"style":2345},[24044],{"type":26,"value":23847},{"type":21,"tag":2338,"props":24046,"children":24047},{"style":3219},[24048],{"type":26,"value":3259},{"type":21,"tag":2338,"props":24050,"children":24051},{"style":2345},[24052],{"type":26,"value":23856},{"type":21,"tag":2338,"props":24054,"children":24055},{"class":2340,"line":2421},[24056],{"type":21,"tag":2338,"props":24057,"children":24058},{"emptyLinePlaceholder":3243},[24059],{"type":26,"value":3246},{"type":21,"tag":2338,"props":24061,"children":24062},{"class":2340,"line":2445},[24063,24068,24072,24077],{"type":21,"tag":2338,"props":24064,"children":24065},{"style":2345},[24066],{"type":26,"value":24067},"message ",{"type":21,"tag":2338,"props":24069,"children":24070},{"style":3219},[24071],{"type":26,"value":3259},{"type":21,"tag":2338,"props":24073,"children":24074},{"style":3219},[24075],{"type":26,"value":24076}," b",{"type":21,"tag":2338,"props":24078,"children":24079},{"style":2374},[24080],{"type":26,"value":24081},"\"Deploy to production\"\n",{"type":21,"tag":2338,"props":24083,"children":24084},{"class":2340,"line":877},[24085,24090,24094],{"type":21,"tag":2338,"props":24086,"children":24087},{"style":2345},[24088],{"type":26,"value":24089},"signature ",{"type":21,"tag":2338,"props":24091,"children":24092},{"style":3219},[24093],{"type":26,"value":3259},{"type":21,"tag":2338,"props":24095,"children":24096},{"style":2345},[24097],{"type":26,"value":24098}," sign(message, secret_key)\n",{"type":21,"tag":2338,"props":24100,"children":24101},{"class":2340,"line":196},[24102],{"type":21,"tag":2338,"props":24103,"children":24104},{"emptyLinePlaceholder":3243},[24105],{"type":26,"value":3246},{"type":21,"tag":2338,"props":24107,"children":24108},{"class":2340,"line":951},[24109],{"type":21,"tag":2338,"props":24110,"children":24111},{"style":3469},[24112],{"type":26,"value":24113},"# Verify\n",{"type":21,"tag":2338,"props":24115,"children":24116},{"class":2340,"line":16},[24117,24121],{"type":21,"tag":2338,"props":24118,"children":24119},{"style":3219},[24120],{"type":26,"value":23935},{"type":21,"tag":2338,"props":24122,"children":24123},{"style":2345},[24124],{"type":26,"value":24125}," verify(message, signature, public_key)\n",{"type":21,"tag":17383,"props":24127,"children":24129},{"id":24128},"slh-dsa-sphincs-hash-basierte-signaturen",[24130],{"type":26,"value":24131},"SLH-DSA (SPHINCS+) — Hash-basierte Signaturen",{"type":21,"tag":3137,"props":24133,"children":24134},{},[24135,24144,24153,24162],{"type":21,"tag":3141,"props":24136,"children":24137},{},[24138,24142],{"type":21,"tag":205,"props":24139,"children":24140},{},[24141],{"type":26,"value":23764},{"type":26,"value":24143}," ECDSA als konservatives Backup",{"type":21,"tag":3141,"props":24145,"children":24146},{},[24147,24151],{"type":21,"tag":205,"props":24148,"children":24149},{},[24150],{"type":26,"value":23774},{"type":26,"value":24152}," Ausschließlich Hash-Funktionen — die konservativste Wahl",{"type":21,"tag":3141,"props":24154,"children":24155},{},[24156,24160],{"type":21,"tag":205,"props":24157,"children":24158},{},[24159],{"type":26,"value":23784},{"type":26,"value":24161}," Größere Signaturen (~8–50 KB), langsameres Signieren",{"type":21,"tag":3141,"props":24163,"children":24164},{},[24165,24169],{"type":21,"tag":205,"props":24166,"children":24167},{},[24168],{"type":26,"value":23794},{"type":26,"value":24170}," Hochsicheres Signieren, bei dem Schlüsselwiederverwendung ein Problem darstellt, langfristige Dokumentensignierung",{"type":21,"tag":22,"props":24172,"children":24173},{},[24174,24176,24181],{"type":26,"value":24175},"Das NIST standardisierte außerdem ",{"type":21,"tag":205,"props":24177,"children":24178},{},[24179],{"type":26,"value":24180},"FALCON (FN-DSA)",{"type":26,"value":24182}," — ein Gitter-Signaturverfahren mit kompakten Signaturen, geeignet für ressourcenbeschränkte Umgebungen wie IoT.",{"type":21,"tag":29,"props":24184,"children":24186},{"id":24185},"was-jetzt-zu-tun-ist-ein-gestufter-aktionsplan",[24187],{"type":26,"value":24188},"Was jetzt zu tun ist: Ein gestufter Aktionsplan",{"type":21,"tag":17383,"props":24190,"children":24192},{"id":24191},"stufe-1-heute-erledigen-geringer-aufwand-hohe-wirkung",[24193],{"type":26,"value":24194},"Stufe 1 — Heute erledigen (Geringer Aufwand, hohe Wirkung)",{"type":21,"tag":22,"props":24196,"children":24197},{},[24198,24203],{"type":21,"tag":205,"props":24199,"children":24200},{},[24201],{"type":26,"value":24202},"Erstellen Sie eine Bestandsaufnahme Ihrer Kryptografie.",{"type":26,"value":24204}," Sie können nicht migrieren, was Sie nicht katalogisiert haben. Dokumentieren Sie:",{"type":21,"tag":3137,"props":24206,"children":24207},{},[24208,24213,24218,24223],{"type":21,"tag":3141,"props":24209,"children":24210},{},[24211],{"type":26,"value":24212},"Wo verwendet Ihre Anwendung TLS? (Die meisten Frameworks erledigen das)",{"type":21,"tag":3141,"props":24214,"children":24215},{},[24216],{"type":26,"value":24217},"Wo erzeugen oder prüfen Sie Signaturen? (JWTs, Code-Signing, PDF-Signierung)",{"type":21,"tag":3141,"props":24219,"children":24220},{},[24221],{"type":26,"value":24222},"Wo verwenden Sie asymmetrischen Schlüsselaustausch? (RSA-umschlossene AES-Schlüssel, SSH)",{"type":21,"tag":3141,"props":24224,"children":24225},{},[24226],{"type":26,"value":24227},"Welche Bibliotheken verwenden Sie? (OpenSSL, BouncyCastle, AWS KMS usw.)",{"type":21,"tag":22,"props":24229,"children":24230},{},[24231,24236],{"type":21,"tag":205,"props":24232,"children":24233},{},[24234],{"type":26,"value":24235},"Rüsten Sie AES-128 auf AES-256 auf.",{"type":26,"value":24237}," Dies ist risikoarm und sofort umsetzbar. AES-256 halbiert sich gegenüber Grover auf 128-Bit-Sicherheit — immer noch reichlich sicher.",{"type":21,"tag":22,"props":24239,"children":24240},{},[24241,24246],{"type":21,"tag":205,"props":24242,"children":24243},{},[24244],{"type":26,"value":24245},"Aktivieren Sie TLS 1.3 überall.",{"type":26,"value":24247}," TLS 1.3 verwendet standardmäßig Forward Secrecy (ECDHE), das heißt, vergangene Sitzungen können selbst dann nicht entschlüsselt werden, wenn der langfristige Schlüssel kompromittiert wird. Dies mildert HNDL für TLS-Datenverkehr teilweise ab.",{"type":21,"tag":17383,"props":24249,"children":24251},{"id":24250},"stufe-2-planung-für-die-nächsten-618-monate",[24252],{"type":26,"value":24253},"Stufe 2 — Planung für die nächsten 6–18 Monate",{"type":21,"tag":22,"props":24255,"children":24256},{},[24257,24262,24264,24270],{"type":21,"tag":205,"props":24258,"children":24259},{},[24260],{"type":26,"value":24261},"Führen Sie hybriden Schlüsselaustausch in TLS ein.",{"type":26,"value":24263}," Die TLS-Arbeitsgruppe hat ",{"type":21,"tag":2097,"props":24265,"children":24267},{"className":24266},[],[24268],{"type":26,"value":24269},"X25519Kyber768",{"type":26,"value":24271}," standardisiert — ein Hybridverfahren, das sowohl klassisches ECDH als auch ML-KEM verwendet. Google Chrome, Cloudflare und AWS unterstützen es bereits. Es schützt vor HNDL und erhält gleichzeitig die klassische Sicherheit:",{"type":21,"tag":2328,"props":24273,"children":24277},{"code":24274,"language":24275,"meta":7,"className":24276,"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",[24278],{"type":21,"tag":2097,"props":24279,"children":24280},{"__ignoreMap":7},[24281,24289],{"type":21,"tag":2338,"props":24282,"children":24283},{"class":2340,"line":2341},[24284],{"type":21,"tag":2338,"props":24285,"children":24286},{},[24287],{"type":26,"value":24288},"# Nginx with OpenSSL 3.x + oqs-provider (Open Quantum Safe)\n",{"type":21,"tag":2338,"props":24290,"children":24291},{"class":2340,"line":173},[24292],{"type":21,"tag":2338,"props":24293,"children":24294},{},[24295],{"type":26,"value":24296},"ssl_ecdh_curve X25519Kyber768;  # hybrid classical + PQC\n",{"type":21,"tag":22,"props":24298,"children":24299},{},[24300,24305],{"type":21,"tag":205,"props":24301,"children":24302},{},[24303],{"type":26,"value":24304},"Ersetzen Sie RSA\u002FECDSA in neuen Systemen durch ML-DSA.",{"type":26,"value":24306}," Für alles auf der grünen Wiese — neue Microservices, neue JWT-Implementierungen, neue SSH-Bereitstellungen — verwenden Sie ML-DSA (Dilithium3 oder Dilithium5) statt ECDSA-256.",{"type":21,"tag":22,"props":24308,"children":24309},{},[24310,24315],{"type":21,"tag":205,"props":24311,"children":24312},{},[24313],{"type":26,"value":24314},"Aktualisieren Sie Ihre TLS-Zertifikats-Pipeline.",{"type":26,"value":24316}," Die meisten öffentlichen CAs stellen noch keine PQC-Zertifikate aus, aber Sie können ML-DSA heute schon für intern signierte Zertifikate und Service-Mesh-Zertifikate verwenden.",{"type":21,"tag":17383,"props":24318,"children":24320},{"id":24319},"stufe-3-langfristige-migration-15-jahre",[24321],{"type":26,"value":24322},"Stufe 3 — Langfristige Migration (1–5 Jahre)",{"type":21,"tag":22,"props":24324,"children":24325},{},[24326,24331],{"type":21,"tag":205,"props":24327,"children":24328},{},[24329],{"type":26,"value":24330},"Vollständige PKI-Migration.",{"type":26,"value":24332}," Ersetzen Sie Ihre RSA\u002FECC-Zertifikatshierarchie durch eine PQC-basierte CA-Infrastruktur. Dies ist der schwierigste Teil — Hardware-Sicherheitsmodule (HSMs), automatisierte Zertifikatsrotation und Zertifikatsketten müssen alle aktualisiert werden.",{"type":21,"tag":22,"props":24334,"children":24335},{},[24336,24341],{"type":21,"tag":205,"props":24337,"children":24338},{},[24339],{"type":26,"value":24340},"Hardware und eingebettete Geräte.",{"type":26,"value":24342}," IoT- und eingebettete Geräte können oft nicht aus der Ferne gepatcht werden und haben Lebensdauern von über 10 Jahren. Überprüfen Sie alle derartigen Geräte, die zur Authentifizierung auf RSA oder ECDSA angewiesen sind.",{"type":21,"tag":22,"props":24344,"children":24345},{},[24346,24351],{"type":21,"tag":205,"props":24347,"children":24348},{},[24349],{"type":26,"value":24350},"Schlüsselverwaltungssysteme.",{"type":26,"value":24352}," AWS KMS, Azure Key Vault, HashiCorp Vault — prüfen Sie deren PQC-Roadmaps und Migrationszeitpläne.",{"type":21,"tag":29,"props":24354,"children":24356},{"id":24355},"bibliotheks-und-framework-unterstützung",[24357],{"type":26,"value":24358},"Bibliotheks- und Framework-Unterstützung",{"type":21,"tag":4087,"props":24360,"children":24361},{},[24362,24378],{"type":21,"tag":4091,"props":24363,"children":24364},{},[24365],{"type":21,"tag":4095,"props":24366,"children":24367},{},[24368,24373],{"type":21,"tag":4099,"props":24369,"children":24370},{},[24371],{"type":26,"value":24372},"Plattform",{"type":21,"tag":4099,"props":24374,"children":24375},{},[24376],{"type":26,"value":24377},"PQC-Status",{"type":21,"tag":4113,"props":24379,"children":24380},{},[24381,24394,24407,24420,24433,24446,24459,24478,24491],{"type":21,"tag":4095,"props":24382,"children":24383},{},[24384,24389],{"type":21,"tag":4120,"props":24385,"children":24386},{},[24387],{"type":26,"value":24388},"OpenSSL 3.x + oqs-provider",{"type":21,"tag":4120,"props":24390,"children":24391},{},[24392],{"type":26,"value":24393},"ML-KEM, ML-DSA, FALCON über Plugin",{"type":21,"tag":4095,"props":24395,"children":24396},{},[24397,24402],{"type":21,"tag":4120,"props":24398,"children":24399},{},[24400],{"type":26,"value":24401},"AWS KMS",{"type":21,"tag":4120,"props":24403,"children":24404},{},[24405],{"type":26,"value":24406},"ML-KEM Hybrid-TLS in Vorschau",{"type":21,"tag":4095,"props":24408,"children":24409},{},[24410,24415],{"type":21,"tag":4120,"props":24411,"children":24412},{},[24413],{"type":26,"value":24414},"Cloudflare",{"type":21,"tag":4120,"props":24416,"children":24417},{},[24418],{"type":26,"value":24419},"X25519Kyber768 TLS (live seit 2023)",{"type":21,"tag":4095,"props":24421,"children":24422},{},[24423,24428],{"type":21,"tag":4120,"props":24424,"children":24425},{},[24426],{"type":26,"value":24427},"Chrome 124+",{"type":21,"tag":4120,"props":24429,"children":24430},{},[24431],{"type":26,"value":24432},"X25519Kyber768 TLS",{"type":21,"tag":4095,"props":24434,"children":24435},{},[24436,24441],{"type":21,"tag":4120,"props":24437,"children":24438},{},[24439],{"type":26,"value":24440},"Java (BouncyCastle)",{"type":21,"tag":4120,"props":24442,"children":24443},{},[24444],{"type":26,"value":24445},"CRYSTALS-Kyber, Dilithium",{"type":21,"tag":4095,"props":24447,"children":24448},{},[24449,24454],{"type":21,"tag":4120,"props":24450,"children":24451},{},[24452],{"type":26,"value":24453},"Python (pqcrypto)",{"type":21,"tag":4120,"props":24455,"children":24456},{},[24457],{"type":26,"value":24458},"Vollständiger NIST-Satz",{"type":21,"tag":4095,"props":24460,"children":24461},{},[24462,24467],{"type":21,"tag":4120,"props":24463,"children":24464},{},[24465],{"type":26,"value":24466},"Go",{"type":21,"tag":4120,"props":24468,"children":24469},{},[24470,24476],{"type":21,"tag":2097,"props":24471,"children":24473},{"className":24472},[],[24474],{"type":26,"value":24475},"golang.org\u002Fx\u002Fcrypto",{"type":26,"value":24477}," PQC in Entwicklung",{"type":21,"tag":4095,"props":24479,"children":24480},{},[24481,24486],{"type":21,"tag":4120,"props":24482,"children":24483},{},[24484],{"type":26,"value":24485},"Node.js",{"type":21,"tag":4120,"props":24487,"children":24488},{},[24489],{"type":26,"value":24490},"Über native Module (OpenSSL 3.x Bindings)",{"type":21,"tag":4095,"props":24492,"children":24493},{},[24494,24499],{"type":21,"tag":4120,"props":24495,"children":24496},{},[24497],{"type":26,"value":24498},"Rust (pqcrypto crate)",{"type":21,"tag":4120,"props":24500,"children":24501},{},[24502],{"type":26,"value":24458},{"type":21,"tag":29,"props":24504,"children":24506},{"id":24505},"zusammenfassung-auf-einer-seite",[24507],{"type":26,"value":24508},"Zusammenfassung auf einer Seite",{"type":21,"tag":2328,"props":24510,"children":24512},{"code":24511},"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",[24513],{"type":21,"tag":2097,"props":24514,"children":24515},{"__ignoreMap":7},[24516],{"type":26,"value":24511},{"type":21,"tag":22,"props":24518,"children":24519},{},[24520],{"type":26,"value":24521},"Die Quantenbedrohung für die Kryptografie ist real und der Zeitrahmen ungewiss — genau deshalb ist es die richtige Entscheidung, jetzt zu handeln, bevor Quantencomputer dazu in der Lage sind.",{"type":21,"tag":22,"props":24523,"children":24524},{},[24525,24530,24531,24536,24537],{"type":21,"tag":205,"props":24526,"children":24527},{},[24528],{"type":26,"value":24529},"Weiterführende Lektüre:",{"type":26,"value":1367},{"type":21,"tag":41,"props":24532,"children":24533},{"href":9649},[24534],{"type":26,"value":24535},"Glossar zum Quantencomputing — Shors Algorithmus",{"type":26,"value":7133},{"type":21,"tag":41,"props":24538,"children":24539},{"href":11526},[24540],{"type":26,"value":24541},"Was Quantencomputer heute können",{"type":21,"tag":2712,"props":24543,"children":24544},{},[24545],{"type":26,"value":2716},{"title":7,"searchDepth":173,"depth":173,"links":24547},[24548,24549,24550,24555,24560,24561],{"id":23538,"depth":173,"text":23541},{"id":23630,"depth":173,"text":23633},{"id":23739,"depth":173,"text":23742,"children":24551},[24552,24553,24554],{"id":23750,"depth":2359,"text":23753},{"id":23960,"depth":2359,"text":23963},{"id":24128,"depth":2359,"text":24131},{"id":24185,"depth":173,"text":24188,"children":24556},[24557,24558,24559],{"id":24191,"depth":2359,"text":24194},{"id":24250,"depth":2359,"text":24253},{"id":24319,"depth":2359,"text":24322},{"id":24355,"depth":173,"text":24358},{"id":24505,"depth":173,"text":24508},"content:de:blog:post-quantum-cryptography-guide.md","de\u002Fblog\u002Fpost-quantum-cryptography-guide.md","de\u002Fblog\u002Fpost-quantum-cryptography-guide",{"_path":24566,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":24567,"description":24568,"date":24569,"author":11,"tags":24570,"readingTime":951,"body":24571,"_type":180,"_id":27113,"_source":182,"_file":27114,"_stem":27115,"_extension":185},"\u002Fde\u002Fblog\u002Freduce-shot-count","Wie Sie Ihre Shot-Anzahl in variationellen Quantenalgorithmen um 80 % senken","Praktische Techniken zur Reduzierung der Anzahl benötigter Schaltkreisausführungen in VQE und QAOA — shot-sparsame Optimierer, Tricks zur Gradientenschätzung und Messgruppierung.","2026-03-01",[2040,352,2041,8910],{"type":18,"children":24572,"toc":27102},[24573,24578,24583,24589,24594,24716,24728,24734,24746,25046,25056,25062,25074,25397,25409,25415,25435,25628,25655,25661,25673,25822,25832,25838,25843,26176,26181,26187,26192,26365,26371,26933,26939,27068,27073,27098],{"type":21,"tag":22,"props":24574,"children":24575},{},[24576],{"type":26,"value":24577},"Jedes Mal, wenn Sie einen Quantenschaltkreis auf echter Hardware ausführen, kostet das QPU-Zeit und Geld. Variationelle Algorithmen wie VQE und QAOA können Hunderttausende von Schaltkreisausführungen benötigen, um zu konvergieren — bei $0,075–$0,90 pro Task auf Cloud-QPUs summiert sich das schnell.",{"type":21,"tag":22,"props":24579,"children":24580},{},[24581],{"type":26,"value":24582},"Die gute Nachricht: Die meisten Standardimplementierungen sind extrem shot-ineffizient. Mit den richtigen Techniken können Sie den Shot-Bedarf um 50–90 % senken, ohne die Ergebnisqualität zu beeinträchtigen.",{"type":21,"tag":29,"props":24584,"children":24586},{"id":24585},"warum-die-shot-anzahl-standardmäßig-so-hoch-ist",[24587],{"type":26,"value":24588},"Warum die Shot-Anzahl standardmäßig so hoch ist",{"type":21,"tag":22,"props":24590,"children":24591},{},[24592],{"type":26,"value":24593},"VQE berechnet Erwartungswerte von Pauli-Operatoren. Ein Hamiltonian wird in eine Summe von Pauli-Termen zerlegt, und jeder Term erfordert eine separate Schaltkreisausführung. Für ein Molekül wie H₂ (4 Qubits) gibt es ~15 Pauli-Terme. Für größere Moleküle explodiert die Anzahl:",{"type":21,"tag":4087,"props":24595,"children":24596},{},[24597,24623],{"type":21,"tag":4091,"props":24598,"children":24599},{},[24600],{"type":21,"tag":4095,"props":24601,"children":24602},{},[24603,24608,24613,24618],{"type":21,"tag":4099,"props":24604,"children":24605},{},[24606],{"type":26,"value":24607},"Molekül",{"type":21,"tag":4099,"props":24609,"children":24610},{},[24611],{"type":26,"value":24612},"Qubits",{"type":21,"tag":4099,"props":24614,"children":24615},{},[24616],{"type":26,"value":24617},"Pauli-Terme",{"type":21,"tag":4099,"props":24619,"children":24620},{},[24621],{"type":26,"value":24622},"Naive Shots\u002FIteration",{"type":21,"tag":4113,"props":24624,"children":24625},{},[24626,24648,24671,24694],{"type":21,"tag":4095,"props":24627,"children":24628},{},[24629,24634,24638,24643],{"type":21,"tag":4120,"props":24630,"children":24631},{},[24632],{"type":26,"value":24633},"H₂",{"type":21,"tag":4120,"props":24635,"children":24636},{},[24637],{"type":26,"value":5553},{"type":21,"tag":4120,"props":24639,"children":24640},{},[24641],{"type":26,"value":24642},"15",{"type":21,"tag":4120,"props":24644,"children":24645},{},[24646],{"type":26,"value":24647},"15.000",{"type":21,"tag":4095,"props":24649,"children":24650},{},[24651,24656,24661,24666],{"type":21,"tag":4120,"props":24652,"children":24653},{},[24654],{"type":26,"value":24655},"LiH",{"type":21,"tag":4120,"props":24657,"children":24658},{},[24659],{"type":26,"value":24660},"12",{"type":21,"tag":4120,"props":24662,"children":24663},{},[24664],{"type":26,"value":24665},"631",{"type":21,"tag":4120,"props":24667,"children":24668},{},[24669],{"type":26,"value":24670},"631.000",{"type":21,"tag":4095,"props":24672,"children":24673},{},[24674,24679,24684,24689],{"type":21,"tag":4120,"props":24675,"children":24676},{},[24677],{"type":26,"value":24678},"BeH₂",{"type":21,"tag":4120,"props":24680,"children":24681},{},[24682],{"type":26,"value":24683},"14",{"type":21,"tag":4120,"props":24685,"children":24686},{},[24687],{"type":26,"value":24688},"666",{"type":21,"tag":4120,"props":24690,"children":24691},{},[24692],{"type":26,"value":24693},"666.000",{"type":21,"tag":4095,"props":24695,"children":24696},{},[24697,24702,24706,24711],{"type":21,"tag":4120,"props":24698,"children":24699},{},[24700],{"type":26,"value":24701},"H₂O",{"type":21,"tag":4120,"props":24703,"children":24704},{},[24705],{"type":26,"value":24683},{"type":21,"tag":4120,"props":24707,"children":24708},{},[24709],{"type":26,"value":24710},"1.086",{"type":21,"tag":4120,"props":24712,"children":24713},{},[24714],{"type":26,"value":24715},"1.086.000",{"type":21,"tag":22,"props":24717,"children":24718},{},[24719,24721,24726],{"type":26,"value":24720},"Mit 200 Optimierer-Iterationen benötigt H₂O naiv ",{"type":21,"tag":205,"props":24722,"children":24723},{},[24724],{"type":26,"value":24725},"217 Millionen Shots",{"type":26,"value":24727},". Die folgenden Techniken reduzieren dies um 80–95 %.",{"type":21,"tag":29,"props":24729,"children":24731},{"id":24730},"technik-1-messgruppierung-der-größte-gewinn",[24732],{"type":26,"value":24733},"Technik 1: Messgruppierung (Der größte Gewinn)",{"type":21,"tag":22,"props":24735,"children":24736},{},[24737,24739,24744],{"type":26,"value":24738},"Viele Pauli-Terme ",{"type":21,"tag":205,"props":24740,"children":24741},{},[24742],{"type":26,"value":24743},"kommutieren",{"type":26,"value":24745}," — sie können in einer einzigen Schaltkreisausführung gleichzeitig gemessen werden, statt separat. Das Gruppieren kommutierender Observablen ist die größte einzelne verfügbare Reduktion.",{"type":21,"tag":2328,"props":24747,"children":24749},{"className":3207,"code":24748,"language":3209,"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",[24750],{"type":21,"tag":2097,"props":24751,"children":24752},{"__ignoreMap":7},[24753,24773,24792,24811,24830,24837,24845,24853,24870,24877,24885,24904,24911,24928,24935,24943,24978,25038],{"type":21,"tag":2338,"props":24754,"children":24755},{"class":2340,"line":2341},[24756,24760,24764,24768],{"type":21,"tag":2338,"props":24757,"children":24758},{"style":3219},[24759],{"type":26,"value":3222},{"type":21,"tag":2338,"props":24761,"children":24762},{"style":2345},[24763],{"type":26,"value":22522},{"type":21,"tag":2338,"props":24765,"children":24766},{"style":3219},[24767],{"type":26,"value":3232},{"type":21,"tag":2338,"props":24769,"children":24770},{"style":2345},[24771],{"type":26,"value":24772}," StatevectorEstimator\n",{"type":21,"tag":2338,"props":24774,"children":24775},{"class":2340,"line":173},[24776,24780,24784,24788],{"type":21,"tag":2338,"props":24777,"children":24778},{"style":3219},[24779],{"type":26,"value":3222},{"type":21,"tag":2338,"props":24781,"children":24782},{"style":2345},[24783],{"type":26,"value":22438},{"type":21,"tag":2338,"props":24785,"children":24786},{"style":3219},[24787],{"type":26,"value":3232},{"type":21,"tag":2338,"props":24789,"children":24790},{"style":2345},[24791],{"type":26,"value":22447},{"type":21,"tag":2338,"props":24793,"children":24794},{"class":2340,"line":2359},[24795,24799,24803,24807],{"type":21,"tag":2338,"props":24796,"children":24797},{"style":3219},[24798],{"type":26,"value":3222},{"type":21,"tag":2338,"props":24800,"children":24801},{"style":2345},[24802],{"type":26,"value":22480},{"type":21,"tag":2338,"props":24804,"children":24805},{"style":3219},[24806],{"type":26,"value":3232},{"type":21,"tag":2338,"props":24808,"children":24809},{"style":2363},[24810],{"type":26,"value":22489},{"type":21,"tag":2338,"props":24812,"children":24813},{"class":2340,"line":2421},[24814,24818,24822,24826],{"type":21,"tag":2338,"props":24815,"children":24816},{"style":3219},[24817],{"type":26,"value":3222},{"type":21,"tag":2338,"props":24819,"children":24820},{"style":2345},[24821],{"type":26,"value":22501},{"type":21,"tag":2338,"props":24823,"children":24824},{"style":3219},[24825],{"type":26,"value":3232},{"type":21,"tag":2338,"props":24827,"children":24828},{"style":2363},[24829],{"type":26,"value":22510},{"type":21,"tag":2338,"props":24831,"children":24832},{"class":2340,"line":2445},[24833],{"type":21,"tag":2338,"props":24834,"children":24835},{"emptyLinePlaceholder":3243},[24836],{"type":26,"value":3246},{"type":21,"tag":2338,"props":24838,"children":24839},{"class":2340,"line":877},[24840],{"type":21,"tag":2338,"props":24841,"children":24842},{"style":3469},[24843],{"type":26,"value":24844},"# Qiskit automatically groups commuting Paulis in the Estimator primitive\n",{"type":21,"tag":2338,"props":24846,"children":24847},{"class":2340,"line":196},[24848],{"type":21,"tag":2338,"props":24849,"children":24850},{"style":3469},[24851],{"type":26,"value":24852},"# This reduces shots from O(n_terms) to O(n_groups) — often 5-10x reduction\n",{"type":21,"tag":2338,"props":24854,"children":24855},{"class":2340,"line":951},[24856,24861,24865],{"type":21,"tag":2338,"props":24857,"children":24858},{"style":2345},[24859],{"type":26,"value":24860},"estimator ",{"type":21,"tag":2338,"props":24862,"children":24863},{"style":3219},[24864],{"type":26,"value":3259},{"type":21,"tag":2338,"props":24866,"children":24867},{"style":2345},[24868],{"type":26,"value":24869}," StatevectorEstimator()\n",{"type":21,"tag":2338,"props":24871,"children":24872},{"class":2340,"line":16},[24873],{"type":21,"tag":2338,"props":24874,"children":24875},{"emptyLinePlaceholder":3243},[24876],{"type":26,"value":3246},{"type":21,"tag":2338,"props":24878,"children":24879},{"class":2340,"line":3465},[24880],{"type":21,"tag":2338,"props":24881,"children":24882},{"style":3469},[24883],{"type":26,"value":24884},"# With PennyLane, use grouping explicitly:\n",{"type":21,"tag":2338,"props":24886,"children":24887},{"class":2340,"line":3475},[24888,24892,24896,24900],{"type":21,"tag":2338,"props":24889,"children":24890},{"style":3219},[24891],{"type":26,"value":3232},{"type":21,"tag":2338,"props":24893,"children":24894},{"style":2345},[24895],{"type":26,"value":14113},{"type":21,"tag":2338,"props":24897,"children":24898},{"style":3219},[24899],{"type":26,"value":4299},{"type":21,"tag":2338,"props":24901,"children":24902},{"style":2345},[24903],{"type":26,"value":14122},{"type":21,"tag":2338,"props":24905,"children":24906},{"class":2340,"line":500},[24907],{"type":21,"tag":2338,"props":24908,"children":24909},{"emptyLinePlaceholder":3243},[24910],{"type":26,"value":3246},{"type":21,"tag":2338,"props":24912,"children":24913},{"class":2340,"line":3535},[24914,24919,24923],{"type":21,"tag":2338,"props":24915,"children":24916},{"style":2345},[24917],{"type":26,"value":24918},"H ",{"type":21,"tag":2338,"props":24920,"children":24921},{"style":3219},[24922],{"type":26,"value":3259},{"type":21,"tag":2338,"props":24924,"children":24925},{"style":2345},[24926],{"type":26,"value":24927}," qml.Hamiltonian(coeffs, observables)\n",{"type":21,"tag":2338,"props":24929,"children":24930},{"class":2340,"line":3583},[24931],{"type":21,"tag":2338,"props":24932,"children":24933},{"emptyLinePlaceholder":3243},[24934],{"type":26,"value":3246},{"type":21,"tag":2338,"props":24936,"children":24937},{"class":2340,"line":3625},[24938],{"type":21,"tag":2338,"props":24939,"children":24940},{"style":3469},[24941],{"type":26,"value":24942},"# Group commuting terms — usually reduces term count by 5-10x\n",{"type":21,"tag":2338,"props":24944,"children":24945},{"class":2340,"line":4652},[24946,24951,24955,24960,24965,24969,24974],{"type":21,"tag":2338,"props":24947,"children":24948},{"style":2345},[24949],{"type":26,"value":24950},"groups ",{"type":21,"tag":2338,"props":24952,"children":24953},{"style":3219},[24954],{"type":26,"value":3259},{"type":21,"tag":2338,"props":24956,"children":24957},{"style":2345},[24958],{"type":26,"value":24959}," qml.grouping.group_observables(observables, ",{"type":21,"tag":2338,"props":24961,"children":24962},{"style":3284},[24963],{"type":26,"value":24964},"grouping_type",{"type":21,"tag":2338,"props":24966,"children":24967},{"style":3219},[24968],{"type":26,"value":3259},{"type":21,"tag":2338,"props":24970,"children":24971},{"style":2374},[24972],{"type":26,"value":24973},"'qwc'",{"type":21,"tag":2338,"props":24975,"children":24976},{"style":2345},[24977],{"type":26,"value":3319},{"type":21,"tag":2338,"props":24979,"children":24980},{"class":2340,"line":4671},[24981,24985,24989,24993,24998,25003,25008,25012,25017,25021,25026,25030,25034],{"type":21,"tag":2338,"props":24982,"children":24983},{"style":2363},[24984],{"type":26,"value":3334},{"type":21,"tag":2338,"props":24986,"children":24987},{"style":2345},[24988],{"type":26,"value":3339},{"type":21,"tag":2338,"props":24990,"children":24991},{"style":3219},[24992],{"type":26,"value":3344},{"type":21,"tag":2338,"props":24994,"children":24995},{"style":2374},[24996],{"type":26,"value":24997},"\"Original terms: ",{"type":21,"tag":2338,"props":24999,"children":25000},{"style":2363},[25001],{"type":26,"value":25002},"{len",{"type":21,"tag":2338,"props":25004,"children":25005},{"style":2345},[25006],{"type":26,"value":25007},"(observables)",{"type":21,"tag":2338,"props":25009,"children":25010},{"style":2363},[25011],{"type":26,"value":3364},{"type":21,"tag":2338,"props":25013,"children":25014},{"style":2374},[25015],{"type":26,"value":25016},", Groups: ",{"type":21,"tag":2338,"props":25018,"children":25019},{"style":2363},[25020],{"type":26,"value":25002},{"type":21,"tag":2338,"props":25022,"children":25023},{"style":2345},[25024],{"type":26,"value":25025},"(groups)",{"type":21,"tag":2338,"props":25027,"children":25028},{"style":2363},[25029],{"type":26,"value":3364},{"type":21,"tag":2338,"props":25031,"children":25032},{"style":2374},[25033],{"type":26,"value":3369},{"type":21,"tag":2338,"props":25035,"children":25036},{"style":2345},[25037],{"type":26,"value":3319},{"type":21,"tag":2338,"props":25039,"children":25040},{"class":2340,"line":4679},[25041],{"type":21,"tag":2338,"props":25042,"children":25043},{"style":3469},[25044],{"type":26,"value":25045},"# Original terms: 631, Groups: 68  (for LiH)\n",{"type":21,"tag":22,"props":25047,"children":25048},{},[25049,25054],{"type":21,"tag":205,"props":25050,"children":25051},{},[25052],{"type":26,"value":25053},"Erwartete Einsparung: 5–15×",{"type":26,"value":25055}," bei typischen chemischen Hamiltonians.",{"type":21,"tag":29,"props":25057,"children":25059},{"id":25058},"technik-2-shot-sparsame-optimierer",[25060],{"type":26,"value":25061},"Technik 2: Shot-sparsame Optimierer",{"type":21,"tag":22,"props":25063,"children":25064},{},[25065,25067,25072],{"type":26,"value":25066},"Klassische Optimierer wie L-BFGS-B oder ADAM setzen rauschfreie Funktionsauswertungen voraus — sie fordern mehr Gradientenauswertungen an als nötig, wenn die Ergebnisse verrauscht sind. ",{"type":21,"tag":205,"props":25068,"children":25069},{},[25070],{"type":26,"value":25071},"Shot-sparsame Optimierer",{"type":26,"value":25073}," verteilen die Shots adaptiv basierend auf der Messvarianz.",{"type":21,"tag":2328,"props":25075,"children":25077},{"className":3207,"code":25076,"language":3209,"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",[25078],{"type":21,"tag":2097,"props":25079,"children":25080},{"__ignoreMap":7},[25081,25102,25109,25148,25155,25166,25182,25190,25198,25210,25217,25225,25258,25265,25291,25323,25340],{"type":21,"tag":2338,"props":25082,"children":25083},{"class":2340,"line":2341},[25084,25088,25093,25097],{"type":21,"tag":2338,"props":25085,"children":25086},{"style":3219},[25087],{"type":26,"value":3222},{"type":21,"tag":2338,"props":25089,"children":25090},{"style":2345},[25091],{"type":26,"value":25092}," pennylane.optimize ",{"type":21,"tag":2338,"props":25094,"children":25095},{"style":3219},[25096],{"type":26,"value":3232},{"type":21,"tag":2338,"props":25098,"children":25099},{"style":2345},[25100],{"type":26,"value":25101}," AdaptiveOptimizer, ShotAdaptiveOptimizer\n",{"type":21,"tag":2338,"props":25103,"children":25104},{"class":2340,"line":173},[25105],{"type":21,"tag":2338,"props":25106,"children":25107},{"emptyLinePlaceholder":3243},[25108],{"type":26,"value":3246},{"type":21,"tag":2338,"props":25110,"children":25111},{"class":2340,"line":2359},[25112,25116,25120,25124,25128,25132,25136,25140,25144],{"type":21,"tag":2338,"props":25113,"children":25114},{"style":2345},[25115],{"type":26,"value":14246},{"type":21,"tag":2338,"props":25117,"children":25118},{"style":3219},[25119],{"type":26,"value":3259},{"type":21,"tag":2338,"props":25121,"children":25122},{"style":2345},[25123],{"type":26,"value":14255},{"type":21,"tag":2338,"props":25125,"children":25126},{"style":2374},[25127],{"type":26,"value":14260},{"type":21,"tag":2338,"props":25129,"children":25130},{"style":2345},[25131],{"type":26,"value":1375},{"type":21,"tag":2338,"props":25133,"children":25134},{"style":3284},[25135],{"type":26,"value":14269},{"type":21,"tag":2338,"props":25137,"children":25138},{"style":3219},[25139],{"type":26,"value":3259},{"type":21,"tag":2338,"props":25141,"children":25142},{"style":2363},[25143],{"type":26,"value":5553},{"type":21,"tag":2338,"props":25145,"children":25146},{"style":2345},[25147],{"type":26,"value":3319},{"type":21,"tag":2338,"props":25149,"children":25150},{"class":2340,"line":2421},[25151],{"type":21,"tag":2338,"props":25152,"children":25153},{"emptyLinePlaceholder":3243},[25154],{"type":26,"value":3246},{"type":21,"tag":2338,"props":25156,"children":25157},{"class":2340,"line":2445},[25158,25162],{"type":21,"tag":2338,"props":25159,"children":25160},{"style":4385},[25161],{"type":26,"value":14293},{"type":21,"tag":2338,"props":25163,"children":25164},{"style":2345},[25165],{"type":26,"value":14298},{"type":21,"tag":2338,"props":25167,"children":25168},{"class":2340,"line":877},[25169,25173,25177],{"type":21,"tag":2338,"props":25170,"children":25171},{"style":3219},[25172],{"type":26,"value":4382},{"type":21,"tag":2338,"props":25174,"children":25175},{"style":4385},[25176],{"type":26,"value":14310},{"type":21,"tag":2338,"props":25178,"children":25179},{"style":2345},[25180],{"type":26,"value":25181},"(params):\n",{"type":21,"tag":2338,"props":25183,"children":25184},{"class":2340,"line":196},[25185],{"type":21,"tag":2338,"props":25186,"children":25187},{"style":3469},[25188],{"type":26,"value":25189},"    # ansatz\n",{"type":21,"tag":2338,"props":25191,"children":25192},{"class":2340,"line":951},[25193],{"type":21,"tag":2338,"props":25194,"children":25195},{"style":2363},[25196],{"type":26,"value":25197},"    ...\n",{"type":21,"tag":2338,"props":25199,"children":25200},{"class":2340,"line":16},[25201,25205],{"type":21,"tag":2338,"props":25202,"children":25203},{"style":3219},[25204],{"type":26,"value":4607},{"type":21,"tag":2338,"props":25206,"children":25207},{"style":2345},[25208],{"type":26,"value":25209}," qml.expval(H)\n",{"type":21,"tag":2338,"props":25211,"children":25212},{"class":2340,"line":3465},[25213],{"type":21,"tag":2338,"props":25214,"children":25215},{"emptyLinePlaceholder":3243},[25216],{"type":26,"value":3246},{"type":21,"tag":2338,"props":25218,"children":25219},{"class":2340,"line":3475},[25220],{"type":21,"tag":2338,"props":25221,"children":25222},{"style":3469},[25223],{"type":26,"value":25224},"# ShotAdaptiveOptimizer: allocates more shots to high-variance directions\n",{"type":21,"tag":2338,"props":25226,"children":25227},{"class":2340,"line":500},[25228,25232,25236,25241,25246,25250,25254],{"type":21,"tag":2338,"props":25229,"children":25230},{"style":2345},[25231],{"type":26,"value":14972},{"type":21,"tag":2338,"props":25233,"children":25234},{"style":3219},[25235],{"type":26,"value":3259},{"type":21,"tag":2338,"props":25237,"children":25238},{"style":2345},[25239],{"type":26,"value":25240}," ShotAdaptiveOptimizer(",{"type":21,"tag":2338,"props":25242,"children":25243},{"style":3284},[25244],{"type":26,"value":25245},"min_shots",{"type":21,"tag":2338,"props":25247,"children":25248},{"style":3219},[25249],{"type":26,"value":3259},{"type":21,"tag":2338,"props":25251,"children":25252},{"style":2363},[25253],{"type":26,"value":20546},{"type":21,"tag":2338,"props":25255,"children":25256},{"style":2345},[25257],{"type":26,"value":3319},{"type":21,"tag":2338,"props":25259,"children":25260},{"class":2340,"line":3535},[25261],{"type":21,"tag":2338,"props":25262,"children":25263},{"emptyLinePlaceholder":3243},[25264],{"type":26,"value":3246},{"type":21,"tag":2338,"props":25266,"children":25267},{"class":2340,"line":3583},[25268,25273,25277,25282,25286],{"type":21,"tag":2338,"props":25269,"children":25270},{"style":2345},[25271],{"type":26,"value":25272},"params ",{"type":21,"tag":2338,"props":25274,"children":25275},{"style":3219},[25276],{"type":26,"value":3259},{"type":21,"tag":2338,"props":25278,"children":25279},{"style":2345},[25280],{"type":26,"value":25281}," np.random.uniform(",{"type":21,"tag":2338,"props":25283,"children":25284},{"style":3219},[25285],{"type":26,"value":4869},{"type":21,"tag":2338,"props":25287,"children":25288},{"style":2345},[25289],{"type":26,"value":25290},"np.pi, np.pi, n_params)\n",{"type":21,"tag":2338,"props":25292,"children":25293},{"class":2340,"line":3625},[25294,25298,25302,25306,25310,25314,25319],{"type":21,"tag":2338,"props":25295,"children":25296},{"style":3219},[25297],{"type":26,"value":3512},{"type":21,"tag":2338,"props":25299,"children":25300},{"style":2345},[25301],{"type":26,"value":4766},{"type":21,"tag":2338,"props":25303,"children":25304},{"style":3219},[25305],{"type":26,"value":3522},{"type":21,"tag":2338,"props":25307,"children":25308},{"style":2363},[25309],{"type":26,"value":3527},{"type":21,"tag":2338,"props":25311,"children":25312},{"style":2345},[25313],{"type":26,"value":3339},{"type":21,"tag":2338,"props":25315,"children":25316},{"style":2363},[25317],{"type":26,"value":25318},"100",{"type":21,"tag":2338,"props":25320,"children":25321},{"style":2345},[25322],{"type":26,"value":4435},{"type":21,"tag":2338,"props":25324,"children":25325},{"class":2340,"line":4652},[25326,25331,25335],{"type":21,"tag":2338,"props":25327,"children":25328},{"style":2345},[25329],{"type":26,"value":25330},"    params, _, shots_used ",{"type":21,"tag":2338,"props":25332,"children":25333},{"style":3219},[25334],{"type":26,"value":3259},{"type":21,"tag":2338,"props":25336,"children":25337},{"style":2345},[25338],{"type":26,"value":25339}," opt.step_and_cost(circuit, params)\n",{"type":21,"tag":2338,"props":25341,"children":25342},{"class":2340,"line":4671},[25343,25347,25351,25355,25359,25363,25367,25371,25376,25380,25385,25389,25393],{"type":21,"tag":2338,"props":25344,"children":25345},{"style":2363},[25346],{"type":26,"value":17246},{"type":21,"tag":2338,"props":25348,"children":25349},{"style":2345},[25350],{"type":26,"value":3339},{"type":21,"tag":2338,"props":25352,"children":25353},{"style":3219},[25354],{"type":26,"value":3344},{"type":21,"tag":2338,"props":25356,"children":25357},{"style":2374},[25358],{"type":26,"value":15251},{"type":21,"tag":2338,"props":25360,"children":25361},{"style":2363},[25362],{"type":26,"value":3354},{"type":21,"tag":2338,"props":25364,"children":25365},{"style":2345},[25366],{"type":26,"value":4257},{"type":21,"tag":2338,"props":25368,"children":25369},{"style":2363},[25370],{"type":26,"value":3364},{"type":21,"tag":2338,"props":25372,"children":25373},{"style":2374},[25374],{"type":26,"value":25375},": shots used = ",{"type":21,"tag":2338,"props":25377,"children":25378},{"style":2363},[25379],{"type":26,"value":3354},{"type":21,"tag":2338,"props":25381,"children":25382},{"style":2345},[25383],{"type":26,"value":25384},"shots_used",{"type":21,"tag":2338,"props":25386,"children":25387},{"style":2363},[25388],{"type":26,"value":3364},{"type":21,"tag":2338,"props":25390,"children":25391},{"style":2374},[25392],{"type":26,"value":3369},{"type":21,"tag":2338,"props":25394,"children":25395},{"style":2345},[25396],{"type":26,"value":3319},{"type":21,"tag":22,"props":25398,"children":25399},{},[25400,25402,25407],{"type":26,"value":25401},"Der Optimierer beginnt mit wenigen Shots pro Auswertung und erhöht sie nur, wenn der Gradient unsicher ist. Ein typischer VQE-Lauf verwendet ",{"type":21,"tag":205,"props":25403,"children":25404},{},[25405],{"type":26,"value":25406},"5–10× weniger Shots",{"type":26,"value":25408}," als COBYLA mit fester Shot-Anzahl.",{"type":21,"tag":29,"props":25410,"children":25412},{"id":25411},"technik-3-parameter-shift-gradienten-weniger-auswertungen-nutzen",[25413],{"type":26,"value":25414},"Technik 3: Parameter-Shift-Gradienten (Weniger Auswertungen nutzen)",{"type":21,"tag":22,"props":25416,"children":25417},{},[25418,25420,25426,25428,25433],{"type":26,"value":25419},"Die naive Gradientenschätzung per Finite-Differenzen ",{"type":21,"tag":2097,"props":25421,"children":25423},{"className":25422},[],[25424],{"type":26,"value":25425},"(f(x+ε) - f(x))\u002Fε",{"type":26,"value":25427}," hat hohe Varianz bei kleinem ε und großen Bias bei großem ε. Die ",{"type":21,"tag":205,"props":25429,"children":25430},{},[25431],{"type":26,"value":25432},"Parameter-Shift-Regel",{"type":26,"value":25434}," liefert exakte Gradienten mit nur 2 Schaltkreisauswertungen pro Parameter:",{"type":21,"tag":2328,"props":25436,"children":25438},{"className":3207,"code":25437,"language":3209,"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",[25439],{"type":21,"tag":2097,"props":25440,"children":25441},{"__ignoreMap":7},[25442,25450,25485,25500,25507,25514,25522,25555,25562,25570,25578,25606,25621],{"type":21,"tag":2338,"props":25443,"children":25444},{"class":2340,"line":2341},[25445],{"type":21,"tag":2338,"props":25446,"children":25447},{"style":3469},[25448],{"type":26,"value":25449},"# PennyLane uses parameter-shift by default for gradients\n",{"type":21,"tag":2338,"props":25451,"children":25452},{"class":2340,"line":173},[25453,25457,25462,25467,25471,25476,25480],{"type":21,"tag":2338,"props":25454,"children":25455},{"style":4385},[25456],{"type":26,"value":14293},{"type":21,"tag":2338,"props":25458,"children":25459},{"style":2345},[25460],{"type":26,"value":25461},"(dev, ",{"type":21,"tag":2338,"props":25463,"children":25464},{"style":3284},[25465],{"type":26,"value":25466},"diff_method",{"type":21,"tag":2338,"props":25468,"children":25469},{"style":3219},[25470],{"type":26,"value":3259},{"type":21,"tag":2338,"props":25472,"children":25473},{"style":2374},[25474],{"type":26,"value":25475},"\"parameter-shift\"",{"type":21,"tag":2338,"props":25477,"children":25478},{"style":2345},[25479],{"type":26,"value":19464},{"type":21,"tag":2338,"props":25481,"children":25482},{"style":3469},[25483],{"type":26,"value":25484},"# 2 evals per param\n",{"type":21,"tag":2338,"props":25486,"children":25487},{"class":2340,"line":2359},[25488,25492,25496],{"type":21,"tag":2338,"props":25489,"children":25490},{"style":3219},[25491],{"type":26,"value":4382},{"type":21,"tag":2338,"props":25493,"children":25494},{"style":4385},[25495],{"type":26,"value":14310},{"type":21,"tag":2338,"props":25497,"children":25498},{"style":2345},[25499],{"type":26,"value":25181},{"type":21,"tag":2338,"props":25501,"children":25502},{"class":2340,"line":2421},[25503],{"type":21,"tag":2338,"props":25504,"children":25505},{"style":2363},[25506],{"type":26,"value":25197},{"type":21,"tag":2338,"props":25508,"children":25509},{"class":2340,"line":2445},[25510],{"type":21,"tag":2338,"props":25511,"children":25512},{"emptyLinePlaceholder":3243},[25513],{"type":26,"value":3246},{"type":21,"tag":2338,"props":25515,"children":25516},{"class":2340,"line":877},[25517],{"type":21,"tag":2338,"props":25518,"children":25519},{"style":3469},[25520],{"type":26,"value":25521},"# Compare to finite-difference (requires 1 eval per param but biased):\n",{"type":21,"tag":2338,"props":25523,"children":25524},{"class":2340,"line":196},[25525,25529,25533,25537,25541,25546,25550],{"type":21,"tag":2338,"props":25526,"children":25527},{"style":4385},[25528],{"type":26,"value":14293},{"type":21,"tag":2338,"props":25530,"children":25531},{"style":2345},[25532],{"type":26,"value":25461},{"type":21,"tag":2338,"props":25534,"children":25535},{"style":3284},[25536],{"type":26,"value":25466},{"type":21,"tag":2338,"props":25538,"children":25539},{"style":3219},[25540],{"type":26,"value":3259},{"type":21,"tag":2338,"props":25542,"children":25543},{"style":2374},[25544],{"type":26,"value":25545},"\"finite-diff\"",{"type":21,"tag":2338,"props":25547,"children":25548},{"style":2345},[25549],{"type":26,"value":19464},{"type":21,"tag":2338,"props":25551,"children":25552},{"style":3469},[25553],{"type":26,"value":25554},"# 1 eval but approximate\n",{"type":21,"tag":2338,"props":25556,"children":25557},{"class":2340,"line":951},[25558],{"type":21,"tag":2338,"props":25559,"children":25560},{"emptyLinePlaceholder":3243},[25561],{"type":26,"value":3246},{"type":21,"tag":2338,"props":25563,"children":25564},{"class":2340,"line":16},[25565],{"type":21,"tag":2338,"props":25566,"children":25567},{"style":3469},[25568],{"type":26,"value":25569},"# For large circuits, use \"best\" — PennyLane chooses adjoint on simulator,\n",{"type":21,"tag":2338,"props":25571,"children":25572},{"class":2340,"line":3465},[25573],{"type":21,"tag":2338,"props":25574,"children":25575},{"style":3469},[25576],{"type":26,"value":25577},"# parameter-shift on hardware\n",{"type":21,"tag":2338,"props":25579,"children":25580},{"class":2340,"line":3475},[25581,25585,25589,25593,25597,25602],{"type":21,"tag":2338,"props":25582,"children":25583},{"style":4385},[25584],{"type":26,"value":14293},{"type":21,"tag":2338,"props":25586,"children":25587},{"style":2345},[25588],{"type":26,"value":25461},{"type":21,"tag":2338,"props":25590,"children":25591},{"style":3284},[25592],{"type":26,"value":25466},{"type":21,"tag":2338,"props":25594,"children":25595},{"style":3219},[25596],{"type":26,"value":3259},{"type":21,"tag":2338,"props":25598,"children":25599},{"style":2374},[25600],{"type":26,"value":25601},"\"best\"",{"type":21,"tag":2338,"props":25603,"children":25604},{"style":2345},[25605],{"type":26,"value":3319},{"type":21,"tag":2338,"props":25607,"children":25608},{"class":2340,"line":500},[25609,25613,25617],{"type":21,"tag":2338,"props":25610,"children":25611},{"style":3219},[25612],{"type":26,"value":4382},{"type":21,"tag":2338,"props":25614,"children":25615},{"style":4385},[25616],{"type":26,"value":14310},{"type":21,"tag":2338,"props":25618,"children":25619},{"style":2345},[25620],{"type":26,"value":25181},{"type":21,"tag":2338,"props":25622,"children":25623},{"class":2340,"line":3535},[25624],{"type":21,"tag":2338,"props":25625,"children":25626},{"style":2363},[25627],{"type":26,"value":25197},{"type":21,"tag":22,"props":25629,"children":25630},{},[25631,25633,25638,25640,25646,25648,25653],{"type":26,"value":25632},"Bei ",{"type":21,"tag":2097,"props":25634,"children":25636},{"className":25635},[],[25637],{"type":26,"value":4850},{"type":26,"value":25639}," Parametern kostet Parameter-Shift ",{"type":21,"tag":2097,"props":25641,"children":25643},{"className":25642},[],[25644],{"type":26,"value":25645},"2n",{"type":26,"value":25647}," Auswertungen pro Gradientenschritt. Verwenden Sie gradientenfreie Optimierer (COBYLA, SPSA, Nelder-Mead), wenn ",{"type":21,"tag":2097,"props":25649,"children":25651},{"className":25650},[],[25652],{"type":26,"value":4850},{"type":26,"value":25654}," groß ist.",{"type":21,"tag":29,"props":25656,"children":25658},{"id":25657},"technik-4-spsa-stochastische-gradientenschätzung",[25659],{"type":26,"value":25660},"Technik 4: SPSA — Stochastische Gradientenschätzung",{"type":21,"tag":22,"props":25662,"children":25663},{},[25664,25666,25671],{"type":26,"value":25665},"Simultaneous Perturbation Stochastic Approximation (SPSA) schätzt den vollständigen Gradienten mit nur ",{"type":21,"tag":205,"props":25667,"children":25668},{},[25669],{"type":26,"value":25670},"2 Schaltkreisauswertungen",{"type":26,"value":25672}," unabhängig von der Anzahl der Parameter, indem alle Parameter gleichzeitig gestört werden:",{"type":21,"tag":2328,"props":25674,"children":25676},{"className":3207,"code":25675,"language":3209,"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",[25677],{"type":21,"tag":2097,"props":25678,"children":25679},{"__ignoreMap":7},[25680,25700,25707,25715,25723,25791,25798,25806,25814],{"type":21,"tag":2338,"props":25681,"children":25682},{"class":2340,"line":2341},[25683,25687,25691,25695],{"type":21,"tag":2338,"props":25684,"children":25685},{"style":3219},[25686],{"type":26,"value":3222},{"type":21,"tag":2338,"props":25688,"children":25689},{"style":2345},[25690],{"type":26,"value":22501},{"type":21,"tag":2338,"props":25692,"children":25693},{"style":3219},[25694],{"type":26,"value":3232},{"type":21,"tag":2338,"props":25696,"children":25697},{"style":2363},[25698],{"type":26,"value":25699}," SPSA\n",{"type":21,"tag":2338,"props":25701,"children":25702},{"class":2340,"line":173},[25703],{"type":21,"tag":2338,"props":25704,"children":25705},{"emptyLinePlaceholder":3243},[25706],{"type":26,"value":3246},{"type":21,"tag":2338,"props":25708,"children":25709},{"class":2340,"line":2359},[25710],{"type":21,"tag":2338,"props":25711,"children":25712},{"style":3469},[25713],{"type":26,"value":25714},"# SPSA: 2 evaluations per step regardless of parameter count\n",{"type":21,"tag":2338,"props":25716,"children":25717},{"class":2340,"line":2421},[25718],{"type":21,"tag":2338,"props":25719,"children":25720},{"style":3469},[25721],{"type":26,"value":25722},"# vs parameter-shift: 2n evaluations per step\n",{"type":21,"tag":2338,"props":25724,"children":25725},{"class":2340,"line":2445},[25726,25731,25735,25740,25744,25748,25753,25757,25762,25766,25770,25774,25779,25783,25787],{"type":21,"tag":2338,"props":25727,"children":25728},{"style":2345},[25729],{"type":26,"value":25730},"optimizer ",{"type":21,"tag":2338,"props":25732,"children":25733},{"style":3219},[25734],{"type":26,"value":3259},{"type":21,"tag":2338,"props":25736,"children":25737},{"style":2345},[25738],{"type":26,"value":25739}," SPSA(",{"type":21,"tag":2338,"props":25741,"children":25742},{"style":3284},[25743],{"type":26,"value":2626},{"type":21,"tag":2338,"props":25745,"children":25746},{"style":3219},[25747],{"type":26,"value":3259},{"type":21,"tag":2338,"props":25749,"children":25750},{"style":2363},[25751],{"type":26,"value":25752},"300",{"type":21,"tag":2338,"props":25754,"children":25755},{"style":2345},[25756],{"type":26,"value":1375},{"type":21,"tag":2338,"props":25758,"children":25759},{"style":3284},[25760],{"type":26,"value":25761},"learning_rate",{"type":21,"tag":2338,"props":25763,"children":25764},{"style":3219},[25765],{"type":26,"value":3259},{"type":21,"tag":2338,"props":25767,"children":25768},{"style":2363},[25769],{"type":26,"value":14893},{"type":21,"tag":2338,"props":25771,"children":25772},{"style":2345},[25773],{"type":26,"value":1375},{"type":21,"tag":2338,"props":25775,"children":25776},{"style":3284},[25777],{"type":26,"value":25778},"perturbation",{"type":21,"tag":2338,"props":25780,"children":25781},{"style":3219},[25782],{"type":26,"value":3259},{"type":21,"tag":2338,"props":25784,"children":25785},{"style":2363},[25786],{"type":26,"value":4430},{"type":21,"tag":2338,"props":25788,"children":25789},{"style":2345},[25790],{"type":26,"value":3319},{"type":21,"tag":2338,"props":25792,"children":25793},{"class":2340,"line":877},[25794],{"type":21,"tag":2338,"props":25795,"children":25796},{"emptyLinePlaceholder":3243},[25797],{"type":26,"value":3246},{"type":21,"tag":2338,"props":25799,"children":25800},{"class":2340,"line":196},[25801],{"type":21,"tag":2338,"props":25802,"children":25803},{"style":3469},[25804],{"type":26,"value":25805},"# For 10 parameters:\n",{"type":21,"tag":2338,"props":25807,"children":25808},{"class":2340,"line":951},[25809],{"type":21,"tag":2338,"props":25810,"children":25811},{"style":3469},[25812],{"type":26,"value":25813},"# - Parameter shift: 2×10 = 20 evals\u002Fstep × 300 steps = 6,000 total\n",{"type":21,"tag":2338,"props":25815,"children":25816},{"class":2340,"line":16},[25817],{"type":21,"tag":2338,"props":25818,"children":25819},{"style":3469},[25820],{"type":26,"value":25821},"# - SPSA: 2 evals\u002Fstep × 300 steps = 600 total  ← 10x reduction\n",{"type":21,"tag":22,"props":25823,"children":25824},{},[25825,25830],{"type":21,"tag":205,"props":25826,"children":25827},{},[25828],{"type":26,"value":25829},"Am besten geeignet, wenn:",{"type":26,"value":25831}," der Schaltkreis viele Parameter hat (> 10). Der Kompromiss ist eine langsamere Konvergenz pro Schritt, aber insgesamt weniger Shots.",{"type":21,"tag":29,"props":25833,"children":25835},{"id":25834},"technik-5-vorzeitiger-abbruch-varianzschwellenwert",[25836],{"type":26,"value":25837},"Technik 5: Vorzeitiger Abbruch + Varianzschwellenwert",{"type":21,"tag":22,"props":25839,"children":25840},{},[25841],{"type":26,"value":25842},"Führen Sie Schaltkreise nicht bis zum Ende aus, wenn das Ergebnis bereits gut genug ist:",{"type":21,"tag":2328,"props":25844,"children":25846},{"className":3207,"code":25845,"language":3209,"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",[25847],{"type":21,"tag":2097,"props":25848,"children":25849},{"__ignoreMap":7},[25850,25870,25889,25896,25928,25944,25974,25981,26005,26021,26028,26036,26068,26104,26144,26152,26159],{"type":21,"tag":2338,"props":25851,"children":25852},{"class":2340,"line":2341},[25853,25857,25861,25865],{"type":21,"tag":2338,"props":25854,"children":25855},{"style":3219},[25856],{"type":26,"value":3222},{"type":21,"tag":2338,"props":25858,"children":25859},{"style":2345},[25860],{"type":26,"value":25092},{"type":21,"tag":2338,"props":25862,"children":25863},{"style":3219},[25864],{"type":26,"value":3232},{"type":21,"tag":2338,"props":25866,"children":25867},{"style":2345},[25868],{"type":26,"value":25869}," AdamOptimizer\n",{"type":21,"tag":2338,"props":25871,"children":25872},{"class":2340,"line":173},[25873,25877,25881,25885],{"type":21,"tag":2338,"props":25874,"children":25875},{"style":3219},[25876],{"type":26,"value":3232},{"type":21,"tag":2338,"props":25878,"children":25879},{"style":2345},[25880],{"type":26,"value":4294},{"type":21,"tag":2338,"props":25882,"children":25883},{"style":3219},[25884],{"type":26,"value":4299},{"type":21,"tag":2338,"props":25886,"children":25887},{"style":2345},[25888],{"type":26,"value":4304},{"type":21,"tag":2338,"props":25890,"children":25891},{"class":2340,"line":2359},[25892],{"type":21,"tag":2338,"props":25893,"children":25894},{"emptyLinePlaceholder":3243},[25895],{"type":26,"value":3246},{"type":21,"tag":2338,"props":25897,"children":25898},{"class":2340,"line":2421},[25899,25903,25907,25912,25916,25920,25924],{"type":21,"tag":2338,"props":25900,"children":25901},{"style":2345},[25902],{"type":26,"value":14972},{"type":21,"tag":2338,"props":25904,"children":25905},{"style":3219},[25906],{"type":26,"value":3259},{"type":21,"tag":2338,"props":25908,"children":25909},{"style":2345},[25910],{"type":26,"value":25911}," AdamOptimizer(",{"type":21,"tag":2338,"props":25913,"children":25914},{"style":3284},[25915],{"type":26,"value":14986},{"type":21,"tag":2338,"props":25917,"children":25918},{"style":3219},[25919],{"type":26,"value":3259},{"type":21,"tag":2338,"props":25921,"children":25922},{"style":2363},[25923],{"type":26,"value":4416},{"type":21,"tag":2338,"props":25925,"children":25926},{"style":2345},[25927],{"type":26,"value":3319},{"type":21,"tag":2338,"props":25929,"children":25930},{"class":2340,"line":2445},[25931,25935,25939],{"type":21,"tag":2338,"props":25932,"children":25933},{"style":2345},[25934],{"type":26,"value":25272},{"type":21,"tag":2338,"props":25936,"children":25937},{"style":3219},[25938],{"type":26,"value":3259},{"type":21,"tag":2338,"props":25940,"children":25941},{"style":2345},[25942],{"type":26,"value":25943}," init_params.copy()\n",{"type":21,"tag":2338,"props":25945,"children":25946},{"class":2340,"line":877},[25947,25952,25956,25961,25965,25970],{"type":21,"tag":2338,"props":25948,"children":25949},{"style":2345},[25950],{"type":26,"value":25951},"prev_energy ",{"type":21,"tag":2338,"props":25953,"children":25954},{"style":3219},[25955],{"type":26,"value":3259},{"type":21,"tag":2338,"props":25957,"children":25958},{"style":2363},[25959],{"type":26,"value":25960}," float",{"type":21,"tag":2338,"props":25962,"children":25963},{"style":2345},[25964],{"type":26,"value":3339},{"type":21,"tag":2338,"props":25966,"children":25967},{"style":2374},[25968],{"type":26,"value":25969},"'inf'",{"type":21,"tag":2338,"props":25971,"children":25972},{"style":2345},[25973],{"type":26,"value":3319},{"type":21,"tag":2338,"props":25975,"children":25976},{"class":2340,"line":196},[25977],{"type":21,"tag":2338,"props":25978,"children":25979},{"emptyLinePlaceholder":3243},[25980],{"type":26,"value":3246},{"type":21,"tag":2338,"props":25982,"children":25983},{"class":2340,"line":951},[25984,25988,25992,25996,26000],{"type":21,"tag":2338,"props":25985,"children":25986},{"style":3219},[25987],{"type":26,"value":3512},{"type":21,"tag":2338,"props":25989,"children":25990},{"style":2345},[25991],{"type":26,"value":15034},{"type":21,"tag":2338,"props":25993,"children":25994},{"style":3219},[25995],{"type":26,"value":3522},{"type":21,"tag":2338,"props":25997,"children":25998},{"style":2363},[25999],{"type":26,"value":3527},{"type":21,"tag":2338,"props":26001,"children":26002},{"style":2345},[26003],{"type":26,"value":26004},"(max_steps):\n",{"type":21,"tag":2338,"props":26006,"children":26007},{"class":2340,"line":16},[26008,26013,26017],{"type":21,"tag":2338,"props":26009,"children":26010},{"style":2345},[26011],{"type":26,"value":26012},"    params, energy ",{"type":21,"tag":2338,"props":26014,"children":26015},{"style":3219},[26016],{"type":26,"value":3259},{"type":21,"tag":2338,"props":26018,"children":26019},{"style":2345},[26020],{"type":26,"value":25339},{"type":21,"tag":2338,"props":26022,"children":26023},{"class":2340,"line":3465},[26024],{"type":21,"tag":2338,"props":26025,"children":26026},{"emptyLinePlaceholder":3243},[26027],{"type":26,"value":3246},{"type":21,"tag":2338,"props":26029,"children":26030},{"class":2340,"line":3475},[26031],{"type":21,"tag":2338,"props":26032,"children":26033},{"style":3469},[26034],{"type":26,"value":26035},"    # Stop when change is below shot-noise floor\n",{"type":21,"tag":2338,"props":26037,"children":26038},{"class":2340,"line":500},[26039,26044,26048,26053,26058,26063],{"type":21,"tag":2338,"props":26040,"children":26041},{"style":2345},[26042],{"type":26,"value":26043},"    variance ",{"type":21,"tag":2338,"props":26045,"children":26046},{"style":3219},[26047],{"type":26,"value":3259},{"type":21,"tag":2338,"props":26049,"children":26050},{"style":2363},[26051],{"type":26,"value":26052}," 1.0",{"type":21,"tag":2338,"props":26054,"children":26055},{"style":3219},[26056],{"type":26,"value":26057}," \u002F",{"type":21,"tag":2338,"props":26059,"children":26060},{"style":2345},[26061],{"type":26,"value":26062}," np.sqrt(shots_per_eval)  ",{"type":21,"tag":2338,"props":26064,"children":26065},{"style":3469},[26066],{"type":26,"value":26067},"# shot noise floor\n",{"type":21,"tag":2338,"props":26069,"children":26070},{"class":2340,"line":3535},[26071,26075,26080,26085,26089,26094,26099],{"type":21,"tag":2338,"props":26072,"children":26073},{"style":3219},[26074],{"type":26,"value":11967},{"type":21,"tag":2338,"props":26076,"children":26077},{"style":2363},[26078],{"type":26,"value":26079}," abs",{"type":21,"tag":2338,"props":26081,"children":26082},{"style":2345},[26083],{"type":26,"value":26084},"(energy ",{"type":21,"tag":2338,"props":26086,"children":26087},{"style":3219},[26088],{"type":26,"value":4869},{"type":21,"tag":2338,"props":26090,"children":26091},{"style":2345},[26092],{"type":26,"value":26093}," prev_energy) ",{"type":21,"tag":2338,"props":26095,"children":26096},{"style":3219},[26097],{"type":26,"value":26098},"\u003C",{"type":21,"tag":2338,"props":26100,"children":26101},{"style":2345},[26102],{"type":26,"value":26103}," variance:\n",{"type":21,"tag":2338,"props":26105,"children":26106},{"class":2340,"line":3583},[26107,26111,26115,26119,26124,26128,26132,26136,26140],{"type":21,"tag":2338,"props":26108,"children":26109},{"style":2363},[26110],{"type":26,"value":12913},{"type":21,"tag":2338,"props":26112,"children":26113},{"style":2345},[26114],{"type":26,"value":3339},{"type":21,"tag":2338,"props":26116,"children":26117},{"style":3219},[26118],{"type":26,"value":3344},{"type":21,"tag":2338,"props":26120,"children":26121},{"style":2374},[26122],{"type":26,"value":26123},"\"Converged at step ",{"type":21,"tag":2338,"props":26125,"children":26126},{"style":2363},[26127],{"type":26,"value":3354},{"type":21,"tag":2338,"props":26129,"children":26130},{"style":2345},[26131],{"type":26,"value":15260},{"type":21,"tag":2338,"props":26133,"children":26134},{"style":2363},[26135],{"type":26,"value":3364},{"type":21,"tag":2338,"props":26137,"children":26138},{"style":2374},[26139],{"type":26,"value":3369},{"type":21,"tag":2338,"props":26141,"children":26142},{"style":2345},[26143],{"type":26,"value":3319},{"type":21,"tag":2338,"props":26145,"children":26146},{"class":2340,"line":3625},[26147],{"type":21,"tag":2338,"props":26148,"children":26149},{"style":3219},[26150],{"type":26,"value":26151},"        break\n",{"type":21,"tag":2338,"props":26153,"children":26154},{"class":2340,"line":4652},[26155],{"type":21,"tag":2338,"props":26156,"children":26157},{"emptyLinePlaceholder":3243},[26158],{"type":26,"value":3246},{"type":21,"tag":2338,"props":26160,"children":26161},{"class":2340,"line":4671},[26162,26167,26171],{"type":21,"tag":2338,"props":26163,"children":26164},{"style":2345},[26165],{"type":26,"value":26166},"    prev_energy ",{"type":21,"tag":2338,"props":26168,"children":26169},{"style":3219},[26170],{"type":26,"value":3259},{"type":21,"tag":2338,"props":26172,"children":26173},{"style":2345},[26174],{"type":26,"value":26175}," energy\n",{"type":21,"tag":22,"props":26177,"children":26178},{},[26179],{"type":26,"value":26180},"Viele VQE-Läufe erreichen früh ein Plateau — eine Fortsetzung verschwendet nur Shots auf Rauschfluktuationen.",{"type":21,"tag":29,"props":26182,"children":26184},{"id":26183},"technik-6-warmstart",[26185],{"type":26,"value":26186},"Technik 6: Warmstart",{"type":21,"tag":22,"props":26188,"children":26189},{},[26190],{"type":26,"value":26191},"Initialisieren Sie QAOA- oder VQE-Parameter aus einer verwandten klassischen Lösung statt zufällig:",{"type":21,"tag":2328,"props":26193,"children":26195},{"className":3207,"code":26194,"language":3209,"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",[26196],{"type":21,"tag":2097,"props":26197,"children":26198},{"__ignoreMap":7},[26199,26207,26228,26235,26252,26269,26276,26284,26292,26321,26350,26357],{"type":21,"tag":2338,"props":26200,"children":26201},{"class":2340,"line":2341},[26202],{"type":21,"tag":2338,"props":26203,"children":26204},{"style":3469},[26205],{"type":26,"value":26206},"# For QAOA on Max-Cut: warm start from a greedy classical solution\n",{"type":21,"tag":2338,"props":26208,"children":26209},{"class":2340,"line":173},[26210,26214,26219,26223],{"type":21,"tag":2338,"props":26211,"children":26212},{"style":3219},[26213],{"type":26,"value":3232},{"type":21,"tag":2338,"props":26215,"children":26216},{"style":2345},[26217],{"type":26,"value":26218}," networkx ",{"type":21,"tag":2338,"props":26220,"children":26221},{"style":3219},[26222],{"type":26,"value":4299},{"type":21,"tag":2338,"props":26224,"children":26225},{"style":2345},[26226],{"type":26,"value":26227}," nx\n",{"type":21,"tag":2338,"props":26229,"children":26230},{"class":2340,"line":2359},[26231],{"type":21,"tag":2338,"props":26232,"children":26233},{"emptyLinePlaceholder":3243},[26234],{"type":26,"value":3246},{"type":21,"tag":2338,"props":26236,"children":26237},{"class":2340,"line":2421},[26238,26243,26247],{"type":21,"tag":2338,"props":26239,"children":26240},{"style":2345},[26241],{"type":26,"value":26242},"G ",{"type":21,"tag":2338,"props":26244,"children":26245},{"style":3219},[26246],{"type":26,"value":3259},{"type":21,"tag":2338,"props":26248,"children":26249},{"style":2345},[26250],{"type":26,"value":26251}," nx.from_edgelist(edges)\n",{"type":21,"tag":2338,"props":26253,"children":26254},{"class":2340,"line":2445},[26255,26260,26264],{"type":21,"tag":2338,"props":26256,"children":26257},{"style":2345},[26258],{"type":26,"value":26259},"classical_cut ",{"type":21,"tag":2338,"props":26261,"children":26262},{"style":3219},[26263],{"type":26,"value":3259},{"type":21,"tag":2338,"props":26265,"children":26266},{"style":2345},[26267],{"type":26,"value":26268}," nx.algorithms.approximation.one_exchange(G)\n",{"type":21,"tag":2338,"props":26270,"children":26271},{"class":2340,"line":877},[26272],{"type":21,"tag":2338,"props":26273,"children":26274},{"emptyLinePlaceholder":3243},[26275],{"type":26,"value":3246},{"type":21,"tag":2338,"props":26277,"children":26278},{"class":2340,"line":196},[26279],{"type":21,"tag":2338,"props":26280,"children":26281},{"style":3469},[26282],{"type":26,"value":26283},"# Map classical solution to initial QAOA angles\n",{"type":21,"tag":2338,"props":26285,"children":26286},{"class":2340,"line":951},[26287],{"type":21,"tag":2338,"props":26288,"children":26289},{"style":3469},[26290],{"type":26,"value":26291},"# γ₀ ≈ π\u002F4 for a good cut, β₀ ≈ π\u002F8\n",{"type":21,"tag":2338,"props":26293,"children":26294},{"class":2340,"line":16},[26295,26300,26304,26309,26313,26317],{"type":21,"tag":2338,"props":26296,"children":26297},{"style":2345},[26298],{"type":26,"value":26299},"init_gamma ",{"type":21,"tag":2338,"props":26301,"children":26302},{"style":3219},[26303],{"type":26,"value":3259},{"type":21,"tag":2338,"props":26305,"children":26306},{"style":2345},[26307],{"type":26,"value":26308}," [np.pi ",{"type":21,"tag":2338,"props":26310,"children":26311},{"style":3219},[26312],{"type":26,"value":2192},{"type":21,"tag":2338,"props":26314,"children":26315},{"style":2363},[26316],{"type":26,"value":8361},{"type":21,"tag":2338,"props":26318,"children":26319},{"style":2345},[26320],{"type":26,"value":6708},{"type":21,"tag":2338,"props":26322,"children":26323},{"class":2340,"line":3465},[26324,26329,26333,26337,26341,26346],{"type":21,"tag":2338,"props":26325,"children":26326},{"style":2345},[26327],{"type":26,"value":26328},"init_beta ",{"type":21,"tag":2338,"props":26330,"children":26331},{"style":3219},[26332],{"type":26,"value":3259},{"type":21,"tag":2338,"props":26334,"children":26335},{"style":2345},[26336],{"type":26,"value":26308},{"type":21,"tag":2338,"props":26338,"children":26339},{"style":3219},[26340],{"type":26,"value":2192},{"type":21,"tag":2338,"props":26342,"children":26343},{"style":2363},[26344],{"type":26,"value":26345}," 8",{"type":21,"tag":2338,"props":26347,"children":26348},{"style":2345},[26349],{"type":26,"value":6708},{"type":21,"tag":2338,"props":26351,"children":26352},{"class":2340,"line":3475},[26353],{"type":21,"tag":2338,"props":26354,"children":26355},{"emptyLinePlaceholder":3243},[26356],{"type":26,"value":3246},{"type":21,"tag":2338,"props":26358,"children":26359},{"class":2340,"line":500},[26360],{"type":21,"tag":2338,"props":26361,"children":26362},{"style":3469},[26363],{"type":26,"value":26364},"# Warm-started QAOA typically converges in 30-50% fewer iterations\n",{"type":21,"tag":29,"props":26366,"children":26368},{"id":26367},"alles-kombinieren-eine-praktische-vqe-vorlage",[26369],{"type":26,"value":26370},"Alles kombinieren: Eine praktische VQE-Vorlage",{"type":21,"tag":2328,"props":26372,"children":26374},{"className":3207,"code":26373,"language":3209,"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",[26375],{"type":21,"tag":2097,"props":26376,"children":26377},{"__ignoreMap":7},[26378,26397,26416,26436,26443,26496,26503,26511,26537,26544,26571,26587,26595,26619,26640,26676,26709,26721,26728,26736,26768,26775,26783,26799,26806,26814,26845,26862,26874,26881,26888],{"type":21,"tag":2338,"props":26379,"children":26380},{"class":2340,"line":2341},[26381,26385,26389,26393],{"type":21,"tag":2338,"props":26382,"children":26383},{"style":3219},[26384],{"type":26,"value":3232},{"type":21,"tag":2338,"props":26386,"children":26387},{"style":2345},[26388],{"type":26,"value":14113},{"type":21,"tag":2338,"props":26390,"children":26391},{"style":3219},[26392],{"type":26,"value":4299},{"type":21,"tag":2338,"props":26394,"children":26395},{"style":2345},[26396],{"type":26,"value":14122},{"type":21,"tag":2338,"props":26398,"children":26399},{"class":2340,"line":173},[26400,26404,26408,26412],{"type":21,"tag":2338,"props":26401,"children":26402},{"style":3219},[26403],{"type":26,"value":3232},{"type":21,"tag":2338,"props":26405,"children":26406},{"style":2345},[26407],{"type":26,"value":4294},{"type":21,"tag":2338,"props":26409,"children":26410},{"style":3219},[26411],{"type":26,"value":4299},{"type":21,"tag":2338,"props":26413,"children":26414},{"style":2345},[26415],{"type":26,"value":4304},{"type":21,"tag":2338,"props":26417,"children":26418},{"class":2340,"line":2359},[26419,26423,26427,26431],{"type":21,"tag":2338,"props":26420,"children":26421},{"style":3219},[26422],{"type":26,"value":3222},{"type":21,"tag":2338,"props":26424,"children":26425},{"style":2345},[26426],{"type":26,"value":25092},{"type":21,"tag":2338,"props":26428,"children":26429},{"style":3219},[26430],{"type":26,"value":3232},{"type":21,"tag":2338,"props":26432,"children":26433},{"style":2345},[26434],{"type":26,"value":26435}," ShotAdaptiveOptimizer\n",{"type":21,"tag":2338,"props":26437,"children":26438},{"class":2340,"line":2421},[26439],{"type":21,"tag":2338,"props":26440,"children":26441},{"emptyLinePlaceholder":3243},[26442],{"type":26,"value":3246},{"type":21,"tag":2338,"props":26444,"children":26445},{"class":2340,"line":2445},[26446,26450,26454,26458,26462,26466,26470,26474,26479,26483,26487,26492],{"type":21,"tag":2338,"props":26447,"children":26448},{"style":2345},[26449],{"type":26,"value":14246},{"type":21,"tag":2338,"props":26451,"children":26452},{"style":3219},[26453],{"type":26,"value":3259},{"type":21,"tag":2338,"props":26455,"children":26456},{"style":2345},[26457],{"type":26,"value":14255},{"type":21,"tag":2338,"props":26459,"children":26460},{"style":2374},[26461],{"type":26,"value":14260},{"type":21,"tag":2338,"props":26463,"children":26464},{"style":2345},[26465],{"type":26,"value":1375},{"type":21,"tag":2338,"props":26467,"children":26468},{"style":3284},[26469],{"type":26,"value":14269},{"type":21,"tag":2338,"props":26471,"children":26472},{"style":3219},[26473],{"type":26,"value":3259},{"type":21,"tag":2338,"props":26475,"children":26476},{"style":2345},[26477],{"type":26,"value":26478},"n_qubits, ",{"type":21,"tag":2338,"props":26480,"children":26481},{"style":3284},[26482],{"type":26,"value":4144},{"type":21,"tag":2338,"props":26484,"children":26485},{"style":3219},[26486],{"type":26,"value":3259},{"type":21,"tag":2338,"props":26488,"children":26489},{"style":2363},[26490],{"type":26,"value":26491},"512",{"type":21,"tag":2338,"props":26493,"children":26494},{"style":2345},[26495],{"type":26,"value":3319},{"type":21,"tag":2338,"props":26497,"children":26498},{"class":2340,"line":877},[26499],{"type":21,"tag":2338,"props":26500,"children":26501},{"emptyLinePlaceholder":3243},[26502],{"type":26,"value":3246},{"type":21,"tag":2338,"props":26504,"children":26505},{"class":2340,"line":196},[26506],{"type":21,"tag":2338,"props":26507,"children":26508},{"style":3469},[26509],{"type":26,"value":26510},"# 1. Group commuting terms (5-10x reduction in circuit count)\n",{"type":21,"tag":2338,"props":26512,"children":26513},{"class":2340,"line":951},[26514,26519,26523,26528,26532],{"type":21,"tag":2338,"props":26515,"children":26516},{"style":2345},[26517],{"type":26,"value":26518},"grouped_H ",{"type":21,"tag":2338,"props":26520,"children":26521},{"style":3219},[26522],{"type":26,"value":3259},{"type":21,"tag":2338,"props":26524,"children":26525},{"style":2345},[26526],{"type":26,"value":26527}," qml.Hamiltonian(",{"type":21,"tag":2338,"props":26529,"children":26530},{"style":3219},[26531],{"type":26,"value":6414},{"type":21,"tag":2338,"props":26533,"children":26534},{"style":2345},[26535],{"type":26,"value":26536},"qml.grouping.group_observables(H))\n",{"type":21,"tag":2338,"props":26538,"children":26539},{"class":2340,"line":16},[26540],{"type":21,"tag":2338,"props":26541,"children":26542},{"emptyLinePlaceholder":3243},[26543],{"type":26,"value":3246},{"type":21,"tag":2338,"props":26545,"children":26546},{"class":2340,"line":3465},[26547,26551,26555,26559,26563,26567],{"type":21,"tag":2338,"props":26548,"children":26549},{"style":4385},[26550],{"type":26,"value":14293},{"type":21,"tag":2338,"props":26552,"children":26553},{"style":2345},[26554],{"type":26,"value":25461},{"type":21,"tag":2338,"props":26556,"children":26557},{"style":3284},[26558],{"type":26,"value":25466},{"type":21,"tag":2338,"props":26560,"children":26561},{"style":3219},[26562],{"type":26,"value":3259},{"type":21,"tag":2338,"props":26564,"children":26565},{"style":2374},[26566],{"type":26,"value":25475},{"type":21,"tag":2338,"props":26568,"children":26569},{"style":2345},[26570],{"type":26,"value":3319},{"type":21,"tag":2338,"props":26572,"children":26573},{"class":2340,"line":3475},[26574,26578,26583],{"type":21,"tag":2338,"props":26575,"children":26576},{"style":3219},[26577],{"type":26,"value":4382},{"type":21,"tag":2338,"props":26579,"children":26580},{"style":4385},[26581],{"type":26,"value":26582}," ansatz",{"type":21,"tag":2338,"props":26584,"children":26585},{"style":2345},[26586],{"type":26,"value":25181},{"type":21,"tag":2338,"props":26588,"children":26589},{"class":2340,"line":500},[26590],{"type":21,"tag":2338,"props":26591,"children":26592},{"style":3469},[26593],{"type":26,"value":26594},"    # Hardware-efficient ansatz\n",{"type":21,"tag":2338,"props":26596,"children":26597},{"class":2340,"line":3535},[26598,26602,26606,26610,26614],{"type":21,"tag":2338,"props":26599,"children":26600},{"style":3219},[26601],{"type":26,"value":4761},{"type":21,"tag":2338,"props":26603,"children":26604},{"style":2345},[26605],{"type":26,"value":4766},{"type":21,"tag":2338,"props":26607,"children":26608},{"style":3219},[26609],{"type":26,"value":3522},{"type":21,"tag":2338,"props":26611,"children":26612},{"style":2363},[26613],{"type":26,"value":3527},{"type":21,"tag":2338,"props":26615,"children":26616},{"style":2345},[26617],{"type":26,"value":26618},"(n_qubits):\n",{"type":21,"tag":2338,"props":26620,"children":26621},{"class":2340,"line":3583},[26622,26627,26631,26635],{"type":21,"tag":2338,"props":26623,"children":26624},{"style":2345},[26625],{"type":26,"value":26626},"        qml.RY(params[i], ",{"type":21,"tag":2338,"props":26628,"children":26629},{"style":3284},[26630],{"type":26,"value":14269},{"type":21,"tag":2338,"props":26632,"children":26633},{"style":3219},[26634],{"type":26,"value":3259},{"type":21,"tag":2338,"props":26636,"children":26637},{"style":2345},[26638],{"type":26,"value":26639},"i)\n",{"type":21,"tag":2338,"props":26641,"children":26642},{"class":2340,"line":3625},[26643,26647,26651,26655,26659,26664,26668,26672],{"type":21,"tag":2338,"props":26644,"children":26645},{"style":3219},[26646],{"type":26,"value":4761},{"type":21,"tag":2338,"props":26648,"children":26649},{"style":2345},[26650],{"type":26,"value":4766},{"type":21,"tag":2338,"props":26652,"children":26653},{"style":3219},[26654],{"type":26,"value":3522},{"type":21,"tag":2338,"props":26656,"children":26657},{"style":2363},[26658],{"type":26,"value":3527},{"type":21,"tag":2338,"props":26660,"children":26661},{"style":2345},[26662],{"type":26,"value":26663},"(n_qubits ",{"type":21,"tag":2338,"props":26665,"children":26666},{"style":3219},[26667],{"type":26,"value":4869},{"type":21,"tag":2338,"props":26669,"children":26670},{"style":2363},[26671],{"type":26,"value":6120},{"type":21,"tag":2338,"props":26673,"children":26674},{"style":2345},[26675],{"type":26,"value":4435},{"type":21,"tag":2338,"props":26677,"children":26678},{"class":2340,"line":4652},[26679,26684,26688,26692,26697,26701,26705],{"type":21,"tag":2338,"props":26680,"children":26681},{"style":2345},[26682],{"type":26,"value":26683},"        qml.CNOT(",{"type":21,"tag":2338,"props":26685,"children":26686},{"style":3284},[26687],{"type":26,"value":14269},{"type":21,"tag":2338,"props":26689,"children":26690},{"style":3219},[26691],{"type":26,"value":3259},{"type":21,"tag":2338,"props":26693,"children":26694},{"style":2345},[26695],{"type":26,"value":26696},"[i, i ",{"type":21,"tag":2338,"props":26698,"children":26699},{"style":3219},[26700],{"type":26,"value":6549},{"type":21,"tag":2338,"props":26702,"children":26703},{"style":2363},[26704],{"type":26,"value":6120},{"type":21,"tag":2338,"props":26706,"children":26707},{"style":2345},[26708],{"type":26,"value":3580},{"type":21,"tag":2338,"props":26710,"children":26711},{"class":2340,"line":4671},[26712,26716],{"type":21,"tag":2338,"props":26713,"children":26714},{"style":3219},[26715],{"type":26,"value":4607},{"type":21,"tag":2338,"props":26717,"children":26718},{"style":2345},[26719],{"type":26,"value":26720}," qml.expval(grouped_H)\n",{"type":21,"tag":2338,"props":26722,"children":26723},{"class":2340,"line":4679},[26724],{"type":21,"tag":2338,"props":26725,"children":26726},{"emptyLinePlaceholder":3243},[26727],{"type":26,"value":3246},{"type":21,"tag":2338,"props":26729,"children":26730},{"class":2340,"line":4710},[26731],{"type":21,"tag":2338,"props":26732,"children":26733},{"style":3469},[26734],{"type":26,"value":26735},"# 2. Use shot-adaptive optimizer\n",{"type":21,"tag":2338,"props":26737,"children":26738},{"class":2340,"line":4755},[26739,26743,26747,26751,26755,26759,26764],{"type":21,"tag":2338,"props":26740,"children":26741},{"style":2345},[26742],{"type":26,"value":14972},{"type":21,"tag":2338,"props":26744,"children":26745},{"style":3219},[26746],{"type":26,"value":3259},{"type":21,"tag":2338,"props":26748,"children":26749},{"style":2345},[26750],{"type":26,"value":25240},{"type":21,"tag":2338,"props":26752,"children":26753},{"style":3284},[26754],{"type":26,"value":25245},{"type":21,"tag":2338,"props":26756,"children":26757},{"style":3219},[26758],{"type":26,"value":3259},{"type":21,"tag":2338,"props":26760,"children":26761},{"style":2363},[26762],{"type":26,"value":26763},"50",{"type":21,"tag":2338,"props":26765,"children":26766},{"style":2345},[26767],{"type":26,"value":3319},{"type":21,"tag":2338,"props":26769,"children":26770},{"class":2340,"line":4794},[26771],{"type":21,"tag":2338,"props":26772,"children":26773},{"emptyLinePlaceholder":3243},[26774],{"type":26,"value":3246},{"type":21,"tag":2338,"props":26776,"children":26777},{"class":2340,"line":4812},[26778],{"type":21,"tag":2338,"props":26779,"children":26780},{"style":3469},[26781],{"type":26,"value":26782},"# 3. Warm start\n",{"type":21,"tag":2338,"props":26784,"children":26785},{"class":2340,"line":4886},[26786,26790,26794],{"type":21,"tag":2338,"props":26787,"children":26788},{"style":2345},[26789],{"type":26,"value":25272},{"type":21,"tag":2338,"props":26791,"children":26792},{"style":3219},[26793],{"type":26,"value":3259},{"type":21,"tag":2338,"props":26795,"children":26796},{"style":2345},[26797],{"type":26,"value":26798}," warm_start_params(H)\n",{"type":21,"tag":2338,"props":26800,"children":26801},{"class":2340,"line":4914},[26802],{"type":21,"tag":2338,"props":26803,"children":26804},{"emptyLinePlaceholder":3243},[26805],{"type":26,"value":3246},{"type":21,"tag":2338,"props":26807,"children":26808},{"class":2340,"line":4943},[26809],{"type":21,"tag":2338,"props":26810,"children":26811},{"style":3469},[26812],{"type":26,"value":26813},"# 4. Run with early stopping\n",{"type":21,"tag":2338,"props":26815,"children":26816},{"class":2340,"line":4952},[26817,26821,26825,26829,26833,26837,26841],{"type":21,"tag":2338,"props":26818,"children":26819},{"style":3219},[26820],{"type":26,"value":3512},{"type":21,"tag":2338,"props":26822,"children":26823},{"style":2345},[26824],{"type":26,"value":15034},{"type":21,"tag":2338,"props":26826,"children":26827},{"style":3219},[26828],{"type":26,"value":3522},{"type":21,"tag":2338,"props":26830,"children":26831},{"style":2363},[26832],{"type":26,"value":3527},{"type":21,"tag":2338,"props":26834,"children":26835},{"style":2345},[26836],{"type":26,"value":3339},{"type":21,"tag":2338,"props":26838,"children":26839},{"style":2363},[26840],{"type":26,"value":25752},{"type":21,"tag":2338,"props":26842,"children":26843},{"style":2345},[26844],{"type":26,"value":4435},{"type":21,"tag":2338,"props":26846,"children":26847},{"class":2340,"line":4980},[26848,26853,26857],{"type":21,"tag":2338,"props":26849,"children":26850},{"style":2345},[26851],{"type":26,"value":26852},"    params, energy, shots ",{"type":21,"tag":2338,"props":26854,"children":26855},{"style":3219},[26856],{"type":26,"value":3259},{"type":21,"tag":2338,"props":26858,"children":26859},{"style":2345},[26860],{"type":26,"value":26861}," opt.step_and_cost(ansatz, params)\n",{"type":21,"tag":2338,"props":26863,"children":26864},{"class":2340,"line":5011},[26865,26869],{"type":21,"tag":2338,"props":26866,"children":26867},{"style":3219},[26868],{"type":26,"value":11967},{"type":21,"tag":2338,"props":26870,"children":26871},{"style":2345},[26872],{"type":26,"value":26873}," check_convergence(energy, shots):\n",{"type":21,"tag":2338,"props":26875,"children":26876},{"class":2340,"line":5033},[26877],{"type":21,"tag":2338,"props":26878,"children":26879},{"style":3219},[26880],{"type":26,"value":26151},{"type":21,"tag":2338,"props":26882,"children":26883},{"class":2340,"line":5079},[26884],{"type":21,"tag":2338,"props":26885,"children":26886},{"emptyLinePlaceholder":3243},[26887],{"type":26,"value":3246},{"type":21,"tag":2338,"props":26889,"children":26890},{"class":2340,"line":5092},[26891,26895,26899,26903,26908,26912,26917,26921,26925,26929],{"type":21,"tag":2338,"props":26892,"children":26893},{"style":2363},[26894],{"type":26,"value":3334},{"type":21,"tag":2338,"props":26896,"children":26897},{"style":2345},[26898],{"type":26,"value":3339},{"type":21,"tag":2338,"props":26900,"children":26901},{"style":3219},[26902],{"type":26,"value":3344},{"type":21,"tag":2338,"props":26904,"children":26905},{"style":2374},[26906],{"type":26,"value":26907},"\"Ground state energy: ",{"type":21,"tag":2338,"props":26909,"children":26910},{"style":2363},[26911],{"type":26,"value":3354},{"type":21,"tag":2338,"props":26913,"children":26914},{"style":2345},[26915],{"type":26,"value":26916},"energy",{"type":21,"tag":2338,"props":26918,"children":26919},{"style":3219},[26920],{"type":26,"value":3666},{"type":21,"tag":2338,"props":26922,"children":26923},{"style":2363},[26924],{"type":26,"value":3364},{"type":21,"tag":2338,"props":26926,"children":26927},{"style":2374},[26928],{"type":26,"value":19459},{"type":21,"tag":2338,"props":26930,"children":26931},{"style":2345},[26932],{"type":26,"value":3319},{"type":21,"tag":29,"props":26934,"children":26936},{"id":26935},"kurzreferenz-shot-budget-nach-methode",[26937],{"type":26,"value":26938},"Kurzreferenz: Shot-Budget nach Methode",{"type":21,"tag":4087,"props":26940,"children":26941},{},[26942,26963],{"type":21,"tag":4091,"props":26943,"children":26944},{},[26945],{"type":21,"tag":4095,"props":26946,"children":26947},{},[26948,26953,26958],{"type":21,"tag":4099,"props":26949,"children":26950},{},[26951],{"type":26,"value":26952},"Methode",{"type":21,"tag":4099,"props":26954,"children":26955},{},[26956],{"type":26,"value":26957},"Shots\u002FSchritt",{"type":21,"tag":4099,"props":26959,"children":26960},{},[26961],{"type":26,"value":26962},"Am besten für",{"type":21,"tag":4113,"props":26964,"children":26965},{},[26966,26988,27010,27032,27050],{"type":21,"tag":4095,"props":26967,"children":26968},{},[26969,26974,26983],{"type":21,"tag":4120,"props":26970,"children":26971},{},[26972],{"type":26,"value":26973},"COBYLA + feste Shots",{"type":21,"tag":4120,"props":26975,"children":26976},{},[26977],{"type":21,"tag":2097,"props":26978,"children":26980},{"className":26979},[],[26981],{"type":26,"value":26982},"n_terms × shots",{"type":21,"tag":4120,"props":26984,"children":26985},{},[26986],{"type":26,"value":26987},"Kleine Parameteranzahl",{"type":21,"tag":4095,"props":26989,"children":26990},{},[26991,26996,27005],{"type":21,"tag":4120,"props":26992,"children":26993},{},[26994],{"type":26,"value":26995},"Parameter-Shift + Adam",{"type":21,"tag":4120,"props":26997,"children":26998},{},[26999],{"type":21,"tag":2097,"props":27000,"children":27002},{"className":27001},[],[27003],{"type":26,"value":27004},"2n_params × shots",{"type":21,"tag":4120,"props":27006,"children":27007},{},[27008],{"type":26,"value":27009},"Differenzierbare Schaltkreise",{"type":21,"tag":4095,"props":27011,"children":27012},{},[27013,27018,27027],{"type":21,"tag":4120,"props":27014,"children":27015},{},[27016],{"type":26,"value":27017},"SPSA",{"type":21,"tag":4120,"props":27019,"children":27020},{},[27021],{"type":21,"tag":2097,"props":27022,"children":27024},{"className":27023},[],[27025],{"type":26,"value":27026},"2 × shots",{"type":21,"tag":4120,"props":27028,"children":27029},{},[27030],{"type":26,"value":27031},"Große Parameteranzahl",{"type":21,"tag":4095,"props":27033,"children":27034},{},[27035,27040,27045],{"type":21,"tag":4120,"props":27036,"children":27037},{},[27038],{"type":26,"value":27039},"ShotAdaptiveOptimizer",{"type":21,"tag":4120,"props":27041,"children":27042},{},[27043],{"type":26,"value":27044},"Adaptiv",{"type":21,"tag":4120,"props":27046,"children":27047},{},[27048],{"type":26,"value":27049},"Allgemeines VQE",{"type":21,"tag":4095,"props":27051,"children":27052},{},[27053,27058,27063],{"type":21,"tag":4120,"props":27054,"children":27055},{},[27056],{"type":26,"value":27057},"Gruppierte Paulis",{"type":21,"tag":4120,"props":27059,"children":27060},{},[27061],{"type":26,"value":27062},"÷5–15×",{"type":21,"tag":4120,"props":27064,"children":27065},{},[27066],{"type":26,"value":27067},"Immer zuerst anwenden",{"type":21,"tag":22,"props":27069,"children":27070},{},[27071],{"type":26,"value":27072},"Wenden Sie zuerst die Messgruppierung an — sie ist der größte einzelne Gewinn und erfordert keine Änderungen an Ihrem Optimierer oder Schaltkreis.",{"type":21,"tag":22,"props":27074,"children":27075},{},[27076,27081,27082,27087,27088,27093,27094],{"type":21,"tag":205,"props":27077,"children":27078},{},[27079],{"type":26,"value":27080},"Verwandt:",{"type":26,"value":1367},{"type":21,"tag":41,"props":27083,"children":27084},{"href":362},[27085],{"type":26,"value":27086},"VQE with PennyLane",{"type":26,"value":7133},{"type":21,"tag":41,"props":27089,"children":27090},{"href":144},[27091],{"type":26,"value":27092},"QPU access guide",{"type":26,"value":7133},{"type":21,"tag":41,"props":27095,"children":27096},{"href":19030},[27097],{"type":26,"value":19033},{"type":21,"tag":2712,"props":27099,"children":27100},{},[27101],{"type":26,"value":2716},{"title":7,"searchDepth":173,"depth":173,"links":27103},[27104,27105,27106,27107,27108,27109,27110,27111,27112],{"id":24585,"depth":173,"text":24588},{"id":24730,"depth":173,"text":24733},{"id":25058,"depth":173,"text":25061},{"id":25411,"depth":173,"text":25414},{"id":25657,"depth":173,"text":25660},{"id":25834,"depth":173,"text":25837},{"id":26183,"depth":173,"text":26186},{"id":26367,"depth":173,"text":26370},{"id":26935,"depth":173,"text":26938},"content:de:blog:reduce-shot-count.md","de\u002Fblog\u002Freduce-shot-count.md","de\u002Fblog\u002Freduce-shot-count",{"_path":27117,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":27118,"description":27119,"date":27120,"updatedDate":10,"author":11,"tags":27121,"readingTime":951,"body":27123,"_type":180,"_id":28925,"_source":182,"_file":28926,"_stem":28927,"_extension":185},"\u002Fde\u002Fblog\u002Fibm-quantum-free-tier-2026","IBM Quantum Free Tier: Alles, worauf Sie 2026 zugreifen können","Eine detaillierte Aufschlüsselung dessen, was der kostenlose Open Plan von IBM Quantum umfasst, wie Warteschlangenzeiten funktionieren und wie Sie das Beste aus Ihrem kostenlosen QPU-Zugang herausholen.","2026-02-20",[27122,14,15],"IBM",{"type":18,"children":27124,"toc":28911},[27125,27130,27136,27148,27201,27206,27212,27240,27261,27281,27287,27292,27397,27402,27644,27650,27656,27668,27674,27701,27707,27712,27823,27836,27842,28486,28492,28497,28523,28531,28562,28568,28573,28652,28657,28663,28668,28897,28907],{"type":21,"tag":22,"props":27126,"children":27127},{},[27128],{"type":26,"value":27129},"IBM Quantum bietet den zugänglichsten kostenlosen Tarif in der Quantencomputing-Branche. Mit einer kostenlosen IBM-ID erhalten Sie Zugang zu echten Quantenprozessoren mit bis zu 127 Qubits, keine Kosten, keine Kreditkarte, keine Bewerbung erforderlich. Hier ist genau, was das in der Praxis bedeutet.",{"type":21,"tag":29,"props":27131,"children":27133},{"id":27132},"was-der-kostenlose-tarif-umfasst",[27134],{"type":26,"value":27135},"Was der kostenlose Tarif umfasst",{"type":21,"tag":22,"props":27137,"children":27138},{},[27139,27141,27146],{"type":26,"value":27140},"Der IBM Quantum ",{"type":21,"tag":205,"props":27142,"children":27143},{},[27144],{"type":26,"value":27145},"Open Plan",{"type":26,"value":27147}," bietet Ihnen:",{"type":21,"tag":3137,"props":27149,"children":27150},{},[27151,27161,27171,27181,27191],{"type":21,"tag":3141,"props":27152,"children":27153},{},[27154,27159],{"type":21,"tag":205,"props":27155,"children":27156},{},[27157],{"type":26,"value":27158},"Unbegrenzten Zugang",{"type":26,"value":27160}," zu allen öffentlich verfügbaren Quantensystemen",{"type":21,"tag":3141,"props":27162,"children":27163},{},[27164,27169],{"type":21,"tag":205,"props":27165,"children":27166},{},[27167],{"type":26,"value":27168},"10 Minuten Quantenzeit",{"type":26,"value":27170}," pro Monat (die Zeit, in der Ihre Schaltkreise aktiv auf der QPU laufen)",{"type":21,"tag":3141,"props":27172,"children":27173},{},[27174,27179],{"type":21,"tag":205,"props":27175,"children":27176},{},[27177],{"type":26,"value":27178},"Zugang zu IBM-Simulatoren",{"type":26,"value":27180}," ohne Zeitlimit (Statevector, QASM, Matrix Product State)",{"type":21,"tag":3141,"props":27182,"children":27183},{},[27184,27189],{"type":21,"tag":205,"props":27185,"children":27186},{},[27187],{"type":26,"value":27188},"Qiskit Runtime",{"type":26,"value":27190},": die moderne IBM-Ausführungsumgebung für Schaltkreise",{"type":21,"tag":3141,"props":27192,"children":27193},{},[27194,27199],{"type":21,"tag":205,"props":27195,"children":27196},{},[27197],{"type":26,"value":27198},"IBM Quantum Learning",{"type":26,"value":27200},"-Plattform mit Tutorials und Kursen",{"type":21,"tag":22,"props":27202,"children":27203},{},[27204],{"type":26,"value":27205},"Das monatliche 10-Minuten-Limit klingt einschränkend, aber in der Praxis laufen die meisten Forschungsschaltkreise in Millisekunden tatsächlicher QPU-Zeit. Das Limit wird von einzelnen Entwicklern, die mit Quantenalgorithmen experimentieren, selten erreicht.",{"type":21,"tag":29,"props":27207,"children":27209},{"id":27208},"august-2026-update-heron-r2-und-bonus-rechenzeit",[27210],{"type":26,"value":27211},"August-2026-Update: Heron r2 und Bonus-Rechenzeit",{"type":21,"tag":22,"props":27213,"children":27214},{},[27215,27217,27223,27225,27230,27232,27238],{"type":26,"value":27216},"IBM hat im März 2026 seinen leistungsstärkeren Heron r2-Prozessor (",{"type":21,"tag":2097,"props":27218,"children":27220},{"className":27219},[],[27221],{"type":26,"value":27222},"ibm_kingston",{"type":26,"value":27224},") zum Open Plan hinzugefügt und gibt Nutzern des kostenlosen Tarifs damit Zugang zu einer spürbar besseren Zwei-Qubit-Gatter-Fidelity als bei den ursprünglichen Heron r1-Systemen. Wenn Sie länger nichts ausgeführt haben, lohnt es sich zu prüfen, ob ",{"type":21,"tag":2097,"props":27226,"children":27228},{"className":27227},[],[27229],{"type":26,"value":27222},{"type":26,"value":27231}," in Ihrer ",{"type":21,"tag":2097,"props":27233,"children":27235},{"className":27234},[],[27236],{"type":26,"value":27237},"service.backends()",{"type":26,"value":27239},"-Liste auftaucht.",{"type":21,"tag":22,"props":27241,"children":27242},{},[27243,27245,27250,27252,27259],{"type":26,"value":27244},"IBM hat außerdem eine einmalige Aktion für aktive Nutzer durchgeführt: Wer innerhalb eines 12-Monats-Zeitraums mindestens 20 Minuten QPU-Zeit genutzt hatte, konnte sich für einen Bonus von ",{"type":21,"tag":205,"props":27246,"children":27247},{},[27248],{"type":26,"value":27249},"180 Minuten über die folgenden 12 Monate",{"type":26,"value":27251}," anmelden, das Achtzehnfache des monatlichen Standardkontingents. Dieses Angebot war an ein bestimmtes Anmeldefenster gebunden und keine dauerhafte Änderung der 10-Minuten-pro-Monat-Basis des Open Plans. Gehen Sie also nicht davon aus, dass es noch gilt. Prüfen Sie auf der ",{"type":21,"tag":41,"props":27253,"children":27256},{"href":27254,"rel":27255},"https:\u002F\u002Fquantum.cloud.ibm.com\u002Fdocs\u002Fen\u002Fguides\u002Fplans-overview",[963],[27257],{"type":26,"value":27258},"Open-Plan-Seite",{"type":26,"value":27260},", was aktuell für Ihr Konto gilt.",{"type":21,"tag":22,"props":27262,"children":27263},{},[27264,27266,27272,27274,27279],{"type":26,"value":27265},"Auch das Angebot an Systemen verändert sich in die andere Richtung. IBM hat ",{"type":21,"tag":2097,"props":27267,"children":27269},{"className":27268},[],[27270],{"type":26,"value":27271},"ibm_torino",{"type":26,"value":27273}," Anfang April 2026 außer Betrieb genommen. Das ist ein normaler Teil des Open-Plan-Betriebs: Neue Hardware kommt hinzu, ältere Systeme werden abgeschaltet, sobald ihre Nutzungsdauer endet. Genau deshalb zählt das ",{"type":21,"tag":2097,"props":27275,"children":27277},{"className":27276},[],[27278],{"type":26,"value":27237},{"type":26,"value":27280},"-Snippet weiter unten mehr als jede statische Tabelle. Betrachten Sie die Liste in diesem Beitrag als Momentaufnahme, nicht als aktuellen Stand.",{"type":21,"tag":29,"props":27282,"children":27284},{"id":27283},"verfügbare-kostenlose-qpus",[27285],{"type":26,"value":27286},"Verfügbare kostenlose QPUs",{"type":21,"tag":22,"props":27288,"children":27289},{},[27290],{"type":26,"value":27291},"Stand Mitte 2026 umfasst der Open Plan von IBM unter anderem den Zugang zu:",{"type":21,"tag":4087,"props":27293,"children":27294},{},[27295,27320],{"type":21,"tag":4091,"props":27296,"children":27297},{},[27298],{"type":21,"tag":4095,"props":27299,"children":27300},{},[27301,27306,27310,27315],{"type":21,"tag":4099,"props":27302,"children":27303},{},[27304],{"type":26,"value":27305},"System",{"type":21,"tag":4099,"props":27307,"children":27308},{},[27309],{"type":26,"value":24612},{"type":21,"tag":4099,"props":27311,"children":27312},{},[27313],{"type":26,"value":27314},"Technologie",{"type":21,"tag":4099,"props":27316,"children":27317},{},[27318],{"type":26,"value":27319},"Typische Warteschlange",{"type":21,"tag":4113,"props":27321,"children":27322},{},[27323,27352,27375],{"type":21,"tag":4095,"props":27324,"children":27325},{},[27326,27337,27342,27347],{"type":21,"tag":4120,"props":27327,"children":27328},{},[27329,27331,27336],{"type":26,"value":27330},"IBM Heron r2 (",{"type":21,"tag":2097,"props":27332,"children":27334},{"className":27333},[],[27335],{"type":26,"value":27222},{"type":26,"value":17294},{"type":21,"tag":4120,"props":27338,"children":27339},{},[27340],{"type":26,"value":27341},"156",{"type":21,"tag":4120,"props":27343,"children":27344},{},[27345],{"type":26,"value":27346},"Heron-Prozessor, höhere Fidelity",{"type":21,"tag":4120,"props":27348,"children":27349},{},[27350],{"type":26,"value":27351},"30–120 Min.",{"type":21,"tag":4095,"props":27353,"children":27354},{},[27355,27360,27365,27370],{"type":21,"tag":4120,"props":27356,"children":27357},{},[27358],{"type":26,"value":27359},"IBM Eagle",{"type":21,"tag":4120,"props":27361,"children":27362},{},[27363],{"type":26,"value":27364},"127",{"type":21,"tag":4120,"props":27366,"children":27367},{},[27368],{"type":26,"value":27369},"Supraleitend",{"type":21,"tag":4120,"props":27371,"children":27372},{},[27373],{"type":26,"value":27374},"10–60 Min.",{"type":21,"tag":4095,"props":27376,"children":27377},{},[27378,27383,27388,27393],{"type":21,"tag":4120,"props":27379,"children":27380},{},[27381],{"type":26,"value":27382},"IBM Heron r1",{"type":21,"tag":4120,"props":27384,"children":27385},{},[27386],{"type":26,"value":27387},"133",{"type":21,"tag":4120,"props":27389,"children":27390},{},[27391],{"type":26,"value":27392},"Heron-Prozessor",{"type":21,"tag":4120,"props":27394,"children":27395},{},[27396],{"type":26,"value":27351},{"type":21,"tag":22,"props":27398,"children":27399},{},[27400],{"type":26,"value":27401},"IBM stellt regelmäßig Systeme außer Betrieb und fügt neue hinzu. Betrachten Sie diese Tabelle als Momentaufnahme, nicht als Garantie. Verwenden Sie den Qiskit Runtime-Dienst, um die aktuelle Liste zu sehen:",{"type":21,"tag":2328,"props":27403,"children":27405},{"className":3207,"code":27404,"language":3209,"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",[27406],{"type":21,"tag":2097,"props":27407,"children":27408},{"__ignoreMap":7},[27409,27428,27435,27468,27485,27505,27525,27542,27549,27569],{"type":21,"tag":2338,"props":27410,"children":27411},{"class":2340,"line":2341},[27412,27416,27420,27424],{"type":21,"tag":2338,"props":27413,"children":27414},{"style":3219},[27415],{"type":26,"value":3222},{"type":21,"tag":2338,"props":27417,"children":27418},{"style":2345},[27419],{"type":26,"value":3227},{"type":21,"tag":2338,"props":27421,"children":27422},{"style":3219},[27423],{"type":26,"value":3232},{"type":21,"tag":2338,"props":27425,"children":27426},{"style":2345},[27427],{"type":26,"value":3237},{"type":21,"tag":2338,"props":27429,"children":27430},{"class":2340,"line":173},[27431],{"type":21,"tag":2338,"props":27432,"children":27433},{"emptyLinePlaceholder":3243},[27434],{"type":26,"value":3246},{"type":21,"tag":2338,"props":27436,"children":27437},{"class":2340,"line":2359},[27438,27442,27446,27451,27456,27460,27464],{"type":21,"tag":2338,"props":27439,"children":27440},{"style":2345},[27441],{"type":26,"value":3254},{"type":21,"tag":2338,"props":27443,"children":27444},{"style":3219},[27445],{"type":26,"value":3259},{"type":21,"tag":2338,"props":27447,"children":27448},{"style":2345},[27449],{"type":26,"value":27450}," QiskitRuntimeService(",{"type":21,"tag":2338,"props":27452,"children":27453},{"style":3284},[27454],{"type":26,"value":27455},"channel",{"type":21,"tag":2338,"props":27457,"children":27458},{"style":3219},[27459],{"type":26,"value":3259},{"type":21,"tag":2338,"props":27461,"children":27462},{"style":2374},[27463],{"type":26,"value":20756},{"type":21,"tag":2338,"props":27465,"children":27466},{"style":2345},[27467],{"type":26,"value":3319},{"type":21,"tag":2338,"props":27469,"children":27470},{"class":2340,"line":2421},[27471,27476,27480],{"type":21,"tag":2338,"props":27472,"children":27473},{"style":2345},[27474],{"type":26,"value":27475},"backends ",{"type":21,"tag":2338,"props":27477,"children":27478},{"style":3219},[27479],{"type":26,"value":3259},{"type":21,"tag":2338,"props":27481,"children":27482},{"style":2345},[27483],{"type":26,"value":27484}," service.backends(\n",{"type":21,"tag":2338,"props":27486,"children":27487},{"class":2340,"line":2445},[27488,27493,27497,27501],{"type":21,"tag":2338,"props":27489,"children":27490},{"style":3284},[27491],{"type":26,"value":27492},"    operational",{"type":21,"tag":2338,"props":27494,"children":27495},{"style":3219},[27496],{"type":26,"value":3259},{"type":21,"tag":2338,"props":27498,"children":27499},{"style":2363},[27500],{"type":26,"value":3296},{"type":21,"tag":2338,"props":27502,"children":27503},{"style":2345},[27504],{"type":26,"value":2442},{"type":21,"tag":2338,"props":27506,"children":27507},{"class":2340,"line":877},[27508,27513,27517,27521],{"type":21,"tag":2338,"props":27509,"children":27510},{"style":3284},[27511],{"type":26,"value":27512},"    simulator",{"type":21,"tag":2338,"props":27514,"children":27515},{"style":3219},[27516],{"type":26,"value":3259},{"type":21,"tag":2338,"props":27518,"children":27519},{"style":2363},[27520],{"type":26,"value":3314},{"type":21,"tag":2338,"props":27522,"children":27523},{"style":2345},[27524],{"type":26,"value":2442},{"type":21,"tag":2338,"props":27526,"children":27527},{"class":2340,"line":196},[27528,27533,27537],{"type":21,"tag":2338,"props":27529,"children":27530},{"style":3284},[27531],{"type":26,"value":27532},"    min_num_qubits",{"type":21,"tag":2338,"props":27534,"children":27535},{"style":3219},[27536],{"type":26,"value":3259},{"type":21,"tag":2338,"props":27538,"children":27539},{"style":2363},[27540],{"type":26,"value":27541},"1\n",{"type":21,"tag":2338,"props":27543,"children":27544},{"class":2340,"line":951},[27545],{"type":21,"tag":2338,"props":27546,"children":27547},{"style":2345},[27548],{"type":26,"value":3319},{"type":21,"tag":2338,"props":27550,"children":27551},{"class":2340,"line":16},[27552,27556,27560,27564],{"type":21,"tag":2338,"props":27553,"children":27554},{"style":3219},[27555],{"type":26,"value":3512},{"type":21,"tag":2338,"props":27557,"children":27558},{"style":2345},[27559],{"type":26,"value":4925},{"type":21,"tag":2338,"props":27561,"children":27562},{"style":3219},[27563],{"type":26,"value":3522},{"type":21,"tag":2338,"props":27565,"children":27566},{"style":2345},[27567],{"type":26,"value":27568}," backends:\n",{"type":21,"tag":2338,"props":27570,"children":27571},{"class":2340,"line":3465},[27572,27576,27580,27584,27588,27592,27597,27601,27605,27609,27614,27618,27623,27627,27632,27636,27640],{"type":21,"tag":2338,"props":27573,"children":27574},{"style":2363},[27575],{"type":26,"value":17246},{"type":21,"tag":2338,"props":27577,"children":27578},{"style":2345},[27579],{"type":26,"value":3339},{"type":21,"tag":2338,"props":27581,"children":27582},{"style":3219},[27583],{"type":26,"value":3344},{"type":21,"tag":2338,"props":27585,"children":27586},{"style":2374},[27587],{"type":26,"value":3369},{"type":21,"tag":2338,"props":27589,"children":27590},{"style":2363},[27591],{"type":26,"value":3354},{"type":21,"tag":2338,"props":27593,"children":27594},{"style":2345},[27595],{"type":26,"value":27596},"b.name",{"type":21,"tag":2338,"props":27598,"children":27599},{"style":2363},[27600],{"type":26,"value":3364},{"type":21,"tag":2338,"props":27602,"children":27603},{"style":2374},[27604],{"type":26,"value":2432},{"type":21,"tag":2338,"props":27606,"children":27607},{"style":2363},[27608],{"type":26,"value":3354},{"type":21,"tag":2338,"props":27610,"children":27611},{"style":2345},[27612],{"type":26,"value":27613},"b.num_qubits",{"type":21,"tag":2338,"props":27615,"children":27616},{"style":2363},[27617],{"type":26,"value":3364},{"type":21,"tag":2338,"props":27619,"children":27620},{"style":2374},[27621],{"type":26,"value":27622}," qubits, status: ",{"type":21,"tag":2338,"props":27624,"children":27625},{"style":2363},[27626],{"type":26,"value":3354},{"type":21,"tag":2338,"props":27628,"children":27629},{"style":2345},[27630],{"type":26,"value":27631},"b.status().status_msg",{"type":21,"tag":2338,"props":27633,"children":27634},{"style":2363},[27635],{"type":26,"value":3364},{"type":21,"tag":2338,"props":27637,"children":27638},{"style":2374},[27639],{"type":26,"value":3369},{"type":21,"tag":2338,"props":27641,"children":27642},{"style":2345},[27643],{"type":26,"value":3319},{"type":21,"tag":29,"props":27645,"children":27647},{"id":27646},"einrichtung-in-10-minuten",[27648],{"type":26,"value":27649},"Einrichtung in 10 Minuten",{"type":21,"tag":17383,"props":27651,"children":27653},{"id":27652},"schritt-1-erstellen-sie-ihr-kostenloses-konto",[27654],{"type":26,"value":27655},"Schritt 1: Erstellen Sie Ihr kostenloses Konto",{"type":21,"tag":22,"props":27657,"children":27658},{},[27659,27661,27666],{"type":26,"value":27660},"Gehen Sie zu ",{"type":21,"tag":41,"props":27662,"children":27664},{"href":20682,"rel":27663},[963],[27665],{"type":26,"value":20686},{"type":26,"value":27667}," und erstellen Sie eine kostenlose IBM-ID. Es sind keine Zahlungsinformationen erforderlich.",{"type":21,"tag":17383,"props":27669,"children":27671},{"id":27670},"schritt-2-installieren-sie-das-sdk",[27672],{"type":26,"value":27673},"Schritt 2: Installieren Sie das SDK",{"type":21,"tag":2328,"props":27675,"children":27677},{"className":9764,"code":27676,"language":9766,"meta":7,"style":7},"pip install qiskit qiskit-ibm-runtime\n",[27678],{"type":21,"tag":2097,"props":27679,"children":27680},{"__ignoreMap":7},[27681],{"type":21,"tag":2338,"props":27682,"children":27683},{"class":2340,"line":2341},[27684,27688,27692,27696],{"type":21,"tag":2338,"props":27685,"children":27686},{"style":4385},[27687],{"type":26,"value":11815},{"type":21,"tag":2338,"props":27689,"children":27690},{"style":2374},[27691],{"type":26,"value":11820},{"type":21,"tag":2338,"props":27693,"children":27694},{"style":2374},[27695],{"type":26,"value":11825},{"type":21,"tag":2338,"props":27697,"children":27698},{"style":2374},[27699],{"type":26,"value":27700}," qiskit-ibm-runtime\n",{"type":21,"tag":17383,"props":27702,"children":27704},{"id":27703},"schritt-3-speichern-sie-ihre-anmeldedaten",[27705],{"type":26,"value":27706},"Schritt 3: Speichern Sie Ihre Anmeldedaten",{"type":21,"tag":22,"props":27708,"children":27709},{},[27710],{"type":26,"value":27711},"Nachdem Sie sich im IBM Quantum-Dashboard angemeldet haben, kopieren Sie Ihren API-Token von der Kontoseite.",{"type":21,"tag":2328,"props":27713,"children":27715},{"className":3207,"code":27714,"language":3209,"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",[27716],{"type":21,"tag":2097,"props":27717,"children":27718},{"__ignoreMap":7},[27719,27738,27745,27753,27760,27779,27799,27816],{"type":21,"tag":2338,"props":27720,"children":27721},{"class":2340,"line":2341},[27722,27726,27730,27734],{"type":21,"tag":2338,"props":27723,"children":27724},{"style":3219},[27725],{"type":26,"value":3222},{"type":21,"tag":2338,"props":27727,"children":27728},{"style":2345},[27729],{"type":26,"value":3227},{"type":21,"tag":2338,"props":27731,"children":27732},{"style":3219},[27733],{"type":26,"value":3232},{"type":21,"tag":2338,"props":27735,"children":27736},{"style":2345},[27737],{"type":26,"value":3237},{"type":21,"tag":2338,"props":27739,"children":27740},{"class":2340,"line":173},[27741],{"type":21,"tag":2338,"props":27742,"children":27743},{"emptyLinePlaceholder":3243},[27744],{"type":26,"value":3246},{"type":21,"tag":2338,"props":27746,"children":27747},{"class":2340,"line":2359},[27748],{"type":21,"tag":2338,"props":27749,"children":27750},{"style":3469},[27751],{"type":26,"value":27752},"# Run this once to save your token locally\n",{"type":21,"tag":2338,"props":27754,"children":27755},{"class":2340,"line":2421},[27756],{"type":21,"tag":2338,"props":27757,"children":27758},{"style":2345},[27759],{"type":26,"value":20739},{"type":21,"tag":2338,"props":27761,"children":27762},{"class":2340,"line":2445},[27763,27767,27771,27775],{"type":21,"tag":2338,"props":27764,"children":27765},{"style":3284},[27766],{"type":26,"value":20747},{"type":21,"tag":2338,"props":27768,"children":27769},{"style":3219},[27770],{"type":26,"value":3259},{"type":21,"tag":2338,"props":27772,"children":27773},{"style":2374},[27774],{"type":26,"value":20756},{"type":21,"tag":2338,"props":27776,"children":27777},{"style":2345},[27778],{"type":26,"value":2442},{"type":21,"tag":2338,"props":27780,"children":27781},{"class":2340,"line":877},[27782,27786,27790,27795],{"type":21,"tag":2338,"props":27783,"children":27784},{"style":3284},[27785],{"type":26,"value":20768},{"type":21,"tag":2338,"props":27787,"children":27788},{"style":3219},[27789],{"type":26,"value":3259},{"type":21,"tag":2338,"props":27791,"children":27792},{"style":2374},[27793],{"type":26,"value":27794},"\"YOUR_API_TOKEN_HERE\"",{"type":21,"tag":2338,"props":27796,"children":27797},{"style":2345},[27798],{"type":26,"value":2442},{"type":21,"tag":2338,"props":27800,"children":27801},{"class":2340,"line":196},[27802,27807,27811],{"type":21,"tag":2338,"props":27803,"children":27804},{"style":3284},[27805],{"type":26,"value":27806},"    overwrite",{"type":21,"tag":2338,"props":27808,"children":27809},{"style":3219},[27810],{"type":26,"value":3259},{"type":21,"tag":2338,"props":27812,"children":27813},{"style":2363},[27814],{"type":26,"value":27815},"True\n",{"type":21,"tag":2338,"props":27817,"children":27818},{"class":2340,"line":951},[27819],{"type":21,"tag":2338,"props":27820,"children":27821},{"style":2345},[27822],{"type":26,"value":3319},{"type":21,"tag":22,"props":27824,"children":27825},{},[27826,27828,27834],{"type":26,"value":27827},"Ihre Anmeldedaten werden in ",{"type":21,"tag":2097,"props":27829,"children":27831},{"className":27830},[],[27832],{"type":26,"value":27833},"~\u002F.qiskit\u002Fqiskit-ibm.json",{"type":26,"value":27835}," gespeichert. Sie müssen dies nicht erneut tun.",{"type":21,"tag":17383,"props":27837,"children":27839},{"id":27838},"schritt-4-reichen-sie-ihren-ersten-job-ein",[27840],{"type":26,"value":27841},"Schritt 4: Reichen Sie Ihren ersten Job ein",{"type":21,"tag":2328,"props":27843,"children":27845},{"className":3207,"code":27844,"language":3209,"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",[27846],{"type":21,"tag":2097,"props":27847,"children":27848},{"__ignoreMap":7},[27849,27868,27889,27918,27925,27933,27964,27979,28002,28041,28048,28056,28087,28103,28122,28141,28157,28164,28204,28211,28219,28264,28281,28288,28296,28327,28360,28367,28408,28449,28465],{"type":21,"tag":2338,"props":27850,"children":27851},{"class":2340,"line":2341},[27852,27856,27860,27864],{"type":21,"tag":2338,"props":27853,"children":27854},{"style":3219},[27855],{"type":26,"value":3222},{"type":21,"tag":2338,"props":27857,"children":27858},{"style":2345},[27859],{"type":26,"value":4316},{"type":21,"tag":2338,"props":27861,"children":27862},{"style":3219},[27863],{"type":26,"value":3232},{"type":21,"tag":2338,"props":27865,"children":27866},{"style":2345},[27867],{"type":26,"value":20332},{"type":21,"tag":2338,"props":27869,"children":27870},{"class":2340,"line":173},[27871,27875,27880,27884],{"type":21,"tag":2338,"props":27872,"children":27873},{"style":3219},[27874],{"type":26,"value":3222},{"type":21,"tag":2338,"props":27876,"children":27877},{"style":2345},[27878],{"type":26,"value":27879}," qiskit.transpiler.preset_passmanagers ",{"type":21,"tag":2338,"props":27881,"children":27882},{"style":3219},[27883],{"type":26,"value":3232},{"type":21,"tag":2338,"props":27885,"children":27886},{"style":2345},[27887],{"type":26,"value":27888}," generate_preset_pass_manager\n",{"type":21,"tag":2338,"props":27890,"children":27891},{"class":2340,"line":2359},[27892,27896,27900,27904,27909,27913],{"type":21,"tag":2338,"props":27893,"children":27894},{"style":3219},[27895],{"type":26,"value":3222},{"type":21,"tag":2338,"props":27897,"children":27898},{"style":2345},[27899],{"type":26,"value":3227},{"type":21,"tag":2338,"props":27901,"children":27902},{"style":3219},[27903],{"type":26,"value":3232},{"type":21,"tag":2338,"props":27905,"children":27906},{"style":2345},[27907],{"type":26,"value":27908}," QiskitRuntimeService, SamplerV2 ",{"type":21,"tag":2338,"props":27910,"children":27911},{"style":3219},[27912],{"type":26,"value":4299},{"type":21,"tag":2338,"props":27914,"children":27915},{"style":2345},[27916],{"type":26,"value":27917}," Sampler\n",{"type":21,"tag":2338,"props":27919,"children":27920},{"class":2340,"line":2421},[27921],{"type":21,"tag":2338,"props":27922,"children":27923},{"emptyLinePlaceholder":3243},[27924],{"type":26,"value":3246},{"type":21,"tag":2338,"props":27926,"children":27927},{"class":2340,"line":2445},[27928],{"type":21,"tag":2338,"props":27929,"children":27930},{"style":3469},[27931],{"type":26,"value":27932},"# Build a Bell state\n",{"type":21,"tag":2338,"props":27934,"children":27935},{"class":2340,"line":877},[27936,27940,27944,27948,27952,27956,27960],{"type":21,"tag":2338,"props":27937,"children":27938},{"style":2345},[27939],{"type":26,"value":7403},{"type":21,"tag":2338,"props":27941,"children":27942},{"style":3219},[27943],{"type":26,"value":3259},{"type":21,"tag":2338,"props":27945,"children":27946},{"style":2345},[27947],{"type":26,"value":5159},{"type":21,"tag":2338,"props":27949,"children":27950},{"style":2363},[27951],{"type":26,"value":2437},{"type":21,"tag":2338,"props":27953,"children":27954},{"style":2345},[27955],{"type":26,"value":1375},{"type":21,"tag":2338,"props":27957,"children":27958},{"style":2363},[27959],{"type":26,"value":2437},{"type":21,"tag":2338,"props":27961,"children":27962},{"style":2345},[27963],{"type":26,"value":3319},{"type":21,"tag":2338,"props":27965,"children":27966},{"class":2340,"line":196},[27967,27971,27975],{"type":21,"tag":2338,"props":27968,"children":27969},{"style":2345},[27970],{"type":26,"value":7419},{"type":21,"tag":2338,"props":27972,"children":27973},{"style":2363},[27974],{"type":26,"value":5189},{"type":21,"tag":2338,"props":27976,"children":27977},{"style":2345},[27978],{"type":26,"value":3319},{"type":21,"tag":2338,"props":27980,"children":27981},{"class":2340,"line":951},[27982,27986,27990,27994,27998],{"type":21,"tag":2338,"props":27983,"children":27984},{"style":2345},[27985],{"type":26,"value":20418},{"type":21,"tag":2338,"props":27987,"children":27988},{"style":2363},[27989],{"type":26,"value":5189},{"type":21,"tag":2338,"props":27991,"children":27992},{"style":2345},[27993],{"type":26,"value":1375},{"type":21,"tag":2338,"props":27995,"children":27996},{"style":2363},[27997],{"type":26,"value":3575},{"type":21,"tag":2338,"props":27999,"children":28000},{"style":2345},[28001],{"type":26,"value":3319},{"type":21,"tag":2338,"props":28003,"children":28004},{"class":2340,"line":16},[28005,28009,28013,28017,28021,28025,28029,28033,28037],{"type":21,"tag":2338,"props":28006,"children":28007},{"style":2345},[28008],{"type":26,"value":21227},{"type":21,"tag":2338,"props":28010,"children":28011},{"style":2363},[28012],{"type":26,"value":5189},{"type":21,"tag":2338,"props":28014,"children":28015},{"style":2345},[28016],{"type":26,"value":1375},{"type":21,"tag":2338,"props":28018,"children":28019},{"style":2363},[28020],{"type":26,"value":3575},{"type":21,"tag":2338,"props":28022,"children":28023},{"style":2345},[28024],{"type":26,"value":5244},{"type":21,"tag":2338,"props":28026,"children":28027},{"style":2363},[28028],{"type":26,"value":5189},{"type":21,"tag":2338,"props":28030,"children":28031},{"style":2345},[28032],{"type":26,"value":1375},{"type":21,"tag":2338,"props":28034,"children":28035},{"style":2363},[28036],{"type":26,"value":3575},{"type":21,"tag":2338,"props":28038,"children":28039},{"style":2345},[28040],{"type":26,"value":3580},{"type":21,"tag":2338,"props":28042,"children":28043},{"class":2340,"line":3465},[28044],{"type":21,"tag":2338,"props":28045,"children":28046},{"emptyLinePlaceholder":3243},[28047],{"type":26,"value":3246},{"type":21,"tag":2338,"props":28049,"children":28050},{"class":2340,"line":3475},[28051],{"type":21,"tag":2338,"props":28052,"children":28053},{"style":3469},[28054],{"type":26,"value":28055},"# Connect and pick the least-busy free QPU\n",{"type":21,"tag":2338,"props":28057,"children":28058},{"class":2340,"line":500},[28059,28063,28067,28071,28075,28079,28083],{"type":21,"tag":2338,"props":28060,"children":28061},{"style":2345},[28062],{"type":26,"value":3254},{"type":21,"tag":2338,"props":28064,"children":28065},{"style":3219},[28066],{"type":26,"value":3259},{"type":21,"tag":2338,"props":28068,"children":28069},{"style":2345},[28070],{"type":26,"value":27450},{"type":21,"tag":2338,"props":28072,"children":28073},{"style":3284},[28074],{"type":26,"value":27455},{"type":21,"tag":2338,"props":28076,"children":28077},{"style":3219},[28078],{"type":26,"value":3259},{"type":21,"tag":2338,"props":28080,"children":28081},{"style":2374},[28082],{"type":26,"value":20756},{"type":21,"tag":2338,"props":28084,"children":28085},{"style":2345},[28086],{"type":26,"value":3319},{"type":21,"tag":2338,"props":28088,"children":28089},{"class":2340,"line":3535},[28090,28094,28098],{"type":21,"tag":2338,"props":28091,"children":28092},{"style":2345},[28093],{"type":26,"value":3272},{"type":21,"tag":2338,"props":28095,"children":28096},{"style":3219},[28097],{"type":26,"value":3259},{"type":21,"tag":2338,"props":28099,"children":28100},{"style":2345},[28101],{"type":26,"value":28102}," service.least_busy(\n",{"type":21,"tag":2338,"props":28104,"children":28105},{"class":2340,"line":3583},[28106,28110,28114,28118],{"type":21,"tag":2338,"props":28107,"children":28108},{"style":3284},[28109],{"type":26,"value":27492},{"type":21,"tag":2338,"props":28111,"children":28112},{"style":3219},[28113],{"type":26,"value":3259},{"type":21,"tag":2338,"props":28115,"children":28116},{"style":2363},[28117],{"type":26,"value":3296},{"type":21,"tag":2338,"props":28119,"children":28120},{"style":2345},[28121],{"type":26,"value":2442},{"type":21,"tag":2338,"props":28123,"children":28124},{"class":2340,"line":3625},[28125,28129,28133,28137],{"type":21,"tag":2338,"props":28126,"children":28127},{"style":3284},[28128],{"type":26,"value":27512},{"type":21,"tag":2338,"props":28130,"children":28131},{"style":3219},[28132],{"type":26,"value":3259},{"type":21,"tag":2338,"props":28134,"children":28135},{"style":2363},[28136],{"type":26,"value":3314},{"type":21,"tag":2338,"props":28138,"children":28139},{"style":2345},[28140],{"type":26,"value":2442},{"type":21,"tag":2338,"props":28142,"children":28143},{"class":2340,"line":4652},[28144,28148,28152],{"type":21,"tag":2338,"props":28145,"children":28146},{"style":3284},[28147],{"type":26,"value":27532},{"type":21,"tag":2338,"props":28149,"children":28150},{"style":3219},[28151],{"type":26,"value":3259},{"type":21,"tag":2338,"props":28153,"children":28154},{"style":2363},[28155],{"type":26,"value":28156},"2\n",{"type":21,"tag":2338,"props":28158,"children":28159},{"class":2340,"line":4671},[28160],{"type":21,"tag":2338,"props":28161,"children":28162},{"style":2345},[28163],{"type":26,"value":3319},{"type":21,"tag":2338,"props":28165,"children":28166},{"class":2340,"line":4679},[28167,28171,28175,28179,28184,28188,28192,28196,28200],{"type":21,"tag":2338,"props":28168,"children":28169},{"style":2363},[28170],{"type":26,"value":3334},{"type":21,"tag":2338,"props":28172,"children":28173},{"style":2345},[28174],{"type":26,"value":3339},{"type":21,"tag":2338,"props":28176,"children":28177},{"style":3219},[28178],{"type":26,"value":3344},{"type":21,"tag":2338,"props":28180,"children":28181},{"style":2374},[28182],{"type":26,"value":28183},"\"Submitting to: ",{"type":21,"tag":2338,"props":28185,"children":28186},{"style":2363},[28187],{"type":26,"value":3354},{"type":21,"tag":2338,"props":28189,"children":28190},{"style":2345},[28191],{"type":26,"value":3359},{"type":21,"tag":2338,"props":28193,"children":28194},{"style":2363},[28195],{"type":26,"value":3364},{"type":21,"tag":2338,"props":28197,"children":28198},{"style":2374},[28199],{"type":26,"value":3369},{"type":21,"tag":2338,"props":28201,"children":28202},{"style":2345},[28203],{"type":26,"value":3319},{"type":21,"tag":2338,"props":28205,"children":28206},{"class":2340,"line":4710},[28207],{"type":21,"tag":2338,"props":28208,"children":28209},{"emptyLinePlaceholder":3243},[28210],{"type":26,"value":3246},{"type":21,"tag":2338,"props":28212,"children":28213},{"class":2340,"line":4755},[28214],{"type":21,"tag":2338,"props":28215,"children":28216},{"style":3469},[28217],{"type":26,"value":28218},"# Transpile for the target device\n",{"type":21,"tag":2338,"props":28220,"children":28221},{"class":2340,"line":4794},[28222,28226,28230,28235,28239,28243,28248,28252,28256,28260],{"type":21,"tag":2338,"props":28223,"children":28224},{"style":2345},[28225],{"type":26,"value":5866},{"type":21,"tag":2338,"props":28227,"children":28228},{"style":3219},[28229],{"type":26,"value":3259},{"type":21,"tag":2338,"props":28231,"children":28232},{"style":2345},[28233],{"type":26,"value":28234}," generate_preset_pass_manager(",{"type":21,"tag":2338,"props":28236,"children":28237},{"style":3284},[28238],{"type":26,"value":18490},{"type":21,"tag":2338,"props":28240,"children":28241},{"style":3219},[28242],{"type":26,"value":3259},{"type":21,"tag":2338,"props":28244,"children":28245},{"style":2345},[28246],{"type":26,"value":28247},"backend, ",{"type":21,"tag":2338,"props":28249,"children":28250},{"style":3284},[28251],{"type":26,"value":6296},{"type":21,"tag":2338,"props":28253,"children":28254},{"style":3219},[28255],{"type":26,"value":3259},{"type":21,"tag":2338,"props":28257,"children":28258},{"style":2363},[28259],{"type":26,"value":3575},{"type":21,"tag":2338,"props":28261,"children":28262},{"style":2345},[28263],{"type":26,"value":3319},{"type":21,"tag":2338,"props":28265,"children":28266},{"class":2340,"line":4812},[28267,28272,28276],{"type":21,"tag":2338,"props":28268,"children":28269},{"style":2345},[28270],{"type":26,"value":28271},"isa_qc ",{"type":21,"tag":2338,"props":28273,"children":28274},{"style":3219},[28275],{"type":26,"value":3259},{"type":21,"tag":2338,"props":28277,"children":28278},{"style":2345},[28279],{"type":26,"value":28280}," pm.run(qc)\n",{"type":21,"tag":2338,"props":28282,"children":28283},{"class":2340,"line":4886},[28284],{"type":21,"tag":2338,"props":28285,"children":28286},{"emptyLinePlaceholder":3243},[28287],{"type":26,"value":3246},{"type":21,"tag":2338,"props":28289,"children":28290},{"class":2340,"line":4914},[28291],{"type":21,"tag":2338,"props":28292,"children":28293},{"style":3469},[28294],{"type":26,"value":28295},"# Submit\n",{"type":21,"tag":2338,"props":28297,"children":28298},{"class":2340,"line":4943},[28299,28304,28308,28313,28318,28322],{"type":21,"tag":2338,"props":28300,"children":28301},{"style":2345},[28302],{"type":26,"value":28303},"sampler ",{"type":21,"tag":2338,"props":28305,"children":28306},{"style":3219},[28307],{"type":26,"value":3259},{"type":21,"tag":2338,"props":28309,"children":28310},{"style":2345},[28311],{"type":26,"value":28312}," Sampler(",{"type":21,"tag":2338,"props":28314,"children":28315},{"style":3284},[28316],{"type":26,"value":28317},"mode",{"type":21,"tag":2338,"props":28319,"children":28320},{"style":3219},[28321],{"type":26,"value":3259},{"type":21,"tag":2338,"props":28323,"children":28324},{"style":2345},[28325],{"type":26,"value":28326},"backend)\n",{"type":21,"tag":2338,"props":28328,"children":28329},{"class":2340,"line":4952},[28330,28335,28339,28344,28348,28352,28356],{"type":21,"tag":2338,"props":28331,"children":28332},{"style":2345},[28333],{"type":26,"value":28334},"job ",{"type":21,"tag":2338,"props":28336,"children":28337},{"style":3219},[28338],{"type":26,"value":3259},{"type":21,"tag":2338,"props":28340,"children":28341},{"style":2345},[28342],{"type":26,"value":28343}," sampler.run([isa_qc], ",{"type":21,"tag":2338,"props":28345,"children":28346},{"style":3284},[28347],{"type":26,"value":4144},{"type":21,"tag":2338,"props":28349,"children":28350},{"style":3219},[28351],{"type":26,"value":3259},{"type":21,"tag":2338,"props":28353,"children":28354},{"style":2363},[28355],{"type":26,"value":2501},{"type":21,"tag":2338,"props":28357,"children":28358},{"style":2345},[28359],{"type":26,"value":3319},{"type":21,"tag":2338,"props":28361,"children":28362},{"class":2340,"line":4980},[28363],{"type":21,"tag":2338,"props":28364,"children":28365},{"emptyLinePlaceholder":3243},[28366],{"type":26,"value":3246},{"type":21,"tag":2338,"props":28368,"children":28369},{"class":2340,"line":5011},[28370,28374,28378,28382,28387,28391,28396,28400,28404],{"type":21,"tag":2338,"props":28371,"children":28372},{"style":2363},[28373],{"type":26,"value":3334},{"type":21,"tag":2338,"props":28375,"children":28376},{"style":2345},[28377],{"type":26,"value":3339},{"type":21,"tag":2338,"props":28379,"children":28380},{"style":3219},[28381],{"type":26,"value":3344},{"type":21,"tag":2338,"props":28383,"children":28384},{"style":2374},[28385],{"type":26,"value":28386},"\"Job ID: ",{"type":21,"tag":2338,"props":28388,"children":28389},{"style":2363},[28390],{"type":26,"value":3354},{"type":21,"tag":2338,"props":28392,"children":28393},{"style":2345},[28394],{"type":26,"value":28395},"job.job_id()",{"type":21,"tag":2338,"props":28397,"children":28398},{"style":2363},[28399],{"type":26,"value":3364},{"type":21,"tag":2338,"props":28401,"children":28402},{"style":2374},[28403],{"type":26,"value":3369},{"type":21,"tag":2338,"props":28405,"children":28406},{"style":2345},[28407],{"type":26,"value":3319},{"type":21,"tag":2338,"props":28409,"children":28410},{"class":2340,"line":5033},[28411,28415,28419,28423,28428,28432,28437,28441,28445],{"type":21,"tag":2338,"props":28412,"children":28413},{"style":2363},[28414],{"type":26,"value":3334},{"type":21,"tag":2338,"props":28416,"children":28417},{"style":2345},[28418],{"type":26,"value":3339},{"type":21,"tag":2338,"props":28420,"children":28421},{"style":3219},[28422],{"type":26,"value":3344},{"type":21,"tag":2338,"props":28424,"children":28425},{"style":2374},[28426],{"type":26,"value":28427},"\"Status: ",{"type":21,"tag":2338,"props":28429,"children":28430},{"style":2363},[28431],{"type":26,"value":3354},{"type":21,"tag":2338,"props":28433,"children":28434},{"style":2345},[28435],{"type":26,"value":28436},"job.status()",{"type":21,"tag":2338,"props":28438,"children":28439},{"style":2363},[28440],{"type":26,"value":3364},{"type":21,"tag":2338,"props":28442,"children":28443},{"style":2374},[28444],{"type":26,"value":3369},{"type":21,"tag":2338,"props":28446,"children":28447},{"style":2345},[28448],{"type":26,"value":3319},{"type":21,"tag":2338,"props":28450,"children":28451},{"class":2340,"line":5079},[28452,28456,28460],{"type":21,"tag":2338,"props":28453,"children":28454},{"style":2345},[28455],{"type":26,"value":19355},{"type":21,"tag":2338,"props":28457,"children":28458},{"style":3219},[28459],{"type":26,"value":3259},{"type":21,"tag":2338,"props":28461,"children":28462},{"style":2345},[28463],{"type":26,"value":28464}," job.result()\n",{"type":21,"tag":2338,"props":28466,"children":28467},{"class":2340,"line":5092},[28468,28472,28477,28481],{"type":21,"tag":2338,"props":28469,"children":28470},{"style":2363},[28471],{"type":26,"value":3334},{"type":21,"tag":2338,"props":28473,"children":28474},{"style":2345},[28475],{"type":26,"value":28476},"(result[",{"type":21,"tag":2338,"props":28478,"children":28479},{"style":2363},[28480],{"type":26,"value":5189},{"type":21,"tag":2338,"props":28482,"children":28483},{"style":2345},[28484],{"type":26,"value":28485},"].data.c.get_counts())\n",{"type":21,"tag":29,"props":28487,"children":28489},{"id":28488},"warteschlangenzeiten-verstehen",[28490],{"type":26,"value":28491},"Warteschlangenzeiten verstehen",{"type":21,"tag":22,"props":28493,"children":28494},{},[28495],{"type":26,"value":28496},"Die Warteschlangenzeit ist der häufigste Frustpunkt beim kostenlosen Tarif. Das passiert dabei:",{"type":21,"tag":3137,"props":28498,"children":28499},{},[28500,28505,28518],{"type":21,"tag":3141,"props":28501,"children":28502},{},[28503],{"type":26,"value":28504},"Sie teilen sich die QPU mit allen anderen Open-Plan-Nutzern weltweit",{"type":21,"tag":3141,"props":28506,"children":28507},{},[28508,28510,28516],{"type":26,"value":28509},"Jobs werden pro System in eine Warteschlange gestellt: ",{"type":21,"tag":2097,"props":28511,"children":28513},{"className":28512},[],[28514],{"type":26,"value":28515},"least_busy()",{"type":26,"value":28517}," hilft, die kürzeste Wartezeit zu finden",{"type":21,"tag":3141,"props":28519,"children":28520},{},[28521],{"type":26,"value":28522},"Typische Wartezeit: 5 Minuten bis 2 Stunden, je nach Systemauslastung",{"type":21,"tag":22,"props":28524,"children":28525},{},[28526],{"type":21,"tag":205,"props":28527,"children":28528},{},[28529],{"type":26,"value":28530},"Tipps zur Minimierung der Warteschlangenzeit:",{"type":21,"tag":3137,"props":28532,"children":28533},{},[28534,28539,28552,28557],{"type":21,"tag":3141,"props":28535,"children":28536},{},[28537],{"type":26,"value":28538},"Führen Sie Jobs außerhalb der Stoßzeiten aus (europäischer Morgen = amerikanische Nacht)",{"type":21,"tag":3141,"props":28540,"children":28541},{},[28542,28544,28550],{"type":26,"value":28543},"Verwenden Sie ",{"type":21,"tag":2097,"props":28545,"children":28547},{"className":28546},[],[28548],{"type":26,"value":28549},"service.least_busy()",{"type":26,"value":28551},", anstatt ein bestimmtes System anzusteuern",{"type":21,"tag":3141,"props":28553,"children":28554},{},[28555],{"type":26,"value":28556},"Verwenden Sie für die Entwicklung den Aer-Simulator lokal, und reichen Sie nur zur finalen Validierung auf echter Hardware ein",{"type":21,"tag":3141,"props":28558,"children":28559},{},[28560],{"type":26,"value":28561},"Bündeln Sie mehrere Schaltkreise in einem einzigen Job mithilfe der Listeneingabe von SamplerV2",{"type":21,"tag":29,"props":28563,"children":28565},{"id":28564},"stattdessen-kostenlose-cloud-simulatoren-verwenden",[28566],{"type":26,"value":28567},"Stattdessen kostenlose Cloud-Simulatoren verwenden",{"type":21,"tag":22,"props":28569,"children":28570},{},[28571],{"type":26,"value":28572},"Für die meiste Entwicklungsarbeit sind die von IBM gehosteten Cloud-Simulatoren schneller, als in der Warteschlange für echte Hardware zu warten:",{"type":21,"tag":2328,"props":28574,"children":28576},{"className":3207,"code":28575,"language":3209,"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",[28577],{"type":21,"tag":2097,"props":28578,"children":28579},{"__ignoreMap":7},[28580,28588,28613,28620,28628],{"type":21,"tag":2338,"props":28581,"children":28582},{"class":2340,"line":2341},[28583],{"type":21,"tag":2338,"props":28584,"children":28585},{"style":3469},[28586],{"type":26,"value":28587},"# IBM cloud QASM simulator (up to 32 qubits, no queue)\n",{"type":21,"tag":2338,"props":28589,"children":28590},{"class":2340,"line":173},[28591,28595,28599,28604,28609],{"type":21,"tag":2338,"props":28592,"children":28593},{"style":2345},[28594],{"type":26,"value":3272},{"type":21,"tag":2338,"props":28596,"children":28597},{"style":3219},[28598],{"type":26,"value":3259},{"type":21,"tag":2338,"props":28600,"children":28601},{"style":2345},[28602],{"type":26,"value":28603}," service.backend(",{"type":21,"tag":2338,"props":28605,"children":28606},{"style":2374},[28607],{"type":26,"value":28608},"\"ibmq_qasm_simulator\"",{"type":21,"tag":2338,"props":28610,"children":28611},{"style":2345},[28612],{"type":26,"value":3319},{"type":21,"tag":2338,"props":28614,"children":28615},{"class":2340,"line":2359},[28616],{"type":21,"tag":2338,"props":28617,"children":28618},{"emptyLinePlaceholder":3243},[28619],{"type":26,"value":3246},{"type":21,"tag":2338,"props":28621,"children":28622},{"class":2340,"line":2421},[28623],{"type":21,"tag":2338,"props":28624,"children":28625},{"style":3469},[28626],{"type":26,"value":28627},"# Or use the Statevector simulator (exact simulation)\n",{"type":21,"tag":2338,"props":28629,"children":28630},{"class":2340,"line":2445},[28631,28635,28639,28643,28648],{"type":21,"tag":2338,"props":28632,"children":28633},{"style":2345},[28634],{"type":26,"value":3272},{"type":21,"tag":2338,"props":28636,"children":28637},{"style":3219},[28638],{"type":26,"value":3259},{"type":21,"tag":2338,"props":28640,"children":28641},{"style":2345},[28642],{"type":26,"value":28603},{"type":21,"tag":2338,"props":28644,"children":28645},{"style":2374},[28646],{"type":26,"value":28647},"\"simulator_statevector\"",{"type":21,"tag":2338,"props":28649,"children":28650},{"style":2345},[28651],{"type":26,"value":3319},{"type":21,"tag":22,"props":28653,"children":28654},{},[28655],{"type":26,"value":28656},"Diese Simulatoren haben keine Warteschlangenzeit und laufen sofort. Verwenden Sie echte QPUs, wenn Sie tatsächliche Rauscheigenschaften benötigen oder auf echter Hardware Benchmarks durchführen möchten.",{"type":21,"tag":29,"props":28658,"children":28660},{"id":28659},"hlquantum-mit-ibm-quantum-verwenden",[28661],{"type":26,"value":28662},"HLQuantum mit IBM Quantum verwenden",{"type":21,"tag":22,"props":28664,"children":28665},{},[28666],{"type":26,"value":28667},"Wenn Sie mehrere SDKs verwenden, bietet HLQuantum eine sauberere Schnittstelle zur IBM-Hardware:",{"type":21,"tag":2328,"props":28669,"children":28671},{"className":3207,"code":28670,"language":3209,"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",[28672],{"type":21,"tag":2097,"props":28673,"children":28674},{"__ignoreMap":7},[28675,28694,28701,28724,28755,28762,28770,28786,28794,28814,28841,28861,28878,28885],{"type":21,"tag":2338,"props":28676,"children":28677},{"class":2340,"line":2341},[28678,28682,28686,28690],{"type":21,"tag":2338,"props":28679,"children":28680},{"style":3219},[28681],{"type":26,"value":3232},{"type":21,"tag":2338,"props":28683,"children":28684},{"style":2345},[28685],{"type":26,"value":19323},{"type":21,"tag":2338,"props":28687,"children":28688},{"style":3219},[28689],{"type":26,"value":4299},{"type":21,"tag":2338,"props":28691,"children":28692},{"style":2345},[28693],{"type":26,"value":19332},{"type":21,"tag":2338,"props":28695,"children":28696},{"class":2340,"line":173},[28697],{"type":21,"tag":2338,"props":28698,"children":28699},{"emptyLinePlaceholder":3243},[28700],{"type":26,"value":3246},{"type":21,"tag":2338,"props":28702,"children":28703},{"class":2340,"line":2359},[28704,28708,28712,28716,28720],{"type":21,"tag":2338,"props":28705,"children":28706},{"style":2345},[28707],{"type":26,"value":7403},{"type":21,"tag":2338,"props":28709,"children":28710},{"style":3219},[28711],{"type":26,"value":3259},{"type":21,"tag":2338,"props":28713,"children":28714},{"style":2345},[28715],{"type":26,"value":21387},{"type":21,"tag":2338,"props":28717,"children":28718},{"style":2363},[28719],{"type":26,"value":2437},{"type":21,"tag":2338,"props":28721,"children":28722},{"style":2345},[28723],{"type":26,"value":3319},{"type":21,"tag":2338,"props":28725,"children":28726},{"class":2340,"line":2421},[28727,28731,28735,28739,28743,28747,28751],{"type":21,"tag":2338,"props":28728,"children":28729},{"style":2345},[28730],{"type":26,"value":7419},{"type":21,"tag":2338,"props":28732,"children":28733},{"style":2363},[28734],{"type":26,"value":5189},{"type":21,"tag":2338,"props":28736,"children":28737},{"style":2345},[28738],{"type":26,"value":21411},{"type":21,"tag":2338,"props":28740,"children":28741},{"style":2363},[28742],{"type":26,"value":5189},{"type":21,"tag":2338,"props":28744,"children":28745},{"style":2345},[28746],{"type":26,"value":1375},{"type":21,"tag":2338,"props":28748,"children":28749},{"style":2363},[28750],{"type":26,"value":3575},{"type":21,"tag":2338,"props":28752,"children":28753},{"style":2345},[28754],{"type":26,"value":21428},{"type":21,"tag":2338,"props":28756,"children":28757},{"class":2340,"line":2445},[28758],{"type":21,"tag":2338,"props":28759,"children":28760},{"emptyLinePlaceholder":3243},[28761],{"type":26,"value":3246},{"type":21,"tag":2338,"props":28763,"children":28764},{"class":2340,"line":877},[28765],{"type":21,"tag":2338,"props":28766,"children":28767},{"style":3469},[28768],{"type":26,"value":28769},"# Run on IBM's free QPU\n",{"type":21,"tag":2338,"props":28771,"children":28772},{"class":2340,"line":196},[28773,28777,28781],{"type":21,"tag":2338,"props":28774,"children":28775},{"style":2345},[28776],{"type":26,"value":19355},{"type":21,"tag":2338,"props":28778,"children":28779},{"style":3219},[28780],{"type":26,"value":3259},{"type":21,"tag":2338,"props":28782,"children":28783},{"style":2345},[28784],{"type":26,"value":28785}," hlq.run(\n",{"type":21,"tag":2338,"props":28787,"children":28788},{"class":2340,"line":951},[28789],{"type":21,"tag":2338,"props":28790,"children":28791},{"style":2345},[28792],{"type":26,"value":28793},"    qc,\n",{"type":21,"tag":2338,"props":28795,"children":28796},{"class":2340,"line":16},[28797,28801,28805,28810],{"type":21,"tag":2338,"props":28798,"children":28799},{"style":3284},[28800],{"type":26,"value":22894},{"type":21,"tag":2338,"props":28802,"children":28803},{"style":3219},[28804],{"type":26,"value":3259},{"type":21,"tag":2338,"props":28806,"children":28807},{"style":2374},[28808],{"type":26,"value":28809},"\"qiskit\"",{"type":21,"tag":2338,"props":28811,"children":28812},{"style":2345},[28813],{"type":26,"value":2442},{"type":21,"tag":2338,"props":28815,"children":28816},{"class":2340,"line":3465},[28817,28822,28826,28831,28836],{"type":21,"tag":2338,"props":28818,"children":28819},{"style":3284},[28820],{"type":26,"value":28821},"    device",{"type":21,"tag":2338,"props":28823,"children":28824},{"style":3219},[28825],{"type":26,"value":3259},{"type":21,"tag":2338,"props":28827,"children":28828},{"style":2374},[28829],{"type":26,"value":28830},"\"ibm_sherbrooke\"",{"type":21,"tag":2338,"props":28832,"children":28833},{"style":2345},[28834],{"type":26,"value":28835},",  ",{"type":21,"tag":2338,"props":28837,"children":28838},{"style":3469},[28839],{"type":26,"value":28840},"# or use \"auto\" for least busy\n",{"type":21,"tag":2338,"props":28842,"children":28843},{"class":2340,"line":3475},[28844,28849,28853,28857],{"type":21,"tag":2338,"props":28845,"children":28846},{"style":3284},[28847],{"type":26,"value":28848},"    shots",{"type":21,"tag":2338,"props":28850,"children":28851},{"style":3219},[28852],{"type":26,"value":3259},{"type":21,"tag":2338,"props":28854,"children":28855},{"style":2363},[28856],{"type":26,"value":2501},{"type":21,"tag":2338,"props":28858,"children":28859},{"style":2345},[28860],{"type":26,"value":2442},{"type":21,"tag":2338,"props":28862,"children":28863},{"class":2340,"line":500},[28864,28869,28873],{"type":21,"tag":2338,"props":28865,"children":28866},{"style":3284},[28867],{"type":26,"value":28868},"    error_mitigation",{"type":21,"tag":2338,"props":28870,"children":28871},{"style":3219},[28872],{"type":26,"value":3259},{"type":21,"tag":2338,"props":28874,"children":28875},{"style":2374},[28876],{"type":26,"value":28877},"\"zne\"\n",{"type":21,"tag":2338,"props":28879,"children":28880},{"class":2340,"line":3535},[28881],{"type":21,"tag":2338,"props":28882,"children":28883},{"style":2345},[28884],{"type":26,"value":3319},{"type":21,"tag":2338,"props":28886,"children":28887},{"class":2340,"line":3583},[28888,28892],{"type":21,"tag":2338,"props":28889,"children":28890},{"style":2363},[28891],{"type":26,"value":3334},{"type":21,"tag":2338,"props":28893,"children":28894},{"style":2345},[28895],{"type":26,"value":28896},"(result)\n",{"type":21,"tag":22,"props":28898,"children":28899},{},[28900,28902,28906],{"type":26,"value":28901},"HLQuantum übernimmt automatisch die Transpilation, die Job-Einreichung und das Parsen der Ergebnisse. Weitere Informationen zur erweiterten Konfiguration finden Sie im vollständigen ",{"type":21,"tag":41,"props":28903,"children":28904},{"href":7112},[28905],{"type":26,"value":8824},{"type":26,"value":825},{"type":21,"tag":2712,"props":28908,"children":28909},{},[28910],{"type":26,"value":2716},{"title":7,"searchDepth":173,"depth":173,"links":28912},[28913,28914,28915,28916,28922,28923,28924],{"id":27132,"depth":173,"text":27135},{"id":27208,"depth":173,"text":27211},{"id":27283,"depth":173,"text":27286},{"id":27646,"depth":173,"text":27649,"children":28917},[28918,28919,28920,28921],{"id":27652,"depth":2359,"text":27655},{"id":27670,"depth":2359,"text":27673},{"id":27703,"depth":2359,"text":27706},{"id":27838,"depth":2359,"text":27841},{"id":28488,"depth":173,"text":28491},{"id":28564,"depth":173,"text":28567},{"id":28659,"depth":173,"text":28662},"content:de:blog:ibm-quantum-free-tier-2026.md","de\u002Fblog\u002Fibm-quantum-free-tier-2026.md","de\u002Fblog\u002Fibm-quantum-free-tier-2026",{"_path":28929,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":28930,"description":28931,"date":27120,"author":11,"tags":28932,"readingTime":3475,"body":28933,"_type":180,"_id":31665,"_source":182,"_file":31666,"_stem":31667,"_extension":185},"\u002Fde\u002Fblog\u002Fqaoa-max-cut-tutorial","QAOA erklärt: Max-Cut Schritt für Schritt lösen","Eine praxisnahe Anleitung zum Quantum Approximate Optimization Algorithm angewendet auf das Max-Cut-Graphenproblem — mit vollständigem Python-Code in Qiskit, PennyLane und HLQuantum.",[7169,2041,15,13806],{"type":18,"children":28934,"toc":31655},[28935,28940,28945,28951,28956,28961,28969,28988,28994,28999,29036,29064,29070,30209,30229,30235,30240,30838,30843,30851,30869,30875,30880,31178,31183,31388,31394,31414,31508,31535,31541,31549,31567,31575,31588,31605,31611,31651],{"type":21,"tag":22,"props":28936,"children":28937},{},[28938],{"type":26,"value":28939},"QAOA (Quantum Approximate Optimization Algorithm) ist einer der am meisten gehypten Quantenalgorithmen der nahen Zukunft — und das aus gutem Grund. Er ist ein ernsthafter Kandidat für einen Quantenvorteil bei kombinatorischen Optimierungsproblemen, er läuft auf heutiger NISQ-Hardware, und er ist zugänglich genug, um ihn an einem Nachmittag zu implementieren.",{"type":21,"tag":22,"props":28941,"children":28942},{},[28943],{"type":26,"value":28944},"Diese Anleitung baut die vollständige QAOA-Pipeline von Grund auf, mit Max-Cut als Beispielproblem. Am Ende wirst du verstehen, was QAOA tatsächlich tut, wie man es implementiert und wann es sich lohnt, es einzusetzen.",{"type":21,"tag":29,"props":28946,"children":28948},{"id":28947},"was-ist-max-cut",[28949],{"type":26,"value":28950},"Was ist Max-Cut?",{"type":21,"tag":22,"props":28952,"children":28953},{},[28954],{"type":26,"value":28955},"Max-Cut ist ein Graphenpartitionierungsproblem: Gegeben ist ein Graph, und die Knoten sollen in zwei Gruppen (0 und 1) aufgeteilt werden, um die Anzahl der Kanten zu maximieren, die zwischen den Gruppen verlaufen. Es ist im Allgemeinen NP-schwer, tritt im VLSI-Chipdesign, beim Clustering und in der Netzwerkanalyse auf und lässt sich sauber auf Quantenhardware abbilden.",{"type":21,"tag":22,"props":28957,"children":28958},{},[28959],{"type":26,"value":28960},"Hier ist ein einfacher Graph mit 4 Knoten:",{"type":21,"tag":2328,"props":28962,"children":28964},{"code":28963},"0 --- 1\n|   \\ |\n3 --- 2\n",[28965],{"type":21,"tag":2097,"props":28966,"children":28967},{"__ignoreMap":7},[28968],{"type":26,"value":28963},{"type":21,"tag":22,"props":28970,"children":28971},{},[28972,28974,28980,28981,28986],{"type":26,"value":28973},"Der maximale Schnitt dieses Graphen ist 4 (die Kanten 0-1, 1-2, 2-3, 3-0 verlaufen alle über die Grenze). Unser Ziel: die Bitfolge ",{"type":21,"tag":2097,"props":28975,"children":28977},{"className":28976},[],[28978],{"type":26,"value":28979},"0101",{"type":26,"value":18833},{"type":21,"tag":2097,"props":28982,"children":28984},{"className":28983},[],[28985],{"type":26,"value":17452},{"type":26,"value":28987}," finden, die dies erreicht.",{"type":21,"tag":29,"props":28989,"children":28991},{"id":28990},"die-idee-hinter-qaoa",[28992],{"type":26,"value":28993},"Die Idee hinter QAOA",{"type":21,"tag":22,"props":28995,"children":28996},{},[28997],{"type":26,"value":28998},"QAOA ist ein variationeller Hybridalgorithmus. Er wechselt zwischen zwei parametrisierten Operationen ab:",{"type":21,"tag":7028,"props":29000,"children":29001},{},[29002,29019],{"type":21,"tag":3141,"props":29003,"children":29004},{},[29005,29010,29011,29017],{"type":21,"tag":205,"props":29006,"children":29007},{},[29008],{"type":26,"value":29009},"Problem-Unitary",{"type":26,"value":1367},{"type":21,"tag":2097,"props":29012,"children":29014},{"className":29013},[],[29015],{"type":26,"value":29016},"U_C(γ)",{"type":26,"value":29018}," — kodiert die Kostenfunktion (Kantenübergänge) als Phasen-Kickback",{"type":21,"tag":3141,"props":29020,"children":29021},{},[29022,29027,29028,29034],{"type":21,"tag":205,"props":29023,"children":29024},{},[29025],{"type":26,"value":29026},"Mischer-Unitary",{"type":26,"value":1367},{"type":21,"tag":2097,"props":29029,"children":29031},{"className":29030},[],[29032],{"type":26,"value":29033},"U_B(β)",{"type":26,"value":29035}," — mischt zwischen Lösungen (X-Rotationen)",{"type":21,"tag":22,"props":29037,"children":29038},{},[29039,29041,29046,29048,29054,29056,29062],{"type":26,"value":29040},"Mit ",{"type":21,"tag":2097,"props":29042,"children":29044},{"className":29043},[],[29045],{"type":26,"value":22},{"type":26,"value":29047}," Schichten dieser abwechselnden Unitaries bereitet QAOA einen Quantenzustand vor, dessen Messung wahrscheinlich eine gute Lösung liefert. Ein klassischer Optimierer stimmt die ",{"type":21,"tag":2097,"props":29049,"children":29051},{"className":29050},[],[29052],{"type":26,"value":29053},"2p",{"type":26,"value":29055}," Winkel ",{"type":21,"tag":2097,"props":29057,"children":29059},{"className":29058},[],[29060],{"type":26,"value":29061},"(γ, β)",{"type":26,"value":29063}," so ab, dass der erwartete Schnittwert maximiert wird.",{"type":21,"tag":29,"props":29065,"children":29067},{"id":29066},"qaoa-mit-pennylane-aufbauen",[29068],{"type":26,"value":29069},"QAOA mit PennyLane aufbauen",{"type":21,"tag":2328,"props":29071,"children":29073},{"code":29072,"language":3209,"meta":7,"className":3207,"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",[29074],{"type":21,"tag":2097,"props":29075,"children":29076},{"__ignoreMap":7},[29077,29096,29115,29136,29143,29151,29234,29249,29256,29291,29298,29315,29323,29344,29364,29398,29417,29424,29441,29449,29472,29505,29512,29523,29552,29569,29586,29594,29617,29637,29645,29670,29678,29686,29713,29720,29748,29756,29773,29790,29815,29865,29927,29954,29975,29982,29990,30006,30044,30077,30111,30118,30159],{"type":21,"tag":2338,"props":29078,"children":29079},{"class":2340,"line":2341},[29080,29084,29088,29092],{"type":21,"tag":2338,"props":29081,"children":29082},{"style":3219},[29083],{"type":26,"value":3232},{"type":21,"tag":2338,"props":29085,"children":29086},{"style":2345},[29087],{"type":26,"value":14113},{"type":21,"tag":2338,"props":29089,"children":29090},{"style":3219},[29091],{"type":26,"value":4299},{"type":21,"tag":2338,"props":29093,"children":29094},{"style":2345},[29095],{"type":26,"value":14122},{"type":21,"tag":2338,"props":29097,"children":29098},{"class":2340,"line":173},[29099,29103,29107,29111],{"type":21,"tag":2338,"props":29100,"children":29101},{"style":3219},[29102],{"type":26,"value":3232},{"type":21,"tag":2338,"props":29104,"children":29105},{"style":2345},[29106],{"type":26,"value":4294},{"type":21,"tag":2338,"props":29108,"children":29109},{"style":3219},[29110],{"type":26,"value":4299},{"type":21,"tag":2338,"props":29112,"children":29113},{"style":2345},[29114],{"type":26,"value":4304},{"type":21,"tag":2338,"props":29116,"children":29117},{"class":2340,"line":2359},[29118,29122,29127,29131],{"type":21,"tag":2338,"props":29119,"children":29120},{"style":3219},[29121],{"type":26,"value":3222},{"type":21,"tag":2338,"props":29123,"children":29124},{"style":2345},[29125],{"type":26,"value":29126}," scipy.optimize ",{"type":21,"tag":2338,"props":29128,"children":29129},{"style":3219},[29130],{"type":26,"value":3232},{"type":21,"tag":2338,"props":29132,"children":29133},{"style":2345},[29134],{"type":26,"value":29135}," minimize\n",{"type":21,"tag":2338,"props":29137,"children":29138},{"class":2340,"line":2421},[29139],{"type":21,"tag":2338,"props":29140,"children":29141},{"emptyLinePlaceholder":3243},[29142],{"type":26,"value":3246},{"type":21,"tag":2338,"props":29144,"children":29145},{"class":2340,"line":2445},[29146],{"type":21,"tag":2338,"props":29147,"children":29148},{"style":3469},[29149],{"type":26,"value":29150},"# Graph edges\n",{"type":21,"tag":2338,"props":29152,"children":29153},{"class":2340,"line":877},[29154,29159,29163,29168,29172,29176,29180,29185,29189,29193,29197,29201,29205,29209,29213,29217,29221,29225,29229],{"type":21,"tag":2338,"props":29155,"children":29156},{"style":2345},[29157],{"type":26,"value":29158},"edges ",{"type":21,"tag":2338,"props":29160,"children":29161},{"style":3219},[29162],{"type":26,"value":3259},{"type":21,"tag":2338,"props":29164,"children":29165},{"style":2345},[29166],{"type":26,"value":29167}," [(",{"type":21,"tag":2338,"props":29169,"children":29170},{"style":2363},[29171],{"type":26,"value":5189},{"type":21,"tag":2338,"props":29173,"children":29174},{"style":2345},[29175],{"type":26,"value":1375},{"type":21,"tag":2338,"props":29177,"children":29178},{"style":2363},[29179],{"type":26,"value":3575},{"type":21,"tag":2338,"props":29181,"children":29182},{"style":2345},[29183],{"type":26,"value":29184},"), (",{"type":21,"tag":2338,"props":29186,"children":29187},{"style":2363},[29188],{"type":26,"value":3575},{"type":21,"tag":2338,"props":29190,"children":29191},{"style":2345},[29192],{"type":26,"value":1375},{"type":21,"tag":2338,"props":29194,"children":29195},{"style":2363},[29196],{"type":26,"value":2437},{"type":21,"tag":2338,"props":29198,"children":29199},{"style":2345},[29200],{"type":26,"value":29184},{"type":21,"tag":2338,"props":29202,"children":29203},{"style":2363},[29204],{"type":26,"value":2437},{"type":21,"tag":2338,"props":29206,"children":29207},{"style":2345},[29208],{"type":26,"value":1375},{"type":21,"tag":2338,"props":29210,"children":29211},{"style":2363},[29212],{"type":26,"value":6532},{"type":21,"tag":2338,"props":29214,"children":29215},{"style":2345},[29216],{"type":26,"value":29184},{"type":21,"tag":2338,"props":29218,"children":29219},{"style":2363},[29220],{"type":26,"value":6532},{"type":21,"tag":2338,"props":29222,"children":29223},{"style":2345},[29224],{"type":26,"value":1375},{"type":21,"tag":2338,"props":29226,"children":29227},{"style":2363},[29228],{"type":26,"value":5189},{"type":21,"tag":2338,"props":29230,"children":29231},{"style":2345},[29232],{"type":26,"value":29233},")]\n",{"type":21,"tag":2338,"props":29235,"children":29236},{"class":2340,"line":196},[29237,29241,29245],{"type":21,"tag":2338,"props":29238,"children":29239},{"style":2345},[29240],{"type":26,"value":14206},{"type":21,"tag":2338,"props":29242,"children":29243},{"style":3219},[29244],{"type":26,"value":3259},{"type":21,"tag":2338,"props":29246,"children":29247},{"style":2363},[29248],{"type":26,"value":12488},{"type":21,"tag":2338,"props":29250,"children":29251},{"class":2340,"line":951},[29252],{"type":21,"tag":2338,"props":29253,"children":29254},{"emptyLinePlaceholder":3243},[29255],{"type":26,"value":3246},{"type":21,"tag":2338,"props":29257,"children":29258},{"class":2340,"line":16},[29259,29263,29267,29271,29275,29279,29283,29287],{"type":21,"tag":2338,"props":29260,"children":29261},{"style":2345},[29262],{"type":26,"value":14246},{"type":21,"tag":2338,"props":29264,"children":29265},{"style":3219},[29266],{"type":26,"value":3259},{"type":21,"tag":2338,"props":29268,"children":29269},{"style":2345},[29270],{"type":26,"value":14255},{"type":21,"tag":2338,"props":29272,"children":29273},{"style":2374},[29274],{"type":26,"value":14260},{"type":21,"tag":2338,"props":29276,"children":29277},{"style":2345},[29278],{"type":26,"value":1375},{"type":21,"tag":2338,"props":29280,"children":29281},{"style":3284},[29282],{"type":26,"value":14269},{"type":21,"tag":2338,"props":29284,"children":29285},{"style":3219},[29286],{"type":26,"value":3259},{"type":21,"tag":2338,"props":29288,"children":29289},{"style":2345},[29290],{"type":26,"value":14278},{"type":21,"tag":2338,"props":29292,"children":29293},{"class":2340,"line":3465},[29294],{"type":21,"tag":2338,"props":29295,"children":29296},{"emptyLinePlaceholder":3243},[29297],{"type":26,"value":3246},{"type":21,"tag":2338,"props":29299,"children":29300},{"class":2340,"line":3475},[29301,29305,29310],{"type":21,"tag":2338,"props":29302,"children":29303},{"style":3219},[29304],{"type":26,"value":4382},{"type":21,"tag":2338,"props":29306,"children":29307},{"style":4385},[29308],{"type":26,"value":29309}," cost_unitary",{"type":21,"tag":2338,"props":29311,"children":29312},{"style":2345},[29313],{"type":26,"value":29314},"(gamma):\n",{"type":21,"tag":2338,"props":29316,"children":29317},{"class":2340,"line":500},[29318],{"type":21,"tag":2338,"props":29319,"children":29320},{"style":2374},[29321],{"type":26,"value":29322},"    \"\"\"Encode the Max-Cut cost into phases.\"\"\"\n",{"type":21,"tag":2338,"props":29324,"children":29325},{"class":2340,"line":3535},[29326,29330,29335,29339],{"type":21,"tag":2338,"props":29327,"children":29328},{"style":3219},[29329],{"type":26,"value":4761},{"type":21,"tag":2338,"props":29331,"children":29332},{"style":2345},[29333],{"type":26,"value":29334}," u, v ",{"type":21,"tag":2338,"props":29336,"children":29337},{"style":3219},[29338],{"type":26,"value":3522},{"type":21,"tag":2338,"props":29340,"children":29341},{"style":2345},[29342],{"type":26,"value":29343}," edges:\n",{"type":21,"tag":2338,"props":29345,"children":29346},{"class":2340,"line":3583},[29347,29351,29355,29359],{"type":21,"tag":2338,"props":29348,"children":29349},{"style":2345},[29350],{"type":26,"value":26683},{"type":21,"tag":2338,"props":29352,"children":29353},{"style":3284},[29354],{"type":26,"value":14269},{"type":21,"tag":2338,"props":29356,"children":29357},{"style":3219},[29358],{"type":26,"value":3259},{"type":21,"tag":2338,"props":29360,"children":29361},{"style":2345},[29362],{"type":26,"value":29363},"[u, v])\n",{"type":21,"tag":2338,"props":29365,"children":29366},{"class":2340,"line":3625},[29367,29372,29376,29380,29385,29389,29393],{"type":21,"tag":2338,"props":29368,"children":29369},{"style":2345},[29370],{"type":26,"value":29371},"        qml.RZ(",{"type":21,"tag":2338,"props":29373,"children":29374},{"style":2363},[29375],{"type":26,"value":2437},{"type":21,"tag":2338,"props":29377,"children":29378},{"style":3219},[29379],{"type":26,"value":8366},{"type":21,"tag":2338,"props":29381,"children":29382},{"style":2345},[29383],{"type":26,"value":29384}," gamma, ",{"type":21,"tag":2338,"props":29386,"children":29387},{"style":3284},[29388],{"type":26,"value":14269},{"type":21,"tag":2338,"props":29390,"children":29391},{"style":3219},[29392],{"type":26,"value":3259},{"type":21,"tag":2338,"props":29394,"children":29395},{"style":2345},[29396],{"type":26,"value":29397},"v)\n",{"type":21,"tag":2338,"props":29399,"children":29400},{"class":2340,"line":4652},[29401,29405,29409,29413],{"type":21,"tag":2338,"props":29402,"children":29403},{"style":2345},[29404],{"type":26,"value":26683},{"type":21,"tag":2338,"props":29406,"children":29407},{"style":3284},[29408],{"type":26,"value":14269},{"type":21,"tag":2338,"props":29410,"children":29411},{"style":3219},[29412],{"type":26,"value":3259},{"type":21,"tag":2338,"props":29414,"children":29415},{"style":2345},[29416],{"type":26,"value":29363},{"type":21,"tag":2338,"props":29418,"children":29419},{"class":2340,"line":4671},[29420],{"type":21,"tag":2338,"props":29421,"children":29422},{"emptyLinePlaceholder":3243},[29423],{"type":26,"value":3246},{"type":21,"tag":2338,"props":29425,"children":29426},{"class":2340,"line":4679},[29427,29431,29436],{"type":21,"tag":2338,"props":29428,"children":29429},{"style":3219},[29430],{"type":26,"value":4382},{"type":21,"tag":2338,"props":29432,"children":29433},{"style":4385},[29434],{"type":26,"value":29435}," mixer_unitary",{"type":21,"tag":2338,"props":29437,"children":29438},{"style":2345},[29439],{"type":26,"value":29440},"(beta):\n",{"type":21,"tag":2338,"props":29442,"children":29443},{"class":2340,"line":4710},[29444],{"type":21,"tag":2338,"props":29445,"children":29446},{"style":2374},[29447],{"type":26,"value":29448},"    \"\"\"Apply X-rotation mixer to all qubits.\"\"\"\n",{"type":21,"tag":2338,"props":29450,"children":29451},{"class":2340,"line":4755},[29452,29456,29460,29464,29468],{"type":21,"tag":2338,"props":29453,"children":29454},{"style":3219},[29455],{"type":26,"value":4761},{"type":21,"tag":2338,"props":29457,"children":29458},{"style":2345},[29459],{"type":26,"value":4766},{"type":21,"tag":2338,"props":29461,"children":29462},{"style":3219},[29463],{"type":26,"value":3522},{"type":21,"tag":2338,"props":29465,"children":29466},{"style":2363},[29467],{"type":26,"value":3527},{"type":21,"tag":2338,"props":29469,"children":29470},{"style":2345},[29471],{"type":26,"value":26618},{"type":21,"tag":2338,"props":29473,"children":29474},{"class":2340,"line":4794},[29475,29480,29484,29488,29493,29497,29501],{"type":21,"tag":2338,"props":29476,"children":29477},{"style":2345},[29478],{"type":26,"value":29479},"        qml.RX(",{"type":21,"tag":2338,"props":29481,"children":29482},{"style":2363},[29483],{"type":26,"value":2437},{"type":21,"tag":2338,"props":29485,"children":29486},{"style":3219},[29487],{"type":26,"value":8366},{"type":21,"tag":2338,"props":29489,"children":29490},{"style":2345},[29491],{"type":26,"value":29492}," beta, ",{"type":21,"tag":2338,"props":29494,"children":29495},{"style":3284},[29496],{"type":26,"value":14269},{"type":21,"tag":2338,"props":29498,"children":29499},{"style":3219},[29500],{"type":26,"value":3259},{"type":21,"tag":2338,"props":29502,"children":29503},{"style":2345},[29504],{"type":26,"value":26639},{"type":21,"tag":2338,"props":29506,"children":29507},{"class":2340,"line":4812},[29508],{"type":21,"tag":2338,"props":29509,"children":29510},{"emptyLinePlaceholder":3243},[29511],{"type":26,"value":3246},{"type":21,"tag":2338,"props":29513,"children":29514},{"class":2340,"line":4886},[29515,29519],{"type":21,"tag":2338,"props":29516,"children":29517},{"style":4385},[29518],{"type":26,"value":14293},{"type":21,"tag":2338,"props":29520,"children":29521},{"style":2345},[29522],{"type":26,"value":14298},{"type":21,"tag":2338,"props":29524,"children":29525},{"class":2340,"line":4914},[29526,29530,29535,29540,29544,29548],{"type":21,"tag":2338,"props":29527,"children":29528},{"style":3219},[29529],{"type":26,"value":4382},{"type":21,"tag":2338,"props":29531,"children":29532},{"style":4385},[29533],{"type":26,"value":29534}," qaoa_circuit",{"type":21,"tag":2338,"props":29536,"children":29537},{"style":2345},[29538],{"type":26,"value":29539},"(params, p",{"type":21,"tag":2338,"props":29541,"children":29542},{"style":3219},[29543],{"type":26,"value":3259},{"type":21,"tag":2338,"props":29545,"children":29546},{"style":2363},[29547],{"type":26,"value":3575},{"type":21,"tag":2338,"props":29549,"children":29550},{"style":2345},[29551],{"type":26,"value":4435},{"type":21,"tag":2338,"props":29553,"children":29554},{"class":2340,"line":4943},[29555,29560,29564],{"type":21,"tag":2338,"props":29556,"children":29557},{"style":2345},[29558],{"type":26,"value":29559},"    gammas ",{"type":21,"tag":2338,"props":29561,"children":29562},{"style":3219},[29563],{"type":26,"value":3259},{"type":21,"tag":2338,"props":29565,"children":29566},{"style":2345},[29567],{"type":26,"value":29568}," params[:p]\n",{"type":21,"tag":2338,"props":29570,"children":29571},{"class":2340,"line":4952},[29572,29577,29581],{"type":21,"tag":2338,"props":29573,"children":29574},{"style":2345},[29575],{"type":26,"value":29576},"    betas ",{"type":21,"tag":2338,"props":29578,"children":29579},{"style":3219},[29580],{"type":26,"value":3259},{"type":21,"tag":2338,"props":29582,"children":29583},{"style":2345},[29584],{"type":26,"value":29585}," params[p:]\n",{"type":21,"tag":2338,"props":29587,"children":29588},{"class":2340,"line":4980},[29589],{"type":21,"tag":2338,"props":29590,"children":29591},{"style":3469},[29592],{"type":26,"value":29593},"    # Start in uniform superposition\n",{"type":21,"tag":2338,"props":29595,"children":29596},{"class":2340,"line":5011},[29597,29601,29605,29609,29613],{"type":21,"tag":2338,"props":29598,"children":29599},{"style":3219},[29600],{"type":26,"value":4761},{"type":21,"tag":2338,"props":29602,"children":29603},{"style":2345},[29604],{"type":26,"value":4766},{"type":21,"tag":2338,"props":29606,"children":29607},{"style":3219},[29608],{"type":26,"value":3522},{"type":21,"tag":2338,"props":29610,"children":29611},{"style":2363},[29612],{"type":26,"value":3527},{"type":21,"tag":2338,"props":29614,"children":29615},{"style":2345},[29616],{"type":26,"value":26618},{"type":21,"tag":2338,"props":29618,"children":29619},{"class":2340,"line":5033},[29620,29625,29629,29633],{"type":21,"tag":2338,"props":29621,"children":29622},{"style":2345},[29623],{"type":26,"value":29624},"        qml.Hadamard(",{"type":21,"tag":2338,"props":29626,"children":29627},{"style":3284},[29628],{"type":26,"value":14269},{"type":21,"tag":2338,"props":29630,"children":29631},{"style":3219},[29632],{"type":26,"value":3259},{"type":21,"tag":2338,"props":29634,"children":29635},{"style":2345},[29636],{"type":26,"value":26639},{"type":21,"tag":2338,"props":29638,"children":29639},{"class":2340,"line":5079},[29640],{"type":21,"tag":2338,"props":29641,"children":29642},{"style":3469},[29643],{"type":26,"value":29644},"    # Alternate p layers\n",{"type":21,"tag":2338,"props":29646,"children":29647},{"class":2340,"line":5092},[29648,29652,29657,29661,29665],{"type":21,"tag":2338,"props":29649,"children":29650},{"style":3219},[29651],{"type":26,"value":4761},{"type":21,"tag":2338,"props":29653,"children":29654},{"style":2345},[29655],{"type":26,"value":29656}," layer ",{"type":21,"tag":2338,"props":29658,"children":29659},{"style":3219},[29660],{"type":26,"value":3522},{"type":21,"tag":2338,"props":29662,"children":29663},{"style":2363},[29664],{"type":26,"value":3527},{"type":21,"tag":2338,"props":29666,"children":29667},{"style":2345},[29668],{"type":26,"value":29669},"(p):\n",{"type":21,"tag":2338,"props":29671,"children":29672},{"class":2340,"line":5100},[29673],{"type":21,"tag":2338,"props":29674,"children":29675},{"style":2345},[29676],{"type":26,"value":29677},"        cost_unitary(gammas[layer])\n",{"type":21,"tag":2338,"props":29679,"children":29680},{"class":2340,"line":5118},[29681],{"type":21,"tag":2338,"props":29682,"children":29683},{"style":2345},[29684],{"type":26,"value":29685},"        mixer_unitary(betas[layer])\n",{"type":21,"tag":2338,"props":29687,"children":29688},{"class":2340,"line":5136},[29689,29693,29697,29701,29705,29709],{"type":21,"tag":2338,"props":29690,"children":29691},{"style":3219},[29692],{"type":26,"value":4607},{"type":21,"tag":2338,"props":29694,"children":29695},{"style":2345},[29696],{"type":26,"value":21845},{"type":21,"tag":2338,"props":29698,"children":29699},{"style":3284},[29700],{"type":26,"value":14269},{"type":21,"tag":2338,"props":29702,"children":29703},{"style":3219},[29704],{"type":26,"value":3259},{"type":21,"tag":2338,"props":29706,"children":29707},{"style":2363},[29708],{"type":26,"value":4963},{"type":21,"tag":2338,"props":29710,"children":29711},{"style":2345},[29712],{"type":26,"value":14406},{"type":21,"tag":2338,"props":29714,"children":29715},{"class":2340,"line":5144},[29716],{"type":21,"tag":2338,"props":29717,"children":29718},{"emptyLinePlaceholder":3243},[29719],{"type":26,"value":3246},{"type":21,"tag":2338,"props":29721,"children":29722},{"class":2340,"line":5178},[29723,29727,29732,29736,29740,29744],{"type":21,"tag":2338,"props":29724,"children":29725},{"style":3219},[29726],{"type":26,"value":4382},{"type":21,"tag":2338,"props":29728,"children":29729},{"style":4385},[29730],{"type":26,"value":29731}," expected_cut",{"type":21,"tag":2338,"props":29733,"children":29734},{"style":2345},[29735],{"type":26,"value":29539},{"type":21,"tag":2338,"props":29737,"children":29738},{"style":3219},[29739],{"type":26,"value":3259},{"type":21,"tag":2338,"props":29741,"children":29742},{"style":2363},[29743],{"type":26,"value":3575},{"type":21,"tag":2338,"props":29745,"children":29746},{"style":2345},[29747],{"type":26,"value":4435},{"type":21,"tag":2338,"props":29749,"children":29750},{"class":2340,"line":5196},[29751],{"type":21,"tag":2338,"props":29752,"children":29753},{"style":2374},[29754],{"type":26,"value":29755},"    \"\"\"Classical cost function: expected number of cut edges.\"\"\"\n",{"type":21,"tag":2338,"props":29757,"children":29758},{"class":2340,"line":5221},[29759,29764,29768],{"type":21,"tag":2338,"props":29760,"children":29761},{"style":2345},[29762],{"type":26,"value":29763},"    probs ",{"type":21,"tag":2338,"props":29765,"children":29766},{"style":3219},[29767],{"type":26,"value":3259},{"type":21,"tag":2338,"props":29769,"children":29770},{"style":2345},[29771],{"type":26,"value":29772}," qaoa_circuit(params, p)\n",{"type":21,"tag":2338,"props":29774,"children":29775},{"class":2340,"line":5263},[29776,29781,29785],{"type":21,"tag":2338,"props":29777,"children":29778},{"style":2345},[29779],{"type":26,"value":29780},"    total ",{"type":21,"tag":2338,"props":29782,"children":29783},{"style":3219},[29784],{"type":26,"value":3259},{"type":21,"tag":2338,"props":29786,"children":29787},{"style":2363},[29788],{"type":26,"value":29789}," 0.0\n",{"type":21,"tag":2338,"props":29791,"children":29792},{"class":2340,"line":5271},[29793,29797,29802,29806,29810],{"type":21,"tag":2338,"props":29794,"children":29795},{"style":3219},[29796],{"type":26,"value":4761},{"type":21,"tag":2338,"props":29798,"children":29799},{"style":2345},[29800],{"type":26,"value":29801}," bitstring_idx, prob ",{"type":21,"tag":2338,"props":29803,"children":29804},{"style":3219},[29805],{"type":26,"value":3522},{"type":21,"tag":2338,"props":29807,"children":29808},{"style":2363},[29809],{"type":26,"value":4906},{"type":21,"tag":2338,"props":29811,"children":29812},{"style":2345},[29813],{"type":26,"value":29814},"(probs):\n",{"type":21,"tag":2338,"props":29816,"children":29817},{"class":2340,"line":5306},[29818,29822,29826,29830,29835,29839,29844,29848,29852,29856,29861],{"type":21,"tag":2338,"props":29819,"children":29820},{"style":2345},[29821],{"type":26,"value":4818},{"type":21,"tag":2338,"props":29823,"children":29824},{"style":3219},[29825],{"type":26,"value":3259},{"type":21,"tag":2338,"props":29827,"children":29828},{"style":2363},[29829],{"type":26,"value":4827},{"type":21,"tag":2338,"props":29831,"children":29832},{"style":2345},[29833],{"type":26,"value":29834},"(bitstring_idx, ",{"type":21,"tag":2338,"props":29836,"children":29837},{"style":3219},[29838],{"type":26,"value":3344},{"type":21,"tag":2338,"props":29840,"children":29841},{"style":2374},[29842],{"type":26,"value":29843},"'0",{"type":21,"tag":2338,"props":29845,"children":29846},{"style":2363},[29847],{"type":26,"value":3354},{"type":21,"tag":2338,"props":29849,"children":29850},{"style":2345},[29851],{"type":26,"value":15518},{"type":21,"tag":2338,"props":29853,"children":29854},{"style":2363},[29855],{"type":26,"value":3364},{"type":21,"tag":2338,"props":29857,"children":29858},{"style":2374},[29859],{"type":26,"value":29860},"b'",{"type":21,"tag":2338,"props":29862,"children":29863},{"style":2345},[29864],{"type":26,"value":3319},{"type":21,"tag":2338,"props":29866,"children":29867},{"class":2340,"line":5422},[29868,29873,29877,29881,29885,29889,29894,29898,29902,29907,29912,29917,29922],{"type":21,"tag":2338,"props":29869,"children":29870},{"style":2345},[29871],{"type":26,"value":29872},"        cut ",{"type":21,"tag":2338,"props":29874,"children":29875},{"style":3219},[29876],{"type":26,"value":3259},{"type":21,"tag":2338,"props":29878,"children":29879},{"style":2363},[29880],{"type":26,"value":6341},{"type":21,"tag":2338,"props":29882,"children":29883},{"style":2345},[29884],{"type":26,"value":3339},{"type":21,"tag":2338,"props":29886,"children":29887},{"style":2363},[29888],{"type":26,"value":3575},{"type":21,"tag":2338,"props":29890,"children":29891},{"style":3219},[29892],{"type":26,"value":29893}," for",{"type":21,"tag":2338,"props":29895,"children":29896},{"style":2345},[29897],{"type":26,"value":29334},{"type":21,"tag":2338,"props":29899,"children":29900},{"style":3219},[29901],{"type":26,"value":3522},{"type":21,"tag":2338,"props":29903,"children":29904},{"style":2345},[29905],{"type":26,"value":29906}," edges ",{"type":21,"tag":2338,"props":29908,"children":29909},{"style":3219},[29910],{"type":26,"value":29911},"if",{"type":21,"tag":2338,"props":29913,"children":29914},{"style":2345},[29915],{"type":26,"value":29916}," bits[u] ",{"type":21,"tag":2338,"props":29918,"children":29919},{"style":3219},[29920],{"type":26,"value":29921},"!=",{"type":21,"tag":2338,"props":29923,"children":29924},{"style":2345},[29925],{"type":26,"value":29926}," bits[v])\n",{"type":21,"tag":2338,"props":29928,"children":29929},{"class":2340,"line":5430},[29930,29935,29940,29945,29949],{"type":21,"tag":2338,"props":29931,"children":29932},{"style":2345},[29933],{"type":26,"value":29934},"        total ",{"type":21,"tag":2338,"props":29936,"children":29937},{"style":3219},[29938],{"type":26,"value":29939},"+=",{"type":21,"tag":2338,"props":29941,"children":29942},{"style":2345},[29943],{"type":26,"value":29944}," prob ",{"type":21,"tag":2338,"props":29946,"children":29947},{"style":3219},[29948],{"type":26,"value":6414},{"type":21,"tag":2338,"props":29950,"children":29951},{"style":2345},[29952],{"type":26,"value":29953}," cut\n",{"type":21,"tag":2338,"props":29955,"children":29956},{"class":2340,"line":5475},[29957,29961,29965,29970],{"type":21,"tag":2338,"props":29958,"children":29959},{"style":3219},[29960],{"type":26,"value":4607},{"type":21,"tag":2338,"props":29962,"children":29963},{"style":3219},[29964],{"type":26,"value":4573},{"type":21,"tag":2338,"props":29966,"children":29967},{"style":2345},[29968],{"type":26,"value":29969},"total  ",{"type":21,"tag":2338,"props":29971,"children":29972},{"style":3469},[29973],{"type":26,"value":29974},"# Minimize negative cut\n",{"type":21,"tag":2338,"props":29976,"children":29977},{"class":2340,"line":5493},[29978],{"type":21,"tag":2338,"props":29979,"children":29980},{"emptyLinePlaceholder":3243},[29981],{"type":26,"value":3246},{"type":21,"tag":2338,"props":29983,"children":29984},{"class":2340,"line":5501},[29985],{"type":21,"tag":2338,"props":29986,"children":29987},{"style":3469},[29988],{"type":26,"value":29989},"# Optimize p=1 QAOA\n",{"type":21,"tag":2338,"props":29991,"children":29992},{"class":2340,"line":5589},[29993,29998,30002],{"type":21,"tag":2338,"props":29994,"children":29995},{"style":2345},[29996],{"type":26,"value":29997},"p ",{"type":21,"tag":2338,"props":29999,"children":30000},{"style":3219},[30001],{"type":26,"value":3259},{"type":21,"tag":2338,"props":30003,"children":30004},{"style":2363},[30005],{"type":26,"value":12814},{"type":21,"tag":2338,"props":30007,"children":30008},{"class":2340,"line":15093},[30009,30014,30018,30022,30026,30031,30035,30039],{"type":21,"tag":2338,"props":30010,"children":30011},{"style":2345},[30012],{"type":26,"value":30013},"init_params ",{"type":21,"tag":2338,"props":30015,"children":30016},{"style":3219},[30017],{"type":26,"value":3259},{"type":21,"tag":2338,"props":30019,"children":30020},{"style":2345},[30021],{"type":26,"value":25281},{"type":21,"tag":2338,"props":30023,"children":30024},{"style":2363},[30025],{"type":26,"value":5189},{"type":21,"tag":2338,"props":30027,"children":30028},{"style":2345},[30029],{"type":26,"value":30030},", np.pi, ",{"type":21,"tag":2338,"props":30032,"children":30033},{"style":2363},[30034],{"type":26,"value":2437},{"type":21,"tag":2338,"props":30036,"children":30037},{"style":3219},[30038],{"type":26,"value":8366},{"type":21,"tag":2338,"props":30040,"children":30041},{"style":2345},[30042],{"type":26,"value":30043}," p)\n",{"type":21,"tag":2338,"props":30045,"children":30046},{"class":2340,"line":15111},[30047,30051,30055,30060,30065,30069,30073],{"type":21,"tag":2338,"props":30048,"children":30049},{"style":2345},[30050],{"type":26,"value":19355},{"type":21,"tag":2338,"props":30052,"children":30053},{"style":3219},[30054],{"type":26,"value":3259},{"type":21,"tag":2338,"props":30056,"children":30057},{"style":2345},[30058],{"type":26,"value":30059}," minimize(expected_cut, init_params, ",{"type":21,"tag":2338,"props":30061,"children":30062},{"style":3284},[30063],{"type":26,"value":30064},"method",{"type":21,"tag":2338,"props":30066,"children":30067},{"style":3219},[30068],{"type":26,"value":3259},{"type":21,"tag":2338,"props":30070,"children":30071},{"style":2374},[30072],{"type":26,"value":22923},{"type":21,"tag":2338,"props":30074,"children":30075},{"style":2345},[30076],{"type":26,"value":2442},{"type":21,"tag":2338,"props":30078,"children":30079},{"class":2340,"line":15129},[30080,30085,30089,30093,30098,30102,30106],{"type":21,"tag":2338,"props":30081,"children":30082},{"style":3284},[30083],{"type":26,"value":30084},"                  options",{"type":21,"tag":2338,"props":30086,"children":30087},{"style":3219},[30088],{"type":26,"value":3259},{"type":21,"tag":2338,"props":30090,"children":30091},{"style":2345},[30092],{"type":26,"value":3354},{"type":21,"tag":2338,"props":30094,"children":30095},{"style":2374},[30096],{"type":26,"value":30097},"'maxiter'",{"type":21,"tag":2338,"props":30099,"children":30100},{"style":2345},[30101],{"type":26,"value":2432},{"type":21,"tag":2338,"props":30103,"children":30104},{"style":2363},[30105],{"type":26,"value":14651},{"type":21,"tag":2338,"props":30107,"children":30108},{"style":2345},[30109],{"type":26,"value":30110},"})\n",{"type":21,"tag":2338,"props":30112,"children":30113},{"class":2340,"line":15137},[30114],{"type":21,"tag":2338,"props":30115,"children":30116},{"emptyLinePlaceholder":3243},[30117],{"type":26,"value":3246},{"type":21,"tag":2338,"props":30119,"children":30120},{"class":2340,"line":15171},[30121,30125,30129,30133,30138,30142,30147,30151,30155],{"type":21,"tag":2338,"props":30122,"children":30123},{"style":2363},[30124],{"type":26,"value":3334},{"type":21,"tag":2338,"props":30126,"children":30127},{"style":2345},[30128],{"type":26,"value":3339},{"type":21,"tag":2338,"props":30130,"children":30131},{"style":3219},[30132],{"type":26,"value":3344},{"type":21,"tag":2338,"props":30134,"children":30135},{"style":2374},[30136],{"type":26,"value":30137},"\"Optimized params: ",{"type":21,"tag":2338,"props":30139,"children":30140},{"style":2363},[30141],{"type":26,"value":3354},{"type":21,"tag":2338,"props":30143,"children":30144},{"style":2345},[30145],{"type":26,"value":30146},"result.x",{"type":21,"tag":2338,"props":30148,"children":30149},{"style":2363},[30150],{"type":26,"value":3364},{"type":21,"tag":2338,"props":30152,"children":30153},{"style":2374},[30154],{"type":26,"value":3369},{"type":21,"tag":2338,"props":30156,"children":30157},{"style":2345},[30158],{"type":26,"value":3319},{"type":21,"tag":2338,"props":30160,"children":30161},{"class":2340,"line":15206},[30162,30166,30170,30174,30179,30183,30187,30192,30196,30200,30205],{"type":21,"tag":2338,"props":30163,"children":30164},{"style":2363},[30165],{"type":26,"value":3334},{"type":21,"tag":2338,"props":30167,"children":30168},{"style":2345},[30169],{"type":26,"value":3339},{"type":21,"tag":2338,"props":30171,"children":30172},{"style":3219},[30173],{"type":26,"value":3344},{"type":21,"tag":2338,"props":30175,"children":30176},{"style":2374},[30177],{"type":26,"value":30178},"\"Expected cut: ",{"type":21,"tag":2338,"props":30180,"children":30181},{"style":2363},[30182],{"type":26,"value":3354},{"type":21,"tag":2338,"props":30184,"children":30185},{"style":3219},[30186],{"type":26,"value":4869},{"type":21,"tag":2338,"props":30188,"children":30189},{"style":2345},[30190],{"type":26,"value":30191},"result.fun",{"type":21,"tag":2338,"props":30193,"children":30194},{"style":3219},[30195],{"type":26,"value":15309},{"type":21,"tag":2338,"props":30197,"children":30198},{"style":2363},[30199],{"type":26,"value":3364},{"type":21,"tag":2338,"props":30201,"children":30202},{"style":2374},[30203],{"type":26,"value":30204}," \u002F 4.0 maximum\"",{"type":21,"tag":2338,"props":30206,"children":30207},{"style":2345},[30208],{"type":26,"value":3319},{"type":21,"tag":22,"props":30210,"children":30211},{},[30212,30214,30220,30222,30227],{"type":26,"value":30213},"Bei der Ausführung wird typischerweise ",{"type":21,"tag":2097,"props":30215,"children":30217},{"className":30216},[],[30218],{"type":26,"value":30219},"expected_cut ≈ 3.5",{"type":26,"value":30221}," mit ",{"type":21,"tag":2097,"props":30223,"children":30225},{"className":30224},[],[30226],{"type":26,"value":19566},{"type":26,"value":30228}," erreicht — 87,5 % des maximalen Schnitts.",{"type":21,"tag":29,"props":30230,"children":30232},{"id":30231},"die-beste-lösung-sampeln",[30233],{"type":26,"value":30234},"Die beste Lösung sampeln",{"type":21,"tag":22,"props":30236,"children":30237},{},[30238],{"type":26,"value":30239},"Nach der Optimierung wird der Schaltkreis gesampelt, um die wahrscheinlichsten guten Lösungen zu finden:",{"type":21,"tag":2328,"props":30241,"children":30243},{"code":30242,"language":3209,"meta":7,"className":3207,"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",[30244],{"type":21,"tag":2097,"props":30245,"children":30246},{"__ignoreMap":7},[30247,30258,30299,30314,30329,30352,30371,30394,30401,30408,30436,30443,30476,30483,30491,30512,30529,30550,30599,30655,30671,30678,30686,30749],{"type":21,"tag":2338,"props":30248,"children":30249},{"class":2340,"line":2341},[30250,30254],{"type":21,"tag":2338,"props":30251,"children":30252},{"style":4385},[30253],{"type":26,"value":14293},{"type":21,"tag":2338,"props":30255,"children":30256},{"style":2345},[30257],{"type":26,"value":14298},{"type":21,"tag":2338,"props":30259,"children":30260},{"class":2340,"line":173},[30261,30265,30270,30274,30278,30282,30287,30291,30295],{"type":21,"tag":2338,"props":30262,"children":30263},{"style":3219},[30264],{"type":26,"value":4382},{"type":21,"tag":2338,"props":30266,"children":30267},{"style":4385},[30268],{"type":26,"value":30269}," sample_circuit",{"type":21,"tag":2338,"props":30271,"children":30272},{"style":2345},[30273],{"type":26,"value":29539},{"type":21,"tag":2338,"props":30275,"children":30276},{"style":3219},[30277],{"type":26,"value":3259},{"type":21,"tag":2338,"props":30279,"children":30280},{"style":2363},[30281],{"type":26,"value":3575},{"type":21,"tag":2338,"props":30283,"children":30284},{"style":2345},[30285],{"type":26,"value":30286},", shots",{"type":21,"tag":2338,"props":30288,"children":30289},{"style":3219},[30290],{"type":26,"value":3259},{"type":21,"tag":2338,"props":30292,"children":30293},{"style":2363},[30294],{"type":26,"value":20490},{"type":21,"tag":2338,"props":30296,"children":30297},{"style":2345},[30298],{"type":26,"value":4435},{"type":21,"tag":2338,"props":30300,"children":30301},{"class":2340,"line":2359},[30302,30306,30310],{"type":21,"tag":2338,"props":30303,"children":30304},{"style":2345},[30305],{"type":26,"value":29559},{"type":21,"tag":2338,"props":30307,"children":30308},{"style":3219},[30309],{"type":26,"value":3259},{"type":21,"tag":2338,"props":30311,"children":30312},{"style":2345},[30313],{"type":26,"value":29568},{"type":21,"tag":2338,"props":30315,"children":30316},{"class":2340,"line":2421},[30317,30321,30325],{"type":21,"tag":2338,"props":30318,"children":30319},{"style":2345},[30320],{"type":26,"value":29576},{"type":21,"tag":2338,"props":30322,"children":30323},{"style":3219},[30324],{"type":26,"value":3259},{"type":21,"tag":2338,"props":30326,"children":30327},{"style":2345},[30328],{"type":26,"value":29585},{"type":21,"tag":2338,"props":30330,"children":30331},{"class":2340,"line":2445},[30332,30336,30340,30344,30348],{"type":21,"tag":2338,"props":30333,"children":30334},{"style":3219},[30335],{"type":26,"value":4761},{"type":21,"tag":2338,"props":30337,"children":30338},{"style":2345},[30339],{"type":26,"value":4766},{"type":21,"tag":2338,"props":30341,"children":30342},{"style":3219},[30343],{"type":26,"value":3522},{"type":21,"tag":2338,"props":30345,"children":30346},{"style":2363},[30347],{"type":26,"value":3527},{"type":21,"tag":2338,"props":30349,"children":30350},{"style":2345},[30351],{"type":26,"value":26618},{"type":21,"tag":2338,"props":30353,"children":30354},{"class":2340,"line":877},[30355,30359,30363,30367],{"type":21,"tag":2338,"props":30356,"children":30357},{"style":2345},[30358],{"type":26,"value":29624},{"type":21,"tag":2338,"props":30360,"children":30361},{"style":3284},[30362],{"type":26,"value":14269},{"type":21,"tag":2338,"props":30364,"children":30365},{"style":3219},[30366],{"type":26,"value":3259},{"type":21,"tag":2338,"props":30368,"children":30369},{"style":2345},[30370],{"type":26,"value":26639},{"type":21,"tag":2338,"props":30372,"children":30373},{"class":2340,"line":196},[30374,30378,30382,30386,30390],{"type":21,"tag":2338,"props":30375,"children":30376},{"style":3219},[30377],{"type":26,"value":4761},{"type":21,"tag":2338,"props":30379,"children":30380},{"style":2345},[30381],{"type":26,"value":29656},{"type":21,"tag":2338,"props":30383,"children":30384},{"style":3219},[30385],{"type":26,"value":3522},{"type":21,"tag":2338,"props":30387,"children":30388},{"style":2363},[30389],{"type":26,"value":3527},{"type":21,"tag":2338,"props":30391,"children":30392},{"style":2345},[30393],{"type":26,"value":29669},{"type":21,"tag":2338,"props":30395,"children":30396},{"class":2340,"line":951},[30397],{"type":21,"tag":2338,"props":30398,"children":30399},{"style":2345},[30400],{"type":26,"value":29677},{"type":21,"tag":2338,"props":30402,"children":30403},{"class":2340,"line":16},[30404],{"type":21,"tag":2338,"props":30405,"children":30406},{"style":2345},[30407],{"type":26,"value":29685},{"type":21,"tag":2338,"props":30409,"children":30410},{"class":2340,"line":3465},[30411,30415,30420,30424,30428,30432],{"type":21,"tag":2338,"props":30412,"children":30413},{"style":3219},[30414],{"type":26,"value":4607},{"type":21,"tag":2338,"props":30416,"children":30417},{"style":2345},[30418],{"type":26,"value":30419}," qml.sample(",{"type":21,"tag":2338,"props":30421,"children":30422},{"style":3284},[30423],{"type":26,"value":14269},{"type":21,"tag":2338,"props":30425,"children":30426},{"style":3219},[30427],{"type":26,"value":3259},{"type":21,"tag":2338,"props":30429,"children":30430},{"style":2363},[30431],{"type":26,"value":4963},{"type":21,"tag":2338,"props":30433,"children":30434},{"style":2345},[30435],{"type":26,"value":14406},{"type":21,"tag":2338,"props":30437,"children":30438},{"class":2340,"line":3475},[30439],{"type":21,"tag":2338,"props":30440,"children":30441},{"emptyLinePlaceholder":3243},[30442],{"type":26,"value":3246},{"type":21,"tag":2338,"props":30444,"children":30445},{"class":2340,"line":500},[30446,30451,30455,30460,30464,30468,30472],{"type":21,"tag":2338,"props":30447,"children":30448},{"style":2345},[30449],{"type":26,"value":30450},"samples ",{"type":21,"tag":2338,"props":30452,"children":30453},{"style":3219},[30454],{"type":26,"value":3259},{"type":21,"tag":2338,"props":30456,"children":30457},{"style":2345},[30458],{"type":26,"value":30459}," sample_circuit(result.x, ",{"type":21,"tag":2338,"props":30461,"children":30462},{"style":3284},[30463],{"type":26,"value":4144},{"type":21,"tag":2338,"props":30465,"children":30466},{"style":3219},[30467],{"type":26,"value":3259},{"type":21,"tag":2338,"props":30469,"children":30470},{"style":2363},[30471],{"type":26,"value":20490},{"type":21,"tag":2338,"props":30473,"children":30474},{"style":2345},[30475],{"type":26,"value":3319},{"type":21,"tag":2338,"props":30477,"children":30478},{"class":2340,"line":3535},[30479],{"type":21,"tag":2338,"props":30480,"children":30481},{"emptyLinePlaceholder":3243},[30482],{"type":26,"value":3246},{"type":21,"tag":2338,"props":30484,"children":30485},{"class":2340,"line":3583},[30486],{"type":21,"tag":2338,"props":30487,"children":30488},{"style":3469},[30489],{"type":26,"value":30490},"# Count cut values for each bitstring\n",{"type":21,"tag":2338,"props":30492,"children":30493},{"class":2340,"line":3625},[30494,30498,30503,30507],{"type":21,"tag":2338,"props":30495,"children":30496},{"style":3219},[30497],{"type":26,"value":3222},{"type":21,"tag":2338,"props":30499,"children":30500},{"style":2345},[30501],{"type":26,"value":30502}," collections ",{"type":21,"tag":2338,"props":30504,"children":30505},{"style":3219},[30506],{"type":26,"value":3232},{"type":21,"tag":2338,"props":30508,"children":30509},{"style":2345},[30510],{"type":26,"value":30511}," Counter\n",{"type":21,"tag":2338,"props":30513,"children":30514},{"class":2340,"line":4652},[30515,30520,30524],{"type":21,"tag":2338,"props":30516,"children":30517},{"style":2345},[30518],{"type":26,"value":30519},"cut_counts ",{"type":21,"tag":2338,"props":30521,"children":30522},{"style":3219},[30523],{"type":26,"value":3259},{"type":21,"tag":2338,"props":30525,"children":30526},{"style":2345},[30527],{"type":26,"value":30528}," Counter()\n",{"type":21,"tag":2338,"props":30530,"children":30531},{"class":2340,"line":4671},[30532,30536,30541,30545],{"type":21,"tag":2338,"props":30533,"children":30534},{"style":3219},[30535],{"type":26,"value":3512},{"type":21,"tag":2338,"props":30537,"children":30538},{"style":2345},[30539],{"type":26,"value":30540}," bits ",{"type":21,"tag":2338,"props":30542,"children":30543},{"style":3219},[30544],{"type":26,"value":3522},{"type":21,"tag":2338,"props":30546,"children":30547},{"style":2345},[30548],{"type":26,"value":30549}," samples:\n",{"type":21,"tag":2338,"props":30551,"children":30552},{"class":2340,"line":4679},[30553,30558,30562,30567,30572,30577,30582,30586,30590,30594],{"type":21,"tag":2338,"props":30554,"children":30555},{"style":2345},[30556],{"type":26,"value":30557},"    key ",{"type":21,"tag":2338,"props":30559,"children":30560},{"style":3219},[30561],{"type":26,"value":3259},{"type":21,"tag":2338,"props":30563,"children":30564},{"style":2374},[30565],{"type":26,"value":30566}," ''",{"type":21,"tag":2338,"props":30568,"children":30569},{"style":2345},[30570],{"type":26,"value":30571},".join(",{"type":21,"tag":2338,"props":30573,"children":30574},{"style":2363},[30575],{"type":26,"value":30576},"str",{"type":21,"tag":2338,"props":30578,"children":30579},{"style":2345},[30580],{"type":26,"value":30581},"(b) ",{"type":21,"tag":2338,"props":30583,"children":30584},{"style":3219},[30585],{"type":26,"value":3512},{"type":21,"tag":2338,"props":30587,"children":30588},{"style":2345},[30589],{"type":26,"value":4925},{"type":21,"tag":2338,"props":30591,"children":30592},{"style":3219},[30593],{"type":26,"value":3522},{"type":21,"tag":2338,"props":30595,"children":30596},{"style":2345},[30597],{"type":26,"value":30598}," bits)\n",{"type":21,"tag":2338,"props":30600,"children":30601},{"class":2340,"line":4710},[30602,30607,30611,30615,30619,30623,30627,30631,30635,30639,30643,30647,30651],{"type":21,"tag":2338,"props":30603,"children":30604},{"style":2345},[30605],{"type":26,"value":30606},"    cut ",{"type":21,"tag":2338,"props":30608,"children":30609},{"style":3219},[30610],{"type":26,"value":3259},{"type":21,"tag":2338,"props":30612,"children":30613},{"style":2363},[30614],{"type":26,"value":6341},{"type":21,"tag":2338,"props":30616,"children":30617},{"style":2345},[30618],{"type":26,"value":3339},{"type":21,"tag":2338,"props":30620,"children":30621},{"style":2363},[30622],{"type":26,"value":3575},{"type":21,"tag":2338,"props":30624,"children":30625},{"style":3219},[30626],{"type":26,"value":29893},{"type":21,"tag":2338,"props":30628,"children":30629},{"style":2345},[30630],{"type":26,"value":29334},{"type":21,"tag":2338,"props":30632,"children":30633},{"style":3219},[30634],{"type":26,"value":3522},{"type":21,"tag":2338,"props":30636,"children":30637},{"style":2345},[30638],{"type":26,"value":29906},{"type":21,"tag":2338,"props":30640,"children":30641},{"style":3219},[30642],{"type":26,"value":29911},{"type":21,"tag":2338,"props":30644,"children":30645},{"style":2345},[30646],{"type":26,"value":29916},{"type":21,"tag":2338,"props":30648,"children":30649},{"style":3219},[30650],{"type":26,"value":29921},{"type":21,"tag":2338,"props":30652,"children":30653},{"style":2345},[30654],{"type":26,"value":29926},{"type":21,"tag":2338,"props":30656,"children":30657},{"class":2340,"line":4755},[30658,30663,30667],{"type":21,"tag":2338,"props":30659,"children":30660},{"style":2345},[30661],{"type":26,"value":30662},"    cut_counts[(key, cut)] ",{"type":21,"tag":2338,"props":30664,"children":30665},{"style":3219},[30666],{"type":26,"value":29939},{"type":21,"tag":2338,"props":30668,"children":30669},{"style":2363},[30670],{"type":26,"value":12814},{"type":21,"tag":2338,"props":30672,"children":30673},{"class":2340,"line":4794},[30674],{"type":21,"tag":2338,"props":30675,"children":30676},{"emptyLinePlaceholder":3243},[30677],{"type":26,"value":3246},{"type":21,"tag":2338,"props":30679,"children":30680},{"class":2340,"line":4812},[30681],{"type":21,"tag":2338,"props":30682,"children":30683},{"style":3469},[30684],{"type":26,"value":30685},"# Show top 5 most frequent bitstrings\n",{"type":21,"tag":2338,"props":30687,"children":30688},{"class":2340,"line":4886},[30689,30693,30698,30702,30706,30711,30715,30719,30724,30728,30733,30737,30741,30745],{"type":21,"tag":2338,"props":30690,"children":30691},{"style":3219},[30692],{"type":26,"value":3512},{"type":21,"tag":2338,"props":30694,"children":30695},{"style":2345},[30696],{"type":26,"value":30697}," (bits, cut), count ",{"type":21,"tag":2338,"props":30699,"children":30700},{"style":3219},[30701],{"type":26,"value":3522},{"type":21,"tag":2338,"props":30703,"children":30704},{"style":2363},[30705],{"type":26,"value":17159},{"type":21,"tag":2338,"props":30707,"children":30708},{"style":2345},[30709],{"type":26,"value":30710},"(cut_counts.items(), ",{"type":21,"tag":2338,"props":30712,"children":30713},{"style":3284},[30714],{"type":26,"value":3560},{"type":21,"tag":2338,"props":30716,"children":30717},{"style":3219},[30718],{"type":26,"value":3565},{"type":21,"tag":2338,"props":30720,"children":30721},{"style":2345},[30722],{"type":26,"value":30723}," x: ",{"type":21,"tag":2338,"props":30725,"children":30726},{"style":3219},[30727],{"type":26,"value":4869},{"type":21,"tag":2338,"props":30729,"children":30730},{"style":2345},[30731],{"type":26,"value":30732},"x[",{"type":21,"tag":2338,"props":30734,"children":30735},{"style":2363},[30736],{"type":26,"value":3575},{"type":21,"tag":2338,"props":30738,"children":30739},{"style":2345},[30740],{"type":26,"value":17598},{"type":21,"tag":2338,"props":30742,"children":30743},{"style":2363},[30744],{"type":26,"value":6703},{"type":21,"tag":2338,"props":30746,"children":30747},{"style":2345},[30748],{"type":26,"value":17607},{"type":21,"tag":2338,"props":30750,"children":30751},{"class":2340,"line":4914},[30752,30756,30760,30764,30768,30772,30776,30780,30785,30789,30794,30798,30803,30807,30812,30816,30820,30825,30829,30834],{"type":21,"tag":2338,"props":30753,"children":30754},{"style":2363},[30755],{"type":26,"value":17246},{"type":21,"tag":2338,"props":30757,"children":30758},{"style":2345},[30759],{"type":26,"value":3339},{"type":21,"tag":2338,"props":30761,"children":30762},{"style":3219},[30763],{"type":26,"value":3344},{"type":21,"tag":2338,"props":30765,"children":30766},{"style":2374},[30767],{"type":26,"value":3369},{"type":21,"tag":2338,"props":30769,"children":30770},{"style":2363},[30771],{"type":26,"value":3354},{"type":21,"tag":2338,"props":30773,"children":30774},{"style":2345},[30775],{"type":26,"value":17267},{"type":21,"tag":2338,"props":30777,"children":30778},{"style":2363},[30779],{"type":26,"value":3364},{"type":21,"tag":2338,"props":30781,"children":30782},{"style":2374},[30783],{"type":26,"value":30784},"  cut=",{"type":21,"tag":2338,"props":30786,"children":30787},{"style":2363},[30788],{"type":26,"value":3354},{"type":21,"tag":2338,"props":30790,"children":30791},{"style":2345},[30792],{"type":26,"value":30793},"cut",{"type":21,"tag":2338,"props":30795,"children":30796},{"style":2363},[30797],{"type":26,"value":3364},{"type":21,"tag":2338,"props":30799,"children":30800},{"style":2374},[30801],{"type":26,"value":30802},"  frequency=",{"type":21,"tag":2338,"props":30804,"children":30805},{"style":2363},[30806],{"type":26,"value":3354},{"type":21,"tag":2338,"props":30808,"children":30809},{"style":2345},[30810],{"type":26,"value":30811},"count",{"type":21,"tag":2338,"props":30813,"children":30814},{"style":3219},[30815],{"type":26,"value":2192},{"type":21,"tag":2338,"props":30817,"children":30818},{"style":2363},[30819],{"type":26,"value":20546},{"type":21,"tag":2338,"props":30821,"children":30822},{"style":3219},[30823],{"type":26,"value":30824},":.1f",{"type":21,"tag":2338,"props":30826,"children":30827},{"style":2363},[30828],{"type":26,"value":3364},{"type":21,"tag":2338,"props":30830,"children":30831},{"style":2374},[30832],{"type":26,"value":30833},"%\"",{"type":21,"tag":2338,"props":30835,"children":30836},{"style":2345},[30837],{"type":26,"value":3319},{"type":21,"tag":22,"props":30839,"children":30840},{},[30841],{"type":26,"value":30842},"Erwartete Ausgabe:",{"type":21,"tag":2328,"props":30844,"children":30846},{"code":30845},"0101  cut=4  frequency=28.3%\n1010  cut=4  frequency=27.1%\n0110  cut=3  frequency=8.4%\n...\n",[30847],{"type":21,"tag":2097,"props":30848,"children":30849},{"__ignoreMap":7},[30850],{"type":26,"value":30845},{"type":21,"tag":22,"props":30852,"children":30853},{},[30854,30856,30861,30862,30867],{"type":26,"value":30855},"Die optimalen Lösungen (",{"type":21,"tag":2097,"props":30857,"children":30859},{"className":30858},[],[30860],{"type":26,"value":28979},{"type":26,"value":278},{"type":21,"tag":2097,"props":30863,"children":30865},{"className":30864},[],[30866],{"type":26,"value":17452},{"type":26,"value":30868},") dominieren — QAOA hat ihre Wahrscheinlichkeit verstärkt.",{"type":21,"tag":29,"props":30870,"children":30872},{"id":30871},"dasselbe-problem-mit-hlquantum",[30873],{"type":26,"value":30874},"Dasselbe Problem mit HLQuantum",{"type":21,"tag":22,"props":30876,"children":30877},{},[30878],{"type":26,"value":30879},"Das eingebaute QAOA von HLQuantum erlaubt es dir, den Aufbau des Schaltkreises vollständig zu überspringen:",{"type":21,"tag":2328,"props":30881,"children":30883},{"code":30882,"language":3209,"meta":7,"className":3207,"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",[30884],{"type":21,"tag":2097,"props":30885,"children":30886},{"__ignoreMap":7},[30887,30906,30913,30993,31000,31016,31033,31054,31074,31093,31113,31120,31127,31144,31161],{"type":21,"tag":2338,"props":30888,"children":30889},{"class":2340,"line":2341},[30890,30894,30898,30902],{"type":21,"tag":2338,"props":30891,"children":30892},{"style":3219},[30893],{"type":26,"value":3232},{"type":21,"tag":2338,"props":30895,"children":30896},{"style":2345},[30897],{"type":26,"value":19323},{"type":21,"tag":2338,"props":30899,"children":30900},{"style":3219},[30901],{"type":26,"value":4299},{"type":21,"tag":2338,"props":30903,"children":30904},{"style":2345},[30905],{"type":26,"value":19332},{"type":21,"tag":2338,"props":30907,"children":30908},{"class":2340,"line":173},[30909],{"type":21,"tag":2338,"props":30910,"children":30911},{"emptyLinePlaceholder":3243},[30912],{"type":26,"value":3246},{"type":21,"tag":2338,"props":30914,"children":30915},{"class":2340,"line":2359},[30916,30921,30925,30929,30933,30937,30941,30945,30949,30953,30957,30961,30965,30969,30973,30977,30981,30985,30989],{"type":21,"tag":2338,"props":30917,"children":30918},{"style":2345},[30919],{"type":26,"value":30920},"graph ",{"type":21,"tag":2338,"props":30922,"children":30923},{"style":3219},[30924],{"type":26,"value":3259},{"type":21,"tag":2338,"props":30926,"children":30927},{"style":2345},[30928],{"type":26,"value":29167},{"type":21,"tag":2338,"props":30930,"children":30931},{"style":2363},[30932],{"type":26,"value":5189},{"type":21,"tag":2338,"props":30934,"children":30935},{"style":2345},[30936],{"type":26,"value":1375},{"type":21,"tag":2338,"props":30938,"children":30939},{"style":2363},[30940],{"type":26,"value":3575},{"type":21,"tag":2338,"props":30942,"children":30943},{"style":2345},[30944],{"type":26,"value":29184},{"type":21,"tag":2338,"props":30946,"children":30947},{"style":2363},[30948],{"type":26,"value":3575},{"type":21,"tag":2338,"props":30950,"children":30951},{"style":2345},[30952],{"type":26,"value":1375},{"type":21,"tag":2338,"props":30954,"children":30955},{"style":2363},[30956],{"type":26,"value":2437},{"type":21,"tag":2338,"props":30958,"children":30959},{"style":2345},[30960],{"type":26,"value":29184},{"type":21,"tag":2338,"props":30962,"children":30963},{"style":2363},[30964],{"type":26,"value":2437},{"type":21,"tag":2338,"props":30966,"children":30967},{"style":2345},[30968],{"type":26,"value":1375},{"type":21,"tag":2338,"props":30970,"children":30971},{"style":2363},[30972],{"type":26,"value":6532},{"type":21,"tag":2338,"props":30974,"children":30975},{"style":2345},[30976],{"type":26,"value":29184},{"type":21,"tag":2338,"props":30978,"children":30979},{"style":2363},[30980],{"type":26,"value":6532},{"type":21,"tag":2338,"props":30982,"children":30983},{"style":2345},[30984],{"type":26,"value":1375},{"type":21,"tag":2338,"props":30986,"children":30987},{"style":2363},[30988],{"type":26,"value":5189},{"type":21,"tag":2338,"props":30990,"children":30991},{"style":2345},[30992],{"type":26,"value":29233},{"type":21,"tag":2338,"props":30994,"children":30995},{"class":2340,"line":2421},[30996],{"type":21,"tag":2338,"props":30997,"children":30998},{"emptyLinePlaceholder":3243},[30999],{"type":26,"value":3246},{"type":21,"tag":2338,"props":31001,"children":31002},{"class":2340,"line":2445},[31003,31007,31011],{"type":21,"tag":2338,"props":31004,"children":31005},{"style":2345},[31006],{"type":26,"value":19355},{"type":21,"tag":2338,"props":31008,"children":31009},{"style":3219},[31010],{"type":26,"value":3259},{"type":21,"tag":2338,"props":31012,"children":31013},{"style":2345},[31014],{"type":26,"value":31015}," hlq.algorithms.qaoa(\n",{"type":21,"tag":2338,"props":31017,"children":31018},{"class":2340,"line":877},[31019,31024,31028],{"type":21,"tag":2338,"props":31020,"children":31021},{"style":3284},[31022],{"type":26,"value":31023},"    graph",{"type":21,"tag":2338,"props":31025,"children":31026},{"style":3219},[31027],{"type":26,"value":3259},{"type":21,"tag":2338,"props":31029,"children":31030},{"style":2345},[31031],{"type":26,"value":31032},"graph,\n",{"type":21,"tag":2338,"props":31034,"children":31035},{"class":2340,"line":196},[31036,31041,31045,31050],{"type":21,"tag":2338,"props":31037,"children":31038},{"style":3284},[31039],{"type":26,"value":31040},"    problem",{"type":21,"tag":2338,"props":31042,"children":31043},{"style":3219},[31044],{"type":26,"value":3259},{"type":21,"tag":2338,"props":31046,"children":31047},{"style":2374},[31048],{"type":26,"value":31049},"'max_cut'",{"type":21,"tag":2338,"props":31051,"children":31052},{"style":2345},[31053],{"type":26,"value":2442},{"type":21,"tag":2338,"props":31055,"children":31056},{"class":2340,"line":951},[31057,31062,31066,31070],{"type":21,"tag":2338,"props":31058,"children":31059},{"style":3284},[31060],{"type":26,"value":31061},"    p",{"type":21,"tag":2338,"props":31063,"children":31064},{"style":3219},[31065],{"type":26,"value":3259},{"type":21,"tag":2338,"props":31067,"children":31068},{"style":2363},[31069],{"type":26,"value":2437},{"type":21,"tag":2338,"props":31071,"children":31072},{"style":2345},[31073],{"type":26,"value":2442},{"type":21,"tag":2338,"props":31075,"children":31076},{"class":2340,"line":16},[31077,31081,31085,31089],{"type":21,"tag":2338,"props":31078,"children":31079},{"style":3284},[31080],{"type":26,"value":22894},{"type":21,"tag":2338,"props":31082,"children":31083},{"style":3219},[31084],{"type":26,"value":3259},{"type":21,"tag":2338,"props":31086,"children":31087},{"style":2374},[31088],{"type":26,"value":22204},{"type":21,"tag":2338,"props":31090,"children":31091},{"style":2345},[31092],{"type":26,"value":2442},{"type":21,"tag":2338,"props":31094,"children":31095},{"class":2340,"line":3465},[31096,31100,31104,31109],{"type":21,"tag":2338,"props":31097,"children":31098},{"style":3284},[31099],{"type":26,"value":28848},{"type":21,"tag":2338,"props":31101,"children":31102},{"style":3219},[31103],{"type":26,"value":3259},{"type":21,"tag":2338,"props":31105,"children":31106},{"style":2363},[31107],{"type":26,"value":31108},"2000",{"type":21,"tag":2338,"props":31110,"children":31111},{"style":2345},[31112],{"type":26,"value":2442},{"type":21,"tag":2338,"props":31114,"children":31115},{"class":2340,"line":3475},[31116],{"type":21,"tag":2338,"props":31117,"children":31118},{"style":2345},[31119],{"type":26,"value":3319},{"type":21,"tag":2338,"props":31121,"children":31122},{"class":2340,"line":500},[31123],{"type":21,"tag":2338,"props":31124,"children":31125},{"emptyLinePlaceholder":3243},[31126],{"type":26,"value":3246},{"type":21,"tag":2338,"props":31128,"children":31129},{"class":2340,"line":3535},[31130,31134,31139],{"type":21,"tag":2338,"props":31131,"children":31132},{"style":2363},[31133],{"type":26,"value":3334},{"type":21,"tag":2338,"props":31135,"children":31136},{"style":2345},[31137],{"type":26,"value":31138},"(result.best_solution)   ",{"type":21,"tag":2338,"props":31140,"children":31141},{"style":3469},[31142],{"type":26,"value":31143},"# '0101' or '1010'\n",{"type":21,"tag":2338,"props":31145,"children":31146},{"class":2340,"line":3583},[31147,31151,31156],{"type":21,"tag":2338,"props":31148,"children":31149},{"style":2363},[31150],{"type":26,"value":3334},{"type":21,"tag":2338,"props":31152,"children":31153},{"style":2345},[31154],{"type":26,"value":31155},"(result.cut_value)       ",{"type":21,"tag":2338,"props":31157,"children":31158},{"style":3469},[31159],{"type":26,"value":31160},"# 4\n",{"type":21,"tag":2338,"props":31162,"children":31163},{"class":2340,"line":3625},[31164,31168,31173],{"type":21,"tag":2338,"props":31165,"children":31166},{"style":2363},[31167],{"type":26,"value":3334},{"type":21,"tag":2338,"props":31169,"children":31170},{"style":2345},[31171],{"type":26,"value":31172},"(result.approximation_ratio)  ",{"type":21,"tag":2338,"props":31174,"children":31175},{"style":3469},[31176],{"type":26,"value":31177},"# ~0.96 for p=2\n",{"type":21,"tag":22,"props":31179,"children":31180},{},[31181],{"type":26,"value":31182},"Backends lassen sich mit einem einzigen Flag wechseln:",{"type":21,"tag":2328,"props":31184,"children":31186},{"code":31185,"language":3209,"meta":7,"className":3207,"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",[31187],{"type":21,"tag":2097,"props":31188,"children":31189},{"__ignoreMap":7},[31190,31198,31277,31284,31292,31352],{"type":21,"tag":2338,"props":31191,"children":31192},{"class":2340,"line":2341},[31193],{"type":21,"tag":2338,"props":31194,"children":31195},{"style":3469},[31196],{"type":26,"value":31197},"# Run on Qiskit Aer\n",{"type":21,"tag":2338,"props":31199,"children":31200},{"class":2340,"line":173},[31201,31205,31209,31214,31219,31223,31228,31233,31237,31241,31245,31249,31253,31257,31261,31265,31269,31273],{"type":21,"tag":2338,"props":31202,"children":31203},{"style":2345},[31204],{"type":26,"value":21645},{"type":21,"tag":2338,"props":31206,"children":31207},{"style":3219},[31208],{"type":26,"value":3259},{"type":21,"tag":2338,"props":31210,"children":31211},{"style":2345},[31212],{"type":26,"value":31213}," hlq.algorithms.qaoa(",{"type":21,"tag":2338,"props":31215,"children":31216},{"style":3284},[31217],{"type":26,"value":31218},"graph",{"type":21,"tag":2338,"props":31220,"children":31221},{"style":3219},[31222],{"type":26,"value":3259},{"type":21,"tag":2338,"props":31224,"children":31225},{"style":2345},[31226],{"type":26,"value":31227},"graph, ",{"type":21,"tag":2338,"props":31229,"children":31230},{"style":3284},[31231],{"type":26,"value":31232},"problem",{"type":21,"tag":2338,"props":31234,"children":31235},{"style":3219},[31236],{"type":26,"value":3259},{"type":21,"tag":2338,"props":31238,"children":31239},{"style":2374},[31240],{"type":26,"value":31049},{"type":21,"tag":2338,"props":31242,"children":31243},{"style":2345},[31244],{"type":26,"value":1375},{"type":21,"tag":2338,"props":31246,"children":31247},{"style":3284},[31248],{"type":26,"value":22},{"type":21,"tag":2338,"props":31250,"children":31251},{"style":3219},[31252],{"type":26,"value":3259},{"type":21,"tag":2338,"props":31254,"children":31255},{"style":2363},[31256],{"type":26,"value":2437},{"type":21,"tag":2338,"props":31258,"children":31259},{"style":2345},[31260],{"type":26,"value":1375},{"type":21,"tag":2338,"props":31262,"children":31263},{"style":3284},[31264],{"type":26,"value":18490},{"type":21,"tag":2338,"props":31266,"children":31267},{"style":3219},[31268],{"type":26,"value":3259},{"type":21,"tag":2338,"props":31270,"children":31271},{"style":2374},[31272],{"type":26,"value":19413},{"type":21,"tag":2338,"props":31274,"children":31275},{"style":2345},[31276],{"type":26,"value":3319},{"type":21,"tag":2338,"props":31278,"children":31279},{"class":2340,"line":2359},[31280],{"type":21,"tag":2338,"props":31281,"children":31282},{"emptyLinePlaceholder":3243},[31283],{"type":26,"value":3246},{"type":21,"tag":2338,"props":31285,"children":31286},{"class":2340,"line":2421},[31287],{"type":21,"tag":2338,"props":31288,"children":31289},{"style":3469},[31290],{"type":26,"value":31291},"# Run on real IonQ hardware (if you have credits)\n",{"type":21,"tag":2338,"props":31293,"children":31294},{"class":2340,"line":2445},[31295,31300,31304,31308,31312,31316,31320,31324,31328,31332,31336,31340,31344,31348],{"type":21,"tag":2338,"props":31296,"children":31297},{"style":2345},[31298],{"type":26,"value":31299},"result_ionq ",{"type":21,"tag":2338,"props":31301,"children":31302},{"style":3219},[31303],{"type":26,"value":3259},{"type":21,"tag":2338,"props":31305,"children":31306},{"style":2345},[31307],{"type":26,"value":31213},{"type":21,"tag":2338,"props":31309,"children":31310},{"style":3284},[31311],{"type":26,"value":31218},{"type":21,"tag":2338,"props":31313,"children":31314},{"style":3219},[31315],{"type":26,"value":3259},{"type":21,"tag":2338,"props":31317,"children":31318},{"style":2345},[31319],{"type":26,"value":31227},{"type":21,"tag":2338,"props":31321,"children":31322},{"style":3284},[31323],{"type":26,"value":31232},{"type":21,"tag":2338,"props":31325,"children":31326},{"style":3219},[31327],{"type":26,"value":3259},{"type":21,"tag":2338,"props":31329,"children":31330},{"style":2374},[31331],{"type":26,"value":31049},{"type":21,"tag":2338,"props":31333,"children":31334},{"style":2345},[31335],{"type":26,"value":1375},{"type":21,"tag":2338,"props":31337,"children":31338},{"style":3284},[31339],{"type":26,"value":22},{"type":21,"tag":2338,"props":31341,"children":31342},{"style":3219},[31343],{"type":26,"value":3259},{"type":21,"tag":2338,"props":31345,"children":31346},{"style":2363},[31347],{"type":26,"value":2437},{"type":21,"tag":2338,"props":31349,"children":31350},{"style":2345},[31351],{"type":26,"value":2442},{"type":21,"tag":2338,"props":31353,"children":31354},{"class":2340,"line":877},[31355,31360,31364,31368,31372,31376,31380,31384],{"type":21,"tag":2338,"props":31356,"children":31357},{"style":3284},[31358],{"type":26,"value":31359},"                                   backend",{"type":21,"tag":2338,"props":31361,"children":31362},{"style":3219},[31363],{"type":26,"value":3259},{"type":21,"tag":2338,"props":31365,"children":31366},{"style":2374},[31367],{"type":26,"value":22308},{"type":21,"tag":2338,"props":31369,"children":31370},{"style":2345},[31371],{"type":26,"value":1375},{"type":21,"tag":2338,"props":31373,"children":31374},{"style":3284},[31375],{"type":26,"value":22317},{"type":21,"tag":2338,"props":31377,"children":31378},{"style":3219},[31379],{"type":26,"value":3259},{"type":21,"tag":2338,"props":31381,"children":31382},{"style":2374},[31383],{"type":26,"value":22326},{"type":21,"tag":2338,"props":31385,"children":31386},{"style":2345},[31387],{"type":26,"value":3319},{"type":21,"tag":29,"props":31389,"children":31391},{"id":31390},"p-erhöhen-für-bessere-ergebnisse",[31392],{"type":26,"value":31393},"p erhöhen für bessere Ergebnisse",{"type":21,"tag":22,"props":31395,"children":31396},{},[31397,31399,31404,31406,31412],{"type":26,"value":31398},"Das QAOA-Approximationsverhältnis verbessert sich mit der Tiefe ",{"type":21,"tag":2097,"props":31400,"children":31402},{"className":31401},[],[31403],{"type":26,"value":22},{"type":26,"value":31405},". Bei ",{"type":21,"tag":2097,"props":31407,"children":31409},{"className":31408},[],[31410],{"type":26,"value":31411},"p→∞",{"type":26,"value":31413}," löst QAOA das Problem exakt. In der Praxis:",{"type":21,"tag":4087,"props":31415,"children":31416},{},[31417,31437],{"type":21,"tag":4091,"props":31418,"children":31419},{},[31420],{"type":21,"tag":4095,"props":31421,"children":31422},{},[31423,31427,31432],{"type":21,"tag":4099,"props":31424,"children":31425},{},[31426],{"type":26,"value":22},{"type":21,"tag":4099,"props":31428,"children":31429},{},[31430],{"type":26,"value":31431},"Typisches Approx.-Verhältnis (Max-Cut)",{"type":21,"tag":4099,"props":31433,"children":31434},{},[31435],{"type":26,"value":31436},"Benötigte Gates",{"type":21,"tag":4113,"props":31438,"children":31439},{},[31440,31457,31474,31491],{"type":21,"tag":4095,"props":31441,"children":31442},{},[31443,31447,31452],{"type":21,"tag":4120,"props":31444,"children":31445},{},[31446],{"type":26,"value":3575},{"type":21,"tag":4120,"props":31448,"children":31449},{},[31450],{"type":26,"value":31451},"~0.75",{"type":21,"tag":4120,"props":31453,"children":31454},{},[31455],{"type":26,"value":31456},"2×edges + 4n",{"type":21,"tag":4095,"props":31458,"children":31459},{},[31460,31464,31469],{"type":21,"tag":4120,"props":31461,"children":31462},{},[31463],{"type":26,"value":2437},{"type":21,"tag":4120,"props":31465,"children":31466},{},[31467],{"type":26,"value":31468},"~0.86",{"type":21,"tag":4120,"props":31470,"children":31471},{},[31472],{"type":26,"value":31473},"4×edges + 8n",{"type":21,"tag":4095,"props":31475,"children":31476},{},[31477,31481,31486],{"type":21,"tag":4120,"props":31478,"children":31479},{},[31480],{"type":26,"value":6532},{"type":21,"tag":4120,"props":31482,"children":31483},{},[31484],{"type":26,"value":31485},"~0.91",{"type":21,"tag":4120,"props":31487,"children":31488},{},[31489],{"type":26,"value":31490},"6×edges + 12n",{"type":21,"tag":4095,"props":31492,"children":31493},{},[31494,31498,31503],{"type":21,"tag":4120,"props":31495,"children":31496},{},[31497],{"type":26,"value":6703},{"type":21,"tag":4120,"props":31499,"children":31500},{},[31501],{"type":26,"value":31502},"~0.95",{"type":21,"tag":4120,"props":31504,"children":31505},{},[31506],{"type":26,"value":31507},"10×edges + 20n",{"type":21,"tag":22,"props":31509,"children":31510},{},[31511,31513,31519,31521,31526,31527,31533],{"type":26,"value":31512},"Der Kompromiss: Tiefere Schaltkreise sammeln auf echter Hardware mehr Rauschen an. Auf Simulatoren nutze ",{"type":21,"tag":2097,"props":31514,"children":31516},{"className":31515},[],[31517],{"type":26,"value":31518},"p=3",{"type":26,"value":31520}," oder höher. Auf NISQ-QPUs ist ",{"type":21,"tag":2097,"props":31522,"children":31524},{"className":31523},[],[31525],{"type":26,"value":19566},{"type":26,"value":18833},{"type":21,"tag":2097,"props":31528,"children":31530},{"className":31529},[],[31531],{"type":26,"value":31532},"p=2",{"type":26,"value":31534}," üblicherweise die praktische Grenze.",{"type":21,"tag":29,"props":31536,"children":31538},{"id":31537},"wann-lohnt-sich-der-einsatz-von-qaoa",[31539],{"type":26,"value":31540},"Wann lohnt sich der Einsatz von QAOA?",{"type":21,"tag":22,"props":31542,"children":31543},{},[31544],{"type":21,"tag":205,"props":31545,"children":31546},{},[31547],{"type":26,"value":31548},"Derzeit nützlich für:",{"type":21,"tag":3137,"props":31550,"children":31551},{},[31552,31557,31562],{"type":21,"tag":3141,"props":31553,"children":31554},{},[31555],{"type":26,"value":31556},"Benchmarking von NISQ-Geräten (QAOA ist ein Standard-Benchmark-Schaltkreis)",{"type":21,"tag":3141,"props":31558,"children":31559},{},[31560],{"type":26,"value":31561},"Akademische Forschung zu variationellen Quantenalgorithmen",{"type":21,"tag":3141,"props":31563,"children":31564},{},[31565],{"type":26,"value":31566},"Kleine Graphen (unter 20 Knoten) auf Simulatoren",{"type":21,"tag":22,"props":31568,"children":31569},{},[31570],{"type":21,"tag":205,"props":31571,"children":31572},{},[31573],{"type":26,"value":31574},"Noch nicht nützlich für:",{"type":21,"tag":3137,"props":31576,"children":31577},{},[31578,31583],{"type":21,"tag":3141,"props":31579,"children":31580},{},[31581],{"type":26,"value":31582},"Produktionsoptimierung auf echter Hardware im großen Maßstab — klassische Heuristiken (Simulated Annealing, Tabu-Suche) übertreffen QAOA bei praktischen Problemen nach wie vor",{"type":21,"tag":3141,"props":31584,"children":31585},{},[31586],{"type":26,"value":31587},"Große Graphen — die Schaltkreistiefe skaliert mit der Graphendichte",{"type":21,"tag":22,"props":31589,"children":31590},{},[31591,31596,31598,31603],{"type":21,"tag":205,"props":31592,"children":31593},{},[31594],{"type":26,"value":31595},"Das Versprechen:",{"type":26,"value":31597}," Auf zukünftiger fehlertoleranter Hardware mit tiefen Schaltkreisen könnte QAOA bei großem ",{"type":21,"tag":2097,"props":31599,"children":31601},{"className":31600},[],[31602],{"type":26,"value":22},{"type":26,"value":31604}," echte Beschleunigungen für dichte NP-schwere Optimierung liefern. Die theoretischen Grundlagen sind solide; die Hardware ist noch nicht so weit.",{"type":21,"tag":29,"props":31606,"children":31608},{"id":31607},"nächste-schritte",[31609],{"type":26,"value":31610},"Nächste Schritte",{"type":21,"tag":3137,"props":31612,"children":31613},{},[31614,31626,31639],{"type":21,"tag":3141,"props":31615,"children":31616},{},[31617,31624],{"type":21,"tag":205,"props":31618,"children":31619},{},[31620],{"type":21,"tag":41,"props":31621,"children":31622},{"href":14090},[31623],{"type":26,"value":15634},{"type":26,"value":31625}," — richte PennyLane für weitere variationelle Algorithmen ein",{"type":21,"tag":3141,"props":31627,"children":31628},{},[31629,31637],{"type":21,"tag":205,"props":31630,"children":31631},{},[31632],{"type":21,"tag":41,"props":31633,"children":31634},{"href":362},[31635],{"type":26,"value":31636},"VQE guide",{"type":26,"value":31638}," — der Schwesteralgorithmus für die Quantenchemie",{"type":21,"tag":3141,"props":31640,"children":31641},{},[31642,31649],{"type":21,"tag":205,"props":31643,"children":31644},{},[31645],{"type":21,"tag":41,"props":31646,"children":31647},{"href":19030},[31648],{"type":26,"value":19033},{"type":26,"value":31650}," — führe QAOA mit einer einzigen API auf jedem Backend aus",{"type":21,"tag":2712,"props":31652,"children":31653},{},[31654],{"type":26,"value":2716},{"title":7,"searchDepth":173,"depth":173,"links":31656},[31657,31658,31659,31660,31661,31662,31663,31664],{"id":28947,"depth":173,"text":28950},{"id":28990,"depth":173,"text":28993},{"id":29066,"depth":173,"text":29069},{"id":30231,"depth":173,"text":30234},{"id":30871,"depth":173,"text":30874},{"id":31390,"depth":173,"text":31393},{"id":31537,"depth":173,"text":31540},{"id":31607,"depth":173,"text":31610},"content:de:blog:qaoa-max-cut-tutorial.md","de\u002Fblog\u002Fqaoa-max-cut-tutorial.md","de\u002Fblog\u002Fqaoa-max-cut-tutorial",{"_path":31669,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":31670,"description":31671,"date":31672,"author":11,"tags":31673,"readingTime":196,"body":31675,"_type":180,"_id":33665,"_source":182,"_file":33666,"_stem":33667,"_extension":185},"\u002Fde\u002Fblog\u002Fquantum-simulators-compared","Kostenlose Quantensimulatoren im Vergleich: Qiskit Aer vs. Cirq vs. PennyLane vs. CUDA-Q","Ein praktischer Vergleich der wichtigsten kostenlosen Quantensimulatoren — Leistung, Qubit-Grenzen, GPU-Unterstützung und wann man welchen einsetzt.","2026-02-10",[20201,3083,31674],"GPU",{"type":18,"children":31676,"toc":33656},[31677,31682,31688,31871,31877,31886,31939,32109,32119,32125,32141,32468,32488,32511,32559,32569,32575,32584,32821,32831,32849,32859,32865,32874,33050,33060,33066,33079,33292,33302,33308,33319,33647,33652],{"type":21,"tag":22,"props":31678,"children":31679},{},[31680],{"type":26,"value":31681},"Quantensimulatoren ermöglichen es Ihnen, Schaltkreise zu testen, ohne in Hardware-Warteschlangen zu warten oder pro Shot zu bezahlen. Aber bei sechs großen kostenlos verfügbaren Simulatoren – welchen sollten Sie verwenden? Hier ist eine praktische Aufschlüsselung.",{"type":21,"tag":29,"props":31683,"children":31685},{"id":31684},"die-schnelle-antwort",[31686],{"type":26,"value":31687},"Die schnelle Antwort",{"type":21,"tag":4087,"props":31689,"children":31690},{},[31691,31716],{"type":21,"tag":4091,"props":31692,"children":31693},{},[31694],{"type":21,"tag":4095,"props":31695,"children":31696},{},[31697,31702,31706,31711],{"type":21,"tag":4099,"props":31698,"children":31699},{},[31700],{"type":26,"value":31701},"Simulator",{"type":21,"tag":4099,"props":31703,"children":31704},{},[31705],{"type":26,"value":26962},{"type":21,"tag":4099,"props":31707,"children":31708},{},[31709],{"type":26,"value":31710},"Max. Qubits (CPU)",{"type":21,"tag":4099,"props":31712,"children":31713},{},[31714],{"type":26,"value":31715},"GPU?",{"type":21,"tag":4113,"props":31717,"children":31718},{},[31719,31745,31771,31797,31822,31847],{"type":21,"tag":4095,"props":31720,"children":31721},{},[31722,31730,31735,31740],{"type":21,"tag":4120,"props":31723,"children":31724},{},[31725],{"type":21,"tag":205,"props":31726,"children":31727},{},[31728],{"type":26,"value":31729},"Qiskit Aer",{"type":21,"tag":4120,"props":31731,"children":31732},{},[31733],{"type":26,"value":31734},"Allzweck",{"type":21,"tag":4120,"props":31736,"children":31737},{},[31738],{"type":26,"value":31739},"~30 (Statevector)",{"type":21,"tag":4120,"props":31741,"children":31742},{},[31743],{"type":26,"value":31744},"✅ AerCuda",{"type":21,"tag":4095,"props":31746,"children":31747},{},[31748,31756,31761,31766],{"type":21,"tag":4120,"props":31749,"children":31750},{},[31751],{"type":21,"tag":205,"props":31752,"children":31753},{},[31754],{"type":26,"value":31755},"Cirq Simulator",{"type":21,"tag":4120,"props":31757,"children":31758},{},[31759],{"type":26,"value":31760},"Cirq-Schaltkreise, Dichtematrix",{"type":21,"tag":4120,"props":31762,"children":31763},{},[31764],{"type":26,"value":31765},"~25",{"type":21,"tag":4120,"props":31767,"children":31768},{},[31769],{"type":26,"value":31770},"❌",{"type":21,"tag":4095,"props":31772,"children":31773},{},[31774,31782,31787,31792],{"type":21,"tag":4120,"props":31775,"children":31776},{},[31777],{"type":21,"tag":205,"props":31778,"children":31779},{},[31780],{"type":26,"value":31781},"PennyLane default.qubit",{"type":21,"tag":4120,"props":31783,"children":31784},{},[31785],{"type":26,"value":31786},"QML, Gradienten",{"type":21,"tag":4120,"props":31788,"children":31789},{},[31790],{"type":26,"value":31791},"~20",{"type":21,"tag":4120,"props":31793,"children":31794},{},[31795],{"type":26,"value":31796},"✅ lightning.gpu",{"type":21,"tag":4095,"props":31798,"children":31799},{},[31800,31808,31813,31818],{"type":21,"tag":4120,"props":31801,"children":31802},{},[31803],{"type":21,"tag":205,"props":31804,"children":31805},{},[31806],{"type":26,"value":31807},"PennyLane lightning.qubit",{"type":21,"tag":4120,"props":31809,"children":31810},{},[31811],{"type":26,"value":31812},"Schnelle CPU-Simulation",{"type":21,"tag":4120,"props":31814,"children":31815},{},[31816],{"type":26,"value":31817},"~30",{"type":21,"tag":4120,"props":31819,"children":31820},{},[31821],{"type":26,"value":31796},{"type":21,"tag":4095,"props":31823,"children":31824},{},[31825,31832,31837,31842],{"type":21,"tag":4120,"props":31826,"children":31827},{},[31828],{"type":21,"tag":205,"props":31829,"children":31830},{},[31831],{"type":26,"value":20644},{"type":21,"tag":4120,"props":31833,"children":31834},{},[31835],{"type":26,"value":31836},"Große Schaltkreise, Geschwindigkeit",{"type":21,"tag":4120,"props":31838,"children":31839},{},[31840],{"type":26,"value":31841},"~34 einzelne GPU",{"type":21,"tag":4120,"props":31843,"children":31844},{},[31845],{"type":26,"value":31846},"✅ nativ",{"type":21,"tag":4095,"props":31848,"children":31849},{},[31850,31858,31863,31867],{"type":21,"tag":4120,"props":31851,"children":31852},{},[31853],{"type":21,"tag":205,"props":31854,"children":31855},{},[31856],{"type":26,"value":31857},"Braket LocalSimulator",{"type":21,"tag":4120,"props":31859,"children":31860},{},[31861],{"type":26,"value":31862},"Braket-Schaltkreise, kostenlos",{"type":21,"tag":4120,"props":31864,"children":31865},{},[31866],{"type":26,"value":31765},{"type":21,"tag":4120,"props":31868,"children":31869},{},[31870],{"type":26,"value":31770},{"type":21,"tag":29,"props":31872,"children":31874},{"id":31873},"qiskit-aer-das-arbeitstier",[31875],{"type":26,"value":31876},"Qiskit Aer: Das Arbeitstier",{"type":21,"tag":22,"props":31878,"children":31879},{},[31880,31884],{"type":21,"tag":41,"props":31881,"children":31882},{"href":7112},[31883],{"type":26,"value":31729},{"type":26,"value":31885}," ist der funktionsreichste kostenlose Simulator. Er unterstützt mehrere Simulationsmethoden:",{"type":21,"tag":3137,"props":31887,"children":31888},{},[31889,31899,31909,31919,31929],{"type":21,"tag":3141,"props":31890,"children":31891},{},[31892,31897],{"type":21,"tag":205,"props":31893,"children":31894},{},[31895],{"type":26,"value":31896},"statevector_simulator",{"type":26,"value":31898},": Exakte Simulation bis zu ~30 Qubits. Der Speicher skaliert mit 2ⁿ komplexen Zahlen (16 GB RAM für 30 Qubits erforderlich).",{"type":21,"tag":3141,"props":31900,"children":31901},{},[31902,31907],{"type":21,"tag":205,"props":31903,"children":31904},{},[31905],{"type":26,"value":31906},"qasm_simulator",{"type":26,"value":31908},": Shot-basiertes Sampling mit Unterstützung für Rauschmodelle",{"type":21,"tag":3141,"props":31910,"children":31911},{},[31912,31917],{"type":21,"tag":205,"props":31913,"children":31914},{},[31915],{"type":26,"value":31916},"density_matrix",{"type":26,"value":31918},": Simuliert gemischte Zustände und offene Quantensysteme",{"type":21,"tag":3141,"props":31920,"children":31921},{},[31922,31927],{"type":21,"tag":205,"props":31923,"children":31924},{},[31925],{"type":26,"value":31926},"mps",{"type":26,"value":31928},": Matrix Product State — simuliert Schaltkreise mit begrenzter Verschränkung bis zu Hunderten von Qubits",{"type":21,"tag":3141,"props":31930,"children":31931},{},[31932,31937],{"type":21,"tag":205,"props":31933,"children":31934},{},[31935],{"type":26,"value":31936},"stabilizer",{"type":26,"value":31938},": Nur Clifford-Schaltkreise, skaliert aber in polynomieller Zeit auf Tausende von Qubits",{"type":21,"tag":2328,"props":31940,"children":31942},{"className":3207,"code":31941,"language":3209,"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",[31943],{"type":21,"tag":2097,"props":31944,"children":31945},{"__ignoreMap":7},[31946,31965,31972,31980,31995,32002,32010,32043,32076],{"type":21,"tag":2338,"props":31947,"children":31948},{"class":2340,"line":2341},[31949,31953,31957,31961],{"type":21,"tag":2338,"props":31950,"children":31951},{"style":3219},[31952],{"type":26,"value":3222},{"type":21,"tag":2338,"props":31954,"children":31955},{"style":2345},[31956],{"type":26,"value":4337},{"type":21,"tag":2338,"props":31958,"children":31959},{"style":3219},[31960],{"type":26,"value":3232},{"type":21,"tag":2338,"props":31962,"children":31963},{"style":2345},[31964],{"type":26,"value":4346},{"type":21,"tag":2338,"props":31966,"children":31967},{"class":2340,"line":173},[31968],{"type":21,"tag":2338,"props":31969,"children":31970},{"emptyLinePlaceholder":3243},[31971],{"type":26,"value":3246},{"type":21,"tag":2338,"props":31973,"children":31974},{"class":2340,"line":2359},[31975],{"type":21,"tag":2338,"props":31976,"children":31977},{"style":3469},[31978],{"type":26,"value":31979},"# Default: automatic method selection\n",{"type":21,"tag":2338,"props":31981,"children":31982},{"class":2340,"line":2421},[31983,31987,31991],{"type":21,"tag":2338,"props":31984,"children":31985},{"style":2345},[31986],{"type":26,"value":8445},{"type":21,"tag":2338,"props":31988,"children":31989},{"style":3219},[31990],{"type":26,"value":3259},{"type":21,"tag":2338,"props":31992,"children":31993},{"style":2345},[31994],{"type":26,"value":8454},{"type":21,"tag":2338,"props":31996,"children":31997},{"class":2340,"line":2445},[31998],{"type":21,"tag":2338,"props":31999,"children":32000},{"emptyLinePlaceholder":3243},[32001],{"type":26,"value":3246},{"type":21,"tag":2338,"props":32003,"children":32004},{"class":2340,"line":877},[32005],{"type":21,"tag":2338,"props":32006,"children":32007},{"style":3469},[32008],{"type":26,"value":32009},"# Force a specific method\n",{"type":21,"tag":2338,"props":32011,"children":32012},{"class":2340,"line":196},[32013,32018,32022,32026,32030,32034,32039],{"type":21,"tag":2338,"props":32014,"children":32015},{"style":2345},[32016],{"type":26,"value":32017},"sim_sv ",{"type":21,"tag":2338,"props":32019,"children":32020},{"style":3219},[32021],{"type":26,"value":3259},{"type":21,"tag":2338,"props":32023,"children":32024},{"style":2345},[32025],{"type":26,"value":4635},{"type":21,"tag":2338,"props":32027,"children":32028},{"style":3284},[32029],{"type":26,"value":30064},{"type":21,"tag":2338,"props":32031,"children":32032},{"style":3219},[32033],{"type":26,"value":3259},{"type":21,"tag":2338,"props":32035,"children":32036},{"style":2374},[32037],{"type":26,"value":32038},"'statevector'",{"type":21,"tag":2338,"props":32040,"children":32041},{"style":2345},[32042],{"type":26,"value":3319},{"type":21,"tag":2338,"props":32044,"children":32045},{"class":2340,"line":951},[32046,32051,32055,32059,32063,32067,32072],{"type":21,"tag":2338,"props":32047,"children":32048},{"style":2345},[32049],{"type":26,"value":32050},"sim_dm ",{"type":21,"tag":2338,"props":32052,"children":32053},{"style":3219},[32054],{"type":26,"value":3259},{"type":21,"tag":2338,"props":32056,"children":32057},{"style":2345},[32058],{"type":26,"value":4635},{"type":21,"tag":2338,"props":32060,"children":32061},{"style":3284},[32062],{"type":26,"value":30064},{"type":21,"tag":2338,"props":32064,"children":32065},{"style":3219},[32066],{"type":26,"value":3259},{"type":21,"tag":2338,"props":32068,"children":32069},{"style":2374},[32070],{"type":26,"value":32071},"'density_matrix'",{"type":21,"tag":2338,"props":32073,"children":32074},{"style":2345},[32075],{"type":26,"value":3319},{"type":21,"tag":2338,"props":32077,"children":32078},{"class":2340,"line":16},[32079,32084,32088,32092,32096,32100,32105],{"type":21,"tag":2338,"props":32080,"children":32081},{"style":2345},[32082],{"type":26,"value":32083},"sim_mps ",{"type":21,"tag":2338,"props":32085,"children":32086},{"style":3219},[32087],{"type":26,"value":3259},{"type":21,"tag":2338,"props":32089,"children":32090},{"style":2345},[32091],{"type":26,"value":4635},{"type":21,"tag":2338,"props":32093,"children":32094},{"style":3284},[32095],{"type":26,"value":30064},{"type":21,"tag":2338,"props":32097,"children":32098},{"style":3219},[32099],{"type":26,"value":3259},{"type":21,"tag":2338,"props":32101,"children":32102},{"style":2374},[32103],{"type":26,"value":32104},"'matrix_product_state'",{"type":21,"tag":2338,"props":32106,"children":32107},{"style":2345},[32108],{"type":26,"value":3319},{"type":21,"tag":22,"props":32110,"children":32111},{},[32112,32117],{"type":21,"tag":205,"props":32113,"children":32114},{},[32115],{"type":26,"value":32116},"Wann Aer verwenden:",{"type":26,"value":32118}," Für jeden Qiskit-Workflow, für Rauschmodellierung oder wenn Sie das Verhalten von IBM-Hardware möglichst genau nachbilden möchten.",{"type":21,"tag":29,"props":32120,"children":32122},{"id":32121},"pennylane-am-besten-für-quantum-ml",[32123],{"type":26,"value":32124},"PennyLane: Am besten für Quantum ML",{"type":21,"tag":22,"props":32126,"children":32127},{},[32128,32132,32134,32139],{"type":21,"tag":41,"props":32129,"children":32130},{"href":14090},[32131],{"type":26,"value":13806},{"type":26,"value":32133}," glänzt, wenn Sie differenzierbare Schaltkreise benötigen. Der ",{"type":21,"tag":2097,"props":32135,"children":32137},{"className":32136},[],[32138],{"type":26,"value":15438},{"type":26,"value":32140},"-Simulator berechnet exakte Gradienten über die Parameter-Shift-Regel und ermöglicht so die gradientenbasierte Optimierung von Quantenschaltkreisen:",{"type":21,"tag":2328,"props":32142,"children":32144},{"className":3207,"code":32143,"language":3209,"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",[32145],{"type":21,"tag":2097,"props":32146,"children":32147},{"__ignoreMap":7},[32148,32167,32186,32193,32232,32239,32250,32266,32299,32331,32366,32385,32392,32400,32417,32451],{"type":21,"tag":2338,"props":32149,"children":32150},{"class":2340,"line":2341},[32151,32155,32159,32163],{"type":21,"tag":2338,"props":32152,"children":32153},{"style":3219},[32154],{"type":26,"value":3232},{"type":21,"tag":2338,"props":32156,"children":32157},{"style":2345},[32158],{"type":26,"value":14113},{"type":21,"tag":2338,"props":32160,"children":32161},{"style":3219},[32162],{"type":26,"value":4299},{"type":21,"tag":2338,"props":32164,"children":32165},{"style":2345},[32166],{"type":26,"value":14122},{"type":21,"tag":2338,"props":32168,"children":32169},{"class":2340,"line":173},[32170,32174,32178,32182],{"type":21,"tag":2338,"props":32171,"children":32172},{"style":3219},[32173],{"type":26,"value":3232},{"type":21,"tag":2338,"props":32175,"children":32176},{"style":2345},[32177],{"type":26,"value":4294},{"type":21,"tag":2338,"props":32179,"children":32180},{"style":3219},[32181],{"type":26,"value":4299},{"type":21,"tag":2338,"props":32183,"children":32184},{"style":2345},[32185],{"type":26,"value":4304},{"type":21,"tag":2338,"props":32187,"children":32188},{"class":2340,"line":2359},[32189],{"type":21,"tag":2338,"props":32190,"children":32191},{"emptyLinePlaceholder":3243},[32192],{"type":26,"value":3246},{"type":21,"tag":2338,"props":32194,"children":32195},{"class":2340,"line":2421},[32196,32200,32204,32208,32212,32216,32220,32224,32228],{"type":21,"tag":2338,"props":32197,"children":32198},{"style":2345},[32199],{"type":26,"value":14246},{"type":21,"tag":2338,"props":32201,"children":32202},{"style":3219},[32203],{"type":26,"value":3259},{"type":21,"tag":2338,"props":32205,"children":32206},{"style":2345},[32207],{"type":26,"value":14255},{"type":21,"tag":2338,"props":32209,"children":32210},{"style":2374},[32211],{"type":26,"value":14260},{"type":21,"tag":2338,"props":32213,"children":32214},{"style":2345},[32215],{"type":26,"value":1375},{"type":21,"tag":2338,"props":32217,"children":32218},{"style":3284},[32219],{"type":26,"value":14269},{"type":21,"tag":2338,"props":32221,"children":32222},{"style":3219},[32223],{"type":26,"value":3259},{"type":21,"tag":2338,"props":32225,"children":32226},{"style":2363},[32227],{"type":26,"value":2437},{"type":21,"tag":2338,"props":32229,"children":32230},{"style":2345},[32231],{"type":26,"value":3319},{"type":21,"tag":2338,"props":32233,"children":32234},{"class":2340,"line":2445},[32235],{"type":21,"tag":2338,"props":32236,"children":32237},{"emptyLinePlaceholder":3243},[32238],{"type":26,"value":3246},{"type":21,"tag":2338,"props":32240,"children":32241},{"class":2340,"line":877},[32242,32246],{"type":21,"tag":2338,"props":32243,"children":32244},{"style":4385},[32245],{"type":26,"value":14293},{"type":21,"tag":2338,"props":32247,"children":32248},{"style":2345},[32249],{"type":26,"value":14298},{"type":21,"tag":2338,"props":32251,"children":32252},{"class":2340,"line":196},[32253,32257,32261],{"type":21,"tag":2338,"props":32254,"children":32255},{"style":3219},[32256],{"type":26,"value":4382},{"type":21,"tag":2338,"props":32258,"children":32259},{"style":4385},[32260],{"type":26,"value":14310},{"type":21,"tag":2338,"props":32262,"children":32263},{"style":2345},[32264],{"type":26,"value":32265},"(theta):\n",{"type":21,"tag":2338,"props":32267,"children":32268},{"class":2340,"line":951},[32269,32274,32278,32283,32287,32291,32295],{"type":21,"tag":2338,"props":32270,"children":32271},{"style":2345},[32272],{"type":26,"value":32273},"    qml.RX(theta[",{"type":21,"tag":2338,"props":32275,"children":32276},{"style":2363},[32277],{"type":26,"value":5189},{"type":21,"tag":2338,"props":32279,"children":32280},{"style":2345},[32281],{"type":26,"value":32282},"], ",{"type":21,"tag":2338,"props":32284,"children":32285},{"style":3284},[32286],{"type":26,"value":14269},{"type":21,"tag":2338,"props":32288,"children":32289},{"style":3219},[32290],{"type":26,"value":3259},{"type":21,"tag":2338,"props":32292,"children":32293},{"style":2363},[32294],{"type":26,"value":5189},{"type":21,"tag":2338,"props":32296,"children":32297},{"style":2345},[32298],{"type":26,"value":3319},{"type":21,"tag":2338,"props":32300,"children":32301},{"class":2340,"line":16},[32302,32307,32311,32315,32319,32323,32327],{"type":21,"tag":2338,"props":32303,"children":32304},{"style":2345},[32305],{"type":26,"value":32306},"    qml.RY(theta[",{"type":21,"tag":2338,"props":32308,"children":32309},{"style":2363},[32310],{"type":26,"value":3575},{"type":21,"tag":2338,"props":32312,"children":32313},{"style":2345},[32314],{"type":26,"value":32282},{"type":21,"tag":2338,"props":32316,"children":32317},{"style":3284},[32318],{"type":26,"value":14269},{"type":21,"tag":2338,"props":32320,"children":32321},{"style":3219},[32322],{"type":26,"value":3259},{"type":21,"tag":2338,"props":32324,"children":32325},{"style":2363},[32326],{"type":26,"value":3575},{"type":21,"tag":2338,"props":32328,"children":32329},{"style":2345},[32330],{"type":26,"value":3319},{"type":21,"tag":2338,"props":32332,"children":32333},{"class":2340,"line":3465},[32334,32338,32342,32346,32350,32354,32358,32362],{"type":21,"tag":2338,"props":32335,"children":32336},{"style":2345},[32337],{"type":26,"value":21804},{"type":21,"tag":2338,"props":32339,"children":32340},{"style":3284},[32341],{"type":26,"value":14269},{"type":21,"tag":2338,"props":32343,"children":32344},{"style":3219},[32345],{"type":26,"value":3259},{"type":21,"tag":2338,"props":32347,"children":32348},{"style":2345},[32349],{"type":26,"value":21817},{"type":21,"tag":2338,"props":32351,"children":32352},{"style":2363},[32353],{"type":26,"value":5189},{"type":21,"tag":2338,"props":32355,"children":32356},{"style":2345},[32357],{"type":26,"value":1375},{"type":21,"tag":2338,"props":32359,"children":32360},{"style":2363},[32361],{"type":26,"value":3575},{"type":21,"tag":2338,"props":32363,"children":32364},{"style":2345},[32365],{"type":26,"value":3580},{"type":21,"tag":2338,"props":32367,"children":32368},{"class":2340,"line":3475},[32369,32373,32377,32381],{"type":21,"tag":2338,"props":32370,"children":32371},{"style":3219},[32372],{"type":26,"value":4607},{"type":21,"tag":2338,"props":32374,"children":32375},{"style":2345},[32376],{"type":26,"value":14425},{"type":21,"tag":2338,"props":32378,"children":32379},{"style":2363},[32380],{"type":26,"value":5189},{"type":21,"tag":2338,"props":32382,"children":32383},{"style":2345},[32384],{"type":26,"value":12389},{"type":21,"tag":2338,"props":32386,"children":32387},{"class":2340,"line":500},[32388],{"type":21,"tag":2338,"props":32389,"children":32390},{"emptyLinePlaceholder":3243},[32391],{"type":26,"value":3246},{"type":21,"tag":2338,"props":32393,"children":32394},{"class":2340,"line":3535},[32395],{"type":21,"tag":2338,"props":32396,"children":32397},{"style":3469},[32398],{"type":26,"value":32399},"# Automatic gradient computation\n",{"type":21,"tag":2338,"props":32401,"children":32402},{"class":2340,"line":3583},[32403,32408,32412],{"type":21,"tag":2338,"props":32404,"children":32405},{"style":2345},[32406],{"type":26,"value":32407},"grad_fn ",{"type":21,"tag":2338,"props":32409,"children":32410},{"style":3219},[32411],{"type":26,"value":3259},{"type":21,"tag":2338,"props":32413,"children":32414},{"style":2345},[32415],{"type":26,"value":32416}," qml.grad(circuit)\n",{"type":21,"tag":2338,"props":32418,"children":32419},{"class":2340,"line":3625},[32420,32425,32429,32434,32438,32442,32447],{"type":21,"tag":2338,"props":32421,"children":32422},{"style":2345},[32423],{"type":26,"value":32424},"theta ",{"type":21,"tag":2338,"props":32426,"children":32427},{"style":3219},[32428],{"type":26,"value":3259},{"type":21,"tag":2338,"props":32430,"children":32431},{"style":2345},[32432],{"type":26,"value":32433}," np.array([",{"type":21,"tag":2338,"props":32435,"children":32436},{"style":2363},[32437],{"type":26,"value":2460},{"type":21,"tag":2338,"props":32439,"children":32440},{"style":2345},[32441],{"type":26,"value":1375},{"type":21,"tag":2338,"props":32443,"children":32444},{"style":2363},[32445],{"type":26,"value":32446},"1.2",{"type":21,"tag":2338,"props":32448,"children":32449},{"style":2345},[32450],{"type":26,"value":3580},{"type":21,"tag":2338,"props":32452,"children":32453},{"class":2340,"line":4652},[32454,32458,32463],{"type":21,"tag":2338,"props":32455,"children":32456},{"style":2363},[32457],{"type":26,"value":3334},{"type":21,"tag":2338,"props":32459,"children":32460},{"style":2345},[32461],{"type":26,"value":32462},"(grad_fn(theta))  ",{"type":21,"tag":2338,"props":32464,"children":32465},{"style":3469},[32466],{"type":26,"value":32467},"# exact gradient\n",{"type":21,"tag":22,"props":32469,"children":32470},{},[32471,32473,32479,32481,32486],{"type":26,"value":32472},"Für schnellere Simulation ohne Gradienten verwenden Sie ",{"type":21,"tag":2097,"props":32474,"children":32476},{"className":32475},[],[32477],{"type":26,"value":32478},"lightning.qubit",{"type":26,"value":32480}," (C++-Backend, ~10× schneller als ",{"type":21,"tag":2097,"props":32482,"children":32484},{"className":32483},[],[32485],{"type":26,"value":15438},{"type":26,"value":32487},"):",{"type":21,"tag":2328,"props":32489,"children":32491},{"className":9764,"code":32490,"language":9766,"meta":7,"style":7},"pip install pennylane-lightning\n",[32492],{"type":21,"tag":2097,"props":32493,"children":32494},{"__ignoreMap":7},[32495],{"type":21,"tag":2338,"props":32496,"children":32497},{"class":2340,"line":2341},[32498,32502,32506],{"type":21,"tag":2338,"props":32499,"children":32500},{"style":4385},[32501],{"type":26,"value":11815},{"type":21,"tag":2338,"props":32503,"children":32504},{"style":2374},[32505],{"type":26,"value":11820},{"type":21,"tag":2338,"props":32507,"children":32508},{"style":2374},[32509],{"type":26,"value":32510}," pennylane-lightning\n",{"type":21,"tag":2328,"props":32512,"children":32514},{"className":3207,"code":32513,"language":3209,"meta":7,"style":7},"dev = qml.device(\"lightning.qubit\", wires=20)\n",[32515],{"type":21,"tag":2097,"props":32516,"children":32517},{"__ignoreMap":7},[32518],{"type":21,"tag":2338,"props":32519,"children":32520},{"class":2340,"line":2341},[32521,32525,32529,32533,32538,32542,32546,32550,32555],{"type":21,"tag":2338,"props":32522,"children":32523},{"style":2345},[32524],{"type":26,"value":14246},{"type":21,"tag":2338,"props":32526,"children":32527},{"style":3219},[32528],{"type":26,"value":3259},{"type":21,"tag":2338,"props":32530,"children":32531},{"style":2345},[32532],{"type":26,"value":14255},{"type":21,"tag":2338,"props":32534,"children":32535},{"style":2374},[32536],{"type":26,"value":32537},"\"lightning.qubit\"",{"type":21,"tag":2338,"props":32539,"children":32540},{"style":2345},[32541],{"type":26,"value":1375},{"type":21,"tag":2338,"props":32543,"children":32544},{"style":3284},[32545],{"type":26,"value":14269},{"type":21,"tag":2338,"props":32547,"children":32548},{"style":3219},[32549],{"type":26,"value":3259},{"type":21,"tag":2338,"props":32551,"children":32552},{"style":2363},[32553],{"type":26,"value":32554},"20",{"type":21,"tag":2338,"props":32556,"children":32557},{"style":2345},[32558],{"type":26,"value":3319},{"type":21,"tag":22,"props":32560,"children":32561},{},[32562,32567],{"type":21,"tag":205,"props":32563,"children":32564},{},[32565],{"type":26,"value":32566},"Wann PennyLane verwenden:",{"type":26,"value":32568}," Variationsalgorithmen (VQE, QAOA), Quantum ML, jeder Workflow, der Schaltkreis-Gradienten erfordert.",{"type":21,"tag":29,"props":32570,"children":32572},{"id":32571},"nvidia-cuda-q-wenn-geschwindigkeit-zählt",[32573],{"type":26,"value":32574},"NVIDIA CUDA-Q: Wenn Geschwindigkeit zählt",{"type":21,"tag":22,"props":32576,"children":32577},{},[32578,32582],{"type":21,"tag":41,"props":32579,"children":32580},{"href":20641},[32581],{"type":26,"value":18236},{"type":26,"value":32583}," bietet GPU-beschleunigte Simulation, die für große Schaltkreise 100–10.000× schneller sein kann als CPU-Simulatoren. Wenn Sie irgendeine NVIDIA-GPU besitzen, ist dies die richtige Wahl für Schaltkreise mit mehr als 25 Qubits:",{"type":21,"tag":2328,"props":32585,"children":32587},{"className":3207,"code":32586,"language":3209,"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",[32588],{"type":21,"tag":2097,"props":32589,"children":32590},{"__ignoreMap":7},[32591,32602,32609,32616,32641,32657,32672,32707,32727,32735,32742,32750,32767,32809],{"type":21,"tag":2338,"props":32592,"children":32593},{"class":2340,"line":2341},[32594,32598],{"type":21,"tag":2338,"props":32595,"children":32596},{"style":3219},[32597],{"type":26,"value":3232},{"type":21,"tag":2338,"props":32599,"children":32600},{"style":2345},[32601],{"type":26,"value":21917},{"type":21,"tag":2338,"props":32603,"children":32604},{"class":2340,"line":173},[32605],{"type":21,"tag":2338,"props":32606,"children":32607},{"emptyLinePlaceholder":3243},[32608],{"type":26,"value":3246},{"type":21,"tag":2338,"props":32610,"children":32611},{"class":2340,"line":2359},[32612],{"type":21,"tag":2338,"props":32613,"children":32614},{"style":4385},[32615],{"type":26,"value":21925},{"type":21,"tag":2338,"props":32617,"children":32618},{"class":2340,"line":2421},[32619,32623,32628,32633,32637],{"type":21,"tag":2338,"props":32620,"children":32621},{"style":3219},[32622],{"type":26,"value":4382},{"type":21,"tag":2338,"props":32624,"children":32625},{"style":4385},[32626],{"type":26,"value":32627}," large_circuit",{"type":21,"tag":2338,"props":32629,"children":32630},{"style":2345},[32631],{"type":26,"value":32632},"(n: ",{"type":21,"tag":2338,"props":32634,"children":32635},{"style":2363},[32636],{"type":26,"value":5044},{"type":21,"tag":2338,"props":32638,"children":32639},{"style":2345},[32640],{"type":26,"value":4435},{"type":21,"tag":2338,"props":32642,"children":32643},{"class":2340,"line":2445},[32644,32648,32652],{"type":21,"tag":2338,"props":32645,"children":32646},{"style":2345},[32647],{"type":26,"value":21948},{"type":21,"tag":2338,"props":32649,"children":32650},{"style":3219},[32651],{"type":26,"value":3259},{"type":21,"tag":2338,"props":32653,"children":32654},{"style":2345},[32655],{"type":26,"value":32656}," cudaq.qvector(n)\n",{"type":21,"tag":2338,"props":32658,"children":32659},{"class":2340,"line":877},[32660,32664,32668],{"type":21,"tag":2338,"props":32661,"children":32662},{"style":2345},[32663],{"type":26,"value":21973},{"type":21,"tag":2338,"props":32665,"children":32666},{"style":2363},[32667],{"type":26,"value":5189},{"type":21,"tag":2338,"props":32669,"children":32670},{"style":2345},[32671],{"type":26,"value":3580},{"type":21,"tag":2338,"props":32673,"children":32674},{"class":2340,"line":196},[32675,32679,32683,32687,32691,32695,32699,32703],{"type":21,"tag":2338,"props":32676,"children":32677},{"style":3219},[32678],{"type":26,"value":4761},{"type":21,"tag":2338,"props":32680,"children":32681},{"style":2345},[32682],{"type":26,"value":4766},{"type":21,"tag":2338,"props":32684,"children":32685},{"style":3219},[32686],{"type":26,"value":3522},{"type":21,"tag":2338,"props":32688,"children":32689},{"style":2363},[32690],{"type":26,"value":3527},{"type":21,"tag":2338,"props":32692,"children":32693},{"style":2345},[32694],{"type":26,"value":7690},{"type":21,"tag":2338,"props":32696,"children":32697},{"style":3219},[32698],{"type":26,"value":4869},{"type":21,"tag":2338,"props":32700,"children":32701},{"style":2363},[32702],{"type":26,"value":6120},{"type":21,"tag":2338,"props":32704,"children":32705},{"style":2345},[32706],{"type":26,"value":4435},{"type":21,"tag":2338,"props":32708,"children":32709},{"class":2340,"line":951},[32710,32715,32719,32723],{"type":21,"tag":2338,"props":32711,"children":32712},{"style":2345},[32713],{"type":26,"value":32714},"        cx(qvec[i], qvec[i ",{"type":21,"tag":2338,"props":32716,"children":32717},{"style":3219},[32718],{"type":26,"value":6549},{"type":21,"tag":2338,"props":32720,"children":32721},{"style":2363},[32722],{"type":26,"value":6120},{"type":21,"tag":2338,"props":32724,"children":32725},{"style":2345},[32726],{"type":26,"value":3580},{"type":21,"tag":2338,"props":32728,"children":32729},{"class":2340,"line":16},[32730],{"type":21,"tag":2338,"props":32731,"children":32732},{"style":2345},[32733],{"type":26,"value":32734},"    mz(qvec)\n",{"type":21,"tag":2338,"props":32736,"children":32737},{"class":2340,"line":3465},[32738],{"type":21,"tag":2338,"props":32739,"children":32740},{"emptyLinePlaceholder":3243},[32741],{"type":26,"value":3246},{"type":21,"tag":2338,"props":32743,"children":32744},{"class":2340,"line":3475},[32745],{"type":21,"tag":2338,"props":32746,"children":32747},{"style":3469},[32748],{"type":26,"value":32749},"# Run on GPU (specify 'nvidia' target)\n",{"type":21,"tag":2338,"props":32751,"children":32752},{"class":2340,"line":500},[32753,32758,32763],{"type":21,"tag":2338,"props":32754,"children":32755},{"style":2345},[32756],{"type":26,"value":32757},"cudaq.set_target(",{"type":21,"tag":2338,"props":32759,"children":32760},{"style":2374},[32761],{"type":26,"value":32762},"'nvidia'",{"type":21,"tag":2338,"props":32764,"children":32765},{"style":2345},[32766],{"type":26,"value":3319},{"type":21,"tag":2338,"props":32768,"children":32769},{"class":2340,"line":3535},[32770,32774,32778,32783,32788,32792,32796,32800,32805],{"type":21,"tag":2338,"props":32771,"children":32772},{"style":2345},[32773],{"type":26,"value":8478},{"type":21,"tag":2338,"props":32775,"children":32776},{"style":3219},[32777],{"type":26,"value":3259},{"type":21,"tag":2338,"props":32779,"children":32780},{"style":2345},[32781],{"type":26,"value":32782}," cudaq.sample(large_circuit, ",{"type":21,"tag":2338,"props":32784,"children":32785},{"style":2363},[32786],{"type":26,"value":32787},"30",{"type":21,"tag":2338,"props":32789,"children":32790},{"style":2345},[32791],{"type":26,"value":1375},{"type":21,"tag":2338,"props":32793,"children":32794},{"style":3284},[32795],{"type":26,"value":22022},{"type":21,"tag":2338,"props":32797,"children":32798},{"style":3219},[32799],{"type":26,"value":3259},{"type":21,"tag":2338,"props":32801,"children":32802},{"style":2363},[32803],{"type":26,"value":32804},"10000",{"type":21,"tag":2338,"props":32806,"children":32807},{"style":2345},[32808],{"type":26,"value":3319},{"type":21,"tag":2338,"props":32810,"children":32811},{"class":2340,"line":3583},[32812,32816],{"type":21,"tag":2338,"props":32813,"children":32814},{"style":2363},[32815],{"type":26,"value":3334},{"type":21,"tag":2338,"props":32817,"children":32818},{"style":2345},[32819],{"type":26,"value":32820},"(counts)\n",{"type":21,"tag":22,"props":32822,"children":32823},{},[32824,32829],{"type":21,"tag":205,"props":32825,"children":32826},{},[32827],{"type":26,"value":32828},"Leistungs-Benchmark",{"type":26,"value":32830}," (GHZ-Schaltkreis, 28 Qubits, 1000 Shots):",{"type":21,"tag":3137,"props":32832,"children":32833},{},[32834,32839,32844],{"type":21,"tag":3141,"props":32835,"children":32836},{},[32837],{"type":26,"value":32838},"Qiskit Aer CPU: ~45 Sekunden",{"type":21,"tag":3141,"props":32840,"children":32841},{},[32842],{"type":26,"value":32843},"PennyLane lightning.qubit: ~30 Sekunden",{"type":21,"tag":3141,"props":32845,"children":32846},{},[32847],{"type":26,"value":32848},"CUDA-Q (A100 GPU): ~0,8 Sekunden",{"type":21,"tag":22,"props":32850,"children":32851},{},[32852,32857],{"type":21,"tag":205,"props":32853,"children":32854},{},[32855],{"type":26,"value":32856},"Wann CUDA-Q verwenden:",{"type":26,"value":32858}," Jeder Schaltkreis mit mehr als 25 Qubits, leistungskritische Simulationen, Multi-GPU-Workloads.",{"type":21,"tag":29,"props":32860,"children":32862},{"id":32861},"cirq-rauschmodellierung-und-nisq-forschung",[32863],{"type":26,"value":32864},"Cirq: Rauschmodellierung und NISQ-Forschung",{"type":21,"tag":22,"props":32866,"children":32867},{},[32868,32872],{"type":21,"tag":41,"props":32869,"children":32870},{"href":8854},[32871],{"type":26,"value":20873},{"type":26,"value":32873}," enthält drei Simulatoren:",{"type":21,"tag":2328,"props":32875,"children":32877},{"className":3207,"code":32876,"language":3209,"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",[32878],{"type":21,"tag":2097,"props":32879,"children":32880},{"__ignoreMap":7},[32881,32893,32900,32908,32924,32931,32939,32956,32981,32988,33018,33025,33033],{"type":21,"tag":2338,"props":32882,"children":32883},{"class":2340,"line":2341},[32884,32888],{"type":21,"tag":2338,"props":32885,"children":32886},{"style":3219},[32887],{"type":26,"value":3232},{"type":21,"tag":2338,"props":32889,"children":32890},{"style":2345},[32891],{"type":26,"value":32892}," cirq\n",{"type":21,"tag":2338,"props":32894,"children":32895},{"class":2340,"line":173},[32896],{"type":21,"tag":2338,"props":32897,"children":32898},{"emptyLinePlaceholder":3243},[32899],{"type":26,"value":3246},{"type":21,"tag":2338,"props":32901,"children":32902},{"class":2340,"line":2359},[32903],{"type":21,"tag":2338,"props":32904,"children":32905},{"style":3469},[32906],{"type":26,"value":32907},"# Exact statevector simulation\n",{"type":21,"tag":2338,"props":32909,"children":32910},{"class":2340,"line":2421},[32911,32915,32919],{"type":21,"tag":2338,"props":32912,"children":32913},{"style":2345},[32914],{"type":26,"value":8445},{"type":21,"tag":2338,"props":32916,"children":32917},{"style":3219},[32918],{"type":26,"value":3259},{"type":21,"tag":2338,"props":32920,"children":32921},{"style":2345},[32922],{"type":26,"value":32923}," cirq.Simulator()\n",{"type":21,"tag":2338,"props":32925,"children":32926},{"class":2340,"line":2445},[32927],{"type":21,"tag":2338,"props":32928,"children":32929},{"emptyLinePlaceholder":3243},[32930],{"type":26,"value":3246},{"type":21,"tag":2338,"props":32932,"children":32933},{"class":2340,"line":877},[32934],{"type":21,"tag":2338,"props":32935,"children":32936},{"style":3469},[32937],{"type":26,"value":32938},"# Density matrix with noise\n",{"type":21,"tag":2338,"props":32940,"children":32941},{"class":2340,"line":196},[32942,32947,32951],{"type":21,"tag":2338,"props":32943,"children":32944},{"style":2345},[32945],{"type":26,"value":32946},"noise_model ",{"type":21,"tag":2338,"props":32948,"children":32949},{"style":3219},[32950],{"type":26,"value":3259},{"type":21,"tag":2338,"props":32952,"children":32953},{"style":2345},[32954],{"type":26,"value":32955}," cirq.ConstantQubitNoiseModel(\n",{"type":21,"tag":2338,"props":32957,"children":32958},{"class":2340,"line":951},[32959,32964,32968,32972,32977],{"type":21,"tag":2338,"props":32960,"children":32961},{"style":2345},[32962],{"type":26,"value":32963},"    cirq.depolarize(",{"type":21,"tag":2338,"props":32965,"children":32966},{"style":3284},[32967],{"type":26,"value":22},{"type":21,"tag":2338,"props":32969,"children":32970},{"style":3219},[32971],{"type":26,"value":3259},{"type":21,"tag":2338,"props":32973,"children":32974},{"style":2363},[32975],{"type":26,"value":32976},"0.01",{"type":21,"tag":2338,"props":32978,"children":32979},{"style":2345},[32980],{"type":26,"value":3319},{"type":21,"tag":2338,"props":32982,"children":32983},{"class":2340,"line":16},[32984],{"type":21,"tag":2338,"props":32985,"children":32986},{"style":2345},[32987],{"type":26,"value":3319},{"type":21,"tag":2338,"props":32989,"children":32990},{"class":2340,"line":3465},[32991,32996,33000,33005,33009,33013],{"type":21,"tag":2338,"props":32992,"children":32993},{"style":2345},[32994],{"type":26,"value":32995},"noisy_sim ",{"type":21,"tag":2338,"props":32997,"children":32998},{"style":3219},[32999],{"type":26,"value":3259},{"type":21,"tag":2338,"props":33001,"children":33002},{"style":2345},[33003],{"type":26,"value":33004}," cirq.DensityMatrixSimulator(",{"type":21,"tag":2338,"props":33006,"children":33007},{"style":3284},[33008],{"type":26,"value":14660},{"type":21,"tag":2338,"props":33010,"children":33011},{"style":3219},[33012],{"type":26,"value":3259},{"type":21,"tag":2338,"props":33014,"children":33015},{"style":2345},[33016],{"type":26,"value":33017},"noise_model)\n",{"type":21,"tag":2338,"props":33019,"children":33020},{"class":2340,"line":3475},[33021],{"type":21,"tag":2338,"props":33022,"children":33023},{"emptyLinePlaceholder":3243},[33024],{"type":26,"value":3246},{"type":21,"tag":2338,"props":33026,"children":33027},{"class":2340,"line":500},[33028],{"type":21,"tag":2338,"props":33029,"children":33030},{"style":3469},[33031],{"type":26,"value":33032},"# Clifford circuits only (but exponentially faster for stabilizer states)\n",{"type":21,"tag":2338,"props":33034,"children":33035},{"class":2340,"line":3535},[33036,33041,33045],{"type":21,"tag":2338,"props":33037,"children":33038},{"style":2345},[33039],{"type":26,"value":33040},"clifford_sim ",{"type":21,"tag":2338,"props":33042,"children":33043},{"style":3219},[33044],{"type":26,"value":3259},{"type":21,"tag":2338,"props":33046,"children":33047},{"style":2345},[33048],{"type":26,"value":33049}," cirq.CliffordSimulator()\n",{"type":21,"tag":22,"props":33051,"children":33052},{},[33053,33058],{"type":21,"tag":205,"props":33054,"children":33055},{},[33056],{"type":26,"value":33057},"Wann Cirq verwenden:",{"type":26,"value":33059}," NISQ-Rauschmodellierung, Forschung an Stabilizer-Schaltkreisen, Google-AI-Quantum-Workflows.",{"type":21,"tag":29,"props":33061,"children":33063},{"id":33062},"amazon-braket-localsimulator-isolation-und-portabilität",[33064],{"type":26,"value":33065},"Amazon Braket LocalSimulator: Isolation und Portabilität",{"type":21,"tag":22,"props":33067,"children":33068},{},[33069,33071,33077],{"type":26,"value":33070},"Das ",{"type":21,"tag":41,"props":33072,"children":33074},{"href":33073},"\u002Fsdks\u002Fbraket",[33075],{"type":26,"value":33076},"Braket SDK",{"type":26,"value":33078}," enthält einen kostenlosen lokalen Simulator, der die Cloud-API exakt abbildet:",{"type":21,"tag":2328,"props":33080,"children":33082},{"className":3207,"code":33081,"language":3209,"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",[33083],{"type":21,"tag":2097,"props":33084,"children":33085},{"__ignoreMap":7},[33086,33107,33128,33135,33152,33159,33176,33192,33216,33224,33231,33264,33280],{"type":21,"tag":2338,"props":33087,"children":33088},{"class":2340,"line":2341},[33089,33093,33098,33102],{"type":21,"tag":2338,"props":33090,"children":33091},{"style":3219},[33092],{"type":26,"value":3222},{"type":21,"tag":2338,"props":33094,"children":33095},{"style":2345},[33096],{"type":26,"value":33097}," braket.devices ",{"type":21,"tag":2338,"props":33099,"children":33100},{"style":3219},[33101],{"type":26,"value":3232},{"type":21,"tag":2338,"props":33103,"children":33104},{"style":2345},[33105],{"type":26,"value":33106}," LocalSimulator\n",{"type":21,"tag":2338,"props":33108,"children":33109},{"class":2340,"line":173},[33110,33114,33119,33123],{"type":21,"tag":2338,"props":33111,"children":33112},{"style":3219},[33113],{"type":26,"value":3222},{"type":21,"tag":2338,"props":33115,"children":33116},{"style":2345},[33117],{"type":26,"value":33118}," braket.circuits ",{"type":21,"tag":2338,"props":33120,"children":33121},{"style":3219},[33122],{"type":26,"value":3232},{"type":21,"tag":2338,"props":33124,"children":33125},{"style":2345},[33126],{"type":26,"value":33127}," Circuit\n",{"type":21,"tag":2338,"props":33129,"children":33130},{"class":2340,"line":2359},[33131],{"type":21,"tag":2338,"props":33132,"children":33133},{"emptyLinePlaceholder":3243},[33134],{"type":26,"value":3246},{"type":21,"tag":2338,"props":33136,"children":33137},{"class":2340,"line":2421},[33138,33143,33147],{"type":21,"tag":2338,"props":33139,"children":33140},{"style":2345},[33141],{"type":26,"value":33142},"device ",{"type":21,"tag":2338,"props":33144,"children":33145},{"style":3219},[33146],{"type":26,"value":3259},{"type":21,"tag":2338,"props":33148,"children":33149},{"style":2345},[33150],{"type":26,"value":33151}," LocalSimulator()\n",{"type":21,"tag":2338,"props":33153,"children":33154},{"class":2340,"line":2445},[33155],{"type":21,"tag":2338,"props":33156,"children":33157},{"emptyLinePlaceholder":3243},[33158],{"type":26,"value":3246},{"type":21,"tag":2338,"props":33160,"children":33161},{"class":2340,"line":877},[33162,33167,33171],{"type":21,"tag":2338,"props":33163,"children":33164},{"style":2345},[33165],{"type":26,"value":33166},"circuit ",{"type":21,"tag":2338,"props":33168,"children":33169},{"style":3219},[33170],{"type":26,"value":3259},{"type":21,"tag":2338,"props":33172,"children":33173},{"style":2345},[33174],{"type":26,"value":33175}," Circuit()\n",{"type":21,"tag":2338,"props":33177,"children":33178},{"class":2340,"line":196},[33179,33184,33188],{"type":21,"tag":2338,"props":33180,"children":33181},{"style":2345},[33182],{"type":26,"value":33183},"circuit.h(",{"type":21,"tag":2338,"props":33185,"children":33186},{"style":2363},[33187],{"type":26,"value":5189},{"type":21,"tag":2338,"props":33189,"children":33190},{"style":2345},[33191],{"type":26,"value":3319},{"type":21,"tag":2338,"props":33193,"children":33194},{"class":2340,"line":951},[33195,33200,33204,33208,33212],{"type":21,"tag":2338,"props":33196,"children":33197},{"style":2345},[33198],{"type":26,"value":33199},"circuit.cnot(",{"type":21,"tag":2338,"props":33201,"children":33202},{"style":2363},[33203],{"type":26,"value":5189},{"type":21,"tag":2338,"props":33205,"children":33206},{"style":2345},[33207],{"type":26,"value":1375},{"type":21,"tag":2338,"props":33209,"children":33210},{"style":2363},[33211],{"type":26,"value":3575},{"type":21,"tag":2338,"props":33213,"children":33214},{"style":2345},[33215],{"type":26,"value":3319},{"type":21,"tag":2338,"props":33217,"children":33218},{"class":2340,"line":16},[33219],{"type":21,"tag":2338,"props":33220,"children":33221},{"style":2345},[33222],{"type":26,"value":33223},"circuit.probability()\n",{"type":21,"tag":2338,"props":33225,"children":33226},{"class":2340,"line":3465},[33227],{"type":21,"tag":2338,"props":33228,"children":33229},{"emptyLinePlaceholder":3243},[33230],{"type":26,"value":3246},{"type":21,"tag":2338,"props":33232,"children":33233},{"class":2340,"line":3475},[33234,33239,33243,33248,33252,33256,33260],{"type":21,"tag":2338,"props":33235,"children":33236},{"style":2345},[33237],{"type":26,"value":33238},"task ",{"type":21,"tag":2338,"props":33240,"children":33241},{"style":3219},[33242],{"type":26,"value":3259},{"type":21,"tag":2338,"props":33244,"children":33245},{"style":2345},[33246],{"type":26,"value":33247}," device.run(circuit, ",{"type":21,"tag":2338,"props":33249,"children":33250},{"style":3284},[33251],{"type":26,"value":4144},{"type":21,"tag":2338,"props":33253,"children":33254},{"style":3219},[33255],{"type":26,"value":3259},{"type":21,"tag":2338,"props":33257,"children":33258},{"style":2363},[33259],{"type":26,"value":20490},{"type":21,"tag":2338,"props":33261,"children":33262},{"style":2345},[33263],{"type":26,"value":3319},{"type":21,"tag":2338,"props":33265,"children":33266},{"class":2340,"line":500},[33267,33271,33275],{"type":21,"tag":2338,"props":33268,"children":33269},{"style":2345},[33270],{"type":26,"value":19355},{"type":21,"tag":2338,"props":33272,"children":33273},{"style":3219},[33274],{"type":26,"value":3259},{"type":21,"tag":2338,"props":33276,"children":33277},{"style":2345},[33278],{"type":26,"value":33279}," task.result()\n",{"type":21,"tag":2338,"props":33281,"children":33282},{"class":2340,"line":3535},[33283,33287],{"type":21,"tag":2338,"props":33284,"children":33285},{"style":2363},[33286],{"type":26,"value":3334},{"type":21,"tag":2338,"props":33288,"children":33289},{"style":2345},[33290],{"type":26,"value":33291},"(result.measurement_counts)\n",{"type":21,"tag":22,"props":33293,"children":33294},{},[33295,33300],{"type":21,"tag":205,"props":33296,"children":33297},{},[33298],{"type":26,"value":33299},"Wann Braket local verwenden:",{"type":26,"value":33301}," Sie entwickeln für ein AWS-Deployment und möchten lokale Entwicklung\u002FTests, die der Cloud-API entsprechen.",{"type":21,"tag":29,"props":33303,"children":33305},{"id":33304},"die-hlquantum-abkürzung",[33306],{"type":26,"value":33307},"Die HLQuantum-Abkürzung",{"type":21,"tag":22,"props":33309,"children":33310},{},[33311,33313,33317],{"type":26,"value":33312},"Wenn Sie denselben Schaltkreis zum Benchmarking oder Vergleich auf mehreren Simulatoren ausführen müssen, macht ",{"type":21,"tag":41,"props":33314,"children":33315},{"href":19030},[33316],{"type":26,"value":19033},{"type":26,"value":33318}," dies zum Kinderspiel:",{"type":21,"tag":2328,"props":33320,"children":33322},{"className":3207,"code":33321,"language":3209,"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",[33323],{"type":21,"tag":2097,"props":33324,"children":33325},{"__ignoreMap":7},[33326,33345,33357,33364,33388,33403,33435,33455,33462,33469,33515,33532,33576],{"type":21,"tag":2338,"props":33327,"children":33328},{"class":2340,"line":2341},[33329,33333,33337,33341],{"type":21,"tag":2338,"props":33330,"children":33331},{"style":3219},[33332],{"type":26,"value":3232},{"type":21,"tag":2338,"props":33334,"children":33335},{"style":2345},[33336],{"type":26,"value":19323},{"type":21,"tag":2338,"props":33338,"children":33339},{"style":3219},[33340],{"type":26,"value":4299},{"type":21,"tag":2338,"props":33342,"children":33343},{"style":2345},[33344],{"type":26,"value":19332},{"type":21,"tag":2338,"props":33346,"children":33347},{"class":2340,"line":173},[33348,33352],{"type":21,"tag":2338,"props":33349,"children":33350},{"style":3219},[33351],{"type":26,"value":3232},{"type":21,"tag":2338,"props":33353,"children":33354},{"style":2345},[33355],{"type":26,"value":33356}," time\n",{"type":21,"tag":2338,"props":33358,"children":33359},{"class":2340,"line":2359},[33360],{"type":21,"tag":2338,"props":33361,"children":33362},{"emptyLinePlaceholder":3243},[33363],{"type":26,"value":3246},{"type":21,"tag":2338,"props":33365,"children":33366},{"class":2340,"line":2421},[33367,33371,33375,33379,33384],{"type":21,"tag":2338,"props":33368,"children":33369},{"style":2345},[33370],{"type":26,"value":7403},{"type":21,"tag":2338,"props":33372,"children":33373},{"style":3219},[33374],{"type":26,"value":3259},{"type":21,"tag":2338,"props":33376,"children":33377},{"style":2345},[33378],{"type":26,"value":21387},{"type":21,"tag":2338,"props":33380,"children":33381},{"style":2363},[33382],{"type":26,"value":33383},"28",{"type":21,"tag":2338,"props":33385,"children":33386},{"style":2345},[33387],{"type":26,"value":3319},{"type":21,"tag":2338,"props":33389,"children":33390},{"class":2340,"line":2445},[33391,33395,33399],{"type":21,"tag":2338,"props":33392,"children":33393},{"style":2345},[33394],{"type":26,"value":7419},{"type":21,"tag":2338,"props":33396,"children":33397},{"style":2363},[33398],{"type":26,"value":5189},{"type":21,"tag":2338,"props":33400,"children":33401},{"style":2345},[33402],{"type":26,"value":3319},{"type":21,"tag":2338,"props":33404,"children":33405},{"class":2340,"line":877},[33406,33410,33414,33418,33422,33426,33431],{"type":21,"tag":2338,"props":33407,"children":33408},{"style":3219},[33409],{"type":26,"value":3512},{"type":21,"tag":2338,"props":33411,"children":33412},{"style":2345},[33413],{"type":26,"value":4766},{"type":21,"tag":2338,"props":33415,"children":33416},{"style":3219},[33417],{"type":26,"value":3522},{"type":21,"tag":2338,"props":33419,"children":33420},{"style":2363},[33421],{"type":26,"value":3527},{"type":21,"tag":2338,"props":33423,"children":33424},{"style":2345},[33425],{"type":26,"value":3339},{"type":21,"tag":2338,"props":33427,"children":33428},{"style":2363},[33429],{"type":26,"value":33430},"27",{"type":21,"tag":2338,"props":33432,"children":33433},{"style":2345},[33434],{"type":26,"value":4435},{"type":21,"tag":2338,"props":33436,"children":33437},{"class":2340,"line":196},[33438,33443,33447,33451],{"type":21,"tag":2338,"props":33439,"children":33440},{"style":2345},[33441],{"type":26,"value":33442},"    qc.cx(i, i ",{"type":21,"tag":2338,"props":33444,"children":33445},{"style":3219},[33446],{"type":26,"value":6549},{"type":21,"tag":2338,"props":33448,"children":33449},{"style":2363},[33450],{"type":26,"value":6120},{"type":21,"tag":2338,"props":33452,"children":33453},{"style":2345},[33454],{"type":26,"value":3319},{"type":21,"tag":2338,"props":33456,"children":33457},{"class":2340,"line":951},[33458],{"type":21,"tag":2338,"props":33459,"children":33460},{"style":2345},[33461],{"type":26,"value":13110},{"type":21,"tag":2338,"props":33463,"children":33464},{"class":2340,"line":16},[33465],{"type":21,"tag":2338,"props":33466,"children":33467},{"emptyLinePlaceholder":3243},[33468],{"type":26,"value":3246},{"type":21,"tag":2338,"props":33470,"children":33471},{"class":2340,"line":3465},[33472,33476,33481,33485,33489,33493,33497,33502,33506,33511],{"type":21,"tag":2338,"props":33473,"children":33474},{"style":3219},[33475],{"type":26,"value":3512},{"type":21,"tag":2338,"props":33477,"children":33478},{"style":2345},[33479],{"type":26,"value":33480}," backend ",{"type":21,"tag":2338,"props":33482,"children":33483},{"style":3219},[33484],{"type":26,"value":3522},{"type":21,"tag":2338,"props":33486,"children":33487},{"style":2345},[33488],{"type":26,"value":6682},{"type":21,"tag":2338,"props":33490,"children":33491},{"style":2374},[33492],{"type":26,"value":28809},{"type":21,"tag":2338,"props":33494,"children":33495},{"style":2345},[33496],{"type":26,"value":1375},{"type":21,"tag":2338,"props":33498,"children":33499},{"style":2374},[33500],{"type":26,"value":33501},"\"pennylane\"",{"type":21,"tag":2338,"props":33503,"children":33504},{"style":2345},[33505],{"type":26,"value":1375},{"type":21,"tag":2338,"props":33507,"children":33508},{"style":2374},[33509],{"type":26,"value":33510},"\"cudaq\"",{"type":21,"tag":2338,"props":33512,"children":33513},{"style":2345},[33514],{"type":26,"value":17607},{"type":21,"tag":2338,"props":33516,"children":33517},{"class":2340,"line":3475},[33518,33523,33527],{"type":21,"tag":2338,"props":33519,"children":33520},{"style":2345},[33521],{"type":26,"value":33522},"    t0 ",{"type":21,"tag":2338,"props":33524,"children":33525},{"style":3219},[33526],{"type":26,"value":3259},{"type":21,"tag":2338,"props":33528,"children":33529},{"style":2345},[33530],{"type":26,"value":33531}," time.time()\n",{"type":21,"tag":2338,"props":33533,"children":33534},{"class":2340,"line":500},[33535,33540,33544,33548,33552,33556,33560,33564,33568,33572],{"type":21,"tag":2338,"props":33536,"children":33537},{"style":2345},[33538],{"type":26,"value":33539},"    result ",{"type":21,"tag":2338,"props":33541,"children":33542},{"style":3219},[33543],{"type":26,"value":3259},{"type":21,"tag":2338,"props":33545,"children":33546},{"style":2345},[33547],{"type":26,"value":21451},{"type":21,"tag":2338,"props":33549,"children":33550},{"style":3284},[33551],{"type":26,"value":4144},{"type":21,"tag":2338,"props":33553,"children":33554},{"style":3219},[33555],{"type":26,"value":3259},{"type":21,"tag":2338,"props":33557,"children":33558},{"style":2363},[33559],{"type":26,"value":20490},{"type":21,"tag":2338,"props":33561,"children":33562},{"style":2345},[33563],{"type":26,"value":1375},{"type":21,"tag":2338,"props":33565,"children":33566},{"style":3284},[33567],{"type":26,"value":18490},{"type":21,"tag":2338,"props":33569,"children":33570},{"style":3219},[33571],{"type":26,"value":3259},{"type":21,"tag":2338,"props":33573,"children":33574},{"style":2345},[33575],{"type":26,"value":28326},{"type":21,"tag":2338,"props":33577,"children":33578},{"class":2340,"line":3535},[33579,33583,33587,33591,33595,33599,33603,33607,33611,33615,33620,33624,33629,33634,33638,33643],{"type":21,"tag":2338,"props":33580,"children":33581},{"style":2363},[33582],{"type":26,"value":17246},{"type":21,"tag":2338,"props":33584,"children":33585},{"style":2345},[33586],{"type":26,"value":3339},{"type":21,"tag":2338,"props":33588,"children":33589},{"style":3219},[33590],{"type":26,"value":3344},{"type":21,"tag":2338,"props":33592,"children":33593},{"style":2374},[33594],{"type":26,"value":3369},{"type":21,"tag":2338,"props":33596,"children":33597},{"style":2363},[33598],{"type":26,"value":3354},{"type":21,"tag":2338,"props":33600,"children":33601},{"style":2345},[33602],{"type":26,"value":18490},{"type":21,"tag":2338,"props":33604,"children":33605},{"style":2363},[33606],{"type":26,"value":3364},{"type":21,"tag":2338,"props":33608,"children":33609},{"style":2374},[33610],{"type":26,"value":2432},{"type":21,"tag":2338,"props":33612,"children":33613},{"style":2363},[33614],{"type":26,"value":3354},{"type":21,"tag":2338,"props":33616,"children":33617},{"style":2345},[33618],{"type":26,"value":33619},"time.time() ",{"type":21,"tag":2338,"props":33621,"children":33622},{"style":3219},[33623],{"type":26,"value":4869},{"type":21,"tag":2338,"props":33625,"children":33626},{"style":2345},[33627],{"type":26,"value":33628}," t0",{"type":21,"tag":2338,"props":33630,"children":33631},{"style":3219},[33632],{"type":26,"value":33633},":.2f",{"type":21,"tag":2338,"props":33635,"children":33636},{"style":2363},[33637],{"type":26,"value":3364},{"type":21,"tag":2338,"props":33639,"children":33640},{"style":2374},[33641],{"type":26,"value":33642},"s\"",{"type":21,"tag":2338,"props":33644,"children":33645},{"style":2345},[33646],{"type":26,"value":3319},{"type":21,"tag":22,"props":33648,"children":33649},{},[33650],{"type":26,"value":33651},"Ein Schaltkreis, drei Backends, direkt vergleichbare Ergebnisse.",{"type":21,"tag":2712,"props":33653,"children":33654},{},[33655],{"type":26,"value":2716},{"title":7,"searchDepth":173,"depth":173,"links":33657},[33658,33659,33660,33661,33662,33663,33664],{"id":31684,"depth":173,"text":31687},{"id":31873,"depth":173,"text":31876},{"id":32121,"depth":173,"text":32124},{"id":32571,"depth":173,"text":32574},{"id":32861,"depth":173,"text":32864},{"id":33062,"depth":173,"text":33065},{"id":33304,"depth":173,"text":33307},"content:de:blog:quantum-simulators-compared.md","de\u002Fblog\u002Fquantum-simulators-compared.md","de\u002Fblog\u002Fquantum-simulators-compared",{"_path":33669,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":33670,"description":33671,"date":33672,"author":11,"tags":33673,"readingTime":16,"body":33674,"_type":180,"_id":35774,"_source":182,"_file":35775,"_stem":35776,"_extension":185},"\u002Fde\u002Fblog\u002Fvqe-pennylane-practical-guide","Einen VQE mit PennyLane erstellen: Ein praktischer Leitfaden","Schritt-für-Schritt-Implementierung des Variational Quantum Eigensolver mit PennyLane — vom Hamiltonian-Setup bis zur klassischen Optimierungsschleife.","2026-01-28",[352,13806,7169,13805],{"type":18,"children":33675,"toc":35765},[33676,33681,33687,33692,33715,33720,33726,33731,33758,33763,34094,34100,34112,34442,34448,34453,34928,34933,34941,34946,34952,34957,35241,35247,35252,35600,35606,35611,35621,35631,35649,35742,35761],{"type":21,"tag":22,"props":33677,"children":33678},{},[33679],{"type":26,"value":33680},"Der Variational Quantum Eigensolver (VQE) ist einer der wichtigsten Quantenalgorithmen für die nahe Zukunft. Er findet die Grundzustandsenergie eines Moleküls oder Materials — eine Berechnung, die für klassische Computer exponentiell schwierig, auf NISQ-Geräten aber handhabbar ist. Dieser Leitfaden führt durch eine vollständige VQE-Implementierung in PennyLane.",{"type":21,"tag":29,"props":33682,"children":33684},{"id":33683},"was-vqe-macht",[33685],{"type":26,"value":33686},"Was VQE macht",{"type":21,"tag":22,"props":33688,"children":33689},{},[33690],{"type":26,"value":33691},"VQE findet den kleinsten Eigenwert eines Hamiltonians H (der üblicherweise die Energie eines Moleküls repräsentiert). Es funktioniert so:",{"type":21,"tag":7028,"props":33693,"children":33694},{},[33695,33700,33705,33710],{"type":21,"tag":3141,"props":33696,"children":33697},{},[33698],{"type":26,"value":33699},"Vorbereiten eines parametrisierten Testzustands |ψ(θ)⟩ mit einer Quantenschaltung",{"type":21,"tag":3141,"props":33701,"children":33702},{},[33703],{"type":26,"value":33704},"Messen des Erwartungswerts ⟨ψ(θ)|H|ψ(θ)⟩ auf der QPU",{"type":21,"tag":3141,"props":33706,"children":33707},{},[33708],{"type":26,"value":33709},"Verwenden eines klassischen Optimierers, um θ zu aktualisieren und die Energie zu minimieren",{"type":21,"tag":3141,"props":33711,"children":33712},{},[33713],{"type":26,"value":33714},"Wiederholen bis zur Konvergenz",{"type":21,"tag":22,"props":33716,"children":33717},{},[33718],{"type":26,"value":33719},"Das Variationsprinzip garantiert ⟨ψ(θ)|H|ψ(θ)⟩ ≥ E₀ für jeden Zustand — daher liefert die Minimierung dieser Größe eine obere Schranke für die wahre Grundzustandsenergie E₀.",{"type":21,"tag":29,"props":33721,"children":33723},{"id":33722},"einrichtung",[33724],{"type":26,"value":33725},"Einrichtung",{"type":21,"tag":22,"props":33727,"children":33728},{},[33729],{"type":26,"value":33730},"Installiere PennyLane mit seinem Chemie-Plugin:",{"type":21,"tag":2328,"props":33732,"children":33734},{"code":33733,"language":9766,"meta":7,"className":9764,"style":7},"pip install pennylane pennylane-qchem\n",[33735],{"type":21,"tag":2097,"props":33736,"children":33737},{"__ignoreMap":7},[33738],{"type":21,"tag":2338,"props":33739,"children":33740},{"class":2340,"line":2341},[33741,33745,33749,33753],{"type":21,"tag":2338,"props":33742,"children":33743},{"style":4385},[33744],{"type":26,"value":11815},{"type":21,"tag":2338,"props":33746,"children":33747},{"style":2374},[33748],{"type":26,"value":11820},{"type":21,"tag":2338,"props":33750,"children":33751},{"style":2374},[33752],{"type":26,"value":20628},{"type":21,"tag":2338,"props":33754,"children":33755},{"style":2374},[33756],{"type":26,"value":33757}," pennylane-qchem\n",{"type":21,"tag":22,"props":33759,"children":33760},{},[33761],{"type":26,"value":33762},"Für das Wasserstoffmolekül (H₂) — den klassischen VQE-Benchmark — benötigen wir zwei Elektronen und vier Spin-Orbitale (4 Qubits):",{"type":21,"tag":2328,"props":33764,"children":33766},{"code":33765,"language":3209,"meta":7,"className":3207,"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",[33767],{"type":21,"tag":2097,"props":33768,"children":33769},{"__ignoreMap":7},[33770,33789,33816,33837,33844,33852,33885,33956,33963,33971,33988,33996,34004,34020,34027,34086],{"type":21,"tag":2338,"props":33771,"children":33772},{"class":2340,"line":2341},[33773,33777,33781,33785],{"type":21,"tag":2338,"props":33774,"children":33775},{"style":3219},[33776],{"type":26,"value":3232},{"type":21,"tag":2338,"props":33778,"children":33779},{"style":2345},[33780],{"type":26,"value":14113},{"type":21,"tag":2338,"props":33782,"children":33783},{"style":3219},[33784],{"type":26,"value":4299},{"type":21,"tag":2338,"props":33786,"children":33787},{"style":2345},[33788],{"type":26,"value":14122},{"type":21,"tag":2338,"props":33790,"children":33791},{"class":2340,"line":173},[33792,33796,33800,33804,33808,33812],{"type":21,"tag":2338,"props":33793,"children":33794},{"style":3219},[33795],{"type":26,"value":3222},{"type":21,"tag":2338,"props":33797,"children":33798},{"style":2345},[33799],{"type":26,"value":14113},{"type":21,"tag":2338,"props":33801,"children":33802},{"style":3219},[33803],{"type":26,"value":3232},{"type":21,"tag":2338,"props":33805,"children":33806},{"style":2345},[33807],{"type":26,"value":4294},{"type":21,"tag":2338,"props":33809,"children":33810},{"style":3219},[33811],{"type":26,"value":4299},{"type":21,"tag":2338,"props":33813,"children":33814},{"style":2345},[33815],{"type":26,"value":4304},{"type":21,"tag":2338,"props":33817,"children":33818},{"class":2340,"line":2359},[33819,33823,33828,33832],{"type":21,"tag":2338,"props":33820,"children":33821},{"style":3219},[33822],{"type":26,"value":3232},{"type":21,"tag":2338,"props":33824,"children":33825},{"style":2345},[33826],{"type":26,"value":33827}," pennylane.qchem ",{"type":21,"tag":2338,"props":33829,"children":33830},{"style":3219},[33831],{"type":26,"value":4299},{"type":21,"tag":2338,"props":33833,"children":33834},{"style":2345},[33835],{"type":26,"value":33836}," qchem\n",{"type":21,"tag":2338,"props":33838,"children":33839},{"class":2340,"line":2421},[33840],{"type":21,"tag":2338,"props":33841,"children":33842},{"emptyLinePlaceholder":3243},[33843],{"type":26,"value":3246},{"type":21,"tag":2338,"props":33845,"children":33846},{"class":2340,"line":2445},[33847],{"type":21,"tag":2338,"props":33848,"children":33849},{"style":3469},[33850],{"type":26,"value":33851},"# H2 at equilibrium bond length (Angstrom)\n",{"type":21,"tag":2338,"props":33853,"children":33854},{"class":2340,"line":877},[33855,33860,33864,33868,33873,33877,33881],{"type":21,"tag":2338,"props":33856,"children":33857},{"style":2345},[33858],{"type":26,"value":33859},"symbols ",{"type":21,"tag":2338,"props":33861,"children":33862},{"style":3219},[33863],{"type":26,"value":3259},{"type":21,"tag":2338,"props":33865,"children":33866},{"style":2345},[33867],{"type":26,"value":6682},{"type":21,"tag":2338,"props":33869,"children":33870},{"style":2374},[33871],{"type":26,"value":33872},"\"H\"",{"type":21,"tag":2338,"props":33874,"children":33875},{"style":2345},[33876],{"type":26,"value":1375},{"type":21,"tag":2338,"props":33878,"children":33879},{"style":2374},[33880],{"type":26,"value":33872},{"type":21,"tag":2338,"props":33882,"children":33883},{"style":2345},[33884],{"type":26,"value":6708},{"type":21,"tag":2338,"props":33886,"children":33887},{"class":2340,"line":196},[33888,33893,33897,33902,33906,33910,33914,33918,33922,33927,33931,33935,33939,33943,33947,33951],{"type":21,"tag":2338,"props":33889,"children":33890},{"style":2345},[33891],{"type":26,"value":33892},"coordinates ",{"type":21,"tag":2338,"props":33894,"children":33895},{"style":3219},[33896],{"type":26,"value":3259},{"type":21,"tag":2338,"props":33898,"children":33899},{"style":2345},[33900],{"type":26,"value":33901}," np.array([[",{"type":21,"tag":2338,"props":33903,"children":33904},{"style":2363},[33905],{"type":26,"value":14937},{"type":21,"tag":2338,"props":33907,"children":33908},{"style":2345},[33909],{"type":26,"value":1375},{"type":21,"tag":2338,"props":33911,"children":33912},{"style":2363},[33913],{"type":26,"value":14937},{"type":21,"tag":2338,"props":33915,"children":33916},{"style":2345},[33917],{"type":26,"value":1375},{"type":21,"tag":2338,"props":33919,"children":33920},{"style":3219},[33921],{"type":26,"value":4869},{"type":21,"tag":2338,"props":33923,"children":33924},{"style":2363},[33925],{"type":26,"value":33926},"0.6614",{"type":21,"tag":2338,"props":33928,"children":33929},{"style":2345},[33930],{"type":26,"value":5244},{"type":21,"tag":2338,"props":33932,"children":33933},{"style":2363},[33934],{"type":26,"value":14937},{"type":21,"tag":2338,"props":33936,"children":33937},{"style":2345},[33938],{"type":26,"value":1375},{"type":21,"tag":2338,"props":33940,"children":33941},{"style":2363},[33942],{"type":26,"value":14937},{"type":21,"tag":2338,"props":33944,"children":33945},{"style":2345},[33946],{"type":26,"value":1375},{"type":21,"tag":2338,"props":33948,"children":33949},{"style":2363},[33950],{"type":26,"value":33926},{"type":21,"tag":2338,"props":33952,"children":33953},{"style":2345},[33954],{"type":26,"value":33955},"]])\n",{"type":21,"tag":2338,"props":33957,"children":33958},{"class":2340,"line":951},[33959],{"type":21,"tag":2338,"props":33960,"children":33961},{"emptyLinePlaceholder":3243},[33962],{"type":26,"value":3246},{"type":21,"tag":2338,"props":33964,"children":33965},{"class":2340,"line":16},[33966],{"type":21,"tag":2338,"props":33967,"children":33968},{"style":3469},[33969],{"type":26,"value":33970},"# Build the qubit Hamiltonian\n",{"type":21,"tag":2338,"props":33972,"children":33973},{"class":2340,"line":3465},[33974,33979,33983],{"type":21,"tag":2338,"props":33975,"children":33976},{"style":2345},[33977],{"type":26,"value":33978},"H, qubits ",{"type":21,"tag":2338,"props":33980,"children":33981},{"style":3219},[33982],{"type":26,"value":3259},{"type":21,"tag":2338,"props":33984,"children":33985},{"style":2345},[33986],{"type":26,"value":33987}," qchem.molecular_hamiltonian(\n",{"type":21,"tag":2338,"props":33989,"children":33990},{"class":2340,"line":3475},[33991],{"type":21,"tag":2338,"props":33992,"children":33993},{"style":2345},[33994],{"type":26,"value":33995},"    symbols,\n",{"type":21,"tag":2338,"props":33997,"children":33998},{"class":2340,"line":500},[33999],{"type":21,"tag":2338,"props":34000,"children":34001},{"style":2345},[34002],{"type":26,"value":34003},"    coordinates,\n",{"type":21,"tag":2338,"props":34005,"children":34006},{"class":2340,"line":3535},[34007,34011,34015],{"type":21,"tag":2338,"props":34008,"children":34009},{"style":3284},[34010],{"type":26,"value":22874},{"type":21,"tag":2338,"props":34012,"children":34013},{"style":3219},[34014],{"type":26,"value":3259},{"type":21,"tag":2338,"props":34016,"children":34017},{"style":2374},[34018],{"type":26,"value":34019},"\"sto-3g\"\n",{"type":21,"tag":2338,"props":34021,"children":34022},{"class":2340,"line":3583},[34023],{"type":21,"tag":2338,"props":34024,"children":34025},{"style":2345},[34026],{"type":26,"value":3319},{"type":21,"tag":2338,"props":34028,"children":34029},{"class":2340,"line":3625},[34030,34034,34038,34042,34047,34051,34056,34060,34065,34069,34073,34077,34082],{"type":21,"tag":2338,"props":34031,"children":34032},{"style":2363},[34033],{"type":26,"value":3334},{"type":21,"tag":2338,"props":34035,"children":34036},{"style":2345},[34037],{"type":26,"value":3339},{"type":21,"tag":2338,"props":34039,"children":34040},{"style":3219},[34041],{"type":26,"value":3344},{"type":21,"tag":2338,"props":34043,"children":34044},{"style":2374},[34045],{"type":26,"value":34046},"\"Hamiltonian: ",{"type":21,"tag":2338,"props":34048,"children":34049},{"style":2363},[34050],{"type":26,"value":25002},{"type":21,"tag":2338,"props":34052,"children":34053},{"style":2345},[34054],{"type":26,"value":34055},"(H.ops)",{"type":21,"tag":2338,"props":34057,"children":34058},{"style":2363},[34059],{"type":26,"value":3364},{"type":21,"tag":2338,"props":34061,"children":34062},{"style":2374},[34063],{"type":26,"value":34064}," terms, ",{"type":21,"tag":2338,"props":34066,"children":34067},{"style":2363},[34068],{"type":26,"value":3354},{"type":21,"tag":2338,"props":34070,"children":34071},{"style":2345},[34072],{"type":26,"value":1263},{"type":21,"tag":2338,"props":34074,"children":34075},{"style":2363},[34076],{"type":26,"value":3364},{"type":21,"tag":2338,"props":34078,"children":34079},{"style":2374},[34080],{"type":26,"value":34081}," qubits\"",{"type":21,"tag":2338,"props":34083,"children":34084},{"style":2345},[34085],{"type":26,"value":3319},{"type":21,"tag":2338,"props":34087,"children":34088},{"class":2340,"line":4652},[34089],{"type":21,"tag":2338,"props":34090,"children":34091},{"style":3469},[34092],{"type":26,"value":34093},"# Hamiltonian: 15 terms, 4 qubits\n",{"type":21,"tag":29,"props":34095,"children":34097},{"id":34096},"den-ansatz-definieren",[34098],{"type":26,"value":34099},"Den Ansatz definieren",{"type":21,"tag":22,"props":34101,"children":34102},{},[34103,34105,34110],{"type":26,"value":34104},"Der ",{"type":21,"tag":205,"props":34106,"children":34107},{},[34108],{"type":26,"value":34109},"Ansatz",{"type":26,"value":34111}," ist die parametrisierte Schaltung, die den Testzustand vorbereitet. Für Chemieprobleme ist der UCCSD-Ansatz (Unitary Coupled-Cluster Singles and Doubles) der Standard:",{"type":21,"tag":2328,"props":34113,"children":34115},{"code":34114,"language":3209,"meta":7,"className":3207,"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",[34116],{"type":21,"tag":2097,"props":34117,"children":34118},{"__ignoreMap":7},[34119,34127,34143,34160,34194,34201,34209,34226,34233,34269,34276,34287,34330,34338,34359,34366,34374,34424,34431],{"type":21,"tag":2338,"props":34120,"children":34121},{"class":2340,"line":2341},[34122],{"type":21,"tag":2338,"props":34123,"children":34124},{"style":3469},[34125],{"type":26,"value":34126},"# Get UCCSD circuit parameters\n",{"type":21,"tag":2338,"props":34128,"children":34129},{"class":2340,"line":173},[34130,34135,34139],{"type":21,"tag":2338,"props":34131,"children":34132},{"style":2345},[34133],{"type":26,"value":34134},"electrons ",{"type":21,"tag":2338,"props":34136,"children":34137},{"style":3219},[34138],{"type":26,"value":3259},{"type":21,"tag":2338,"props":34140,"children":34141},{"style":2363},[34142],{"type":26,"value":5115},{"type":21,"tag":2338,"props":34144,"children":34145},{"class":2340,"line":2359},[34146,34151,34155],{"type":21,"tag":2338,"props":34147,"children":34148},{"style":2345},[34149],{"type":26,"value":34150},"singles, doubles ",{"type":21,"tag":2338,"props":34152,"children":34153},{"style":3219},[34154],{"type":26,"value":3259},{"type":21,"tag":2338,"props":34156,"children":34157},{"style":2345},[34158],{"type":26,"value":34159}," qchem.excitations(electrons, qubits)\n",{"type":21,"tag":2338,"props":34161,"children":34162},{"class":2340,"line":2421},[34163,34168,34172,34177,34181,34185,34189],{"type":21,"tag":2338,"props":34164,"children":34165},{"style":2345},[34166],{"type":26,"value":34167},"s_wires, d_wires ",{"type":21,"tag":2338,"props":34169,"children":34170},{"style":3219},[34171],{"type":26,"value":3259},{"type":21,"tag":2338,"props":34173,"children":34174},{"style":2345},[34175],{"type":26,"value":34176}," qchem.excitations_to_wires(singles, doubles, ",{"type":21,"tag":2338,"props":34178,"children":34179},{"style":3284},[34180],{"type":26,"value":14269},{"type":21,"tag":2338,"props":34182,"children":34183},{"style":3219},[34184],{"type":26,"value":3259},{"type":21,"tag":2338,"props":34186,"children":34187},{"style":2363},[34188],{"type":26,"value":4963},{"type":21,"tag":2338,"props":34190,"children":34191},{"style":2345},[34192],{"type":26,"value":34193},"(qubits))\n",{"type":21,"tag":2338,"props":34195,"children":34196},{"class":2340,"line":2445},[34197],{"type":21,"tag":2338,"props":34198,"children":34199},{"emptyLinePlaceholder":3243},[34200],{"type":26,"value":3246},{"type":21,"tag":2338,"props":34202,"children":34203},{"class":2340,"line":877},[34204],{"type":21,"tag":2338,"props":34205,"children":34206},{"style":3469},[34207],{"type":26,"value":34208},"# Initial Hartree-Fock state (reference state)\n",{"type":21,"tag":2338,"props":34210,"children":34211},{"class":2340,"line":196},[34212,34217,34221],{"type":21,"tag":2338,"props":34213,"children":34214},{"style":2345},[34215],{"type":26,"value":34216},"hf_state ",{"type":21,"tag":2338,"props":34218,"children":34219},{"style":3219},[34220],{"type":26,"value":3259},{"type":21,"tag":2338,"props":34222,"children":34223},{"style":2345},[34224],{"type":26,"value":34225}," qchem.hf_state(electrons, qubits)\n",{"type":21,"tag":2338,"props":34227,"children":34228},{"class":2340,"line":951},[34229],{"type":21,"tag":2338,"props":34230,"children":34231},{"emptyLinePlaceholder":3243},[34232],{"type":26,"value":3246},{"type":21,"tag":2338,"props":34234,"children":34235},{"class":2340,"line":16},[34236,34240,34244,34248,34252,34256,34260,34264],{"type":21,"tag":2338,"props":34237,"children":34238},{"style":2345},[34239],{"type":26,"value":14246},{"type":21,"tag":2338,"props":34241,"children":34242},{"style":3219},[34243],{"type":26,"value":3259},{"type":21,"tag":2338,"props":34245,"children":34246},{"style":2345},[34247],{"type":26,"value":14255},{"type":21,"tag":2338,"props":34249,"children":34250},{"style":2374},[34251],{"type":26,"value":14260},{"type":21,"tag":2338,"props":34253,"children":34254},{"style":2345},[34255],{"type":26,"value":1375},{"type":21,"tag":2338,"props":34257,"children":34258},{"style":3284},[34259],{"type":26,"value":14269},{"type":21,"tag":2338,"props":34261,"children":34262},{"style":3219},[34263],{"type":26,"value":3259},{"type":21,"tag":2338,"props":34265,"children":34266},{"style":2345},[34267],{"type":26,"value":34268},"qubits)\n",{"type":21,"tag":2338,"props":34270,"children":34271},{"class":2340,"line":3465},[34272],{"type":21,"tag":2338,"props":34273,"children":34274},{"emptyLinePlaceholder":3243},[34275],{"type":26,"value":3246},{"type":21,"tag":2338,"props":34277,"children":34278},{"class":2340,"line":3475},[34279,34283],{"type":21,"tag":2338,"props":34280,"children":34281},{"style":4385},[34282],{"type":26,"value":14293},{"type":21,"tag":2338,"props":34284,"children":34285},{"style":2345},[34286],{"type":26,"value":14298},{"type":21,"tag":2338,"props":34288,"children":34289},{"class":2340,"line":500},[34290,34294,34298,34303,34307,34312,34316,34321,34325],{"type":21,"tag":2338,"props":34291,"children":34292},{"style":3219},[34293],{"type":26,"value":4382},{"type":21,"tag":2338,"props":34295,"children":34296},{"style":4385},[34297],{"type":26,"value":14310},{"type":21,"tag":2338,"props":34299,"children":34300},{"style":2345},[34301],{"type":26,"value":34302},"(weights, wires, s_wires",{"type":21,"tag":2338,"props":34304,"children":34305},{"style":3219},[34306],{"type":26,"value":3259},{"type":21,"tag":2338,"props":34308,"children":34309},{"style":2345},[34310],{"type":26,"value":34311},"[], d_wires",{"type":21,"tag":2338,"props":34313,"children":34314},{"style":3219},[34315],{"type":26,"value":3259},{"type":21,"tag":2338,"props":34317,"children":34318},{"style":2345},[34319],{"type":26,"value":34320},"[], hf_state",{"type":21,"tag":2338,"props":34322,"children":34323},{"style":3219},[34324],{"type":26,"value":3259},{"type":21,"tag":2338,"props":34326,"children":34327},{"style":2345},[34328],{"type":26,"value":34329},"hf_state):\n",{"type":21,"tag":2338,"props":34331,"children":34332},{"class":2340,"line":3535},[34333],{"type":21,"tag":2338,"props":34334,"children":34335},{"style":3469},[34336],{"type":26,"value":34337},"    # Prepare HF reference state\n",{"type":21,"tag":2338,"props":34339,"children":34340},{"class":2340,"line":3583},[34341,34346,34350,34354],{"type":21,"tag":2338,"props":34342,"children":34343},{"style":2345},[34344],{"type":26,"value":34345},"    qml.BasisState(hf_state, ",{"type":21,"tag":2338,"props":34347,"children":34348},{"style":3284},[34349],{"type":26,"value":14269},{"type":21,"tag":2338,"props":34351,"children":34352},{"style":3219},[34353],{"type":26,"value":3259},{"type":21,"tag":2338,"props":34355,"children":34356},{"style":2345},[34357],{"type":26,"value":34358},"wires)\n",{"type":21,"tag":2338,"props":34360,"children":34361},{"class":2340,"line":3625},[34362],{"type":21,"tag":2338,"props":34363,"children":34364},{"emptyLinePlaceholder":3243},[34365],{"type":26,"value":3246},{"type":21,"tag":2338,"props":34367,"children":34368},{"class":2340,"line":4652},[34369],{"type":21,"tag":2338,"props":34370,"children":34371},{"style":3469},[34372],{"type":26,"value":34373},"    # Apply UCCSD excitations\n",{"type":21,"tag":2338,"props":34375,"children":34376},{"class":2340,"line":4671},[34377,34382,34387,34391,34396,34401,34405,34410,34415,34419],{"type":21,"tag":2338,"props":34378,"children":34379},{"style":2345},[34380],{"type":26,"value":34381},"    qml.UCCSD(weights, wires, ",{"type":21,"tag":2338,"props":34383,"children":34384},{"style":3284},[34385],{"type":26,"value":34386},"s_wires",{"type":21,"tag":2338,"props":34388,"children":34389},{"style":3219},[34390],{"type":26,"value":3259},{"type":21,"tag":2338,"props":34392,"children":34393},{"style":2345},[34394],{"type":26,"value":34395},"s_wires, ",{"type":21,"tag":2338,"props":34397,"children":34398},{"style":3284},[34399],{"type":26,"value":34400},"d_wires",{"type":21,"tag":2338,"props":34402,"children":34403},{"style":3219},[34404],{"type":26,"value":3259},{"type":21,"tag":2338,"props":34406,"children":34407},{"style":2345},[34408],{"type":26,"value":34409},"d_wires, ",{"type":21,"tag":2338,"props":34411,"children":34412},{"style":3284},[34413],{"type":26,"value":34414},"init_state",{"type":21,"tag":2338,"props":34416,"children":34417},{"style":3219},[34418],{"type":26,"value":3259},{"type":21,"tag":2338,"props":34420,"children":34421},{"style":2345},[34422],{"type":26,"value":34423},"hf_state)\n",{"type":21,"tag":2338,"props":34425,"children":34426},{"class":2340,"line":4679},[34427],{"type":21,"tag":2338,"props":34428,"children":34429},{"emptyLinePlaceholder":3243},[34430],{"type":26,"value":3246},{"type":21,"tag":2338,"props":34432,"children":34433},{"class":2340,"line":4710},[34434,34438],{"type":21,"tag":2338,"props":34435,"children":34436},{"style":3219},[34437],{"type":26,"value":4607},{"type":21,"tag":2338,"props":34439,"children":34440},{"style":2345},[34441],{"type":26,"value":25209},{"type":21,"tag":29,"props":34443,"children":34445},{"id":34444},"die-vqe-optimierung-ausführen",[34446],{"type":26,"value":34447},"Die VQE-Optimierung ausführen",{"type":21,"tag":22,"props":34449,"children":34450},{},[34451],{"type":26,"value":34452},"Mit der automatischen Differenzierung von PennyLane können wir gradientenbasierte Optimierer direkt verwenden:",{"type":21,"tag":2328,"props":34454,"children":34456},{"code":34455,"language":3209,"meta":7,"className":3207,"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",[34457],{"type":21,"tag":2097,"props":34458,"children":34459},{"__ignoreMap":7},[34460,34468,34522,34529,34537,34569,34576,34584,34601,34616,34623,34654,34670,34717,34725,34732,34740,34747,34779,34845,34852,34904],{"type":21,"tag":2338,"props":34461,"children":34462},{"class":2340,"line":2341},[34463],{"type":21,"tag":2338,"props":34464,"children":34465},{"style":3469},[34466],{"type":26,"value":34467},"# Initial parameters (all zeros = Hartree-Fock state)\n",{"type":21,"tag":2338,"props":34469,"children":34470},{"class":2340,"line":173},[34471,34475,34479,34483,34487,34492,34496,34501,34506,34510,34514,34518],{"type":21,"tag":2338,"props":34472,"children":34473},{"style":2345},[34474],{"type":26,"value":30013},{"type":21,"tag":2338,"props":34476,"children":34477},{"style":3219},[34478],{"type":26,"value":3259},{"type":21,"tag":2338,"props":34480,"children":34481},{"style":2345},[34482],{"type":26,"value":12708},{"type":21,"tag":2338,"props":34484,"children":34485},{"style":2363},[34486],{"type":26,"value":15085},{"type":21,"tag":2338,"props":34488,"children":34489},{"style":2345},[34490],{"type":26,"value":34491},"(singles) ",{"type":21,"tag":2338,"props":34493,"children":34494},{"style":3219},[34495],{"type":26,"value":6549},{"type":21,"tag":2338,"props":34497,"children":34498},{"style":2363},[34499],{"type":26,"value":34500}," len",{"type":21,"tag":2338,"props":34502,"children":34503},{"style":2345},[34504],{"type":26,"value":34505},"(doubles), ",{"type":21,"tag":2338,"props":34507,"children":34508},{"style":3284},[34509],{"type":26,"value":14903},{"type":21,"tag":2338,"props":34511,"children":34512},{"style":3219},[34513],{"type":26,"value":3259},{"type":21,"tag":2338,"props":34515,"children":34516},{"style":2363},[34517],{"type":26,"value":3296},{"type":21,"tag":2338,"props":34519,"children":34520},{"style":2345},[34521],{"type":26,"value":3319},{"type":21,"tag":2338,"props":34523,"children":34524},{"class":2340,"line":2359},[34525],{"type":21,"tag":2338,"props":34526,"children":34527},{"emptyLinePlaceholder":3243},[34528],{"type":26,"value":3246},{"type":21,"tag":2338,"props":34530,"children":34531},{"class":2340,"line":2421},[34532],{"type":21,"tag":2338,"props":34533,"children":34534},{"style":3469},[34535],{"type":26,"value":34536},"# Adam optimizer (works well for VQE)\n",{"type":21,"tag":2338,"props":34538,"children":34539},{"class":2340,"line":2445},[34540,34544,34548,34552,34556,34560,34565],{"type":21,"tag":2338,"props":34541,"children":34542},{"style":2345},[34543],{"type":26,"value":14972},{"type":21,"tag":2338,"props":34545,"children":34546},{"style":3219},[34547],{"type":26,"value":3259},{"type":21,"tag":2338,"props":34549,"children":34550},{"style":2345},[34551],{"type":26,"value":14981},{"type":21,"tag":2338,"props":34553,"children":34554},{"style":3284},[34555],{"type":26,"value":14986},{"type":21,"tag":2338,"props":34557,"children":34558},{"style":3219},[34559],{"type":26,"value":3259},{"type":21,"tag":2338,"props":34561,"children":34562},{"style":2363},[34563],{"type":26,"value":34564},"0.4",{"type":21,"tag":2338,"props":34566,"children":34567},{"style":2345},[34568],{"type":26,"value":3319},{"type":21,"tag":2338,"props":34570,"children":34571},{"class":2340,"line":877},[34572],{"type":21,"tag":2338,"props":34573,"children":34574},{"emptyLinePlaceholder":3243},[34575],{"type":26,"value":3246},{"type":21,"tag":2338,"props":34577,"children":34578},{"class":2340,"line":196},[34579],{"type":21,"tag":2338,"props":34580,"children":34581},{"style":3469},[34582],{"type":26,"value":34583},"# Optimization loop\n",{"type":21,"tag":2338,"props":34585,"children":34586},{"class":2340,"line":951},[34587,34592,34596],{"type":21,"tag":2338,"props":34588,"children":34589},{"style":2345},[34590],{"type":26,"value":34591},"energy_history ",{"type":21,"tag":2338,"props":34593,"children":34594},{"style":3219},[34595],{"type":26,"value":3259},{"type":21,"tag":2338,"props":34597,"children":34598},{"style":2345},[34599],{"type":26,"value":34600}," []\n",{"type":21,"tag":2338,"props":34602,"children":34603},{"class":2340,"line":16},[34604,34608,34612],{"type":21,"tag":2338,"props":34605,"children":34606},{"style":2345},[34607],{"type":26,"value":25272},{"type":21,"tag":2338,"props":34609,"children":34610},{"style":3219},[34611],{"type":26,"value":3259},{"type":21,"tag":2338,"props":34613,"children":34614},{"style":2345},[34615],{"type":26,"value":25943},{"type":21,"tag":2338,"props":34617,"children":34618},{"class":2340,"line":3465},[34619],{"type":21,"tag":2338,"props":34620,"children":34621},{"emptyLinePlaceholder":3243},[34622],{"type":26,"value":3246},{"type":21,"tag":2338,"props":34624,"children":34625},{"class":2340,"line":3475},[34626,34630,34634,34638,34642,34646,34650],{"type":21,"tag":2338,"props":34627,"children":34628},{"style":3219},[34629],{"type":26,"value":3512},{"type":21,"tag":2338,"props":34631,"children":34632},{"style":2345},[34633],{"type":26,"value":15034},{"type":21,"tag":2338,"props":34635,"children":34636},{"style":3219},[34637],{"type":26,"value":3522},{"type":21,"tag":2338,"props":34639,"children":34640},{"style":2363},[34641],{"type":26,"value":3527},{"type":21,"tag":2338,"props":34643,"children":34644},{"style":2345},[34645],{"type":26,"value":3339},{"type":21,"tag":2338,"props":34647,"children":34648},{"style":2363},[34649],{"type":26,"value":14651},{"type":21,"tag":2338,"props":34651,"children":34652},{"style":2345},[34653],{"type":26,"value":4435},{"type":21,"tag":2338,"props":34655,"children":34656},{"class":2340,"line":500},[34657,34661,34665],{"type":21,"tag":2338,"props":34658,"children":34659},{"style":2345},[34660],{"type":26,"value":26012},{"type":21,"tag":2338,"props":34662,"children":34663},{"style":3219},[34664],{"type":26,"value":3259},{"type":21,"tag":2338,"props":34666,"children":34667},{"style":2345},[34668],{"type":26,"value":34669}," opt.step_and_cost(\n",{"type":21,"tag":2338,"props":34671,"children":34672},{"class":2340,"line":3535},[34673,34678,34683,34687,34692,34696,34700,34704,34708,34712],{"type":21,"tag":2338,"props":34674,"children":34675},{"style":3219},[34676],{"type":26,"value":34677},"        lambda",{"type":21,"tag":2338,"props":34679,"children":34680},{"style":2345},[34681],{"type":26,"value":34682}," p: circuit(p, ",{"type":21,"tag":2338,"props":34684,"children":34685},{"style":2363},[34686],{"type":26,"value":4963},{"type":21,"tag":2338,"props":34688,"children":34689},{"style":2345},[34690],{"type":26,"value":34691},"(qubits), ",{"type":21,"tag":2338,"props":34693,"children":34694},{"style":3284},[34695],{"type":26,"value":34386},{"type":21,"tag":2338,"props":34697,"children":34698},{"style":3219},[34699],{"type":26,"value":3259},{"type":21,"tag":2338,"props":34701,"children":34702},{"style":2345},[34703],{"type":26,"value":34395},{"type":21,"tag":2338,"props":34705,"children":34706},{"style":3284},[34707],{"type":26,"value":34400},{"type":21,"tag":2338,"props":34709,"children":34710},{"style":3219},[34711],{"type":26,"value":3259},{"type":21,"tag":2338,"props":34713,"children":34714},{"style":2345},[34715],{"type":26,"value":34716},"d_wires),\n",{"type":21,"tag":2338,"props":34718,"children":34719},{"class":2340,"line":3583},[34720],{"type":21,"tag":2338,"props":34721,"children":34722},{"style":2345},[34723],{"type":26,"value":34724},"        params\n",{"type":21,"tag":2338,"props":34726,"children":34727},{"class":2340,"line":3625},[34728],{"type":21,"tag":2338,"props":34729,"children":34730},{"style":2345},[34731],{"type":26,"value":4599},{"type":21,"tag":2338,"props":34733,"children":34734},{"class":2340,"line":4652},[34735],{"type":21,"tag":2338,"props":34736,"children":34737},{"style":2345},[34738],{"type":26,"value":34739},"    energy_history.append(energy)\n",{"type":21,"tag":2338,"props":34741,"children":34742},{"class":2340,"line":4671},[34743],{"type":21,"tag":2338,"props":34744,"children":34745},{"emptyLinePlaceholder":3243},[34746],{"type":26,"value":3246},{"type":21,"tag":2338,"props":34748,"children":34749},{"class":2340,"line":4679},[34750,34754,34758,34762,34767,34771,34775],{"type":21,"tag":2338,"props":34751,"children":34752},{"style":3219},[34753],{"type":26,"value":11967},{"type":21,"tag":2338,"props":34755,"children":34756},{"style":2345},[34757],{"type":26,"value":15034},{"type":21,"tag":2338,"props":34759,"children":34760},{"style":3219},[34761],{"type":26,"value":6400},{"type":21,"tag":2338,"props":34763,"children":34764},{"style":2363},[34765],{"type":26,"value":34766}," 20",{"type":21,"tag":2338,"props":34768,"children":34769},{"style":3219},[34770],{"type":26,"value":15160},{"type":21,"tag":2338,"props":34772,"children":34773},{"style":2363},[34774],{"type":26,"value":11981},{"type":21,"tag":2338,"props":34776,"children":34777},{"style":2345},[34778],{"type":26,"value":4940},{"type":21,"tag":2338,"props":34780,"children":34781},{"class":2340,"line":4710},[34782,34786,34790,34794,34798,34802,34806,34811,34815,34820,34824,34828,34833,34837,34841],{"type":21,"tag":2338,"props":34783,"children":34784},{"style":2363},[34785],{"type":26,"value":12913},{"type":21,"tag":2338,"props":34787,"children":34788},{"style":2345},[34789],{"type":26,"value":3339},{"type":21,"tag":2338,"props":34791,"children":34792},{"style":3219},[34793],{"type":26,"value":3344},{"type":21,"tag":2338,"props":34795,"children":34796},{"style":2374},[34797],{"type":26,"value":15251},{"type":21,"tag":2338,"props":34799,"children":34800},{"style":2363},[34801],{"type":26,"value":3354},{"type":21,"tag":2338,"props":34803,"children":34804},{"style":2345},[34805],{"type":26,"value":15260},{"type":21,"tag":2338,"props":34807,"children":34808},{"style":3219},[34809],{"type":26,"value":34810},":3d",{"type":21,"tag":2338,"props":34812,"children":34813},{"style":2363},[34814],{"type":26,"value":3364},{"type":21,"tag":2338,"props":34816,"children":34817},{"style":2374},[34818],{"type":26,"value":34819},": E = ",{"type":21,"tag":2338,"props":34821,"children":34822},{"style":2363},[34823],{"type":26,"value":3354},{"type":21,"tag":2338,"props":34825,"children":34826},{"style":2345},[34827],{"type":26,"value":26916},{"type":21,"tag":2338,"props":34829,"children":34830},{"style":3219},[34831],{"type":26,"value":34832},":.6f",{"type":21,"tag":2338,"props":34834,"children":34835},{"style":2363},[34836],{"type":26,"value":3364},{"type":21,"tag":2338,"props":34838,"children":34839},{"style":2374},[34840],{"type":26,"value":19459},{"type":21,"tag":2338,"props":34842,"children":34843},{"style":2345},[34844],{"type":26,"value":3319},{"type":21,"tag":2338,"props":34846,"children":34847},{"class":2340,"line":4755},[34848],{"type":21,"tag":2338,"props":34849,"children":34850},{"emptyLinePlaceholder":3243},[34851],{"type":26,"value":3246},{"type":21,"tag":2338,"props":34853,"children":34854},{"class":2340,"line":4794},[34855,34859,34863,34867,34871,34875,34880,34884,34888,34892,34896,34900],{"type":21,"tag":2338,"props":34856,"children":34857},{"style":2363},[34858],{"type":26,"value":3334},{"type":21,"tag":2338,"props":34860,"children":34861},{"style":2345},[34862],{"type":26,"value":3339},{"type":21,"tag":2338,"props":34864,"children":34865},{"style":3219},[34866],{"type":26,"value":3344},{"type":21,"tag":2338,"props":34868,"children":34869},{"style":2374},[34870],{"type":26,"value":3369},{"type":21,"tag":2338,"props":34872,"children":34873},{"style":2363},[34874],{"type":26,"value":15388},{"type":21,"tag":2338,"props":34876,"children":34877},{"style":2374},[34878],{"type":26,"value":34879},"VQE ground state energy: ",{"type":21,"tag":2338,"props":34881,"children":34882},{"style":2363},[34883],{"type":26,"value":3354},{"type":21,"tag":2338,"props":34885,"children":34886},{"style":2345},[34887],{"type":26,"value":26916},{"type":21,"tag":2338,"props":34889,"children":34890},{"style":3219},[34891],{"type":26,"value":34832},{"type":21,"tag":2338,"props":34893,"children":34894},{"style":2363},[34895],{"type":26,"value":3364},{"type":21,"tag":2338,"props":34897,"children":34898},{"style":2374},[34899],{"type":26,"value":19459},{"type":21,"tag":2338,"props":34901,"children":34902},{"style":2345},[34903],{"type":26,"value":3319},{"type":21,"tag":2338,"props":34905,"children":34906},{"class":2340,"line":4812},[34907,34911,34915,34919,34924],{"type":21,"tag":2338,"props":34908,"children":34909},{"style":2363},[34910],{"type":26,"value":3334},{"type":21,"tag":2338,"props":34912,"children":34913},{"style":2345},[34914],{"type":26,"value":3339},{"type":21,"tag":2338,"props":34916,"children":34917},{"style":3219},[34918],{"type":26,"value":3344},{"type":21,"tag":2338,"props":34920,"children":34921},{"style":2374},[34922],{"type":26,"value":34923},"\"Reference (exact): -1.136189 Ha\"",{"type":21,"tag":2338,"props":34925,"children":34926},{"style":2345},[34927],{"type":26,"value":3319},{"type":21,"tag":22,"props":34929,"children":34930},{},[34931],{"type":26,"value":34932},"Typische Ausgabe:",{"type":21,"tag":2328,"props":34934,"children":34936},{"code":34935},"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",[34937],{"type":21,"tag":2097,"props":34938,"children":34939},{"__ignoreMap":7},[34940],{"type":26,"value":34935},{"type":21,"tag":22,"props":34942,"children":34943},{},[34944],{"type":26,"value":34945},"VQE erreicht eine Genauigkeit von ~0,015 mHa gegenüber der exakten Energie — chemische Genauigkeit für H₂.",{"type":21,"tag":29,"props":34947,"children":34949},{"id":34948},"einen-gradientenfreien-optimierer-verwenden",[34950],{"type":26,"value":34951},"Einen gradientenfreien Optimierer verwenden",{"type":21,"tag":22,"props":34953,"children":34954},{},[34955],{"type":26,"value":34956},"Für verrauschte Hardware sind gradientenfreie Optimierer wie COBYLA oder SPSA oft besser, da Hardware-Gradienten verrauscht sind:",{"type":21,"tag":2328,"props":34958,"children":34960},{"code":34959,"language":3209,"meta":7,"className":3207,"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",[34961],{"type":21,"tag":2097,"props":34962,"children":34963},{"__ignoreMap":7},[34964,34983,34990,34998,35014,35063,35070,35086,35094,35111,35132,35183,35190,35197],{"type":21,"tag":2338,"props":34965,"children":34966},{"class":2340,"line":2341},[34967,34971,34975,34979],{"type":21,"tag":2338,"props":34968,"children":34969},{"style":3219},[34970],{"type":26,"value":3222},{"type":21,"tag":2338,"props":34972,"children":34973},{"style":2345},[34974],{"type":26,"value":29126},{"type":21,"tag":2338,"props":34976,"children":34977},{"style":3219},[34978],{"type":26,"value":3232},{"type":21,"tag":2338,"props":34980,"children":34981},{"style":2345},[34982],{"type":26,"value":29135},{"type":21,"tag":2338,"props":34984,"children":34985},{"class":2340,"line":173},[34986],{"type":21,"tag":2338,"props":34987,"children":34988},{"emptyLinePlaceholder":3243},[34989],{"type":26,"value":3246},{"type":21,"tag":2338,"props":34991,"children":34992},{"class":2340,"line":2359},[34993],{"type":21,"tag":2338,"props":34994,"children":34995},{"style":3469},[34996],{"type":26,"value":34997},"# Objective function (no gradient needed)\n",{"type":21,"tag":2338,"props":34999,"children":35000},{"class":2340,"line":2421},[35001,35005,35010],{"type":21,"tag":2338,"props":35002,"children":35003},{"style":3219},[35004],{"type":26,"value":4382},{"type":21,"tag":2338,"props":35006,"children":35007},{"style":4385},[35008],{"type":26,"value":35009}," objective",{"type":21,"tag":2338,"props":35011,"children":35012},{"style":2345},[35013],{"type":26,"value":25181},{"type":21,"tag":2338,"props":35015,"children":35016},{"class":2340,"line":2445},[35017,35021,35025,35030,35034,35038,35042,35046,35050,35054,35058],{"type":21,"tag":2338,"props":35018,"children":35019},{"style":3219},[35020],{"type":26,"value":4607},{"type":21,"tag":2338,"props":35022,"children":35023},{"style":2363},[35024],{"type":26,"value":25960},{"type":21,"tag":2338,"props":35026,"children":35027},{"style":2345},[35028],{"type":26,"value":35029},"(circuit(params, ",{"type":21,"tag":2338,"props":35031,"children":35032},{"style":2363},[35033],{"type":26,"value":4963},{"type":21,"tag":2338,"props":35035,"children":35036},{"style":2345},[35037],{"type":26,"value":34691},{"type":21,"tag":2338,"props":35039,"children":35040},{"style":3284},[35041],{"type":26,"value":34386},{"type":21,"tag":2338,"props":35043,"children":35044},{"style":3219},[35045],{"type":26,"value":3259},{"type":21,"tag":2338,"props":35047,"children":35048},{"style":2345},[35049],{"type":26,"value":34395},{"type":21,"tag":2338,"props":35051,"children":35052},{"style":3284},[35053],{"type":26,"value":34400},{"type":21,"tag":2338,"props":35055,"children":35056},{"style":3219},[35057],{"type":26,"value":3259},{"type":21,"tag":2338,"props":35059,"children":35060},{"style":2345},[35061],{"type":26,"value":35062},"d_wires))\n",{"type":21,"tag":2338,"props":35064,"children":35065},{"class":2340,"line":877},[35066],{"type":21,"tag":2338,"props":35067,"children":35068},{"emptyLinePlaceholder":3243},[35069],{"type":26,"value":3246},{"type":21,"tag":2338,"props":35071,"children":35072},{"class":2340,"line":196},[35073,35077,35081],{"type":21,"tag":2338,"props":35074,"children":35075},{"style":2345},[35076],{"type":26,"value":19355},{"type":21,"tag":2338,"props":35078,"children":35079},{"style":3219},[35080],{"type":26,"value":3259},{"type":21,"tag":2338,"props":35082,"children":35083},{"style":2345},[35084],{"type":26,"value":35085}," minimize(\n",{"type":21,"tag":2338,"props":35087,"children":35088},{"class":2340,"line":951},[35089],{"type":21,"tag":2338,"props":35090,"children":35091},{"style":2345},[35092],{"type":26,"value":35093},"    objective,\n",{"type":21,"tag":2338,"props":35095,"children":35096},{"class":2340,"line":16},[35097,35102,35106],{"type":21,"tag":2338,"props":35098,"children":35099},{"style":3284},[35100],{"type":26,"value":35101},"    x0",{"type":21,"tag":2338,"props":35103,"children":35104},{"style":3219},[35105],{"type":26,"value":3259},{"type":21,"tag":2338,"props":35107,"children":35108},{"style":2345},[35109],{"type":26,"value":35110},"init_params,\n",{"type":21,"tag":2338,"props":35112,"children":35113},{"class":2340,"line":3465},[35114,35119,35123,35128],{"type":21,"tag":2338,"props":35115,"children":35116},{"style":3284},[35117],{"type":26,"value":35118},"    method",{"type":21,"tag":2338,"props":35120,"children":35121},{"style":3219},[35122],{"type":26,"value":3259},{"type":21,"tag":2338,"props":35124,"children":35125},{"style":2374},[35126],{"type":26,"value":35127},"\"COBYLA\"",{"type":21,"tag":2338,"props":35129,"children":35130},{"style":2345},[35131],{"type":26,"value":2442},{"type":21,"tag":2338,"props":35133,"children":35134},{"class":2340,"line":3475},[35135,35140,35144,35148,35153,35157,35162,35166,35171,35175,35179],{"type":21,"tag":2338,"props":35136,"children":35137},{"style":3284},[35138],{"type":26,"value":35139},"    options",{"type":21,"tag":2338,"props":35141,"children":35142},{"style":3219},[35143],{"type":26,"value":3259},{"type":21,"tag":2338,"props":35145,"children":35146},{"style":2345},[35147],{"type":26,"value":3354},{"type":21,"tag":2338,"props":35149,"children":35150},{"style":2374},[35151],{"type":26,"value":35152},"\"maxiter\"",{"type":21,"tag":2338,"props":35154,"children":35155},{"style":2345},[35156],{"type":26,"value":2432},{"type":21,"tag":2338,"props":35158,"children":35159},{"style":2363},[35160],{"type":26,"value":35161},"500",{"type":21,"tag":2338,"props":35163,"children":35164},{"style":2345},[35165],{"type":26,"value":1375},{"type":21,"tag":2338,"props":35167,"children":35168},{"style":2374},[35169],{"type":26,"value":35170},"\"rhobeg\"",{"type":21,"tag":2338,"props":35172,"children":35173},{"style":2345},[35174],{"type":26,"value":2432},{"type":21,"tag":2338,"props":35176,"children":35177},{"style":2363},[35178],{"type":26,"value":14893},{"type":21,"tag":2338,"props":35180,"children":35181},{"style":2345},[35182],{"type":26,"value":2530},{"type":21,"tag":2338,"props":35184,"children":35185},{"class":2340,"line":500},[35186],{"type":21,"tag":2338,"props":35187,"children":35188},{"style":2345},[35189],{"type":26,"value":3319},{"type":21,"tag":2338,"props":35191,"children":35192},{"class":2340,"line":3535},[35193],{"type":21,"tag":2338,"props":35194,"children":35195},{"emptyLinePlaceholder":3243},[35196],{"type":26,"value":3246},{"type":21,"tag":2338,"props":35198,"children":35199},{"class":2340,"line":3583},[35200,35204,35208,35212,35217,35221,35225,35229,35233,35237],{"type":21,"tag":2338,"props":35201,"children":35202},{"style":2363},[35203],{"type":26,"value":3334},{"type":21,"tag":2338,"props":35205,"children":35206},{"style":2345},[35207],{"type":26,"value":3339},{"type":21,"tag":2338,"props":35209,"children":35210},{"style":3219},[35211],{"type":26,"value":3344},{"type":21,"tag":2338,"props":35213,"children":35214},{"style":2374},[35215],{"type":26,"value":35216},"\"COBYLA energy: ",{"type":21,"tag":2338,"props":35218,"children":35219},{"style":2363},[35220],{"type":26,"value":3354},{"type":21,"tag":2338,"props":35222,"children":35223},{"style":2345},[35224],{"type":26,"value":30191},{"type":21,"tag":2338,"props":35226,"children":35227},{"style":3219},[35228],{"type":26,"value":34832},{"type":21,"tag":2338,"props":35230,"children":35231},{"style":2363},[35232],{"type":26,"value":3364},{"type":21,"tag":2338,"props":35234,"children":35235},{"style":2374},[35236],{"type":26,"value":19459},{"type":21,"tag":2338,"props":35238,"children":35239},{"style":2345},[35240],{"type":26,"value":3319},{"type":21,"tag":29,"props":35242,"children":35244},{"id":35243},"vqe-mit-hlquantum-ausführen",[35245],{"type":26,"value":35246},"VQE mit HLQuantum ausführen",{"type":21,"tag":22,"props":35248,"children":35249},{},[35250],{"type":26,"value":35251},"HLQuantum enthält eine integrierte VQE-Implementierung, die über alle Backends hinweg funktioniert:",{"type":21,"tag":2328,"props":35253,"children":35255},{"code":35254,"language":3209,"meta":7,"className":3207,"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",[35256],{"type":21,"tag":2097,"props":35257,"children":35258},{"__ignoreMap":7},[35259,35278,35285,35293,35327,35334,35342,35357,35374,35395,35415,35435,35460,35467,35474,35517,35558],{"type":21,"tag":2338,"props":35260,"children":35261},{"class":2340,"line":2341},[35262,35266,35270,35274],{"type":21,"tag":2338,"props":35263,"children":35264},{"style":3219},[35265],{"type":26,"value":3232},{"type":21,"tag":2338,"props":35267,"children":35268},{"style":2345},[35269],{"type":26,"value":19323},{"type":21,"tag":2338,"props":35271,"children":35272},{"style":3219},[35273],{"type":26,"value":4299},{"type":21,"tag":2338,"props":35275,"children":35276},{"style":2345},[35277],{"type":26,"value":19332},{"type":21,"tag":2338,"props":35279,"children":35280},{"class":2340,"line":173},[35281],{"type":21,"tag":2338,"props":35282,"children":35283},{"emptyLinePlaceholder":3243},[35284],{"type":26,"value":3246},{"type":21,"tag":2338,"props":35286,"children":35287},{"class":2340,"line":2359},[35288],{"type":21,"tag":2338,"props":35289,"children":35290},{"style":3469},[35291],{"type":26,"value":35292},"# Define the Hamiltonian in HLQuantum's format\n",{"type":21,"tag":2338,"props":35294,"children":35295},{"class":2340,"line":2421},[35296,35300,35304,35309,35314,35318,35323],{"type":21,"tag":2338,"props":35297,"children":35298},{"style":2345},[35299],{"type":26,"value":24918},{"type":21,"tag":2338,"props":35301,"children":35302},{"style":3219},[35303],{"type":26,"value":3259},{"type":21,"tag":2338,"props":35305,"children":35306},{"style":2345},[35307],{"type":26,"value":35308}," hlq.hamiltonians.h2_molecule(",{"type":21,"tag":2338,"props":35310,"children":35311},{"style":3284},[35312],{"type":26,"value":35313},"bond_length",{"type":21,"tag":2338,"props":35315,"children":35316},{"style":3219},[35317],{"type":26,"value":3259},{"type":21,"tag":2338,"props":35319,"children":35320},{"style":2363},[35321],{"type":26,"value":35322},"1.32",{"type":21,"tag":2338,"props":35324,"children":35325},{"style":2345},[35326],{"type":26,"value":3319},{"type":21,"tag":2338,"props":35328,"children":35329},{"class":2340,"line":2445},[35330],{"type":21,"tag":2338,"props":35331,"children":35332},{"emptyLinePlaceholder":3243},[35333],{"type":26,"value":3246},{"type":21,"tag":2338,"props":35335,"children":35336},{"class":2340,"line":877},[35337],{"type":21,"tag":2338,"props":35338,"children":35339},{"style":3469},[35340],{"type":26,"value":35341},"# Run VQE on any backend\n",{"type":21,"tag":2338,"props":35343,"children":35344},{"class":2340,"line":196},[35345,35349,35353],{"type":21,"tag":2338,"props":35346,"children":35347},{"style":2345},[35348],{"type":26,"value":19355},{"type":21,"tag":2338,"props":35350,"children":35351},{"style":3219},[35352],{"type":26,"value":3259},{"type":21,"tag":2338,"props":35354,"children":35355},{"style":2345},[35356],{"type":26,"value":22846},{"type":21,"tag":2338,"props":35358,"children":35359},{"class":2340,"line":951},[35360,35365,35369],{"type":21,"tag":2338,"props":35361,"children":35362},{"style":3284},[35363],{"type":26,"value":35364},"    hamiltonian",{"type":21,"tag":2338,"props":35366,"children":35367},{"style":3219},[35368],{"type":26,"value":3259},{"type":21,"tag":2338,"props":35370,"children":35371},{"style":2345},[35372],{"type":26,"value":35373},"H,\n",{"type":21,"tag":2338,"props":35375,"children":35376},{"class":2340,"line":16},[35377,35382,35386,35391],{"type":21,"tag":2338,"props":35378,"children":35379},{"style":3284},[35380],{"type":26,"value":35381},"    ansatz",{"type":21,"tag":2338,"props":35383,"children":35384},{"style":3219},[35385],{"type":26,"value":3259},{"type":21,"tag":2338,"props":35387,"children":35388},{"style":2374},[35389],{"type":26,"value":35390},"\"uccsd\"",{"type":21,"tag":2338,"props":35392,"children":35393},{"style":2345},[35394],{"type":26,"value":2442},{"type":21,"tag":2338,"props":35396,"children":35397},{"class":2340,"line":3465},[35398,35402,35406,35411],{"type":21,"tag":2338,"props":35399,"children":35400},{"style":3284},[35401],{"type":26,"value":22914},{"type":21,"tag":2338,"props":35403,"children":35404},{"style":3219},[35405],{"type":26,"value":3259},{"type":21,"tag":2338,"props":35407,"children":35408},{"style":2374},[35409],{"type":26,"value":35410},"\"adam\"",{"type":21,"tag":2338,"props":35412,"children":35413},{"style":2345},[35414],{"type":26,"value":2442},{"type":21,"tag":2338,"props":35416,"children":35417},{"class":2340,"line":3475},[35418,35423,35427,35431],{"type":21,"tag":2338,"props":35419,"children":35420},{"style":3284},[35421],{"type":26,"value":35422},"    max_iterations",{"type":21,"tag":2338,"props":35424,"children":35425},{"style":3219},[35426],{"type":26,"value":3259},{"type":21,"tag":2338,"props":35428,"children":35429},{"style":2363},[35430],{"type":26,"value":14651},{"type":21,"tag":2338,"props":35432,"children":35433},{"style":2345},[35434],{"type":26,"value":2442},{"type":21,"tag":2338,"props":35436,"children":35437},{"class":2340,"line":500},[35438,35442,35446,35450,35455],{"type":21,"tag":2338,"props":35439,"children":35440},{"style":3284},[35441],{"type":26,"value":22894},{"type":21,"tag":2338,"props":35443,"children":35444},{"style":3219},[35445],{"type":26,"value":3259},{"type":21,"tag":2338,"props":35447,"children":35448},{"style":2374},[35449],{"type":26,"value":33501},{"type":21,"tag":2338,"props":35451,"children":35452},{"style":2345},[35453],{"type":26,"value":35454},",   ",{"type":21,"tag":2338,"props":35456,"children":35457},{"style":3469},[35458],{"type":26,"value":35459},"# or \"qiskit\", \"cudaq\"\n",{"type":21,"tag":2338,"props":35461,"children":35462},{"class":2340,"line":3535},[35463],{"type":21,"tag":2338,"props":35464,"children":35465},{"style":2345},[35466],{"type":26,"value":3319},{"type":21,"tag":2338,"props":35468,"children":35469},{"class":2340,"line":3583},[35470],{"type":21,"tag":2338,"props":35471,"children":35472},{"emptyLinePlaceholder":3243},[35473],{"type":26,"value":3246},{"type":21,"tag":2338,"props":35475,"children":35476},{"class":2340,"line":3625},[35477,35481,35485,35489,35493,35497,35501,35505,35509,35513],{"type":21,"tag":2338,"props":35478,"children":35479},{"style":2363},[35480],{"type":26,"value":3334},{"type":21,"tag":2338,"props":35482,"children":35483},{"style":2345},[35484],{"type":26,"value":3339},{"type":21,"tag":2338,"props":35486,"children":35487},{"style":3219},[35488],{"type":26,"value":3344},{"type":21,"tag":2338,"props":35490,"children":35491},{"style":2374},[35492],{"type":26,"value":26907},{"type":21,"tag":2338,"props":35494,"children":35495},{"style":2363},[35496],{"type":26,"value":3354},{"type":21,"tag":2338,"props":35498,"children":35499},{"style":2345},[35500],{"type":26,"value":19446},{"type":21,"tag":2338,"props":35502,"children":35503},{"style":3219},[35504],{"type":26,"value":34832},{"type":21,"tag":2338,"props":35506,"children":35507},{"style":2363},[35508],{"type":26,"value":3364},{"type":21,"tag":2338,"props":35510,"children":35511},{"style":2374},[35512],{"type":26,"value":19459},{"type":21,"tag":2338,"props":35514,"children":35515},{"style":2345},[35516],{"type":26,"value":3319},{"type":21,"tag":2338,"props":35518,"children":35519},{"class":2340,"line":4652},[35520,35524,35528,35532,35537,35541,35546,35550,35554],{"type":21,"tag":2338,"props":35521,"children":35522},{"style":2363},[35523],{"type":26,"value":3334},{"type":21,"tag":2338,"props":35525,"children":35526},{"style":2345},[35527],{"type":26,"value":3339},{"type":21,"tag":2338,"props":35529,"children":35530},{"style":3219},[35531],{"type":26,"value":3344},{"type":21,"tag":2338,"props":35533,"children":35534},{"style":2374},[35535],{"type":26,"value":35536},"\"Optimal parameters: ",{"type":21,"tag":2338,"props":35538,"children":35539},{"style":2363},[35540],{"type":26,"value":3354},{"type":21,"tag":2338,"props":35542,"children":35543},{"style":2345},[35544],{"type":26,"value":35545},"result.params",{"type":21,"tag":2338,"props":35547,"children":35548},{"style":2363},[35549],{"type":26,"value":3364},{"type":21,"tag":2338,"props":35551,"children":35552},{"style":2374},[35553],{"type":26,"value":3369},{"type":21,"tag":2338,"props":35555,"children":35556},{"style":2345},[35557],{"type":26,"value":3319},{"type":21,"tag":2338,"props":35559,"children":35560},{"class":2340,"line":4671},[35561,35565,35569,35573,35578,35582,35587,35591,35596],{"type":21,"tag":2338,"props":35562,"children":35563},{"style":2363},[35564],{"type":26,"value":3334},{"type":21,"tag":2338,"props":35566,"children":35567},{"style":2345},[35568],{"type":26,"value":3339},{"type":21,"tag":2338,"props":35570,"children":35571},{"style":3219},[35572],{"type":26,"value":3344},{"type":21,"tag":2338,"props":35574,"children":35575},{"style":2374},[35576],{"type":26,"value":35577},"\"Converged in ",{"type":21,"tag":2338,"props":35579,"children":35580},{"style":2363},[35581],{"type":26,"value":3354},{"type":21,"tag":2338,"props":35583,"children":35584},{"style":2345},[35585],{"type":26,"value":35586},"result.iterations",{"type":21,"tag":2338,"props":35588,"children":35589},{"style":2363},[35590],{"type":26,"value":3364},{"type":21,"tag":2338,"props":35592,"children":35593},{"style":2374},[35594],{"type":26,"value":35595}," iterations\"",{"type":21,"tag":2338,"props":35597,"children":35598},{"style":2345},[35599],{"type":26,"value":3319},{"type":21,"tag":29,"props":35601,"children":35603},{"id":35602},"tipps-für-echte-hardware",[35604],{"type":26,"value":35605},"Tipps für echte Hardware",{"type":21,"tag":22,"props":35607,"children":35608},{},[35609],{"type":26,"value":35610},"Beim Ausführen von VQE auf echten QPUs (IBM Quantum, IonQ) gelten mehrere zusätzliche Überlegungen:",{"type":21,"tag":22,"props":35612,"children":35613},{},[35614,35619],{"type":21,"tag":205,"props":35615,"children":35616},{},[35617],{"type":26,"value":35618},"Verwende weniger Shots pro Schritt.",{"type":26,"value":35620}," 1000 Shots pro Optimierungsschritt reichen normalerweise für die Gradientenschätzung aus. Verwende nicht bei jedem Schritt 10.000 Shots — das verschwendet QPU-Zeit.",{"type":21,"tag":22,"props":35622,"children":35623},{},[35624,35629],{"type":21,"tag":205,"props":35625,"children":35626},{},[35627],{"type":26,"value":35628},"Beginne mit flachen Schaltungen.",{"type":26,"value":35630}," Weniger CNOT-Gatter = weniger Rauschen. Erwäge für Hardware hardware-effiziente Ansatz-Schaltungen anstelle von UCCSD.",{"type":21,"tag":22,"props":35632,"children":35633},{},[35634,35639,35641,35647],{"type":21,"tag":205,"props":35635,"children":35636},{},[35637],{"type":26,"value":35638},"Aktiviere die Fehlerminderung.",{"type":26,"value":35640}," Die Option ",{"type":21,"tag":2097,"props":35642,"children":35644},{"className":35643},[],[35645],{"type":26,"value":35646},"error_mitigation=\"zne\"",{"type":26,"value":35648}," von HLQuantum wendet Zero Noise Extrapolation an, was die Ergebnisse auf verrauschter Hardware erheblich verbessern kann:",{"type":21,"tag":2328,"props":35650,"children":35652},{"code":35651,"language":3209,"meta":7,"className":3207,"style":7},"result = hlq.run(vqe_circuit, backend=\"qiskit\", device=\"ibm_sherbrooke\",\n                 error_mitigation=\"zne\", shots=2048)\n",[35653],{"type":21,"tag":2097,"props":35654,"children":35655},{"__ignoreMap":7},[35656,35704],{"type":21,"tag":2338,"props":35657,"children":35658},{"class":2340,"line":2341},[35659,35663,35667,35672,35676,35680,35684,35688,35692,35696,35700],{"type":21,"tag":2338,"props":35660,"children":35661},{"style":2345},[35662],{"type":26,"value":19355},{"type":21,"tag":2338,"props":35664,"children":35665},{"style":3219},[35666],{"type":26,"value":3259},{"type":21,"tag":2338,"props":35668,"children":35669},{"style":2345},[35670],{"type":26,"value":35671}," hlq.run(vqe_circuit, ",{"type":21,"tag":2338,"props":35673,"children":35674},{"style":3284},[35675],{"type":26,"value":18490},{"type":21,"tag":2338,"props":35677,"children":35678},{"style":3219},[35679],{"type":26,"value":3259},{"type":21,"tag":2338,"props":35681,"children":35682},{"style":2374},[35683],{"type":26,"value":28809},{"type":21,"tag":2338,"props":35685,"children":35686},{"style":2345},[35687],{"type":26,"value":1375},{"type":21,"tag":2338,"props":35689,"children":35690},{"style":3284},[35691],{"type":26,"value":22317},{"type":21,"tag":2338,"props":35693,"children":35694},{"style":3219},[35695],{"type":26,"value":3259},{"type":21,"tag":2338,"props":35697,"children":35698},{"style":2374},[35699],{"type":26,"value":28830},{"type":21,"tag":2338,"props":35701,"children":35702},{"style":2345},[35703],{"type":26,"value":2442},{"type":21,"tag":2338,"props":35705,"children":35706},{"class":2340,"line":173},[35707,35712,35716,35721,35725,35729,35733,35738],{"type":21,"tag":2338,"props":35708,"children":35709},{"style":3284},[35710],{"type":26,"value":35711},"                 error_mitigation",{"type":21,"tag":2338,"props":35713,"children":35714},{"style":3219},[35715],{"type":26,"value":3259},{"type":21,"tag":2338,"props":35717,"children":35718},{"style":2374},[35719],{"type":26,"value":35720},"\"zne\"",{"type":21,"tag":2338,"props":35722,"children":35723},{"style":2345},[35724],{"type":26,"value":1375},{"type":21,"tag":2338,"props":35726,"children":35727},{"style":3284},[35728],{"type":26,"value":4144},{"type":21,"tag":2338,"props":35730,"children":35731},{"style":3219},[35732],{"type":26,"value":3259},{"type":21,"tag":2338,"props":35734,"children":35735},{"style":2363},[35736],{"type":26,"value":35737},"2048",{"type":21,"tag":2338,"props":35739,"children":35740},{"style":2345},[35741],{"type":26,"value":3319},{"type":21,"tag":22,"props":35743,"children":35744},{},[35745,35747,35752,35754,35759],{"type":26,"value":35746},"Sieh dir den vollständigen ",{"type":21,"tag":41,"props":35748,"children":35749},{"href":14090},[35750],{"type":26,"value":35751},"PennyLane guide",{"type":26,"value":35753}," und die ",{"type":21,"tag":41,"props":35755,"children":35756},{"href":19030},[35757],{"type":26,"value":35758},"HLQuantum algorithms reference",{"type":26,"value":35760}," für weitere Details zu Quantenchemie-Simulationen an.",{"type":21,"tag":2712,"props":35762,"children":35763},{},[35764],{"type":26,"value":2716},{"title":7,"searchDepth":173,"depth":173,"links":35766},[35767,35768,35769,35770,35771,35772,35773],{"id":33683,"depth":173,"text":33686},{"id":33722,"depth":173,"text":33725},{"id":34096,"depth":173,"text":34099},{"id":34444,"depth":173,"text":34447},{"id":34948,"depth":173,"text":34951},{"id":35243,"depth":173,"text":35246},{"id":35602,"depth":173,"text":35605},"content:de:blog:vqe-pennylane-practical-guide.md","de\u002Fblog\u002Fvqe-pennylane-practical-guide.md","de\u002Fblog\u002Fvqe-pennylane-practical-guide",{"_path":35778,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":35779,"description":35780,"date":35781,"author":11,"tags":35782,"readingTime":877,"body":35783,"_type":180,"_id":36240,"_source":182,"_file":36241,"_stem":36242,"_extension":185},"\u002Fde\u002Fblog\u002Funderstanding-quantum-error-correction","Quantenfehlerkorrektur ohne Mathematik verstehen","Warum Quantencomputer Fehler machen, wie Fehlerkorrektur funktioniert und was das für die Zukunft des fehlertoleranten Quantencomputings bedeutet.","2026-01-15",[194,2883,2282],{"type":18,"children":35784,"toc":36231},[35785,35790,35796,35801,35820,35826,35831,35864,35869,35875,35893,35912,35920,35932,35938,35949,35957,35962,35967,35973,35978,35996,36001,36006,36012,36017,36050,36055,36169,36174,36180,36190,36200,36210,36227],{"type":21,"tag":22,"props":35786,"children":35787},{},[35788],{"type":26,"value":35789},"Quantencomputer machen Fehler – jede Menge davon. Ein typisches Gatter eines supraleitenden Qubits hat eine Fehlerrate von 0,1–1 %. Führt man eine Schaltung mit 1000 Gattern aus, ist es praktisch garantiert, dass man ein falsches Ergebnis erhält. Das ist kein Fehler in der aktuellen Hardware, sondern eine grundlegende Herausforderung. Die Quantenfehlerkorrektur (QEC) ist die Lösung – und sie zu verstehen ist der Schlüssel dazu, zu verstehen, wohin sich das Quantencomputing entwickelt.",{"type":21,"tag":29,"props":35791,"children":35793},{"id":35792},"warum-quantenfehler-anders-sind",[35794],{"type":26,"value":35795},"Warum Quantenfehler anders sind",{"type":21,"tag":22,"props":35797,"children":35798},{},[35799],{"type":26,"value":35800},"Auch klassische Computer machen Fehler, aber diese lassen sich leicht handhaben: Man kopiert das Bit dreimal und lässt eine Mehrheitsentscheidung treffen. Kippt eine Kopie, überstimmen die anderen beiden sie.",{"type":21,"tag":22,"props":35802,"children":35803},{},[35804,35806,35811,35813,35818],{"type":26,"value":35805},"Qubits können nicht kopiert werden – das ",{"type":21,"tag":205,"props":35807,"children":35808},{},[35809],{"type":26,"value":35810},"No-Cloning-Theorem",{"type":26,"value":35812}," verbietet es. Man kann ein Qubit nicht messen, um es auf Fehler zu prüfen, ohne seine Superposition zusammenbrechen zu lassen. Und Quantenfehler sind nicht nur Bit-Flips: Es gibt auch ",{"type":21,"tag":205,"props":35814,"children":35815},{},[35816],{"type":26,"value":35817},"Phasenfehler",{"type":26,"value":35819}," (bei denen sich die relative Phase zwischen |0⟩ und |1⟩ verschiebt) und Kombinationen aus beidem.",{"type":21,"tag":29,"props":35821,"children":35823},{"id":35822},"die-drei-arten-von-quantenfehlern",[35824],{"type":26,"value":35825},"Die drei Arten von Quantenfehlern",{"type":21,"tag":22,"props":35827,"children":35828},{},[35829],{"type":26,"value":35830},"Jeder Quantenfehler lässt sich in Kombinationen der drei Pauli-Operatoren zerlegen:",{"type":21,"tag":3137,"props":35832,"children":35833},{},[35834,35844,35854],{"type":21,"tag":3141,"props":35835,"children":35836},{},[35837,35842],{"type":21,"tag":205,"props":35838,"children":35839},{},[35840],{"type":26,"value":35841},"X-Fehler (Bit-Flip):",{"type":26,"value":35843}," |0⟩ → |1⟩ und |1⟩ → |0⟩. Wie ein klassischer Bit-Flip.",{"type":21,"tag":3141,"props":35845,"children":35846},{},[35847,35852],{"type":21,"tag":205,"props":35848,"children":35849},{},[35850],{"type":26,"value":35851},"Z-Fehler (Phasen-Flip):",{"type":26,"value":35853}," |0⟩ → |0⟩, |1⟩ → −|1⟩. Kein klassisches Analogon – betrifft die Phase.",{"type":21,"tag":3141,"props":35855,"children":35856},{},[35857,35862],{"type":21,"tag":205,"props":35858,"children":35859},{},[35860],{"type":26,"value":35861},"Y-Fehler:",{"type":26,"value":35863}," Kombinierter X- und Z-Fehler gleichzeitig.",{"type":21,"tag":22,"props":35865,"children":35866},{},[35867],{"type":26,"value":35868},"Jeder Fehler an einem Qubit lässt sich als Linearkombination von X, Y, Z (und der Identität) ausdrücken. Das bedeutet: Wenn wir X- und Z-Fehler unabhängig voneinander korrigieren können, können wir jeden Fehler korrigieren – eine zentrale Erkenntnis für die QEC.",{"type":21,"tag":29,"props":35870,"children":35872},{"id":35871},"die-große-idee-redundanz-ohne-kopieren",[35873],{"type":26,"value":35874},"Die große Idee: Redundanz ohne Kopieren",{"type":21,"tag":22,"props":35876,"children":35877},{},[35878,35880,35884,35886,35891],{"type":26,"value":35879},"Die QEC kodiert ein ",{"type":21,"tag":205,"props":35881,"children":35882},{},[35883],{"type":26,"value":18687},{"type":26,"value":35885}," über viele ",{"type":21,"tag":205,"props":35887,"children":35888},{},[35889],{"type":26,"value":35890},"physische Qubits",{"type":26,"value":35892},". Die Idee ähnelt klassischen Wiederholungscodes, ist aber an die Quantenmechanik angepasst.",{"type":21,"tag":22,"props":35894,"children":35895},{},[35896,35898,35903,35905,35910],{"type":26,"value":35897},"Das einfachste Beispiel ist der ",{"type":21,"tag":205,"props":35899,"children":35900},{},[35901],{"type":26,"value":35902},"3-Qubit-Bit-Flip-Code",{"type":26,"value":35904},": Man kodiert |0⟩ als |000⟩ und |1⟩ als |111⟩. Kippt ein Qubit, erkennt man dies, indem man die ",{"type":21,"tag":2071,"props":35906,"children":35907},{},[35908],{"type":26,"value":35909},"Parität",{"type":26,"value":35911}," zwischen Qubit-Paaren misst (ohne ihre tatsächlichen Werte zu messen), und korrigiert sie:",{"type":21,"tag":2328,"props":35913,"children":35915},{"code":35914},"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",[35916],{"type":21,"tag":2097,"props":35917,"children":35918},{"__ignoreMap":7},[35919],{"type":26,"value":35914},{"type":21,"tag":22,"props":35921,"children":35922},{},[35923,35925,35930],{"type":26,"value":35924},"Die Paritätsmessungen verwenden ",{"type":21,"tag":205,"props":35926,"children":35927},{},[35928],{"type":26,"value":35929},"Ancilla-Qubits",{"type":26,"value":35931}," – Hilfs-Qubits, die die Fehlerinformation aufnehmen, ohne die Daten-Qubits zu stören. Das ist der Zaubertrick: Man kann Fehler erkennen, ohne den kodierten Zustand zusammenbrechen zu lassen.",{"type":21,"tag":29,"props":35933,"children":35935},{"id":35934},"der-surface-code-der-heute-führende-ansatz",[35936],{"type":26,"value":35937},"Der Surface Code: Der heute führende Ansatz",{"type":21,"tag":22,"props":35939,"children":35940},{},[35941,35942,35947],{"type":26,"value":34104},{"type":21,"tag":205,"props":35943,"children":35944},{},[35945],{"type":26,"value":35946},"Surface Code",{"type":26,"value":35948}," ist der vielversprechendste QEC-Code für Hardware der nahen Zukunft. Er kodiert ein logisches Qubit in einem 2D-Gitter physischer Qubits, das folgendermaßen angeordnet ist:",{"type":21,"tag":2328,"props":35950,"children":35952},{"code":35951},"● — ● — ● — ●\n|   |   |   |\n● — ● — ● — ●\n|   |   |   |\n● — ● — ● — ●\n|   |   |   |\n● — ● — ● — ●\n",[35953],{"type":21,"tag":2097,"props":35954,"children":35955},{"__ignoreMap":7},[35956],{"type":26,"value":35951},{"type":21,"tag":22,"props":35958,"children":35959},{},[35960],{"type":26,"value":35961},"Daten-Qubits (●) enthalten die Quanteninformation. Ancilla-Qubits zwischen ihnen messen kontinuierlich die Parität. Ein 7×7-Gitter (49 physische Qubits) kodiert 1 logisches Qubit mit einer Fehlerrate von ~p² – liegt die physische Gatter-Fehlerrate bei 1 %, sinkt die logische Fehlerrate auf ~0,01 %.",{"type":21,"tag":22,"props":35963,"children":35964},{},[35965],{"type":26,"value":35966},"Die Schwelle des Surface Codes liegt bei ~1 %: Liegen die Gatter-Fehler der Hardware darunter, macht das Hinzufügen weiterer physischer Qubits die logische Fehlerrate beliebig klein. Die besten Systeme von IBM nähern sich dieser Schwelle.",{"type":21,"tag":29,"props":35968,"children":35970},{"id":35969},"wie-viele-physische-qubits-braucht-man",[35971],{"type":26,"value":35972},"Wie viele physische Qubits braucht man?",{"type":21,"tag":22,"props":35974,"children":35975},{},[35976],{"type":26,"value":35977},"Um Shors Algorithmus fehlerfrei auszuführen und RSA-2048 zu brechen, legen Schätzungen nahe:",{"type":21,"tag":3137,"props":35979,"children":35980},{},[35981,35986,35991],{"type":21,"tag":3141,"props":35982,"children":35983},{},[35984],{"type":26,"value":35985},"~20 Millionen physische Qubits",{"type":21,"tag":3141,"props":35987,"children":35988},{},[35989],{"type":26,"value":35990},"Jedes logische Qubit benötigt ~1000–10.000 physische Qubits",{"type":21,"tag":3141,"props":35992,"children":35993},{},[35994],{"type":26,"value":35995},"Die Gatter-Fehlerraten müssen unter 0,1 % liegen",{"type":21,"tag":22,"props":35997,"children":35998},{},[35999],{"type":26,"value":36000},"Aktuelle Hardware: ~1000 Qubits, ~0,1–1 % Gatter-Fehler. Die Kluft ist real – wir sind ungefähr 10–15 Jahre von fehlertoleranten, RSA-brechenden Quantencomputern entfernt.",{"type":21,"tag":22,"props":36002,"children":36003},{},[36004],{"type":26,"value":36005},"Für einen Quantenvorteil in der Chemie oder Optimierung in naher Zukunft sind die Anforderungen deutlich geringer: ~100 logische Qubits könnten ausreichen, um Moleküle jenseits der klassischen Reichweite zu behandeln.",{"type":21,"tag":29,"props":36007,"children":36009},{"id":36008},"was-das-heute-für-nisq-geräte-bedeutet",[36010],{"type":26,"value":36011},"Was das heute für NISQ-Geräte bedeutet",{"type":21,"tag":22,"props":36013,"children":36014},{},[36015],{"type":26,"value":36016},"Aktuelle NISQ-Geräte verfügen über keine QEC. Jedes Gatter fügt Rauschen hinzu. Der Ansatz ist stattdessen:",{"type":21,"tag":7028,"props":36018,"children":36019},{},[36020,36030,36040],{"type":21,"tag":3141,"props":36021,"children":36022},{},[36023,36028],{"type":21,"tag":205,"props":36024,"children":36025},{},[36026],{"type":26,"value":36027},"Schaltungen flach halten",{"type":26,"value":36029}," – weniger Gatter = weniger akkumuliertes Rauschen",{"type":21,"tag":3141,"props":36031,"children":36032},{},[36033,36038],{"type":21,"tag":205,"props":36034,"children":36035},{},[36036],{"type":26,"value":36037},"Fehlerminderung (nicht Korrektur) einsetzen",{"type":26,"value":36039}," – Nachbearbeitungstechniken wie Zero Noise Extrapolation (ZNE), die die Auswirkung von Fehlern statistisch reduzieren, ohne zusätzliche Qubits",{"type":21,"tag":3141,"props":36041,"children":36042},{},[36043,36048],{"type":21,"tag":205,"props":36044,"children":36045},{},[36046],{"type":26,"value":36047},"Rauschtolerante Algorithmen entwerfen",{"type":26,"value":36049}," – VQE, QAOA und andere variationelle Methoden sind darauf ausgelegt, gegenüber moderatem Rauschen robust zu sein",{"type":21,"tag":22,"props":36051,"children":36052},{},[36053],{"type":26,"value":36054},"HLQuantum enthält eine integrierte Fehlerminderung, die auf jede Schaltung angewendet werden kann:",{"type":21,"tag":2328,"props":36056,"children":36058},{"code":36057,"language":3209,"meta":7,"className":3207,"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",[36059],{"type":21,"tag":2097,"props":36060,"children":36061},{"__ignoreMap":7},[36062,36077,36084,36103,36122,36146,36162],{"type":21,"tag":2338,"props":36063,"children":36064},{"class":2340,"line":2341},[36065,36069,36073],{"type":21,"tag":2338,"props":36066,"children":36067},{"style":2345},[36068],{"type":26,"value":19355},{"type":21,"tag":2338,"props":36070,"children":36071},{"style":3219},[36072],{"type":26,"value":3259},{"type":21,"tag":2338,"props":36074,"children":36075},{"style":2345},[36076],{"type":26,"value":28785},{"type":21,"tag":2338,"props":36078,"children":36079},{"class":2340,"line":173},[36080],{"type":21,"tag":2338,"props":36081,"children":36082},{"style":2345},[36083],{"type":26,"value":28793},{"type":21,"tag":2338,"props":36085,"children":36086},{"class":2340,"line":2359},[36087,36091,36095,36099],{"type":21,"tag":2338,"props":36088,"children":36089},{"style":3284},[36090],{"type":26,"value":22894},{"type":21,"tag":2338,"props":36092,"children":36093},{"style":3219},[36094],{"type":26,"value":3259},{"type":21,"tag":2338,"props":36096,"children":36097},{"style":2374},[36098],{"type":26,"value":28809},{"type":21,"tag":2338,"props":36100,"children":36101},{"style":2345},[36102],{"type":26,"value":2442},{"type":21,"tag":2338,"props":36104,"children":36105},{"class":2340,"line":2421},[36106,36110,36114,36118],{"type":21,"tag":2338,"props":36107,"children":36108},{"style":3284},[36109],{"type":26,"value":28821},{"type":21,"tag":2338,"props":36111,"children":36112},{"style":3219},[36113],{"type":26,"value":3259},{"type":21,"tag":2338,"props":36115,"children":36116},{"style":2374},[36117],{"type":26,"value":28830},{"type":21,"tag":2338,"props":36119,"children":36120},{"style":2345},[36121],{"type":26,"value":2442},{"type":21,"tag":2338,"props":36123,"children":36124},{"class":2340,"line":2445},[36125,36129,36133,36137,36141],{"type":21,"tag":2338,"props":36126,"children":36127},{"style":3284},[36128],{"type":26,"value":28868},{"type":21,"tag":2338,"props":36130,"children":36131},{"style":3219},[36132],{"type":26,"value":3259},{"type":21,"tag":2338,"props":36134,"children":36135},{"style":2374},[36136],{"type":26,"value":35720},{"type":21,"tag":2338,"props":36138,"children":36139},{"style":2345},[36140],{"type":26,"value":28835},{"type":21,"tag":2338,"props":36142,"children":36143},{"style":3469},[36144],{"type":26,"value":36145},"# Zero Noise Extrapolation\n",{"type":21,"tag":2338,"props":36147,"children":36148},{"class":2340,"line":877},[36149,36153,36157],{"type":21,"tag":2338,"props":36150,"children":36151},{"style":3284},[36152],{"type":26,"value":28848},{"type":21,"tag":2338,"props":36154,"children":36155},{"style":3219},[36156],{"type":26,"value":3259},{"type":21,"tag":2338,"props":36158,"children":36159},{"style":2363},[36160],{"type":26,"value":36161},"8192\n",{"type":21,"tag":2338,"props":36163,"children":36164},{"class":2340,"line":196},[36165],{"type":21,"tag":2338,"props":36166,"children":36167},{"style":2345},[36168],{"type":26,"value":3319},{"type":21,"tag":22,"props":36170,"children":36171},{},[36172],{"type":26,"value":36173},"ZNE verstärkt das Rauschen absichtlich auf mehreren Ebenen und extrapoliert zurück zum rauschfreien Grenzwert. Es ist keine QEC – es ist ein statistischer Trick – aber es funktioniert bei kurzen Schaltungen bemerkenswert gut.",{"type":21,"tag":29,"props":36175,"children":36177},{"id":36176},"die-kurzfristigen-meilensteine-die-man-im-auge-behalten-sollte",[36178],{"type":26,"value":36179},"Die kurzfristigen Meilensteine, die man im Auge behalten sollte",{"type":21,"tag":22,"props":36181,"children":36182},{},[36183,36188],{"type":21,"tag":205,"props":36184,"children":36185},{},[36186],{"type":26,"value":36187},"Demonstration der Fehlerkorrektur im großen Maßstab",{"type":26,"value":36189}," – IBM, Google und Microsoft liefern sich ein Wettrennen, um zu zeigen, dass logische Surface-Code-Qubits physische Qubits übertreffen (Fehlerrate unterhalb der Schwelle). Google beanspruchte Ende 2024 eine Demonstration unterhalb der Schwelle.",{"type":21,"tag":22,"props":36191,"children":36192},{},[36193,36198],{"type":21,"tag":205,"props":36194,"children":36195},{},[36196],{"type":26,"value":36197},"Magic State Distillation",{"type":26,"value":36199}," – Non-Clifford-Gatter (wie T-Gatter) erfordern in fehlertoleranten Architekturen spezielle Distillationsprotokolle. Dies ist derzeit hinsichtlich des Qubit-Overheads extrem teuer.",{"type":21,"tag":22,"props":36201,"children":36202},{},[36203,36208],{"type":21,"tag":205,"props":36204,"children":36205},{},[36206],{"type":26,"value":36207},"Geschwindigkeit logischer Gatter",{"type":26,"value":36209}," – Logische Gatter in Surface Codes sind deutlich langsamer als physische Gatter. Sie zu beschleunigen ist eine zentrale Hardware-Herausforderung für 2026–2030.",{"type":21,"tag":22,"props":36211,"children":36212},{},[36213,36215,36220,36221,36226],{"type":26,"value":36214},"Für einen tieferen Einblick, wie die Fehlerkorrektur mit bestimmten SDKs zusammenwirkt, siehe den ",{"type":21,"tag":41,"props":36216,"children":36217},{"href":993},[36218],{"type":26,"value":36219},"Glossareintrag zur Quantenfehlerkorrektur",{"type":26,"value":20998},{"type":21,"tag":41,"props":36222,"children":36223},{"href":442},[36224],{"type":26,"value":36225},"Leitfaden zur NISQ-Ära",{"type":26,"value":825},{"type":21,"tag":2712,"props":36228,"children":36229},{},[36230],{"type":26,"value":2716},{"title":7,"searchDepth":173,"depth":173,"links":36232},[36233,36234,36235,36236,36237,36238,36239],{"id":35792,"depth":173,"text":35795},{"id":35822,"depth":173,"text":35825},{"id":35871,"depth":173,"text":35874},{"id":35934,"depth":173,"text":35937},{"id":35969,"depth":173,"text":35972},{"id":36008,"depth":173,"text":36011},{"id":36176,"depth":173,"text":36179},"content:de:blog:understanding-quantum-error-correction.md","de\u002Fblog\u002Funderstanding-quantum-error-correction.md","de\u002Fblog\u002Funderstanding-quantum-error-correction"]