[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"blog-hi-quantum-portfolio-optimization-business-case":3,"blog-translated-locales-quantum-portfolio-optimization-business-case":721,"blog-all-hi":723},{"_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":715,"_id":716,"_source":717,"_file":718,"_stem":719,"_extension":720},"\u002Fblog\u002Fquantum-portfolio-optimization-business-case","blog",false,"","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.","2026-08-01","FreeQuantumComputing",[13,14,15],"Optimization","QAOA","Use Cases",9,{"type":18,"children":19,"toc":708},"root",[20,37,58,65,103,109,114,124,149,183,188,194,199,216,245,251,277,311,520,620,637,647,653,665,702],{"type":21,"tag":22,"props":23,"children":24},"element","p",{},[25,28,35],{"type":26,"value":27},"text","Writing a QAOA circuit is a solved problem. Dozens of tutorials, including ",{"type":21,"tag":29,"props":30,"children":32},"a",{"href":31},"\u002Fblog\u002Fqaoa-max-cut-tutorial",[33],{"type":26,"value":34},"our own",{"type":26,"value":36},", 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":38,"children":39},{},[40,48,50,56],{"type":21,"tag":29,"props":41,"children":45},{"href":42,"rel":43},"https:\u002F\u002Fgithub.com\u002FAlinDanielFerenczi\u002FPortfolioQ",[44],"nofollow",[46],{"type":26,"value":47},"PortfolioQ",{"type":26,"value":49}," 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":51,"props":52,"children":53},"em",{},[54],{"type":26,"value":55},"any",{"type":26,"value":57}," quantum optimization claim honestly, portfolio selection or otherwise.",{"type":21,"tag":59,"props":60,"children":62},"h2",{"id":61},"the-problem-it-solves",[63],{"type":26,"value":64},"The problem it solves",{"type":21,"tag":22,"props":66,"children":67},{},[68,70,76,78,85,87,93,95,101],{"type":26,"value":69},"PortfolioQ targets ",{"type":21,"tag":71,"props":72,"children":73},"strong",{},[74],{"type":26,"value":75},"cardinality-constrained portfolio selection",{"type":26,"value":77},": 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":79,"props":80,"children":82},"code",{"className":81},[],[83],{"type":26,"value":84},"risk_factor * wᵀΣw - μᵀw",{"type":26,"value":86}," subject to ",{"type":21,"tag":79,"props":88,"children":90},{"className":89},[],[91],{"type":26,"value":92},"sum(w) == budget",{"type":26,"value":94},", with each ",{"type":21,"tag":79,"props":96,"children":98},{"className":97},[],[99],{"type":26,"value":100},"w",{"type":26,"value":102}," 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":59,"props":104,"children":106},{"id":105},"three-solvers-run-side-by-side",[107],{"type":26,"value":108},"Three solvers, run side by side",{"type":21,"tag":22,"props":110,"children":111},{},[112],{"type":26,"value":113},"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":115,"children":116},{},[117,122],{"type":21,"tag":71,"props":118,"children":119},{},[120],{"type":26,"value":121},"Classical exact enumeration.",{"type":26,"value":123}," 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":125,"children":126},{},[127,132,134,140,142,147],{"type":21,"tag":71,"props":128,"children":129},{},[130],{"type":26,"value":131},"Penalty-method QAOA.",{"type":26,"value":133}," The standard textbook approach: convert the constrained problem to a QUBO via ",{"type":21,"tag":79,"props":135,"children":137},{"className":136},[],[138],{"type":26,"value":139},"QuadraticProgramToQubo",{"type":26,"value":141},", encode it as an Ising Hamiltonian, run ",{"type":21,"tag":29,"props":143,"children":145},{"href":144},"\u002Fglossary\u002Fqaoa",[146],{"type":26,"value":14},{"type":26,"value":148},". 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":150,"children":151},{},[152,157,159,165,167,173,175,181],{"type":21,"tag":71,"props":153,"children":154},{},[155],{"type":26,"value":156},"Dicke-state \u002F XY-mixer QAOA.",{"type":26,"value":158}," The constraint-preserving alternative. A Dicke-state initialization (built with a small ancilla \"running count\" register that provably lands on exactly ",{"type":21,"tag":79,"props":160,"children":162},{"className":161},[],[163],{"type":26,"value":164},"|budget⟩",{"type":26,"value":166},") combined with an XY-mixer (",{"type":21,"tag":79,"props":168,"children":170},{"className":169},[],[171],{"type":26,"value":172},"RXX",{"type":26,"value":174},"\u002F",{"type":21,"tag":79,"props":176,"children":178},{"className":177},[],[179],{"type":26,"value":180},"RYY",{"type":26,"value":182}," 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":184,"children":185},{},[186],{"type":26,"value":187},"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":59,"props":189,"children":191},{"id":190},"the-chart-thats-the-actual-deliverable",[192],{"type":26,"value":193},"The chart that's the actual deliverable",{"type":21,"tag":22,"props":195,"children":196},{},[197],{"type":26,"value":198},"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":200,"props":201,"children":202},"blockquote",{},[203],{"type":21,"tag":22,"props":204,"children":205},{},[206,208,214],{"type":26,"value":207},"Run the same request against a real IBM backend and chart result quality vs. gate count as you increase ",{"type":21,"tag":79,"props":209,"children":211},{"className":210},[],[212],{"type":26,"value":213},"reps",{"type":26,"value":215},". This is the \"signal vs. noise crossover\" chart that's the actual deliverable for a business-case pitch.",{"type":21,"tag":22,"props":217,"children":218},{},[219,221,227,229,235,237,243],{"type":26,"value":220},"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":79,"props":222,"children":224},{"className":223},[],[225],{"type":26,"value":226},"pct_of_optimal",{"type":26,"value":228},": 100% means it matched classical exactly), against how much circuit you had to run to get there (",{"type":21,"tag":79,"props":230,"children":232},{"className":231},[],[233],{"type":26,"value":234},"circuit_depth",{"type":26,"value":236}," and ",{"type":21,"tag":79,"props":238,"children":240},{"className":239},[],[241],{"type":26,"value":242},"two_qubit_gates",{"type":26,"value":244},", 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":59,"props":246,"children":248},{"id":247},"building-the-case-step-by-step",[249],{"type":26,"value":250},"Building the case, step by step",{"type":21,"tag":22,"props":252,"children":253},{},[254,259,261,267,269,275],{"type":21,"tag":71,"props":255,"children":256},{},[257],{"type":26,"value":258},"1. Cap your problem size honestly.",{"type":26,"value":260}," PortfolioQ's own README recommends 10-30 assets for anything run on real hardware, and explains why: current ",{"type":21,"tag":29,"props":262,"children":264},{"href":263},"\u002Fglossary\u002Fnisq",[265],{"type":26,"value":266},"NISQ",{"type":26,"value":268}," 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":79,"props":270,"children":272},{"className":271},[],[273],{"type":26,"value":274},"yfinance",{"type":26,"value":276}," if you don't supply your own).",{"type":21,"tag":22,"props":278,"children":279},{},[280,285,287,293,295,301,303,309],{"type":21,"tag":71,"props":281,"children":282},{},[283],{"type":26,"value":284},"2. Establish the in-principle baseline on a simulator.",{"type":26,"value":286}," Run ",{"type":21,"tag":79,"props":288,"children":290},{"className":289},[],[291],{"type":26,"value":292},"\u002Foptimize\u002Fcompare-all",{"type":26,"value":294}," on ",{"type":21,"tag":79,"props":296,"children":298},{"className":297},[],[299],{"type":26,"value":300},"aer_simulator",{"type":26,"value":302}," before touching real hardware. Check that ",{"type":21,"tag":79,"props":304,"children":306},{"className":305},[],[307],{"type":26,"value":308},"feasible_fraction",{"type":26,"value":310}," 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":312,"props":313,"children":317},"pre",{"className":314,"code":315,"language":316,"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",[318],{"type":21,"tag":79,"props":319,"children":320},{"__ignoreMap":7},[321,333,342,405,429,451,472,494,512],{"type":21,"tag":322,"props":323,"children":326},"span",{"class":324,"line":325},"line",1,[327],{"type":21,"tag":322,"props":328,"children":330},{"style":329},"--shiki-default:#E1E4E8",[331],{"type":26,"value":332},"POST \u002Foptimize\u002Fcompare-all\n",{"type":21,"tag":322,"props":334,"children":336},{"class":324,"line":335},2,[337],{"type":21,"tag":322,"props":338,"children":339},{"style":329},[340],{"type":26,"value":341},"{\n",{"type":21,"tag":322,"props":343,"children":345},{"class":324,"line":344},3,[346,352,357,363,368,373,377,382,386,391,395,400],{"type":21,"tag":322,"props":347,"children":349},{"style":348},"--shiki-default:#79B8FF",[350],{"type":26,"value":351},"  \"tickers\"",{"type":21,"tag":322,"props":353,"children":354},{"style":329},[355],{"type":26,"value":356},": [",{"type":21,"tag":322,"props":358,"children":360},{"style":359},"--shiki-default:#9ECBFF",[361],{"type":26,"value":362},"\"AAPL\"",{"type":21,"tag":322,"props":364,"children":365},{"style":329},[366],{"type":26,"value":367},", ",{"type":21,"tag":322,"props":369,"children":370},{"style":359},[371],{"type":26,"value":372},"\"MSFT\"",{"type":21,"tag":322,"props":374,"children":375},{"style":329},[376],{"type":26,"value":367},{"type":21,"tag":322,"props":378,"children":379},{"style":359},[380],{"type":26,"value":381},"\"GOOGL\"",{"type":21,"tag":322,"props":383,"children":384},{"style":329},[385],{"type":26,"value":367},{"type":21,"tag":322,"props":387,"children":388},{"style":359},[389],{"type":26,"value":390},"\"AMZN\"",{"type":21,"tag":322,"props":392,"children":393},{"style":329},[394],{"type":26,"value":367},{"type":21,"tag":322,"props":396,"children":397},{"style":359},[398],{"type":26,"value":399},"\"NVDA\"",{"type":21,"tag":322,"props":401,"children":402},{"style":329},[403],{"type":26,"value":404},"],\n",{"type":21,"tag":322,"props":406,"children":408},{"class":324,"line":407},4,[409,414,419,424],{"type":21,"tag":322,"props":410,"children":411},{"style":348},[412],{"type":26,"value":413},"  \"budget\"",{"type":21,"tag":322,"props":415,"children":416},{"style":329},[417],{"type":26,"value":418},": ",{"type":21,"tag":322,"props":420,"children":421},{"style":348},[422],{"type":26,"value":423},"2",{"type":21,"tag":322,"props":425,"children":426},{"style":329},[427],{"type":26,"value":428},",\n",{"type":21,"tag":322,"props":430,"children":432},{"class":324,"line":431},5,[433,438,442,447],{"type":21,"tag":322,"props":434,"children":435},{"style":348},[436],{"type":26,"value":437},"  \"risk_factor\"",{"type":21,"tag":322,"props":439,"children":440},{"style":329},[441],{"type":26,"value":418},{"type":21,"tag":322,"props":443,"children":444},{"style":348},[445],{"type":26,"value":446},"0.5",{"type":21,"tag":322,"props":448,"children":449},{"style":329},[450],{"type":26,"value":428},{"type":21,"tag":322,"props":452,"children":454},{"class":324,"line":453},6,[455,460,464,468],{"type":21,"tag":322,"props":456,"children":457},{"style":348},[458],{"type":26,"value":459},"  \"reps\"",{"type":21,"tag":322,"props":461,"children":462},{"style":329},[463],{"type":26,"value":418},{"type":21,"tag":322,"props":465,"children":466},{"style":348},[467],{"type":26,"value":423},{"type":21,"tag":322,"props":469,"children":470},{"style":329},[471],{"type":26,"value":428},{"type":21,"tag":322,"props":473,"children":475},{"class":324,"line":474},7,[476,481,485,490],{"type":21,"tag":322,"props":477,"children":478},{"style":348},[479],{"type":26,"value":480},"  \"shots\"",{"type":21,"tag":322,"props":482,"children":483},{"style":329},[484],{"type":26,"value":418},{"type":21,"tag":322,"props":486,"children":487},{"style":348},[488],{"type":26,"value":489},"1024",{"type":21,"tag":322,"props":491,"children":492},{"style":329},[493],{"type":26,"value":428},{"type":21,"tag":322,"props":495,"children":497},{"class":324,"line":496},8,[498,503,507],{"type":21,"tag":322,"props":499,"children":500},{"style":348},[501],{"type":26,"value":502},"  \"backend\"",{"type":21,"tag":322,"props":504,"children":505},{"style":329},[506],{"type":26,"value":418},{"type":21,"tag":322,"props":508,"children":509},{"style":359},[510],{"type":26,"value":511},"\"aer_simulator\"\n",{"type":21,"tag":322,"props":513,"children":514},{"class":324,"line":16},[515],{"type":21,"tag":322,"props":516,"children":517},{"style":329},[518],{"type":26,"value":519},"}\n",{"type":21,"tag":22,"props":521,"children":522},{},[523,535,537,543,545,551,553,559,561,566,568,574,575,580,582,587,589,594,596,602,604,610,612,618],{"type":21,"tag":71,"props":524,"children":525},{},[526,528,533],{"type":26,"value":527},"3. Move to real hardware and vary ",{"type":21,"tag":79,"props":529,"children":531},{"className":530},[],[532],{"type":26,"value":213},{"type":26,"value":534},".",{"type":26,"value":536}," This is where the actual data comes from. Point ",{"type":21,"tag":79,"props":538,"children":540},{"className":539},[],[541],{"type":26,"value":542},"\"backend\"",{"type":26,"value":544}," at a real device (",{"type":21,"tag":79,"props":546,"children":548},{"className":547},[],[549],{"type":26,"value":550},"\"ibm_torino\"",{"type":26,"value":552},", for example. See our ",{"type":21,"tag":29,"props":554,"children":556},{"href":555},"\u002Fblog\u002Fibm-quantum-free-tier-2026",[557],{"type":26,"value":558},"IBM Quantum free tier guide",{"type":26,"value":560}," if you don't have hardware access set up yet) and rerun the same comparison as you increase ",{"type":21,"tag":79,"props":562,"children":564},{"className":563},[],[565],{"type":26,"value":213},{"type":26,"value":567},". ",{"type":21,"tag":79,"props":569,"children":571},{"className":570},[],[572],{"type":26,"value":573},"qaoa_xy_pct_of_optimal",{"type":26,"value":236},{"type":21,"tag":79,"props":576,"children":578},{"className":577},[],[579],{"type":26,"value":242},{"type":26,"value":581}," climbing together across a handful of ",{"type":21,"tag":79,"props":583,"children":585},{"className":584},[],[586],{"type":26,"value":213},{"type":26,"value":588}," values ",{"type":21,"tag":51,"props":590,"children":591},{},[592],{"type":26,"value":593},"is",{"type":26,"value":595}," the chart. Because each COBYLA iteration blocks on a real hardware job, use PortfolioQ's async ",{"type":21,"tag":79,"props":597,"children":599},{"className":598},[],[600],{"type":26,"value":601},"\u002Fsubmit",{"type":26,"value":603}," + ",{"type":21,"tag":79,"props":605,"children":607},{"className":606},[],[608],{"type":26,"value":609},"\u002Fjobs\u002F{id}",{"type":26,"value":611}," endpoints rather than the blocking ones. A ",{"type":21,"tag":79,"props":613,"children":615},{"className":614},[],[616],{"type":26,"value":617},"maxiter",{"type":26,"value":619}," 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":621,"children":622},{},[623,628,630,635],{"type":21,"tag":71,"props":624,"children":625},{},[626],{"type":26,"value":627},"4. Report the noise honestly, including where it breaks the guarantee.",{"type":26,"value":629}," Expect ",{"type":21,"tag":79,"props":631,"children":633},{"className":632},[],[634],{"type":26,"value":308},{"type":26,"value":636}," 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":638,"children":639},{},[640,645],{"type":21,"tag":71,"props":641,"children":642},{},[643],{"type":26,"value":644},"5. Write the recommendation the data supports.",{"type":26,"value":646}," 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":59,"props":648,"children":650},{"id":649},"what-this-template-generalizes-to",[651],{"type":26,"value":652},"What this template generalizes to",{"type":21,"tag":22,"props":654,"children":655},{},[656,658,663],{"type":26,"value":657},"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":29,"props":659,"children":660},{"href":31},[661],{"type":26,"value":662},"QAOA tutorial",{"type":26,"value":664},". 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":666,"children":667},{},[668,670,676,678,684,686,692,694,700],{"type":26,"value":669},"If you want to see this pattern extended, PortfolioQ's ",{"type":21,"tag":29,"props":671,"children":673},{"href":42,"rel":672},[44],[674],{"type":26,"value":675},"source on GitHub",{"type":26,"value":677}," is small enough to read end to end in an afternoon: ",{"type":21,"tag":79,"props":679,"children":681},{"className":680},[],[682],{"type":26,"value":683},"portfolio.py",{"type":26,"value":685}," for the QUBO construction, ",{"type":21,"tag":79,"props":687,"children":689},{"className":688},[],[690],{"type":26,"value":691},"xy_mixer_solver.py",{"type":26,"value":693}," for the constraint-preserving ansatz, and ",{"type":21,"tag":79,"props":695,"children":697},{"className":696},[],[698],{"type":26,"value":699},"main.py",{"type":26,"value":701}," 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":703,"props":704,"children":705},"style",{},[706],{"type":26,"value":707},"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":335,"depth":335,"links":709},[710,711,712,713,714],{"id":61,"depth":335,"text":64},{"id":105,"depth":335,"text":108},{"id":190,"depth":335,"text":193},{"id":247,"depth":335,"text":250},{"id":649,"depth":335,"text":652},"markdown","content:blog:quantum-portfolio-optimization-business-case.md","content","blog\u002Fquantum-portfolio-optimization-business-case.md","blog\u002Fquantum-portfolio-optimization-business-case","md",[722],"en",[724,882,1037,1320,1417,1491,1626,1731,1968,2125,2248,2401,2518,2620,3156,3308,3398,3506,4435,7593,9335,9792,10900,11474,11973,14228,16087,16466,18568,19593,20615,21460,23929,24983,27531,29346,32086,34084,36189],{"_path":725,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":726,"description":727,"date":10,"author":11,"tags":728,"readingTime":474,"body":732,"_type":715,"_id":879,"_source":717,"_file":880,"_stem":881,"_extension":720},"\u002Fhi\u002Fblog\u002Fquantinuum-helios-logical-qubits-2026","Quantinuum का Helios: 2:1 एन्कोडिंग पर 48 लॉजिकल क्यूबिट्स, समझाया गया","Quantinuum के नए ट्रैप्ड-आयन सिस्टम का दावा है कि यह लगभग 96 फिजिकल क्यूबिट्स से 48 एरर-करेक्टेड लॉजिकल क्यूबिट्स हासिल करता है। असली हेडलाइन क्यूबिट संख्या नहीं, बल्कि यह अनुपात है।",[729,730,731],"Error Correction","Hardware","Trapped-Ion",{"type":18,"children":733,"toc":873},[734,746,759,765,777,783,795,823,829,834,839,845],{"type":21,"tag":22,"props":735,"children":736},{},[737,739,744],{"type":26,"value":738},"Quantinuum ने अपना नया ट्रैप्ड-आयन सिस्टम, Helios, जारी किया है, जिसमें लगभग ",{"type":21,"tag":71,"props":740,"children":741},{},[742],{"type":26,"value":743},"2:1",{"type":26,"value":745}," के अनुपात में एन्कोड किए गए 48 एरर-करेक्टेड लॉजिकल क्यूबिट्स होने का दावा किया गया है — यानी लगभग 96 फिजिकल क्यूबिट्स, 48 लॉजिकल क्यूबिट्स जितना काम कर रहे हैं। इस घोषणा की अधिकांश कवरेज ने क्यूबिट संख्या को ही मुख्य बात बताया। लेकिन जिस संख्या पर ध्यान देना ज़रूरी है, वह है यह अनुपात।",{"type":21,"tag":22,"props":747,"children":748},{},[749,751,757],{"type":26,"value":750},"अगर आपने हमारा ",{"type":21,"tag":29,"props":752,"children":754},{"href":753},"\u002Fblog\u002Flogical-qubits-fault-tolerance-explained",[755],{"type":26,"value":756},"लॉजिकल क्यूबिट्स और फॉल्ट टॉलरेंस पर लेख",{"type":26,"value":758}," पढ़ा है, तो आप पहले से जानते हैं कि ऐसा क्यों है। सुपरकंडक्टिंग हार्डवेयर पर सरफ़ेस कोड के अनुमान आमतौर पर प्रति लॉजिकल क्यूबिट सैकड़ों से लेकर कुछ हज़ार फिजिकल क्यूबिट्स तक होते हैं, यह इस पर निर्भर करता है कि अंतर्निहित हार्डवेयर एरर थ्रेशोल्ड से कितना नीचे है। कंपनी द्वारा बताया गया लगभग 2:1 का अनुपात उस संख्या में मामूली सुधार नहीं है — यह डिज़ाइन स्पेस का पूरी तरह अलग हिस्सा है, और इस संख्या को शब्दशः मान लेने से पहले यह समझना ज़रूरी है कि इसे संभव किस चीज़ ने बनाया।",{"type":21,"tag":59,"props":760,"children":762},{"id":761},"helios-क्या-है",[763],{"type":26,"value":764},"Helios क्या है",{"type":21,"tag":22,"props":766,"children":767},{},[768,770,775],{"type":26,"value":769},"Helios, Quantinuum का नवीनतम H-Series-पीढ़ी का ट्रैप्ड-आयन सिस्टम है — वही वंशावली जिसने बार-बार क्वांटम वॉल्यूम रिकॉर्ड्स बनाए हैं, और जिसे ट्रैप्ड-आयन क्षेत्र में Quantinuum के मुख्य प्रतिस्पर्धी IonQ अब भी अपना प्रमुख बेंचमार्क मानता है जिसे पार करना है। ट्रैप्ड-आयन हार्डवेयर एक इलेक्ट्रोमैग्नेटिक फील्ड में अलग-अलग आयनों को पकड़ता है और लेज़र पल्स से उन्हें नियंत्रित करता है, जिससे गेट स्पीड (सुपरकंडक्टिंग क्यूबिट्स के नैनोसेकंड्स की तुलना में माइक्रोसेकंड से मिलीसेकंड) की कीमत पर दो ऐसी चीज़ें मिलती हैं जो एरर करेक्शन के लिए बेहद अहम हैं: प्रति-गेट अधिक फिडेलिटी, और ",{"type":21,"tag":71,"props":771,"children":772},{},[773],{"type":26,"value":774},"ऑल-टू-ऑल कनेक्टिविटी",{"type":26,"value":776}," — चेन में मौजूद कोई भी आयन बीच के किसी क्यूबिट से गुज़रे बिना किसी भी अन्य आयन के साथ एंटैंगल्ड हो सकता है।",{"type":21,"tag":59,"props":778,"children":780},{"id":779},"यह-अनुपात-यहां-संभव-क्यों-है",[781],{"type":26,"value":782},"यह अनुपात यहां संभव क्यों है",{"type":21,"tag":22,"props":784,"children":785},{},[786,788,793],{"type":26,"value":787},"सरफ़ेस कोड — जो Google के Willow जैसी सुपरकंडक्टिंग चिप्स के लिए मुख्य एरर-करेक्शन कोड है — ",{"type":21,"tag":71,"props":789,"children":790},{},[791],{"type":26,"value":792},"नज़दीकी-पड़ोसी",{"type":26,"value":794}," पैरिटी चेक्स पर आधारित है, क्योंकि एक सपाट, 2D सुपरकंडक्टिंग चिप भौतिक रूप से यही सपोर्ट कर सकती है। यही सीमा बड़ी वजह है कि इसका ओवरहेड इतना अधिक है — वास्तविक एरर दरों के खिलाफ एक लॉजिकल क्यूबिट को सुरक्षित रखने के लिए फिजिकल क्यूबिट्स की एक बड़ी 2D जाली चाहिए होती है।",{"type":21,"tag":22,"props":796,"children":797},{},[798,800,805,807,813,815,821],{"type":26,"value":799},"ट्रैप्ड आयनों पर यह सीमा लागू नहीं होती। चूंकि कोई भी आयन किसी भी अन्य आयन के साथ इंटरैक्ट कर सकता है, इसलिए ऐसे कोड जिन्हें ",{"type":21,"tag":71,"props":801,"children":802},{},[803],{"type":26,"value":804},"नॉन-लोकल",{"type":26,"value":806}," पैरिटी चेक्स की ज़रूरत होती है — जिन्हें एक प्लानर चिप पर वायर करना बेहद महंगा होता — सीधे लागू किए जा सकते हैं। इससे ज़्यादा क्यूबिट-कुशल कोड परिवारों (मोटे तौर पर qLDPC-जैसी संरचनाओं) का रास्ता खुलता है, जो धीमे गेट्स के बदले फिजिकल-से-लॉजिकल ओवरहेड को नाटकीय रूप से कम कर देते हैं। हमारा ",{"type":21,"tag":29,"props":808,"children":810},{"href":809},"\u002Fhardware",[811],{"type":26,"value":812},"हार्डवेयर ओवरव्यू",{"type":26,"value":814}," और ",{"type":21,"tag":29,"props":816,"children":818},{"href":817},"\u002Fcompare",[819],{"type":26,"value":820},"मॉडैलिटी तुलना",{"type":26,"value":822}," इस ट्रेड-ऑफ को अधिक सामान्य रूप से कवर करते हैं; Helios इस समय उपलब्ध इसका सबसे स्पष्ट, ठोस उदाहरण है।",{"type":21,"tag":59,"props":824,"children":826},{"id":825},"यह-अनुपात-क्या-नहीं-बताता",[827],{"type":26,"value":828},"यह अनुपात क्या नहीं बताता",{"type":21,"tag":22,"props":830,"children":831},{},[832],{"type":26,"value":833},"ओवरहेड एक पहलू है। यह अकेला पहलू नहीं है, और प्रति लॉजिकल क्यूबिट फिजिकल क्यूबिट्स की कम संख्या अपने आप मशीन को अधिक उपयोगी नहीं बना देती। जैसा कि हमने लॉजिकल क्यूबिट्स वाले लेख में बताया था, किसी लॉजिकल क्यूबिट को कई संख्याओं के आधार पर एक साथ आंका जाना चाहिए: ओवरहेड, आइडल लॉजिकल एरर रेट, लॉजिकल गेट फिडेलिटी, लॉजिकल गेट स्पीड, और गेट-सेट की यूनिवर्सैलिटी। ट्रैप्ड-आयन गेट्स सुपरकंडक्टिंग गेट्स से कई गुना धीमे होते हैं, इसलिए एक 2:1-एन्कोडेड लॉजिकल क्यूबिट जिसे प्रति ऑपरेशन मिलीसेकंड लगते हैं, वह किसी ऐसे महंगे लॉजिकल क्यूबिट से सीधे \"बेहतर\" नहीं है जो हज़ार गुना तेज़ चलता है — सही तुलना पूरी तरह इस पर निर्भर करती है कि डीकोहेरेंस के पकड़ में आने से पहले आपके एल्गोरिदम को कितने लॉजिकल ऑपरेशन्स चाहिए।",{"type":21,"tag":22,"props":835,"children":836},{},[837],{"type":26,"value":838},"साथ ही, इस इंडस्ट्री के किसी भी हार्डवेयर दावे की तरह, जब तक इसे स्वतंत्र रूप से दोहराया न जाए, इसे कंपनी के दावे के रूप में ही पढ़ना बेहतर है। \"2:1 पर 48 लॉजिकल क्यूबिट्स\" एक विशिष्ट संचालन स्थितियों के तहत की गई एक ठोस डेमो का वर्णन करता है, न कि किसी सामान्य रूप से उपलब्ध, तुरंत-इस्तेमाल-योग्य क्षमता का।",{"type":21,"tag":59,"props":840,"children":842},{"id":841},"आज-सीख-रहे-किसी-व्यक्ति-के-लिए-इसका-क्या-मतलब-है",[843],{"type":26,"value":844},"आज सीख रहे किसी व्यक्ति के लिए इसका क्या मतलब है",{"type":21,"tag":22,"props":846,"children":847},{},[848,850,855,857,863,865,871],{"type":26,"value":849},"Helios-स्तर का हार्डवेयर वैसा नहीं है जिसे आप ",{"type":21,"tag":29,"props":851,"children":852},{"href":555},[853],{"type":26,"value":854},"IBM के Open Plan",{"type":26,"value":856}," की तरह किसी फ्री टियर की कतार में एक्सेस कर सकें — लेकिन आखिर में चाहे जो भी हार्डवेयर आगे निकले, इसके पीछे के विचार सभी जगह लागू होते हैं। Quantinuum का TKET कंपाइलर ओपन सोर्स है और आज ही मुफ्त में इस्तेमाल किया जा सकता है, चाहे आप किसी भी बैकएंड को टारगेट करें, और इस लेख की अवधारणाएं — एन्कोडिंग ओवरहेड, कनेक्टिविटी की सीमाएं, थ्रेशोल्ड प्रमेय — वही हैं जिनका उपयोग आप भविष्य की किसी भी घोषणा को परखने के लिए करेंगे। हमारा ",{"type":21,"tag":29,"props":858,"children":860},{"href":859},"\u002Fblog\u002Funderstanding-quantum-error-correction",[861],{"type":26,"value":862},"एरर करेक्शन एक्सप्लेनर",{"type":26,"value":864}," इसके पीछे की मैकेनिज़्म को कवर करता है, और ",{"type":21,"tag":29,"props":866,"children":868},{"href":867},"\u002Flandscape",[869],{"type":26,"value":870},"क्वांटम लैंडस्केप",{"type":26,"value":872}," यह ट्रैक करता है कि हर मॉडैलिटी में — सिर्फ इसी में नहीं — कौन क्या बना रहा है।",{"title":7,"searchDepth":335,"depth":335,"links":874},[875,876,877,878],{"id":761,"depth":335,"text":764},{"id":779,"depth":335,"text":782},{"id":825,"depth":335,"text":828},{"id":841,"depth":335,"text":844},"content:hi:blog:quantinuum-helios-logical-qubits-2026.md","hi\u002Fblog\u002Fquantinuum-helios-logical-qubits-2026.md","hi\u002Fblog\u002Fquantinuum-helios-logical-qubits-2026",{"_path":883,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":884,"description":885,"date":10,"author":11,"tags":886,"readingTime":474,"body":889,"_type":715,"_id":1034,"_source":717,"_file":1035,"_stem":1036,"_extension":720},"\u002Fhi\u002Fblog\u002Fquantum-chemistry-protein-scale-2026","क्वांटम कंप्यूटरों ने अभी-अभी एक असली प्रोटीन को सिम्युलेट किया — इसका क्या मतलब है","Cleveland Clinic और IBM ने IBM के Heron r2 चिप पर एक 303-एटम मिनीप्रोटीन का क्वांटम-क्लासिकल हाइब्रिड सिमुलेशन चलाया — ज़्यादातर VQE डेमो में इस्तेमाल होने वाले छोटे-मोटे मॉलिक्यूल्स से एक असली छलांग, साथ में कुछ असली सीमाएं भी।",[887,888,730],"Chemistry","VQE",{"type":18,"children":890,"toc":1027},[891,904,909,915,941,946,952,957,963,990,996,1001,1007],{"type":21,"tag":22,"props":892,"children":893},{},[894,896,902],{"type":26,"value":895},"आपको ऑनलाइन मिलने वाले अधिकांश VQE ट्यूटोरियल — जिनमें ",{"type":21,"tag":29,"props":897,"children":899},{"href":898},"\u002Fblog\u002Fvqe-pennylane-practical-guide",[900],{"type":26,"value":901},"हमारा अपना ट्यूटोरियल",{"type":26,"value":903}," भी शामिल है — हाइड्रोजन या लिथियम हाइड्राइड को सिम्युलेट करते हैं: मुट्ठी भर एटम्स वाले मॉलिक्यूल्स, जिन्हें इसलिए चुना जाता है क्योंकि आज का हार्डवेयर और आज के नॉइज़ लेवल वास्तव में यही संभाल सकते हैं। मार्च 2026 में, Cleveland Clinic और IBM ने कुछ बिल्कुल अलग स्तर की चीज़ प्रकाशित की: IBM के Heron r2 प्रोसेसर का उपयोग करते हुए, Trp-cage नामक 303-एटम मिनीप्रोटीन की इलेक्ट्रॉनिक संरचना को मॉडल करने वाला एक क्वांटम-क्लासिकल हाइब्रिड वर्कफ़्लो।",{"type":21,"tag":22,"props":905,"children":906},{},[907],{"type":26,"value":908},"यह पैमाने में एक वास्तविक छलांग है, और यह समझना ज़रूरी है कि यह मुश्किल क्यों है — और यह हेडलाइन बनी एटम-संख्या क्या साबित करती है और क्या नहीं।",{"type":21,"tag":59,"props":910,"children":912},{"id":911},"मॉलिक्यूल-का-आकार-ही-असली-समस्या-क्यों-है",[913],{"type":26,"value":914},"मॉलिक्यूल का आकार ही असली समस्या क्यों है",{"type":21,"tag":22,"props":916,"children":917},{},[918,924,926,931,933,939],{"type":21,"tag":29,"props":919,"children":921},{"href":920},"\u002Fresearch\u002Ffeynman-simulating-physics-1982",[922],{"type":26,"value":923},"1982 में फाइनमैन का क्वांटम कंप्यूटिंग के पक्ष में मूल तर्क",{"type":26,"value":925}," ठीक यही था: क्वांटम सिस्टम्स को एक क्लासिकल कंप्यूटर पर बिल्कुल सटीक रूप से सिम्युलेट करने की लागत सिस्टम के आकार के साथ एक्सपोनेंशियल रूप से बढ़ती है, क्योंकि इलेक्ट्रॉनिक वेवफंक्शन एक हिल्बर्ट स्पेस में मौजूद होता है, जिसका आयाम शामिल ऑर्बिटल्स की संख्या के साथ विस्फोटक रूप से बढ़ता है। रसायनज्ञ आमतौर पर इसे अनुमानों (approximations) से दरकिनार करते हैं, लेकिन छोटे मॉलिक्यूल्स से आगे किसी भी चीज़ के लिए सटीक उत्तर क्लासिकल रूप से पहुंच से बाहर है। यही ",{"type":21,"tag":29,"props":927,"children":929},{"href":928},"\u002Fglossary\u002Fvqe",[930],{"type":26,"value":888},{"type":26,"value":932}," की पूरी प्रेरणा है — ",{"type":21,"tag":29,"props":934,"children":936},{"href":935},"\u002Fresearch\u002Fperuzzo-vqe-2014",[937],{"type":26,"value":938},"Peruzzo के 2014 के पेपर",{"type":26,"value":940}," ने इसे प्रस्तुत किया, और इसमें एक हाइब्रिड क्वांटम-क्लासिकल लूप का उपयोग खासतौर पर इसलिए किया गया क्योंकि निकट भविष्य का हार्डवेयर पूरी गणना खुद नहीं कर सकता।",{"type":21,"tag":22,"props":942,"children":943},{},[944],{"type":26,"value":945},"यही वजह है कि \"कितने एटम्स?\" क्वांटम केमिस्ट्री डेमोंस्ट्रेशंस के लिए वाकई एक सार्थक पैमाना है — जिस तरह से यह, मान लीजिए, किसी रैंडम सर्किट सैंपलिंग बेंचमार्क के लिए नहीं होता। 2-एटम मॉलिक्यूल से 303-एटम मॉलिक्यूल तक जाना उसी नतीजे का मार्केटिंग जैसा बढ़ा-चढ़ाकर बताया गया रूप नहीं है — यह हल की जा रही समस्या के आकार में एक वास्तविक छलांग है।",{"type":21,"tag":59,"props":947,"children":949},{"id":948},"trp-cage-क्या-है-और-इसे-क्यों-चुना-गया",[950],{"type":26,"value":951},"Trp-cage क्या है, और इसे क्यों चुना गया",{"type":21,"tag":22,"props":953,"children":954},{},[955],{"type":26,"value":956},"Trp-cage किसी प्रेस रिलीज़ के लिए मनमाने ढंग से चुना गया कोई बड़ा मॉलिक्यूल नहीं है — यह एक अच्छी तरह से अध्ययन किया गया, 20-रेज़िड्यू वाला मिनीप्रोटीन है, जो वर्षों से मॉलिक्यूलर डायनामिक्स और प्रोटीन-फोल्डिंग रिसर्च में एक मानक बेंचमार्क रहा है — ठीक इसलिए कि यह इतना छोटा है कि संभाला जा सके, लेकिन इतना वास्तविक है कि एक असली प्रोटीन जैसा व्यवहार करे। किसी नई प्रणाली के बजाय एक स्थापित संदर्भ प्रणाली का उपयोग करने से नतीजे को दशकों के मौजूदा क्लासिकल सिमुलेशन डेटा के आधार पर जांचना आसान हो जाता है।",{"type":21,"tag":59,"props":958,"children":960},{"id":959},"यहां-हाइब्रिड-वर्कफ़्लो-का-लगभग-निश्चित-रूप-से-क्या-मतलब-है",[961],{"type":26,"value":962},"यहां \"हाइब्रिड वर्कफ़्लो\" का लगभग निश्चित रूप से क्या मतलब है",{"type":21,"tag":22,"props":964,"children":965},{},[966,968,973,975,981,983,988],{"type":26,"value":967},"एटम-संख्या को ध्यान से पढ़ें। 303-एटम सिस्टम की ",{"type":21,"tag":51,"props":969,"children":970},{},[971],{"type":26,"value":972},"पूरी",{"type":26,"value":974}," इलेक्ट्रॉनिक संरचना आज किसी भी QPU की सीधी पहुंच से कहीं आगे है, और यह बेहद असंभव है कि सभी 303 एटम्स के इलेक्ट्रॉन वास्तव में क्वांटम प्रोसेसर पर दर्शाए गए हों। असली तस्वीर — इसी तरह के बड़े मॉलिक्यूल्स पर काम के लिए IBM के प्रकाशित तरीके के अनुरूप — एक हाइब्रिड एम्बेडिंग स्कीम है: एक सावधानी से चुना गया एक्टिव स्पेस (जो इलेक्ट्रॉन और ऑर्बिटल्स अध्ययन की जा रही प्रॉपर्टी के लिए सबसे ज़्यादा मायने रखते हैं) क्वांटम हार्डवेयर से होकर गुज़रता है, जबकि बाकी सिस्टम को क्लासिकल तरीके से संभाला जाता है और वापस जोड़ा जाता है। यह नतीजे को कमतर आंकना नहीं है — इस आकार की रेंज में हर \"क्वांटम कंप्यूटर एक असली मॉलिक्यूल को सिम्युलेट करता है\" वाला दावा फिलहाल इसी तरह काम करता है, और यह ठीक वही ",{"type":21,"tag":29,"props":976,"children":978},{"href":977},"\u002Fglossary\u002Fhybrid-algorithm",[979],{"type":26,"value":980},"हाइब्रिड-एल्गोरिदम",{"type":26,"value":982}," पैटर्न है जिस पर यह क्षेत्र ",{"type":21,"tag":29,"props":984,"children":985},{"href":263},[986],{"type":26,"value":987},"NISQ युग",{"type":26,"value":989}," के लिए टिका है। ईमानदार निष्कर्ष यह है कि हेडलाइन की संख्या अध्ययन किए गए सिस्टम का वर्णन करती है, यह सबूत नहीं कि QPU ने हर एटम पर बराबर काम किया।",{"type":21,"tag":59,"props":991,"children":993},{"id":992},"यह-अब-भी-एक-सार्थक-उपलब्धि-क्यों-है",[994],{"type":26,"value":995},"यह अब भी एक सार्थक उपलब्धि क्यों है",{"type":21,"tag":22,"props":997,"children":998},{},[999],{"type":26,"value":1000},"सीमाओं को अलग रखें तो, यह इन हाइब्रिड पाइपलाइनों की क्षमता में एक वास्तविक प्रगति है। पहले के अधिकांश \"क्वांटम कंप्यूटर केमिस्ट्री करता है\" डेमोंस्ट्रेशंस न्यूनतम बेसिस-सेट वाले, मुट्ठी भर एटम्स वाले मॉलिक्यूल्स तक ही सीमित थे। उसी तरह की तकनीक को एक जैविक रूप से प्रासंगिक, अच्छी तरह से चरित्रित 303-एटम सिस्टम तक स्केल करना — और क्वांटम हिस्से को किसी क्लासिकल विकल्प के बजाय असली हार्डवेयर पर चलाना — यह दिखाता है कि पाइपलाइन खुद स्केल कर रही है, जो कि वह असली अड़चन है जिसे हल करने की होड़ में कंपनियां लगी हैं। यह 2026 के अन्य केमिस्ट्री माइलस्टोन्स के साथ उसी दिशा में जुड़ता है, जिसमें Qubit Pharmaceuticals और Pasqal का एक प्रोटीन पॉकेट में पानी के मॉलिक्यूल्स की क्वांटम-एल्गोरिदमिक प्लेसमेंट का डेमोंस्ट्रेशन शामिल है — जो एक टेक्स्टबुक टास्क नहीं, बल्कि मॉलिक्यूलर-बायोलॉजी-ग्रेड टास्क है।",{"type":21,"tag":59,"props":1002,"children":1004},{"id":1003},"अगर-आप-आज-सीख-रहे-हैं-तो-इसका-क्या-मतलब-है",[1005],{"type":26,"value":1006},"अगर आप आज सीख रहे हैं, तो इसका क्या मतलब है",{"type":21,"tag":22,"props":1008,"children":1009},{},[1010,1012,1018,1020,1025],{"type":26,"value":1011},"यहां इस्तेमाल की गई तकनीक सीखने के लिए आपको Heron r2 एक्सेस — या किसी भी असली QPU — की ज़रूरत नहीं है। वही VQE बिल्डिंग ब्लॉक्स (एनसैट्ज़ निर्माण, एक्टिव-स्पेस चयन, क्लासिकल ऑप्टिमाइज़ेशन लूप) तब भी लागू होते हैं जब आप किसी ",{"type":21,"tag":29,"props":1013,"children":1015},{"href":1014},"\u002Fsimulators",[1016],{"type":26,"value":1017},"फ्री लोकल सिम्युलेटर",{"type":26,"value":1019}," पर H₂ को फिट कर रहे हों, और तब भी जब आप 303-एटम प्रोटीन के बारे में पढ़ रहे हों। अगर आप खुद छोटे-मॉलिक्यूल वर्ज़न चलाना चाहते हैं, तो हमारी ",{"type":21,"tag":29,"props":1021,"children":1022},{"href":898},[1023],{"type":26,"value":1024},"PennyLane VQE गाइड",{"type":26,"value":1026}," से शुरुआत करें, और इस तरह की कवरेज में आने वाली हेडलाइन एटम-संख्याओं को ठीक वैसे ही देखें जैसे आप किसी भी अन्य हार्डवेयर दावे को देखते — एक असली नतीजा, जिसे सटीक रूप से समझना ज़रूरी है, और जो अभी पूरी कहानी नहीं है।",{"title":7,"searchDepth":335,"depth":335,"links":1028},[1029,1030,1031,1032,1033],{"id":911,"depth":335,"text":914},{"id":948,"depth":335,"text":951},{"id":959,"depth":335,"text":962},{"id":992,"depth":335,"text":995},{"id":1003,"depth":335,"text":1006},"content:hi:blog:quantum-chemistry-protein-scale-2026.md","hi\u002Fblog\u002Fquantum-chemistry-protein-scale-2026.md","hi\u002Fblog\u002Fquantum-chemistry-protein-scale-2026",{"_path":1038,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":1039,"description":1040,"date":10,"author":11,"tags":1041,"readingTime":1043,"body":1044,"_type":715,"_id":1317,"_source":717,"_file":1318,"_stem":1319,"_extension":720},"\u002Fhi\u002Fblog\u002Ftop-quantum-computing-companies-2026","जुलाई 2026 की शीर्ष क्वांटम कंप्यूटिंग कंपनियां, रैंकिंग सहित समझाई गईं","जुलाई 2026 में वास्तव में मायने रखने वाली क्वांटम कंप्यूटिंग कंपनियों की एक ज़मीनी रैंकिंग: वास्तविक राजस्व, वास्तविक हार्डवेयर उपलब्धियां, और वास्तविक नकदी स्थिति, न कि प्रेस-रिलीज़ वाला उत्साह। IonQ के आंकड़े उसका स्थान सही ठहराते हैं। Rigetti के आंकड़े अभी अपने समकक्षों तक नहीं पहुंचे हैं।",[1042,730],"Industry",12,{"type":18,"children":1045,"toc":1303},[1046,1051,1063,1069,1089,1095,1100,1106,1111,1132,1137,1143,1156,1162,1167,1173,1178,1183,1189,1194,1200,1205,1211,1216,1222,1227,1233,1271,1277],{"type":21,"tag":22,"props":1047,"children":1048},{},[1049],{"type":26,"value":1050},"अधिकांश \"शीर्ष क्वांटम कंप्यूटिंग कंपनियां\" सूचियां या तो हेडलाइन क्यूबिट संख्या के आधार पर रैंक करती हैं, या इस आधार पर कि किसी कंपनी ने हाल ही में कितनी हालिया प्रेस विज्ञप्ति जारी की है। इनमें से कोई भी बहुत कुछ नहीं मापता। बिना फिडेलिटी आंकड़े के जुड़ी क्यूबिट संख्या यह नहीं बताती कि कोई मशीन उपयोगी काम करती है या नहीं, और प्रेस विज्ञप्ति मार्केटिंग बजट मापती है, हार्डवेयर रोडमैप नहीं।",{"type":21,"tag":22,"props":1052,"children":1053},{},[1054,1056,1061],{"type":26,"value":1055},"यह रैंकिंग इसके बजाय तीन चीज़ों का उपयोग करती है: प्रदर्शित तकनीकी प्रगति (फिडेलिटी, लॉजिकल क्यूबिट, स्वतंत्र रूप से पुनरुत्पादनीय परिणाम, सिर्फ हेडलाइन दावे नहीं), व्यावसायिक कर्षण (राजस्व, अनुबंध, बैकलॉग), और वित्तीय स्थिरता (बर्न रेट के मुकाबले नकदी स्थिति)। जहां किसी आंकड़े का एकमात्र स्रोत कंपनी का अपना दावा है, वहां यह स्पष्ट रूप से बताया गया है। हमारी ",{"type":21,"tag":29,"props":1057,"children":1058},{"href":867},[1059],{"type":26,"value":1060},"पूरी उद्योग निर्देशिका",{"type":26,"value":1062}," हर श्रेणी में 60 से अधिक कंपनियों को सूचीबद्ध करती है। यह लेख उसके ठीक उलट है: एक छोटी, स्पष्ट राय वाली सूची कि वास्तव में कौन आगे है, और सबसे ज़्यादा शोर मचाने वाले नाम क्यों नहीं हैं।",{"type":21,"tag":59,"props":1064,"children":1066},{"id":1065},"_1-ibm-quantum",[1067],{"type":26,"value":1068},"1. IBM Quantum",{"type":21,"tag":22,"props":1070,"children":1071},{},[1072,1074,1080,1082,1087],{"type":26,"value":1073},"IBM उद्योग में सबसे व्यापक प्लेटफ़ॉर्म बना हुआ है, और जुलाई 2026 उसके सबसे मज़बूत महीनों में से एक रहा: तीन अलग-अलग साझेदारों और तीन अलग-अलग सत्यापन रणनीतियों के साथ, एक ही दिन तीन अलग-अलग क्वांटम एडवांटेज परिणामों की घोषणा की गई। हमने ",{"type":21,"tag":29,"props":1075,"children":1077},{"href":1076},"\u002Fblog\u002Fibm-quantum-advantage-triple-announcement-2026",[1078],{"type":26,"value":1079},"पूरी घोषणा यहां कवर की है",{"type":26,"value":1081},"। Nighthawk प्रोसेसर (120 क्यूबिट, 218 ट्यूनेबल कपलर) पहले से ही उपयोग में है, और IBM का सार्वजनिक रोडमैप मध्यवर्ती सिस्टम्स की एक श्रृंखला के ज़रिए 2029 तक फॉल्ट टॉलरेंस का लक्ष्य रखता है, और qLDPC-शैली के कोड की ओर बढ़ रहा है जो सरफेस कोड की तुलना में एरर-करेक्शन ओवरहेड को लगभग 90% तक कम करते हैं। IBM का Open Plan भी किसी के लिए भी मुफ्त में असली हार्डवेयर पर सर्किट चलाने का सबसे आसान तरीका बना हुआ है, जो IBM को इस बात के केंद्र में रखता है कि अगली पीढ़ी के क्वांटम डेवलपर्स कैसे सीखते हैं। यदि आप इसे खुद आज़माना चाहते हैं तो हमारी ",{"type":21,"tag":29,"props":1083,"children":1084},{"href":555},[1085],{"type":26,"value":1086},"IBM Quantum फ्री टियर गाइड",{"type":26,"value":1088}," देखें। IBM की कमज़ोरी उसकी व्यापकता का ही दूसरा पहलू है: एक साथ इतना कुछ होने के कारण, हर व्यक्तिगत परिणाम को उतनी गहन जांच नहीं मिलती जितनी उसे किसी छोटे, अधिक केंद्रित प्रतिस्पर्धी से मिलती।",{"type":21,"tag":59,"props":1090,"children":1092},{"id":1091},"_2-google-quantum-ai",[1093],{"type":26,"value":1094},"2. Google Quantum AI",{"type":21,"tag":22,"props":1096,"children":1097},{},[1098],{"type":26,"value":1099},"Google के Willow प्रोसेसर ने 2025 के अंत में Quantum Echoes परिणाम दिया (Nature में प्रकाशित), एक गणना जिसे पेपर सबसे अच्छी उपलब्ध क्लासिकल विधि से लगभग 13,000 गुना तेज़ आंकता है, और एक साल पहले का थ्रेशोल्ड-से-नीचे एरर करेक्शन प्रदर्शन इस क्षेत्र में उन गिने-चुने मील के पत्थरों में से एक बना हुआ है जिनकी पूरी तरह से स्वतंत्र रूप से जांच हुई है। Google ने मार्च 2026 में अपने सुपरकंडक्टिंग काम के साथ-साथ न्यूट्रल एटम पर एक शोध प्रयास भी जोड़ा, इस संभावना के खिलाफ बचाव के तौर पर कि ट्रांसमॉन क्यूबिट अंतिम जवाब नहीं हैं। Google अपने प्रतिस्पर्धियों की तुलना में कम बार प्रकाशित करता है, और प्रकाशनों के बीच कम बताता है, जो एक तर्कसंगत शोध रणनीति है लेकिन महीने-दर-महीने प्रगति ट्रैक करना कठिन बना देती है।",{"type":21,"tag":59,"props":1101,"children":1103},{"id":1102},"_3-ionq",[1104],{"type":26,"value":1105},"3. IonQ",{"type":21,"tag":22,"props":1107,"children":1108},{},[1109],{"type":26,"value":1110},"शुद्ध क्वांटम हार्डवेयर कंपनियों में, IonQ के आंकड़े उद्योग में सबसे मज़बूत हैं, और यह एक तथ्यात्मक बयान है, प्रचारात्मक नहीं। 2026 की पहली तिमाही का राजस्व 6.47 करोड़ डॉलर तक पहुंचा, जो साल-दर-साल 755% अधिक है, पूरे साल का अनुमान बढ़ाकर 26-27 करोड़ डॉलर कर दिया गया है और शेष प्रदर्शन दायित्व 47 करोड़ डॉलर के हैं, जो 554% अधिक है। यह उम्मीद के सहारे चलने वाली कंपनी की प्रोफ़ाइल नहीं है। सरकारी कर्षण इसे साबित करता है: मिसाइल डिफेंस एजेंसी का एक अनुबंध वाहन जिसकी सीमा 15,100 करोड़ डॉलर तक है (एक सीमा, खर्च की गारंटी नहीं, लेकिन फिर भी असामान्य रूप से बड़ी), अप्रैल 2026 में एक नया DARPA अनुबंध, और दक्षिण कोरिया के KISTI संस्थान के साथ एक सॉवरेन क्वांटम-HPC समझौता।",{"type":21,"tag":22,"props":1112,"children":1113},{},[1114,1116,1122,1124,1130],{"type":26,"value":1115},"हार्डवेयर के मामले में, IonQ का ट्रैप्ड-आयन दृष्टिकोण Oxford Ionics अधिग्रहण से मिली \"स्मूथ गेट\" तकनीक से लाभान्वित होता है, जिसके बारे में कंपनी का कहना है कि यह पूर्ण ग्राउंड-स्टेट कूलिंग की ज़रूरत के बिना टू-क्यूबिट गेट फिडेलिटी को 99.99% से ऊपर ले जाती है, यह एक वास्तविक इंजीनियरिंग शॉर्टकट है अगर स्वतंत्र परीक्षण में यह सही साबित होती है। IonQ ने दिसंबर 2025 में एक डिकोडर परिणाम भी प्रकाशित किया (Beam Search, क्वांटम LDPC कोड के लिए), जिसमें मानक BP-OSD बेसलाइन की तुलना में लॉजिकल एरर रेट में 5.6 से 17 गुना कमी और एक साधारण CPU कोर पर एक मिलीसेकंड से कम डिकोडिंग का दावा किया गया है। अगर यह IonQ के अनुमान के अनुसार स्केल करता है, तो यह रीयल-टाइम डिकोडिंग की ओर उस FPGA और ASIC रास्ते से काफी सस्ता रास्ता है जिसे प्रतिस्पर्धी अपना रहे हैं, यह एक ऐसा विषय है जिस पर हम ",{"type":21,"tag":29,"props":1117,"children":1119},{"href":1118},"\u002Fblog\u002Fquantum-error-decoding-bottleneck",[1120],{"type":26,"value":1121},"रीयल-टाइम डिकोडिंग बॉटलनेक",{"type":26,"value":1123}," में गहराई से जाते हैं। और SkyWater Technology फाउंड्री अधिग्रहण, ",{"type":21,"tag":29,"props":1125,"children":1127},{"href":1126},"\u002Fblog\u002Fionq-skywater-acquisition-explained",[1128],{"type":26,"value":1129},"जिसकी हमने विस्तार से जांच की है",{"type":26,"value":1131},", IonQ को उसके क्यूबिट के आसपास के इलेक्ट्रोड, फोटोनिक्स, और कंट्रोल हार्डवेयर के लिए पूरी तरह घरेलू, रक्षा-स्वीकृत आपूर्ति श्रृंखला देता है, जो क्यूबिट भौतिकी से परे सरकारी खरीदारों के साथ एक वास्तविक लाभ है।",{"type":21,"tag":22,"props":1133,"children":1134},{},[1135],{"type":26,"value":1136},"इनमें से कुछ भी उस तरह स्वतंत्र रूप से सत्यापित नहीं है जिस तरह Google का थ्रेशोल्ड-से-नीचे परिणाम था। IonQ के फिडेलिटी, डिकोडर, और गेट-स्पीड दावे IonQ के अपने आंकड़े हैं। लेकिन व्यावसायिक और सरकारी कर्षण बाहरी रूप से रिपोर्ट किया गया और ऑडिट करने योग्य है, मार्केटिंग दावों से अलग, और इतनी युवा हार्डवेयर कंपनी के लिए केवल शोध फंडिंग के बजाय इस पैमाने पर वास्तविक राजस्व वृद्धि दिखाना दुर्लभ है। यह संयोजन, प्रदर्शित व्यावसायिक खिंचाव और एक सुसंगत हार्डवेयर रोडमैप, यही कारण है कि IonQ उन प्रतिस्पर्धियों से आगे रैंक करता है जिनके प्रयोगशाला परिणाम शायद तुलनीय या बेहतर हैं लेकिन जिनकी व्यावसायिक कहानी कहीं ज़्यादा कमज़ोर है।",{"type":21,"tag":59,"props":1138,"children":1140},{"id":1139},"_4-quantinuum",[1141],{"type":26,"value":1142},"4. Quantinuum",{"type":21,"tag":22,"props":1144,"children":1145},{},[1146,1148,1154],{"type":26,"value":1147},"Quantinuum का Helios सिस्टम लगभग 96 भौतिक क्यूबिट से 48 एरर-करेक्टेड लॉजिकल क्यूबिट का दावा करता है, यानी 2:1 का अनुपात, जो अगर सही साबित होता है तो महत्वपूर्ण होगा, क्योंकि सुपरकंडक्टिंग हार्डवेयर पर सरफेस-कोड अनुमान आमतौर पर प्रति लॉजिकल क्यूबिट सैकड़ों या हज़ारों भौतिक क्यूबिट तक पहुंच जाते हैं। हमने ",{"type":21,"tag":29,"props":1149,"children":1151},{"href":1150},"\u002Fblog\u002Fquantinuum-helios-logical-qubits-2026",[1152],{"type":26,"value":1153},"यहां बताया है कि यह अनुपात आखिर संभव कैसे है",{"type":26,"value":1155},": ट्रैप्ड-आयन की ऑल-टू-ऑल कनेक्टिविटी उन नॉन-लोकल पैरिटी चेक्स को संभव बनाती है जिन्हें एक सपाट सुपरकंडक्टिंग चिप वायर नहीं कर सकती। Quantinuum 2026 में 1560 करोड़ डॉलर के मूल्यांकन पर सार्वजनिक हुई, जो कुछ महीने पहले की उसकी अंतिम निजी फंडिंग राउंड से 50% से अधिक ऊपर है, जिसमें Honeywell लगभग 48% वोटिंग पावर बरकरार रखता है। यह IPO प्रतिक्रिया बताती है कि बाज़ार तकनीकी कहानी पर भरोसा करता है। IonQ के फिडेलिटी दावों की तरह, यह 2:1 आंकड़ा भी वेंडर द्वारा रिपोर्ट किया गया है और अभी तक स्वतंत्र रूप से पुनरुत्पादित नहीं हुआ है।",{"type":21,"tag":59,"props":1157,"children":1159},{"id":1158},"_5-d-wave",[1160],{"type":26,"value":1161},"5. D-Wave",{"type":21,"tag":22,"props":1163,"children":1164},{},[1165],{"type":26,"value":1166},"D-Wave एक अलग श्रेणी में आता है, गेट-मॉडल कंप्यूटेशन के बजाय एनीलिंग, और इसी वजह से इसे कम आंकना आसान है। 2026 की पहली तिमाही की बुकिंग साल-दर-साल लगभग 20 गुना बढ़कर 3.34 करोड़ डॉलर हो गई, जबकि मान्यता प्राप्त राजस्व तुलनात्मक रूप से छोटा, 29 लाख डॉलर रहा, जिसका मतलब है कि बैकलॉग वास्तविक है लेकिन मान्यता में देरी लंबी है। 58.8 करोड़ डॉलर की नकदी स्थिति उसे इसका इंतज़ार करने की गुंजाइश देती है। फ्लोरिडा अटलांटिक यूनिवर्सिटी और एक फॉर्च्यून 100 ग्राहक के साथ क्वांटम-क्लाउड एक्सेस के सौदे दिखाते हैं कि उसका खास क्षेत्र, ऐसी ऑप्टिमाइज़ेशन समस्याएं जो स्वाभाविक रूप से एनीलिंग पर फिट बैठती हैं, अभी भी सक्रिय व्यावसायिक मांग रखता है।",{"type":21,"tag":59,"props":1168,"children":1170},{"id":1169},"_6-rigetti-computing",[1171],{"type":26,"value":1172},"6. Rigetti Computing",{"type":21,"tag":22,"props":1174,"children":1175},{},[1176],{"type":26,"value":1177},"Rigetti इस सूची की वह कंपनी है जहां कहानी और आंकड़ों के बीच का अंतर सबसे बड़ा है। इसका Cepheus-1, एक 108-क्यूबिट सुपरकंडक्टिंग सिस्टम, अप्रैल 2026 में सामान्य उपलब्धता तक पहुंचा, जो मूल 2025 की चौथी तिमाही के लक्ष्य से खिसक गया था, ट्यूनेबल-कपलर फिडेलिटी समस्याओं के कारण देरी हुई। शिप होने के बाद, रिपोर्ट की गई टू-क्यूबिट फिडेलिटी लगभग 99-99.1% रही, जो Rigetti के अपने 99.5% लक्ष्य से कम है और IonQ और Quantinuum दोनों के अपने-अपने प्लेटफॉर्म के लिए दावा किए गए आंकड़ों से काफी कम है। 2026 की पहली तिमाही का राजस्व 44 लाख डॉलर था, जो उसी तिमाही में IonQ के 6.47 करोड़ डॉलर का एक छोटा सा हिस्सा है। सार्वजनिक रिपोर्टिंग एक DARPA प्रोग्राम माइलस्टोन पर एक झटके का भी वर्णन करती है, जो एक ऐसी कंपनी पर दबाव बढ़ाता है जो इस बिंदु पर काफी हद तक अपने रोडमैप को खुद फंड कर रही है।",{"type":21,"tag":22,"props":1179,"children":1180},{},[1181],{"type":26,"value":1182},"एकमात्र वास्तविक ताकत बैलेंस शीट है: लगभग 56.9 करोड़ डॉलर नकद, कोई कर्ज़ नहीं, और लगभग 2.6 करोड़ डॉलर प्रति तिमाही की बर्न रेट, जो वास्तविक रनवे खरीदती है। यह सीधे तौर पर स्वीकार करने लायक है, क्योंकि एक मज़बूत नकदी स्थिति एक वास्तविक संपत्ति है, कोई सांत्वना पुरस्कार नहीं। लेकिन नकदी समय खरीदती है, प्रतिस्पर्धी स्थिति नहीं, और उन मापदंडों पर जो वास्तव में यह भविष्यवाणी करते हैं कि कोई क्वांटम कंप्यूटर उपयोगी काम करता है या नहीं, फिडेलिटी, लॉजिकल क्यूबिट प्रगति, स्वतंत्र व्यावसायिक कर्षण, Rigetti IBM, Google, IonQ, और Quantinuum के पीछे चल रहा है, उनके साथ नहीं। 1,000+ क्यूबिट की ओर उसका अपना सार्वजनिक रोडमैप, आंकड़ों के हिसाब से, एक समानांतर राह के बजाय एक बहु-वर्षीय पकड़ बनाने की कोशिश जैसा पढ़ा जाता है।",{"type":21,"tag":59,"props":1184,"children":1186},{"id":1185},"_7-psiquantum",[1187],{"type":26,"value":1188},"7. PsiQuantum",{"type":21,"tag":22,"props":1190,"children":1191},{},[1192],{"type":26,"value":1193},"PsiQuantum का फोटोनिक, फॉल्ट-टॉलरेंस-प्रथम दृष्टिकोण सितंबर 2025 में 100 करोड़ डॉलर के सीरीज़ E राउंड में जुटा, और ऑस्ट्रेलियाई तथा क्वींसलैंड सरकार से लगभग 94 करोड़ ऑस्ट्रेलियाई डॉलर (लगभग 62 करोड़ अमेरिकी डॉलर) की प्रतिबद्धताएं हासिल कीं। इसके ब्रिस्बेन फैसिलिटी का निर्माण जून 2026 में शुरू हुआ, लेकिन डिलीवरी की समयसीमा मूल 2027 के लक्ष्य से खिसककर 2029 हो गई है। PsiQuantum ने कभी कोई कमर्शियल सिस्टम शिप नहीं किया है और इस बात पर सब कुछ दांव पर लगा रहा है कि एक फॉल्ट-टॉलरेंट मशीन बड़े पैमाने पर बनाए जाने पर पहली ही बार में काम करेगी, जो इस सूची के हर गेट-मॉडल प्रतिस्पर्धी से वास्तव में अलग जोखिम प्रोफ़ाइल है, जिनके पास आज (भले ही शोर वाला) काम करने वाला हार्डवेयर फील्ड में मौजूद है।",{"type":21,"tag":59,"props":1195,"children":1197},{"id":1196},"_8-xanadu",[1198],{"type":26,"value":1199},"8. Xanadu",{"type":21,"tag":22,"props":1201,"children":1202},{},[1203],{"type":26,"value":1204},"Xanadu ने मार्च 2026 में Nasdaq और TSX पर लिस्टिंग की, 30.2 करोड़ डॉलर जुटाए, और इसका मॉड्यूलर फोटोनिक सिस्टम Aurora रीयल-टाइम एरर करेक्शन का दावा करता है, जो स्वतंत्र रूप से सत्यापित होने पर एक सार्थक तकनीकी कदम होगा। इसका PennyLane फ्रेमवर्क क्वांटम मशीन लर्निंग में सबसे व्यापक रूप से इस्तेमाल होने वाले ओपन-सोर्स टूल्स में से एक बना हुआ है, चाहे वह किसी भी हार्डवेयर को टारगेट करे, जो Xanadu को एक ऐसा इकोसिस्टम आधार देता है जो इस पर निर्भर नहीं करता कि उसकी अपनी चिप जीतती है या नहीं।",{"type":21,"tag":59,"props":1206,"children":1208},{"id":1207},"_9-pasqal",[1209],{"type":26,"value":1210},"9. Pasqal",{"type":21,"tag":22,"props":1212,"children":1213},{},[1214],{"type":26,"value":1215},"Pasqal के न्यूट्रल-एटम दृष्टिकोण ने 34 करोड़ यूरो जुटाए और एक SPAC विलय को 200 करोड़ डॉलर के मूल्यांकन पर तय किया, जो 2026 की दूसरी छमाही में पूरा होने वाला है। इसका सार्वजनिक रोडमैप 2026 में 250-क्यूबिट एडवांटेज प्रदर्शन और अपने Vela तथा Centaurus सिस्टम्स के साथ 10,000+ क्यूबिट की ओर एक रास्ते का लक्ष्य रखता है। न्यूट्रल एटम अभी भी ट्रैप्ड आयन या सुपरकंडक्टिंग क्यूबिट की तुलना में व्यावसायिक रूप से शुरुआती चरण में हैं, लेकिन Pasqal की फंडिंग और सरकारी संबंध (विशेष रूप से यूरोप में) उसे उस पैमाने तक पहुंचने के लिए वास्तविक टिकाऊपन देते हैं।",{"type":21,"tag":59,"props":1217,"children":1219},{"id":1218},"_10-quera-computing",[1220],{"type":26,"value":1221},"10. QuEra Computing",{"type":21,"tag":22,"props":1223,"children":1224},{},[1225],{"type":26,"value":1226},"QuEra ने जनवरी 2026 के एक Nature पेपर में 448 भौतिक क्यूबिट पर एन्कोड किए गए 96 लॉजिकल क्यूबिट की रिपोर्ट दी, एक ऐसा अनुपात जो, अगर Google के थ्रेशोल्ड-से-नीचे परिणाम जैसी जांच का सामना कर पाता है, तो QuEra की लॉजिकल क्यूबिट संख्या को Quantinuum के Helios परिणाम से आगे कर देगा। Google और SoftBank जैसे निवेशकों से 50.7 करोड़ डॉलर से अधिक की कुल फंडिंग उसे न्यूट्रल-एटम दृष्टिकोण को पैमाने की ओर आगे बढ़ाते रहने के संसाधन देती है।",{"type":21,"tag":59,"props":1228,"children":1230},{"id":1229},"बाकी-का-क्षेत्र-संक्षेप-में",[1231],{"type":26,"value":1232},"बाकी का क्षेत्र, संक्षेप में",{"type":21,"tag":22,"props":1234,"children":1235},{},[1236,1241,1243,1248,1250,1255,1257,1262,1264,1269],{"type":21,"tag":71,"props":1237,"children":1238},{},[1239],{"type":26,"value":1240},"Atom Computing",{"type":26,"value":1242}," एरर करेक्शन पर Microsoft के QuNorth समूह के साथ काम करते हुए, 2026 के अंत तक 1,200+ भौतिक क्यूबिट पर 50 लॉजिकल क्यूबिट हासिल करने का लक्ष्य रखता है। ",{"type":21,"tag":71,"props":1244,"children":1245},{},[1246],{"type":26,"value":1247},"IQM",{"type":26,"value":1249}," ने BlackRock से 5 करोड़ यूरो जुटाए और 180 करोड़ डॉलर के SPAC मूल्यांकन तक पहुंचा, खुद को पहली EU-लिस्टेड शुद्ध क्वांटम हार्डवेयर कंपनी के रूप में स्थापित करते हुए, 13 ग्राहकों को पहले ही 21 सिस्टम बेच चुका है। ",{"type":21,"tag":71,"props":1251,"children":1252},{},[1253],{"type":26,"value":1254},"Infleqtion",{"type":26,"value":1256}," फरवरी 2026 में NYSE पर लिस्ट हुई और 1,600 भौतिक क्यूबिट की 99.73% फिडेलिटी पर रिपोर्ट करती है। ",{"type":21,"tag":71,"props":1258,"children":1259},{},[1260],{"type":26,"value":1261},"Microsoft",{"type":26,"value":1263}," ने जून 2026 में अपना Majorana 2 टोपोलॉजिकल क्यूबिट अपडेट शिप किया, क्यूबिट लाइफटाइम में 1,000 गुना सुधार का दावा करते हुए, एक ऐसा परिणाम जो अभी भी भौतिकी समुदाय की वास्तविक जांच का सामना कर रहा है, यह देखते हुए कि टोपोलॉजिकल क्यूबिट दावे ऐतिहासिक रूप से कितने विवादित रहे हैं। ",{"type":21,"tag":71,"props":1265,"children":1266},{},[1267],{"type":26,"value":1268},"NVIDIA",{"type":26,"value":1270}," कोई क्यूबिट बिल्कुल नहीं बनाता, लेकिन उसने अपने NVQLink इंफ्रास्ट्रक्चर को क्लासिकल सुपरकंप्यूटिंग और Rigetti, SEEQC, Quantinuum, तथा IQM के QPU के बीच की कनेक्टिव लेयर के रूप में स्थापित किया है, यह एक दांव है कि चाहे कोई भी हार्डवेयर मॉडैलिटी जीते, वह प्लंबिंग पर अपना कब्ज़ा बनाए रख सकता है।",{"type":21,"tag":59,"props":1272,"children":1274},{"id":1273},"इस-सूची-का-उपयोग-कैसे-करें",[1275],{"type":26,"value":1276},"इस सूची का उपयोग कैसे करें",{"type":21,"tag":22,"props":1278,"children":1279},{},[1280,1282,1288,1290,1295,1296,1301],{"type":26,"value":1281},"इस तरह की रैंकिंग तेज़ी से पुरानी पड़ जाती हैं, और यहां दिया गया हर आंकड़ा किसी खास तिमाही या घोषणा से आया है जो एक साल के भीतर पुराना दिखने लगेगा। जो उतनी तेज़ी से पुरानी नहीं पड़ती वह है तरीका: राजस्व की तुलना गाइडेंस से करें, फिडेलिटी की तुलना कंपनी के अपने बताए गए लक्ष्यों से करें, यह जांचें कि \"लॉजिकल क्यूबिट\" या \"एडवांटेज\" का कोई दावा स्वतंत्र रूप से पुनरुत्पादित हुआ है या अभी भी सिर्फ किसी एक वेंडर की बात पर टिका है। अगली किसी भी घोषणा को पढ़ते समय यही तरीका अपनाएं, हमारा ",{"type":21,"tag":29,"props":1283,"children":1285},{"href":1284},"\u002Fblog\u002Fquantum-benchmarking-eo-14413",[1286],{"type":26,"value":1287},"क्वांटम बेंचमार्किंग वाला लेख",{"type":26,"value":1289}," इस बारे में और गहराई से बताता है कि इस क्षेत्र में हार्डवेयर की तुलना करने का कोई भरोसेमंद, वेंडर-निरपेक्ष तरीका अभी भी क्यों नहीं है। अगर आप यह तय कर रहे हैं कि वास्तव में किस प्लेटफॉर्म पर बनाना है, न कि सिर्फ किसे देखते रहना है, तो हमारी ",{"type":21,"tag":29,"props":1291,"children":1292},{"href":809},[1293],{"type":26,"value":1294},"हार्डवेयर गाइड",{"type":26,"value":814},{"type":21,"tag":29,"props":1297,"children":1298},{"href":817},[1299],{"type":26,"value":1300},"SDK तुलना",{"type":26,"value":1302}," अगला पड़ाव हैं।",{"title":7,"searchDepth":335,"depth":335,"links":1304},[1305,1306,1307,1308,1309,1310,1311,1312,1313,1314,1315,1316],{"id":1065,"depth":335,"text":1068},{"id":1091,"depth":335,"text":1094},{"id":1102,"depth":335,"text":1105},{"id":1139,"depth":335,"text":1142},{"id":1158,"depth":335,"text":1161},{"id":1169,"depth":335,"text":1172},{"id":1185,"depth":335,"text":1188},{"id":1196,"depth":335,"text":1199},{"id":1207,"depth":335,"text":1210},{"id":1218,"depth":335,"text":1221},{"id":1229,"depth":335,"text":1232},{"id":1273,"depth":335,"text":1276},"content:hi:blog:top-quantum-computing-companies-2026.md","hi\u002Fblog\u002Ftop-quantum-computing-companies-2026.md","hi\u002Fblog\u002Ftop-quantum-computing-companies-2026",{"_path":1321,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":1322,"description":1323,"date":10,"author":11,"tags":1324,"readingTime":474,"body":1325,"_type":715,"_id":1414,"_source":717,"_file":1415,"_stem":1416,"_extension":720},"\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.",[887,888,730],{"type":18,"children":1326,"toc":1408},[1327,1338,1344,1349,1354,1360,1371,1377,1390,1396],{"type":21,"tag":22,"props":1328,"children":1329},{},[1330,1332,1336],{"type":26,"value":1331},"Building a good ",{"type":21,"tag":29,"props":1333,"children":1334},{"href":928},[1335],{"type":26,"value":888},{"type":26,"value":1337}," 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":59,"props":1339,"children":1341},{"id":1340},"the-problem-adapt-gqe-targets",[1342],{"type":26,"value":1343},"The problem ADAPT-GQE targets",{"type":21,"tag":22,"props":1345,"children":1346},{},[1347],{"type":26,"value":1348},"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":1350,"children":1351},{},[1352],{"type":26,"value":1353},"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":59,"props":1355,"children":1357},{"id":1356},"what-the-results-show",[1358],{"type":26,"value":1359},"What the results show",{"type":21,"tag":22,"props":1361,"children":1362},{},[1363,1365,1370],{"type":26,"value":1364},"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":29,"props":1366,"children":1367},{"href":1150},[1368],{"type":26,"value":1369},"piece on Helios's logical qubit encoding",{"type":26,"value":534},{"type":21,"tag":59,"props":1372,"children":1374},{"id":1373},"read-the-claim-at-the-scale-it-was-tested",[1375],{"type":26,"value":1376},"Read the claim at the scale it was tested",{"type":21,"tag":22,"props":1378,"children":1379},{},[1380,1382,1388],{"type":26,"value":1381},"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":29,"props":1383,"children":1385},{"href":1384},"\u002Fblog\u002Fquantum-chemistry-protein-scale-2026",[1386],{"type":26,"value":1387},"Cleveland Clinic and IBM protein-scale simulation",{"type":26,"value":1389}," 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":59,"props":1391,"children":1393},{"id":1392},"why-this-fits-a-pattern-worth-naming",[1394],{"type":26,"value":1395},"Why this fits a pattern worth naming",{"type":21,"tag":22,"props":1397,"children":1398},{},[1399,1401,1406],{"type":26,"value":1400},"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":29,"props":1402,"children":1403},{"href":898},[1404],{"type":26,"value":1405},"PennyLane VQE guide",{"type":26,"value":1407}," walks through the manual ansatz-construction approach ADAPT-GQE is trying to replace.",{"title":7,"searchDepth":335,"depth":335,"links":1409},[1410,1411,1412,1413],{"id":1340,"depth":335,"text":1343},{"id":1356,"depth":335,"text":1359},{"id":1373,"depth":335,"text":1376},{"id":1392,"depth":335,"text":1395},"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":1418,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":1419,"description":1420,"date":10,"author":11,"tags":1421,"readingTime":453,"body":1422,"_type":715,"_id":1488,"_source":717,"_file":1489,"_stem":1490,"_extension":720},"\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.",[1042,730],{"type":18,"children":1423,"toc":1483},[1424,1429,1435,1440,1446,1472,1478],{"type":21,"tag":22,"props":1425,"children":1426},{},[1427],{"type":26,"value":1428},"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":59,"props":1430,"children":1432},{"id":1431},"what-the-award-funds",[1433],{"type":26,"value":1434},"What the award funds",{"type":21,"tag":22,"props":1436,"children":1437},{},[1438],{"type":26,"value":1439},"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":59,"props":1441,"children":1443},{"id":1442},"why-a-chipmakers-ai-deal-shows-up-on-a-quantum-computing-site",[1444],{"type":26,"value":1445},"Why a chipmaker's AI deal shows up on a quantum computing site",{"type":21,"tag":22,"props":1447,"children":1448},{},[1449,1451,1456,1458,1463,1465,1471],{"type":26,"value":1450},"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":29,"props":1452,"children":1453},{"href":1126},[1454],{"type":26,"value":1455},"IonQ's acquisition of SkyWater Technology",{"type":26,"value":1457},". The connection to quantum computing is indirect but real: photonic quantum computing companies like Xanadu and PsiQuantum, tracked on our ",{"type":21,"tag":29,"props":1459,"children":1460},{"href":867},[1461],{"type":26,"value":1462},"industry landscape",{"type":26,"value":1464},", 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":29,"props":1466,"children":1468},{"href":1467},"\u002Fblog\u002Fquantum-networking-distributed-computing",[1469],{"type":26,"value":1470},"quantum networking and distributed quantum computing",{"type":26,"value":534},{"type":21,"tag":59,"props":1473,"children":1475},{"id":1474},"what-this-does-and-does-not-tell-you-about-quantum-hardware",[1476],{"type":26,"value":1477},"What this does and does not tell you about quantum hardware",{"type":21,"tag":22,"props":1479,"children":1480},{},[1481],{"type":26,"value":1482},"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":335,"depth":335,"links":1484},[1485,1486,1487],{"id":1431,"depth":335,"text":1434},{"id":1442,"depth":335,"text":1445},{"id":1474,"depth":335,"text":1477},"content:blog:globalfoundries-chips-silicon-photonics-award.md","blog\u002Fglobalfoundries-chips-silicon-photonics-award.md","blog\u002Fglobalfoundries-chips-silicon-photonics-award",{"_path":1492,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":1493,"description":1494,"date":10,"author":11,"tags":1495,"readingTime":496,"body":1496,"_type":715,"_id":1623,"_source":717,"_file":1624,"_stem":1625,"_extension":720},"\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.",[730,729,1042],{"type":18,"children":1497,"toc":1617},[1498,1520,1526,1531,1542,1548,1560,1565,1571,1576,1588,1594,1599],{"type":21,"tag":22,"props":1499,"children":1500},{},[1501,1503,1510,1511,1518],{"type":26,"value":1502},"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":29,"props":1504,"children":1507},{"href":1505,"rel":1506},"https:\u002F\u002Fthequantuminsider.com\u002F2026\u002F07\u002F10\u002Fgoogle-study-shows-quantum-computer-can-learn-from-its-own-errors-while-it-computes\u002F",[44],[1508],{"type":26,"value":1509},"The Quantum Insider",{"type":26,"value":236},{"type":21,"tag":29,"props":1512,"children":1515},{"href":1513,"rel":1514},"https:\u002F\u002Fwww.nature.com\u002Farticles\u002Fs41586-026-10759-2",[44],[1516],{"type":26,"value":1517},"the paper itself",{"type":26,"value":1519},". 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":59,"props":1521,"children":1523},{"id":1522},"the-problem-this-solves",[1524],{"type":26,"value":1525},"The problem this solves",{"type":21,"tag":22,"props":1527,"children":1528},{},[1529],{"type":26,"value":1530},"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":1532,"children":1533},{},[1534,1540],{"type":21,"tag":29,"props":1535,"children":1537},{"href":1536},"\u002Fglossary\u002Fquantum-error-correction",[1538],{"type":26,"value":1539},"Quantum error correction",{"type":26,"value":1541}," 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":59,"props":1543,"children":1545},{"id":1544},"what-the-reinforcement-learning-agent-does",[1546],{"type":26,"value":1547},"What the reinforcement learning agent does",{"type":21,"tag":22,"props":1549,"children":1550},{},[1551,1553,1558],{"type":26,"value":1552},"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":29,"props":1554,"children":1555},{"href":859},[1556],{"type":26,"value":1557},"surface codes",{"type":26,"value":1559}," 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":1561,"children":1562},{},[1563],{"type":26,"value":1564},"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":59,"props":1566,"children":1568},{"id":1567},"why-this-matters-more-than-the-specific-numbers",[1569],{"type":26,"value":1570},"Why this matters more than the specific numbers",{"type":21,"tag":22,"props":1572,"children":1573},{},[1574],{"type":26,"value":1575},"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":1577,"children":1578},{},[1579,1581,1586],{"type":26,"value":1580},"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":29,"props":1582,"children":1583},{"href":1076},[1584],{"type":26,"value":1585},"IBM's roadmap",{"type":26,"value":1587}," 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":59,"props":1589,"children":1591},{"id":1590},"what-is-still-unproven",[1592],{"type":26,"value":1593},"What is still unproven",{"type":21,"tag":22,"props":1595,"children":1596},{},[1597],{"type":26,"value":1598},"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":1600,"children":1601},{},[1602,1604,1609,1610,1615],{"type":26,"value":1603},"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":29,"props":1605,"children":1606},{"href":859},[1607],{"type":26,"value":1608},"error correction explainer",{"type":26,"value":236},{"type":21,"tag":29,"props":1611,"children":1612},{"href":753},[1613],{"type":26,"value":1614},"logical qubits and fault tolerance piece",{"type":26,"value":1616}," 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":335,"depth":335,"links":1618},[1619,1620,1621,1622],{"id":1522,"depth":335,"text":1525},{"id":1544,"depth":335,"text":1547},{"id":1567,"depth":335,"text":1570},{"id":1590,"depth":335,"text":1593},"content:blog:google-willow-reinforcement-learning-calibration.md","blog\u002Fgoogle-willow-reinforcement-learning-calibration.md","blog\u002Fgoogle-willow-reinforcement-learning-calibration",{"_path":1627,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":1628,"description":1629,"date":10,"author":11,"tags":1630,"readingTime":474,"body":1631,"_type":715,"_id":1728,"_source":717,"_file":1729,"_stem":1730,"_extension":720},"\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.",[730,729,1042],{"type":18,"children":1632,"toc":1723},[1633,1645,1651,1656,1674,1680,1685,1690,1696,1707],{"type":21,"tag":22,"props":1634,"children":1635},{},[1636,1638,1643],{"type":26,"value":1637},"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":29,"props":1639,"children":1640},{"href":1536},[1641],{"type":26,"value":1642},"error correction",{"type":26,"value":1644}," on its own.",{"type":21,"tag":59,"props":1646,"children":1648},{"id":1647},"what-hrl-built",[1649],{"type":26,"value":1650},"What HRL built",{"type":21,"tag":22,"props":1652,"children":1653},{},[1654],{"type":26,"value":1655},"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":1657,"children":1658},{},[1659,1661,1666,1667,1672],{"type":26,"value":1660},"The controller chip itself was manufactured at a commercial foundry, the same kind of manufacturing step behind ",{"type":21,"tag":29,"props":1662,"children":1663},{"href":1126},[1664],{"type":26,"value":1665},"IonQ's recent purchase of SkyWater Technology",{"type":26,"value":236},{"type":21,"tag":29,"props":1668,"children":1669},{"href":1418},[1670],{"type":26,"value":1671},"GlobalFoundries' new silicon photonics funding",{"type":26,"value":1673},". 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":59,"props":1675,"children":1677},{"id":1676},"why-moving-the-controller-matters-more-than-it-sounds",[1678],{"type":26,"value":1679},"Why moving the controller matters more than it sounds",{"type":21,"tag":22,"props":1681,"children":1682},{},[1683],{"type":26,"value":1684},"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":1686,"children":1687},{},[1688],{"type":26,"value":1689},"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":59,"props":1691,"children":1693},{"id":1692},"where-this-sits-next-to-other-2026-scaling-work",[1694],{"type":26,"value":1695},"Where this sits next to other 2026 scaling work",{"type":21,"tag":22,"props":1697,"children":1698},{},[1699,1705],{"type":21,"tag":29,"props":1700,"children":1702},{"href":1701},"\u002Fblog\u002Fwarwick-quantum-phononic-links",[1703],{"type":26,"value":1704},"Warwick researchers published a different answer",{"type":26,"value":1706}," 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":1708,"children":1709},{},[1710,1712,1717,1718,1722],{"type":26,"value":1711},"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":29,"props":1713,"children":1714},{"href":809},[1715],{"type":26,"value":1716},"hardware overview",{"type":26,"value":236},{"type":21,"tag":29,"props":1719,"children":1720},{"href":867},[1721],{"type":26,"value":1462},{"type":26,"value":534},{"title":7,"searchDepth":335,"depth":335,"links":1724},[1725,1726,1727],{"id":1647,"depth":335,"text":1650},{"id":1676,"depth":335,"text":1679},{"id":1692,"depth":335,"text":1695},"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":1732,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":1733,"description":1734,"date":10,"author":11,"tags":1735,"readingTime":496,"body":1736,"_type":715,"_id":1965,"_source":717,"_file":1966,"_stem":1967,"_extension":720},"\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.",[1042,730,729],{"type":18,"children":1737,"toc":1958},[1738,1752,1764,1770,1797,1817,1822,1828,1833,1838,1843,1849,1854,1859,1865,1870,1875,1881,1886,1902],{"type":21,"tag":22,"props":1739,"children":1740},{},[1741,1743,1750],{"type":26,"value":1742},"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":29,"props":1744,"children":1747},{"href":1745,"rel":1746},"https:\u002F\u002Fnewsroom.ibm.com\u002F2026-07-23-ibm-to-acquire-hrl-laboratories-to-power-the-future-of-quantum",[44],[1748],{"type":26,"value":1749},"IBM's newsroom announcement",{"type":26,"value":1751},". 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":1753,"children":1754},{},[1755,1757,1762],{"type":26,"value":1756},"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":29,"props":1758,"children":1759},{"href":1627},[1760],{"type":26,"value":1761},"which we covered here",{"type":26,"value":1763},". 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":59,"props":1765,"children":1767},{"id":1766},"what-hrl-brings",[1768],{"type":26,"value":1769},"What HRL brings",{"type":21,"tag":22,"props":1771,"children":1772},{},[1773,1775,1782,1784,1789,1791,1796],{"type":26,"value":1774},"HRL specializes in silicon-spin qubit engineering, quantum sensing, and quantum materials, according to ",{"type":21,"tag":29,"props":1776,"children":1779},{"href":1777,"rel":1778},"https:\u002F\u002Fresearch.ibm.com\u002Fblog\u002Fhrl-laboratories-ibm",[44],[1780],{"type":26,"value":1781},"IBM Research's own writeup",{"type":26,"value":1783},". That is a different qubit modality from IBM's existing superconducting transmon platform, the one behind ",{"type":21,"tag":29,"props":1785,"children":1786},{"href":1076},[1787],{"type":26,"value":1788},"Nighthawk",{"type":26,"value":1790}," and the ",{"type":21,"tag":29,"props":1792,"children":1793},{"href":1284},[1794],{"type":26,"value":1795},"Starling and Blue Jay roadmap",{"type":26,"value":534},{"type":21,"tag":22,"props":1798,"children":1799},{},[1800,1802,1808,1810,1815],{"type":26,"value":1801},"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":29,"props":1803,"children":1805},{"href":1804},"\u002Fglossary\u002Fqubit",[1806],{"type":26,"value":1807},"qubits",{"type":26,"value":1809},", 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":29,"props":1811,"children":1812},{"href":1627},[1813],{"type":26,"value":1814},"earlier piece on that result",{"type":26,"value":1816}," 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":1818,"children":1819},{},[1820],{"type":26,"value":1821},"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":59,"props":1823,"children":1825},{"id":1824},"why-ibm-is-buying-instead-of-partnering",[1826],{"type":26,"value":1827},"Why IBM is buying instead of partnering",{"type":21,"tag":22,"props":1829,"children":1830},{},[1831],{"type":26,"value":1832},"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":1834,"children":1835},{},[1836],{"type":26,"value":1837},"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":1839,"children":1840},{},[1841],{"type":26,"value":1842},"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":59,"props":1844,"children":1846},{"id":1845},"the-people-making-the-case",[1847],{"type":26,"value":1848},"The people making the case",{"type":21,"tag":22,"props":1850,"children":1851},{},[1852],{"type":26,"value":1853},"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":1855,"children":1856},{},[1857],{"type":26,"value":1858},"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":59,"props":1860,"children":1862},{"id":1861},"hrls-history-is-longer-than-the-quantum-story-suggests",[1863],{"type":26,"value":1864},"HRL's history is longer than the quantum story suggests",{"type":21,"tag":22,"props":1866,"children":1867},{},[1868],{"type":26,"value":1869},"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":1871,"children":1872},{},[1873],{"type":26,"value":1874},"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":59,"props":1876,"children":1878},{"id":1877},"what-to-watch-once-the-deal-closes",[1879],{"type":26,"value":1880},"What to watch once the deal closes",{"type":21,"tag":22,"props":1882,"children":1883},{},[1884],{"type":26,"value":1885},"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":1887,"children":1888},{},[1889,1891,1895,1896,1900],{"type":26,"value":1890},"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":29,"props":1892,"children":1893},{"href":809},[1894],{"type":26,"value":1716},{"type":26,"value":236},{"type":21,"tag":29,"props":1897,"children":1898},{"href":867},[1899],{"type":26,"value":1462},{"type":26,"value":1901}," 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":1903,"children":1904},{},[1905,1910,1912,1918,1919,1925,1926,1933,1934,1941,1942,1949,1950,1957],{"type":21,"tag":71,"props":1906,"children":1907},{},[1908],{"type":26,"value":1909},"Sources:",{"type":26,"value":1911}," ",{"type":21,"tag":29,"props":1913,"children":1915},{"href":1745,"rel":1914},[44],[1916],{"type":26,"value":1917},"IBM newsroom announcement",{"type":26,"value":367},{"type":21,"tag":29,"props":1920,"children":1922},{"href":1777,"rel":1921},[44],[1923],{"type":26,"value":1924},"IBM Research blog",{"type":26,"value":367},{"type":21,"tag":29,"props":1927,"children":1930},{"href":1928,"rel":1929},"https:\u002F\u002Fsiliconangle.com\u002F2026\u002F07\u002F23\u002Fibm-acquires-quantum-computing-research-lab-hrl\u002F",[44],[1931],{"type":26,"value":1932},"SiliconANGLE",{"type":26,"value":367},{"type":21,"tag":29,"props":1935,"children":1938},{"href":1936,"rel":1937},"https:\u002F\u002Fwww.govconwire.com\u002Farticles\u002Fibm-buy-hrl-laboratories-quantum-computing",[44],[1939],{"type":26,"value":1940},"GovConWire",{"type":26,"value":367},{"type":21,"tag":29,"props":1943,"children":1946},{"href":1944,"rel":1945},"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",[44],[1947],{"type":26,"value":1948},"IBM's $10 billion quantum investment announcement",{"type":26,"value":367},{"type":21,"tag":29,"props":1951,"children":1954},{"href":1952,"rel":1953},"https:\u002F\u002Fwww.hrl.com\u002Fabout\u002Fhistory",[44],[1955],{"type":26,"value":1956},"HRL Laboratories history",{"type":26,"value":534},{"title":7,"searchDepth":335,"depth":335,"links":1959},[1960,1961,1962,1963,1964],{"id":1766,"depth":335,"text":1769},{"id":1824,"depth":335,"text":1827},{"id":1845,"depth":335,"text":1848},{"id":1861,"depth":335,"text":1864},{"id":1877,"depth":335,"text":1880},"content:blog:ibm-hrl-laboratories-acquisition-explained.md","blog\u002Fibm-hrl-laboratories-acquisition-explained.md","blog\u002Fibm-hrl-laboratories-acquisition-explained",{"_path":1076,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":1969,"description":1970,"date":10,"author":11,"tags":1971,"readingTime":16,"body":1973,"_type":715,"_id":2122,"_source":717,"_file":2123,"_stem":2124,"_extension":720},"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.",[1042,730,1972],"Qiskit",{"type":18,"children":1974,"toc":2115},[1975,1980,1986,1999,2011,2017,2022,2027,2033,2038,2043,2049,2070,2075,2081,2086],{"type":21,"tag":22,"props":1976,"children":1977},{},[1978],{"type":26,"value":1979},"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":59,"props":1981,"children":1983},{"id":1982},"result-one-ibm-and-the-university-of-chicago-logical-qubits-at-scale",[1984],{"type":26,"value":1985},"Result one: IBM and the University of Chicago, logical qubits at scale",{"type":21,"tag":22,"props":1987,"children":1988},{},[1989,1991,1997],{"type":26,"value":1990},"The team ran an encoded circuit using 70 ",{"type":21,"tag":29,"props":1992,"children":1994},{"href":1993},"\u002Fglossary\u002Flogical-qubit",[1995],{"type":26,"value":1996},"logical qubits",{"type":26,"value":1998}," 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":2000,"children":2001},{},[2002,2004,2009],{"type":26,"value":2003},"Notice what the coverage did not state: the physical qubit count behind those 70 logical qubits. Our ",{"type":21,"tag":29,"props":2005,"children":2006},{"href":753},[2007],{"type":26,"value":2008},"companion piece on logical qubits and fault tolerance",{"type":26,"value":2010}," 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":59,"props":2012,"children":2014},{"id":2013},"result-two-ibm-and-qedma-a-real-physics-question-checked-two-ways",[2015],{"type":26,"value":2016},"Result two: IBM and Qedma, a real physics question checked two ways",{"type":21,"tag":22,"props":2018,"children":2019},{},[2020],{"type":26,"value":2021},"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":2023,"children":2024},{},[2025],{"type":26,"value":2026},"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":59,"props":2028,"children":2030},{"id":2029},"result-three-ibm-and-algorithmiq-checking-an-answer-nothing-else-verifies",[2031],{"type":26,"value":2032},"Result three: IBM and Algorithmiq, checking an answer nothing else verifies",{"type":21,"tag":22,"props":2034,"children":2035},{},[2036],{"type":26,"value":2037},"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":2039,"children":2040},{},[2041],{"type":26,"value":2042},"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":59,"props":2044,"children":2046},{"id":2045},"why-the-trust-framing-matters-more-than-the-speed-framing",[2047],{"type":26,"value":2048},"Why the trust framing matters more than the speed framing",{"type":21,"tag":22,"props":2050,"children":2051},{},[2052,2054,2060,2062,2068],{"type":26,"value":2053},"\"Beyond classical simulation\" is not a new claim. Google made a related claim in 2019 with its ",{"type":21,"tag":29,"props":2055,"children":2057},{"href":2056},"\u002Fresearch\u002Fgoogle-quantum-supremacy-2019",[2058],{"type":26,"value":2059},"quantum supremacy result",{"type":26,"value":2061},", and better classical algorithms later closed part of that gap. IBM made a related but weaker claim in 2023 with ",{"type":21,"tag":29,"props":2063,"children":2065},{"href":2064},"\u002Fresearch\u002Fibm-quantum-utility-2023",[2066],{"type":26,"value":2067},"quantum utility",{"type":26,"value":2069},", which did not require beating classical computation outright, only being useful and comparable to it.",{"type":21,"tag":22,"props":2071,"children":2072},{},[2073],{"type":26,"value":2074},"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":59,"props":2076,"children":2078},{"id":2077},"what-happens-next",[2079],{"type":26,"value":2080},"What happens next",{"type":21,"tag":22,"props":2082,"children":2083},{},[2084],{"type":26,"value":2085},"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":2087,"children":2088},{},[2089,2091,2095,2096,2100,2102,2107,2108,2113],{"type":26,"value":2090},"For a broader sense of how IBM's hardware and error-mitigation approach compares with competing modalities, see our ",{"type":21,"tag":29,"props":2092,"children":2093},{"href":809},[2094],{"type":26,"value":1716},{"type":26,"value":236},{"type":21,"tag":29,"props":2097,"children":2098},{"href":867},[2099],{"type":26,"value":1462},{"type":26,"value":2101},". For the mechanics behind logical qubits and why overhead numbers matter more than headline qubit counts, our ",{"type":21,"tag":29,"props":2103,"children":2104},{"href":753},[2105],{"type":26,"value":2106},"fault tolerance explainer",{"type":26,"value":236},{"type":21,"tag":29,"props":2109,"children":2110},{"href":1150},[2111],{"type":26,"value":2112},"Quantinuum Helios piece",{"type":26,"value":2114}," cover the same questions from a different vendor's claims.",{"title":7,"searchDepth":335,"depth":335,"links":2116},[2117,2118,2119,2120,2121],{"id":1982,"depth":335,"text":1985},{"id":2013,"depth":335,"text":2016},{"id":2029,"depth":335,"text":2032},{"id":2045,"depth":335,"text":2048},{"id":2077,"depth":335,"text":2080},"content:blog:ibm-quantum-advantage-triple-announcement-2026.md","blog\u002Fibm-quantum-advantage-triple-announcement-2026.md","blog\u002Fibm-quantum-advantage-triple-announcement-2026",{"_path":2126,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":2127,"description":2128,"date":10,"author":11,"tags":2129,"readingTime":474,"body":2130,"_type":715,"_id":2245,"_source":717,"_file":2246,"_stem":2247,"_extension":720},"\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.",[730,1042],{"type":18,"children":2131,"toc":2240},[2132,2153,2159,2177,2197,2203,2208,2213,2219,2224],{"type":21,"tag":22,"props":2133,"children":2134},{},[2135,2137,2144,2145,2151],{"type":26,"value":2136},"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":29,"props":2138,"children":2141},{"href":2139,"rel":2140},"https:\u002F\u002Finfleqtion.com\u002Finfleqtion-to-deploy-fault-tolerant-neutral-atom-quantum-computer-in-illinois\u002F",[44],[2142],{"type":26,"value":2143},"the company's own announcement",{"type":26,"value":236},{"type":21,"tag":29,"props":2146,"children":2149},{"href":2147,"rel":2148},"https:\u002F\u002Fthequantuminsider.com\u002F2026\u002F07\u002F23\u002Finfleqtion-neutral-atom-quantum-computer-illinois\u002F",[44],[2150],{"type":26,"value":1509},{"type":26,"value":2152},". 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":59,"props":2154,"children":2156},{"id":2155},"what-sqale-is-supposed-to-do",[2157],{"type":26,"value":2158},"What Sqale is supposed to do",{"type":21,"tag":22,"props":2160,"children":2161},{},[2162,2164,2168,2170,2175],{"type":26,"value":2163},"Sqale is designed to demonstrate more than 50 ",{"type":21,"tag":29,"props":2165,"children":2166},{"href":1993},[2167],{"type":26,"value":1996},{"type":26,"value":2169}," 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":29,"props":2171,"children":2172},{"href":809},[2173],{"type":26,"value":2174},"neutral-atom systems",{"type":26,"value":2176},", 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":2178,"children":2179},{},[2180,2182,2187,2189,2195],{"type":26,"value":2181},"Fifty logical qubits would be a meaningful jump if it holds up. For comparison, ",{"type":21,"tag":29,"props":2183,"children":2184},{"href":1150},[2185],{"type":26,"value":2186},"Quantinuum's Helios system claims 48 logical qubits",{"type":26,"value":2188}," from roughly 96 physical qubits, and ",{"type":21,"tag":29,"props":2190,"children":2192},{"href":2191},"\u002Fblog\u002Ftop-quantum-computing-companies-2026",[2193],{"type":26,"value":2194},"QuEra reported 96 logical qubits",{"type":26,"value":2196}," 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":59,"props":2198,"children":2200},{"id":2199},"the-energy-grid-angle-is-the-more-interesting-part",[2201],{"type":26,"value":2202},"The energy grid angle is the more interesting part",{"type":21,"tag":22,"props":2204,"children":2205},{},[2206],{"type":26,"value":2207},"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":2209,"children":2210},{},[2211],{"type":26,"value":2212},"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":59,"props":2214,"children":2216},{"id":2215},"what-is-confirmed-and-what-is-not",[2217],{"type":26,"value":2218},"What is confirmed and what is not",{"type":21,"tag":22,"props":2220,"children":2221},{},[2222],{"type":26,"value":2223},"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":2225,"children":2226},{},[2227,2229,2233,2234,2238],{"type":26,"value":2228},"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":29,"props":2230,"children":2231},{"href":809},[2232],{"type":26,"value":1716},{"type":26,"value":236},{"type":21,"tag":29,"props":2235,"children":2236},{"href":867},[2237],{"type":26,"value":1462},{"type":26,"value":2239}," 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":335,"depth":335,"links":2241},[2242,2243,2244],{"id":2155,"depth":335,"text":2158},{"id":2199,"depth":335,"text":2202},{"id":2215,"depth":335,"text":2218},"content:blog:infleqtion-sqale-illinois-quantum-park.md","blog\u002Finfleqtion-sqale-illinois-quantum-park.md","blog\u002Finfleqtion-sqale-illinois-quantum-park",{"_path":1126,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":2249,"description":2250,"date":10,"author":11,"tags":2251,"readingTime":496,"body":2252,"_type":715,"_id":2398,"_source":717,"_file":2399,"_stem":2400,"_extension":720},"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.",[1042,730,731],{"type":18,"children":2253,"toc":2390},[2254,2268,2274,2279,2285,2290,2295,2300,2306,2311,2329,2335,2340,2346,2365,2371],{"type":21,"tag":22,"props":2255,"children":2256},{},[2257,2259,2266],{"type":26,"value":2258},"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":29,"props":2260,"children":2263},{"href":2261,"rel":2262},"https:\u002F\u002Finvestors.ionq.com\u002Fnews\u002Fnews-details\u002F2026\u002FIonQ-Completes-Acquisition-of-SkyWater-Technology\u002Fdefault.aspx",[44],[2264],{"type":26,"value":2265},"$1.8 billion",{"type":26,"value":2267},". 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":59,"props":2269,"children":2271},{"id":2270},"what-skywater-builds",[2272],{"type":26,"value":2273},"What SkyWater builds",{"type":21,"tag":22,"props":2275,"children":2276},{},[2277],{"type":26,"value":2278},"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":59,"props":2280,"children":2282},{"id":2281},"the-part-of-ionqs-stack-this-touches",[2283],{"type":26,"value":2284},"The part of IonQ's stack this touches",{"type":21,"tag":22,"props":2286,"children":2287},{},[2288],{"type":26,"value":2289},"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":2291,"children":2292},{},[2293],{"type":26,"value":2294},"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":2296,"children":2297},{},[2298],{"type":26,"value":2299},"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":59,"props":2301,"children":2303},{"id":2302},"what-vertically-integrated-means-precisely",[2304],{"type":26,"value":2305},"What \"vertically integrated\" means, precisely",{"type":21,"tag":22,"props":2307,"children":2308},{},[2309],{"type":26,"value":2310},"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":2312,"children":2313},{},[2314,2316,2320,2322,2327],{"type":26,"value":2315},"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":29,"props":2317,"children":2318},{"href":809},[2319],{"type":26,"value":1716},{"type":26,"value":2321}," and our ",{"type":21,"tag":29,"props":2323,"children":2324},{"href":817},[2325],{"type":26,"value":2326},"SDK and modality comparison",{"type":26,"value":2328}," cover how IonQ stacks up against competitors across every technology, not only this one.",{"type":21,"tag":59,"props":2330,"children":2332},{"id":2331},"why-the-size-of-the-deal-matters",[2333],{"type":26,"value":2334},"Why the size of the deal matters",{"type":21,"tag":22,"props":2336,"children":2337},{},[2338],{"type":26,"value":2339},"$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":59,"props":2341,"children":2343},{"id":2342},"the-domestic-supply-chain-story-holds-up-best",[2344],{"type":26,"value":2345},"The domestic supply chain story holds up best",{"type":21,"tag":22,"props":2347,"children":2348},{},[2349,2351,2357,2358,2363],{"type":26,"value":2350},"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":29,"props":2352,"children":2354},{"href":2353},"\u002Fblog\u002Fpost-quantum-migration-deadlines",[2355],{"type":26,"value":2356},"accelerated post-quantum migration deadlines",{"type":26,"value":1790},{"type":21,"tag":29,"props":2359,"children":2360},{"href":1284},[2361],{"type":26,"value":2362},"quantum benchmarking executive order",{"type":26,"value":2364},". 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":59,"props":2366,"children":2368},{"id":2367},"what-to-watch-next",[2369],{"type":26,"value":2370},"What to watch next",{"type":21,"tag":22,"props":2372,"children":2373},{},[2374,2376,2381,2383,2388],{"type":26,"value":2375},"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":29,"props":2377,"children":2378},{"href":753},[2379],{"type":26,"value":2380},"logical qubits and fault tolerance",{"type":26,"value":2382}," and in our look at ",{"type":21,"tag":29,"props":2384,"children":2385},{"href":1150},[2386],{"type":26,"value":2387},"Quantinuum's Helios encoding ratio",{"type":26,"value":2389},". 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":335,"depth":335,"links":2391},[2392,2393,2394,2395,2396,2397],{"id":2270,"depth":335,"text":2273},{"id":2281,"depth":335,"text":2284},{"id":2302,"depth":335,"text":2305},{"id":2331,"depth":335,"text":2334},{"id":2342,"depth":335,"text":2345},{"id":2367,"depth":335,"text":2370},"content:blog:ionq-skywater-acquisition-explained.md","blog\u002Fionq-skywater-acquisition-explained.md","blog\u002Fionq-skywater-acquisition-explained",{"_path":2402,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":2403,"description":2404,"date":10,"author":11,"tags":2405,"readingTime":474,"body":2406,"_type":715,"_id":2515,"_source":717,"_file":2516,"_stem":2517,"_extension":720},"\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.",[1042,730],{"type":18,"children":2407,"toc":2509},[2408,2429,2434,2440,2445,2450,2456,2461,2473,2479,2484,2489,2493],{"type":21,"tag":22,"props":2409,"children":2410},{},[2411,2413,2419,2420,2427],{"type":26,"value":2412},"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":29,"props":2414,"children":2417},{"href":2415,"rel":2416},"https:\u002F\u002Fthequantuminsider.com\u002F2026\u002F07\u002F22\u002Fpsiquantum-signs-125-million-agreement-with-darpa\u002F",[44],[2418],{"type":26,"value":1509},{"type":26,"value":236},{"type":21,"tag":29,"props":2421,"children":2424},{"href":2422,"rel":2423},"https:\u002F\u002Fwww.psiquantum.com\u002Fnews-import\u002Fpsiquantum-signs-125-million-agreement-with-darpa",[44],[2425],{"type":26,"value":2426},"PsiQuantum's own announcement",{"type":26,"value":2428},". 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":2430,"children":2431},{},[2432],{"type":26,"value":2433},"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":59,"props":2435,"children":2437},{"id":2436},"what-qbi-tests",[2438],{"type":26,"value":2439},"What QBI tests",{"type":21,"tag":22,"props":2441,"children":2442},{},[2443],{"type":26,"value":2444},"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":2446,"children":2447},{},[2448],{"type":26,"value":2449},"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":59,"props":2451,"children":2453},{"id":2452},"what-the-money-funds",[2454],{"type":26,"value":2455},"What the money funds",{"type":21,"tag":22,"props":2457,"children":2458},{},[2459],{"type":26,"value":2460},"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":2462,"children":2463},{},[2464,2466,2471],{"type":26,"value":2465},"That structure is the point. ",{"type":21,"tag":29,"props":2467,"children":2468},{"href":2191},[2469],{"type":26,"value":2470},"PsiQuantum's photonic, fault-tolerance-first approach",{"type":26,"value":2472}," 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":59,"props":2474,"children":2476},{"id":2475},"why-this-is-a-different-kind-of-evidence-than-a-press-release",[2477],{"type":26,"value":2478},"Why this is a different kind of evidence than a press release",{"type":21,"tag":22,"props":2480,"children":2481},{},[2482],{"type":26,"value":2483},"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":2485,"children":2486},{},[2487],{"type":26,"value":2488},"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":59,"props":2490,"children":2491},{"id":2367},[2492],{"type":26,"value":2370},{"type":21,"tag":22,"props":2494,"children":2495},{},[2496,2498,2502,2503,2507],{"type":26,"value":2497},"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":29,"props":2499,"children":2500},{"href":809},[2501],{"type":26,"value":1716},{"type":26,"value":236},{"type":21,"tag":29,"props":2504,"children":2505},{"href":867},[2506],{"type":26,"value":1462},{"type":26,"value":2508}," 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":335,"depth":335,"links":2510},[2511,2512,2513,2514],{"id":2436,"depth":335,"text":2439},{"id":2452,"depth":335,"text":2455},{"id":2475,"depth":335,"text":2478},{"id":2367,"depth":335,"text":2370},"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":2519,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":2520,"description":2521,"date":10,"author":11,"tags":2522,"readingTime":453,"body":2523,"_type":715,"_id":2617,"_source":717,"_file":2618,"_stem":2619,"_extension":720},"\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.",[1042,730],{"type":18,"children":2524,"toc":2612},[2525,2546,2552,2557,2562,2568,2580,2585,2591,2596],{"type":21,"tag":22,"props":2526,"children":2527},{},[2528,2530,2537,2538,2544],{"type":26,"value":2529},"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":29,"props":2531,"children":2534},{"href":2532,"rel":2533},"https:\u002F\u002Fwww.quantinuum.com\u002Fpress-releases\u002Fquantinuum-and-bmw-group-expand-landmark-quantum-computing-collaboration-with-new-multi-year-partnership",[44],[2535],{"type":26,"value":2536},"Quantinuum's press release",{"type":26,"value":236},{"type":21,"tag":29,"props":2539,"children":2542},{"href":2540,"rel":2541},"https:\u002F\u002Fthequantuminsider.com\u002F2026\u002F05\u002F05\u002Fquantinuum-and-bmw-group-expand-quantum-computing-collaboration-with-new-multi-year-partnership\u002F",[44],[2543],{"type":26,"value":1509},{"type":26,"value":2545},". 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":59,"props":2547,"children":2549},{"id":2548},"five-years-is-the-actual-story-here",[2550],{"type":26,"value":2551},"Five years is the actual story here",{"type":21,"tag":22,"props":2553,"children":2554},{},[2555],{"type":26,"value":2556},"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":2558,"children":2559},{},[2560],{"type":26,"value":2561},"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":59,"props":2563,"children":2565},{"id":2564},"what-bmw-gets",[2566],{"type":26,"value":2567},"What BMW gets",{"type":21,"tag":22,"props":2569,"children":2570},{},[2571,2573,2578],{"type":26,"value":2572},"The expanded partnership gives BMW access to successive generations of Quantinuum's ",{"type":21,"tag":29,"props":2574,"children":2575},{"href":1150},[2576],{"type":26,"value":2577},"trapped-ion",{"type":26,"value":2579}," 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":2581,"children":2582},{},[2583],{"type":26,"value":2584},"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":59,"props":2586,"children":2588},{"id":2587},"why-this-is-a-useful-comparison-point",[2589],{"type":26,"value":2590},"Why this is a useful comparison point",{"type":21,"tag":22,"props":2592,"children":2593},{},[2594],{"type":26,"value":2595},"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":2597,"children":2598},{},[2599,2601,2605,2606,2610],{"type":26,"value":2600},"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":29,"props":2602,"children":2603},{"href":809},[2604],{"type":26,"value":1716},{"type":26,"value":236},{"type":21,"tag":29,"props":2607,"children":2608},{"href":867},[2609],{"type":26,"value":1462},{"type":26,"value":2611}," 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":335,"depth":335,"links":2613},[2614,2615,2616],{"id":2548,"depth":335,"text":2551},{"id":2564,"depth":335,"text":2567},{"id":2587,"depth":335,"text":2590},"content:blog:quantinuum-bmw-multi-year-partnership.md","blog\u002Fquantinuum-bmw-multi-year-partnership.md","blog\u002Fquantinuum-bmw-multi-year-partnership",{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"author":11,"tags":2621,"readingTime":16,"body":2622,"_type":715,"_id":716,"_source":717,"_file":718,"_stem":719,"_extension":720},[13,14,15],{"type":18,"children":2623,"toc":3149},[2624,2633,2647,2651,2678,2682,2686,2694,2713,2739,2743,2747,2751,2764,2786,2790,2809,2835,3004,3082,3096,3104,3108,3117,3145],{"type":21,"tag":22,"props":2625,"children":2626},{},[2627,2628,2632],{"type":26,"value":27},{"type":21,"tag":29,"props":2629,"children":2630},{"href":31},[2631],{"type":26,"value":34},{"type":26,"value":36},{"type":21,"tag":22,"props":2634,"children":2635},{},[2636,2641,2642,2646],{"type":21,"tag":29,"props":2637,"children":2639},{"href":42,"rel":2638},[44],[2640],{"type":26,"value":47},{"type":26,"value":49},{"type":21,"tag":51,"props":2643,"children":2644},{},[2645],{"type":26,"value":55},{"type":26,"value":57},{"type":21,"tag":59,"props":2648,"children":2649},{"id":61},[2650],{"type":26,"value":64},{"type":21,"tag":22,"props":2652,"children":2653},{},[2654,2655,2659,2660,2665,2666,2671,2672,2677],{"type":26,"value":69},{"type":21,"tag":71,"props":2656,"children":2657},{},[2658],{"type":26,"value":75},{"type":26,"value":77},{"type":21,"tag":79,"props":2661,"children":2663},{"className":2662},[],[2664],{"type":26,"value":84},{"type":26,"value":86},{"type":21,"tag":79,"props":2667,"children":2669},{"className":2668},[],[2670],{"type":26,"value":92},{"type":26,"value":94},{"type":21,"tag":79,"props":2673,"children":2675},{"className":2674},[],[2676],{"type":26,"value":100},{"type":26,"value":102},{"type":21,"tag":59,"props":2679,"children":2680},{"id":105},[2681],{"type":26,"value":108},{"type":21,"tag":22,"props":2683,"children":2684},{},[2685],{"type":26,"value":113},{"type":21,"tag":22,"props":2687,"children":2688},{},[2689,2693],{"type":21,"tag":71,"props":2690,"children":2691},{},[2692],{"type":26,"value":121},{"type":26,"value":123},{"type":21,"tag":22,"props":2695,"children":2696},{},[2697,2701,2702,2707,2708,2712],{"type":21,"tag":71,"props":2698,"children":2699},{},[2700],{"type":26,"value":131},{"type":26,"value":133},{"type":21,"tag":79,"props":2703,"children":2705},{"className":2704},[],[2706],{"type":26,"value":139},{"type":26,"value":141},{"type":21,"tag":29,"props":2709,"children":2710},{"href":144},[2711],{"type":26,"value":14},{"type":26,"value":148},{"type":21,"tag":22,"props":2714,"children":2715},{},[2716,2720,2721,2726,2727,2732,2733,2738],{"type":21,"tag":71,"props":2717,"children":2718},{},[2719],{"type":26,"value":156},{"type":26,"value":158},{"type":21,"tag":79,"props":2722,"children":2724},{"className":2723},[],[2725],{"type":26,"value":164},{"type":26,"value":166},{"type":21,"tag":79,"props":2728,"children":2730},{"className":2729},[],[2731],{"type":26,"value":172},{"type":26,"value":174},{"type":21,"tag":79,"props":2734,"children":2736},{"className":2735},[],[2737],{"type":26,"value":180},{"type":26,"value":182},{"type":21,"tag":22,"props":2740,"children":2741},{},[2742],{"type":26,"value":187},{"type":21,"tag":59,"props":2744,"children":2745},{"id":190},[2746],{"type":26,"value":193},{"type":21,"tag":22,"props":2748,"children":2749},{},[2750],{"type":26,"value":198},{"type":21,"tag":200,"props":2752,"children":2753},{},[2754],{"type":21,"tag":22,"props":2755,"children":2756},{},[2757,2758,2763],{"type":26,"value":207},{"type":21,"tag":79,"props":2759,"children":2761},{"className":2760},[],[2762],{"type":26,"value":213},{"type":26,"value":215},{"type":21,"tag":22,"props":2765,"children":2766},{},[2767,2768,2773,2774,2779,2780,2785],{"type":26,"value":220},{"type":21,"tag":79,"props":2769,"children":2771},{"className":2770},[],[2772],{"type":26,"value":226},{"type":26,"value":228},{"type":21,"tag":79,"props":2775,"children":2777},{"className":2776},[],[2778],{"type":26,"value":234},{"type":26,"value":236},{"type":21,"tag":79,"props":2781,"children":2783},{"className":2782},[],[2784],{"type":26,"value":242},{"type":26,"value":244},{"type":21,"tag":59,"props":2787,"children":2788},{"id":247},[2789],{"type":26,"value":250},{"type":21,"tag":22,"props":2791,"children":2792},{},[2793,2797,2798,2802,2803,2808],{"type":21,"tag":71,"props":2794,"children":2795},{},[2796],{"type":26,"value":258},{"type":26,"value":260},{"type":21,"tag":29,"props":2799,"children":2800},{"href":263},[2801],{"type":26,"value":266},{"type":26,"value":268},{"type":21,"tag":79,"props":2804,"children":2806},{"className":2805},[],[2807],{"type":26,"value":274},{"type":26,"value":276},{"type":21,"tag":22,"props":2810,"children":2811},{},[2812,2816,2817,2822,2823,2828,2829,2834],{"type":21,"tag":71,"props":2813,"children":2814},{},[2815],{"type":26,"value":284},{"type":26,"value":286},{"type":21,"tag":79,"props":2818,"children":2820},{"className":2819},[],[2821],{"type":26,"value":292},{"type":26,"value":294},{"type":21,"tag":79,"props":2824,"children":2826},{"className":2825},[],[2827],{"type":26,"value":300},{"type":26,"value":302},{"type":21,"tag":79,"props":2830,"children":2832},{"className":2831},[],[2833],{"type":26,"value":308},{"type":26,"value":310},{"type":21,"tag":312,"props":2836,"children":2837},{"className":314,"code":315,"language":316,"meta":7,"style":7},[2838],{"type":21,"tag":79,"props":2839,"children":2840},{"__ignoreMap":7},[2841,2848,2855,2906,2925,2944,2963,2982,2997],{"type":21,"tag":322,"props":2842,"children":2843},{"class":324,"line":325},[2844],{"type":21,"tag":322,"props":2845,"children":2846},{"style":329},[2847],{"type":26,"value":332},{"type":21,"tag":322,"props":2849,"children":2850},{"class":324,"line":335},[2851],{"type":21,"tag":322,"props":2852,"children":2853},{"style":329},[2854],{"type":26,"value":341},{"type":21,"tag":322,"props":2856,"children":2857},{"class":324,"line":344},[2858,2862,2866,2870,2874,2878,2882,2886,2890,2894,2898,2902],{"type":21,"tag":322,"props":2859,"children":2860},{"style":348},[2861],{"type":26,"value":351},{"type":21,"tag":322,"props":2863,"children":2864},{"style":329},[2865],{"type":26,"value":356},{"type":21,"tag":322,"props":2867,"children":2868},{"style":359},[2869],{"type":26,"value":362},{"type":21,"tag":322,"props":2871,"children":2872},{"style":329},[2873],{"type":26,"value":367},{"type":21,"tag":322,"props":2875,"children":2876},{"style":359},[2877],{"type":26,"value":372},{"type":21,"tag":322,"props":2879,"children":2880},{"style":329},[2881],{"type":26,"value":367},{"type":21,"tag":322,"props":2883,"children":2884},{"style":359},[2885],{"type":26,"value":381},{"type":21,"tag":322,"props":2887,"children":2888},{"style":329},[2889],{"type":26,"value":367},{"type":21,"tag":322,"props":2891,"children":2892},{"style":359},[2893],{"type":26,"value":390},{"type":21,"tag":322,"props":2895,"children":2896},{"style":329},[2897],{"type":26,"value":367},{"type":21,"tag":322,"props":2899,"children":2900},{"style":359},[2901],{"type":26,"value":399},{"type":21,"tag":322,"props":2903,"children":2904},{"style":329},[2905],{"type":26,"value":404},{"type":21,"tag":322,"props":2907,"children":2908},{"class":324,"line":407},[2909,2913,2917,2921],{"type":21,"tag":322,"props":2910,"children":2911},{"style":348},[2912],{"type":26,"value":413},{"type":21,"tag":322,"props":2914,"children":2915},{"style":329},[2916],{"type":26,"value":418},{"type":21,"tag":322,"props":2918,"children":2919},{"style":348},[2920],{"type":26,"value":423},{"type":21,"tag":322,"props":2922,"children":2923},{"style":329},[2924],{"type":26,"value":428},{"type":21,"tag":322,"props":2926,"children":2927},{"class":324,"line":431},[2928,2932,2936,2940],{"type":21,"tag":322,"props":2929,"children":2930},{"style":348},[2931],{"type":26,"value":437},{"type":21,"tag":322,"props":2933,"children":2934},{"style":329},[2935],{"type":26,"value":418},{"type":21,"tag":322,"props":2937,"children":2938},{"style":348},[2939],{"type":26,"value":446},{"type":21,"tag":322,"props":2941,"children":2942},{"style":329},[2943],{"type":26,"value":428},{"type":21,"tag":322,"props":2945,"children":2946},{"class":324,"line":453},[2947,2951,2955,2959],{"type":21,"tag":322,"props":2948,"children":2949},{"style":348},[2950],{"type":26,"value":459},{"type":21,"tag":322,"props":2952,"children":2953},{"style":329},[2954],{"type":26,"value":418},{"type":21,"tag":322,"props":2956,"children":2957},{"style":348},[2958],{"type":26,"value":423},{"type":21,"tag":322,"props":2960,"children":2961},{"style":329},[2962],{"type":26,"value":428},{"type":21,"tag":322,"props":2964,"children":2965},{"class":324,"line":474},[2966,2970,2974,2978],{"type":21,"tag":322,"props":2967,"children":2968},{"style":348},[2969],{"type":26,"value":480},{"type":21,"tag":322,"props":2971,"children":2972},{"style":329},[2973],{"type":26,"value":418},{"type":21,"tag":322,"props":2975,"children":2976},{"style":348},[2977],{"type":26,"value":489},{"type":21,"tag":322,"props":2979,"children":2980},{"style":329},[2981],{"type":26,"value":428},{"type":21,"tag":322,"props":2983,"children":2984},{"class":324,"line":496},[2985,2989,2993],{"type":21,"tag":322,"props":2986,"children":2987},{"style":348},[2988],{"type":26,"value":502},{"type":21,"tag":322,"props":2990,"children":2991},{"style":329},[2992],{"type":26,"value":418},{"type":21,"tag":322,"props":2994,"children":2995},{"style":359},[2996],{"type":26,"value":511},{"type":21,"tag":322,"props":2998,"children":2999},{"class":324,"line":16},[3000],{"type":21,"tag":322,"props":3001,"children":3002},{"style":329},[3003],{"type":26,"value":519},{"type":21,"tag":22,"props":3005,"children":3006},{},[3007,3017,3018,3023,3024,3029,3030,3034,3035,3040,3041,3046,3047,3052,3053,3058,3059,3063,3064,3069,3070,3075,3076,3081],{"type":21,"tag":71,"props":3008,"children":3009},{},[3010,3011,3016],{"type":26,"value":527},{"type":21,"tag":79,"props":3012,"children":3014},{"className":3013},[],[3015],{"type":26,"value":213},{"type":26,"value":534},{"type":26,"value":536},{"type":21,"tag":79,"props":3019,"children":3021},{"className":3020},[],[3022],{"type":26,"value":542},{"type":26,"value":544},{"type":21,"tag":79,"props":3025,"children":3027},{"className":3026},[],[3028],{"type":26,"value":550},{"type":26,"value":552},{"type":21,"tag":29,"props":3031,"children":3032},{"href":555},[3033],{"type":26,"value":558},{"type":26,"value":560},{"type":21,"tag":79,"props":3036,"children":3038},{"className":3037},[],[3039],{"type":26,"value":213},{"type":26,"value":567},{"type":21,"tag":79,"props":3042,"children":3044},{"className":3043},[],[3045],{"type":26,"value":573},{"type":26,"value":236},{"type":21,"tag":79,"props":3048,"children":3050},{"className":3049},[],[3051],{"type":26,"value":242},{"type":26,"value":581},{"type":21,"tag":79,"props":3054,"children":3056},{"className":3055},[],[3057],{"type":26,"value":213},{"type":26,"value":588},{"type":21,"tag":51,"props":3060,"children":3061},{},[3062],{"type":26,"value":593},{"type":26,"value":595},{"type":21,"tag":79,"props":3065,"children":3067},{"className":3066},[],[3068],{"type":26,"value":601},{"type":26,"value":603},{"type":21,"tag":79,"props":3071,"children":3073},{"className":3072},[],[3074],{"type":26,"value":609},{"type":26,"value":611},{"type":21,"tag":79,"props":3077,"children":3079},{"className":3078},[],[3080],{"type":26,"value":617},{"type":26,"value":619},{"type":21,"tag":22,"props":3083,"children":3084},{},[3085,3089,3090,3095],{"type":21,"tag":71,"props":3086,"children":3087},{},[3088],{"type":26,"value":627},{"type":26,"value":629},{"type":21,"tag":79,"props":3091,"children":3093},{"className":3092},[],[3094],{"type":26,"value":308},{"type":26,"value":636},{"type":21,"tag":22,"props":3097,"children":3098},{},[3099,3103],{"type":21,"tag":71,"props":3100,"children":3101},{},[3102],{"type":26,"value":644},{"type":26,"value":646},{"type":21,"tag":59,"props":3105,"children":3106},{"id":649},[3107],{"type":26,"value":652},{"type":21,"tag":22,"props":3109,"children":3110},{},[3111,3112,3116],{"type":26,"value":657},{"type":21,"tag":29,"props":3113,"children":3114},{"href":31},[3115],{"type":26,"value":662},{"type":26,"value":664},{"type":21,"tag":22,"props":3118,"children":3119},{},[3120,3121,3126,3127,3132,3133,3138,3139,3144],{"type":26,"value":669},{"type":21,"tag":29,"props":3122,"children":3124},{"href":42,"rel":3123},[44],[3125],{"type":26,"value":675},{"type":26,"value":677},{"type":21,"tag":79,"props":3128,"children":3130},{"className":3129},[],[3131],{"type":26,"value":683},{"type":26,"value":685},{"type":21,"tag":79,"props":3134,"children":3136},{"className":3135},[],[3137],{"type":26,"value":691},{"type":26,"value":693},{"type":21,"tag":79,"props":3140,"children":3142},{"className":3141},[],[3143],{"type":26,"value":699},{"type":26,"value":701},{"type":21,"tag":703,"props":3146,"children":3147},{},[3148],{"type":26,"value":707},{"title":7,"searchDepth":335,"depth":335,"links":3150},[3151,3152,3153,3154,3155],{"id":61,"depth":335,"text":64},{"id":105,"depth":335,"text":108},{"id":190,"depth":335,"text":193},{"id":247,"depth":335,"text":250},{"id":649,"depth":335,"text":652},{"_path":3157,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":3158,"description":3159,"date":10,"author":11,"tags":3160,"readingTime":474,"body":3161,"_type":715,"_id":3305,"_source":717,"_file":3306,"_stem":3307,"_extension":720},"\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.",[730,1042],{"type":18,"children":3162,"toc":3299},[3163,3184,3189,3195,3209,3214,3220,3232,3237,3243,3255,3260,3266,3278,3294],{"type":21,"tag":22,"props":3164,"children":3165},{},[3166,3168,3174,3175,3182],{"type":26,"value":3167},"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":29,"props":3169,"children":3172},{"href":3170,"rel":3171},"https:\u002F\u002Fthequantuminsider.com\u002F2026\u002F07\u002F21\u002Fsaxon-q-diamond-nv-center-quantum-computers\u002F",[44],[3173],{"type":26,"value":1509},{"type":26,"value":236},{"type":21,"tag":29,"props":3176,"children":3179},{"href":3177,"rel":3178},"https:\u002F\u002Fwww.hpcwire.com\u002Foff-the-wire\u002Fsaxon-q-brings-room-temperature-diamond-quantum-computing-to-commercial-market\u002F",[44],[3180],{"type":26,"value":3181},"HPCwire",{"type":26,"value":3183},". 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":3185,"children":3186},{},[3187],{"type":26,"value":3188},"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":59,"props":3190,"children":3192},{"id":3191},"what-saxon-q-built",[3193],{"type":26,"value":3194},"What SAXON Q built",{"type":21,"tag":22,"props":3196,"children":3197},{},[3198,3200,3207],{"type":26,"value":3199},"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":29,"props":3201,"children":3204},{"href":3202,"rel":3203},"https:\u002F\u002Fwww.saxonq.com\u002Fen\u002Funternehmen\u002F",[44],[3205],{"type":26,"value":3206},"the company's own site",{"type":26,"value":3208},", alongside co-founders Jan Meijer (CTO) and Bernd Burchard (CIPO).",{"type":21,"tag":22,"props":3210,"children":3211},{},[3212],{"type":26,"value":3213},"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":59,"props":3215,"children":3217},{"id":3216},"what-an-nv-center-is",[3218],{"type":26,"value":3219},"What an NV center is",{"type":21,"tag":22,"props":3221,"children":3222},{},[3223,3225,3230],{"type":26,"value":3224},"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":29,"props":3226,"children":3227},{"href":1804},[3228],{"type":26,"value":3229},"qubit",{"type":26,"value":3231}," 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":3233,"children":3234},{},[3235],{"type":26,"value":3236},"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":59,"props":3238,"children":3240},{"id":3239},"what-to-treat-as-unverified",[3241],{"type":26,"value":3242},"What to treat as unverified",{"type":21,"tag":22,"props":3244,"children":3245},{},[3246,3248,3253],{"type":26,"value":3247},"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":29,"props":3249,"children":3250},{"href":1627},[3251],{"type":26,"value":3252},"self-operating silicon processor",{"type":26,"value":3254}," 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":3256,"children":3257},{},[3258],{"type":26,"value":3259},"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":59,"props":3261,"children":3263},{"id":3262},"where-room-temperature-qubits-fit-against-everything-else",[3264],{"type":26,"value":3265},"Where room-temperature qubits fit against everything else",{"type":21,"tag":22,"props":3267,"children":3268},{},[3269,3271,3276],{"type":26,"value":3270},"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":29,"props":3272,"children":3273},{"href":1284},[3274],{"type":26,"value":3275},"independently scrutinized results",{"type":26,"value":3277}," that NV-center systems do not yet have.",{"type":21,"tag":22,"props":3279,"children":3280},{},[3281,3283,3287,3288,3292],{"type":26,"value":3282},"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":29,"props":3284,"children":3285},{"href":809},[3286],{"type":26,"value":1716},{"type":26,"value":236},{"type":21,"tag":29,"props":3289,"children":3290},{"href":867},[3291],{"type":26,"value":1462},{"type":26,"value":3293}," track how each modality trades those priorities differently.",{"type":21,"tag":22,"props":3295,"children":3296},{},[3297],{"type":26,"value":3298},"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":335,"depth":335,"links":3300},[3301,3302,3303,3304],{"id":3191,"depth":335,"text":3194},{"id":3216,"depth":335,"text":3219},{"id":3239,"depth":335,"text":3242},{"id":3262,"depth":335,"text":3265},"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":1701,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":3309,"description":3310,"date":10,"author":11,"tags":3311,"readingTime":453,"body":3313,"_type":715,"_id":3395,"_source":717,"_file":3396,"_stem":3397,"_extension":720},"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.",[730,1042,3312],"Fundamentals",{"type":18,"children":3314,"toc":3390},[3315,3320,3326,3331,3350,3356,3368,3373,3379],{"type":21,"tag":22,"props":3316,"children":3317},{},[3318],{"type":26,"value":3319},"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":59,"props":3321,"children":3323},{"id":3322},"what-a-phononic-link-is",[3324],{"type":26,"value":3325},"What a phononic link is",{"type":21,"tag":22,"props":3327,"children":3328},{},[3329],{"type":26,"value":3330},"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":3332,"children":3333},{},[3334,3336,3341,3343,3348],{"type":26,"value":3335},"That distance matters. Nearest-neighbor-only connectivity is exactly the constraint that shapes which ",{"type":21,"tag":29,"props":3337,"children":3338},{"href":1536},[3339],{"type":26,"value":3340},"error-correcting codes",{"type":26,"value":3342}," a chip even attempts. Our ",{"type":21,"tag":29,"props":3344,"children":3345},{"href":1150},[3346],{"type":26,"value":3347},"companion piece on Quantinuum's Helios",{"type":26,"value":3349}," 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":59,"props":3351,"children":3353},{"id":3352},"read-the-maturity-level-accurately",[3354],{"type":26,"value":3355},"Read the maturity level accurately",{"type":21,"tag":22,"props":3357,"children":3358},{},[3359,3361,3366],{"type":26,"value":3360},"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":29,"props":3362,"children":3363},{"href":1627},[3364],{"type":26,"value":3365},"HRL's self-operating silicon processor",{"type":26,"value":3367},", 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":3369,"children":3370},{},[3371],{"type":26,"value":3372},"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":59,"props":3374,"children":3376},{"id":3375},"why-the-target-size-is-the-real-headline",[3377],{"type":26,"value":3378},"Why the target size is the real headline",{"type":21,"tag":22,"props":3380,"children":3381},{},[3382,3384,3388],{"type":26,"value":3383},"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":29,"props":3385,"children":3386},{"href":809},[3387],{"type":26,"value":1716},{"type":26,"value":3389}," for how silicon-based approaches compare to the rest of the field.",{"title":7,"searchDepth":335,"depth":335,"links":3391},[3392,3393,3394],{"id":3322,"depth":335,"text":3325},{"id":3352,"depth":335,"text":3355},{"id":3375,"depth":335,"text":3378},"content:blog:warwick-quantum-phononic-links.md","blog\u002Fwarwick-quantum-phononic-links.md","blog\u002Fwarwick-quantum-phononic-links",{"_path":3399,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":3400,"description":3401,"date":10,"author":11,"tags":3402,"readingTime":474,"body":3403,"_type":715,"_id":3503,"_source":717,"_file":3504,"_stem":3505,"_extension":720},"\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.",[730,1042,731],{"type":18,"children":3404,"toc":3498},[3405,3425,3436,3442,3454,3459,3465,3470,3475,3481,3486],{"type":21,"tag":22,"props":3406,"children":3407},{},[3408,3410,3416,3417,3423],{"type":26,"value":3409},"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":29,"props":3411,"children":3414},{"href":3412,"rel":3413},"https:\u002F\u002Fthequantuminsider.com\u002F2026\u002F07\u002F28\u002Fzuriq-raises-25-5-million-2d-trapped-ion-quantum-processors\u002F",[44],[3415],{"type":26,"value":1509},{"type":26,"value":236},{"type":21,"tag":29,"props":3418,"children":3421},{"href":3419,"rel":3420},"https:\u002F\u002Fsiliconangle.com\u002F2026\u002F07\u002F28\u002Fquantum-computing-startup-zuriq-gets-25-5m-scale-2d-trapped-ion-processor-design\u002F",[44],[3422],{"type":26,"value":1932},{"type":26,"value":3424},". 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":3426,"children":3427},{},[3428,3430,3434],{"type":26,"value":3429},"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":29,"props":3431,"children":3432},{"href":809},[3433],{"type":26,"value":2577},{"type":26,"value":3435}," quantum computer, a linear chain of ions connected through junctions, runs into a scaling wall that a two-dimensional layout avoids.",{"type":21,"tag":59,"props":3437,"children":3439},{"id":3438},"why-linear-chains-are-the-default-and-why-they-cap-out",[3440],{"type":26,"value":3441},"Why linear chains are the default and why they cap out",{"type":21,"tag":22,"props":3443,"children":3444},{},[3445,3447,3452],{"type":26,"value":3446},"IonQ and Quantinuum, ",{"type":21,"tag":29,"props":3448,"children":3449},{"href":2191},[3450],{"type":26,"value":3451},"the two companies furthest along commercially",{"type":26,"value":3453}," 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":3455,"children":3456},{},[3457],{"type":26,"value":3458},"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":59,"props":3460,"children":3462},{"id":3461},"what-has-been-built-so-far",[3463],{"type":26,"value":3464},"What has been built so far",{"type":21,"tag":22,"props":3466,"children":3467},{},[3468],{"type":26,"value":3469},"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":3471,"children":3472},{},[3473],{"type":26,"value":3474},"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":59,"props":3476,"children":3478},{"id":3477},"what-this-does-and-does-not-tell-you",[3479],{"type":26,"value":3480},"What this does and does not tell you",{"type":21,"tag":22,"props":3482,"children":3483},{},[3484],{"type":26,"value":3485},"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":3487,"children":3488},{},[3489,3491,3496],{"type":26,"value":3490},"If ZuriQ's 2D architecture scales the way it projects, it would address one of the structural bottlenecks in ",{"type":21,"tag":29,"props":3492,"children":3493},{"href":1467},[3494],{"type":26,"value":3495},"trapped-ion scaling",{"type":26,"value":3497}," 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":335,"depth":335,"links":3499},[3500,3501,3502],{"id":3438,"depth":335,"text":3441},{"id":3461,"depth":335,"text":3464},{"id":3477,"depth":335,"text":3480},"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":3507,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":3508,"description":3509,"date":3510,"author":11,"tags":3511,"readingTime":496,"body":3513,"_type":715,"_id":4432,"_source":717,"_file":4433,"_stem":4434,"_extension":720},"\u002Fhi\u002Fblog\u002Fquantum-benchmarking-eo-14413","नया क्वांटम एग्जीक्यूटिव ऑर्डर इस क्षेत्र की असली समस्याओं के बारे में क्या बताता है","EO 14413 को राजनीतिक दस्तावेज़ के बजाय एक तकनीकी दस्तावेज़ के रूप में पढ़ें और यह उन चीज़ों की स्पष्ट सूची बन जाती है जिन्हें क्वांटम कंप्यूटिंग ने अब तक हल नहीं किया है — शुरुआत इस तथ्य से कि कोई भी भरोसेमंद ढंग से यह नहीं माप सकता कि कोई क्वांटम कंप्यूटर कितना अच्छा है।","2026-07-18",[1042,730,3512],"Performance",{"type":18,"children":3514,"toc":4423},[3515,3527,3532,3537,3543,3548,3560,3565,3624,3629,3634,4138,4163,4169,4174,4179,4200,4212,4218,4230,4235,4261,4266,4272,4277,4282,4303,4309,4314,4319,4340,4346,4358,4363,4368,4373,4401,4406,4419],{"type":21,"tag":22,"props":3516,"children":3517},{},[3518,3520,3525],{"type":26,"value":3519},"22 जून, 2026 को Executive Order 14413 — ",{"type":21,"tag":51,"props":3521,"children":3522},{},[3523],{"type":26,"value":3524},"Ushering in the Next Frontier of Quantum Innovation",{"type":26,"value":3526}," — पर हस्ताक्षर किए गए। इसकी कवरेज लगभग पूरी तरह राजनीति पर केंद्रित रही।",{"type":21,"tag":22,"props":3528,"children":3529},{},[3530],{"type":26,"value":3531},"यह अफ़सोस की बात है, क्योंकि इसका अधिक दिलचस्प पाठ तकनीकी है। इस तरह के नीतिगत दस्तावेज़ उन लोगों के भारी योगदान से तैयार होते हैं जो क्वांटम कार्यक्रम चलाते हैं, और वे जो माँगते हैं वह इस बात का काफ़ी स्पष्ट नक्शा होता है कि यह क्षेत्र अब भी क्या नहीं कर सकता। इस नज़रिए से पढ़ें तो EO 14413 एक घोषणा से कम और समस्याओं की सूची अधिक है।",{"type":21,"tag":22,"props":3533,"children":3534},{},[3535],{"type":26,"value":3536},"यहाँ वह है जो सबसे अलग दिखता है।",{"type":21,"tag":59,"props":3538,"children":3540},{"id":3539},"कोई-भी-भरोसेमंद-ढंग-से-नहीं-माप-सकता-कि-क्वांटम-कंप्यूटर-कितना-अच्छा-है",[3541],{"type":26,"value":3542},"कोई भी भरोसेमंद ढंग से नहीं माप सकता कि क्वांटम कंप्यूटर कितना अच्छा है",{"type":21,"tag":22,"props":3544,"children":3545},{},[3546],{"type":26,"value":3547},"ऑर्डर की सबसे चुपचाप उल्लेखनीय पंक्ति Department of Energy को निर्देश देती है कि वह 180 दिनों के भीतर \"a national center to develop the tools and capabilities required to accurately assess the performance of quantum computing systems\" स्थापित करे।",{"type":21,"tag":22,"props":3549,"children":3550},{},[3551,3553,3558],{"type":26,"value":3552},"ज़रा इस पर ठहरिए। Feynman द्वारा क्वांटम कंप्यूटर का प्रस्ताव रखे जाने के लगभग पैंतालीस साल बाद और पहले quantum supremacy दावे के सात साल बाद, एक सरकार इसलिए एक संस्थान खड़ा कर रही है क्योंकि हमारे पास ",{"type":21,"tag":51,"props":3554,"children":3555},{},[3556],{"type":26,"value":3557},"\"क्या यह क्वांटम कंप्यूटर अच्छा है?\"",{"type":26,"value":3559}," का उत्तर देने का कोई भरोसेमंद तरीका नहीं है।",{"type":21,"tag":22,"props":3561,"children":3562},{},[3563],{"type":26,"value":3564},"यह नौकरशाही की औपचारिकता नहीं है। यह वास्तविक है, और जिस किसी ने भी दो QPU की तुलना करने की कोशिश की है, उसे इसका सामना करना पड़ा है। समस्या यह है कि हर वेंडर अलग-अलग आँकड़े बताता है:",{"type":21,"tag":3566,"props":3567,"children":3568},"ul",{},[3569,3580,3594,3604,3614],{"type":21,"tag":3570,"props":3571,"children":3572},"li",{},[3573,3578],{"type":21,"tag":71,"props":3574,"children":3575},{},[3576],{"type":26,"value":3577},"Qubit count",{"type":26,"value":3579}," अकेले लगभग अर्थहीन है। असली काम के लिए सौ खराब क्यूबिट बीस अच्छे क्यूबिट से बदतर हो सकते हैं।",{"type":21,"tag":3570,"props":3581,"children":3582},{},[3583,3592],{"type":21,"tag":71,"props":3584,"children":3585},{},[3586],{"type":21,"tag":29,"props":3587,"children":3589},{"href":3588},"\u002Fglossary\u002Fquantum-volume",[3590],{"type":26,"value":3591},"Quantum Volume",{"type":26,"value":3593}," क्यूबिट संख्या, कनेक्टिविटी और एरर रेट को एक ही आँकड़े में समेट देता है — लेकिन यह संतृप्त हो जाता है, और यह इस बारे में बहुत कम बताता है कि कोई डिवाइस उन विशिष्ट सर्किटों को कैसे संभालता है जिनकी आपको परवाह है।",{"type":21,"tag":3570,"props":3595,"children":3596},{},[3597,3602],{"type":21,"tag":71,"props":3598,"children":3599},{},[3600],{"type":26,"value":3601},"Gate fidelity",{"type":26,"value":3603}," आमतौर पर अलग-थलग एक- और दो-क्यूबिट गेट के लिए बताई जाती है, जो एक चिप को व्यवस्थित रूप से बढ़ा-चढ़ाकर दिखाती है। जब गेट समानांतर में चलते हैं तो एरर अलग ढंग से जुड़ते हैं, और crosstalk मुख्य आँकड़े में दिखाई नहीं देता।",{"type":21,"tag":3570,"props":3605,"children":3606},{},[3607,3612],{"type":21,"tag":71,"props":3608,"children":3609},{},[3610],{"type":26,"value":3611},"CLOPS",{"type":26,"value":3613}," और इसी तरह के थ्रूपुट मेट्रिक गति मापते हैं, सटीकता नहीं — एक तेज़ मशीन जो शोर लौटाती है, उपयोगी नहीं है।",{"type":21,"tag":3570,"props":3615,"children":3616},{},[3617,3622],{"type":21,"tag":71,"props":3618,"children":3619},{},[3620],{"type":26,"value":3621},"\"Algorithmic qubits\"",{"type":26,"value":3623}," और अन्य वेंडर-परिभाषित मेट्रिक वेंडरों के बीच तुलनीय नहीं होते, और अक्सर यही उनका मक़सद होता है।",{"type":21,"tag":22,"props":3625,"children":3626},{},[3627],{"type":26,"value":3628},"ऑर्डर एजेंसियों के बीच जानकारी साझा करने के लिए एक तंत्र की भी माँग करता है ताकि \"to improve the Government's ability to assess commercial quantum computing capabilities\" — जो यह कहने का एक शिष्ट तरीका है कि वेंडर के मार्केटिंग दावों को इस समय स्वतंत्र रूप से सत्यापित करना कठिन है।",{"type":21,"tag":22,"props":3630,"children":3631},{},[3632],{"type":26,"value":3633},"अगर आप स्वयं हार्डवेयर का मूल्यांकन कर रहे हैं, तो व्यावहारिक सीख यह है कि किसी एक आँकड़े पर भरोसा करना बंद करें और अपने ही वर्कलोड के विरुद्ध बेंचमार्क करें। किसी प्रेस रिलीज़ पर निर्भर रहने के बजाय आप असली डिवाइस प्रॉपर्टीज़ सीधे प्राप्त कर सकते हैं:",{"type":21,"tag":312,"props":3635,"children":3639},{"className":3636,"code":3637,"language":3638,"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",[3640],{"type":21,"tag":79,"props":3641,"children":3642},{"__ignoreMap":7},[3643,3667,3676,3694,3749,3756,3803,3844,3885,3892,3902,3920,3962,4010,4052],{"type":21,"tag":322,"props":3644,"children":3645},{"class":324,"line":325},[3646,3652,3657,3662],{"type":21,"tag":322,"props":3647,"children":3649},{"style":3648},"--shiki-default:#F97583",[3650],{"type":26,"value":3651},"from",{"type":21,"tag":322,"props":3653,"children":3654},{"style":329},[3655],{"type":26,"value":3656}," qiskit_ibm_runtime ",{"type":21,"tag":322,"props":3658,"children":3659},{"style":3648},[3660],{"type":26,"value":3661},"import",{"type":21,"tag":322,"props":3663,"children":3664},{"style":329},[3665],{"type":26,"value":3666}," QiskitRuntimeService\n",{"type":21,"tag":322,"props":3668,"children":3669},{"class":324,"line":335},[3670],{"type":21,"tag":322,"props":3671,"children":3673},{"emptyLinePlaceholder":3672},true,[3674],{"type":26,"value":3675},"\n",{"type":21,"tag":322,"props":3677,"children":3678},{"class":324,"line":344},[3679,3684,3689],{"type":21,"tag":322,"props":3680,"children":3681},{"style":329},[3682],{"type":26,"value":3683},"service ",{"type":21,"tag":322,"props":3685,"children":3686},{"style":3648},[3687],{"type":26,"value":3688},"=",{"type":21,"tag":322,"props":3690,"children":3691},{"style":329},[3692],{"type":26,"value":3693}," QiskitRuntimeService()\n",{"type":21,"tag":322,"props":3695,"children":3696},{"class":324,"line":407},[3697,3702,3706,3711,3717,3721,3726,3730,3735,3739,3744],{"type":21,"tag":322,"props":3698,"children":3699},{"style":329},[3700],{"type":26,"value":3701},"backend ",{"type":21,"tag":322,"props":3703,"children":3704},{"style":3648},[3705],{"type":26,"value":3688},{"type":21,"tag":322,"props":3707,"children":3708},{"style":329},[3709],{"type":26,"value":3710}," service.least_busy(",{"type":21,"tag":322,"props":3712,"children":3714},{"style":3713},"--shiki-default:#FFAB70",[3715],{"type":26,"value":3716},"operational",{"type":21,"tag":322,"props":3718,"children":3719},{"style":3648},[3720],{"type":26,"value":3688},{"type":21,"tag":322,"props":3722,"children":3723},{"style":348},[3724],{"type":26,"value":3725},"True",{"type":21,"tag":322,"props":3727,"children":3728},{"style":329},[3729],{"type":26,"value":367},{"type":21,"tag":322,"props":3731,"children":3732},{"style":3713},[3733],{"type":26,"value":3734},"simulator",{"type":21,"tag":322,"props":3736,"children":3737},{"style":3648},[3738],{"type":26,"value":3688},{"type":21,"tag":322,"props":3740,"children":3741},{"style":348},[3742],{"type":26,"value":3743},"False",{"type":21,"tag":322,"props":3745,"children":3746},{"style":329},[3747],{"type":26,"value":3748},")\n",{"type":21,"tag":322,"props":3750,"children":3751},{"class":324,"line":431},[3752],{"type":21,"tag":322,"props":3753,"children":3754},{"emptyLinePlaceholder":3672},[3755],{"type":26,"value":3675},{"type":21,"tag":322,"props":3757,"children":3758},{"class":324,"line":453},[3759,3764,3769,3774,3779,3784,3789,3794,3799],{"type":21,"tag":322,"props":3760,"children":3761},{"style":348},[3762],{"type":26,"value":3763},"print",{"type":21,"tag":322,"props":3765,"children":3766},{"style":329},[3767],{"type":26,"value":3768},"(",{"type":21,"tag":322,"props":3770,"children":3771},{"style":3648},[3772],{"type":26,"value":3773},"f",{"type":21,"tag":322,"props":3775,"children":3776},{"style":359},[3777],{"type":26,"value":3778},"\"Backend:  ",{"type":21,"tag":322,"props":3780,"children":3781},{"style":348},[3782],{"type":26,"value":3783},"{",{"type":21,"tag":322,"props":3785,"children":3786},{"style":329},[3787],{"type":26,"value":3788},"backend.name",{"type":21,"tag":322,"props":3790,"children":3791},{"style":348},[3792],{"type":26,"value":3793},"}",{"type":21,"tag":322,"props":3795,"children":3796},{"style":359},[3797],{"type":26,"value":3798},"\"",{"type":21,"tag":322,"props":3800,"children":3801},{"style":329},[3802],{"type":26,"value":3748},{"type":21,"tag":322,"props":3804,"children":3805},{"class":324,"line":474},[3806,3810,3814,3818,3823,3827,3832,3836,3840],{"type":21,"tag":322,"props":3807,"children":3808},{"style":348},[3809],{"type":26,"value":3763},{"type":21,"tag":322,"props":3811,"children":3812},{"style":329},[3813],{"type":26,"value":3768},{"type":21,"tag":322,"props":3815,"children":3816},{"style":3648},[3817],{"type":26,"value":3773},{"type":21,"tag":322,"props":3819,"children":3820},{"style":359},[3821],{"type":26,"value":3822},"\"Qubits:   ",{"type":21,"tag":322,"props":3824,"children":3825},{"style":348},[3826],{"type":26,"value":3783},{"type":21,"tag":322,"props":3828,"children":3829},{"style":329},[3830],{"type":26,"value":3831},"backend.num_qubits",{"type":21,"tag":322,"props":3833,"children":3834},{"style":348},[3835],{"type":26,"value":3793},{"type":21,"tag":322,"props":3837,"children":3838},{"style":359},[3839],{"type":26,"value":3798},{"type":21,"tag":322,"props":3841,"children":3842},{"style":329},[3843],{"type":26,"value":3748},{"type":21,"tag":322,"props":3845,"children":3846},{"class":324,"line":496},[3847,3851,3855,3859,3864,3868,3873,3877,3881],{"type":21,"tag":322,"props":3848,"children":3849},{"style":348},[3850],{"type":26,"value":3763},{"type":21,"tag":322,"props":3852,"children":3853},{"style":329},[3854],{"type":26,"value":3768},{"type":21,"tag":322,"props":3856,"children":3857},{"style":3648},[3858],{"type":26,"value":3773},{"type":21,"tag":322,"props":3860,"children":3861},{"style":359},[3862],{"type":26,"value":3863},"\"Basis:    ",{"type":21,"tag":322,"props":3865,"children":3866},{"style":348},[3867],{"type":26,"value":3783},{"type":21,"tag":322,"props":3869,"children":3870},{"style":329},[3871],{"type":26,"value":3872},"backend.basis_gates",{"type":21,"tag":322,"props":3874,"children":3875},{"style":348},[3876],{"type":26,"value":3793},{"type":21,"tag":322,"props":3878,"children":3879},{"style":359},[3880],{"type":26,"value":3798},{"type":21,"tag":322,"props":3882,"children":3883},{"style":329},[3884],{"type":26,"value":3748},{"type":21,"tag":322,"props":3886,"children":3887},{"class":324,"line":16},[3888],{"type":21,"tag":322,"props":3889,"children":3890},{"emptyLinePlaceholder":3672},[3891],{"type":26,"value":3675},{"type":21,"tag":322,"props":3893,"children":3895},{"class":324,"line":3894},10,[3896],{"type":21,"tag":322,"props":3897,"children":3899},{"style":3898},"--shiki-default:#6A737D",[3900],{"type":26,"value":3901},"# Per-qubit error rates vary enormously across a single chip\n",{"type":21,"tag":322,"props":3903,"children":3905},{"class":324,"line":3904},11,[3906,3911,3915],{"type":21,"tag":322,"props":3907,"children":3908},{"style":329},[3909],{"type":26,"value":3910},"props ",{"type":21,"tag":322,"props":3912,"children":3913},{"style":3648},[3914],{"type":26,"value":3688},{"type":21,"tag":322,"props":3916,"children":3917},{"style":329},[3918],{"type":26,"value":3919}," backend.properties()\n",{"type":21,"tag":322,"props":3921,"children":3922},{"class":324,"line":1043},[3923,3928,3932,3937,3942,3947,3952,3957],{"type":21,"tag":322,"props":3924,"children":3925},{"style":329},[3926],{"type":26,"value":3927},"errors ",{"type":21,"tag":322,"props":3929,"children":3930},{"style":3648},[3931],{"type":26,"value":3688},{"type":21,"tag":322,"props":3933,"children":3934},{"style":329},[3935],{"type":26,"value":3936}," [(q, props.readout_error(q)) ",{"type":21,"tag":322,"props":3938,"children":3939},{"style":3648},[3940],{"type":26,"value":3941},"for",{"type":21,"tag":322,"props":3943,"children":3944},{"style":329},[3945],{"type":26,"value":3946}," q ",{"type":21,"tag":322,"props":3948,"children":3949},{"style":3648},[3950],{"type":26,"value":3951},"in",{"type":21,"tag":322,"props":3953,"children":3954},{"style":348},[3955],{"type":26,"value":3956}," range",{"type":21,"tag":322,"props":3958,"children":3959},{"style":329},[3960],{"type":26,"value":3961},"(backend.num_qubits)]\n",{"type":21,"tag":322,"props":3963,"children":3965},{"class":324,"line":3964},13,[3966,3971,3975,3980,3985,3990,3995,4000,4005],{"type":21,"tag":322,"props":3967,"children":3968},{"style":329},[3969],{"type":26,"value":3970},"worst ",{"type":21,"tag":322,"props":3972,"children":3973},{"style":3648},[3974],{"type":26,"value":3688},{"type":21,"tag":322,"props":3976,"children":3977},{"style":348},[3978],{"type":26,"value":3979}," max",{"type":21,"tag":322,"props":3981,"children":3982},{"style":329},[3983],{"type":26,"value":3984},"(errors, ",{"type":21,"tag":322,"props":3986,"children":3987},{"style":3713},[3988],{"type":26,"value":3989},"key",{"type":21,"tag":322,"props":3991,"children":3992},{"style":3648},[3993],{"type":26,"value":3994},"=lambda",{"type":21,"tag":322,"props":3996,"children":3997},{"style":329},[3998],{"type":26,"value":3999}," x: x[",{"type":21,"tag":322,"props":4001,"children":4002},{"style":348},[4003],{"type":26,"value":4004},"1",{"type":21,"tag":322,"props":4006,"children":4007},{"style":329},[4008],{"type":26,"value":4009},"])\n",{"type":21,"tag":322,"props":4011,"children":4013},{"class":324,"line":4012},14,[4014,4019,4023,4028,4032,4036,4040,4044,4048],{"type":21,"tag":322,"props":4015,"children":4016},{"style":329},[4017],{"type":26,"value":4018},"best ",{"type":21,"tag":322,"props":4020,"children":4021},{"style":3648},[4022],{"type":26,"value":3688},{"type":21,"tag":322,"props":4024,"children":4025},{"style":348},[4026],{"type":26,"value":4027}," min",{"type":21,"tag":322,"props":4029,"children":4030},{"style":329},[4031],{"type":26,"value":3984},{"type":21,"tag":322,"props":4033,"children":4034},{"style":3713},[4035],{"type":26,"value":3989},{"type":21,"tag":322,"props":4037,"children":4038},{"style":3648},[4039],{"type":26,"value":3994},{"type":21,"tag":322,"props":4041,"children":4042},{"style":329},[4043],{"type":26,"value":3999},{"type":21,"tag":322,"props":4045,"children":4046},{"style":348},[4047],{"type":26,"value":4004},{"type":21,"tag":322,"props":4049,"children":4050},{"style":329},[4051],{"type":26,"value":4009},{"type":21,"tag":322,"props":4053,"children":4055},{"class":324,"line":4054},15,[4056,4060,4064,4068,4073,4077,4082,4086,4091,4096,4100,4105,4109,4114,4118,4122,4126,4130,4134],{"type":21,"tag":322,"props":4057,"children":4058},{"style":348},[4059],{"type":26,"value":3763},{"type":21,"tag":322,"props":4061,"children":4062},{"style":329},[4063],{"type":26,"value":3768},{"type":21,"tag":322,"props":4065,"children":4066},{"style":3648},[4067],{"type":26,"value":3773},{"type":21,"tag":322,"props":4069,"children":4070},{"style":359},[4071],{"type":26,"value":4072},"\"Readout error — best qubit: ",{"type":21,"tag":322,"props":4074,"children":4075},{"style":348},[4076],{"type":26,"value":3783},{"type":21,"tag":322,"props":4078,"children":4079},{"style":329},[4080],{"type":26,"value":4081},"best[",{"type":21,"tag":322,"props":4083,"children":4084},{"style":348},[4085],{"type":26,"value":4004},{"type":21,"tag":322,"props":4087,"children":4088},{"style":329},[4089],{"type":26,"value":4090},"]",{"type":21,"tag":322,"props":4092,"children":4093},{"style":3648},[4094],{"type":26,"value":4095},":.4f",{"type":21,"tag":322,"props":4097,"children":4098},{"style":348},[4099],{"type":26,"value":3793},{"type":21,"tag":322,"props":4101,"children":4102},{"style":359},[4103],{"type":26,"value":4104},", worst: ",{"type":21,"tag":322,"props":4106,"children":4107},{"style":348},[4108],{"type":26,"value":3783},{"type":21,"tag":322,"props":4110,"children":4111},{"style":329},[4112],{"type":26,"value":4113},"worst[",{"type":21,"tag":322,"props":4115,"children":4116},{"style":348},[4117],{"type":26,"value":4004},{"type":21,"tag":322,"props":4119,"children":4120},{"style":329},[4121],{"type":26,"value":4090},{"type":21,"tag":322,"props":4123,"children":4124},{"style":3648},[4125],{"type":26,"value":4095},{"type":21,"tag":322,"props":4127,"children":4128},{"style":348},[4129],{"type":26,"value":3793},{"type":21,"tag":322,"props":4131,"children":4132},{"style":359},[4133],{"type":26,"value":3798},{"type":21,"tag":322,"props":4135,"children":4136},{"style":329},[4137],{"type":26,"value":3748},{"type":21,"tag":22,"props":4139,"children":4140},{},[4141,4143,4148,4150,4155,4156,4161],{"type":26,"value":4142},"इसे लगभग किसी भी मौजूदा डिवाइस पर चलाएँ और आप देखेंगे कि ",{"type":21,"tag":51,"props":4144,"children":4145},{},[4146],{"type":26,"value":4147},"एक ही चिप",{"type":26,"value":4149}," पर सबसे अच्छे और सबसे खराब क्यूबिट के बीच का अंतर अक्सर पाँच गुना या उससे अधिक होता है। यह भिन्नता हर सारांश आँकड़े में अदृश्य रहती है, और ठीक इसीलिए transpilation और qubit selection इतने मायने रखते हैं। बैकएंड चुनने पर गहराई से जानने के लिए हमारी ",{"type":21,"tag":29,"props":4151,"children":4152},{"href":817},[4153],{"type":26,"value":4154},"SDK comparison",{"type":26,"value":814},{"type":21,"tag":29,"props":4157,"children":4158},{"href":809},[4159],{"type":26,"value":4160},"hardware guide",{"type":26,"value":4162}," देखें।",{"type":21,"tag":59,"props":4164,"children":4166},{"id":4165},"इस-क्षेत्र-ने-अब-तक-कोई-विजेता-क्यूबिट-तकनीक-नहीं-चुनी-है",[4167],{"type":26,"value":4168},"इस क्षेत्र ने अब तक कोई विजेता क्यूबिट तकनीक नहीं चुनी है",{"type":21,"tag":22,"props":4170,"children":4171},{},[4172],{"type":26,"value":4173},"एक बात अपनी अनुपस्थिति से उल्लेखनीय है: ऑर्डर कहीं भी किसी क्यूबिट मोडैलिटी का नाम नहीं लेता। न superconducting circuits, न trapped ions, न photonics, न neutral atoms, न spin qubits के लिए कोई प्राथमिकता। यह सामान्य रूप से \"quantum-enabling component technologies\" का उल्लेख करता है।",{"type":21,"tag":22,"props":4175,"children":4176},{},[4177],{"type":26,"value":4178},"यह एक सार्थक संकेत है। जब कोई तकनीक परिपक्व होती है, तो खरीद दस्तावेज़ विशिष्ट हो जाते हैं। कोई भी \"किसी न किसी प्रकार के स्विचिंग तत्व पर आधारित कंप्यूटिंग उपकरणों\" के लिए राष्ट्रीय रणनीति नहीं लिखता। यह जानबूझकर की गई अस्पष्टता वास्तविक सच्चाई दर्शाती है: 2026 के मध्य तक, कोई भी मोडैलिटी स्पष्ट रूप से नहीं जीती है।",{"type":21,"tag":22,"props":4180,"children":4181},{},[4182,4184,4190,4192,4198],{"type":26,"value":4183},"हर एक अलग-अलग पैमानों पर आगे है — superconducting चिप गेट स्पीड और फ़ैब्रिकेशन स्केल पर, trapped ions फ़िडेलिटी और all-to-all कनेक्टिविटी पर, neutral atoms क्यूबिट संख्या पर, photonics कमरे के तापमान पर संचालन और नेटवर्किंग पर। 2026 का ",{"type":21,"tag":29,"props":4185,"children":4187},{"href":4186},"\u002Fresearch\u002Fholographic-codes-quantum-gravity-2026",[4188],{"type":26,"value":4189},"holographic codes experiment",{"type":26,"value":4191}," trapped ions पर चला; ",{"type":21,"tag":29,"props":4193,"children":4195},{"href":4194},"\u002Fresearch\u002Fgoogle-below-threshold-2024",[4196],{"type":26,"value":4197},"Google's below-threshold error correction result",{"type":26,"value":4199}," superconducting हार्डवेयर पर चला। दोनों पूरी तरह अलग प्लेटफ़ॉर्म पर मील का पत्थर साबित हुए।",{"type":21,"tag":22,"props":4201,"children":4202},{},[4203,4205,4210],{"type":26,"value":4204},"क्वांटम कंप्यूटिंग सीखने वाले किसी भी व्यक्ति के लिए यह वास्तव में अच्छी खबर है, और इसका एक ठोस निहितार्थ है: ",{"type":21,"tag":71,"props":4206,"children":4207},{},[4208],{"type":26,"value":4209},"किसी एक वेंडर के स्टैक में हद से ज़्यादा विशेषज्ञता मत बनाइए।",{"type":26,"value":4211}," अमूर्तनाएँ — सर्किट, गेट, मापन, एरर मिटिगेशन — हार्डवेयर के आर-पार स्थानांतरित होती हैं। वेंडर-विशिष्ट API विवरण शायद नहीं।",{"type":21,"tag":59,"props":4213,"children":4215},{"id":4214},"beyond-current-classical-capabilities-अब-मानक-है",[4216],{"type":26,"value":4217},"\"Beyond current classical capabilities\" अब मानक है",{"type":21,"tag":22,"props":4219,"children":4220},{},[4221,4223,4228],{"type":26,"value":4222},"ऑर्डर ",{"type":21,"tag":71,"props":4224,"children":4225},{},[4226],{"type":26,"value":4227},"Quantum Computer for Application Development and Discovery Science (QC-ADDS)",{"type":26,"value":4229}," पहल की स्थापना करता है, जिसका लक्ष्य कम से कम एक मशीन Department of Energy की सुविधा तक पहुँचाना और उसे वैज्ञानिक समुदाय के लिए उपलब्ध कराना है। Secretary of Energy के पास ऐसे सिस्टम के लिए विनिर्देश तय करने हेतु 90 दिन हैं जो \"transformative scientific applications... on a path towards economically significant applications and beyond current classical computer capabilities\" में सक्षम हों।",{"type":21,"tag":22,"props":4231,"children":4232},{},[4233],{"type":26,"value":4234},"उस वाक्यांश में दो बातें ध्यान देने योग्य हैं।",{"type":21,"tag":22,"props":4236,"children":4237},{},[4238,4240,4245,4247,4252,4254,4259],{"type":26,"value":4239},"पहला, ढाँचा ",{"type":21,"tag":71,"props":4241,"children":4242},{},[4243],{"type":26,"value":4244},"discovery science",{"type":26,"value":4246}," का है, वाणिज्यिक लाभ का नहीं। लक्ष्य एक वैज्ञानिक उपकरण है — एक ऐसी मशीन जिसका उपयोग शोधकर्ता चीज़ें सीखने के लिए करते हैं — न कि ऐसा उत्पाद जो किसी व्यावसायिक कार्य में शास्त्रीय कंप्यूटरों को हरा दे। यह इस बात के अनुरूप है कि प्रमाण वास्तव में किस ओर इशारा करते हैं: ",{"type":21,"tag":29,"props":4248,"children":4249},{"href":2064},[4250],{"type":26,"value":4251},"IBM's 2023 quantum utility result",{"type":26,"value":4253}," और holographic-codes का काम दोनों ही ",{"type":21,"tag":51,"props":4255,"children":4256},{},[4257],{"type":26,"value":4258},"भौतिकी",{"type":26,"value":4260}," के प्रयोग थे।",{"type":21,"tag":22,"props":4262,"children":4263},{},[4264],{"type":26,"value":4265},"दूसरा, उस वाक्य में \"on a path towards\" असली काम कर रहा है। यह इस बात की स्वीकृति है कि जिस मशीन का विनिर्देश तय किया जा रहा है वह एक कदम है, मंज़िल नहीं।",{"type":21,"tag":59,"props":4267,"children":4269},{"id":4268},"distributed-quantum-computing-एक-गंभीर-लक्ष्य-के-रूप-में-सामने-आता-है",[4270],{"type":26,"value":4271},"Distributed quantum computing एक गंभीर लक्ष्य के रूप में सामने आता है",{"type":21,"tag":22,"props":4273,"children":4274},{},[4275],{"type":26,"value":4276},"नेटवर्किंग वाले अनुभागों में छिपी हुई एक माँग है कि DOE \"distributed quantum computing\" के लिए क्वांटम नेटवर्किंग को कवर करने वाली योजनाएँ बनाए।",{"type":21,"tag":22,"props":4278,"children":4279},{},[4280],{"type":26,"value":4281},"यह मायने रखता है क्योंकि यह स्केलिंग के बारे में एक स्वीकारोक्ति है। एक विशाल क्वांटम प्रोसेसर बनाना असाधारण रूप से कठिन है — चिप बड़ी होने के साथ वायरिंग, कूलिंग, crosstalk और यील्ड सब बिगड़ते जाते हैं। कई छोटे प्रोसेसरों को जोड़कर एक तार्किक मशीन बनाना एक वैकल्पिक रास्ता है, और यह अलग-अलग डिवाइसों के बीच पर्याप्त फ़िडेलिटी के साथ entanglement वितरित करने पर निर्भर करता है।",{"type":21,"tag":22,"props":4283,"children":4284},{},[4285,4287,4293,4295,4301],{"type":26,"value":4286},"इसका मूल आदिम ",{"type":21,"tag":29,"props":4288,"children":4290},{"href":4289},"\u002Fresearch\u002Fbennett-teleportation-1993",[4291],{"type":26,"value":4292},"quantum teleportation",{"type":26,"value":4294}," है, जो साझा ",{"type":21,"tag":29,"props":4296,"children":4298},{"href":4297},"\u002Fglossary\u002Fentanglement",[4299],{"type":26,"value":4300},"entanglement",{"type":26,"value":4302}," और दो शास्त्रीय बिट्स का उपयोग करके एक क्यूबिट की अवस्था को एक स्थान से दूसरे स्थान पर ले जाता है। यह वर्षों से प्रायोगिक रूप से सामान्य बात है — लेकिन प्रोसेसरों को आपस में जोड़ने के लिए इसे पर्याप्त तेज़ी से और पर्याप्त स्वच्छता से करना सामान्य नहीं है। इसे पाँच-वर्षीय योजना लक्ष्य के रूप में नामित देखना इस बात का संकेत है कि एकल-बड़ी-चिप रणनीति को पर्याप्त नहीं माना जा रहा।",{"type":21,"tag":59,"props":4304,"children":4306},{"id":4305},"कार्यबल-की-कमी-को-एक-अड़चन-के-रूप-में-देखा-गया-है",[4307],{"type":26,"value":4308},"कार्यबल की कमी को एक अड़चन के रूप में देखा गया है",{"type":21,"tag":22,"props":4310,"children":4311},{},[4312],{"type":26,"value":4313},"ऑर्डर NSF को निर्देश देता है कि वह 180 दिनों के भीतर \"a network of National QIST Workforce Development Institutes\" शुरू करे, साथ ही भर्ती और प्रतिधारण रणनीतियाँ भी बनाए।",{"type":21,"tag":22,"props":4315,"children":4316},{},[4317],{"type":26,"value":4318},"कार्यबल वाले अनुभागों को सरसरी तौर पर छोड़ देना आसान है, लेकिन उनका शामिल होना कुछ ठोस बताता है: क्वांटम प्रगति की बाधा केवल हार्डवेयर नहीं है। ऐसे लोग पर्याप्त संख्या में नहीं हैं जो क्वांटम प्रोग्राम लिख सकें, डीबग कर सकें और उन पर तर्क कर सकें — और यह कमी अब इतनी गंभीर मानी जाती है कि इसके लिए समर्पित संस्थान बनाए जाएँ।",{"type":21,"tag":22,"props":4320,"children":4321},{},[4322,4324,4330,4332,4338],{"type":26,"value":4323},"इस साइट को पढ़ने वाले किसी भी व्यक्ति के लिए, पूरे दस्तावेज़ का यही हिस्सा सबसे सीधे तौर पर कार्रवाई योग्य है। जिन कौशलों को दुर्लभ बताया जा रहा है, उन्हें अभी, मुफ्त में, असली हार्डवेयर पर सीखा जा सकता है। हमारा ",{"type":21,"tag":29,"props":4325,"children":4327},{"href":4326},"\u002Fcourses",[4328],{"type":26,"value":4329},"courses page",{"type":26,"value":4331}," सबसे बेहतरीन संरचित विकल्प एकत्र करता है, और ",{"type":21,"tag":29,"props":4333,"children":4335},{"href":4334},"\u002Fblog\u002Fgetting-started-free-quantum-computing",[4336],{"type":26,"value":4337},"getting started guide",{"type":26,"value":4339}," आपको एक ही दोपहर में असली QPU पर सर्किट चलाना सिखा देगी।",{"type":21,"tag":59,"props":4341,"children":4343},{"id":4342},"इसमें-क्या-नहीं-है",[4344],{"type":26,"value":4345},"इसमें क्या नहीं है",{"type":21,"tag":22,"props":4347,"children":4348},{},[4349,4351,4356],{"type":26,"value":4350},"सटीकता के लिए स्पष्ट रूप से कहना ज़रूरी है: ऑर्डर में ",{"type":21,"tag":71,"props":4352,"children":4353},{},[4354],{"type":26,"value":4355},"कोई डॉलर राशि निर्दिष्ट नहीं",{"type":26,"value":4357}," है। यह दिशा तय करता है, ज़िम्मेदारियाँ सौंपता है, और समय-सीमाएँ लगाता है — विभिन्न अनुभागों में 90, 120, 180 और 210 दिन — लेकिन विनियोग कहीं और से आता है। किसी एग्जीक्यूटिव ऑर्डर की समय-सीमाएँ डिलीवरी की गारंटी भी नहीं होतीं।",{"type":21,"tag":22,"props":4359,"children":4360},{},[4361],{"type":26,"value":4362},"समय-सीमाओं को इरादे के बयान के रूप में लें, ऐसे कार्यक्रम के रूप में नहीं जिसके आसपास आप योजना बना सकें।",{"type":21,"tag":59,"props":4364,"children":4366},{"id":4365},"निष्कर्ष",[4367],{"type":26,"value":4365},{"type":21,"tag":22,"props":4369,"children":4370},{},[4371],{"type":26,"value":4372},"राजनीति को हटा दें तो EO 14413 एक असामान्य रूप से स्पष्ट तकनीकी आकलन के रूप में पढ़ा जाता है:",{"type":21,"tag":3566,"props":4374,"children":4375},{},[4376,4381,4386,4391,4396],{"type":21,"tag":3570,"props":4377,"children":4378},{},[4379],{"type":26,"value":4380},"हम क्वांटम कंप्यूटर के प्रदर्शन को भरोसेमंद ढंग से नहीं माप सकते, और यह अब इतना ज़रूरी है कि इसे संस्थागत रूप दिया जाए।",{"type":21,"tag":3570,"props":4382,"children":4383},{},[4384],{"type":26,"value":4385},"कोई क्यूबिट तकनीक नहीं जीती है, इसलिए दाँव बाँटकर लगाए जा रहे हैं।",{"type":21,"tag":3570,"props":4387,"children":4388},{},[4389],{"type":26,"value":4390},"निकट-भविष्य का लक्ष्य वैज्ञानिक खोज है, वाणिज्यिक लाभ नहीं।",{"type":21,"tag":3570,"props":4392,"children":4393},{},[4394],{"type":26,"value":4395},"स्केलिंग के लिए एक विशाल चिप बनाने के बजाय चिपों को आपस में नेटवर्क करना पड़ सकता है।",{"type":21,"tag":3570,"props":4397,"children":4398},{},[4399],{"type":26,"value":4400},"प्रशिक्षित लोग पर्याप्त नहीं हैं, और यह पहले दर्जे की अड़चन है।",{"type":21,"tag":22,"props":4402,"children":4403},{},[4404],{"type":26,"value":4405},"इसमें कुछ भी निराशावादी नहीं है। यह एक ऐसा क्षेत्र है जो \"क्या यह बिल्कुल भी काम करता है\" से आगे बढ़कर \"हम इसे कैसे मापें, कैसे स्केल करें, और इसमें लोग कैसे लगाएँ\" तक पहुँच गया है — जो मोटे तौर पर वही संक्रमण है जिससे शास्त्रीय कंप्यूटिंग 1950 के दशक में गुज़री थी।",{"type":21,"tag":22,"props":4407,"children":4408},{},[4409,4411,4417],{"type":26,"value":4410},"मापन की समस्या ही वह है जिस पर नज़र रखनी चाहिए। क्यूबिट-संख्या के रिकॉर्ड के आगे बेंचमार्किंग नीरस लगती है, लेकिन आप उसे इंजीनियर नहीं कर सकते जिसे आप माप नहीं सकते, और क्वांटम एडवांटेज के बारे में हर गंभीर दावा अंततः इसी पर टिका है। अगर आप समझना चाहते हैं कि यह क्षेत्र वास्तव में किस ओर जा रहा है, तो सुर्खियों के बजाय एरर रेट पढ़ना सीखिए — शुरुआत हमारी ",{"type":21,"tag":29,"props":4412,"children":4414},{"href":4413},"\u002Fglossary",[4415],{"type":26,"value":4416},"glossary of the terms that matter",{"type":26,"value":4418}," से करें।",{"type":21,"tag":703,"props":4420,"children":4421},{},[4422],{"type":26,"value":707},{"title":7,"searchDepth":335,"depth":335,"links":4424},[4425,4426,4427,4428,4429,4430,4431],{"id":3539,"depth":335,"text":3542},{"id":4165,"depth":335,"text":4168},{"id":4214,"depth":335,"text":4217},{"id":4268,"depth":335,"text":4271},{"id":4305,"depth":335,"text":4308},{"id":4342,"depth":335,"text":4345},{"id":4365,"depth":335,"text":4365},"content:hi:blog:quantum-benchmarking-eo-14413.md","hi\u002Fblog\u002Fquantum-benchmarking-eo-14413.md","hi\u002Fblog\u002Fquantum-benchmarking-eo-14413",{"_path":4436,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":4437,"description":4438,"date":3510,"author":11,"tags":4439,"readingTime":3894,"body":4440,"_type":715,"_id":7590,"_source":717,"_file":7591,"_stem":7592,"_extension":720},"\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.",[729,1972,3512],{"type":18,"children":4441,"toc":7579},[4442,4447,4452,4458,4463,4489,4510,4515,4630,4649,4655,4660,4705,6098,6108,6116,6144,6171,6177,6198,6211,6406,6411,6417,6429,6434,6446,6452,6464,6492,7234,7244,7252,7257,7263,7268,7276,7288,7315,7327,7337,7343,7348,7366,7398,7414,7420,7432,7445,7451,7456,7510,7534,7547,7575],{"type":21,"tag":22,"props":4443,"children":4444},{},[4445],{"type":26,"value":4446},"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":4448,"children":4449},{},[4450],{"type":26,"value":4451},"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":59,"props":4453,"children":4455},{"id":4454},"mitigation-is-not-correction",[4456],{"type":26,"value":4457},"Mitigation Is Not Correction",{"type":21,"tag":22,"props":4459,"children":4460},{},[4461],{"type":26,"value":4462},"These get conflated constantly, so let's be precise.",{"type":21,"tag":22,"props":4464,"children":4465},{},[4466,4473,4475,4480,4482,4487],{"type":21,"tag":71,"props":4467,"children":4468},{},[4469],{"type":21,"tag":29,"props":4470,"children":4471},{"href":1536},[4472],{"type":26,"value":1539},{"type":26,"value":4474}," detects and fixes errors ",{"type":21,"tag":51,"props":4476,"children":4477},{},[4478],{"type":26,"value":4479},"during",{"type":26,"value":4481}," 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":29,"props":4483,"children":4484},{"href":859},[4485],{"type":26,"value":4486},"error correction primer",{"type":26,"value":4488}," walks through how the surface code does this.",{"type":21,"tag":22,"props":4490,"children":4491},{},[4492,4501,4503,4508],{"type":21,"tag":71,"props":4493,"children":4494},{},[4495],{"type":21,"tag":29,"props":4496,"children":4498},{"href":4497},"\u002Fglossary\u002Ferror-mitigation",[4499],{"type":26,"value":4500},"Error mitigation",{"type":26,"value":4502}," does nothing during the computation. It runs the noisy circuit, collects noisy results, and applies classical statistics afterwards to ",{"type":21,"tag":51,"props":4504,"children":4505},{},[4506],{"type":26,"value":4507},"estimate",{"type":26,"value":4509}," what a noiseless machine would have said.",{"type":21,"tag":22,"props":4511,"children":4512},{},[4513],{"type":26,"value":4514},"The practical differences matter:",{"type":21,"tag":4516,"props":4517,"children":4518},"table",{},[4519,4541],{"type":21,"tag":4520,"props":4521,"children":4522},"thead",{},[4523],{"type":21,"tag":4524,"props":4525,"children":4526},"tr",{},[4527,4531,4536],{"type":21,"tag":4528,"props":4529,"children":4530},"th",{},[],{"type":21,"tag":4528,"props":4532,"children":4533},{},[4534],{"type":26,"value":4535},"Correction",{"type":21,"tag":4528,"props":4537,"children":4538},{},[4539],{"type":26,"value":4540},"Mitigation",{"type":21,"tag":4542,"props":4543,"children":4544},"tbody",{},[4545,4576,4594,4612],{"type":21,"tag":4524,"props":4546,"children":4547},{},[4548,4554,4565],{"type":21,"tag":4549,"props":4550,"children":4551},"td",{},[4552],{"type":26,"value":4553},"Cost",{"type":21,"tag":4549,"props":4555,"children":4556},{},[4557,4559,4563],{"type":26,"value":4558},"Extra ",{"type":21,"tag":71,"props":4560,"children":4561},{},[4562],{"type":26,"value":1807},{"type":26,"value":4564}," (~1000×)",{"type":21,"tag":4549,"props":4566,"children":4567},{},[4568,4569,4574],{"type":26,"value":4558},{"type":21,"tag":71,"props":4570,"children":4571},{},[4572],{"type":26,"value":4573},"shots",{"type":26,"value":4575}," (2–100×)",{"type":21,"tag":4524,"props":4577,"children":4578},{},[4579,4584,4589],{"type":21,"tag":4549,"props":4580,"children":4581},{},[4582],{"type":26,"value":4583},"Recovers",{"type":21,"tag":4549,"props":4585,"children":4586},{},[4587],{"type":26,"value":4588},"The quantum state",{"type":21,"tag":4549,"props":4590,"children":4591},{},[4592],{"type":26,"value":4593},"An expectation value",{"type":21,"tag":4524,"props":4595,"children":4596},{},[4597,4602,4607],{"type":21,"tag":4549,"props":4598,"children":4599},{},[4600],{"type":26,"value":4601},"Scales to",{"type":21,"tag":4549,"props":4603,"children":4604},{},[4605],{"type":26,"value":4606},"Arbitrary depth",{"type":21,"tag":4549,"props":4608,"children":4609},{},[4610],{"type":26,"value":4611},"Shallow-to-moderate depth only",{"type":21,"tag":4524,"props":4613,"children":4614},{},[4615,4620,4625],{"type":21,"tag":4549,"props":4616,"children":4617},{},[4618],{"type":26,"value":4619},"Available today",{"type":21,"tag":4549,"props":4621,"children":4622},{},[4623],{"type":26,"value":4624},"Barely",{"type":21,"tag":4549,"props":4626,"children":4627},{},[4628],{"type":26,"value":4629},"Yes, right now",{"type":21,"tag":22,"props":4631,"children":4632},{},[4633,4635,4640,4642,4647],{"type":26,"value":4634},"That last row is why mitigation dominates ",{"type":21,"tag":29,"props":4636,"children":4637},{"href":263},[4638],{"type":26,"value":4639},"NISQ-era",{"type":26,"value":4641}," work. But note row three: mitigation's overhead grows ",{"type":21,"tag":51,"props":4643,"children":4644},{},[4645],{"type":26,"value":4646},"exponentially",{"type":26,"value":4648}," 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":59,"props":4650,"children":4652},{"id":4651},"step-1-readout-error-mitigation-do-this-first",[4653],{"type":26,"value":4654},"Step 1: Readout Error Mitigation (Do This First)",{"type":21,"tag":22,"props":4656,"children":4657},{},[4658],{"type":26,"value":4659},"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":4661,"children":4662},{},[4663,4665,4671,4673,4679,4681,4687,4689,4695,4697,4703],{"type":26,"value":4664},"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":79,"props":4666,"children":4668},{"className":4667},[],[4669],{"type":26,"value":4670},"M",{"type":26,"value":4672}," where ",{"type":21,"tag":79,"props":4674,"children":4676},{"className":4675},[],[4677],{"type":26,"value":4678},"M[i][j]",{"type":26,"value":4680}," is the probability of reading ",{"type":21,"tag":79,"props":4682,"children":4684},{"className":4683},[],[4685],{"type":26,"value":4686},"i",{"type":26,"value":4688}," when the true state was ",{"type":21,"tag":79,"props":4690,"children":4692},{"className":4691},[],[4693],{"type":26,"value":4694},"j",{"type":26,"value":4696},". Your observed distribution is ",{"type":21,"tag":79,"props":4698,"children":4700},{"className":4699},[],[4701],{"type":26,"value":4702},"M @ p_true",{"type":26,"value":4704},", so apply the pseudo-inverse.",{"type":21,"tag":312,"props":4706,"children":4708},{"code":4707,"language":3638,"meta":7,"className":3636,"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",[4709],{"type":21,"tag":79,"props":4710,"children":4711},{"__ignoreMap":7},[4712,4734,4755,4776,4797,4804,4865,4882,4935,4978,4986,5021,5029,5042,5049,5079,5098,5106,5137,5182,5221,5239,5313,5341,5370,5379,5407,5438,5460,5506,5519,5527,5545,5563,5571,5605,5623,5648,5690,5698,5733,5849,5857,5902,5920,5928,6016],{"type":21,"tag":322,"props":4713,"children":4714},{"class":324,"line":325},[4715,4719,4724,4729],{"type":21,"tag":322,"props":4716,"children":4717},{"style":3648},[4718],{"type":26,"value":3661},{"type":21,"tag":322,"props":4720,"children":4721},{"style":329},[4722],{"type":26,"value":4723}," numpy ",{"type":21,"tag":322,"props":4725,"children":4726},{"style":3648},[4727],{"type":26,"value":4728},"as",{"type":21,"tag":322,"props":4730,"children":4731},{"style":329},[4732],{"type":26,"value":4733}," np\n",{"type":21,"tag":322,"props":4735,"children":4736},{"class":324,"line":335},[4737,4741,4746,4750],{"type":21,"tag":322,"props":4738,"children":4739},{"style":3648},[4740],{"type":26,"value":3651},{"type":21,"tag":322,"props":4742,"children":4743},{"style":329},[4744],{"type":26,"value":4745}," qiskit ",{"type":21,"tag":322,"props":4747,"children":4748},{"style":3648},[4749],{"type":26,"value":3661},{"type":21,"tag":322,"props":4751,"children":4752},{"style":329},[4753],{"type":26,"value":4754}," QuantumCircuit, transpile\n",{"type":21,"tag":322,"props":4756,"children":4757},{"class":324,"line":344},[4758,4762,4767,4771],{"type":21,"tag":322,"props":4759,"children":4760},{"style":3648},[4761],{"type":26,"value":3651},{"type":21,"tag":322,"props":4763,"children":4764},{"style":329},[4765],{"type":26,"value":4766}," qiskit_aer ",{"type":21,"tag":322,"props":4768,"children":4769},{"style":3648},[4770],{"type":26,"value":3661},{"type":21,"tag":322,"props":4772,"children":4773},{"style":329},[4774],{"type":26,"value":4775}," AerSimulator\n",{"type":21,"tag":322,"props":4777,"children":4778},{"class":324,"line":407},[4779,4783,4788,4792],{"type":21,"tag":322,"props":4780,"children":4781},{"style":3648},[4782],{"type":26,"value":3651},{"type":21,"tag":322,"props":4784,"children":4785},{"style":329},[4786],{"type":26,"value":4787}," qiskit_aer.noise ",{"type":21,"tag":322,"props":4789,"children":4790},{"style":3648},[4791],{"type":26,"value":3661},{"type":21,"tag":322,"props":4793,"children":4794},{"style":329},[4795],{"type":26,"value":4796}," NoiseModel, depolarizing_error, ReadoutError\n",{"type":21,"tag":322,"props":4798,"children":4799},{"class":324,"line":431},[4800],{"type":21,"tag":322,"props":4801,"children":4802},{"emptyLinePlaceholder":3672},[4803],{"type":26,"value":3675},{"type":21,"tag":322,"props":4805,"children":4806},{"class":324,"line":453},[4807,4812,4818,4823,4827,4832,4837,4841,4846,4851,4855,4860],{"type":21,"tag":322,"props":4808,"children":4809},{"style":3648},[4810],{"type":26,"value":4811},"def",{"type":21,"tag":322,"props":4813,"children":4815},{"style":4814},"--shiki-default:#B392F0",[4816],{"type":26,"value":4817}," build_noise",{"type":21,"tag":322,"props":4819,"children":4820},{"style":329},[4821],{"type":26,"value":4822},"(p1",{"type":21,"tag":322,"props":4824,"children":4825},{"style":3648},[4826],{"type":26,"value":3688},{"type":21,"tag":322,"props":4828,"children":4829},{"style":348},[4830],{"type":26,"value":4831},"0.002",{"type":21,"tag":322,"props":4833,"children":4834},{"style":329},[4835],{"type":26,"value":4836},", p2",{"type":21,"tag":322,"props":4838,"children":4839},{"style":3648},[4840],{"type":26,"value":3688},{"type":21,"tag":322,"props":4842,"children":4843},{"style":348},[4844],{"type":26,"value":4845},"0.02",{"type":21,"tag":322,"props":4847,"children":4848},{"style":329},[4849],{"type":26,"value":4850},", p_read",{"type":21,"tag":322,"props":4852,"children":4853},{"style":3648},[4854],{"type":26,"value":3688},{"type":21,"tag":322,"props":4856,"children":4857},{"style":348},[4858],{"type":26,"value":4859},"0.05",{"type":21,"tag":322,"props":4861,"children":4862},{"style":329},[4863],{"type":26,"value":4864},"):\n",{"type":21,"tag":322,"props":4866,"children":4867},{"class":324,"line":474},[4868,4873,4877],{"type":21,"tag":322,"props":4869,"children":4870},{"style":329},[4871],{"type":26,"value":4872},"    nm ",{"type":21,"tag":322,"props":4874,"children":4875},{"style":3648},[4876],{"type":26,"value":3688},{"type":21,"tag":322,"props":4878,"children":4879},{"style":329},[4880],{"type":26,"value":4881}," NoiseModel()\n",{"type":21,"tag":322,"props":4883,"children":4884},{"class":324,"line":496},[4885,4890,4894,4899,4904,4908,4913,4917,4922,4926,4931],{"type":21,"tag":322,"props":4886,"children":4887},{"style":329},[4888],{"type":26,"value":4889},"    nm.add_all_qubit_quantum_error(depolarizing_error(p1, ",{"type":21,"tag":322,"props":4891,"children":4892},{"style":348},[4893],{"type":26,"value":4004},{"type":21,"tag":322,"props":4895,"children":4896},{"style":329},[4897],{"type":26,"value":4898},"), [",{"type":21,"tag":322,"props":4900,"children":4901},{"style":359},[4902],{"type":26,"value":4903},"\"rz\"",{"type":21,"tag":322,"props":4905,"children":4906},{"style":329},[4907],{"type":26,"value":367},{"type":21,"tag":322,"props":4909,"children":4910},{"style":359},[4911],{"type":26,"value":4912},"\"sx\"",{"type":21,"tag":322,"props":4914,"children":4915},{"style":329},[4916],{"type":26,"value":367},{"type":21,"tag":322,"props":4918,"children":4919},{"style":359},[4920],{"type":26,"value":4921},"\"x\"",{"type":21,"tag":322,"props":4923,"children":4924},{"style":329},[4925],{"type":26,"value":367},{"type":21,"tag":322,"props":4927,"children":4928},{"style":359},[4929],{"type":26,"value":4930},"\"h\"",{"type":21,"tag":322,"props":4932,"children":4933},{"style":329},[4934],{"type":26,"value":4009},{"type":21,"tag":322,"props":4936,"children":4937},{"class":324,"line":16},[4938,4943,4947,4951,4956,4960,4965,4969,4974],{"type":21,"tag":322,"props":4939,"children":4940},{"style":329},[4941],{"type":26,"value":4942},"    nm.add_all_qubit_quantum_error(depolarizing_error(p2, ",{"type":21,"tag":322,"props":4944,"children":4945},{"style":348},[4946],{"type":26,"value":423},{"type":21,"tag":322,"props":4948,"children":4949},{"style":329},[4950],{"type":26,"value":4898},{"type":21,"tag":322,"props":4952,"children":4953},{"style":359},[4954],{"type":26,"value":4955},"\"cx\"",{"type":21,"tag":322,"props":4957,"children":4958},{"style":329},[4959],{"type":26,"value":367},{"type":21,"tag":322,"props":4961,"children":4962},{"style":359},[4963],{"type":26,"value":4964},"\"cz\"",{"type":21,"tag":322,"props":4966,"children":4967},{"style":329},[4968],{"type":26,"value":367},{"type":21,"tag":322,"props":4970,"children":4971},{"style":359},[4972],{"type":26,"value":4973},"\"ecr\"",{"type":21,"tag":322,"props":4975,"children":4976},{"style":329},[4977],{"type":26,"value":4009},{"type":21,"tag":322,"props":4979,"children":4980},{"class":324,"line":3894},[4981],{"type":21,"tag":322,"props":4982,"children":4983},{"style":329},[4984],{"type":26,"value":4985},"    nm.add_all_qubit_readout_error(\n",{"type":21,"tag":322,"props":4987,"children":4988},{"class":324,"line":3904},[4989,4994,4998,5003,5008,5012,5016],{"type":21,"tag":322,"props":4990,"children":4991},{"style":329},[4992],{"type":26,"value":4993},"        ReadoutError([[",{"type":21,"tag":322,"props":4995,"children":4996},{"style":348},[4997],{"type":26,"value":4004},{"type":21,"tag":322,"props":4999,"children":5000},{"style":3648},[5001],{"type":26,"value":5002}," -",{"type":21,"tag":322,"props":5004,"children":5005},{"style":329},[5006],{"type":26,"value":5007}," p_read, p_read], [p_read, ",{"type":21,"tag":322,"props":5009,"children":5010},{"style":348},[5011],{"type":26,"value":4004},{"type":21,"tag":322,"props":5013,"children":5014},{"style":3648},[5015],{"type":26,"value":5002},{"type":21,"tag":322,"props":5017,"children":5018},{"style":329},[5019],{"type":26,"value":5020}," p_read]])\n",{"type":21,"tag":322,"props":5022,"children":5023},{"class":324,"line":1043},[5024],{"type":21,"tag":322,"props":5025,"children":5026},{"style":329},[5027],{"type":26,"value":5028},"    )\n",{"type":21,"tag":322,"props":5030,"children":5031},{"class":324,"line":3964},[5032,5037],{"type":21,"tag":322,"props":5033,"children":5034},{"style":3648},[5035],{"type":26,"value":5036},"    return",{"type":21,"tag":322,"props":5038,"children":5039},{"style":329},[5040],{"type":26,"value":5041}," nm\n",{"type":21,"tag":322,"props":5043,"children":5044},{"class":324,"line":4012},[5045],{"type":21,"tag":322,"props":5046,"children":5047},{"emptyLinePlaceholder":3672},[5048],{"type":26,"value":3675},{"type":21,"tag":322,"props":5050,"children":5051},{"class":324,"line":4054},[5052,5056,5060,5065,5070,5074],{"type":21,"tag":322,"props":5053,"children":5054},{"style":329},[5055],{"type":26,"value":3701},{"type":21,"tag":322,"props":5057,"children":5058},{"style":3648},[5059],{"type":26,"value":3688},{"type":21,"tag":322,"props":5061,"children":5062},{"style":329},[5063],{"type":26,"value":5064}," AerSimulator(",{"type":21,"tag":322,"props":5066,"children":5067},{"style":3713},[5068],{"type":26,"value":5069},"noise_model",{"type":21,"tag":322,"props":5071,"children":5072},{"style":3648},[5073],{"type":26,"value":3688},{"type":21,"tag":322,"props":5075,"children":5076},{"style":329},[5077],{"type":26,"value":5078},"build_noise())\n",{"type":21,"tag":322,"props":5080,"children":5082},{"class":324,"line":5081},16,[5083,5088,5093],{"type":21,"tag":322,"props":5084,"children":5085},{"style":348},[5086],{"type":26,"value":5087},"SHOTS",{"type":21,"tag":322,"props":5089,"children":5090},{"style":3648},[5091],{"type":26,"value":5092}," =",{"type":21,"tag":322,"props":5094,"children":5095},{"style":348},[5096],{"type":26,"value":5097}," 40000\n",{"type":21,"tag":322,"props":5099,"children":5101},{"class":324,"line":5100},17,[5102],{"type":21,"tag":322,"props":5103,"children":5104},{"emptyLinePlaceholder":3672},[5105],{"type":26,"value":3675},{"type":21,"tag":322,"props":5107,"children":5109},{"class":324,"line":5108},18,[5110,5114,5119,5124,5128,5133],{"type":21,"tag":322,"props":5111,"children":5112},{"style":3648},[5113],{"type":26,"value":4811},{"type":21,"tag":322,"props":5115,"children":5116},{"style":4814},[5117],{"type":26,"value":5118}," calibration_matrix",{"type":21,"tag":322,"props":5120,"children":5121},{"style":329},[5122],{"type":26,"value":5123},"(n, backend, shots",{"type":21,"tag":322,"props":5125,"children":5126},{"style":3648},[5127],{"type":26,"value":3688},{"type":21,"tag":322,"props":5129,"children":5130},{"style":348},[5131],{"type":26,"value":5132},"20000",{"type":21,"tag":322,"props":5134,"children":5135},{"style":329},[5136],{"type":26,"value":4864},{"type":21,"tag":322,"props":5138,"children":5140},{"class":324,"line":5139},19,[5141,5146,5150,5155,5159,5164,5169,5173,5177],{"type":21,"tag":322,"props":5142,"children":5143},{"style":329},[5144],{"type":26,"value":5145},"    M ",{"type":21,"tag":322,"props":5147,"children":5148},{"style":3648},[5149],{"type":26,"value":3688},{"type":21,"tag":322,"props":5151,"children":5152},{"style":329},[5153],{"type":26,"value":5154}," np.zeros((",{"type":21,"tag":322,"props":5156,"children":5157},{"style":348},[5158],{"type":26,"value":423},{"type":21,"tag":322,"props":5160,"children":5161},{"style":3648},[5162],{"type":26,"value":5163},"**",{"type":21,"tag":322,"props":5165,"children":5166},{"style":329},[5167],{"type":26,"value":5168},"n, ",{"type":21,"tag":322,"props":5170,"children":5171},{"style":348},[5172],{"type":26,"value":423},{"type":21,"tag":322,"props":5174,"children":5175},{"style":3648},[5176],{"type":26,"value":5163},{"type":21,"tag":322,"props":5178,"children":5179},{"style":329},[5180],{"type":26,"value":5181},"n))\n",{"type":21,"tag":322,"props":5183,"children":5185},{"class":324,"line":5184},20,[5186,5191,5196,5200,5204,5208,5212,5216],{"type":21,"tag":322,"props":5187,"children":5188},{"style":3648},[5189],{"type":26,"value":5190},"    for",{"type":21,"tag":322,"props":5192,"children":5193},{"style":329},[5194],{"type":26,"value":5195}," i ",{"type":21,"tag":322,"props":5197,"children":5198},{"style":3648},[5199],{"type":26,"value":3951},{"type":21,"tag":322,"props":5201,"children":5202},{"style":348},[5203],{"type":26,"value":3956},{"type":21,"tag":322,"props":5205,"children":5206},{"style":329},[5207],{"type":26,"value":3768},{"type":21,"tag":322,"props":5209,"children":5210},{"style":348},[5211],{"type":26,"value":423},{"type":21,"tag":322,"props":5213,"children":5214},{"style":3648},[5215],{"type":26,"value":5163},{"type":21,"tag":322,"props":5217,"children":5218},{"style":329},[5219],{"type":26,"value":5220},"n):\n",{"type":21,"tag":322,"props":5222,"children":5224},{"class":324,"line":5223},21,[5225,5230,5234],{"type":21,"tag":322,"props":5226,"children":5227},{"style":329},[5228],{"type":26,"value":5229},"        qc ",{"type":21,"tag":322,"props":5231,"children":5232},{"style":3648},[5233],{"type":26,"value":3688},{"type":21,"tag":322,"props":5235,"children":5236},{"style":329},[5237],{"type":26,"value":5238}," QuantumCircuit(n, n)\n",{"type":21,"tag":322,"props":5240,"children":5242},{"class":324,"line":5241},22,[5243,5248,5252,5257,5262,5266,5271,5275,5280,5284,5289,5294,5299,5303,5308],{"type":21,"tag":322,"props":5244,"children":5245},{"style":329},[5246],{"type":26,"value":5247},"        bits ",{"type":21,"tag":322,"props":5249,"children":5250},{"style":3648},[5251],{"type":26,"value":3688},{"type":21,"tag":322,"props":5253,"children":5254},{"style":348},[5255],{"type":26,"value":5256}," format",{"type":21,"tag":322,"props":5258,"children":5259},{"style":329},[5260],{"type":26,"value":5261},"(i, ",{"type":21,"tag":322,"props":5263,"children":5264},{"style":3648},[5265],{"type":26,"value":3773},{"type":21,"tag":322,"props":5267,"children":5268},{"style":359},[5269],{"type":26,"value":5270},"\"0",{"type":21,"tag":322,"props":5272,"children":5273},{"style":348},[5274],{"type":26,"value":3783},{"type":21,"tag":322,"props":5276,"children":5277},{"style":329},[5278],{"type":26,"value":5279},"n",{"type":21,"tag":322,"props":5281,"children":5282},{"style":348},[5283],{"type":26,"value":3793},{"type":21,"tag":322,"props":5285,"children":5286},{"style":359},[5287],{"type":26,"value":5288},"b\"",{"type":21,"tag":322,"props":5290,"children":5291},{"style":329},[5292],{"type":26,"value":5293},")[::",{"type":21,"tag":322,"props":5295,"children":5296},{"style":3648},[5297],{"type":26,"value":5298},"-",{"type":21,"tag":322,"props":5300,"children":5301},{"style":348},[5302],{"type":26,"value":4004},{"type":21,"tag":322,"props":5304,"children":5305},{"style":329},[5306],{"type":26,"value":5307},"]      ",{"type":21,"tag":322,"props":5309,"children":5310},{"style":3898},[5311],{"type":26,"value":5312},"# Qiskit is little-endian\n",{"type":21,"tag":322,"props":5314,"children":5316},{"class":324,"line":5315},23,[5317,5322,5327,5331,5336],{"type":21,"tag":322,"props":5318,"children":5319},{"style":3648},[5320],{"type":26,"value":5321},"        for",{"type":21,"tag":322,"props":5323,"children":5324},{"style":329},[5325],{"type":26,"value":5326}," q, b ",{"type":21,"tag":322,"props":5328,"children":5329},{"style":3648},[5330],{"type":26,"value":3951},{"type":21,"tag":322,"props":5332,"children":5333},{"style":348},[5334],{"type":26,"value":5335}," enumerate",{"type":21,"tag":322,"props":5337,"children":5338},{"style":329},[5339],{"type":26,"value":5340},"(bits):\n",{"type":21,"tag":322,"props":5342,"children":5344},{"class":324,"line":5343},24,[5345,5350,5355,5360,5365],{"type":21,"tag":322,"props":5346,"children":5347},{"style":3648},[5348],{"type":26,"value":5349},"            if",{"type":21,"tag":322,"props":5351,"children":5352},{"style":329},[5353],{"type":26,"value":5354}," b ",{"type":21,"tag":322,"props":5356,"children":5357},{"style":3648},[5358],{"type":26,"value":5359},"==",{"type":21,"tag":322,"props":5361,"children":5362},{"style":359},[5363],{"type":26,"value":5364}," \"1\"",{"type":21,"tag":322,"props":5366,"children":5367},{"style":329},[5368],{"type":26,"value":5369},":\n",{"type":21,"tag":322,"props":5371,"children":5373},{"class":324,"line":5372},25,[5374],{"type":21,"tag":322,"props":5375,"children":5376},{"style":329},[5377],{"type":26,"value":5378},"                qc.x(q)\n",{"type":21,"tag":322,"props":5380,"children":5382},{"class":324,"line":5381},26,[5383,5388,5393,5398,5402],{"type":21,"tag":322,"props":5384,"children":5385},{"style":329},[5386],{"type":26,"value":5387},"        qc.measure(",{"type":21,"tag":322,"props":5389,"children":5390},{"style":348},[5391],{"type":26,"value":5392},"range",{"type":21,"tag":322,"props":5394,"children":5395},{"style":329},[5396],{"type":26,"value":5397},"(n), ",{"type":21,"tag":322,"props":5399,"children":5400},{"style":348},[5401],{"type":26,"value":5392},{"type":21,"tag":322,"props":5403,"children":5404},{"style":329},[5405],{"type":26,"value":5406},"(n))\n",{"type":21,"tag":322,"props":5408,"children":5410},{"class":324,"line":5409},27,[5411,5416,5420,5425,5429,5433],{"type":21,"tag":322,"props":5412,"children":5413},{"style":329},[5414],{"type":26,"value":5415},"        counts ",{"type":21,"tag":322,"props":5417,"children":5418},{"style":3648},[5419],{"type":26,"value":3688},{"type":21,"tag":322,"props":5421,"children":5422},{"style":329},[5423],{"type":26,"value":5424}," backend.run(transpile(qc, backend), ",{"type":21,"tag":322,"props":5426,"children":5427},{"style":3713},[5428],{"type":26,"value":4573},{"type":21,"tag":322,"props":5430,"children":5431},{"style":3648},[5432],{"type":26,"value":3688},{"type":21,"tag":322,"props":5434,"children":5435},{"style":329},[5436],{"type":26,"value":5437},"shots).result().get_counts()\n",{"type":21,"tag":322,"props":5439,"children":5441},{"class":324,"line":5440},28,[5442,5446,5451,5455],{"type":21,"tag":322,"props":5443,"children":5444},{"style":3648},[5445],{"type":26,"value":5321},{"type":21,"tag":322,"props":5447,"children":5448},{"style":329},[5449],{"type":26,"value":5450}," key, v ",{"type":21,"tag":322,"props":5452,"children":5453},{"style":3648},[5454],{"type":26,"value":3951},{"type":21,"tag":322,"props":5456,"children":5457},{"style":329},[5458],{"type":26,"value":5459}," counts.items():\n",{"type":21,"tag":322,"props":5461,"children":5463},{"class":324,"line":5462},29,[5464,5469,5474,5479,5483,5488,5492,5497,5501],{"type":21,"tag":322,"props":5465,"children":5466},{"style":329},[5467],{"type":26,"value":5468},"            M[",{"type":21,"tag":322,"props":5470,"children":5471},{"style":348},[5472],{"type":26,"value":5473},"int",{"type":21,"tag":322,"props":5475,"children":5476},{"style":329},[5477],{"type":26,"value":5478},"(key, ",{"type":21,"tag":322,"props":5480,"children":5481},{"style":348},[5482],{"type":26,"value":423},{"type":21,"tag":322,"props":5484,"children":5485},{"style":329},[5486],{"type":26,"value":5487},"), i] ",{"type":21,"tag":322,"props":5489,"children":5490},{"style":3648},[5491],{"type":26,"value":3688},{"type":21,"tag":322,"props":5493,"children":5494},{"style":329},[5495],{"type":26,"value":5496}," v ",{"type":21,"tag":322,"props":5498,"children":5499},{"style":3648},[5500],{"type":26,"value":174},{"type":21,"tag":322,"props":5502,"children":5503},{"style":329},[5504],{"type":26,"value":5505}," shots\n",{"type":21,"tag":322,"props":5507,"children":5509},{"class":324,"line":5508},30,[5510,5514],{"type":21,"tag":322,"props":5511,"children":5512},{"style":3648},[5513],{"type":26,"value":5036},{"type":21,"tag":322,"props":5515,"children":5516},{"style":329},[5517],{"type":26,"value":5518}," M\n",{"type":21,"tag":322,"props":5520,"children":5522},{"class":324,"line":5521},31,[5523],{"type":21,"tag":322,"props":5524,"children":5525},{"emptyLinePlaceholder":3672},[5526],{"type":26,"value":3675},{"type":21,"tag":322,"props":5528,"children":5530},{"class":324,"line":5529},32,[5531,5536,5540],{"type":21,"tag":322,"props":5532,"children":5533},{"style":329},[5534],{"type":26,"value":5535},"n ",{"type":21,"tag":322,"props":5537,"children":5538},{"style":3648},[5539],{"type":26,"value":3688},{"type":21,"tag":322,"props":5541,"children":5542},{"style":348},[5543],{"type":26,"value":5544}," 2\n",{"type":21,"tag":322,"props":5546,"children":5548},{"class":324,"line":5547},33,[5549,5554,5558],{"type":21,"tag":322,"props":5550,"children":5551},{"style":329},[5552],{"type":26,"value":5553},"Minv ",{"type":21,"tag":322,"props":5555,"children":5556},{"style":3648},[5557],{"type":26,"value":3688},{"type":21,"tag":322,"props":5559,"children":5560},{"style":329},[5561],{"type":26,"value":5562}," np.linalg.pinv(calibration_matrix(n, backend))\n",{"type":21,"tag":322,"props":5564,"children":5566},{"class":324,"line":5565},34,[5567],{"type":21,"tag":322,"props":5568,"children":5569},{"emptyLinePlaceholder":3672},[5570],{"type":26,"value":3675},{"type":21,"tag":322,"props":5572,"children":5574},{"class":324,"line":5573},35,[5575,5580,5584,5589,5593,5597,5601],{"type":21,"tag":322,"props":5576,"children":5577},{"style":329},[5578],{"type":26,"value":5579},"bell ",{"type":21,"tag":322,"props":5581,"children":5582},{"style":3648},[5583],{"type":26,"value":3688},{"type":21,"tag":322,"props":5585,"children":5586},{"style":329},[5587],{"type":26,"value":5588}," QuantumCircuit(",{"type":21,"tag":322,"props":5590,"children":5591},{"style":348},[5592],{"type":26,"value":423},{"type":21,"tag":322,"props":5594,"children":5595},{"style":329},[5596],{"type":26,"value":367},{"type":21,"tag":322,"props":5598,"children":5599},{"style":348},[5600],{"type":26,"value":423},{"type":21,"tag":322,"props":5602,"children":5603},{"style":329},[5604],{"type":26,"value":3748},{"type":21,"tag":322,"props":5606,"children":5608},{"class":324,"line":5607},36,[5609,5614,5619],{"type":21,"tag":322,"props":5610,"children":5611},{"style":329},[5612],{"type":26,"value":5613},"bell.h(",{"type":21,"tag":322,"props":5615,"children":5616},{"style":348},[5617],{"type":26,"value":5618},"0",{"type":21,"tag":322,"props":5620,"children":5621},{"style":329},[5622],{"type":26,"value":3748},{"type":21,"tag":322,"props":5624,"children":5626},{"class":324,"line":5625},37,[5627,5632,5636,5640,5644],{"type":21,"tag":322,"props":5628,"children":5629},{"style":329},[5630],{"type":26,"value":5631},"bell.cx(",{"type":21,"tag":322,"props":5633,"children":5634},{"style":348},[5635],{"type":26,"value":5618},{"type":21,"tag":322,"props":5637,"children":5638},{"style":329},[5639],{"type":26,"value":367},{"type":21,"tag":322,"props":5641,"children":5642},{"style":348},[5643],{"type":26,"value":4004},{"type":21,"tag":322,"props":5645,"children":5646},{"style":329},[5647],{"type":26,"value":3748},{"type":21,"tag":322,"props":5649,"children":5651},{"class":324,"line":5650},38,[5652,5657,5661,5665,5669,5674,5678,5682,5686],{"type":21,"tag":322,"props":5653,"children":5654},{"style":329},[5655],{"type":26,"value":5656},"bell.measure([",{"type":21,"tag":322,"props":5658,"children":5659},{"style":348},[5660],{"type":26,"value":5618},{"type":21,"tag":322,"props":5662,"children":5663},{"style":329},[5664],{"type":26,"value":367},{"type":21,"tag":322,"props":5666,"children":5667},{"style":348},[5668],{"type":26,"value":4004},{"type":21,"tag":322,"props":5670,"children":5671},{"style":329},[5672],{"type":26,"value":5673},"], [",{"type":21,"tag":322,"props":5675,"children":5676},{"style":348},[5677],{"type":26,"value":5618},{"type":21,"tag":322,"props":5679,"children":5680},{"style":329},[5681],{"type":26,"value":367},{"type":21,"tag":322,"props":5683,"children":5684},{"style":348},[5685],{"type":26,"value":4004},{"type":21,"tag":322,"props":5687,"children":5688},{"style":329},[5689],{"type":26,"value":4009},{"type":21,"tag":322,"props":5691,"children":5693},{"class":324,"line":5692},39,[5694],{"type":21,"tag":322,"props":5695,"children":5696},{"emptyLinePlaceholder":3672},[5697],{"type":26,"value":3675},{"type":21,"tag":322,"props":5699,"children":5701},{"class":324,"line":5700},40,[5702,5707,5711,5716,5720,5724,5728],{"type":21,"tag":322,"props":5703,"children":5704},{"style":329},[5705],{"type":26,"value":5706},"raw ",{"type":21,"tag":322,"props":5708,"children":5709},{"style":3648},[5710],{"type":26,"value":3688},{"type":21,"tag":322,"props":5712,"children":5713},{"style":329},[5714],{"type":26,"value":5715}," backend.run(transpile(bell, backend), ",{"type":21,"tag":322,"props":5717,"children":5718},{"style":3713},[5719],{"type":26,"value":4573},{"type":21,"tag":322,"props":5721,"children":5722},{"style":3648},[5723],{"type":26,"value":3688},{"type":21,"tag":322,"props":5725,"children":5726},{"style":348},[5727],{"type":26,"value":5087},{"type":21,"tag":322,"props":5729,"children":5730},{"style":329},[5731],{"type":26,"value":5732},").result().get_counts()\n",{"type":21,"tag":322,"props":5734,"children":5736},{"class":324,"line":5735},41,[5737,5742,5746,5751,5756,5760,5764,5768,5772,5776,5780,5784,5789,5793,5798,5802,5806,5810,5814,5818,5822,5826,5831,5836,5840,5844],{"type":21,"tag":322,"props":5738,"children":5739},{"style":329},[5740],{"type":26,"value":5741},"vec ",{"type":21,"tag":322,"props":5743,"children":5744},{"style":3648},[5745],{"type":26,"value":3688},{"type":21,"tag":322,"props":5747,"children":5748},{"style":329},[5749],{"type":26,"value":5750}," np.array([raw.get(",{"type":21,"tag":322,"props":5752,"children":5753},{"style":348},[5754],{"type":26,"value":5755},"format",{"type":21,"tag":322,"props":5757,"children":5758},{"style":329},[5759],{"type":26,"value":5261},{"type":21,"tag":322,"props":5761,"children":5762},{"style":3648},[5763],{"type":26,"value":3773},{"type":21,"tag":322,"props":5765,"children":5766},{"style":359},[5767],{"type":26,"value":5270},{"type":21,"tag":322,"props":5769,"children":5770},{"style":348},[5771],{"type":26,"value":3783},{"type":21,"tag":322,"props":5773,"children":5774},{"style":329},[5775],{"type":26,"value":5279},{"type":21,"tag":322,"props":5777,"children":5778},{"style":348},[5779],{"type":26,"value":3793},{"type":21,"tag":322,"props":5781,"children":5782},{"style":359},[5783],{"type":26,"value":5288},{"type":21,"tag":322,"props":5785,"children":5786},{"style":329},[5787],{"type":26,"value":5788},"), ",{"type":21,"tag":322,"props":5790,"children":5791},{"style":348},[5792],{"type":26,"value":5618},{"type":21,"tag":322,"props":5794,"children":5795},{"style":329},[5796],{"type":26,"value":5797},") ",{"type":21,"tag":322,"props":5799,"children":5800},{"style":3648},[5801],{"type":26,"value":3941},{"type":21,"tag":322,"props":5803,"children":5804},{"style":329},[5805],{"type":26,"value":5195},{"type":21,"tag":322,"props":5807,"children":5808},{"style":3648},[5809],{"type":26,"value":3951},{"type":21,"tag":322,"props":5811,"children":5812},{"style":348},[5813],{"type":26,"value":3956},{"type":21,"tag":322,"props":5815,"children":5816},{"style":329},[5817],{"type":26,"value":3768},{"type":21,"tag":322,"props":5819,"children":5820},{"style":348},[5821],{"type":26,"value":423},{"type":21,"tag":322,"props":5823,"children":5824},{"style":3648},[5825],{"type":26,"value":5163},{"type":21,"tag":322,"props":5827,"children":5828},{"style":329},[5829],{"type":26,"value":5830},"n)], ",{"type":21,"tag":322,"props":5832,"children":5833},{"style":348},[5834],{"type":26,"value":5835},"float",{"type":21,"tag":322,"props":5837,"children":5838},{"style":329},[5839],{"type":26,"value":5797},{"type":21,"tag":322,"props":5841,"children":5842},{"style":3648},[5843],{"type":26,"value":174},{"type":21,"tag":322,"props":5845,"children":5846},{"style":348},[5847],{"type":26,"value":5848}," SHOTS\n",{"type":21,"tag":322,"props":5850,"children":5852},{"class":324,"line":5851},42,[5853],{"type":21,"tag":322,"props":5854,"children":5855},{"emptyLinePlaceholder":3672},[5856],{"type":26,"value":3675},{"type":21,"tag":322,"props":5858,"children":5860},{"class":324,"line":5859},43,[5861,5866,5870,5875,5880,5885,5889,5893,5898],{"type":21,"tag":322,"props":5862,"children":5863},{"style":329},[5864],{"type":26,"value":5865},"mit ",{"type":21,"tag":322,"props":5867,"children":5868},{"style":3648},[5869],{"type":26,"value":3688},{"type":21,"tag":322,"props":5871,"children":5872},{"style":329},[5873],{"type":26,"value":5874}," np.clip(Minv ",{"type":21,"tag":322,"props":5876,"children":5877},{"style":3648},[5878],{"type":26,"value":5879},"@",{"type":21,"tag":322,"props":5881,"children":5882},{"style":329},[5883],{"type":26,"value":5884}," vec, ",{"type":21,"tag":322,"props":5886,"children":5887},{"style":348},[5888],{"type":26,"value":5618},{"type":21,"tag":322,"props":5890,"children":5891},{"style":329},[5892],{"type":26,"value":367},{"type":21,"tag":322,"props":5894,"children":5895},{"style":348},[5896],{"type":26,"value":5897},"None",{"type":21,"tag":322,"props":5899,"children":5900},{"style":329},[5901],{"type":26,"value":3748},{"type":21,"tag":322,"props":5903,"children":5905},{"class":324,"line":5904},44,[5906,5910,5915],{"type":21,"tag":322,"props":5907,"children":5908},{"style":329},[5909],{"type":26,"value":5865},{"type":21,"tag":322,"props":5911,"children":5912},{"style":3648},[5913],{"type":26,"value":5914},"\u002F=",{"type":21,"tag":322,"props":5916,"children":5917},{"style":329},[5918],{"type":26,"value":5919}," mit.sum()\n",{"type":21,"tag":322,"props":5921,"children":5923},{"class":324,"line":5922},45,[5924],{"type":21,"tag":322,"props":5925,"children":5926},{"emptyLinePlaceholder":3672},[5927],{"type":26,"value":3675},{"type":21,"tag":322,"props":5929,"children":5931},{"class":324,"line":5930},46,[5932,5936,5940,5945,5950,5954,5958,5963,5968,5973,5978,5983,5987,5991,5995,5999,6003,6007,6011],{"type":21,"tag":322,"props":5933,"children":5934},{"style":348},[5935],{"type":26,"value":3763},{"type":21,"tag":322,"props":5937,"children":5938},{"style":329},[5939],{"type":26,"value":3768},{"type":21,"tag":322,"props":5941,"children":5942},{"style":359},[5943],{"type":26,"value":5944},"\"raw      :\"",{"type":21,"tag":322,"props":5946,"children":5947},{"style":329},[5948],{"type":26,"value":5949},", {",{"type":21,"tag":322,"props":5951,"children":5952},{"style":348},[5953],{"type":26,"value":5755},{"type":21,"tag":322,"props":5955,"children":5956},{"style":329},[5957],{"type":26,"value":5261},{"type":21,"tag":322,"props":5959,"children":5960},{"style":359},[5961],{"type":26,"value":5962},"\"02b\"",{"type":21,"tag":322,"props":5964,"children":5965},{"style":329},[5966],{"type":26,"value":5967},"): ",{"type":21,"tag":322,"props":5969,"children":5970},{"style":348},[5971],{"type":26,"value":5972},"round",{"type":21,"tag":322,"props":5974,"children":5975},{"style":329},[5976],{"type":26,"value":5977},"(vec[i], ",{"type":21,"tag":322,"props":5979,"children":5980},{"style":348},[5981],{"type":26,"value":5982},"4",{"type":21,"tag":322,"props":5984,"children":5985},{"style":329},[5986],{"type":26,"value":5797},{"type":21,"tag":322,"props":5988,"children":5989},{"style":3648},[5990],{"type":26,"value":3941},{"type":21,"tag":322,"props":5992,"children":5993},{"style":329},[5994],{"type":26,"value":5195},{"type":21,"tag":322,"props":5996,"children":5997},{"style":3648},[5998],{"type":26,"value":3951},{"type":21,"tag":322,"props":6000,"children":6001},{"style":348},[6002],{"type":26,"value":3956},{"type":21,"tag":322,"props":6004,"children":6005},{"style":329},[6006],{"type":26,"value":3768},{"type":21,"tag":322,"props":6008,"children":6009},{"style":348},[6010],{"type":26,"value":5982},{"type":21,"tag":322,"props":6012,"children":6013},{"style":329},[6014],{"type":26,"value":6015},")})\n",{"type":21,"tag":322,"props":6017,"children":6019},{"class":324,"line":6018},47,[6020,6024,6028,6033,6037,6041,6045,6049,6053,6057,6062,6066,6070,6074,6078,6082,6086,6090,6094],{"type":21,"tag":322,"props":6021,"children":6022},{"style":348},[6023],{"type":26,"value":3763},{"type":21,"tag":322,"props":6025,"children":6026},{"style":329},[6027],{"type":26,"value":3768},{"type":21,"tag":322,"props":6029,"children":6030},{"style":359},[6031],{"type":26,"value":6032},"\"mitigated:\"",{"type":21,"tag":322,"props":6034,"children":6035},{"style":329},[6036],{"type":26,"value":5949},{"type":21,"tag":322,"props":6038,"children":6039},{"style":348},[6040],{"type":26,"value":5755},{"type":21,"tag":322,"props":6042,"children":6043},{"style":329},[6044],{"type":26,"value":5261},{"type":21,"tag":322,"props":6046,"children":6047},{"style":359},[6048],{"type":26,"value":5962},{"type":21,"tag":322,"props":6050,"children":6051},{"style":329},[6052],{"type":26,"value":5967},{"type":21,"tag":322,"props":6054,"children":6055},{"style":348},[6056],{"type":26,"value":5972},{"type":21,"tag":322,"props":6058,"children":6059},{"style":329},[6060],{"type":26,"value":6061},"(mit[i], ",{"type":21,"tag":322,"props":6063,"children":6064},{"style":348},[6065],{"type":26,"value":5982},{"type":21,"tag":322,"props":6067,"children":6068},{"style":329},[6069],{"type":26,"value":5797},{"type":21,"tag":322,"props":6071,"children":6072},{"style":3648},[6073],{"type":26,"value":3941},{"type":21,"tag":322,"props":6075,"children":6076},{"style":329},[6077],{"type":26,"value":5195},{"type":21,"tag":322,"props":6079,"children":6080},{"style":3648},[6081],{"type":26,"value":3951},{"type":21,"tag":322,"props":6083,"children":6084},{"style":348},[6085],{"type":26,"value":3956},{"type":21,"tag":322,"props":6087,"children":6088},{"style":329},[6089],{"type":26,"value":3768},{"type":21,"tag":322,"props":6091,"children":6092},{"style":348},[6093],{"type":26,"value":5982},{"type":21,"tag":322,"props":6095,"children":6096},{"style":329},[6097],{"type":26,"value":6015},{"type":21,"tag":22,"props":6099,"children":6100},{},[6101,6106],{"type":21,"tag":71,"props":6102,"children":6103},{},[6104],{"type":26,"value":6105},"Actual output from running this",{"type":26,"value":6107}," (Qiskit 2.5.0, Aer 0.17.2, 5% readout error):",{"type":21,"tag":312,"props":6109,"children":6111},{"code":6110},"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",[6112],{"type":21,"tag":79,"props":6113,"children":6114},{"__ignoreMap":7},[6115],{"type":26,"value":6110},{"type":21,"tag":22,"props":6117,"children":6118},{},[6119,6121,6127,6128,6134,6136,6142],{"type":26,"value":6120},"A Bell state should produce only ",{"type":21,"tag":79,"props":6122,"children":6124},{"className":6123},[],[6125],{"type":26,"value":6126},"00",{"type":26,"value":236},{"type":21,"tag":79,"props":6129,"children":6131},{"className":6130},[],[6132],{"type":26,"value":6133},"11",{"type":26,"value":6135},". 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":79,"props":6137,"children":6139},{"className":6138},[],[6140],{"type":26,"value":6141},"2^n",{"type":26,"value":6143}," short calibration circuits.",{"type":21,"tag":22,"props":6145,"children":6146},{},[6147,6149,6154,6156,6162,6164,6169],{"type":26,"value":6148},"Two caveats. The ",{"type":21,"tag":79,"props":6150,"children":6152},{"className":6151},[],[6153],{"type":26,"value":6141},{"type":26,"value":6155}," 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":29,"props":6157,"children":6159},{"href":6158},"\u002Fglossary\u002Fshot-noise",[6160],{"type":26,"value":6161},"shot noise",{"type":26,"value":6163},", which is why the code clips negatives. Run your calibration circuits with ",{"type":21,"tag":51,"props":6165,"children":6166},{},[6167],{"type":26,"value":6168},"more",{"type":26,"value":6170}," shots than your actual experiment, not fewer.",{"type":21,"tag":59,"props":6172,"children":6174},{"id":6173},"step-2-dynamical-decoupling-nearly-free",[6175],{"type":26,"value":6176},"Step 2: Dynamical Decoupling (Nearly Free)",{"type":21,"tag":22,"props":6178,"children":6179},{},[6180,6182,6188,6190,6196],{"type":26,"value":6181},"Idle qubits are not safe qubits. While one part of your circuit executes, everything else is dephasing at its ",{"type":21,"tag":29,"props":6183,"children":6185},{"href":6184},"\u002Fglossary\u002Ft1-t2-time",[6186],{"type":26,"value":6187},"T2 rate",{"type":26,"value":6189},". Dynamical decoupling inserts pulse sequences (typically ",{"type":21,"tag":79,"props":6191,"children":6193},{"className":6192},[],[6194],{"type":26,"value":6195},"X–delay–X–delay",{"type":26,"value":6197},") into idle windows, echoing away slow, low-frequency noise.",{"type":21,"tag":22,"props":6199,"children":6200},{},[6201,6203,6209],{"type":26,"value":6202},"In Qiskit this is a ",{"type":21,"tag":29,"props":6204,"children":6206},{"href":6205},"\u002Fglossary\u002Ftranspilation",[6207],{"type":26,"value":6208},"transpilation",{"type":26,"value":6210}," pass, not an algorithm change:",{"type":21,"tag":312,"props":6212,"children":6214},{"code":6213,"language":3638,"meta":7,"className":3636,"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",[6215],{"type":21,"tag":79,"props":6216,"children":6217},{"__ignoreMap":7},[6218,6239,6260,6281,6288,6305,6327,6335,6352,6374,6382,6389],{"type":21,"tag":322,"props":6219,"children":6220},{"class":324,"line":325},[6221,6225,6230,6234],{"type":21,"tag":322,"props":6222,"children":6223},{"style":3648},[6224],{"type":26,"value":3651},{"type":21,"tag":322,"props":6226,"children":6227},{"style":329},[6228],{"type":26,"value":6229}," qiskit.transpiler ",{"type":21,"tag":322,"props":6231,"children":6232},{"style":3648},[6233],{"type":26,"value":3661},{"type":21,"tag":322,"props":6235,"children":6236},{"style":329},[6237],{"type":26,"value":6238}," PassManager\n",{"type":21,"tag":322,"props":6240,"children":6241},{"class":324,"line":335},[6242,6246,6251,6255],{"type":21,"tag":322,"props":6243,"children":6244},{"style":3648},[6245],{"type":26,"value":3651},{"type":21,"tag":322,"props":6247,"children":6248},{"style":329},[6249],{"type":26,"value":6250}," qiskit.transpiler.passes ",{"type":21,"tag":322,"props":6252,"children":6253},{"style":3648},[6254],{"type":26,"value":3661},{"type":21,"tag":322,"props":6256,"children":6257},{"style":329},[6258],{"type":26,"value":6259}," ALAPScheduleAnalysis, PadDynamicalDecoupling\n",{"type":21,"tag":322,"props":6261,"children":6262},{"class":324,"line":344},[6263,6267,6272,6276],{"type":21,"tag":322,"props":6264,"children":6265},{"style":3648},[6266],{"type":26,"value":3651},{"type":21,"tag":322,"props":6268,"children":6269},{"style":329},[6270],{"type":26,"value":6271}," qiskit.circuit.library ",{"type":21,"tag":322,"props":6273,"children":6274},{"style":3648},[6275],{"type":26,"value":3661},{"type":21,"tag":322,"props":6277,"children":6278},{"style":329},[6279],{"type":26,"value":6280}," XGate\n",{"type":21,"tag":322,"props":6282,"children":6283},{"class":324,"line":407},[6284],{"type":21,"tag":322,"props":6285,"children":6286},{"emptyLinePlaceholder":3672},[6287],{"type":26,"value":3675},{"type":21,"tag":322,"props":6289,"children":6290},{"class":324,"line":431},[6291,6296,6300],{"type":21,"tag":322,"props":6292,"children":6293},{"style":329},[6294],{"type":26,"value":6295},"pm ",{"type":21,"tag":322,"props":6297,"children":6298},{"style":3648},[6299],{"type":26,"value":3688},{"type":21,"tag":322,"props":6301,"children":6302},{"style":329},[6303],{"type":26,"value":6304}," PassManager([\n",{"type":21,"tag":322,"props":6306,"children":6307},{"class":324,"line":453},[6308,6313,6318,6322],{"type":21,"tag":322,"props":6309,"children":6310},{"style":329},[6311],{"type":26,"value":6312},"    ALAPScheduleAnalysis(",{"type":21,"tag":322,"props":6314,"children":6315},{"style":3713},[6316],{"type":26,"value":6317},"durations",{"type":21,"tag":322,"props":6319,"children":6320},{"style":3648},[6321],{"type":26,"value":3688},{"type":21,"tag":322,"props":6323,"children":6324},{"style":329},[6325],{"type":26,"value":6326},"backend.instruction_durations),\n",{"type":21,"tag":322,"props":6328,"children":6329},{"class":324,"line":474},[6330],{"type":21,"tag":322,"props":6331,"children":6332},{"style":329},[6333],{"type":26,"value":6334},"    PadDynamicalDecoupling(\n",{"type":21,"tag":322,"props":6336,"children":6337},{"class":324,"line":496},[6338,6343,6347],{"type":21,"tag":322,"props":6339,"children":6340},{"style":3713},[6341],{"type":26,"value":6342},"        durations",{"type":21,"tag":322,"props":6344,"children":6345},{"style":3648},[6346],{"type":26,"value":3688},{"type":21,"tag":322,"props":6348,"children":6349},{"style":329},[6350],{"type":26,"value":6351},"backend.instruction_durations,\n",{"type":21,"tag":322,"props":6353,"children":6354},{"class":324,"line":16},[6355,6360,6364,6369],{"type":21,"tag":322,"props":6356,"children":6357},{"style":3713},[6358],{"type":26,"value":6359},"        dd_sequence",{"type":21,"tag":322,"props":6361,"children":6362},{"style":3648},[6363],{"type":26,"value":3688},{"type":21,"tag":322,"props":6365,"children":6366},{"style":329},[6367],{"type":26,"value":6368},"[XGate(), XGate()],   ",{"type":21,"tag":322,"props":6370,"children":6371},{"style":3898},[6372],{"type":26,"value":6373},"# XX sequence\n",{"type":21,"tag":322,"props":6375,"children":6376},{"class":324,"line":3894},[6377],{"type":21,"tag":322,"props":6378,"children":6379},{"style":329},[6380],{"type":26,"value":6381},"    ),\n",{"type":21,"tag":322,"props":6383,"children":6384},{"class":324,"line":3904},[6385],{"type":21,"tag":322,"props":6386,"children":6387},{"style":329},[6388],{"type":26,"value":4009},{"type":21,"tag":322,"props":6390,"children":6391},{"class":324,"line":1043},[6392,6397,6401],{"type":21,"tag":322,"props":6393,"children":6394},{"style":329},[6395],{"type":26,"value":6396},"dd_circuit ",{"type":21,"tag":322,"props":6398,"children":6399},{"style":3648},[6400],{"type":26,"value":3688},{"type":21,"tag":322,"props":6402,"children":6403},{"style":329},[6404],{"type":26,"value":6405}," pm.run(transpiled_circuit)\n",{"type":21,"tag":22,"props":6407,"children":6408},{},[6409],{"type":26,"value":6410},"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":59,"props":6412,"children":6414},{"id":6413},"step-3-pauli-twirling-randomized-compiling",[6415],{"type":26,"value":6416},"Step 3: Pauli Twirling \u002F Randomized Compiling",{"type":21,"tag":22,"props":6418,"children":6419},{},[6420,6422,6427],{"type":26,"value":6421},"Coherent errors are the nasty kind. A systematic over-rotation of 0.5° per gate doesn't average out. It accumulates ",{"type":21,"tag":51,"props":6423,"children":6424},{},[6425],{"type":26,"value":6426},"linearly",{"type":26,"value":6428}," in amplitude, so error in the expectation value grows quadratically with depth. Stochastic errors merely accumulate additively.",{"type":21,"tag":22,"props":6430,"children":6431},{},[6432],{"type":26,"value":6433},"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":6435,"children":6436},{},[6437,6439,6444],{"type":26,"value":6438},"Twirling rarely improves accuracy much on its own. Its real value is that it makes the noise ",{"type":21,"tag":51,"props":6440,"children":6441},{},[6442],{"type":26,"value":6443},"model-able",{"type":26,"value":6445},", 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":59,"props":6447,"children":6449},{"id":6448},"step-4-zero-noise-extrapolation",[6450],{"type":26,"value":6451},"Step 4: Zero-Noise Extrapolation",{"type":21,"tag":22,"props":6453,"children":6454},{},[6455,6457,6462],{"type":26,"value":6456},"ZNE is the technique behind most headline NISQ results, including IBM's ",{"type":21,"tag":29,"props":6458,"children":6459},{"href":2064},[6460],{"type":26,"value":6461},"quantum utility demonstration",{"type":26,"value":6463}," on a 127-qubit Eagle processor.",{"type":21,"tag":22,"props":6465,"children":6466},{},[6467,6469,6474,6476,6482,6484,6490],{"type":26,"value":6468},"The idea: you can't reduce hardware noise, but you ",{"type":21,"tag":51,"props":6470,"children":6471},{},[6472],{"type":26,"value":6473},"increase",{"type":26,"value":6475}," it in a controlled way. Run the same circuit at noise scale factors λ = 1, 3, 5 (via unitary folding: replace ",{"type":21,"tag":79,"props":6477,"children":6479},{"className":6478},[],[6480],{"type":26,"value":6481},"U",{"type":26,"value":6483}," with ",{"type":21,"tag":79,"props":6485,"children":6487},{"className":6486},[],[6488],{"type":26,"value":6489},"U(U†U)^k",{"type":26,"value":6491},", 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":312,"props":6493,"children":6495},{"code":6494,"language":3638,"meta":7,"className":3636,"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",[6496],{"type":21,"tag":79,"props":6497,"children":6498},{"__ignoreMap":7},[6499,6516,6524,6563,6580,6605,6622,6634,6641,6671,6688,6696,6713,6751,6759,6849,6879,6886,6894,6918,6934,6966,6987,7018,7049,7069,7088,7095,7138,7173,7212],{"type":21,"tag":322,"props":6500,"children":6501},{"class":324,"line":325},[6502,6506,6511],{"type":21,"tag":322,"props":6503,"children":6504},{"style":3648},[6505],{"type":26,"value":4811},{"type":21,"tag":322,"props":6507,"children":6508},{"style":4814},[6509],{"type":26,"value":6510}," fold_global",{"type":21,"tag":322,"props":6512,"children":6513},{"style":329},[6514],{"type":26,"value":6515},"(qc, scale):\n",{"type":21,"tag":322,"props":6517,"children":6518},{"class":324,"line":335},[6519],{"type":21,"tag":322,"props":6520,"children":6521},{"style":359},[6522],{"type":26,"value":6523},"    \"\"\"Odd integer scale: U -> U (U^dag U)^k\"\"\"\n",{"type":21,"tag":322,"props":6525,"children":6526},{"class":324,"line":344},[6527,6532,6536,6541,6545,6550,6554,6559],{"type":21,"tag":322,"props":6528,"children":6529},{"style":329},[6530],{"type":26,"value":6531},"    k ",{"type":21,"tag":322,"props":6533,"children":6534},{"style":3648},[6535],{"type":26,"value":3688},{"type":21,"tag":322,"props":6537,"children":6538},{"style":329},[6539],{"type":26,"value":6540}," (scale ",{"type":21,"tag":322,"props":6542,"children":6543},{"style":3648},[6544],{"type":26,"value":5298},{"type":21,"tag":322,"props":6546,"children":6547},{"style":348},[6548],{"type":26,"value":6549}," 1",{"type":21,"tag":322,"props":6551,"children":6552},{"style":329},[6553],{"type":26,"value":5797},{"type":21,"tag":322,"props":6555,"children":6556},{"style":3648},[6557],{"type":26,"value":6558},"\u002F\u002F",{"type":21,"tag":322,"props":6560,"children":6561},{"style":348},[6562],{"type":26,"value":5544},{"type":21,"tag":322,"props":6564,"children":6565},{"class":324,"line":407},[6566,6571,6575],{"type":21,"tag":322,"props":6567,"children":6568},{"style":329},[6569],{"type":26,"value":6570},"    out, inv ",{"type":21,"tag":322,"props":6572,"children":6573},{"style":3648},[6574],{"type":26,"value":3688},{"type":21,"tag":322,"props":6576,"children":6577},{"style":329},[6578],{"type":26,"value":6579}," qc.copy(), qc.inverse()\n",{"type":21,"tag":322,"props":6581,"children":6582},{"class":324,"line":431},[6583,6587,6592,6596,6600],{"type":21,"tag":322,"props":6584,"children":6585},{"style":3648},[6586],{"type":26,"value":5190},{"type":21,"tag":322,"props":6588,"children":6589},{"style":329},[6590],{"type":26,"value":6591}," _ ",{"type":21,"tag":322,"props":6593,"children":6594},{"style":3648},[6595],{"type":26,"value":3951},{"type":21,"tag":322,"props":6597,"children":6598},{"style":348},[6599],{"type":26,"value":3956},{"type":21,"tag":322,"props":6601,"children":6602},{"style":329},[6603],{"type":26,"value":6604},"(k):\n",{"type":21,"tag":322,"props":6606,"children":6607},{"class":324,"line":453},[6608,6613,6617],{"type":21,"tag":322,"props":6609,"children":6610},{"style":329},[6611],{"type":26,"value":6612},"        out ",{"type":21,"tag":322,"props":6614,"children":6615},{"style":3648},[6616],{"type":26,"value":3688},{"type":21,"tag":322,"props":6618,"children":6619},{"style":329},[6620],{"type":26,"value":6621}," out.compose(inv).compose(qc)\n",{"type":21,"tag":322,"props":6623,"children":6624},{"class":324,"line":474},[6625,6629],{"type":21,"tag":322,"props":6626,"children":6627},{"style":3648},[6628],{"type":26,"value":5036},{"type":21,"tag":322,"props":6630,"children":6631},{"style":329},[6632],{"type":26,"value":6633}," out\n",{"type":21,"tag":322,"props":6635,"children":6636},{"class":324,"line":496},[6637],{"type":21,"tag":322,"props":6638,"children":6639},{"emptyLinePlaceholder":3672},[6640],{"type":26,"value":3675},{"type":21,"tag":322,"props":6642,"children":6643},{"class":324,"line":16},[6644,6648,6653,6658,6662,6667],{"type":21,"tag":322,"props":6645,"children":6646},{"style":3648},[6647],{"type":26,"value":4811},{"type":21,"tag":322,"props":6649,"children":6650},{"style":4814},[6651],{"type":26,"value":6652}," expval_parity",{"type":21,"tag":322,"props":6654,"children":6655},{"style":329},[6656],{"type":26,"value":6657},"(qc, backend, shots",{"type":21,"tag":322,"props":6659,"children":6660},{"style":3648},[6661],{"type":26,"value":3688},{"type":21,"tag":322,"props":6663,"children":6664},{"style":348},[6665],{"type":26,"value":6666},"40000",{"type":21,"tag":322,"props":6668,"children":6669},{"style":329},[6670],{"type":26,"value":4864},{"type":21,"tag":322,"props":6672,"children":6673},{"class":324,"line":3894},[6674,6679,6683],{"type":21,"tag":322,"props":6675,"children":6676},{"style":329},[6677],{"type":26,"value":6678},"    c ",{"type":21,"tag":322,"props":6680,"children":6681},{"style":3648},[6682],{"type":26,"value":3688},{"type":21,"tag":322,"props":6684,"children":6685},{"style":329},[6686],{"type":26,"value":6687}," qc.copy()\n",{"type":21,"tag":322,"props":6689,"children":6690},{"class":324,"line":3904},[6691],{"type":21,"tag":322,"props":6692,"children":6693},{"style":329},[6694],{"type":26,"value":6695},"    c.measure_all()\n",{"type":21,"tag":322,"props":6697,"children":6698},{"class":324,"line":1043},[6699,6704,6708],{"type":21,"tag":322,"props":6700,"children":6701},{"style":329},[6702],{"type":26,"value":6703},"    counts ",{"type":21,"tag":322,"props":6705,"children":6706},{"style":3648},[6707],{"type":26,"value":3688},{"type":21,"tag":322,"props":6709,"children":6710},{"style":329},[6711],{"type":26,"value":6712}," backend.run(\n",{"type":21,"tag":322,"props":6714,"children":6715},{"class":324,"line":3964},[6716,6721,6726,6730,6734,6738,6742,6746],{"type":21,"tag":322,"props":6717,"children":6718},{"style":329},[6719],{"type":26,"value":6720},"        transpile(c, backend, ",{"type":21,"tag":322,"props":6722,"children":6723},{"style":3713},[6724],{"type":26,"value":6725},"optimization_level",{"type":21,"tag":322,"props":6727,"children":6728},{"style":3648},[6729],{"type":26,"value":3688},{"type":21,"tag":322,"props":6731,"children":6732},{"style":348},[6733],{"type":26,"value":5618},{"type":21,"tag":322,"props":6735,"children":6736},{"style":329},[6737],{"type":26,"value":5788},{"type":21,"tag":322,"props":6739,"children":6740},{"style":3713},[6741],{"type":26,"value":4573},{"type":21,"tag":322,"props":6743,"children":6744},{"style":3648},[6745],{"type":26,"value":3688},{"type":21,"tag":322,"props":6747,"children":6748},{"style":329},[6749],{"type":26,"value":6750},"shots\n",{"type":21,"tag":322,"props":6752,"children":6753},{"class":324,"line":4012},[6754],{"type":21,"tag":322,"props":6755,"children":6756},{"style":329},[6757],{"type":26,"value":6758},"    ).result().get_counts()\n",{"type":21,"tag":322,"props":6760,"children":6761},{"class":324,"line":4054},[6762,6766,6771,6776,6780,6784,6788,6792,6797,6802,6806,6811,6816,6821,6825,6830,6835,6839,6844],{"type":21,"tag":322,"props":6763,"children":6764},{"style":3648},[6765],{"type":26,"value":5036},{"type":21,"tag":322,"props":6767,"children":6768},{"style":348},[6769],{"type":26,"value":6770}," sum",{"type":21,"tag":322,"props":6772,"children":6773},{"style":329},[6774],{"type":26,"value":6775},"((",{"type":21,"tag":322,"props":6777,"children":6778},{"style":3648},[6779],{"type":26,"value":5298},{"type":21,"tag":322,"props":6781,"children":6782},{"style":348},[6783],{"type":26,"value":4004},{"type":21,"tag":322,"props":6785,"children":6786},{"style":329},[6787],{"type":26,"value":5797},{"type":21,"tag":322,"props":6789,"children":6790},{"style":3648},[6791],{"type":26,"value":5163},{"type":21,"tag":322,"props":6793,"children":6794},{"style":329},[6795],{"type":26,"value":6796}," (k.replace(",{"type":21,"tag":322,"props":6798,"children":6799},{"style":359},[6800],{"type":26,"value":6801},"\" \"",{"type":21,"tag":322,"props":6803,"children":6804},{"style":329},[6805],{"type":26,"value":367},{"type":21,"tag":322,"props":6807,"children":6808},{"style":359},[6809],{"type":26,"value":6810},"\"\"",{"type":21,"tag":322,"props":6812,"children":6813},{"style":329},[6814],{"type":26,"value":6815},").count(",{"type":21,"tag":322,"props":6817,"children":6818},{"style":359},[6819],{"type":26,"value":6820},"\"1\"",{"type":21,"tag":322,"props":6822,"children":6823},{"style":329},[6824],{"type":26,"value":5797},{"type":21,"tag":322,"props":6826,"children":6827},{"style":3648},[6828],{"type":26,"value":6829},"%",{"type":21,"tag":322,"props":6831,"children":6832},{"style":348},[6833],{"type":26,"value":6834}," 2",{"type":21,"tag":322,"props":6836,"children":6837},{"style":329},[6838],{"type":26,"value":5797},{"type":21,"tag":322,"props":6840,"children":6841},{"style":3648},[6842],{"type":26,"value":6843},"*",{"type":21,"tag":322,"props":6845,"children":6846},{"style":329},[6847],{"type":26,"value":6848}," v\n",{"type":21,"tag":322,"props":6850,"children":6851},{"class":324,"line":5081},[6852,6857,6862,6866,6871,6875],{"type":21,"tag":322,"props":6853,"children":6854},{"style":3648},[6855],{"type":26,"value":6856},"               for",{"type":21,"tag":322,"props":6858,"children":6859},{"style":329},[6860],{"type":26,"value":6861}," k, v ",{"type":21,"tag":322,"props":6863,"children":6864},{"style":3648},[6865],{"type":26,"value":3951},{"type":21,"tag":322,"props":6867,"children":6868},{"style":329},[6869],{"type":26,"value":6870}," counts.items()) ",{"type":21,"tag":322,"props":6872,"children":6873},{"style":3648},[6874],{"type":26,"value":174},{"type":21,"tag":322,"props":6876,"children":6877},{"style":329},[6878],{"type":26,"value":5505},{"type":21,"tag":322,"props":6880,"children":6881},{"class":324,"line":5100},[6882],{"type":21,"tag":322,"props":6883,"children":6884},{"emptyLinePlaceholder":3672},[6885],{"type":26,"value":3675},{"type":21,"tag":322,"props":6887,"children":6888},{"class":324,"line":5108},[6889],{"type":21,"tag":322,"props":6890,"children":6891},{"style":3898},[6892],{"type":26,"value":6893},"# 4-qubit GHZ padded with cancelling CX pairs, ideal \u003CZZZZ> = +1.0\n",{"type":21,"tag":322,"props":6895,"children":6896},{"class":324,"line":5139},[6897,6902,6906,6910,6914],{"type":21,"tag":322,"props":6898,"children":6899},{"style":329},[6900],{"type":26,"value":6901},"base ",{"type":21,"tag":322,"props":6903,"children":6904},{"style":3648},[6905],{"type":26,"value":3688},{"type":21,"tag":322,"props":6907,"children":6908},{"style":329},[6909],{"type":26,"value":5588},{"type":21,"tag":322,"props":6911,"children":6912},{"style":348},[6913],{"type":26,"value":5982},{"type":21,"tag":322,"props":6915,"children":6916},{"style":329},[6917],{"type":26,"value":3748},{"type":21,"tag":322,"props":6919,"children":6920},{"class":324,"line":5184},[6921,6926,6930],{"type":21,"tag":322,"props":6922,"children":6923},{"style":329},[6924],{"type":26,"value":6925},"base.h(",{"type":21,"tag":322,"props":6927,"children":6928},{"style":348},[6929],{"type":26,"value":5618},{"type":21,"tag":322,"props":6931,"children":6932},{"style":329},[6933],{"type":26,"value":3748},{"type":21,"tag":322,"props":6935,"children":6936},{"class":324,"line":5223},[6937,6941,6945,6949,6953,6957,6962],{"type":21,"tag":322,"props":6938,"children":6939},{"style":3648},[6940],{"type":26,"value":3941},{"type":21,"tag":322,"props":6942,"children":6943},{"style":329},[6944],{"type":26,"value":3946},{"type":21,"tag":322,"props":6946,"children":6947},{"style":3648},[6948],{"type":26,"value":3951},{"type":21,"tag":322,"props":6950,"children":6951},{"style":348},[6952],{"type":26,"value":3956},{"type":21,"tag":322,"props":6954,"children":6955},{"style":329},[6956],{"type":26,"value":3768},{"type":21,"tag":322,"props":6958,"children":6959},{"style":348},[6960],{"type":26,"value":6961},"3",{"type":21,"tag":322,"props":6963,"children":6964},{"style":329},[6965],{"type":26,"value":4864},{"type":21,"tag":322,"props":6967,"children":6968},{"class":324,"line":5241},[6969,6974,6979,6983],{"type":21,"tag":322,"props":6970,"children":6971},{"style":329},[6972],{"type":26,"value":6973},"    base.cx(q, q ",{"type":21,"tag":322,"props":6975,"children":6976},{"style":3648},[6977],{"type":26,"value":6978},"+",{"type":21,"tag":322,"props":6980,"children":6981},{"style":348},[6982],{"type":26,"value":6549},{"type":21,"tag":322,"props":6984,"children":6985},{"style":329},[6986],{"type":26,"value":3748},{"type":21,"tag":322,"props":6988,"children":6989},{"class":324,"line":5315},[6990,6994,6998,7002,7006,7010,7014],{"type":21,"tag":322,"props":6991,"children":6992},{"style":3648},[6993],{"type":26,"value":3941},{"type":21,"tag":322,"props":6995,"children":6996},{"style":329},[6997],{"type":26,"value":6591},{"type":21,"tag":322,"props":6999,"children":7000},{"style":3648},[7001],{"type":26,"value":3951},{"type":21,"tag":322,"props":7003,"children":7004},{"style":348},[7005],{"type":26,"value":3956},{"type":21,"tag":322,"props":7007,"children":7008},{"style":329},[7009],{"type":26,"value":3768},{"type":21,"tag":322,"props":7011,"children":7012},{"style":348},[7013],{"type":26,"value":5982},{"type":21,"tag":322,"props":7015,"children":7016},{"style":329},[7017],{"type":26,"value":4864},{"type":21,"tag":322,"props":7019,"children":7020},{"class":324,"line":5343},[7021,7025,7029,7033,7037,7041,7045],{"type":21,"tag":322,"props":7022,"children":7023},{"style":3648},[7024],{"type":26,"value":5190},{"type":21,"tag":322,"props":7026,"children":7027},{"style":329},[7028],{"type":26,"value":3946},{"type":21,"tag":322,"props":7030,"children":7031},{"style":3648},[7032],{"type":26,"value":3951},{"type":21,"tag":322,"props":7034,"children":7035},{"style":348},[7036],{"type":26,"value":3956},{"type":21,"tag":322,"props":7038,"children":7039},{"style":329},[7040],{"type":26,"value":3768},{"type":21,"tag":322,"props":7042,"children":7043},{"style":348},[7044],{"type":26,"value":6961},{"type":21,"tag":322,"props":7046,"children":7047},{"style":329},[7048],{"type":26,"value":4864},{"type":21,"tag":322,"props":7050,"children":7051},{"class":324,"line":5372},[7052,7057,7061,7065],{"type":21,"tag":322,"props":7053,"children":7054},{"style":329},[7055],{"type":26,"value":7056},"        base.cx(q, q ",{"type":21,"tag":322,"props":7058,"children":7059},{"style":3648},[7060],{"type":26,"value":6978},{"type":21,"tag":322,"props":7062,"children":7063},{"style":348},[7064],{"type":26,"value":6549},{"type":21,"tag":322,"props":7066,"children":7067},{"style":329},[7068],{"type":26,"value":3748},{"type":21,"tag":322,"props":7070,"children":7071},{"class":324,"line":5381},[7072,7076,7080,7084],{"type":21,"tag":322,"props":7073,"children":7074},{"style":329},[7075],{"type":26,"value":7056},{"type":21,"tag":322,"props":7077,"children":7078},{"style":3648},[7079],{"type":26,"value":6978},{"type":21,"tag":322,"props":7081,"children":7082},{"style":348},[7083],{"type":26,"value":6549},{"type":21,"tag":322,"props":7085,"children":7086},{"style":329},[7087],{"type":26,"value":3748},{"type":21,"tag":322,"props":7089,"children":7090},{"class":324,"line":5409},[7091],{"type":21,"tag":322,"props":7092,"children":7093},{"emptyLinePlaceholder":3672},[7094],{"type":26,"value":3675},{"type":21,"tag":322,"props":7096,"children":7097},{"class":324,"line":5440},[7098,7103,7107,7112,7116,7120,7124,7128,7133],{"type":21,"tag":322,"props":7099,"children":7100},{"style":329},[7101],{"type":26,"value":7102},"scales ",{"type":21,"tag":322,"props":7104,"children":7105},{"style":3648},[7106],{"type":26,"value":3688},{"type":21,"tag":322,"props":7108,"children":7109},{"style":329},[7110],{"type":26,"value":7111}," [",{"type":21,"tag":322,"props":7113,"children":7114},{"style":348},[7115],{"type":26,"value":4004},{"type":21,"tag":322,"props":7117,"children":7118},{"style":329},[7119],{"type":26,"value":367},{"type":21,"tag":322,"props":7121,"children":7122},{"style":348},[7123],{"type":26,"value":6961},{"type":21,"tag":322,"props":7125,"children":7126},{"style":329},[7127],{"type":26,"value":367},{"type":21,"tag":322,"props":7129,"children":7130},{"style":348},[7131],{"type":26,"value":7132},"5",{"type":21,"tag":322,"props":7134,"children":7135},{"style":329},[7136],{"type":26,"value":7137},"]\n",{"type":21,"tag":322,"props":7139,"children":7140},{"class":324,"line":5462},[7141,7146,7150,7155,7159,7164,7168],{"type":21,"tag":322,"props":7142,"children":7143},{"style":329},[7144],{"type":26,"value":7145},"vals ",{"type":21,"tag":322,"props":7147,"children":7148},{"style":3648},[7149],{"type":26,"value":3688},{"type":21,"tag":322,"props":7151,"children":7152},{"style":329},[7153],{"type":26,"value":7154}," [expval_parity(fold_global(base, s), backend) ",{"type":21,"tag":322,"props":7156,"children":7157},{"style":3648},[7158],{"type":26,"value":3941},{"type":21,"tag":322,"props":7160,"children":7161},{"style":329},[7162],{"type":26,"value":7163}," s ",{"type":21,"tag":322,"props":7165,"children":7166},{"style":3648},[7167],{"type":26,"value":3951},{"type":21,"tag":322,"props":7169,"children":7170},{"style":329},[7171],{"type":26,"value":7172}," scales]\n",{"type":21,"tag":322,"props":7174,"children":7175},{"class":324,"line":5508},[7176,7181,7185,7190,7194,7198,7202,7207],{"type":21,"tag":322,"props":7177,"children":7178},{"style":329},[7179],{"type":26,"value":7180},"zne ",{"type":21,"tag":322,"props":7182,"children":7183},{"style":3648},[7184],{"type":26,"value":3688},{"type":21,"tag":322,"props":7186,"children":7187},{"style":329},[7188],{"type":26,"value":7189}," np.polyval(np.polyfit(scales, vals, ",{"type":21,"tag":322,"props":7191,"children":7192},{"style":348},[7193],{"type":26,"value":423},{"type":21,"tag":322,"props":7195,"children":7196},{"style":329},[7197],{"type":26,"value":5788},{"type":21,"tag":322,"props":7199,"children":7200},{"style":348},[7201],{"type":26,"value":5618},{"type":21,"tag":322,"props":7203,"children":7204},{"style":329},[7205],{"type":26,"value":7206},")   ",{"type":21,"tag":322,"props":7208,"children":7209},{"style":3898},[7210],{"type":26,"value":7211},"# Richardson, order 2\n",{"type":21,"tag":322,"props":7213,"children":7214},{"class":324,"line":5521},[7215,7219,7224,7229],{"type":21,"tag":322,"props":7216,"children":7217},{"style":348},[7218],{"type":26,"value":3763},{"type":21,"tag":322,"props":7220,"children":7221},{"style":329},[7222],{"type":26,"value":7223},"(vals, ",{"type":21,"tag":322,"props":7225,"children":7226},{"style":359},[7227],{"type":26,"value":7228},"\"->\"",{"type":21,"tag":322,"props":7230,"children":7231},{"style":329},[7232],{"type":26,"value":7233},", zne)\n",{"type":21,"tag":22,"props":7235,"children":7236},{},[7237,7242],{"type":21,"tag":71,"props":7238,"children":7239},{},[7240],{"type":26,"value":7241},"Real measured output",{"type":26,"value":7243},", same versions, readout error switched off to isolate gate noise. With a 0.4% two-qubit error rate:",{"type":21,"tag":312,"props":7245,"children":7247},{"code":7246},"scale 1: 0.8973   scale 3: 0.7286   scale 5: 0.5767\nZNE estimate: 0.988   (exact: 1.000)\n",[7248],{"type":21,"tag":79,"props":7249,"children":7250},{"__ignoreMap":7},[7251],{"type":26,"value":7246},{"type":21,"tag":22,"props":7253,"children":7254},{},[7255],{"type":26,"value":7256},"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":59,"props":7258,"children":7260},{"id":7259},"when-zne-lies",[7261],{"type":26,"value":7262},"When ZNE Lies",{"type":21,"tag":22,"props":7264,"children":7265},{},[7266],{"type":26,"value":7267},"Now turn the two-qubit error rate up to 4% and rerun the identical code:",{"type":21,"tag":312,"props":7269,"children":7271},{"code":7270},"scale 1: 0.3311   scale 3: 0.0320   scale 5: 0.0008\nZNE estimate: 0.581   (exact: 1.000)\n",[7272],{"type":21,"tag":79,"props":7273,"children":7274},{"__ignoreMap":7},[7275],{"type":26,"value":7270},{"type":21,"tag":22,"props":7277,"children":7278},{},[7279,7281,7286],{"type":26,"value":7280},"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":51,"props":7282,"children":7283},{},[7284],{"type":26,"value":7285},"gone",{"type":26,"value":7287},". 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":7289,"children":7290},{},[7291,7293,7299,7301,7306,7308,7313],{"type":26,"value":7292},"This is precisely the failure mode Köster and Mauerer characterize in ",{"type":21,"tag":29,"props":7294,"children":7296},{"href":7295},"\u002Fresearch\u002Fzne-artefactual-improvements-2026",[7297],{"type":26,"value":7298},"Artefactual Improvements in Zero-Noise Extrapolation",{"type":26,"value":7300}," (2026). Their finding: once noise amplification pushes past usable signal, ",{"type":21,"tag":71,"props":7302,"children":7303},{},[7304],{"type":26,"value":7305},"Richardson extrapolation degenerates into a fixed rescaling of a single noisy measurement",{"type":26,"value":7307},". 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":51,"props":7309,"children":7310},{},[7311],{"type":26,"value":7312},"overshot",{"type":26,"value":7314}," the ideal value by up to 21%.",{"type":21,"tag":22,"props":7316,"children":7317},{},[7318,7320,7325],{"type":26,"value":7319},"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":51,"props":7321,"children":7322},{},[7323],{"type":26,"value":7324},"larger",{"type":26,"value":7326}," 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":7328,"children":7329},{},[7330,7335],{"type":21,"tag":71,"props":7331,"children":7332},{},[7333],{"type":26,"value":7334},"The operational lesson: improvement magnitude never validates a mitigation result.",{"type":26,"value":7336}," 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":59,"props":7338,"children":7340},{"id":7339},"the-sanity-checks-that-catch-this",[7341],{"type":26,"value":7342},"The Sanity Checks That Catch This",{"type":21,"tag":22,"props":7344,"children":7345},{},[7346],{"type":26,"value":7347},"Three of them, none expensive:",{"type":21,"tag":22,"props":7349,"children":7350},{},[7351,7356,7358,7364],{"type":21,"tag":71,"props":7352,"children":7353},{},[7354],{"type":26,"value":7355},"1. Inspect the raw scale-factor points, always.",{"type":26,"value":7357}," 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":79,"props":7359,"children":7361},{"className":7360},[],[7362],{"type":26,"value":7363},"0.0008",{"type":26,"value":7365}," tells you the extrapolation is unsupported.",{"type":21,"tag":22,"props":7367,"children":7368},{},[7369,7374,7376,7381,7383,7389,7391,7396],{"type":21,"tag":71,"props":7370,"children":7371},{},[7372],{"type":26,"value":7373},"2. Run a negative control.",{"type":26,"value":7375}," Build a variant of your folding that ",{"type":21,"tag":51,"props":7377,"children":7378},{},[7379],{"type":26,"value":7380},"shouldn't",{"type":26,"value":7382}," work (random gates of comparable depth instead of ",{"type":21,"tag":79,"props":7384,"children":7386},{"className":7385},[],[7387],{"type":26,"value":7388},"U†U",{"type":26,"value":7390}," 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":51,"props":7392,"children":7393},{},[7394],{"type":26,"value":7395},"away",{"type":26,"value":7397}," 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":7399,"children":7400},{},[7401,7412],{"type":21,"tag":71,"props":7402,"children":7403},{},[7404,7406,7410],{"type":26,"value":7405},"3. Verify against a ",{"type":21,"tag":29,"props":7407,"children":7408},{"href":1014},[7409],{"type":26,"value":3734},{"type":26,"value":7411}," at small scale.",{"type":26,"value":7413}," 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":59,"props":7415,"children":7417},{"id":7416},"probabilistic-error-cancellation-briefly",[7418],{"type":26,"value":7419},"Probabilistic Error Cancellation (Briefly)",{"type":21,"tag":22,"props":7421,"children":7422},{},[7423,7425,7430],{"type":26,"value":7424},"PEC is the rigorous option. Characterize the noise channel precisely, express the ",{"type":21,"tag":51,"props":7426,"children":7427},{},[7428],{"type":26,"value":7429},"inverse",{"type":26,"value":7431}," 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":7433,"children":7434},{},[7435,7437,7443],{"type":26,"value":7436},"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":29,"props":7438,"children":7440},{"href":7439},"\u002Fglossary\u002Fshot-budget",[7441],{"type":26,"value":7442},"shot budget",{"type":26,"value":7444},". For most work, it isn't.",{"type":21,"tag":59,"props":7446,"children":7448},{"id":7447},"what-to-do",[7449],{"type":26,"value":7450},"What To Do",{"type":21,"tag":22,"props":7452,"children":7453},{},[7454],{"type":26,"value":7455},"In order:",{"type":21,"tag":7457,"props":7458,"children":7459},"ol",{},[7460,7470,7480,7490,7500],{"type":21,"tag":3570,"props":7461,"children":7462},{},[7463,7468],{"type":21,"tag":71,"props":7464,"children":7465},{},[7466],{"type":26,"value":7467},"Readout mitigation",{"type":26,"value":7469},": always. Cheap, bounded, low-risk.",{"type":21,"tag":3570,"props":7471,"children":7472},{},[7473,7478],{"type":21,"tag":71,"props":7474,"children":7475},{},[7476],{"type":26,"value":7477},"Dynamical decoupling",{"type":26,"value":7479},": always, if your circuit has idle qubits. Free.",{"type":21,"tag":3570,"props":7481,"children":7482},{},[7483,7488],{"type":21,"tag":71,"props":7484,"children":7485},{},[7486],{"type":26,"value":7487},"Twirling",{"type":26,"value":7489},": if you plan to use ZNE or PEC, so the noise is stochastic.",{"type":21,"tag":3570,"props":7491,"children":7492},{},[7493,7498],{"type":21,"tag":71,"props":7494,"children":7495},{},[7496],{"type":26,"value":7497},"ZNE",{"type":26,"value":7499},": only with scale-factor inspection and a negative control.",{"type":21,"tag":3570,"props":7501,"children":7502},{},[7503,7508],{"type":21,"tag":71,"props":7504,"children":7505},{},[7506],{"type":26,"value":7507},"PEC",{"type":26,"value":7509},": only when the circuit is small and the answer matters more than the cost.",{"type":21,"tag":22,"props":7511,"children":7512},{},[7513,7518,7520,7525,7527,7533],{"type":21,"tag":71,"props":7514,"children":7515},{},[7516],{"type":26,"value":7517},"Skip mitigation entirely when:",{"type":26,"value":7519}," 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":51,"props":7521,"children":7522},{},[7523],{"type":26,"value":7524},"gradient direction",{"type":26,"value":7526},": 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":29,"props":7528,"children":7530},{"href":7529},"\u002Fblog\u002Freduce-shot-count",[7531],{"type":26,"value":7532},"cutting your shot count",{"type":26,"value":534},{"type":21,"tag":22,"props":7535,"children":7536},{},[7537,7539,7545],{"type":26,"value":7538},"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":29,"props":7540,"children":7542},{"href":7541},"\u002Fsdks\u002Fqiskit",[7543],{"type":26,"value":7544},"Qiskit tooling",{"type":26,"value":7546},", always sanity-check against exact simulation, and treat any unvalidated improvement as a hypothesis rather than a result.",{"type":21,"tag":22,"props":7548,"children":7549},{},[7550,7555,7556,7561,7563,7568,7569],{"type":21,"tag":71,"props":7551,"children":7552},{},[7553],{"type":26,"value":7554},"Related:",{"type":26,"value":1911},{"type":21,"tag":29,"props":7557,"children":7558},{"href":859},[7559],{"type":26,"value":7560},"Error correction explained",{"type":26,"value":7562}," · ",{"type":21,"tag":29,"props":7564,"children":7565},{"href":7295},[7566],{"type":26,"value":7567},"ZNE artefacts paper",{"type":26,"value":7562},{"type":21,"tag":29,"props":7570,"children":7572},{"href":7571},"\u002Fglossary\u002Fquantum-utility",[7573],{"type":26,"value":7574},"Quantum utility",{"type":21,"tag":703,"props":7576,"children":7577},{},[7578],{"type":26,"value":707},{"title":7,"searchDepth":335,"depth":335,"links":7580},[7581,7582,7583,7584,7585,7586,7587,7588,7589],{"id":4454,"depth":335,"text":4457},{"id":4651,"depth":335,"text":4654},{"id":6173,"depth":335,"text":6176},{"id":6413,"depth":335,"text":6416},{"id":6448,"depth":335,"text":6451},{"id":7259,"depth":335,"text":7262},{"id":7339,"depth":335,"text":7342},{"id":7416,"depth":335,"text":7419},{"id":7447,"depth":335,"text":7450},"content:blog:error-mitigation-practical-guide.md","blog\u002Ferror-mitigation-practical-guide.md","blog\u002Ferror-mitigation-practical-guide",{"_path":7594,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":7595,"description":7596,"date":3510,"author":11,"tags":7597,"readingTime":3894,"body":7600,"_type":715,"_id":9332,"_source":717,"_file":9333,"_stem":9334,"_extension":720},"\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.",[7598,1972,7599],"Algorithms","Beginners",{"type":18,"children":7601,"toc":9320},[7602,7613,7618,7624,7629,7634,7646,7652,7657,7687,7692,7698,7711,7863,7876,7882,7887,7908,8229,8257,8263,8268,8490,8503,8509,8514,8522,8532,8537,8955,8960,8968,8980,8986,8998,9003,9011,9023,9035,9041,9046,9064,9074,9098,9110,9116,9128,9196,9215,9234,9240,9316],{"type":21,"tag":22,"props":7603,"children":7604},{},[7605,7611],{"type":21,"tag":29,"props":7606,"children":7608},{"href":7607},"\u002Fglossary\u002Fgrover-algorithm",[7609],{"type":26,"value":7610},"Grover's algorithm",{"type":26,"value":7612}," 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":7614,"children":7615},{},[7616],{"type":26,"value":7617},"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":59,"props":7619,"children":7621},{"id":7620},"the-problem-unstructured-search",[7622],{"type":26,"value":7623},"The Problem: Unstructured Search",{"type":21,"tag":22,"props":7625,"children":7626},{},[7627],{"type":26,"value":7628},"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":7630,"children":7631},{},[7632],{"type":26,"value":7633},"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":7635,"children":7636},{},[7637,7639,7644],{"type":26,"value":7638},"The word ",{"type":21,"tag":71,"props":7640,"children":7641},{},[7642],{"type":26,"value":7643},"unstructured",{"type":26,"value":7645}," 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":59,"props":7647,"children":7649},{"id":7648},"the-core-idea-amplitude-amplification",[7650],{"type":26,"value":7651},"The Core Idea: Amplitude Amplification",{"type":21,"tag":22,"props":7653,"children":7654},{},[7655],{"type":26,"value":7656},"Start with every state equally likely. Then repeat two operations:",{"type":21,"tag":7457,"props":7658,"children":7659},{},[7660,7677],{"type":21,"tag":3570,"props":7661,"children":7662},{},[7663,7668,7670,7675],{"type":21,"tag":71,"props":7664,"children":7665},{},[7666],{"type":26,"value":7667},"The oracle",{"type":26,"value":7669}," flips the ",{"type":21,"tag":51,"props":7671,"children":7672},{},[7673],{"type":26,"value":7674},"sign",{"type":26,"value":7676}," 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":3570,"props":7678,"children":7679},{},[7680,7685],{"type":21,"tag":71,"props":7681,"children":7682},{},[7683],{"type":26,"value":7684},"The diffusion operator",{"type":26,"value":7686}," 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":7688,"children":7689},{},[7690],{"type":26,"value":7691},"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":59,"props":7693,"children":7695},{"id":7694},"step-1-uniform-superposition",[7696],{"type":26,"value":7697},"Step 1: Uniform Superposition",{"type":21,"tag":22,"props":7699,"children":7700},{},[7701,7703,7709],{"type":26,"value":7702},"Apply a ",{"type":21,"tag":29,"props":7704,"children":7706},{"href":7705},"\u002Fglossary\u002Fhadamard-gate",[7707],{"type":26,"value":7708},"Hadamard gate",{"type":26,"value":7710}," to every qubit. Three qubits give eight basis states each with amplitude 1\u002F√8.",{"type":21,"tag":312,"props":7712,"children":7714},{"code":7713,"language":3638,"meta":7,"className":3636,"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",[7715],{"type":21,"tag":79,"props":7716,"children":7717},{"__ignoreMap":7},[7718,7737,7756,7768,7775,7796,7818,7825,7841],{"type":21,"tag":322,"props":7719,"children":7720},{"class":324,"line":325},[7721,7725,7729,7733],{"type":21,"tag":322,"props":7722,"children":7723},{"style":3648},[7724],{"type":26,"value":3651},{"type":21,"tag":322,"props":7726,"children":7727},{"style":329},[7728],{"type":26,"value":4745},{"type":21,"tag":322,"props":7730,"children":7731},{"style":3648},[7732],{"type":26,"value":3661},{"type":21,"tag":322,"props":7734,"children":7735},{"style":329},[7736],{"type":26,"value":4754},{"type":21,"tag":322,"props":7738,"children":7739},{"class":324,"line":335},[7740,7744,7748,7752],{"type":21,"tag":322,"props":7741,"children":7742},{"style":3648},[7743],{"type":26,"value":3651},{"type":21,"tag":322,"props":7745,"children":7746},{"style":329},[7747],{"type":26,"value":4766},{"type":21,"tag":322,"props":7749,"children":7750},{"style":3648},[7751],{"type":26,"value":3661},{"type":21,"tag":322,"props":7753,"children":7754},{"style":329},[7755],{"type":26,"value":4775},{"type":21,"tag":322,"props":7757,"children":7758},{"class":324,"line":344},[7759,7763],{"type":21,"tag":322,"props":7760,"children":7761},{"style":3648},[7762],{"type":26,"value":3661},{"type":21,"tag":322,"props":7764,"children":7765},{"style":329},[7766],{"type":26,"value":7767}," math\n",{"type":21,"tag":322,"props":7769,"children":7770},{"class":324,"line":407},[7771],{"type":21,"tag":322,"props":7772,"children":7773},{"emptyLinePlaceholder":3672},[7774],{"type":26,"value":3675},{"type":21,"tag":322,"props":7776,"children":7777},{"class":324,"line":431},[7778,7782,7786,7791],{"type":21,"tag":322,"props":7779,"children":7780},{"style":329},[7781],{"type":26,"value":5535},{"type":21,"tag":322,"props":7783,"children":7784},{"style":3648},[7785],{"type":26,"value":3688},{"type":21,"tag":322,"props":7787,"children":7788},{"style":348},[7789],{"type":26,"value":7790}," 3",{"type":21,"tag":322,"props":7792,"children":7793},{"style":3898},[7794],{"type":26,"value":7795},"                # 3 qubits -> N = 8 states\n",{"type":21,"tag":322,"props":7797,"children":7798},{"class":324,"line":453},[7799,7804,7808,7813],{"type":21,"tag":322,"props":7800,"children":7801},{"style":329},[7802],{"type":26,"value":7803},"marked ",{"type":21,"tag":322,"props":7805,"children":7806},{"style":3648},[7807],{"type":26,"value":3688},{"type":21,"tag":322,"props":7809,"children":7810},{"style":359},[7811],{"type":26,"value":7812}," \"101\"",{"type":21,"tag":322,"props":7814,"children":7815},{"style":3898},[7816],{"type":26,"value":7817},"       # the state we want to find\n",{"type":21,"tag":322,"props":7819,"children":7820},{"class":324,"line":474},[7821],{"type":21,"tag":322,"props":7822,"children":7823},{"emptyLinePlaceholder":3672},[7824],{"type":26,"value":3675},{"type":21,"tag":322,"props":7826,"children":7827},{"class":324,"line":496},[7828,7833,7837],{"type":21,"tag":322,"props":7829,"children":7830},{"style":329},[7831],{"type":26,"value":7832},"qc ",{"type":21,"tag":322,"props":7834,"children":7835},{"style":3648},[7836],{"type":26,"value":3688},{"type":21,"tag":322,"props":7838,"children":7839},{"style":329},[7840],{"type":26,"value":5238},{"type":21,"tag":322,"props":7842,"children":7843},{"class":324,"line":16},[7844,7849,7853,7858],{"type":21,"tag":322,"props":7845,"children":7846},{"style":329},[7847],{"type":26,"value":7848},"qc.h(",{"type":21,"tag":322,"props":7850,"children":7851},{"style":348},[7852],{"type":26,"value":5392},{"type":21,"tag":322,"props":7854,"children":7855},{"style":329},[7856],{"type":26,"value":7857},"(n))       ",{"type":21,"tag":322,"props":7859,"children":7860},{"style":3898},[7861],{"type":26,"value":7862},"# uniform superposition\n",{"type":21,"tag":22,"props":7864,"children":7865},{},[7866,7868,7874],{"type":26,"value":7867},"If you ",{"type":21,"tag":29,"props":7869,"children":7871},{"href":7870},"\u002Fglossary\u002Fmeasurement",[7872],{"type":26,"value":7873},"measure",{"type":26,"value":7875}," here you get a uniform random bitstring: 12.5% for each of the eight outcomes. That's the baseline to beat.",{"type":21,"tag":59,"props":7877,"children":7879},{"id":7878},"step-2-the-oracle",[7880],{"type":26,"value":7881},"Step 2: The Oracle",{"type":21,"tag":22,"props":7883,"children":7884},{},[7885],{"type":26,"value":7886},"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":7888,"children":7889},{},[7890,7892,7898,7900,7906],{"type":26,"value":7891},"Qiskit has no ",{"type":21,"tag":79,"props":7893,"children":7895},{"className":7894},[],[7896],{"type":26,"value":7897},"mcz",{"type":26,"value":7899},", so we build it the standard way: an H on the target, a multi-controlled X (",{"type":21,"tag":29,"props":7901,"children":7903},{"href":7902},"\u002Fglossary\u002Ftoffoli-gate",[7904],{"type":26,"value":7905},"Toffoli",{"type":26,"value":7907}," generalized), an H back:",{"type":21,"tag":312,"props":7909,"children":7911},{"code":7910,"language":3638,"meta":7,"className":3636,"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",[7912],{"type":21,"tag":79,"props":7913,"children":7914},{"__ignoreMap":7},[7915,7932,7940,7975,8009,8034,8060,8068,8094,8145,8164,8187,8210,8217],{"type":21,"tag":322,"props":7916,"children":7917},{"class":324,"line":325},[7918,7922,7927],{"type":21,"tag":322,"props":7919,"children":7920},{"style":3648},[7921],{"type":26,"value":4811},{"type":21,"tag":322,"props":7923,"children":7924},{"style":4814},[7925],{"type":26,"value":7926}," oracle",{"type":21,"tag":322,"props":7928,"children":7929},{"style":329},[7930],{"type":26,"value":7931},"(n, marked):\n",{"type":21,"tag":322,"props":7933,"children":7934},{"class":324,"line":335},[7935],{"type":21,"tag":322,"props":7936,"children":7937},{"style":359},[7938],{"type":26,"value":7939},"    \"\"\"Phase-flip the marked basis state.\"\"\"\n",{"type":21,"tag":322,"props":7941,"children":7942},{"class":324,"line":344},[7943,7948,7952,7957,7962,7966,7971],{"type":21,"tag":322,"props":7944,"children":7945},{"style":329},[7946],{"type":26,"value":7947},"    qc ",{"type":21,"tag":322,"props":7949,"children":7950},{"style":3648},[7951],{"type":26,"value":3688},{"type":21,"tag":322,"props":7953,"children":7954},{"style":329},[7955],{"type":26,"value":7956}," QuantumCircuit(n, ",{"type":21,"tag":322,"props":7958,"children":7959},{"style":3713},[7960],{"type":26,"value":7961},"name",{"type":21,"tag":322,"props":7963,"children":7964},{"style":3648},[7965],{"type":26,"value":3688},{"type":21,"tag":322,"props":7967,"children":7968},{"style":359},[7969],{"type":26,"value":7970},"\"Oracle\"",{"type":21,"tag":322,"props":7972,"children":7973},{"style":329},[7974],{"type":26,"value":3748},{"type":21,"tag":322,"props":7976,"children":7977},{"class":324,"line":407},[7978,7983,7987,7992,7996,8000,8005],{"type":21,"tag":322,"props":7979,"children":7980},{"style":329},[7981],{"type":26,"value":7982},"    rev ",{"type":21,"tag":322,"props":7984,"children":7985},{"style":3648},[7986],{"type":26,"value":3688},{"type":21,"tag":322,"props":7988,"children":7989},{"style":329},[7990],{"type":26,"value":7991}," marked[::",{"type":21,"tag":322,"props":7993,"children":7994},{"style":3648},[7995],{"type":26,"value":5298},{"type":21,"tag":322,"props":7997,"children":7998},{"style":348},[7999],{"type":26,"value":4004},{"type":21,"tag":322,"props":8001,"children":8002},{"style":329},[8003],{"type":26,"value":8004},"]              ",{"type":21,"tag":322,"props":8006,"children":8007},{"style":3898},[8008],{"type":26,"value":5312},{"type":21,"tag":322,"props":8010,"children":8011},{"class":324,"line":431},[8012,8016,8021,8025,8029],{"type":21,"tag":322,"props":8013,"children":8014},{"style":3648},[8015],{"type":26,"value":5190},{"type":21,"tag":322,"props":8017,"children":8018},{"style":329},[8019],{"type":26,"value":8020}," i, bit ",{"type":21,"tag":322,"props":8022,"children":8023},{"style":3648},[8024],{"type":26,"value":3951},{"type":21,"tag":322,"props":8026,"children":8027},{"style":348},[8028],{"type":26,"value":5335},{"type":21,"tag":322,"props":8030,"children":8031},{"style":329},[8032],{"type":26,"value":8033},"(rev):\n",{"type":21,"tag":322,"props":8035,"children":8036},{"class":324,"line":453},[8037,8042,8047,8051,8056],{"type":21,"tag":322,"props":8038,"children":8039},{"style":3648},[8040],{"type":26,"value":8041},"        if",{"type":21,"tag":322,"props":8043,"children":8044},{"style":329},[8045],{"type":26,"value":8046}," bit ",{"type":21,"tag":322,"props":8048,"children":8049},{"style":3648},[8050],{"type":26,"value":5359},{"type":21,"tag":322,"props":8052,"children":8053},{"style":359},[8054],{"type":26,"value":8055}," \"0\"",{"type":21,"tag":322,"props":8057,"children":8058},{"style":329},[8059],{"type":26,"value":5369},{"type":21,"tag":322,"props":8061,"children":8062},{"class":324,"line":474},[8063],{"type":21,"tag":322,"props":8064,"children":8065},{"style":329},[8066],{"type":26,"value":8067},"            qc.x(i)\n",{"type":21,"tag":322,"props":8069,"children":8070},{"class":324,"line":496},[8071,8076,8080,8084,8089],{"type":21,"tag":322,"props":8072,"children":8073},{"style":329},[8074],{"type":26,"value":8075},"    qc.h(n ",{"type":21,"tag":322,"props":8077,"children":8078},{"style":3648},[8079],{"type":26,"value":5298},{"type":21,"tag":322,"props":8081,"children":8082},{"style":348},[8083],{"type":26,"value":6549},{"type":21,"tag":322,"props":8085,"children":8086},{"style":329},[8087],{"type":26,"value":8088},")                     ",{"type":21,"tag":322,"props":8090,"children":8091},{"style":3898},[8092],{"type":26,"value":8093},"# multi-controlled Z\n",{"type":21,"tag":322,"props":8095,"children":8096},{"class":324,"line":16},[8097,8102,8107,8111,8115,8120,8124,8128,8133,8137,8141],{"type":21,"tag":322,"props":8098,"children":8099},{"style":329},[8100],{"type":26,"value":8101},"    qc.mcx(",{"type":21,"tag":322,"props":8103,"children":8104},{"style":348},[8105],{"type":26,"value":8106},"list",{"type":21,"tag":322,"props":8108,"children":8109},{"style":329},[8110],{"type":26,"value":3768},{"type":21,"tag":322,"props":8112,"children":8113},{"style":348},[8114],{"type":26,"value":5392},{"type":21,"tag":322,"props":8116,"children":8117},{"style":329},[8118],{"type":26,"value":8119},"(n ",{"type":21,"tag":322,"props":8121,"children":8122},{"style":3648},[8123],{"type":26,"value":5298},{"type":21,"tag":322,"props":8125,"children":8126},{"style":348},[8127],{"type":26,"value":6549},{"type":21,"tag":322,"props":8129,"children":8130},{"style":329},[8131],{"type":26,"value":8132},")), n ",{"type":21,"tag":322,"props":8134,"children":8135},{"style":3648},[8136],{"type":26,"value":5298},{"type":21,"tag":322,"props":8138,"children":8139},{"style":348},[8140],{"type":26,"value":6549},{"type":21,"tag":322,"props":8142,"children":8143},{"style":329},[8144],{"type":26,"value":3748},{"type":21,"tag":322,"props":8146,"children":8147},{"class":324,"line":3894},[8148,8152,8156,8160],{"type":21,"tag":322,"props":8149,"children":8150},{"style":329},[8151],{"type":26,"value":8075},{"type":21,"tag":322,"props":8153,"children":8154},{"style":3648},[8155],{"type":26,"value":5298},{"type":21,"tag":322,"props":8157,"children":8158},{"style":348},[8159],{"type":26,"value":6549},{"type":21,"tag":322,"props":8161,"children":8162},{"style":329},[8163],{"type":26,"value":3748},{"type":21,"tag":322,"props":8165,"children":8166},{"class":324,"line":3904},[8167,8171,8175,8179,8183],{"type":21,"tag":322,"props":8168,"children":8169},{"style":3648},[8170],{"type":26,"value":5190},{"type":21,"tag":322,"props":8172,"children":8173},{"style":329},[8174],{"type":26,"value":8020},{"type":21,"tag":322,"props":8176,"children":8177},{"style":3648},[8178],{"type":26,"value":3951},{"type":21,"tag":322,"props":8180,"children":8181},{"style":348},[8182],{"type":26,"value":5335},{"type":21,"tag":322,"props":8184,"children":8185},{"style":329},[8186],{"type":26,"value":8033},{"type":21,"tag":322,"props":8188,"children":8189},{"class":324,"line":1043},[8190,8194,8198,8202,8206],{"type":21,"tag":322,"props":8191,"children":8192},{"style":3648},[8193],{"type":26,"value":8041},{"type":21,"tag":322,"props":8195,"children":8196},{"style":329},[8197],{"type":26,"value":8046},{"type":21,"tag":322,"props":8199,"children":8200},{"style":3648},[8201],{"type":26,"value":5359},{"type":21,"tag":322,"props":8203,"children":8204},{"style":359},[8205],{"type":26,"value":8055},{"type":21,"tag":322,"props":8207,"children":8208},{"style":329},[8209],{"type":26,"value":5369},{"type":21,"tag":322,"props":8211,"children":8212},{"class":324,"line":3964},[8213],{"type":21,"tag":322,"props":8214,"children":8215},{"style":329},[8216],{"type":26,"value":8067},{"type":21,"tag":322,"props":8218,"children":8219},{"class":324,"line":4012},[8220,8224],{"type":21,"tag":322,"props":8221,"children":8222},{"style":3648},[8223],{"type":26,"value":5036},{"type":21,"tag":322,"props":8225,"children":8226},{"style":329},[8227],{"type":26,"value":8228}," qc\n",{"type":21,"tag":22,"props":8230,"children":8231},{},[8232,8234,8239,8241,8247,8249,8255],{"type":26,"value":8233},"Watch the endianness. Qiskit orders bitstrings with qubit 0 on the ",{"type":21,"tag":71,"props":8235,"children":8236},{},[8237],{"type":26,"value":8238},"right",{"type":26,"value":8240},", so ",{"type":21,"tag":79,"props":8242,"children":8244},{"className":8243},[],[8245],{"type":26,"value":8246},"marked[::-1]",{"type":26,"value":8248}," 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":79,"props":8250,"children":8252},{"className":8251},[],[8253],{"type":26,"value":8254},"101",{"type":26,"value":8256}," reversed and wonder why.",{"type":21,"tag":59,"props":8258,"children":8260},{"id":8259},"step-3-the-diffusion-operator",[8261],{"type":26,"value":8262},"Step 3: The Diffusion Operator",{"type":21,"tag":22,"props":8264,"children":8265},{},[8266],{"type":26,"value":8267},"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":312,"props":8269,"children":8271},{"code":8270,"language":3638,"meta":7,"className":3636,"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",[8272],{"type":21,"tag":79,"props":8273,"children":8274},{"__ignoreMap":7},[8275,8292,8300,8332,8348,8364,8383,8430,8449,8464,8479],{"type":21,"tag":322,"props":8276,"children":8277},{"class":324,"line":325},[8278,8282,8287],{"type":21,"tag":322,"props":8279,"children":8280},{"style":3648},[8281],{"type":26,"value":4811},{"type":21,"tag":322,"props":8283,"children":8284},{"style":4814},[8285],{"type":26,"value":8286}," diffuser",{"type":21,"tag":322,"props":8288,"children":8289},{"style":329},[8290],{"type":26,"value":8291},"(n):\n",{"type":21,"tag":322,"props":8293,"children":8294},{"class":324,"line":335},[8295],{"type":21,"tag":322,"props":8296,"children":8297},{"style":359},[8298],{"type":26,"value":8299},"    \"\"\"Inversion about the mean.\"\"\"\n",{"type":21,"tag":322,"props":8301,"children":8302},{"class":324,"line":344},[8303,8307,8311,8315,8319,8323,8328],{"type":21,"tag":322,"props":8304,"children":8305},{"style":329},[8306],{"type":26,"value":7947},{"type":21,"tag":322,"props":8308,"children":8309},{"style":3648},[8310],{"type":26,"value":3688},{"type":21,"tag":322,"props":8312,"children":8313},{"style":329},[8314],{"type":26,"value":7956},{"type":21,"tag":322,"props":8316,"children":8317},{"style":3713},[8318],{"type":26,"value":7961},{"type":21,"tag":322,"props":8320,"children":8321},{"style":3648},[8322],{"type":26,"value":3688},{"type":21,"tag":322,"props":8324,"children":8325},{"style":359},[8326],{"type":26,"value":8327},"\"Diffuser\"",{"type":21,"tag":322,"props":8329,"children":8330},{"style":329},[8331],{"type":26,"value":3748},{"type":21,"tag":322,"props":8333,"children":8334},{"class":324,"line":407},[8335,8340,8344],{"type":21,"tag":322,"props":8336,"children":8337},{"style":329},[8338],{"type":26,"value":8339},"    qc.h(",{"type":21,"tag":322,"props":8341,"children":8342},{"style":348},[8343],{"type":26,"value":5392},{"type":21,"tag":322,"props":8345,"children":8346},{"style":329},[8347],{"type":26,"value":5406},{"type":21,"tag":322,"props":8349,"children":8350},{"class":324,"line":431},[8351,8356,8360],{"type":21,"tag":322,"props":8352,"children":8353},{"style":329},[8354],{"type":26,"value":8355},"    qc.x(",{"type":21,"tag":322,"props":8357,"children":8358},{"style":348},[8359],{"type":26,"value":5392},{"type":21,"tag":322,"props":8361,"children":8362},{"style":329},[8363],{"type":26,"value":5406},{"type":21,"tag":322,"props":8365,"children":8366},{"class":324,"line":453},[8367,8371,8375,8379],{"type":21,"tag":322,"props":8368,"children":8369},{"style":329},[8370],{"type":26,"value":8075},{"type":21,"tag":322,"props":8372,"children":8373},{"style":3648},[8374],{"type":26,"value":5298},{"type":21,"tag":322,"props":8376,"children":8377},{"style":348},[8378],{"type":26,"value":6549},{"type":21,"tag":322,"props":8380,"children":8381},{"style":329},[8382],{"type":26,"value":3748},{"type":21,"tag":322,"props":8384,"children":8385},{"class":324,"line":474},[8386,8390,8394,8398,8402,8406,8410,8414,8418,8422,8426],{"type":21,"tag":322,"props":8387,"children":8388},{"style":329},[8389],{"type":26,"value":8101},{"type":21,"tag":322,"props":8391,"children":8392},{"style":348},[8393],{"type":26,"value":8106},{"type":21,"tag":322,"props":8395,"children":8396},{"style":329},[8397],{"type":26,"value":3768},{"type":21,"tag":322,"props":8399,"children":8400},{"style":348},[8401],{"type":26,"value":5392},{"type":21,"tag":322,"props":8403,"children":8404},{"style":329},[8405],{"type":26,"value":8119},{"type":21,"tag":322,"props":8407,"children":8408},{"style":3648},[8409],{"type":26,"value":5298},{"type":21,"tag":322,"props":8411,"children":8412},{"style":348},[8413],{"type":26,"value":6549},{"type":21,"tag":322,"props":8415,"children":8416},{"style":329},[8417],{"type":26,"value":8132},{"type":21,"tag":322,"props":8419,"children":8420},{"style":3648},[8421],{"type":26,"value":5298},{"type":21,"tag":322,"props":8423,"children":8424},{"style":348},[8425],{"type":26,"value":6549},{"type":21,"tag":322,"props":8427,"children":8428},{"style":329},[8429],{"type":26,"value":3748},{"type":21,"tag":322,"props":8431,"children":8432},{"class":324,"line":496},[8433,8437,8441,8445],{"type":21,"tag":322,"props":8434,"children":8435},{"style":329},[8436],{"type":26,"value":8075},{"type":21,"tag":322,"props":8438,"children":8439},{"style":3648},[8440],{"type":26,"value":5298},{"type":21,"tag":322,"props":8442,"children":8443},{"style":348},[8444],{"type":26,"value":6549},{"type":21,"tag":322,"props":8446,"children":8447},{"style":329},[8448],{"type":26,"value":3748},{"type":21,"tag":322,"props":8450,"children":8451},{"class":324,"line":16},[8452,8456,8460],{"type":21,"tag":322,"props":8453,"children":8454},{"style":329},[8455],{"type":26,"value":8355},{"type":21,"tag":322,"props":8457,"children":8458},{"style":348},[8459],{"type":26,"value":5392},{"type":21,"tag":322,"props":8461,"children":8462},{"style":329},[8463],{"type":26,"value":5406},{"type":21,"tag":322,"props":8465,"children":8466},{"class":324,"line":3894},[8467,8471,8475],{"type":21,"tag":322,"props":8468,"children":8469},{"style":329},[8470],{"type":26,"value":8339},{"type":21,"tag":322,"props":8472,"children":8473},{"style":348},[8474],{"type":26,"value":5392},{"type":21,"tag":322,"props":8476,"children":8477},{"style":329},[8478],{"type":26,"value":5406},{"type":21,"tag":322,"props":8480,"children":8481},{"class":324,"line":3904},[8482,8486],{"type":21,"tag":322,"props":8483,"children":8484},{"style":3648},[8485],{"type":26,"value":5036},{"type":21,"tag":322,"props":8487,"children":8488},{"style":329},[8489],{"type":26,"value":8228},{"type":21,"tag":22,"props":8491,"children":8492},{},[8493,8495,8501],{"type":26,"value":8494},"Note the diffuser knows nothing about the marked state. It is the same ",{"type":21,"tag":29,"props":8496,"children":8498},{"href":8497},"\u002Fglossary\u002Fquantum-circuit",[8499],{"type":26,"value":8500},"circuit",{"type":26,"value":8502}," for every search problem. Only the oracle changes.",{"type":21,"tag":59,"props":8504,"children":8506},{"id":8505},"step-4-iterate-the-right-number-of-times",[8507],{"type":26,"value":8508},"Step 4: Iterate the Right Number of Times",{"type":21,"tag":22,"props":8510,"children":8511},{},[8512],{"type":26,"value":8513},"This is where people go wrong. The optimal count is:",{"type":21,"tag":312,"props":8515,"children":8517},{"code":8516},"k = floor( (π\u002F4) · √(N\u002FM) )\n",[8518],{"type":21,"tag":79,"props":8519,"children":8520},{"__ignoreMap":7},[8521],{"type":26,"value":8516},{"type":21,"tag":22,"props":8523,"children":8524},{},[8525,8527,8531],{"type":26,"value":8526},"where N = 2ⁿ and M is the number of marked states. For N = 8, M = 1: k = floor(2.22) = ",{"type":21,"tag":71,"props":8528,"children":8529},{},[8530],{"type":26,"value":423},{"type":26,"value":534},{"type":21,"tag":22,"props":8533,"children":8534},{},[8535],{"type":26,"value":8536},"Here's the complete program:",{"type":21,"tag":312,"props":8538,"children":8540},{"code":8539,"language":3638,"meta":7,"className":3636,"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",[8541],{"type":21,"tag":79,"props":8542,"children":8543},{"__ignoreMap":7},[8544,8561,8576,8596,8613,8637,8668,8697,8721,8732,8739,8765,8801,8860,8867,8884,8900,8934],{"type":21,"tag":322,"props":8545,"children":8546},{"class":324,"line":325},[8547,8551,8556],{"type":21,"tag":322,"props":8548,"children":8549},{"style":3648},[8550],{"type":26,"value":4811},{"type":21,"tag":322,"props":8552,"children":8553},{"style":4814},[8554],{"type":26,"value":8555}," grover",{"type":21,"tag":322,"props":8557,"children":8558},{"style":329},[8559],{"type":26,"value":8560},"(n, marked, iterations):\n",{"type":21,"tag":322,"props":8562,"children":8563},{"class":324,"line":335},[8564,8568,8572],{"type":21,"tag":322,"props":8565,"children":8566},{"style":329},[8567],{"type":26,"value":7947},{"type":21,"tag":322,"props":8569,"children":8570},{"style":3648},[8571],{"type":26,"value":3688},{"type":21,"tag":322,"props":8573,"children":8574},{"style":329},[8575],{"type":26,"value":5238},{"type":21,"tag":322,"props":8577,"children":8578},{"class":324,"line":344},[8579,8583,8587,8592],{"type":21,"tag":322,"props":8580,"children":8581},{"style":329},[8582],{"type":26,"value":8339},{"type":21,"tag":322,"props":8584,"children":8585},{"style":348},[8586],{"type":26,"value":5392},{"type":21,"tag":322,"props":8588,"children":8589},{"style":329},[8590],{"type":26,"value":8591},"(n))                       ",{"type":21,"tag":322,"props":8593,"children":8594},{"style":3898},[8595],{"type":26,"value":7862},{"type":21,"tag":322,"props":8597,"children":8598},{"class":324,"line":407},[8599,8604,8608],{"type":21,"tag":322,"props":8600,"children":8601},{"style":329},[8602],{"type":26,"value":8603},"    orc, dif ",{"type":21,"tag":322,"props":8605,"children":8606},{"style":3648},[8607],{"type":26,"value":3688},{"type":21,"tag":322,"props":8609,"children":8610},{"style":329},[8611],{"type":26,"value":8612}," oracle(n, marked), diffuser(n)\n",{"type":21,"tag":322,"props":8614,"children":8615},{"class":324,"line":431},[8616,8620,8624,8628,8632],{"type":21,"tag":322,"props":8617,"children":8618},{"style":3648},[8619],{"type":26,"value":5190},{"type":21,"tag":322,"props":8621,"children":8622},{"style":329},[8623],{"type":26,"value":6591},{"type":21,"tag":322,"props":8625,"children":8626},{"style":3648},[8627],{"type":26,"value":3951},{"type":21,"tag":322,"props":8629,"children":8630},{"style":348},[8631],{"type":26,"value":3956},{"type":21,"tag":322,"props":8633,"children":8634},{"style":329},[8635],{"type":26,"value":8636},"(iterations):\n",{"type":21,"tag":322,"props":8638,"children":8639},{"class":324,"line":453},[8640,8645,8650,8654,8658,8663],{"type":21,"tag":322,"props":8641,"children":8642},{"style":329},[8643],{"type":26,"value":8644},"        qc.compose(orc, ",{"type":21,"tag":322,"props":8646,"children":8647},{"style":3713},[8648],{"type":26,"value":8649},"inplace",{"type":21,"tag":322,"props":8651,"children":8652},{"style":3648},[8653],{"type":26,"value":3688},{"type":21,"tag":322,"props":8655,"children":8656},{"style":348},[8657],{"type":26,"value":3725},{"type":21,"tag":322,"props":8659,"children":8660},{"style":329},[8661],{"type":26,"value":8662},")    ",{"type":21,"tag":322,"props":8664,"children":8665},{"style":3898},[8666],{"type":26,"value":8667},"# phase-flip the target\n",{"type":21,"tag":322,"props":8669,"children":8670},{"class":324,"line":474},[8671,8676,8680,8684,8688,8692],{"type":21,"tag":322,"props":8672,"children":8673},{"style":329},[8674],{"type":26,"value":8675},"        qc.compose(dif, ",{"type":21,"tag":322,"props":8677,"children":8678},{"style":3713},[8679],{"type":26,"value":8649},{"type":21,"tag":322,"props":8681,"children":8682},{"style":3648},[8683],{"type":26,"value":3688},{"type":21,"tag":322,"props":8685,"children":8686},{"style":348},[8687],{"type":26,"value":3725},{"type":21,"tag":322,"props":8689,"children":8690},{"style":329},[8691],{"type":26,"value":8662},{"type":21,"tag":322,"props":8693,"children":8694},{"style":3898},[8695],{"type":26,"value":8696},"# amplify it\n",{"type":21,"tag":322,"props":8698,"children":8699},{"class":324,"line":496},[8700,8705,8709,8713,8717],{"type":21,"tag":322,"props":8701,"children":8702},{"style":329},[8703],{"type":26,"value":8704},"    qc.measure(",{"type":21,"tag":322,"props":8706,"children":8707},{"style":348},[8708],{"type":26,"value":5392},{"type":21,"tag":322,"props":8710,"children":8711},{"style":329},[8712],{"type":26,"value":5397},{"type":21,"tag":322,"props":8714,"children":8715},{"style":348},[8716],{"type":26,"value":5392},{"type":21,"tag":322,"props":8718,"children":8719},{"style":329},[8720],{"type":26,"value":5406},{"type":21,"tag":322,"props":8722,"children":8723},{"class":324,"line":16},[8724,8728],{"type":21,"tag":322,"props":8725,"children":8726},{"style":3648},[8727],{"type":26,"value":5036},{"type":21,"tag":322,"props":8729,"children":8730},{"style":329},[8731],{"type":26,"value":8228},{"type":21,"tag":322,"props":8733,"children":8734},{"class":324,"line":3894},[8735],{"type":21,"tag":322,"props":8736,"children":8737},{"emptyLinePlaceholder":3672},[8738],{"type":26,"value":3675},{"type":21,"tag":322,"props":8740,"children":8741},{"class":324,"line":3904},[8742,8747,8751,8755,8760],{"type":21,"tag":322,"props":8743,"children":8744},{"style":329},[8745],{"type":26,"value":8746},"N ",{"type":21,"tag":322,"props":8748,"children":8749},{"style":3648},[8750],{"type":26,"value":3688},{"type":21,"tag":322,"props":8752,"children":8753},{"style":348},[8754],{"type":26,"value":6834},{"type":21,"tag":322,"props":8756,"children":8757},{"style":3648},[8758],{"type":26,"value":8759}," **",{"type":21,"tag":322,"props":8761,"children":8762},{"style":329},[8763],{"type":26,"value":8764}," n\n",{"type":21,"tag":322,"props":8766,"children":8767},{"class":324,"line":1043},[8768,8773,8777,8782,8786,8791,8796],{"type":21,"tag":322,"props":8769,"children":8770},{"style":329},[8771],{"type":26,"value":8772},"optimal ",{"type":21,"tag":322,"props":8774,"children":8775},{"style":3648},[8776],{"type":26,"value":3688},{"type":21,"tag":322,"props":8778,"children":8779},{"style":329},[8780],{"type":26,"value":8781}," math.floor(math.pi ",{"type":21,"tag":322,"props":8783,"children":8784},{"style":3648},[8785],{"type":26,"value":174},{"type":21,"tag":322,"props":8787,"children":8788},{"style":348},[8789],{"type":26,"value":8790}," 4",{"type":21,"tag":322,"props":8792,"children":8793},{"style":3648},[8794],{"type":26,"value":8795}," *",{"type":21,"tag":322,"props":8797,"children":8798},{"style":329},[8799],{"type":26,"value":8800}," math.sqrt(N))\n",{"type":21,"tag":322,"props":8802,"children":8803},{"class":324,"line":3964},[8804,8808,8812,8816,8821,8825,8830,8834,8839,8843,8848,8852,8856],{"type":21,"tag":322,"props":8805,"children":8806},{"style":348},[8807],{"type":26,"value":3763},{"type":21,"tag":322,"props":8809,"children":8810},{"style":329},[8811],{"type":26,"value":3768},{"type":21,"tag":322,"props":8813,"children":8814},{"style":3648},[8815],{"type":26,"value":3773},{"type":21,"tag":322,"props":8817,"children":8818},{"style":359},[8819],{"type":26,"value":8820},"\"N = ",{"type":21,"tag":322,"props":8822,"children":8823},{"style":348},[8824],{"type":26,"value":3783},{"type":21,"tag":322,"props":8826,"children":8827},{"style":329},[8828],{"type":26,"value":8829},"N",{"type":21,"tag":322,"props":8831,"children":8832},{"style":348},[8833],{"type":26,"value":3793},{"type":21,"tag":322,"props":8835,"children":8836},{"style":359},[8837],{"type":26,"value":8838},", optimal iterations = ",{"type":21,"tag":322,"props":8840,"children":8841},{"style":348},[8842],{"type":26,"value":3783},{"type":21,"tag":322,"props":8844,"children":8845},{"style":329},[8846],{"type":26,"value":8847},"optimal",{"type":21,"tag":322,"props":8849,"children":8850},{"style":348},[8851],{"type":26,"value":3793},{"type":21,"tag":322,"props":8853,"children":8854},{"style":359},[8855],{"type":26,"value":3798},{"type":21,"tag":322,"props":8857,"children":8858},{"style":329},[8859],{"type":26,"value":3748},{"type":21,"tag":322,"props":8861,"children":8862},{"class":324,"line":4012},[8863],{"type":21,"tag":322,"props":8864,"children":8865},{"emptyLinePlaceholder":3672},[8866],{"type":26,"value":3675},{"type":21,"tag":322,"props":8868,"children":8869},{"class":324,"line":4054},[8870,8875,8879],{"type":21,"tag":322,"props":8871,"children":8872},{"style":329},[8873],{"type":26,"value":8874},"sim ",{"type":21,"tag":322,"props":8876,"children":8877},{"style":3648},[8878],{"type":26,"value":3688},{"type":21,"tag":322,"props":8880,"children":8881},{"style":329},[8882],{"type":26,"value":8883}," AerSimulator()\n",{"type":21,"tag":322,"props":8885,"children":8886},{"class":324,"line":5081},[8887,8891,8895],{"type":21,"tag":322,"props":8888,"children":8889},{"style":329},[8890],{"type":26,"value":7832},{"type":21,"tag":322,"props":8892,"children":8893},{"style":3648},[8894],{"type":26,"value":3688},{"type":21,"tag":322,"props":8896,"children":8897},{"style":329},[8898],{"type":26,"value":8899}," grover(n, marked, optimal)\n",{"type":21,"tag":322,"props":8901,"children":8902},{"class":324,"line":5100},[8903,8908,8912,8917,8921,8925,8930],{"type":21,"tag":322,"props":8904,"children":8905},{"style":329},[8906],{"type":26,"value":8907},"counts ",{"type":21,"tag":322,"props":8909,"children":8910},{"style":3648},[8911],{"type":26,"value":3688},{"type":21,"tag":322,"props":8913,"children":8914},{"style":329},[8915],{"type":26,"value":8916}," sim.run(transpile(qc, sim), ",{"type":21,"tag":322,"props":8918,"children":8919},{"style":3713},[8920],{"type":26,"value":4573},{"type":21,"tag":322,"props":8922,"children":8923},{"style":3648},[8924],{"type":26,"value":3688},{"type":21,"tag":322,"props":8926,"children":8927},{"style":348},[8928],{"type":26,"value":8929},"4096",{"type":21,"tag":322,"props":8931,"children":8932},{"style":329},[8933],{"type":26,"value":5732},{"type":21,"tag":322,"props":8935,"children":8936},{"class":324,"line":5108},[8937,8941,8945,8950],{"type":21,"tag":322,"props":8938,"children":8939},{"style":348},[8940],{"type":26,"value":3763},{"type":21,"tag":322,"props":8942,"children":8943},{"style":329},[8944],{"type":26,"value":3768},{"type":21,"tag":322,"props":8946,"children":8947},{"style":348},[8948],{"type":26,"value":8949},"sorted",{"type":21,"tag":322,"props":8951,"children":8952},{"style":329},[8953],{"type":26,"value":8954},"(counts.items()))\n",{"type":21,"tag":22,"props":8956,"children":8957},{},[8958],{"type":26,"value":8959},"Real output from this exact code (Qiskit 2.5, Aer 0.17):",{"type":21,"tag":312,"props":8961,"children":8963},{"code":8962},"N = 8, optimal iterations = 2\n[('000', 35), ('001', 34), ('010', 33), ('011', 27),\n ('100', 33), ('101', 3866), ('110', 35), ('111', 33)]\n",[8964],{"type":21,"tag":79,"props":8965,"children":8966},{"__ignoreMap":7},[8967],{"type":26,"value":8962},{"type":21,"tag":22,"props":8969,"children":8970},{},[8971,8973,8978],{"type":26,"value":8972},"94.4% on ",{"type":21,"tag":79,"props":8974,"children":8976},{"className":8975},[],[8977],{"type":26,"value":8254},{"type":26,"value":8979},", versus 12.5% by chance. Two oracle calls where classical search would need 4.5 on average.",{"type":21,"tag":59,"props":8981,"children":8983},{"id":8982},"the-mistake-more-iterations-make-it-worse",[8984],{"type":26,"value":8985},"The Mistake: More Iterations Make It Worse",{"type":21,"tag":22,"props":8987,"children":8988},{},[8989,8991,8996],{"type":26,"value":8990},"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":71,"props":8992,"children":8993},{},[8994],{"type":26,"value":8995},"fixed",{"type":26,"value":8997}," 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":8999,"children":9000},{},[9001],{"type":26,"value":9002},"Loop the iteration count and watch. Measured counts over 4096 shots each:",{"type":21,"tag":312,"props":9004,"children":9006},{"code":9005},"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",[9007],{"type":21,"tag":79,"props":9008,"children":9009},{"__ignoreMap":7},[9010],{"type":26,"value":9005},{"type":21,"tag":22,"props":9012,"children":9013},{},[9014,9016,9021],{"type":26,"value":9015},"Four iterations gives you a 1.3% success rate. You did ",{"type":21,"tag":51,"props":9017,"children":9018},{},[9019],{"type":26,"value":9020},"twice",{"type":26,"value":9022}," 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":9024,"children":9025},{},[9026,9028,9033],{"type":26,"value":9027},"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":71,"props":9029,"children":9030},{},[9031],{"type":26,"value":9032},"quantum counting",{"type":26,"value":9034}," (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":59,"props":9036,"children":9038},{"id":9037},"what-the-speedup-buys-you",[9039],{"type":26,"value":9040},"What the Speedup Buys You",{"type":21,"tag":22,"props":9042,"children":9043},{},[9044],{"type":26,"value":9045},"Be precise about this, because a lot of writing on Grover is not.",{"type":21,"tag":22,"props":9047,"children":9048},{},[9049,9054,9056,9062],{"type":21,"tag":71,"props":9050,"children":9051},{},[9052],{"type":26,"value":9053},"It is quadratic, not exponential.",{"type":26,"value":9055}," √N versus N. ",{"type":21,"tag":29,"props":9057,"children":9059},{"href":9058},"\u002Fresearch\u002Fshor-factoring-1994",[9060],{"type":26,"value":9061},"Shor's factoring algorithm",{"type":26,"value":9063}," 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":9065,"children":9066},{},[9067,9072],{"type":21,"tag":71,"props":9068,"children":9069},{},[9070],{"type":26,"value":9071},"It does not make NP-hard problems easy.",{"type":26,"value":9073}," 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":9075,"children":9076},{},[9077,9082,9084,9089,9091,9096],{"type":21,"tag":71,"props":9078,"children":9079},{},[9080],{"type":26,"value":9081},"The \"database search\" framing is misleading.",{"type":26,"value":9083}," Grover needs an ",{"type":21,"tag":51,"props":9085,"children":9086},{},[9087],{"type":26,"value":9088},"oracle",{"type":26,"value":9090}," (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":51,"props":9092,"children":9093},{},[9094],{"type":26,"value":9095},"defined by a computable property",{"type":26,"value":9097}," (this key decrypts the ciphertext, this input hashes to that digest) rather than looked up in a table.",{"type":21,"tag":22,"props":9099,"children":9100},{},[9101,9103,9109],{"type":26,"value":9102},"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":29,"props":9104,"children":9106},{"href":9105},"\u002Fresearch\u002Fgrover-search-1996",[9107],{"type":26,"value":9108},"breakdown of the paper",{"type":26,"value":534},{"type":21,"tag":59,"props":9111,"children":9113},{"id":9112},"running-on-real-hardware",[9114],{"type":26,"value":9115},"Running on Real Hardware",{"type":21,"tag":22,"props":9117,"children":9118},{},[9119,9121,9126],{"type":26,"value":9120},"Moving to a QPU, the picture changes fast. Multi-controlled X gates are not native to any hardware. ",{"type":21,"tag":29,"props":9122,"children":9123},{"href":6205},[9124],{"type":26,"value":9125},"Transpilation",{"type":26,"value":9127}," 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":312,"props":9129,"children":9131},{"code":9130,"language":3638,"meta":7,"className":3636,"style":7},"# Check what your circuit costs before submitting\nqc = grover(3, \"101\", 2)\nprint(qc.decompose().count_ops())\n",[9132],{"type":21,"tag":79,"props":9133,"children":9134},{"__ignoreMap":7},[9135,9143,9184],{"type":21,"tag":322,"props":9136,"children":9137},{"class":324,"line":325},[9138],{"type":21,"tag":322,"props":9139,"children":9140},{"style":3898},[9141],{"type":26,"value":9142},"# Check what your circuit costs before submitting\n",{"type":21,"tag":322,"props":9144,"children":9145},{"class":324,"line":335},[9146,9150,9154,9159,9163,9167,9172,9176,9180],{"type":21,"tag":322,"props":9147,"children":9148},{"style":329},[9149],{"type":26,"value":7832},{"type":21,"tag":322,"props":9151,"children":9152},{"style":3648},[9153],{"type":26,"value":3688},{"type":21,"tag":322,"props":9155,"children":9156},{"style":329},[9157],{"type":26,"value":9158}," grover(",{"type":21,"tag":322,"props":9160,"children":9161},{"style":348},[9162],{"type":26,"value":6961},{"type":21,"tag":322,"props":9164,"children":9165},{"style":329},[9166],{"type":26,"value":367},{"type":21,"tag":322,"props":9168,"children":9169},{"style":359},[9170],{"type":26,"value":9171},"\"101\"",{"type":21,"tag":322,"props":9173,"children":9174},{"style":329},[9175],{"type":26,"value":367},{"type":21,"tag":322,"props":9177,"children":9178},{"style":348},[9179],{"type":26,"value":423},{"type":21,"tag":322,"props":9181,"children":9182},{"style":329},[9183],{"type":26,"value":3748},{"type":21,"tag":322,"props":9185,"children":9186},{"class":324,"line":344},[9187,9191],{"type":21,"tag":322,"props":9188,"children":9189},{"style":348},[9190],{"type":26,"value":3763},{"type":21,"tag":322,"props":9192,"children":9193},{"style":329},[9194],{"type":26,"value":9195},"(qc.decompose().count_ops())\n",{"type":21,"tag":22,"props":9197,"children":9198},{},[9199,9201,9207,9209,9213],{"type":26,"value":9200},"On ",{"type":21,"tag":29,"props":9202,"children":9204},{"href":9203},"\u002Fresearch\u002Fpreskill-nisq-2018",[9205],{"type":26,"value":9206},"NISQ devices",{"type":26,"value":9208},", 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":29,"props":9210,"children":9211},{"href":6158},[9212],{"type":26,"value":6161},{"type":26,"value":9214}," on top and you need enough samples to distinguish a modest peak from the floor.",{"type":21,"tag":22,"props":9216,"children":9217},{},[9218,9220,9225,9227,9232],{"type":26,"value":9219},"The practical advice: develop and debug on ",{"type":21,"tag":29,"props":9221,"children":9222},{"href":1014},[9223],{"type":26,"value":9224},"simulators",{"type":26,"value":9226},", where you verify correctness exactly. Only move to ",{"type":21,"tag":29,"props":9228,"children":9229},{"href":809},[9230],{"type":26,"value":9231},"real hardware",{"type":26,"value":9233}," when you understand what your circuit costs in native gates, and expect degraded results.",{"type":21,"tag":59,"props":9235,"children":9237},{"id":9236},"next-steps",[9238],{"type":26,"value":9239},"Next Steps",{"type":21,"tag":3566,"props":9241,"children":9242},{},[9243,9256,9268,9289],{"type":21,"tag":3570,"props":9244,"children":9245},{},[9246,9254],{"type":21,"tag":71,"props":9247,"children":9248},{},[9249],{"type":21,"tag":29,"props":9250,"children":9251},{"href":7541},[9252],{"type":26,"value":9253},"Qiskit SDK guide",{"type":26,"value":9255},": full setup, backends, and transpiler options",{"type":21,"tag":3570,"props":9257,"children":9258},{},[9259,9266],{"type":21,"tag":71,"props":9260,"children":9261},{},[9262],{"type":21,"tag":29,"props":9263,"children":9264},{"href":31},[9265],{"type":26,"value":662},{"type":26,"value":9267},": the other big near-term algorithm, applied to Max-Cut",{"type":21,"tag":3570,"props":9269,"children":9270},{},[9271,9279,9281,9287],{"type":21,"tag":71,"props":9272,"children":9273},{},[9274],{"type":21,"tag":29,"props":9275,"children":9276},{"href":817},[9277],{"type":26,"value":9278},"Compare the SDKs",{"type":26,"value":9280},": the same Grover circuit in ",{"type":21,"tag":29,"props":9282,"children":9284},{"href":9283},"\u002Fsdks\u002Fcirq",[9285],{"type":26,"value":9286},"Cirq",{"type":26,"value":9288}," or PennyLane",{"type":21,"tag":3570,"props":9290,"children":9291},{},[9292,9300,9301,9307,9308,9314],{"type":21,"tag":71,"props":9293,"children":9294},{},[9295],{"type":21,"tag":29,"props":9296,"children":9297},{"href":4413},[9298],{"type":26,"value":9299},"Glossary",{"type":26,"value":418},{"type":21,"tag":29,"props":9302,"children":9304},{"href":9303},"\u002Fglossary\u002Fsuperposition",[9305],{"type":26,"value":9306},"superposition",{"type":26,"value":367},{"type":21,"tag":29,"props":9309,"children":9311},{"href":9310},"\u002Fglossary\u002Fquantum-advantage",[9312],{"type":26,"value":9313},"quantum advantage",{"type":26,"value":9315},", and the rest of the vocabulary",{"type":21,"tag":703,"props":9317,"children":9318},{},[9319],{"type":26,"value":707},{"title":7,"searchDepth":335,"depth":335,"links":9321},[9322,9323,9324,9325,9326,9327,9328,9329,9330,9331],{"id":7620,"depth":335,"text":7623},{"id":7648,"depth":335,"text":7651},{"id":7694,"depth":335,"text":7697},{"id":7878,"depth":335,"text":7881},{"id":8259,"depth":335,"text":8262},{"id":8505,"depth":335,"text":8508},{"id":8982,"depth":335,"text":8985},{"id":9037,"depth":335,"text":9040},{"id":9112,"depth":335,"text":9115},{"id":9236,"depth":335,"text":9239},"content:blog:grover-algorithm-tutorial.md","blog\u002Fgrover-algorithm-tutorial.md","blog\u002Fgrover-algorithm-tutorial",{"_path":753,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":9336,"description":9337,"date":3510,"author":11,"tags":9338,"readingTime":496,"body":9340,"_type":715,"_id":9789,"_source":717,"_file":9790,"_stem":9791,"_extension":720},"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.",[729,730,9339],"QPU",{"type":18,"children":9341,"toc":9779},[9342,9347,9359,9365,9392,9406,9433,9439,9451,9456,9469,9487,9493,9498,9509,9522,9527,9532,9538,9550,9555,9574,9579,9585,9590,9600,9610,9633,9639,9644,9654,9664,9674,9684,9689,9695,9700,9705,9731,9749,9755,9767],{"type":21,"tag":22,"props":9343,"children":9344},{},[9345],{"type":26,"value":9346},"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":9348,"children":9349},{},[9350,9352,9357],{"type":26,"value":9351},"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":51,"props":9353,"children":9354},{},[9355],{"type":26,"value":9356},"worse",{"type":26,"value":9358}," 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":59,"props":9360,"children":9362},{"id":9361},"two-things-called-qubit",[9363],{"type":26,"value":9364},"Two things called \"qubit\"",{"type":21,"tag":22,"props":9366,"children":9367},{},[9368,9370,9375,9377,9383,9385,9390],{"type":26,"value":9369},"A ",{"type":21,"tag":71,"props":9371,"children":9372},{},[9373],{"type":26,"value":9374},"physical qubit",{"type":26,"value":9376}," 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":29,"props":9378,"children":9380},{"href":9379},"\u002Fglossary\u002Fdecoherence",[9381],{"type":26,"value":9382},"decoherence",{"type":26,"value":9384},", and the ",{"type":21,"tag":29,"props":9386,"children":9387},{"href":6184},[9388],{"type":26,"value":9389},"T1 and T2 times",{"type":26,"value":9391}," that quantify it are among the few hardware specs worth reading closely.",{"type":21,"tag":22,"props":9393,"children":9394},{},[9395,9396,9404],{"type":26,"value":9369},{"type":21,"tag":71,"props":9397,"children":9398},{},[9399],{"type":21,"tag":29,"props":9400,"children":9401},{"href":1993},[9402],{"type":26,"value":9403},"logical qubit",{"type":26,"value":9405}," 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":9407,"children":9408},{},[9409,9411,9416,9418,9423,9425,9431],{"type":26,"value":9410},"The technique is ",{"type":21,"tag":29,"props":9412,"children":9413},{"href":1536},[9414],{"type":26,"value":9415},"quantum error correction",{"type":26,"value":9417},", and our ",{"type":21,"tag":29,"props":9419,"children":9420},{"href":859},[9421],{"type":26,"value":9422},"companion post on QEC",{"type":26,"value":9424}," covers the mechanics: parity checks, ",{"type":21,"tag":29,"props":9426,"children":9428},{"href":9427},"\u002Fglossary\u002Fancilla-qubit",[9429],{"type":26,"value":9430},"ancilla qubits",{"type":26,"value":9432},", 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":59,"props":9434,"children":9436},{"id":9435},"why-how-many-qubits-is-nearly-meaningless",[9437],{"type":26,"value":9438},"Why \"how many qubits?\" is nearly meaningless",{"type":21,"tag":22,"props":9440,"children":9441},{},[9442,9444,9449],{"type":26,"value":9443},"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":71,"props":9445,"children":9446},{},[9447],{"type":26,"value":9448},"zero",{"type":26,"value":9450}," logical qubits, not few, zero.",{"type":21,"tag":22,"props":9452,"children":9453},{},[9454],{"type":26,"value":9455},"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":9457,"children":9458},{},[9459,9461,9467],{"type":26,"value":9460},"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":29,"props":9462,"children":9464},{"href":9463},"\u002Fglossary\u002Ffidelity",[9465],{"type":26,"value":9466},"fidelity",{"type":26,"value":9468}," improvements that look small in isolation. A 2x hardware win is a 4x or 8x win after encoding.",{"type":21,"tag":22,"props":9470,"children":9471},{},[9472,9474,9478,9480,9485],{"type":26,"value":9473},"This is also why single-number benchmarks keep failing the field. ",{"type":21,"tag":29,"props":9475,"children":9476},{"href":3588},[9477],{"type":26,"value":3591},{"type":26,"value":9479},", algorithmic qubits, gate counts: each captures a slice and hides the rest. We wrote about that measurement problem ",{"type":21,"tag":29,"props":9481,"children":9482},{"href":1284},[9483],{"type":26,"value":9484},"in the context of EO 14413",{"type":26,"value":9486},", and it applies with full force here.",{"type":21,"tag":59,"props":9488,"children":9490},{"id":9489},"the-overhead-is-the-whole-story",[9491],{"type":26,"value":9492},"The overhead is the whole story",{"type":21,"tag":22,"props":9494,"children":9495},{},[9496],{"type":26,"value":9497},"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":9499,"children":9500},{},[9501,9507],{"type":21,"tag":29,"props":9502,"children":9504},{"href":9503},"\u002Fresearch\u002Fshor-error-correction-1995",[9505],{"type":26,"value":9506},"Shor's 1995 code",{"type":26,"value":9508},", 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":9510,"children":9511},{},[9512,9514,9520],{"type":26,"value":9513},"Nine turned out to be optimistic for practical machines. ",{"type":21,"tag":29,"props":9515,"children":9517},{"href":9516},"\u002Fresearch\u002Fkitaev-anyons-1997",[9518],{"type":26,"value":9519},"Kitaev's 1997 work on anyons",{"type":26,"value":9521}," 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":9523,"children":9524},{},[9525],{"type":26,"value":9526},"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":9528,"children":9529},{},[9530],{"type":26,"value":9531},"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":59,"props":9533,"children":9535},{"id":9534},"the-threshold-theorem-and-why-2024-mattered",[9536],{"type":26,"value":9537},"The threshold theorem, and why 2024 mattered",{"type":21,"tag":22,"props":9539,"children":9540},{},[9541,9543,9548],{"type":26,"value":9542},"The theoretical foundation under all of this is the ",{"type":21,"tag":71,"props":9544,"children":9545},{},[9546],{"type":26,"value":9547},"threshold theorem",{"type":26,"value":9549},". 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":9551,"children":9552},{},[9553],{"type":26,"value":9554},"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":9556,"children":9557},{},[9558,9560,9565,9567,9572],{"type":26,"value":9559},"That changed with ",{"type":21,"tag":29,"props":9561,"children":9562},{"href":4194},[9563],{"type":26,"value":9564},"Google's below-threshold result in 2024",{"type":26,"value":9566},". 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":71,"props":9568,"children":9569},{},[9570],{"type":26,"value":9571},"halving",{"type":26,"value":9573}," 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":9575,"children":9576},{},[9577],{"type":26,"value":9578},"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":59,"props":9580,"children":9582},{"id":9581},"different-hardware-different-arithmetic",[9583],{"type":26,"value":9584},"Different hardware, different arithmetic",{"type":21,"tag":22,"props":9586,"children":9587},{},[9588],{"type":26,"value":9589},"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":9591,"children":9592},{},[9593,9598],{"type":21,"tag":71,"props":9594,"children":9595},{},[9596],{"type":26,"value":9597},"Superconducting",{"type":26,"value":9599}," 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":9601,"children":9602},{},[9603,9608],{"type":21,"tag":71,"props":9604,"children":9605},{},[9606],{"type":26,"value":9607},"Trapped ions",{"type":26,"value":9609}," 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":9611,"children":9612},{},[9613,9615,9619,9620,9625,9627,9631],{"type":26,"value":9614},"Neither is obviously winning. Our ",{"type":21,"tag":29,"props":9616,"children":9617},{"href":809},[9618],{"type":26,"value":1716},{"type":26,"value":236},{"type":21,"tag":29,"props":9621,"children":9622},{"href":817},[9623],{"type":26,"value":9624},"modality comparison",{"type":26,"value":9626}," go into the specifics, and the broader ",{"type":21,"tag":29,"props":9628,"children":9629},{"href":867},[9630],{"type":26,"value":1462},{"type":26,"value":9632}," 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":59,"props":9634,"children":9636},{"id":9635},"encoding-is-necessary-not-sufficient",[9637],{"type":26,"value":9638},"Encoding is necessary, not sufficient",{"type":21,"tag":22,"props":9640,"children":9641},{},[9642],{"type":26,"value":9643},"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":9645,"children":9646},{},[9647,9652],{"type":21,"tag":71,"props":9648,"children":9649},{},[9650],{"type":26,"value":9651},"Fault-tolerant gate operations.",{"type":26,"value":9653}," 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":9655,"children":9656},{},[9657,9662],{"type":21,"tag":71,"props":9658,"children":9659},{},[9660],{"type":26,"value":9661},"Continuous syndrome extraction.",{"type":26,"value":9663}," 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":9665,"children":9666},{},[9667,9672],{"type":21,"tag":71,"props":9668,"children":9669},{},[9670],{"type":26,"value":9671},"Magic state distillation.",{"type":26,"value":9673}," 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":9675,"children":9676},{},[9677,9682],{"type":21,"tag":71,"props":9678,"children":9679},{},[9680],{"type":26,"value":9681},"Real-time decoding.",{"type":26,"value":9683}," 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":9685,"children":9686},{},[9687],{"type":26,"value":9688},"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":59,"props":9690,"children":9692},{"id":9691},"where-the-field-stands",[9693],{"type":26,"value":9694},"Where the field stands",{"type":21,"tag":22,"props":9696,"children":9697},{},[9698],{"type":26,"value":9699},"Honest summary as of mid-2026: logical qubits are real, demonstrated, and few.",{"type":21,"tag":22,"props":9701,"children":9702},{},[9703],{"type":26,"value":9704},"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":9706,"children":9707},{},[9708,9710,9715,9717,9722,9724,9729],{"type":26,"value":9709},"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":29,"props":9711,"children":9712},{"href":263},[9713],{"type":26,"value":9714},"NISQ regime",{"type":26,"value":9716}," that ",{"type":21,"tag":29,"props":9718,"children":9719},{"href":9203},[9720],{"type":26,"value":9721},"Preskill named in 2018",{"type":26,"value":9723},", where ",{"type":21,"tag":29,"props":9725,"children":9726},{"href":4497},[9727],{"type":26,"value":9728},"error mitigation",{"type":26,"value":9730}," (statistical post-processing rather than true correction) is the practical tool.",{"type":21,"tag":22,"props":9732,"children":9733},{},[9734,9736,9741,9743,9747],{"type":26,"value":9735},"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":29,"props":9737,"children":9738},{"href":1014},[9739],{"type":26,"value":9740},"free simulators",{"type":26,"value":9742}," or real QPUs today, and the ",{"type":21,"tag":29,"props":9744,"children":9745},{"href":4326},[9746],{"type":26,"value":4329},{"type":26,"value":9748}," collects structured routes in.",{"type":21,"tag":59,"props":9750,"children":9752},{"id":9751},"the-one-habit-worth-forming",[9753],{"type":26,"value":9754},"The one habit worth forming",{"type":21,"tag":22,"props":9756,"children":9757},{},[9758,9760,9765],{"type":26,"value":9759},"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":51,"props":9761,"children":9762},{},[9763],{"type":26,"value":9764},"logical",{"type":26,"value":9766}," qubits does that imply?",{"type":21,"tag":22,"props":9768,"children":9769},{},[9770,9772,9777],{"type":26,"value":9771},"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":29,"props":9773,"children":9774},{"href":4413},[9775],{"type":26,"value":9776},"glossary",{"type":26,"value":9778}," is a decent place to build the vocabulary for it.",{"title":7,"searchDepth":335,"depth":335,"links":9780},[9781,9782,9783,9784,9785,9786,9787,9788],{"id":9361,"depth":335,"text":9364},{"id":9435,"depth":335,"text":9438},{"id":9489,"depth":335,"text":9492},{"id":9534,"depth":335,"text":9537},{"id":9581,"depth":335,"text":9584},{"id":9635,"depth":335,"text":9638},{"id":9691,"depth":335,"text":9694},{"id":9751,"depth":335,"text":9754},"content:blog:logical-qubits-fault-tolerance-explained.md","blog\u002Flogical-qubits-fault-tolerance-explained.md","blog\u002Flogical-qubits-fault-tolerance-explained",{"_path":2353,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":9793,"description":9794,"date":3510,"author":11,"tags":9795,"readingTime":496,"body":9799,"_type":715,"_id":10897,"_source":717,"_file":10898,"_stem":10899,"_extension":720},"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.",[9796,9797,9798],"Post-Quantum","Security","Cryptography",{"type":18,"children":9800,"toc":10887},[9801,9821,9834,9840,9845,9955,9960,9979,9985,9990,10020,10030,10040,10052,10057,10063,10083,10088,10114,10125,10131,10136,10179,10185,10190,10610,10622,10628,10640,10652,10702,10707,10713,10718,10827,10833,10845,10850,10883],{"type":21,"tag":22,"props":9802,"children":9803},{},[9804,9806,9812,9814,9819],{"type":26,"value":9805},"Most discussions of ",{"type":21,"tag":29,"props":9807,"children":9809},{"href":9808},"\u002Fglossary\u002Fpost-quantum-cryptography",[9810],{"type":26,"value":9811},"post-quantum cryptography",{"type":26,"value":9813}," stall at the same place: ",{"type":21,"tag":51,"props":9815,"children":9816},{},[9817],{"type":26,"value":9818},"when do we have to do this?",{"type":26,"value":9820}," 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":9822,"children":9823},{},[9824,9826,9832],{"type":26,"value":9825},"If you already understand what PQC is and which algorithms replace which, our ",{"type":21,"tag":29,"props":9827,"children":9829},{"href":9828},"\u002Fblog\u002Fpost-quantum-cryptography-guide",[9830],{"type":26,"value":9831},"guide to post-quantum cryptography",{"type":26,"value":9833}," covers that ground. This post is about the calendar and the project plan.",{"type":21,"tag":59,"props":9835,"children":9837},{"id":9836},"the-standards-are-settled",[9838],{"type":26,"value":9839},"The standards are settled",{"type":21,"tag":22,"props":9841,"children":9842},{},[9843],{"type":26,"value":9844},"NIST finalized three post-quantum standards on August 13, 2024, after an eight-year competition:",{"type":21,"tag":4516,"props":9846,"children":9847},{},[9848,9874],{"type":21,"tag":4520,"props":9849,"children":9850},{},[9851],{"type":21,"tag":4524,"props":9852,"children":9853},{},[9854,9859,9864,9869],{"type":21,"tag":4528,"props":9855,"children":9856},{},[9857],{"type":26,"value":9858},"Standard",{"type":21,"tag":4528,"props":9860,"children":9861},{},[9862],{"type":26,"value":9863},"Algorithm",{"type":21,"tag":4528,"props":9865,"children":9866},{},[9867],{"type":26,"value":9868},"Formerly",{"type":21,"tag":4528,"props":9870,"children":9871},{},[9872],{"type":26,"value":9873},"Replaces",{"type":21,"tag":4542,"props":9875,"children":9876},{},[9877,9903,9929],{"type":21,"tag":4524,"props":9878,"children":9879},{},[9880,9888,9893,9898],{"type":21,"tag":4549,"props":9881,"children":9882},{},[9883],{"type":21,"tag":71,"props":9884,"children":9885},{},[9886],{"type":26,"value":9887},"FIPS 203",{"type":21,"tag":4549,"props":9889,"children":9890},{},[9891],{"type":26,"value":9892},"ML-KEM",{"type":21,"tag":4549,"props":9894,"children":9895},{},[9896],{"type":26,"value":9897},"CRYSTALS-Kyber",{"type":21,"tag":4549,"props":9899,"children":9900},{},[9901],{"type":26,"value":9902},"RSA key transport, ECDH",{"type":21,"tag":4524,"props":9904,"children":9905},{},[9906,9914,9919,9924],{"type":21,"tag":4549,"props":9907,"children":9908},{},[9909],{"type":21,"tag":71,"props":9910,"children":9911},{},[9912],{"type":26,"value":9913},"FIPS 204",{"type":21,"tag":4549,"props":9915,"children":9916},{},[9917],{"type":26,"value":9918},"ML-DSA",{"type":21,"tag":4549,"props":9920,"children":9921},{},[9922],{"type":26,"value":9923},"CRYSTALS-Dilithium",{"type":21,"tag":4549,"props":9925,"children":9926},{},[9927],{"type":26,"value":9928},"ECDSA, RSA-PSS signatures",{"type":21,"tag":4524,"props":9930,"children":9931},{},[9932,9940,9945,9950],{"type":21,"tag":4549,"props":9933,"children":9934},{},[9935],{"type":21,"tag":71,"props":9936,"children":9937},{},[9938],{"type":26,"value":9939},"FIPS 205",{"type":21,"tag":4549,"props":9941,"children":9942},{},[9943],{"type":26,"value":9944},"SLH-DSA",{"type":21,"tag":4549,"props":9946,"children":9947},{},[9948],{"type":26,"value":9949},"SPHINCS+",{"type":21,"tag":4549,"props":9951,"children":9952},{},[9953],{"type":26,"value":9954},"Conservative hash-based signing",{"type":21,"tag":22,"props":9956,"children":9957},{},[9958],{"type":26,"value":9959},"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":9961,"children":9962},{},[9963,9965,9970,9972,9977],{"type":26,"value":9964},"Two more are in flight. NIST selected ",{"type":21,"tag":71,"props":9966,"children":9967},{},[9968],{"type":26,"value":9969},"HQC",{"type":26,"value":9971}," 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":71,"props":9973,"children":9974},{},[9975],{"type":26,"value":9976},"FN-DSA",{"type":26,"value":9978}," (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":59,"props":9980,"children":9982},{"id":9981},"the-deadlines-that-exist-on-paper",[9983],{"type":26,"value":9984},"The deadlines that exist on paper",{"type":21,"tag":22,"props":9986,"children":9987},{},[9988],{"type":26,"value":9989},"Three separate sets of dates matter, and they don't line up.",{"type":21,"tag":22,"props":9991,"children":9992},{},[9993,9998,10000,10005,10007,10012,10013,10018],{"type":21,"tag":71,"props":9994,"children":9995},{},[9996],{"type":26,"value":9997},"NIST IR 8547",{"type":26,"value":9999}," (",{"type":21,"tag":51,"props":10001,"children":10002},{},[10003],{"type":26,"value":10004},"Transition to Post-Quantum Cryptography Standards",{"type":26,"value":10006},", 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":71,"props":10008,"children":10009},{},[10010],{"type":26,"value":10011},"deprecated after 2030",{"type":26,"value":236},{"type":21,"tag":71,"props":10014,"children":10015},{},[10016],{"type":26,"value":10017},"disallowed after 2035",{"type":26,"value":10019},". 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":10021,"children":10022},{},[10023,10028],{"type":21,"tag":71,"props":10024,"children":10025},{},[10026],{"type":26,"value":10027},"NSA's CNSA 2.0",{"type":26,"value":10029}," 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":10031,"children":10032},{},[10033,10038],{"type":21,"tag":71,"props":10034,"children":10035},{},[10036],{"type":26,"value":10037},"OMB M-23-02",{"type":26,"value":10039}," (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":10041,"children":10042},{},[10043,10045,10050],{"type":26,"value":10044},"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":71,"props":10046,"children":10047},{},[10048],{"type":26,"value":10049},"2027, not 2035",{"type":26,"value":10051},". 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":10053,"children":10054},{},[10055],{"type":26,"value":10056},"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":59,"props":10058,"children":10060},{"id":10059},"why-the-threat-model-has-no-start-date",[10061],{"type":26,"value":10062},"Why the threat model has no start date",{"type":21,"tag":22,"props":10064,"children":10065},{},[10066,10068,10073,10075,10081],{"type":26,"value":10067},"The reason a 2030 deadline is defensible even though nobody expects a code-breaking quantum computer by 2030 is ",{"type":21,"tag":71,"props":10069,"children":10070},{},[10071],{"type":26,"value":10072},"harvest now, decrypt later",{"type":26,"value":10074},". An adversary records encrypted traffic today and decrypts it whenever ",{"type":21,"tag":29,"props":10076,"children":10078},{"href":10077},"\u002Fglossary\u002Fshor-algorithm",[10079],{"type":26,"value":10080},"Shor's algorithm",{"type":26,"value":10082}," becomes runnable at scale. Any data whose confidentiality must outlive that moment is already exposed.",{"type":21,"tag":22,"props":10084,"children":10085},{},[10086],{"type":26,"value":10087},"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":10089,"children":10090},{},[10091,10093,10098,10100,10104,10106,10112],{"type":26,"value":10092},"What makes this hard to plan against is that the hardware estimate keeps moving. ",{"type":21,"tag":29,"props":10094,"children":10095},{"href":9058},[10096],{"type":26,"value":10097},"Shor's 1994 paper",{"type":26,"value":10099}," established the algorithm. The resource question (how many ",{"type":21,"tag":29,"props":10101,"children":10102},{"href":1993},[10103],{"type":26,"value":1996},{"type":26,"value":10105}," and how many gates to break RSA-2048) has been re-estimated downward repeatedly as compilation techniques improved. Recent work ",{"type":21,"tag":29,"props":10107,"children":10109},{"href":10108},"\u002Fresearch\u002Fshor-lean-formalization-2026",[10110],{"type":26,"value":10111},"machine-checking those estimates in Lean",{"type":26,"value":10113}," 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":10115,"children":10116},{},[10117,10119,10123],{"type":26,"value":10118},"For the record: symmetric cryptography is fine. ",{"type":21,"tag":29,"props":10120,"children":10121},{"href":7607},[10122],{"type":26,"value":7610},{"type":26,"value":10124}," gives only a quadratic speedup, so AES-256 retains 128-bit effective security. The migration is an asymmetric-crypto migration.",{"type":21,"tag":59,"props":10126,"children":10128},{"id":10127},"why-this-takes-years",[10129],{"type":26,"value":10130},"Why this takes years",{"type":21,"tag":22,"props":10132,"children":10133},{},[10134],{"type":26,"value":10135},"Migration is slow for reasons that have nothing to do with the algorithms:",{"type":21,"tag":3566,"props":10137,"children":10138},{},[10139,10149,10159,10169],{"type":21,"tag":3570,"props":10140,"children":10141},{},[10142,10147],{"type":21,"tag":71,"props":10143,"children":10144},{},[10145],{"type":26,"value":10146},"You don't know where your crypto is.",{"type":26,"value":10148}," 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":3570,"props":10150,"children":10151},{},[10152,10157],{"type":21,"tag":71,"props":10153,"children":10154},{},[10155],{"type":26,"value":10156},"Key and signature sizes change.",{"type":26,"value":10158}," 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":3570,"props":10160,"children":10161},{},[10162,10167],{"type":21,"tag":71,"props":10163,"children":10164},{},[10165],{"type":26,"value":10166},"Both endpoints must upgrade.",{"type":26,"value":10168}," You migrate at the speed of your slowest counterparty.",{"type":21,"tag":3570,"props":10170,"children":10171},{},[10172,10177],{"type":21,"tag":71,"props":10173,"children":10174},{},[10175],{"type":26,"value":10176},"Hardware has a decade-long tail.",{"type":26,"value":10178}," HSMs and embedded devices deployed today will still be running in 2035.",{"type":21,"tag":59,"props":10180,"children":10182},{"id":10181},"inventory-first-a-starting-point",[10183],{"type":26,"value":10184},"Inventory first: a starting point",{"type":21,"tag":22,"props":10186,"children":10187},{},[10188],{"type":26,"value":10189},"You cannot migrate an unknown. Start with automated discovery of what's negotiated in production, not what your architecture diagram claims.",{"type":21,"tag":312,"props":10191,"children":10195},{"className":10192,"code":10193,"language":10194,"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",[10196],{"type":21,"tag":79,"props":10197,"children":10198},{"__ignoreMap":7},[10199,10207,10255,10278,10285,10293,10301,10324,10368,10375,10383,10416,10483,10522,10543,10593],{"type":21,"tag":322,"props":10200,"children":10201},{"class":324,"line":325},[10202],{"type":21,"tag":322,"props":10203,"children":10204},{"style":3898},[10205],{"type":26,"value":10206},"# What key exchange and signature algorithms is this endpoint using?\n",{"type":21,"tag":322,"props":10208,"children":10209},{"class":324,"line":335},[10210,10215,10220,10225,10230,10235,10240,10245,10250],{"type":21,"tag":322,"props":10211,"children":10212},{"style":4814},[10213],{"type":26,"value":10214},"openssl",{"type":21,"tag":322,"props":10216,"children":10217},{"style":359},[10218],{"type":26,"value":10219}," s_client",{"type":21,"tag":322,"props":10221,"children":10222},{"style":348},[10223],{"type":26,"value":10224}," -connect",{"type":21,"tag":322,"props":10226,"children":10227},{"style":359},[10228],{"type":26,"value":10229}," example.com:443",{"type":21,"tag":322,"props":10231,"children":10232},{"style":348},[10233],{"type":26,"value":10234}," -brief",{"type":21,"tag":322,"props":10236,"children":10237},{"style":3648},[10238],{"type":26,"value":10239}," \u003C",{"type":21,"tag":322,"props":10241,"children":10242},{"style":359},[10243],{"type":26,"value":10244},"\u002Fdev\u002Fnull",{"type":21,"tag":322,"props":10246,"children":10247},{"style":3648},[10248],{"type":26,"value":10249}," 2>&1",{"type":21,"tag":322,"props":10251,"children":10252},{"style":348},[10253],{"type":26,"value":10254}," \\\n",{"type":21,"tag":322,"props":10256,"children":10257},{"class":324,"line":344},[10258,10263,10268,10273],{"type":21,"tag":322,"props":10259,"children":10260},{"style":3648},[10261],{"type":26,"value":10262},"  |",{"type":21,"tag":322,"props":10264,"children":10265},{"style":4814},[10266],{"type":26,"value":10267}," grep",{"type":21,"tag":322,"props":10269,"children":10270},{"style":348},[10271],{"type":26,"value":10272}," -Ei",{"type":21,"tag":322,"props":10274,"children":10275},{"style":359},[10276],{"type":26,"value":10277}," 'protocol|ciphersuite|group|peer signature'\n",{"type":21,"tag":322,"props":10279,"children":10280},{"class":324,"line":407},[10281],{"type":21,"tag":322,"props":10282,"children":10283},{"emptyLinePlaceholder":3672},[10284],{"type":26,"value":3675},{"type":21,"tag":322,"props":10286,"children":10287},{"class":324,"line":431},[10288],{"type":21,"tag":322,"props":10289,"children":10290},{"style":3898},[10291],{"type":26,"value":10292},"# Does the endpoint support hybrid post-quantum key exchange?\n",{"type":21,"tag":322,"props":10294,"children":10295},{"class":324,"line":453},[10296],{"type":21,"tag":322,"props":10297,"children":10298},{"style":3898},[10299],{"type":26,"value":10300},"# Requires OpenSSL 3.5+, which ships ML-KEM natively.\n",{"type":21,"tag":322,"props":10302,"children":10303},{"class":324,"line":474},[10304,10308,10312,10316,10320],{"type":21,"tag":322,"props":10305,"children":10306},{"style":4814},[10307],{"type":26,"value":10214},{"type":21,"tag":322,"props":10309,"children":10310},{"style":359},[10311],{"type":26,"value":10219},{"type":21,"tag":322,"props":10313,"children":10314},{"style":348},[10315],{"type":26,"value":10224},{"type":21,"tag":322,"props":10317,"children":10318},{"style":359},[10319],{"type":26,"value":10229},{"type":21,"tag":322,"props":10321,"children":10322},{"style":348},[10323],{"type":26,"value":10254},{"type":21,"tag":322,"props":10325,"children":10326},{"class":324,"line":496},[10327,10332,10337,10341,10345,10349,10354,10358,10363],{"type":21,"tag":322,"props":10328,"children":10329},{"style":348},[10330],{"type":26,"value":10331},"  -groups",{"type":21,"tag":322,"props":10333,"children":10334},{"style":359},[10335],{"type":26,"value":10336}," X25519MLKEM768",{"type":21,"tag":322,"props":10338,"children":10339},{"style":3648},[10340],{"type":26,"value":10239},{"type":21,"tag":322,"props":10342,"children":10343},{"style":359},[10344],{"type":26,"value":10244},{"type":21,"tag":322,"props":10346,"children":10347},{"style":3648},[10348],{"type":26,"value":10249},{"type":21,"tag":322,"props":10350,"children":10351},{"style":3648},[10352],{"type":26,"value":10353}," |",{"type":21,"tag":322,"props":10355,"children":10356},{"style":4814},[10357],{"type":26,"value":10267},{"type":21,"tag":322,"props":10359,"children":10360},{"style":348},[10361],{"type":26,"value":10362}," -i",{"type":21,"tag":322,"props":10364,"children":10365},{"style":359},[10366],{"type":26,"value":10367}," 'group\\|error'\n",{"type":21,"tag":322,"props":10369,"children":10370},{"class":324,"line":16},[10371],{"type":21,"tag":322,"props":10372,"children":10373},{"emptyLinePlaceholder":3672},[10374],{"type":26,"value":3675},{"type":21,"tag":322,"props":10376,"children":10377},{"class":324,"line":3894},[10378],{"type":21,"tag":322,"props":10379,"children":10380},{"style":3898},[10381],{"type":26,"value":10382},"# Inventory certificate signature algorithms across an internal fleet\n",{"type":21,"tag":322,"props":10384,"children":10385},{"class":324,"line":3904},[10386,10391,10396,10401,10406,10411],{"type":21,"tag":322,"props":10387,"children":10388},{"style":3648},[10389],{"type":26,"value":10390},"while",{"type":21,"tag":322,"props":10392,"children":10393},{"style":348},[10394],{"type":26,"value":10395}," read",{"type":21,"tag":322,"props":10397,"children":10398},{"style":348},[10399],{"type":26,"value":10400}," -r",{"type":21,"tag":322,"props":10402,"children":10403},{"style":359},[10404],{"type":26,"value":10405}," host",{"type":21,"tag":322,"props":10407,"children":10408},{"style":329},[10409],{"type":26,"value":10410},"; ",{"type":21,"tag":322,"props":10412,"children":10413},{"style":3648},[10414],{"type":26,"value":10415},"do\n",{"type":21,"tag":322,"props":10417,"children":10418},{"class":324,"line":1043},[10419,10424,10428,10433,10438,10442,10447,10451,10455,10460,10465,10470,10475,10479],{"type":21,"tag":322,"props":10420,"children":10421},{"style":329},[10422],{"type":26,"value":10423},"  alg",{"type":21,"tag":322,"props":10425,"children":10426},{"style":3648},[10427],{"type":26,"value":3688},{"type":21,"tag":322,"props":10429,"children":10430},{"style":329},[10431],{"type":26,"value":10432},"$(",{"type":21,"tag":322,"props":10434,"children":10435},{"style":348},[10436],{"type":26,"value":10437},"echo",{"type":21,"tag":322,"props":10439,"children":10440},{"style":3648},[10441],{"type":26,"value":10353},{"type":21,"tag":322,"props":10443,"children":10444},{"style":4814},[10445],{"type":26,"value":10446}," openssl",{"type":21,"tag":322,"props":10448,"children":10449},{"style":359},[10450],{"type":26,"value":10219},{"type":21,"tag":322,"props":10452,"children":10453},{"style":348},[10454],{"type":26,"value":10224},{"type":21,"tag":322,"props":10456,"children":10457},{"style":359},[10458],{"type":26,"value":10459}," \"",{"type":21,"tag":322,"props":10461,"children":10462},{"style":329},[10463],{"type":26,"value":10464},"$host",{"type":21,"tag":322,"props":10466,"children":10467},{"style":359},[10468],{"type":26,"value":10469},":443\"",{"type":21,"tag":322,"props":10471,"children":10472},{"style":3648},[10473],{"type":26,"value":10474}," 2>",{"type":21,"tag":322,"props":10476,"children":10477},{"style":359},[10478],{"type":26,"value":10244},{"type":21,"tag":322,"props":10480,"children":10481},{"style":348},[10482],{"type":26,"value":10254},{"type":21,"tag":322,"props":10484,"children":10485},{"class":324,"line":3964},[10486,10491,10495,10500,10505,10510,10514,10518],{"type":21,"tag":322,"props":10487,"children":10488},{"style":3648},[10489],{"type":26,"value":10490},"    |",{"type":21,"tag":322,"props":10492,"children":10493},{"style":4814},[10494],{"type":26,"value":10446},{"type":21,"tag":322,"props":10496,"children":10497},{"style":359},[10498],{"type":26,"value":10499}," x509",{"type":21,"tag":322,"props":10501,"children":10502},{"style":348},[10503],{"type":26,"value":10504}," -noout",{"type":21,"tag":322,"props":10506,"children":10507},{"style":348},[10508],{"type":26,"value":10509}," -text",{"type":21,"tag":322,"props":10511,"children":10512},{"style":3648},[10513],{"type":26,"value":10474},{"type":21,"tag":322,"props":10515,"children":10516},{"style":359},[10517],{"type":26,"value":10244},{"type":21,"tag":322,"props":10519,"children":10520},{"style":348},[10521],{"type":26,"value":10254},{"type":21,"tag":322,"props":10523,"children":10524},{"class":324,"line":4012},[10525,10529,10534,10539],{"type":21,"tag":322,"props":10526,"children":10527},{"style":3648},[10528],{"type":26,"value":10490},{"type":21,"tag":322,"props":10530,"children":10531},{"style":4814},[10532],{"type":26,"value":10533}," awk",{"type":21,"tag":322,"props":10535,"children":10536},{"style":359},[10537],{"type":26,"value":10538}," '\u002FSignature Algorithm\u002F {print $3; exit}'",{"type":21,"tag":322,"props":10540,"children":10541},{"style":329},[10542],{"type":26,"value":3748},{"type":21,"tag":322,"props":10544,"children":10545},{"class":324,"line":4054},[10546,10551,10556,10560,10564,10568,10573,10578,10583,10588],{"type":21,"tag":322,"props":10547,"children":10548},{"style":348},[10549],{"type":26,"value":10550},"  printf",{"type":21,"tag":322,"props":10552,"children":10553},{"style":359},[10554],{"type":26,"value":10555}," '%s\\t%s\\n'",{"type":21,"tag":322,"props":10557,"children":10558},{"style":359},[10559],{"type":26,"value":10459},{"type":21,"tag":322,"props":10561,"children":10562},{"style":329},[10563],{"type":26,"value":10464},{"type":21,"tag":322,"props":10565,"children":10566},{"style":359},[10567],{"type":26,"value":3798},{"type":21,"tag":322,"props":10569,"children":10570},{"style":359},[10571],{"type":26,"value":10572}," \"${",{"type":21,"tag":322,"props":10574,"children":10575},{"style":329},[10576],{"type":26,"value":10577},"alg",{"type":21,"tag":322,"props":10579,"children":10580},{"style":3648},[10581],{"type":26,"value":10582},":-",{"type":21,"tag":322,"props":10584,"children":10585},{"style":329},[10586],{"type":26,"value":10587},"UNREACHABLE",{"type":21,"tag":322,"props":10589,"children":10590},{"style":359},[10591],{"type":26,"value":10592},"}\"\n",{"type":21,"tag":322,"props":10594,"children":10595},{"class":324,"line":5081},[10596,10601,10605],{"type":21,"tag":322,"props":10597,"children":10598},{"style":3648},[10599],{"type":26,"value":10600},"done",{"type":21,"tag":322,"props":10602,"children":10603},{"style":3648},[10604],{"type":26,"value":10239},{"type":21,"tag":322,"props":10606,"children":10607},{"style":329},[10608],{"type":26,"value":10609}," hosts.txt\n",{"type":21,"tag":22,"props":10611,"children":10612},{},[10613,10615,10620],{"type":26,"value":10614},"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":71,"props":10616,"children":10617},{},[10618],{"type":26,"value":10619},"how long the data it protects must stay confidential",{"type":26,"value":10621},". That last column is what turns an inventory into a prioritized migration order.",{"type":21,"tag":59,"props":10623,"children":10625},{"id":10624},"hybrid-deployment-is-the-low-risk-path",[10626],{"type":26,"value":10627},"Hybrid deployment is the low-risk path",{"type":21,"tag":22,"props":10629,"children":10630},{},[10631,10633,10638],{"type":26,"value":10632},"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":51,"props":10634,"children":10635},{},[10636],{"type":26,"value":10637},"both",{"type":26,"value":10639}," are broken. This hedges against implementation bugs and undiscovered cryptanalysis in the newer lattice schemes.",{"type":21,"tag":22,"props":10641,"children":10642},{},[10643,10645,10650],{"type":26,"value":10644},"This is no longer experimental. ",{"type":21,"tag":71,"props":10646,"children":10647},{},[10648],{"type":26,"value":10649},"X25519MLKEM768",{"type":26,"value":10651}," 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":312,"props":10653,"children":10655},{"className":10192,"code":10654,"language":10194,"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",[10656],{"type":21,"tag":79,"props":10657,"children":10658},{"__ignoreMap":7},[10659,10667,10685],{"type":21,"tag":322,"props":10660,"children":10661},{"class":324,"line":325},[10662],{"type":21,"tag":322,"props":10663,"children":10664},{"style":3898},[10665],{"type":26,"value":10666},"# nginx with OpenSSL 3.5+: explicit hybrid preference, classical fallback\n",{"type":21,"tag":322,"props":10668,"children":10669},{"class":324,"line":335},[10670,10675,10680],{"type":21,"tag":322,"props":10671,"children":10672},{"style":4814},[10673],{"type":26,"value":10674},"ssl_protocols",{"type":21,"tag":322,"props":10676,"children":10677},{"style":359},[10678],{"type":26,"value":10679}," TLSv1.3",{"type":21,"tag":322,"props":10681,"children":10682},{"style":329},[10683],{"type":26,"value":10684},";\n",{"type":21,"tag":322,"props":10686,"children":10687},{"class":324,"line":344},[10688,10693,10698],{"type":21,"tag":322,"props":10689,"children":10690},{"style":4814},[10691],{"type":26,"value":10692},"ssl_ecdh_curve",{"type":21,"tag":322,"props":10694,"children":10695},{"style":359},[10696],{"type":26,"value":10697}," X25519MLKEM768:X25519:P-256",{"type":21,"tag":322,"props":10699,"children":10700},{"style":329},[10701],{"type":26,"value":10684},{"type":21,"tag":22,"props":10703,"children":10704},{},[10705],{"type":26,"value":10706},"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":59,"props":10708,"children":10710},{"id":10709},"what-to-do-this-quarter",[10711],{"type":26,"value":10712},"What to do this quarter",{"type":21,"tag":22,"props":10714,"children":10715},{},[10716],{"type":26,"value":10717},"A realistic 90-day slice:",{"type":21,"tag":7457,"props":10719,"children":10720},{},[10721,10731,10770,10780,10790,10800,10817],{"type":21,"tag":3570,"props":10722,"children":10723},{},[10724,10729],{"type":21,"tag":71,"props":10725,"children":10726},{},[10727],{"type":26,"value":10728},"Appoint an owner.",{"type":26,"value":10730}," Migrations without a named accountable person do not happen. This is a multi-year program, not a ticket.",{"type":21,"tag":3570,"props":10732,"children":10733},{},[10734,10739,10741,10747,10748,10754,10755,10761,10762,10768],{"type":21,"tag":71,"props":10735,"children":10736},{},[10737],{"type":26,"value":10738},"Run automated discovery",{"type":26,"value":10740}," across external endpoints, internal service mesh, and code repositories. Grep your codebases for ",{"type":21,"tag":79,"props":10742,"children":10744},{"className":10743},[],[10745],{"type":26,"value":10746},"RSA",{"type":26,"value":367},{"type":21,"tag":79,"props":10749,"children":10751},{"className":10750},[],[10752],{"type":26,"value":10753},"ECDSA",{"type":26,"value":367},{"type":21,"tag":79,"props":10756,"children":10758},{"className":10757},[],[10759],{"type":26,"value":10760},"secp256",{"type":26,"value":367},{"type":21,"tag":79,"props":10763,"children":10765},{"className":10764},[],[10766],{"type":26,"value":10767},"PKCS1",{"type":26,"value":10769},", and hardcoded algorithm identifiers.",{"type":21,"tag":3570,"props":10771,"children":10772},{},[10773,10778],{"type":21,"tag":71,"props":10774,"children":10775},{},[10776],{"type":26,"value":10777},"Classify by data lifetime.",{"type":26,"value":10779}," Sort systems by how long their data must stay secret. Anything over ten years is priority one.",{"type":21,"tag":3570,"props":10781,"children":10782},{},[10783,10788],{"type":21,"tag":71,"props":10784,"children":10785},{},[10786],{"type":26,"value":10787},"Turn on hybrid TLS where it's free.",{"type":26,"value":10789}," 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":3570,"props":10791,"children":10792},{},[10793,10798],{"type":21,"tag":71,"props":10794,"children":10795},{},[10796],{"type":26,"value":10797},"Send the vendor questionnaire.",{"type":26,"value":10799}," 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":3570,"props":10801,"children":10802},{},[10803,10808,10810,10815],{"type":21,"tag":71,"props":10804,"children":10805},{},[10806],{"type":26,"value":10807},"Fix crypto-agility in new code.",{"type":26,"value":10809}," Stop hardcoding algorithms. Route every operation through an abstraction that takes the algorithm from configuration, so the ",{"type":21,"tag":51,"props":10811,"children":10812},{},[10813],{"type":26,"value":10814},"next",{"type":26,"value":10816}," 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":3570,"props":10818,"children":10819},{},[10820,10825],{"type":21,"tag":71,"props":10821,"children":10822},{},[10823],{"type":26,"value":10824},"Move code signing early.",{"type":26,"value":10826}," It has the earliest federal deadline, the longest verification tail, and signatures that must remain verifiable for decades.",{"type":21,"tag":59,"props":10828,"children":10830},{"id":10829},"the-bottom-line",[10831],{"type":26,"value":10832},"The bottom line",{"type":21,"tag":22,"props":10834,"children":10835},{},[10836,10838,10843],{"type":26,"value":10837},"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":71,"props":10839,"children":10840},{},[10841],{"type":26,"value":10842},"after 2030, classical asymmetric crypto is deprecated, and after 2035, it's disallowed",{"type":26,"value":10844},", with federal national-security systems running years ahead of that.",{"type":21,"tag":22,"props":10846,"children":10847},{},[10848],{"type":26,"value":10849},"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":10851,"children":10852},{},[10853,10858,10859,10864,10865,10870,10871,10876,10877],{"type":21,"tag":71,"props":10854,"children":10855},{},[10856],{"type":26,"value":10857},"Further reading:",{"type":26,"value":1911},{"type":21,"tag":29,"props":10860,"children":10861},{"href":9828},[10862],{"type":26,"value":10863},"What PQC is",{"type":26,"value":7562},{"type":21,"tag":29,"props":10866,"children":10867},{"href":1284},[10868],{"type":26,"value":10869},"Reading policy documents as technical assessments",{"type":26,"value":7562},{"type":21,"tag":29,"props":10872,"children":10873},{"href":4413},[10874],{"type":26,"value":10875},"Quantum computing glossary",{"type":26,"value":7562},{"type":21,"tag":29,"props":10878,"children":10880},{"href":10879},"\u002Fnews",[10881],{"type":26,"value":10882},"Latest developments",{"type":21,"tag":703,"props":10884,"children":10885},{},[10886],{"type":26,"value":707},{"title":7,"searchDepth":335,"depth":335,"links":10888},[10889,10890,10891,10892,10893,10894,10895,10896],{"id":9836,"depth":335,"text":9839},{"id":9981,"depth":335,"text":9984},{"id":10059,"depth":335,"text":10062},{"id":10127,"depth":335,"text":10130},{"id":10181,"depth":335,"text":10184},{"id":10624,"depth":335,"text":10627},{"id":10709,"depth":335,"text":10712},{"id":10829,"depth":335,"text":10832},"content:blog:post-quantum-migration-deadlines.md","blog\u002Fpost-quantum-migration-deadlines.md","blog\u002Fpost-quantum-migration-deadlines",{"_path":10901,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":10902,"description":10903,"date":3510,"author":11,"tags":10904,"readingTime":16,"body":10905,"_type":715,"_id":11471,"_source":717,"_file":11472,"_stem":11473,"_extension":720},"\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.",[9796,9797,9798],{"type":18,"children":10906,"toc":11461},[10907,10912,10917,10923,10947,10959,10964,10970,10988,11000,11006,11026,11065,11094,11100,11134,11161,11187,11213,11218,11271,11281,11287,11311,11323,11329,11334,11346,11352,11357,11383,11395,11401,11406,11418,11430],{"type":21,"tag":22,"props":10908,"children":10909},{},[10910],{"type":26,"value":10911},"\"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":10913,"children":10914},{},[10915],{"type":26,"value":10916},"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":59,"props":10918,"children":10920},{"id":10919},"defining-the-term-precisely",[10921],{"type":26,"value":10922},"Defining the term precisely",{"type":21,"tag":22,"props":10924,"children":10925},{},[10926,10932,10934,10939,10941,10945],{"type":21,"tag":29,"props":10927,"children":10929},{"href":10928},"\u002Fglossary\u002Fq-day",[10930],{"type":26,"value":10931},"Q-Day",{"type":26,"value":10933}," is most usefully defined as ",{"type":21,"tag":71,"props":10935,"children":10936},{},[10937],{"type":26,"value":10938},"the day a cryptographically relevant quantum computer (CRQC) first exists",{"type":26,"value":10940},": a machine that runs ",{"type":21,"tag":29,"props":10942,"children":10943},{"href":10077},[10944],{"type":26,"value":10080},{"type":26,"value":10946}," against real-world key sizes within an operationally useful time.",{"type":21,"tag":22,"props":10948,"children":10949},{},[10950,10952,10957],{"type":26,"value":10951},"The looseness creeps in around \"real-world key sizes.\" Some writers use Q-Day to mean specifically ",{"type":21,"tag":51,"props":10953,"children":10954},{},[10955],{"type":26,"value":10956},"RSA-2048 is broken",{"type":26,"value":10958},". 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":10960,"children":10961},{},[10962],{"type":26,"value":10963},"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":59,"props":10965,"children":10967},{"id":10966},"why-the-date-matters-less-than-youd-think",[10968],{"type":26,"value":10969},"Why the date matters less than you'd think",{"type":21,"tag":22,"props":10971,"children":10972},{},[10973,10975,10979,10981,10986],{"type":26,"value":10974},"The instinct on hearing \"Q-Day\" is to ask when. That question is less decision-relevant than it feels, because of ",{"type":21,"tag":71,"props":10976,"children":10977},{},[10978],{"type":26,"value":10072},{"type":26,"value":10980},": 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":51,"props":10982,"children":10983},{},[10984],{"type":26,"value":10985},"now",{"type":26,"value":10987},", regardless of when Q-Day lands.",{"type":21,"tag":22,"props":10989,"children":10990},{},[10991,10993,10998],{"type":26,"value":10992},"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":29,"props":10994,"children":10995},{"href":2353},[10996],{"type":26,"value":10997},"the post-quantum migration clock",{"type":26,"value":10999},", and they are deliberately independent of any hardware forecast.",{"type":21,"tag":59,"props":11001,"children":11003},{"id":11002},"the-core-question-what-would-the-machine-look-like",[11004],{"type":26,"value":11005},"The core question: what would the machine look like?",{"type":21,"tag":22,"props":11007,"children":11008},{},[11009,11011,11016,11018,11024],{"type":26,"value":11010},"Shor's algorithm, ",{"type":21,"tag":29,"props":11012,"children":11013},{"href":9058},[11014],{"type":26,"value":11015},"introduced in 1994",{"type":26,"value":11017},", reduces factoring to period-finding, which it solves using ",{"type":21,"tag":29,"props":11019,"children":11021},{"href":11020},"\u002Fglossary\u002Fphase-estimation",[11022],{"type":26,"value":11023},"quantum phase estimation",{"type":26,"value":11025}," 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":11027,"children":11028},{},[11029,11034,11036,11042,11044,11048,11050,11055,11057,11063],{"type":21,"tag":71,"props":11030,"children":11031},{},[11032],{"type":26,"value":11033},"Logical qubits",{"type":26,"value":11035}," are the idealized, error-free qubits the algorithm is written against. Gidney and Ekerå's 2019 construction expresses this as ",{"type":21,"tag":79,"props":11037,"children":11039},{"className":11038},[],[11040],{"type":26,"value":11041},"3n + 0.002·n·lg n",{"type":26,"value":11043}," logical qubits for an ",{"type":21,"tag":51,"props":11045,"children":11046},{},[11047],{"type":26,"value":5279},{"type":26,"value":11049},"-bit modulus. For RSA-2048 that works out to roughly ",{"type":21,"tag":71,"props":11051,"children":11052},{},[11053],{"type":26,"value":11054},"6,200 logical qubits",{"type":26,"value":11056},", alongside a Toffoli gate count on the order of ",{"type":21,"tag":79,"props":11058,"children":11060},{"className":11059},[],[11061],{"type":26,"value":11062},"0.3n³",{"type":26,"value":11064},", billions of gates.",{"type":21,"tag":22,"props":11066,"children":11067},{},[11068,11073,11075,11079,11081,11085,11087,11092],{"type":21,"tag":71,"props":11069,"children":11070},{},[11071],{"type":26,"value":11072},"Physical qubits",{"type":26,"value":11074}," are what you build. The ratio between them is the overhead imposed by ",{"type":21,"tag":29,"props":11076,"children":11077},{"href":1536},[11078],{"type":26,"value":9415},{"type":26,"value":11080},", and it is brutal. Under the surface code, each ",{"type":21,"tag":29,"props":11082,"children":11083},{"href":1993},[11084],{"type":26,"value":9403},{"type":26,"value":11086}," is encoded across a patch of physical qubits whose size grows with the ",{"type":21,"tag":51,"props":11088,"children":11089},{},[11090],{"type":26,"value":11091},"code distance",{"type":26,"value":11093},", 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":59,"props":11095,"children":11097},{"id":11096},"the-published-estimates-and-why-they-moved",[11098],{"type":26,"value":11099},"The published estimates, and why they moved",{"type":21,"tag":22,"props":11101,"children":11102},{},[11103,11105,11110,11112,11117,11118,11125,11127,11132],{"type":26,"value":11104},"The most-cited figure comes from ",{"type":21,"tag":71,"props":11106,"children":11107},{},[11108],{"type":26,"value":11109},"Gidney and Ekerå (2019)",{"type":26,"value":11111},": factoring a 2048-bit RSA integer in ",{"type":21,"tag":71,"props":11113,"children":11114},{},[11115],{"type":26,"value":11116},"8 hours using 20 million noisy physical qubits",{"type":26,"value":9999},{"type":21,"tag":29,"props":11119,"children":11122},{"href":11120,"rel":11121},"https:\u002F\u002Farxiv.org\u002Fabs\u002F1905.09749",[44],[11123],{"type":26,"value":11124},"arXiv:1905.09749",{"type":26,"value":11126},", later published in ",{"type":21,"tag":51,"props":11128,"children":11129},{},[11130],{"type":26,"value":11131},"Quantum",{"type":26,"value":11133},"). That was already a hundredfold reduction in spacetime volume over prior proposals.",{"type":21,"tag":22,"props":11135,"children":11136},{},[11137,11139,11144,11146,11151,11152,11159],{"type":26,"value":11138},"In May 2025, ",{"type":21,"tag":71,"props":11140,"children":11141},{},[11142],{"type":26,"value":11143},"Gidney",{"type":26,"value":11145}," published a revised analysis: ",{"type":21,"tag":71,"props":11147,"children":11148},{},[11149],{"type":26,"value":11150},"fewer than one million noisy physical qubits, running for under a week",{"type":26,"value":9999},{"type":21,"tag":29,"props":11153,"children":11156},{"href":11154,"rel":11155},"https:\u002F\u002Farxiv.org\u002Fabs\u002F2505.15917",[44],[11157],{"type":26,"value":11158},"arXiv:2505.15917",{"type":26,"value":11160},"). That is roughly a 20× reduction in qubit count against his own earlier number, traded for a longer runtime.",{"type":21,"tag":22,"props":11162,"children":11163},{},[11164,11166,11171,11173,11178,11180,11185],{"type":26,"value":11165},"Both papers assume broadly the same hardware model: a planar square grid of superconducting qubits with nearest-neighbour connectivity, a ",{"type":21,"tag":71,"props":11167,"children":11168},{},[11169],{"type":26,"value":11170},"0.1% gate error rate",{"type":26,"value":11172},", a ",{"type":21,"tag":71,"props":11174,"children":11175},{},[11176],{"type":26,"value":11177},"1 microsecond",{"type":26,"value":11179}," surface code cycle, and a ",{"type":21,"tag":71,"props":11181,"children":11182},{},[11183],{"type":26,"value":11184},"10 microsecond",{"type":26,"value":11186}," control-system reaction time.",{"type":21,"tag":22,"props":11188,"children":11189},{},[11190,11192,11197,11199,11204,11206,11211],{"type":26,"value":11191},"That is the key insight about the discrepancy: ",{"type":21,"tag":71,"props":11193,"children":11194},{},[11195],{"type":26,"value":11196},"the hardware assumptions barely changed. The algorithms and codes did.",{"type":26,"value":11198}," The 2025 reduction comes from three specific advances: approximate residue arithmetic (fewer operations), ",{"type":21,"tag":51,"props":11200,"children":11201},{},[11202],{"type":26,"value":11203},"yoked surface codes",{"type":26,"value":11205}," (roughly tripling storage density for idle logical qubits), and ",{"type":21,"tag":51,"props":11207,"children":11208},{},[11209],{"type":26,"value":11210},"magic state cultivation",{"type":26,"value":11212},", which makes producing the high-fidelity non-Clifford resource states that dominate the cost far cheaper than traditional distillation.",{"type":21,"tag":22,"props":11214,"children":11215},{},[11216],{"type":26,"value":11217},"This is why estimates in the wild vary so wildly. Any published number is a function of at least five assumptions:",{"type":21,"tag":3566,"props":11219,"children":11220},{},[11221,11231,11241,11251,11261],{"type":21,"tag":3570,"props":11222,"children":11223},{},[11224,11229],{"type":21,"tag":71,"props":11225,"children":11226},{},[11227],{"type":26,"value":11228},"Physical error rate.",{"type":26,"value":11230}," 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":3570,"props":11232,"children":11233},{},[11234,11239],{"type":21,"tag":71,"props":11235,"children":11236},{},[11237],{"type":26,"value":11238},"Code choice.",{"type":26,"value":11240}," 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":3570,"props":11242,"children":11243},{},[11244,11249],{"type":21,"tag":71,"props":11245,"children":11246},{},[11247],{"type":26,"value":11248},"Cycle and reaction time.",{"type":26,"value":11250}," These set wall-clock runtime, and runtime feeds back into how much error correction you need.",{"type":21,"tag":3570,"props":11252,"children":11253},{},[11254,11259],{"type":21,"tag":71,"props":11255,"children":11256},{},[11257],{"type":26,"value":11258},"Magic state strategy.",{"type":26,"value":11260}," Distillation factories historically consumed the majority of the machine's footprint. Cultivation changes that budget.",{"type":21,"tag":3570,"props":11262,"children":11263},{},[11264,11269],{"type":21,"tag":71,"props":11265,"children":11266},{},[11267],{"type":26,"value":11268},"Space–time tradeoff.",{"type":26,"value":11270}," 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":11272,"children":11273},{},[11274,11279],{"type":21,"tag":71,"props":11275,"children":11276},{},[11277],{"type":26,"value":11278},"The direction of travel is the important dynamic.",{"type":26,"value":11280}," 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":59,"props":11282,"children":11284},{"id":11283},"where-hardware-stands",[11285],{"type":26,"value":11286},"Where hardware stands",{"type":21,"tag":22,"props":11288,"children":11289},{},[11290,11292,11297,11299,11303,11305,11309],{"type":26,"value":11291},"Current devices carry roughly 100 to 1,000 physical qubits. Google's Willow processor, used in the 2024 ",{"type":21,"tag":29,"props":11293,"children":11294},{"href":4194},[11295],{"type":26,"value":11296},"below-threshold demonstration",{"type":26,"value":11298},", 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":29,"props":11300,"children":11301},{"href":9463},[11302],{"type":26,"value":9466},{"type":26,"value":11304},", connectivity, and control requirements those papers assume. Our ",{"type":21,"tag":29,"props":11306,"children":11307},{"href":809},[11308],{"type":26,"value":1716},{"type":26,"value":11310}," tracks what is available.",{"type":21,"tag":22,"props":11312,"children":11313},{},[11314,11316,11321],{"type":26,"value":11315},"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":51,"props":11317,"children":11318},{},[11319],{"type":26,"value":11320},"halved",{"type":26,"value":11322}," 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":59,"props":11324,"children":11326},{"id":11325},"machine-checking-the-numbers",[11327],{"type":26,"value":11328},"Machine-checking the numbers",{"type":21,"tag":22,"props":11330,"children":11331},{},[11332],{"type":26,"value":11333},"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":11335,"children":11336},{},[11337,11339,11344],{"type":26,"value":11338},"That is why the 2026 ",{"type":21,"tag":29,"props":11340,"children":11341},{"href":10108},[11342],{"type":26,"value":11343},"Lean formalization of Shor's algorithm",{"type":26,"value":11345}," 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":59,"props":11347,"children":11349},{"id":11348},"the-vendor-perspective-clearly-labelled",[11350],{"type":26,"value":11351},"The vendor perspective, clearly labelled",{"type":21,"tag":22,"props":11353,"children":11354},{},[11355],{"type":26,"value":11356},"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":11358,"children":11359},{},[11360,11362,11367,11369,11374,11376,11381],{"type":26,"value":11361},"IonQ's December 2024 post ",{"type":21,"tag":51,"props":11363,"children":11364},{},[11365],{"type":26,"value":11366},"Q-Day and the Impact of Breaking RSA2048",{"type":26,"value":11368},", by SVP of Product and Applications Ariel Braunstein, is a reasonable example. ",{"type":21,"tag":71,"props":11370,"children":11371},{},[11372],{"type":26,"value":11373},"IonQ argues",{"type":26,"value":11375}," 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":71,"props":11377,"children":11378},{},[11379],{"type":26,"value":11380},"IonQ's recommendation",{"type":26,"value":11382}," (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":11384,"children":11385},{},[11386,11388,11393],{"type":26,"value":11387},"Note also what it does not contain. ",{"type":21,"tag":71,"props":11389,"children":11390},{},[11391],{"type":26,"value":11392},"The IonQ post cites no qubit count or resource estimate for RSA-2048 at all.",{"type":26,"value":11394}," 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":59,"props":11396,"children":11398},{"id":11397},"how-to-reason-about-it-yourself",[11399],{"type":26,"value":11400},"How to reason about it yourself",{"type":21,"tag":22,"props":11402,"children":11403},{},[11404],{"type":26,"value":11405},"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":11407,"children":11408},{},[11409,11411,11416],{"type":26,"value":11410},"So the honest conclusion is an uncomfortable one: ",{"type":21,"tag":71,"props":11412,"children":11413},{},[11414],{"type":26,"value":11415},"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":11417}," 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":11419,"children":11420},{},[11421,11423,11428],{"type":26,"value":11422},"The responsible posture is to migrate on a schedule that does not depend on knowing the date. Start with ",{"type":21,"tag":29,"props":11424,"children":11425},{"href":9828},[11426],{"type":26,"value":11427},"what PQC is",{"type":26,"value":11429},", then work the calendar. If your plan breaks when the estimate drops another 10×, it was never a plan.",{"type":21,"tag":22,"props":11431,"children":11432},{},[11433,11437,11438,11443,11444,11449,11450,11456,11457],{"type":21,"tag":71,"props":11434,"children":11435},{},[11436],{"type":26,"value":10857},{"type":26,"value":1911},{"type":21,"tag":29,"props":11439,"children":11440},{"href":2353},[11441],{"type":26,"value":11442},"Post-quantum migration deadlines",{"type":26,"value":7562},{"type":21,"tag":29,"props":11445,"children":11446},{"href":859},[11447],{"type":26,"value":11448},"Quantum error correction explained",{"type":26,"value":7562},{"type":21,"tag":29,"props":11451,"children":11453},{"href":11452},"\u002Fresearch",[11454],{"type":26,"value":11455},"Landmark research papers",{"type":26,"value":7562},{"type":21,"tag":29,"props":11458,"children":11459},{"href":10879},[11460],{"type":26,"value":10882},{"title":7,"searchDepth":335,"depth":335,"links":11462},[11463,11464,11465,11466,11467,11468,11469,11470],{"id":10919,"depth":335,"text":10922},{"id":10966,"depth":335,"text":10969},{"id":11002,"depth":335,"text":11005},{"id":11096,"depth":335,"text":11099},{"id":11283,"depth":335,"text":11286},{"id":11325,"depth":335,"text":11328},{"id":11348,"depth":335,"text":11351},{"id":11397,"depth":335,"text":11400},"content:blog:q-day-breaking-rsa-2048.md","blog\u002Fq-day-breaking-rsa-2048.md","blog\u002Fq-day-breaking-rsa-2048",{"_path":1118,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":11475,"description":11476,"date":3510,"author":11,"tags":11477,"readingTime":16,"body":11478,"_type":715,"_id":11970,"_source":717,"_file":11971,"_stem":11972,"_extension":720},"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.",[729,730,3512],{"type":18,"children":11479,"toc":11960},[11480,11497,11509,11515,11527,11540,11552,11564,11570,11575,11580,11585,11597,11609,11621,11633,11639,11644,11654,11664,11674,11680,11685,11690,11702,11721,11726,11731,11737,11749,11754,11785,11797,11803,11808,11840,11845,11851,11863,11868,11887,11893,11898,11903,11914],{"type":21,"tag":22,"props":11481,"children":11482},{},[11483,11485,11489,11491,11495],{"type":26,"value":11484},"Most explanations of ",{"type":21,"tag":29,"props":11486,"children":11487},{"href":1536},[11488],{"type":26,"value":9415},{"type":26,"value":11490}," end at the same place. You encode a logical qubit across many physical ones, you run parity checks with ",{"type":21,"tag":29,"props":11492,"children":11493},{"href":9427},[11494],{"type":26,"value":9430},{"type":26,"value":11496},", you detect errors without collapsing the state, and then the article stops, having implied that detection is correction.",{"type":21,"tag":22,"props":11498,"children":11499},{},[11500,11502,11507],{"type":26,"value":11501},"It isn't. In our ",{"type":21,"tag":29,"props":11503,"children":11504},{"href":753},[11505],{"type":26,"value":11506},"companion post on logical qubits and fault tolerance",{"type":26,"value":11508},", 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":59,"props":11510,"children":11512},{"id":11511},"what-syndrome-measurement-gives-you",[11513],{"type":26,"value":11514},"What syndrome measurement gives you",{"type":21,"tag":22,"props":11516,"children":11517},{},[11518,11520,11525],{"type":26,"value":11519},"The ",{"type":21,"tag":29,"props":11521,"children":11522},{"href":859},[11523],{"type":26,"value":11524},"QEC basics post",{"type":26,"value":11526}," 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":11528,"children":11529},{},[11530,11532,11538],{"type":26,"value":11531},"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":29,"props":11533,"children":11535},{"href":11534},"\u002Fglossary\u002Fpauli-operators",[11536],{"type":26,"value":11537},"Pauli operator",{"type":26,"value":11539}," 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":11541,"children":11542},{},[11543,11545,11550],{"type":26,"value":11544},"Worse, the ",{"type":21,"tag":29,"props":11546,"children":11547},{"href":7870},[11548],{"type":26,"value":11549},"measurement",{"type":26,"value":11551}," 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":11553,"children":11554},{},[11555,11557,11562],{"type":26,"value":11556},"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":71,"props":11558,"children":11559},{},[11560],{"type":26,"value":11561},"decoding",{"type":26,"value":11563},", and it is a genuine combinatorial optimisation problem.",{"type":21,"tag":59,"props":11565,"children":11567},{"id":11566},"the-part-that-makes-it-urgent",[11568],{"type":26,"value":11569},"The part that makes it urgent",{"type":21,"tag":22,"props":11571,"children":11572},{},[11573],{"type":26,"value":11574},"Here is where it stops being an interesting algorithms question and becomes an engineering crisis.",{"type":21,"tag":22,"props":11576,"children":11577},{},[11578],{"type":26,"value":11579},"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":11581,"children":11582},{},[11583],{"type":26,"value":11584},"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":11586,"children":11587},{},[11588,11590,11595],{"type":26,"value":11589},"If it doesn't, you get the ",{"type":21,"tag":71,"props":11591,"children":11592},{},[11593],{"type":26,"value":11594},"backlog problem",{"type":26,"value":11596},", 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":11598,"children":11599},{},[11600,11602,11607],{"type":26,"value":11601},"Certain operations in a fault-tolerant computation are ",{"type":21,"tag":51,"props":11603,"children":11604},{},[11605],{"type":26,"value":11606},"conditional",{"type":26,"value":11608},": 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":11610,"children":11611},{},[11612,11614,11619],{"type":26,"value":11613},"The result is an ",{"type":21,"tag":71,"props":11615,"children":11616},{},[11617],{"type":26,"value":11618},"exponential slowdown",{"type":26,"value":11620},". 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":11622,"children":11623},{},[11624,11626,11631],{"type":26,"value":11625},"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":51,"props":11627,"children":11628},{},[11629],{"type":26,"value":11630},"memory",{"type":26,"value":11632}," experiment, where you only want to know whether the stored state survived. It is useless for computation.",{"type":21,"tag":59,"props":11634,"children":11636},{"id":11635},"the-decoder-families-and-their-bargains",[11637],{"type":26,"value":11638},"The decoder families, and their bargains",{"type":21,"tag":22,"props":11640,"children":11641},{},[11642],{"type":26,"value":11643},"The decoding problem has a beautiful structure in the surface code, and a much uglier one elsewhere.",{"type":21,"tag":22,"props":11645,"children":11646},{},[11647,11652],{"type":21,"tag":71,"props":11648,"children":11649},{},[11650],{"type":26,"value":11651},"Minimum-weight perfect matching (MWPM).",{"type":26,"value":11653}," 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":11655,"children":11656},{},[11657,11662],{"type":21,"tag":71,"props":11658,"children":11659},{},[11660],{"type":26,"value":11661},"Union-find.",{"type":26,"value":11663}," 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":11665,"children":11666},{},[11667,11672],{"type":21,"tag":71,"props":11668,"children":11669},{},[11670],{"type":26,"value":11671},"Belief propagation plus ordered statistics (BP-OSD).",{"type":26,"value":11673}," This is what you reach for when the matching trick stops working, which is exactly what happens with quantum LDPC codes.",{"type":21,"tag":59,"props":11675,"children":11677},{"id":11676},"why-qldpc-decoding-is-genuinely-harder",[11678],{"type":26,"value":11679},"Why qLDPC decoding is genuinely harder",{"type":21,"tag":22,"props":11681,"children":11682},{},[11683],{"type":26,"value":11684},"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":11686,"children":11687},{},[11688],{"type":26,"value":11689},"Except it works worse in the quantum case, for two structural reasons.",{"type":21,"tag":22,"props":11691,"children":11692},{},[11693,11695,11700],{"type":26,"value":11694},"First, ",{"type":21,"tag":71,"props":11696,"children":11697},{},[11698],{"type":26,"value":11699},"short cycles",{"type":26,"value":11701},". 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":11703,"children":11704},{},[11705,11707,11712,11714,11719],{"type":26,"value":11706},"Second, and more fundamentally, ",{"type":21,"tag":71,"props":11708,"children":11709},{},[11710],{"type":26,"value":11711},"degeneracy",{"type":26,"value":11713},". In a quantum code, genuinely different physical error patterns are sometimes ",{"type":21,"tag":51,"props":11715,"children":11716},{},[11717],{"type":26,"value":11718},"equivalent",{"type":26,"value":11720},": 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":11722,"children":11723},{},[11724],{"type":26,"value":11725},"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":11727,"children":11728},{},[11729],{"type":26,"value":11730},"So qLDPC codes present the field with an awkward bargain: better codes, worse decoders.",{"type":21,"tag":59,"props":11732,"children":11734},{"id":11733},"why-anyone-puts-up-with-it",[11735],{"type":26,"value":11736},"Why anyone puts up with it",{"type":21,"tag":22,"props":11738,"children":11739},{},[11740,11742,11747],{"type":26,"value":11741},"Because the encoding rate is dramatically better. Surface codes are extravagant: the ",{"type":21,"tag":29,"props":11743,"children":11744},{"href":1993},[11745],{"type":26,"value":11746},"logical qubit overhead",{"type":26,"value":11748}," 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":11750,"children":11751},{},[11752],{"type":26,"value":11753},"This is where vendors have entered the picture, and where the claims need careful handling.",{"type":21,"tag":22,"props":11755,"children":11756},{},[11757,11762,11764,11769,11771,11776,11778,11783],{"type":21,"tag":71,"props":11758,"children":11759},{},[11760],{"type":26,"value":11761},"IonQ reports",{"type":26,"value":11763}," having developed a \"Beam Search\" decoder intended to replace BP-OSD for quantum LDPC codes. On bivariate bicycle codes, ",{"type":21,"tag":71,"props":11765,"children":11766},{},[11767],{"type":26,"value":11768},"IonQ claims",{"type":26,"value":11770}," 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":71,"props":11772,"children":11773},{},[11774],{"type":26,"value":11775},"IonQ states",{"type":26,"value":11777}," it brought under one millisecond on a single core of a commercial CPU. ",{"type":21,"tag":71,"props":11779,"children":11780},{},[11781],{"type":26,"value":11782},"IonQ further estimates",{"type":26,"value":11784}," 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":11786,"children":11787},{},[11788,11790,11795],{"type":26,"value":11789},"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":29,"props":11791,"children":11792},{"href":1284},[11793],{"type":26,"value":11794},"benchmark",{"type":26,"value":11796}," that hasn't been replicated by a disinterested party.",{"type":21,"tag":59,"props":11798,"children":11800},{"id":11799},"why-you-cant-simply-pick-the-fast-decoder",[11801],{"type":26,"value":11802},"Why you can't simply pick the fast decoder",{"type":21,"tag":22,"props":11804,"children":11805},{},[11806],{"type":26,"value":11807},"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":11809,"children":11810},{},[11811,11813,11818,11820,11825,11827,11832,11834,11838],{"type":26,"value":11812},"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":29,"props":11814,"children":11815},{"href":4194},[11816],{"type":26,"value":11817},"Google's 2024 below-threshold result",{"type":26,"value":11819}," (the first experimental demonstration that increasing code distance suppresses logical errors rather than amplifying them, descending from ",{"type":21,"tag":29,"props":11821,"children":11822},{"href":9516},[11823],{"type":26,"value":11824},"Kitaev's topological codes",{"type":26,"value":11826}," and ultimately ",{"type":21,"tag":29,"props":11828,"children":11829},{"href":9503},[11830],{"type":26,"value":11831},"Shor's original 1995 code",{"type":26,"value":11833},") was a narrow win. Each distance increase roughly halved the error rate. A decoder that degrades logical ",{"type":21,"tag":29,"props":11835,"children":11836},{"href":9463},[11837],{"type":26,"value":9466},{"type":26,"value":11839}," 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":11841,"children":11842},{},[11843],{"type":26,"value":11844},"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":59,"props":11846,"children":11848},{"id":11847},"where-the-decoder-physically-lives",[11849],{"type":26,"value":11850},"Where the decoder physically lives",{"type":21,"tag":22,"props":11852,"children":11853},{},[11854,11856,11861],{"type":26,"value":11855},"The last constraint is a plumbing one. Syndrome bits have to travel from the ",{"type":21,"tag":29,"props":11857,"children":11859},{"href":11858},"\u002Fglossary\u002Fqpu",[11860],{"type":26,"value":9339},{"type":26,"value":11862}," to whatever computes on them, and the answer has to travel back, inside the error-correction cycle time.",{"type":21,"tag":22,"props":11864,"children":11865},{},[11866],{"type":26,"value":11867},"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":11869,"children":11870},{},[11871,11873,11878,11880,11885],{"type":26,"value":11872},"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":29,"props":11874,"children":11875},{"href":817},[11876],{"type":26,"value":11877},"modality differences",{"type":26,"value":11879}," drive architecture rather than being incidental, and it's visible in the ",{"type":21,"tag":29,"props":11881,"children":11882},{"href":867},[11883],{"type":26,"value":11884},"hardware landscape",{"type":26,"value":11886}," if you know to look for it.",{"type":21,"tag":59,"props":11888,"children":11890},{"id":11889},"the-honest-state-of-things",[11891],{"type":26,"value":11892},"The honest state of things",{"type":21,"tag":22,"props":11894,"children":11895},{},[11896],{"type":26,"value":11897},"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":11899,"children":11900},{},[11901],{"type":26,"value":11902},"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":11904,"children":11905},{},[11906,11908,11913],{"type":26,"value":11907},"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":29,"props":11909,"children":11910},{"href":10879},[11911],{"type":26,"value":11912},"quantum news",{"type":26,"value":534},{"type":21,"tag":22,"props":11915,"children":11916},{},[11917,11919,11923,11925,11929,11931,11935,11937,11942,11944,11950,11952,11958],{"type":26,"value":11918},"None of this is a reason to wait. The concepts underneath (noise, ",{"type":21,"tag":29,"props":11920,"children":11921},{"href":9379},[11922],{"type":26,"value":9382},{"type":26,"value":11924},", what a ",{"type":21,"tag":29,"props":11926,"children":11927},{"href":1804},[11928],{"type":26,"value":3229},{"type":26,"value":11930}," 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":29,"props":11932,"children":11933},{"href":1014},[11934],{"type":26,"value":9740},{"type":26,"value":11936},". The ",{"type":21,"tag":29,"props":11938,"children":11939},{"href":11452},[11940],{"type":26,"value":11941},"research library",{"type":26,"value":11943}," has the primary sources, ",{"type":21,"tag":29,"props":11945,"children":11947},{"href":11946},"\u002Fglossary\u002Fsyndrome-decoding",[11948],{"type":26,"value":11949},"syndrome decoding",{"type":26,"value":11951}," has the compact definition, and if you want to see what problems this infrastructure is ultimately being built for, the ",{"type":21,"tag":29,"props":11953,"children":11955},{"href":11954},"\u002Fuse-cases",[11956],{"type":26,"value":11957},"use cases page",{"type":26,"value":11959}," is the place to start.",{"title":7,"searchDepth":335,"depth":335,"links":11961},[11962,11963,11964,11965,11966,11967,11968,11969],{"id":11511,"depth":335,"text":11514},{"id":11566,"depth":335,"text":11569},{"id":11635,"depth":335,"text":11638},{"id":11676,"depth":335,"text":11679},{"id":11733,"depth":335,"text":11736},{"id":11799,"depth":335,"text":11802},{"id":11847,"depth":335,"text":11850},{"id":11889,"depth":335,"text":11892},"content:blog:quantum-error-decoding-bottleneck.md","blog\u002Fquantum-error-decoding-bottleneck.md","blog\u002Fquantum-error-decoding-bottleneck",{"_path":11974,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":11975,"description":11976,"date":3510,"author":11,"tags":11977,"readingTime":3894,"body":11978,"_type":715,"_id":14225,"_source":717,"_file":14226,"_stem":14227,"_extension":720},"\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.",[7598,1972,3312],{"type":18,"children":11979,"toc":14214},[11980,11992,11997,12005,12011,12023,12028,12036,12064,12075,12081,12093,12098,12121,12133,12139,12144,12195,12212,12218,12229,12259,12264,12830,12835,12843,12848,12854,12867,13049,13053,13061,13081,13087,13098,13440,13444,13452,13464,13469,13643,13647,13655,13660,13666,13689,13699,13725,13730,13736,13748,14052,14057,14149,14160,14166,14205,14210],{"type":21,"tag":22,"props":11981,"children":11982},{},[11983,11984,11990],{"type":26,"value":11519},{"type":21,"tag":29,"props":11985,"children":11987},{"href":11986},"\u002Fglossary\u002Fqft",[11988],{"type":26,"value":11989},"Quantum Fourier Transform",{"type":26,"value":11991}," 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":11993,"children":11994},{},[11995],{"type":26,"value":11996},"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":11998,"children":11999},{},[12000],{"type":21,"tag":71,"props":12001,"children":12002},{},[12003],{"type":26,"value":12004},"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":59,"props":12006,"children":12008},{"id":12007},"what-the-qft-does",[12009],{"type":26,"value":12010},"What the QFT does",{"type":21,"tag":22,"props":12012,"children":12013},{},[12014,12016,12021],{"type":26,"value":12015},"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":51,"props":12017,"children":12018},{},[12019],{"type":26,"value":12020},"amplitude vector",{"type":26,"value":12022}," of an n-qubit state, so N = 2ⁿ.",{"type":21,"tag":22,"props":12024,"children":12025},{},[12026],{"type":26,"value":12027},"On basis states it acts as:",{"type":21,"tag":312,"props":12029,"children":12031},{"code":12030},"QFT |x⟩ = (1\u002F√N) Σ_{k=0}^{N-1} e^{2πi·xk\u002FN} |k⟩\n",[12032],{"type":21,"tag":79,"props":12033,"children":12034},{"__ignoreMap":7},[12035],{"type":26,"value":12030},{"type":21,"tag":22,"props":12037,"children":12038},{},[12039,12041,12046,12048,12054,12056,12062],{"type":26,"value":12040},"Notice what's on the right: every basis state gets amplitude of the ",{"type":21,"tag":51,"props":12042,"children":12043},{},[12044],{"type":26,"value":12045},"same magnitude",{"type":26,"value":12047}," (1\u002F√N), and all the information about ",{"type":21,"tag":79,"props":12049,"children":12051},{"className":12050},[],[12052],{"type":26,"value":12053},"x",{"type":26,"value":12055}," lives in the complex phase ",{"type":21,"tag":79,"props":12057,"children":12059},{"className":12058},[],[12060],{"type":26,"value":12061},"e^{2πi·xk\u002FN}",{"type":26,"value":12063},". The QFT takes information that was sitting in the computational basis and pushes it into the phases.",{"type":21,"tag":22,"props":12065,"children":12066},{},[12067,12069,12073],{"type":26,"value":12068},"That single fact is the whole story of the QFT. It's a perfectly uniform state, as far as any ",{"type":21,"tag":29,"props":12070,"children":12071},{"href":7870},[12072],{"type":26,"value":11549},{"type":26,"value":12074}," 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":59,"props":12076,"children":12078},{"id":12077},"the-readout-problem-stated-plainly",[12079],{"type":26,"value":12080},"The readout problem, stated plainly",{"type":21,"tag":22,"props":12082,"children":12083},{},[12084,12086,12091],{"type":26,"value":12085},"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":51,"props":12087,"children":12088},{},[12089],{"type":26,"value":12090},"gate count",{"type":26,"value":12092},", and it's the number everybody quotes.",{"type":21,"tag":22,"props":12094,"children":12095},{},[12096],{"type":26,"value":12097},"But it isn't a usable speedup, for two reasons:",{"type":21,"tag":7457,"props":12099,"children":12100},{},[12101,12111],{"type":21,"tag":3570,"props":12102,"children":12103},{},[12104,12109],{"type":21,"tag":71,"props":12105,"children":12106},{},[12107],{"type":26,"value":12108},"You can't load the input.",{"type":26,"value":12110}," Getting 2ⁿ arbitrary classical amplitudes into a quantum register generally costs O(2ⁿ) gates, wiping out the advantage before you start.",{"type":21,"tag":3570,"props":12112,"children":12113},{},[12114,12119],{"type":21,"tag":71,"props":12115,"children":12116},{},[12117],{"type":26,"value":12118},"You can't read the output.",{"type":26,"value":12120}," 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":12122,"children":12123},{},[12124,12126,12131],{"type":26,"value":12125},"So the QFT is never a drop-in replacement for the FFT. It is a ",{"type":21,"tag":51,"props":12127,"children":12128},{},[12129],{"type":26,"value":12130},"transform you apply in the middle of a larger circuit",{"type":26,"value":12132},", 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":59,"props":12134,"children":12136},{"id":12135},"the-circuit-hadamard-rotate-recurse-swap",[12137],{"type":26,"value":12138},"The circuit: Hadamard, rotate, recurse, swap",{"type":21,"tag":22,"props":12140,"children":12141},{},[12142],{"type":26,"value":12143},"The construction follows directly from factoring the exponential above into a product over qubits. For the most significant qubit:",{"type":21,"tag":7457,"props":12145,"children":12146},{},[12147,12164,12185,12190],{"type":21,"tag":3570,"props":12148,"children":12149},{},[12150,12151,12156,12158,12162],{"type":26,"value":7702},{"type":21,"tag":29,"props":12152,"children":12153},{"href":7705},[12154],{"type":26,"value":12155},"Hadamard",{"type":26,"value":12157},". This creates a ",{"type":21,"tag":29,"props":12159,"children":12160},{"href":9303},[12161],{"type":26,"value":9306},{"type":26,"value":12163}," whose relative phase encodes one bit of the input.",{"type":21,"tag":3570,"props":12165,"children":12166},{},[12167,12169,12175,12177,12183],{"type":26,"value":12168},"Apply controlled-phase gates ",{"type":21,"tag":79,"props":12170,"children":12172},{"className":12171},[],[12173],{"type":26,"value":12174},"CP(π\u002F2^k)",{"type":26,"value":12176}," from each less significant qubit, controlled onto that same qubit. Qubit distance ",{"type":21,"tag":79,"props":12178,"children":12180},{"className":12179},[],[12181],{"type":26,"value":12182},"k",{"type":26,"value":12184}," contributes a rotation of π\u002F2^k: the further away, the smaller the correction.",{"type":21,"tag":3570,"props":12186,"children":12187},{},[12188],{"type":26,"value":12189},"Recurse on the remaining n−1 qubits.",{"type":21,"tag":3570,"props":12191,"children":12192},{},[12193],{"type":26,"value":12194},"Swap the qubit order at the end.",{"type":21,"tag":22,"props":12196,"children":12197},{},[12198,12203,12205,12210],{"type":21,"tag":71,"props":12199,"children":12200},{},[12201],{"type":26,"value":12202},"Why the swaps?",{"type":26,"value":12204}," 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":51,"props":12206,"children":12207},{},[12208],{"type":26,"value":12209},"do",{"type":26,"value":12211}," 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":59,"props":12213,"children":12215},{"id":12214},"building-it-in-qiskit",[12216],{"type":26,"value":12217},"Building it in Qiskit",{"type":21,"tag":22,"props":12219,"children":12220},{},[12221,12223,12227],{"type":26,"value":12222},"Make sure you have ",{"type":21,"tag":29,"props":12224,"children":12225},{"href":7541},[12226],{"type":26,"value":1972},{"type":26,"value":12228}," and the Aer simulator installed:",{"type":21,"tag":312,"props":12230,"children":12232},{"code":12231,"language":10194,"meta":7,"className":10192,"style":7},"pip install qiskit qiskit-aer\n",[12233],{"type":21,"tag":79,"props":12234,"children":12235},{"__ignoreMap":7},[12236],{"type":21,"tag":322,"props":12237,"children":12238},{"class":324,"line":325},[12239,12244,12249,12254],{"type":21,"tag":322,"props":12240,"children":12241},{"style":4814},[12242],{"type":26,"value":12243},"pip",{"type":21,"tag":322,"props":12245,"children":12246},{"style":359},[12247],{"type":26,"value":12248}," install",{"type":21,"tag":322,"props":12250,"children":12251},{"style":359},[12252],{"type":26,"value":12253}," qiskit",{"type":21,"tag":322,"props":12255,"children":12256},{"style":359},[12257],{"type":26,"value":12258}," qiskit-aer\n",{"type":21,"tag":22,"props":12260,"children":12261},{},[12262],{"type":26,"value":12263},"Now the construction, written recursively so it mirrors the math:",{"type":21,"tag":312,"props":12265,"children":12267},{"code":12266,"language":3638,"meta":7,"className":3636,"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",[12268],{"type":21,"tag":79,"props":12269,"children":12270},{"__ignoreMap":7},[12271,12290,12309,12330,12349,12356,12363,12380,12388,12414,12427,12449,12457,12481,12489,12523,12536,12547,12554,12561,12577,12585,12620,12648,12659,12666,12673,12689,12721,12729,12737,12748,12755,12762,12787,12818],{"type":21,"tag":322,"props":12272,"children":12273},{"class":324,"line":325},[12274,12278,12282,12286],{"type":21,"tag":322,"props":12275,"children":12276},{"style":3648},[12277],{"type":26,"value":3661},{"type":21,"tag":322,"props":12279,"children":12280},{"style":329},[12281],{"type":26,"value":4723},{"type":21,"tag":322,"props":12283,"children":12284},{"style":3648},[12285],{"type":26,"value":4728},{"type":21,"tag":322,"props":12287,"children":12288},{"style":329},[12289],{"type":26,"value":4733},{"type":21,"tag":322,"props":12291,"children":12292},{"class":324,"line":335},[12293,12297,12301,12305],{"type":21,"tag":322,"props":12294,"children":12295},{"style":3648},[12296],{"type":26,"value":3651},{"type":21,"tag":322,"props":12298,"children":12299},{"style":329},[12300],{"type":26,"value":4745},{"type":21,"tag":322,"props":12302,"children":12303},{"style":3648},[12304],{"type":26,"value":3661},{"type":21,"tag":322,"props":12306,"children":12307},{"style":329},[12308],{"type":26,"value":4754},{"type":21,"tag":322,"props":12310,"children":12311},{"class":324,"line":344},[12312,12316,12321,12325],{"type":21,"tag":322,"props":12313,"children":12314},{"style":3648},[12315],{"type":26,"value":3651},{"type":21,"tag":322,"props":12317,"children":12318},{"style":329},[12319],{"type":26,"value":12320}," qiskit.quantum_info ",{"type":21,"tag":322,"props":12322,"children":12323},{"style":3648},[12324],{"type":26,"value":3661},{"type":21,"tag":322,"props":12326,"children":12327},{"style":329},[12328],{"type":26,"value":12329}," Statevector, Operator\n",{"type":21,"tag":322,"props":12331,"children":12332},{"class":324,"line":407},[12333,12337,12341,12345],{"type":21,"tag":322,"props":12334,"children":12335},{"style":3648},[12336],{"type":26,"value":3651},{"type":21,"tag":322,"props":12338,"children":12339},{"style":329},[12340],{"type":26,"value":4766},{"type":21,"tag":322,"props":12342,"children":12343},{"style":3648},[12344],{"type":26,"value":3661},{"type":21,"tag":322,"props":12346,"children":12347},{"style":329},[12348],{"type":26,"value":4775},{"type":21,"tag":322,"props":12350,"children":12351},{"class":324,"line":431},[12352],{"type":21,"tag":322,"props":12353,"children":12354},{"emptyLinePlaceholder":3672},[12355],{"type":26,"value":3675},{"type":21,"tag":322,"props":12357,"children":12358},{"class":324,"line":453},[12359],{"type":21,"tag":322,"props":12360,"children":12361},{"emptyLinePlaceholder":3672},[12362],{"type":26,"value":3675},{"type":21,"tag":322,"props":12364,"children":12365},{"class":324,"line":474},[12366,12370,12375],{"type":21,"tag":322,"props":12367,"children":12368},{"style":3648},[12369],{"type":26,"value":4811},{"type":21,"tag":322,"props":12371,"children":12372},{"style":4814},[12373],{"type":26,"value":12374}," qft_rotations",{"type":21,"tag":322,"props":12376,"children":12377},{"style":329},[12378],{"type":26,"value":12379},"(circuit, n):\n",{"type":21,"tag":322,"props":12381,"children":12382},{"class":324,"line":496},[12383],{"type":21,"tag":322,"props":12384,"children":12385},{"style":359},[12386],{"type":26,"value":12387},"    \"\"\"Hadamard + controlled phases on the top qubit, then recurse.\"\"\"\n",{"type":21,"tag":322,"props":12389,"children":12390},{"class":324,"line":16},[12391,12396,12401,12405,12410],{"type":21,"tag":322,"props":12392,"children":12393},{"style":3648},[12394],{"type":26,"value":12395},"    if",{"type":21,"tag":322,"props":12397,"children":12398},{"style":329},[12399],{"type":26,"value":12400}," n ",{"type":21,"tag":322,"props":12402,"children":12403},{"style":3648},[12404],{"type":26,"value":5359},{"type":21,"tag":322,"props":12406,"children":12407},{"style":348},[12408],{"type":26,"value":12409}," 0",{"type":21,"tag":322,"props":12411,"children":12412},{"style":329},[12413],{"type":26,"value":5369},{"type":21,"tag":322,"props":12415,"children":12416},{"class":324,"line":3894},[12417,12422],{"type":21,"tag":322,"props":12418,"children":12419},{"style":3648},[12420],{"type":26,"value":12421},"        return",{"type":21,"tag":322,"props":12423,"children":12424},{"style":329},[12425],{"type":26,"value":12426}," circuit\n",{"type":21,"tag":322,"props":12428,"children":12429},{"class":324,"line":3904},[12430,12435,12440,12444],{"type":21,"tag":322,"props":12431,"children":12432},{"style":329},[12433],{"type":26,"value":12434},"    n ",{"type":21,"tag":322,"props":12436,"children":12437},{"style":3648},[12438],{"type":26,"value":12439},"-=",{"type":21,"tag":322,"props":12441,"children":12442},{"style":348},[12443],{"type":26,"value":6549},{"type":21,"tag":322,"props":12445,"children":12446},{"style":3898},[12447],{"type":26,"value":12448},"                      # index of the most significant qubit\n",{"type":21,"tag":322,"props":12450,"children":12451},{"class":324,"line":1043},[12452],{"type":21,"tag":322,"props":12453,"children":12454},{"style":329},[12455],{"type":26,"value":12456},"    circuit.h(n)\n",{"type":21,"tag":322,"props":12458,"children":12459},{"class":324,"line":3964},[12460,12464,12469,12473,12477],{"type":21,"tag":322,"props":12461,"children":12462},{"style":3648},[12463],{"type":26,"value":5190},{"type":21,"tag":322,"props":12465,"children":12466},{"style":329},[12467],{"type":26,"value":12468}," qubit ",{"type":21,"tag":322,"props":12470,"children":12471},{"style":3648},[12472],{"type":26,"value":3951},{"type":21,"tag":322,"props":12474,"children":12475},{"style":348},[12476],{"type":26,"value":3956},{"type":21,"tag":322,"props":12478,"children":12479},{"style":329},[12480],{"type":26,"value":8291},{"type":21,"tag":322,"props":12482,"children":12483},{"class":324,"line":4012},[12484],{"type":21,"tag":322,"props":12485,"children":12486},{"style":3898},[12487],{"type":26,"value":12488},"        # qubit is (n - qubit) positions below the target\n",{"type":21,"tag":322,"props":12490,"children":12491},{"class":324,"line":4054},[12492,12497,12501,12505,12509,12514,12518],{"type":21,"tag":322,"props":12493,"children":12494},{"style":329},[12495],{"type":26,"value":12496},"        circuit.cp(np.pi ",{"type":21,"tag":322,"props":12498,"children":12499},{"style":3648},[12500],{"type":26,"value":174},{"type":21,"tag":322,"props":12502,"children":12503},{"style":348},[12504],{"type":26,"value":6834},{"type":21,"tag":322,"props":12506,"children":12507},{"style":3648},[12508],{"type":26,"value":8759},{"type":21,"tag":322,"props":12510,"children":12511},{"style":329},[12512],{"type":26,"value":12513}," (n ",{"type":21,"tag":322,"props":12515,"children":12516},{"style":3648},[12517],{"type":26,"value":5298},{"type":21,"tag":322,"props":12519,"children":12520},{"style":329},[12521],{"type":26,"value":12522}," qubit), qubit, n)\n",{"type":21,"tag":322,"props":12524,"children":12525},{"class":324,"line":5081},[12526,12531],{"type":21,"tag":322,"props":12527,"children":12528},{"style":329},[12529],{"type":26,"value":12530},"    qft_rotations(circuit, n)   ",{"type":21,"tag":322,"props":12532,"children":12533},{"style":3898},[12534],{"type":26,"value":12535},"# recurse on the rest\n",{"type":21,"tag":322,"props":12537,"children":12538},{"class":324,"line":5100},[12539,12543],{"type":21,"tag":322,"props":12540,"children":12541},{"style":3648},[12542],{"type":26,"value":5036},{"type":21,"tag":322,"props":12544,"children":12545},{"style":329},[12546],{"type":26,"value":12426},{"type":21,"tag":322,"props":12548,"children":12549},{"class":324,"line":5108},[12550],{"type":21,"tag":322,"props":12551,"children":12552},{"emptyLinePlaceholder":3672},[12553],{"type":26,"value":3675},{"type":21,"tag":322,"props":12555,"children":12556},{"class":324,"line":5139},[12557],{"type":21,"tag":322,"props":12558,"children":12559},{"emptyLinePlaceholder":3672},[12560],{"type":26,"value":3675},{"type":21,"tag":322,"props":12562,"children":12563},{"class":324,"line":5184},[12564,12568,12573],{"type":21,"tag":322,"props":12565,"children":12566},{"style":3648},[12567],{"type":26,"value":4811},{"type":21,"tag":322,"props":12569,"children":12570},{"style":4814},[12571],{"type":26,"value":12572}," swap_registers",{"type":21,"tag":322,"props":12574,"children":12575},{"style":329},[12576],{"type":26,"value":12379},{"type":21,"tag":322,"props":12578,"children":12579},{"class":324,"line":5223},[12580],{"type":21,"tag":322,"props":12581,"children":12582},{"style":359},[12583],{"type":26,"value":12584},"    \"\"\"Reverse the qubit order to undo the bit reversal.\"\"\"\n",{"type":21,"tag":322,"props":12586,"children":12587},{"class":324,"line":5241},[12588,12592,12596,12600,12604,12608,12612,12616],{"type":21,"tag":322,"props":12589,"children":12590},{"style":3648},[12591],{"type":26,"value":5190},{"type":21,"tag":322,"props":12593,"children":12594},{"style":329},[12595],{"type":26,"value":12468},{"type":21,"tag":322,"props":12597,"children":12598},{"style":3648},[12599],{"type":26,"value":3951},{"type":21,"tag":322,"props":12601,"children":12602},{"style":348},[12603],{"type":26,"value":3956},{"type":21,"tag":322,"props":12605,"children":12606},{"style":329},[12607],{"type":26,"value":8119},{"type":21,"tag":322,"props":12609,"children":12610},{"style":3648},[12611],{"type":26,"value":6558},{"type":21,"tag":322,"props":12613,"children":12614},{"style":348},[12615],{"type":26,"value":6834},{"type":21,"tag":322,"props":12617,"children":12618},{"style":329},[12619],{"type":26,"value":4864},{"type":21,"tag":322,"props":12621,"children":12622},{"class":324,"line":5315},[12623,12628,12632,12636,12640,12644],{"type":21,"tag":322,"props":12624,"children":12625},{"style":329},[12626],{"type":26,"value":12627},"        circuit.swap(qubit, n ",{"type":21,"tag":322,"props":12629,"children":12630},{"style":3648},[12631],{"type":26,"value":5298},{"type":21,"tag":322,"props":12633,"children":12634},{"style":329},[12635],{"type":26,"value":12468},{"type":21,"tag":322,"props":12637,"children":12638},{"style":3648},[12639],{"type":26,"value":5298},{"type":21,"tag":322,"props":12641,"children":12642},{"style":348},[12643],{"type":26,"value":6549},{"type":21,"tag":322,"props":12645,"children":12646},{"style":329},[12647],{"type":26,"value":3748},{"type":21,"tag":322,"props":12649,"children":12650},{"class":324,"line":5343},[12651,12655],{"type":21,"tag":322,"props":12652,"children":12653},{"style":3648},[12654],{"type":26,"value":5036},{"type":21,"tag":322,"props":12656,"children":12657},{"style":329},[12658],{"type":26,"value":12426},{"type":21,"tag":322,"props":12660,"children":12661},{"class":324,"line":5372},[12662],{"type":21,"tag":322,"props":12663,"children":12664},{"emptyLinePlaceholder":3672},[12665],{"type":26,"value":3675},{"type":21,"tag":322,"props":12667,"children":12668},{"class":324,"line":5381},[12669],{"type":21,"tag":322,"props":12670,"children":12671},{"emptyLinePlaceholder":3672},[12672],{"type":26,"value":3675},{"type":21,"tag":322,"props":12674,"children":12675},{"class":324,"line":5409},[12676,12680,12685],{"type":21,"tag":322,"props":12677,"children":12678},{"style":3648},[12679],{"type":26,"value":4811},{"type":21,"tag":322,"props":12681,"children":12682},{"style":4814},[12683],{"type":26,"value":12684}," qft",{"type":21,"tag":322,"props":12686,"children":12687},{"style":329},[12688],{"type":26,"value":8291},{"type":21,"tag":322,"props":12690,"children":12691},{"class":324,"line":5440},[12692,12696,12700,12704,12708,12712,12717],{"type":21,"tag":322,"props":12693,"children":12694},{"style":329},[12695],{"type":26,"value":7947},{"type":21,"tag":322,"props":12697,"children":12698},{"style":3648},[12699],{"type":26,"value":3688},{"type":21,"tag":322,"props":12701,"children":12702},{"style":329},[12703],{"type":26,"value":7956},{"type":21,"tag":322,"props":12705,"children":12706},{"style":3713},[12707],{"type":26,"value":7961},{"type":21,"tag":322,"props":12709,"children":12710},{"style":3648},[12711],{"type":26,"value":3688},{"type":21,"tag":322,"props":12713,"children":12714},{"style":359},[12715],{"type":26,"value":12716},"\"QFT\"",{"type":21,"tag":322,"props":12718,"children":12719},{"style":329},[12720],{"type":26,"value":3748},{"type":21,"tag":322,"props":12722,"children":12723},{"class":324,"line":5462},[12724],{"type":21,"tag":322,"props":12725,"children":12726},{"style":329},[12727],{"type":26,"value":12728},"    qft_rotations(qc, n)\n",{"type":21,"tag":322,"props":12730,"children":12731},{"class":324,"line":5508},[12732],{"type":21,"tag":322,"props":12733,"children":12734},{"style":329},[12735],{"type":26,"value":12736},"    swap_registers(qc, n)\n",{"type":21,"tag":322,"props":12738,"children":12739},{"class":324,"line":5521},[12740,12744],{"type":21,"tag":322,"props":12741,"children":12742},{"style":3648},[12743],{"type":26,"value":5036},{"type":21,"tag":322,"props":12745,"children":12746},{"style":329},[12747],{"type":26,"value":8228},{"type":21,"tag":322,"props":12749,"children":12750},{"class":324,"line":5529},[12751],{"type":21,"tag":322,"props":12752,"children":12753},{"emptyLinePlaceholder":3672},[12754],{"type":26,"value":3675},{"type":21,"tag":322,"props":12756,"children":12757},{"class":324,"line":5547},[12758],{"type":21,"tag":322,"props":12759,"children":12760},{"emptyLinePlaceholder":3672},[12761],{"type":26,"value":3675},{"type":21,"tag":322,"props":12763,"children":12764},{"class":324,"line":5565},[12765,12770,12774,12779,12783],{"type":21,"tag":322,"props":12766,"children":12767},{"style":329},[12768],{"type":26,"value":12769},"my_qft ",{"type":21,"tag":322,"props":12771,"children":12772},{"style":3648},[12773],{"type":26,"value":3688},{"type":21,"tag":322,"props":12775,"children":12776},{"style":329},[12777],{"type":26,"value":12778}," qft(",{"type":21,"tag":322,"props":12780,"children":12781},{"style":348},[12782],{"type":26,"value":5982},{"type":21,"tag":322,"props":12784,"children":12785},{"style":329},[12786],{"type":26,"value":3748},{"type":21,"tag":322,"props":12788,"children":12789},{"class":324,"line":5573},[12790,12794,12799,12804,12808,12813],{"type":21,"tag":322,"props":12791,"children":12792},{"style":348},[12793],{"type":26,"value":3763},{"type":21,"tag":322,"props":12795,"children":12796},{"style":329},[12797],{"type":26,"value":12798},"(my_qft.draw(",{"type":21,"tag":322,"props":12800,"children":12801},{"style":3713},[12802],{"type":26,"value":12803},"output",{"type":21,"tag":322,"props":12805,"children":12806},{"style":3648},[12807],{"type":26,"value":3688},{"type":21,"tag":322,"props":12809,"children":12810},{"style":359},[12811],{"type":26,"value":12812},"\"text\"",{"type":21,"tag":322,"props":12814,"children":12815},{"style":329},[12816],{"type":26,"value":12817},"))\n",{"type":21,"tag":322,"props":12819,"children":12820},{"class":324,"line":5607},[12821,12825],{"type":21,"tag":322,"props":12822,"children":12823},{"style":348},[12824],{"type":26,"value":3763},{"type":21,"tag":322,"props":12826,"children":12827},{"style":329},[12828],{"type":26,"value":12829},"(my_qft.count_ops())\n",{"type":21,"tag":22,"props":12831,"children":12832},{},[12833],{"type":26,"value":12834},"Real output:",{"type":21,"tag":312,"props":12836,"children":12838},{"code":12837},"                                                                          ┌───┐»\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",[12839],{"type":21,"tag":79,"props":12840,"children":12841},{"__ignoreMap":7},[12842],{"type":26,"value":12837},{"type":21,"tag":22,"props":12844,"children":12845},{},[12846],{"type":26,"value":12847},"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":59,"props":12849,"children":12851},{"id":12850},"proving-its-correct",[12852],{"type":26,"value":12853},"Proving it's correct",{"type":21,"tag":22,"props":12855,"children":12856},{},[12857,12859,12865],{"type":26,"value":12858},"Never trust a hand-built QFT. Compare the full unitary against Qiskit's ",{"type":21,"tag":79,"props":12860,"children":12862},{"className":12861},[],[12863],{"type":26,"value":12864},"QFTGate",{"type":26,"value":12866},":",{"type":21,"tag":312,"props":12868,"children":12870},{"code":12869,"language":3638,"meta":7,"className":3636,"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",[12871],{"type":21,"tag":79,"props":12872,"children":12873},{"__ignoreMap":7},[12874,12894,12901,12917,12934,12941,12958,12974,12981,12998,13019],{"type":21,"tag":322,"props":12875,"children":12876},{"class":324,"line":325},[12877,12881,12885,12889],{"type":21,"tag":322,"props":12878,"children":12879},{"style":3648},[12880],{"type":26,"value":3651},{"type":21,"tag":322,"props":12882,"children":12883},{"style":329},[12884],{"type":26,"value":6271},{"type":21,"tag":322,"props":12886,"children":12887},{"style":3648},[12888],{"type":26,"value":3661},{"type":21,"tag":322,"props":12890,"children":12891},{"style":329},[12892],{"type":26,"value":12893}," QFTGate\n",{"type":21,"tag":322,"props":12895,"children":12896},{"class":324,"line":335},[12897],{"type":21,"tag":322,"props":12898,"children":12899},{"emptyLinePlaceholder":3672},[12900],{"type":26,"value":3675},{"type":21,"tag":322,"props":12902,"children":12903},{"class":324,"line":344},[12904,12908,12912],{"type":21,"tag":322,"props":12905,"children":12906},{"style":329},[12907],{"type":26,"value":5535},{"type":21,"tag":322,"props":12909,"children":12910},{"style":3648},[12911],{"type":26,"value":3688},{"type":21,"tag":322,"props":12913,"children":12914},{"style":348},[12915],{"type":26,"value":12916}," 4\n",{"type":21,"tag":322,"props":12918,"children":12919},{"class":324,"line":407},[12920,12925,12929],{"type":21,"tag":322,"props":12921,"children":12922},{"style":329},[12923],{"type":26,"value":12924},"mine ",{"type":21,"tag":322,"props":12926,"children":12927},{"style":3648},[12928],{"type":26,"value":3688},{"type":21,"tag":322,"props":12930,"children":12931},{"style":329},[12932],{"type":26,"value":12933}," qft(n)\n",{"type":21,"tag":322,"props":12935,"children":12936},{"class":324,"line":431},[12937],{"type":21,"tag":322,"props":12938,"children":12939},{"emptyLinePlaceholder":3672},[12940],{"type":26,"value":3675},{"type":21,"tag":322,"props":12942,"children":12943},{"class":324,"line":453},[12944,12949,12953],{"type":21,"tag":322,"props":12945,"children":12946},{"style":329},[12947],{"type":26,"value":12948},"reference ",{"type":21,"tag":322,"props":12950,"children":12951},{"style":3648},[12952],{"type":26,"value":3688},{"type":21,"tag":322,"props":12954,"children":12955},{"style":329},[12956],{"type":26,"value":12957}," QuantumCircuit(n)\n",{"type":21,"tag":322,"props":12959,"children":12960},{"class":324,"line":474},[12961,12966,12970],{"type":21,"tag":322,"props":12962,"children":12963},{"style":329},[12964],{"type":26,"value":12965},"reference.append(QFTGate(n), ",{"type":21,"tag":322,"props":12967,"children":12968},{"style":348},[12969],{"type":26,"value":5392},{"type":21,"tag":322,"props":12971,"children":12972},{"style":329},[12973],{"type":26,"value":5406},{"type":21,"tag":322,"props":12975,"children":12976},{"class":324,"line":496},[12977],{"type":21,"tag":322,"props":12978,"children":12979},{"emptyLinePlaceholder":3672},[12980],{"type":26,"value":3675},{"type":21,"tag":322,"props":12982,"children":12983},{"class":324,"line":16},[12984,12989,12993],{"type":21,"tag":322,"props":12985,"children":12986},{"style":329},[12987],{"type":26,"value":12988},"a, b ",{"type":21,"tag":322,"props":12990,"children":12991},{"style":3648},[12992],{"type":26,"value":3688},{"type":21,"tag":322,"props":12994,"children":12995},{"style":329},[12996],{"type":26,"value":12997}," Operator(mine), Operator(reference)\n",{"type":21,"tag":322,"props":12999,"children":13000},{"class":324,"line":3894},[13001,13005,13009,13014],{"type":21,"tag":322,"props":13002,"children":13003},{"style":348},[13004],{"type":26,"value":3763},{"type":21,"tag":322,"props":13006,"children":13007},{"style":329},[13008],{"type":26,"value":3768},{"type":21,"tag":322,"props":13010,"children":13011},{"style":359},[13012],{"type":26,"value":13013},"\"Equivalent:\"",{"type":21,"tag":322,"props":13015,"children":13016},{"style":329},[13017],{"type":26,"value":13018},", a.equiv(b))\n",{"type":21,"tag":322,"props":13020,"children":13021},{"class":324,"line":3904},[13022,13026,13030,13035,13040,13044],{"type":21,"tag":322,"props":13023,"children":13024},{"style":348},[13025],{"type":26,"value":3763},{"type":21,"tag":322,"props":13027,"children":13028},{"style":329},[13029],{"type":26,"value":3768},{"type":21,"tag":322,"props":13031,"children":13032},{"style":359},[13033],{"type":26,"value":13034},"\"Max element difference:\"",{"type":21,"tag":322,"props":13036,"children":13037},{"style":329},[13038],{"type":26,"value":13039},", np.abs(a.data ",{"type":21,"tag":322,"props":13041,"children":13042},{"style":3648},[13043],{"type":26,"value":5298},{"type":21,"tag":322,"props":13045,"children":13046},{"style":329},[13047],{"type":26,"value":13048}," b.data).max())\n",{"type":21,"tag":22,"props":13050,"children":13051},{},[13052],{"type":26,"value":12834},{"type":21,"tag":312,"props":13054,"children":13056},{"code":13055},"Equivalent: True\nMax element difference: 2.285583597498884e-15\n",[13057],{"type":21,"tag":79,"props":13058,"children":13059},{"__ignoreMap":7},[13060],{"type":26,"value":13055},{"type":21,"tag":22,"props":13062,"children":13063},{},[13064,13066,13072,13073,13079],{"type":26,"value":13065},"Identical to floating-point precision, not merely equal up to a global phase. If you're on an older Qiskit, use ",{"type":21,"tag":79,"props":13067,"children":13069},{"className":13068},[],[13070],{"type":26,"value":13071},"from qiskit.circuit.library import QFT",{"type":26,"value":236},{"type":21,"tag":79,"props":13074,"children":13076},{"className":13075},[],[13077],{"type":26,"value":13078},"QFT(n).decompose()",{"type":26,"value":13080}," instead.",{"type":21,"tag":59,"props":13082,"children":13084},{"id":13083},"seeing-it-find-a-period",[13085],{"type":26,"value":13086},"Seeing it find a period",{"type":21,"tag":22,"props":13088,"children":13089},{},[13090,13092,13096],{"type":26,"value":13091},"This is the one demonstration that shows what the QFT is ",{"type":21,"tag":51,"props":13093,"children":13094},{},[13095],{"type":26,"value":3941},{"type":26,"value":13097},". Prepare a state that's a uniform superposition over multiples of 4 (a comb with period 4) and transform it:",{"type":21,"tag":312,"props":13099,"children":13101},{"code":13100,"language":3638,"meta":7,"className":3636,"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",[13102],{"type":21,"tag":79,"props":13103,"children":13104},{"__ignoreMap":7},[13105,13120,13168,13226,13243,13259,13266,13283,13308,13334],{"type":21,"tag":322,"props":13106,"children":13107},{"class":324,"line":325},[13108,13112,13116],{"type":21,"tag":322,"props":13109,"children":13110},{"style":329},[13111],{"type":26,"value":5535},{"type":21,"tag":322,"props":13113,"children":13114},{"style":3648},[13115],{"type":26,"value":3688},{"type":21,"tag":322,"props":13117,"children":13118},{"style":348},[13119],{"type":26,"value":12916},{"type":21,"tag":322,"props":13121,"children":13122},{"class":324,"line":335},[13123,13128,13132,13137,13141,13145,13150,13155,13159,13164],{"type":21,"tag":322,"props":13124,"children":13125},{"style":329},[13126],{"type":26,"value":13127},"psi ",{"type":21,"tag":322,"props":13129,"children":13130},{"style":3648},[13131],{"type":26,"value":3688},{"type":21,"tag":322,"props":13133,"children":13134},{"style":329},[13135],{"type":26,"value":13136}," np.zeros(",{"type":21,"tag":322,"props":13138,"children":13139},{"style":348},[13140],{"type":26,"value":423},{"type":21,"tag":322,"props":13142,"children":13143},{"style":3648},[13144],{"type":26,"value":8759},{"type":21,"tag":322,"props":13146,"children":13147},{"style":329},[13148],{"type":26,"value":13149}," n, ",{"type":21,"tag":322,"props":13151,"children":13152},{"style":3713},[13153],{"type":26,"value":13154},"dtype",{"type":21,"tag":322,"props":13156,"children":13157},{"style":3648},[13158],{"type":26,"value":3688},{"type":21,"tag":322,"props":13160,"children":13161},{"style":348},[13162],{"type":26,"value":13163},"complex",{"type":21,"tag":322,"props":13165,"children":13166},{"style":329},[13167],{"type":26,"value":3748},{"type":21,"tag":322,"props":13169,"children":13170},{"class":324,"line":344},[13171,13175,13180,13184,13188,13192,13196,13200,13204,13208,13212,13216,13221],{"type":21,"tag":322,"props":13172,"children":13173},{"style":3648},[13174],{"type":26,"value":3941},{"type":21,"tag":322,"props":13176,"children":13177},{"style":329},[13178],{"type":26,"value":13179}," x ",{"type":21,"tag":322,"props":13181,"children":13182},{"style":3648},[13183],{"type":26,"value":3951},{"type":21,"tag":322,"props":13185,"children":13186},{"style":348},[13187],{"type":26,"value":3956},{"type":21,"tag":322,"props":13189,"children":13190},{"style":329},[13191],{"type":26,"value":3768},{"type":21,"tag":322,"props":13193,"children":13194},{"style":348},[13195],{"type":26,"value":5618},{"type":21,"tag":322,"props":13197,"children":13198},{"style":329},[13199],{"type":26,"value":367},{"type":21,"tag":322,"props":13201,"children":13202},{"style":348},[13203],{"type":26,"value":423},{"type":21,"tag":322,"props":13205,"children":13206},{"style":3648},[13207],{"type":26,"value":8759},{"type":21,"tag":322,"props":13209,"children":13210},{"style":329},[13211],{"type":26,"value":13149},{"type":21,"tag":322,"props":13213,"children":13214},{"style":348},[13215],{"type":26,"value":5982},{"type":21,"tag":322,"props":13217,"children":13218},{"style":329},[13219],{"type":26,"value":13220},"):   ",{"type":21,"tag":322,"props":13222,"children":13223},{"style":3898},[13224],{"type":26,"value":13225},"# |0> + |4> + |8> + |12>\n",{"type":21,"tag":322,"props":13227,"children":13228},{"class":324,"line":407},[13229,13234,13238],{"type":21,"tag":322,"props":13230,"children":13231},{"style":329},[13232],{"type":26,"value":13233},"    psi[x] ",{"type":21,"tag":322,"props":13235,"children":13236},{"style":3648},[13237],{"type":26,"value":3688},{"type":21,"tag":322,"props":13239,"children":13240},{"style":348},[13241],{"type":26,"value":13242}," 1\n",{"type":21,"tag":322,"props":13244,"children":13245},{"class":324,"line":431},[13246,13250,13254],{"type":21,"tag":322,"props":13247,"children":13248},{"style":329},[13249],{"type":26,"value":13127},{"type":21,"tag":322,"props":13251,"children":13252},{"style":3648},[13253],{"type":26,"value":5914},{"type":21,"tag":322,"props":13255,"children":13256},{"style":329},[13257],{"type":26,"value":13258}," np.linalg.norm(psi)\n",{"type":21,"tag":322,"props":13260,"children":13261},{"class":324,"line":453},[13262],{"type":21,"tag":322,"props":13263,"children":13264},{"emptyLinePlaceholder":3672},[13265],{"type":26,"value":3675},{"type":21,"tag":322,"props":13267,"children":13268},{"class":324,"line":474},[13269,13274,13278],{"type":21,"tag":322,"props":13270,"children":13271},{"style":329},[13272],{"type":26,"value":13273},"out ",{"type":21,"tag":322,"props":13275,"children":13276},{"style":3648},[13277],{"type":26,"value":3688},{"type":21,"tag":322,"props":13279,"children":13280},{"style":329},[13281],{"type":26,"value":13282}," Statevector(psi).evolve(qft(n))\n",{"type":21,"tag":322,"props":13284,"children":13285},{"class":324,"line":496},[13286,13290,13295,13299,13303],{"type":21,"tag":322,"props":13287,"children":13288},{"style":3648},[13289],{"type":26,"value":3941},{"type":21,"tag":322,"props":13291,"children":13292},{"style":329},[13293],{"type":26,"value":13294}," i, p ",{"type":21,"tag":322,"props":13296,"children":13297},{"style":3648},[13298],{"type":26,"value":3951},{"type":21,"tag":322,"props":13300,"children":13301},{"style":348},[13302],{"type":26,"value":5335},{"type":21,"tag":322,"props":13304,"children":13305},{"style":329},[13306],{"type":26,"value":13307},"(out.probabilities()):\n",{"type":21,"tag":322,"props":13309,"children":13310},{"class":324,"line":16},[13311,13315,13320,13325,13330],{"type":21,"tag":322,"props":13312,"children":13313},{"style":3648},[13314],{"type":26,"value":12395},{"type":21,"tag":322,"props":13316,"children":13317},{"style":329},[13318],{"type":26,"value":13319}," p ",{"type":21,"tag":322,"props":13321,"children":13322},{"style":3648},[13323],{"type":26,"value":13324},">",{"type":21,"tag":322,"props":13326,"children":13327},{"style":348},[13328],{"type":26,"value":13329}," 1e-6",{"type":21,"tag":322,"props":13331,"children":13332},{"style":329},[13333],{"type":26,"value":5369},{"type":21,"tag":322,"props":13335,"children":13336},{"class":324,"line":3894},[13337,13342,13346,13350,13355,13359,13363,13368,13372,13376,13380,13385,13389,13394,13398,13402,13407,13411,13416,13420,13424,13428,13432,13436],{"type":21,"tag":322,"props":13338,"children":13339},{"style":348},[13340],{"type":26,"value":13341},"        print",{"type":21,"tag":322,"props":13343,"children":13344},{"style":329},[13345],{"type":26,"value":3768},{"type":21,"tag":322,"props":13347,"children":13348},{"style":3648},[13349],{"type":26,"value":3773},{"type":21,"tag":322,"props":13351,"children":13352},{"style":359},[13353],{"type":26,"value":13354},"\"|",{"type":21,"tag":322,"props":13356,"children":13357},{"style":348},[13358],{"type":26,"value":3783},{"type":21,"tag":322,"props":13360,"children":13361},{"style":329},[13362],{"type":26,"value":4686},{"type":21,"tag":322,"props":13364,"children":13365},{"style":3648},[13366],{"type":26,"value":13367},":0",{"type":21,"tag":322,"props":13369,"children":13370},{"style":348},[13371],{"type":26,"value":3783},{"type":21,"tag":322,"props":13373,"children":13374},{"style":329},[13375],{"type":26,"value":5279},{"type":21,"tag":322,"props":13377,"children":13378},{"style":348},[13379],{"type":26,"value":3793},{"type":21,"tag":322,"props":13381,"children":13382},{"style":3648},[13383],{"type":26,"value":13384},"b",{"type":21,"tag":322,"props":13386,"children":13387},{"style":348},[13388],{"type":26,"value":3793},{"type":21,"tag":322,"props":13390,"children":13391},{"style":359},[13392],{"type":26,"value":13393},"> = ",{"type":21,"tag":322,"props":13395,"children":13396},{"style":348},[13397],{"type":26,"value":3783},{"type":21,"tag":322,"props":13399,"children":13400},{"style":329},[13401],{"type":26,"value":4686},{"type":21,"tag":322,"props":13403,"children":13404},{"style":3648},[13405],{"type":26,"value":13406},":2d",{"type":21,"tag":322,"props":13408,"children":13409},{"style":348},[13410],{"type":26,"value":3793},{"type":21,"tag":322,"props":13412,"children":13413},{"style":359},[13414],{"type":26,"value":13415},"   p = ",{"type":21,"tag":322,"props":13417,"children":13418},{"style":348},[13419],{"type":26,"value":3783},{"type":21,"tag":322,"props":13421,"children":13422},{"style":329},[13423],{"type":26,"value":22},{"type":21,"tag":322,"props":13425,"children":13426},{"style":3648},[13427],{"type":26,"value":4095},{"type":21,"tag":322,"props":13429,"children":13430},{"style":348},[13431],{"type":26,"value":3793},{"type":21,"tag":322,"props":13433,"children":13434},{"style":359},[13435],{"type":26,"value":3798},{"type":21,"tag":322,"props":13437,"children":13438},{"style":329},[13439],{"type":26,"value":3748},{"type":21,"tag":22,"props":13441,"children":13442},{},[13443],{"type":26,"value":12834},{"type":21,"tag":312,"props":13445,"children":13447},{"code":13446},"|0000> =  0   p = 0.2500\n|0100> =  4   p = 0.2500\n|1000> =  8   p = 0.2500\n|1100> = 12   p = 0.2500\n",[13448],{"type":21,"tag":79,"props":13449,"children":13450},{"__ignoreMap":7},[13451],{"type":26,"value":13446},{"type":21,"tag":22,"props":13453,"children":13454},{},[13455,13457,13462],{"type":26,"value":13456},"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":71,"props":13458,"children":13459},{},[13460],{"type":26,"value":13461},"That",{"type":26,"value":13463}," is the readable signal: not the coefficients, but a periodicity converted into a sampling distribution.",{"type":21,"tag":22,"props":13465,"children":13466},{},[13467],{"type":26,"value":13468},"Confirm it on the simulator with actual shots:",{"type":21,"tag":312,"props":13470,"children":13472},{"code":13471,"language":3638,"meta":7,"className":3636,"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",[13473],{"type":21,"tag":79,"props":13474,"children":13475},{"__ignoreMap":7},[13476,13491,13507,13531,13539,13546,13561,13592],{"type":21,"tag":322,"props":13477,"children":13478},{"class":324,"line":325},[13479,13483,13487],{"type":21,"tag":322,"props":13480,"children":13481},{"style":329},[13482],{"type":26,"value":7832},{"type":21,"tag":322,"props":13484,"children":13485},{"style":3648},[13486],{"type":26,"value":3688},{"type":21,"tag":322,"props":13488,"children":13489},{"style":329},[13490],{"type":26,"value":12957},{"type":21,"tag":322,"props":13492,"children":13493},{"class":324,"line":335},[13494,13499,13503],{"type":21,"tag":322,"props":13495,"children":13496},{"style":329},[13497],{"type":26,"value":13498},"qc.initialize(psi, ",{"type":21,"tag":322,"props":13500,"children":13501},{"style":348},[13502],{"type":26,"value":5392},{"type":21,"tag":322,"props":13504,"children":13505},{"style":329},[13506],{"type":26,"value":5406},{"type":21,"tag":322,"props":13508,"children":13509},{"class":324,"line":344},[13510,13515,13519,13523,13527],{"type":21,"tag":322,"props":13511,"children":13512},{"style":329},[13513],{"type":26,"value":13514},"qc.compose(qft(n), ",{"type":21,"tag":322,"props":13516,"children":13517},{"style":3713},[13518],{"type":26,"value":8649},{"type":21,"tag":322,"props":13520,"children":13521},{"style":3648},[13522],{"type":26,"value":3688},{"type":21,"tag":322,"props":13524,"children":13525},{"style":348},[13526],{"type":26,"value":3725},{"type":21,"tag":322,"props":13528,"children":13529},{"style":329},[13530],{"type":26,"value":3748},{"type":21,"tag":322,"props":13532,"children":13533},{"class":324,"line":407},[13534],{"type":21,"tag":322,"props":13535,"children":13536},{"style":329},[13537],{"type":26,"value":13538},"qc.measure_all()\n",{"type":21,"tag":322,"props":13540,"children":13541},{"class":324,"line":431},[13542],{"type":21,"tag":322,"props":13543,"children":13544},{"emptyLinePlaceholder":3672},[13545],{"type":26,"value":3675},{"type":21,"tag":322,"props":13547,"children":13548},{"class":324,"line":453},[13549,13553,13557],{"type":21,"tag":322,"props":13550,"children":13551},{"style":329},[13552],{"type":26,"value":8874},{"type":21,"tag":322,"props":13554,"children":13555},{"style":3648},[13556],{"type":26,"value":3688},{"type":21,"tag":322,"props":13558,"children":13559},{"style":329},[13560],{"type":26,"value":8883},{"type":21,"tag":322,"props":13562,"children":13563},{"class":324,"line":474},[13564,13568,13572,13576,13580,13584,13588],{"type":21,"tag":322,"props":13565,"children":13566},{"style":329},[13567],{"type":26,"value":8907},{"type":21,"tag":322,"props":13569,"children":13570},{"style":3648},[13571],{"type":26,"value":3688},{"type":21,"tag":322,"props":13573,"children":13574},{"style":329},[13575],{"type":26,"value":8916},{"type":21,"tag":322,"props":13577,"children":13578},{"style":3713},[13579],{"type":26,"value":4573},{"type":21,"tag":322,"props":13581,"children":13582},{"style":3648},[13583],{"type":26,"value":3688},{"type":21,"tag":322,"props":13585,"children":13586},{"style":348},[13587],{"type":26,"value":8929},{"type":21,"tag":322,"props":13589,"children":13590},{"style":329},[13591],{"type":26,"value":5732},{"type":21,"tag":322,"props":13593,"children":13594},{"class":324,"line":496},[13595,13599,13603,13607,13612,13616,13620,13625,13629,13634,13638],{"type":21,"tag":322,"props":13596,"children":13597},{"style":348},[13598],{"type":26,"value":3763},{"type":21,"tag":322,"props":13600,"children":13601},{"style":329},[13602],{"type":26,"value":3768},{"type":21,"tag":322,"props":13604,"children":13605},{"style":348},[13606],{"type":26,"value":8949},{"type":21,"tag":322,"props":13608,"children":13609},{"style":329},[13610],{"type":26,"value":13611},"(counts.items(), ",{"type":21,"tag":322,"props":13613,"children":13614},{"style":3713},[13615],{"type":26,"value":3989},{"type":21,"tag":322,"props":13617,"children":13618},{"style":3648},[13619],{"type":26,"value":3994},{"type":21,"tag":322,"props":13621,"children":13622},{"style":329},[13623],{"type":26,"value":13624}," kv: ",{"type":21,"tag":322,"props":13626,"children":13627},{"style":3648},[13628],{"type":26,"value":5298},{"type":21,"tag":322,"props":13630,"children":13631},{"style":329},[13632],{"type":26,"value":13633},"kv[",{"type":21,"tag":322,"props":13635,"children":13636},{"style":348},[13637],{"type":26,"value":4004},{"type":21,"tag":322,"props":13639,"children":13640},{"style":329},[13641],{"type":26,"value":13642},"]))\n",{"type":21,"tag":22,"props":13644,"children":13645},{},[13646],{"type":26,"value":12834},{"type":21,"tag":312,"props":13648,"children":13650},{"code":13649},"[('0100', 1079), ('1000', 1030), ('0000', 1018), ('1100', 969)]\n",[13651],{"type":21,"tag":79,"props":13652,"children":13653},{"__ignoreMap":7},[13654],{"type":26,"value":13649},{"type":21,"tag":22,"props":13656,"children":13657},{},[13658],{"type":26,"value":13659},"Four peaks, roughly 1024 counts each. Nothing else appears.",{"type":21,"tag":59,"props":13661,"children":13663},{"id":13662},"where-the-qft-earns-its-keep",[13664],{"type":26,"value":13665},"Where the QFT earns its keep",{"type":21,"tag":22,"props":13667,"children":13668},{},[13669,13674,13676,13680,13682,13688],{"type":21,"tag":71,"props":13670,"children":13671},{},[13672],{"type":26,"value":13673},"Quantum phase estimation (QPE).",{"type":26,"value":13675}," 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":51,"props":13677,"children":13678},{},[13679],{"type":26,"value":7429},{"type":26,"value":13681}," 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":79,"props":13683,"children":13685},{"className":13684},[],[13686],{"type":26,"value":13687},"qft(n).inverse()",{"type":26,"value":534},{"type":21,"tag":22,"props":13690,"children":13691},{},[13692,13697],{"type":21,"tag":71,"props":13693,"children":13694},{},[13695],{"type":26,"value":13696},"Order finding.",{"type":26,"value":13698}," 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":13700,"children":13701},{},[13702,13710,13712,13717,13719,13723],{"type":21,"tag":71,"props":13703,"children":13704},{},[13705,13709],{"type":21,"tag":29,"props":13706,"children":13707},{"href":10077},[13708],{"type":26,"value":10080},{"type":26,"value":534},{"type":26,"value":13711}," Factoring reduces to order finding, so Shor's is order finding plus classical post-processing (continued fractions and a GCD). The ",{"type":21,"tag":29,"props":13713,"children":13714},{"href":9058},[13715],{"type":26,"value":13716},"1994 paper",{"type":26,"value":13718}," 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":29,"props":13720,"children":13721},{"href":9828},[13722],{"type":26,"value":9811},{"type":26,"value":13724}," migration is happening now rather than later.",{"type":21,"tag":22,"props":13726,"children":13727},{},[13728],{"type":26,"value":13729},"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":59,"props":13731,"children":13733},{"id":13732},"approximate-qft-drop-the-tiny-rotations",[13734],{"type":26,"value":13735},"Approximate QFT: drop the tiny rotations",{"type":21,"tag":22,"props":13737,"children":13738},{},[13739,13741,13746],{"type":26,"value":13740},"On real hardware, ",{"type":21,"tag":79,"props":13742,"children":13744},{"className":13743},[],[13745],{"type":26,"value":12174},{"type":26,"value":13747}," 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":312,"props":13749,"children":13751},{"code":13750,"language":3638,"meta":7,"className":3636,"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",[13752],{"type":21,"tag":79,"props":13753,"children":13754},{"__ignoreMap":7},[13755,13772,13804,13849,13873,13881,13905,13931,13953,13978,14013,14041],{"type":21,"tag":322,"props":13756,"children":13757},{"class":324,"line":325},[13758,13762,13767],{"type":21,"tag":322,"props":13759,"children":13760},{"style":3648},[13761],{"type":26,"value":4811},{"type":21,"tag":322,"props":13763,"children":13764},{"style":4814},[13765],{"type":26,"value":13766}," aqft",{"type":21,"tag":322,"props":13768,"children":13769},{"style":329},[13770],{"type":26,"value":13771},"(n, k_max):\n",{"type":21,"tag":322,"props":13773,"children":13774},{"class":324,"line":335},[13775,13779,13783,13787,13791,13795,13800],{"type":21,"tag":322,"props":13776,"children":13777},{"style":329},[13778],{"type":26,"value":7947},{"type":21,"tag":322,"props":13780,"children":13781},{"style":3648},[13782],{"type":26,"value":3688},{"type":21,"tag":322,"props":13784,"children":13785},{"style":329},[13786],{"type":26,"value":7956},{"type":21,"tag":322,"props":13788,"children":13789},{"style":3713},[13790],{"type":26,"value":7961},{"type":21,"tag":322,"props":13792,"children":13793},{"style":3648},[13794],{"type":26,"value":3688},{"type":21,"tag":322,"props":13796,"children":13797},{"style":359},[13798],{"type":26,"value":13799},"\"AQFT\"",{"type":21,"tag":322,"props":13801,"children":13802},{"style":329},[13803],{"type":26,"value":3748},{"type":21,"tag":322,"props":13805,"children":13806},{"class":324,"line":344},[13807,13811,13816,13820,13824,13829,13833,13837,13841,13845],{"type":21,"tag":322,"props":13808,"children":13809},{"style":3648},[13810],{"type":26,"value":5190},{"type":21,"tag":322,"props":13812,"children":13813},{"style":329},[13814],{"type":26,"value":13815}," size ",{"type":21,"tag":322,"props":13817,"children":13818},{"style":3648},[13819],{"type":26,"value":3951},{"type":21,"tag":322,"props":13821,"children":13822},{"style":348},[13823],{"type":26,"value":3956},{"type":21,"tag":322,"props":13825,"children":13826},{"style":329},[13827],{"type":26,"value":13828},"(n, ",{"type":21,"tag":322,"props":13830,"children":13831},{"style":348},[13832],{"type":26,"value":5618},{"type":21,"tag":322,"props":13834,"children":13835},{"style":329},[13836],{"type":26,"value":367},{"type":21,"tag":322,"props":13838,"children":13839},{"style":3648},[13840],{"type":26,"value":5298},{"type":21,"tag":322,"props":13842,"children":13843},{"style":348},[13844],{"type":26,"value":4004},{"type":21,"tag":322,"props":13846,"children":13847},{"style":329},[13848],{"type":26,"value":4864},{"type":21,"tag":322,"props":13850,"children":13851},{"class":324,"line":407},[13852,13857,13861,13865,13869],{"type":21,"tag":322,"props":13853,"children":13854},{"style":329},[13855],{"type":26,"value":13856},"        m ",{"type":21,"tag":322,"props":13858,"children":13859},{"style":3648},[13860],{"type":26,"value":3688},{"type":21,"tag":322,"props":13862,"children":13863},{"style":329},[13864],{"type":26,"value":13815},{"type":21,"tag":322,"props":13866,"children":13867},{"style":3648},[13868],{"type":26,"value":5298},{"type":21,"tag":322,"props":13870,"children":13871},{"style":348},[13872],{"type":26,"value":13242},{"type":21,"tag":322,"props":13874,"children":13875},{"class":324,"line":431},[13876],{"type":21,"tag":322,"props":13877,"children":13878},{"style":329},[13879],{"type":26,"value":13880},"        qc.h(m)\n",{"type":21,"tag":322,"props":13882,"children":13883},{"class":324,"line":453},[13884,13888,13892,13896,13900],{"type":21,"tag":322,"props":13885,"children":13886},{"style":3648},[13887],{"type":26,"value":5321},{"type":21,"tag":322,"props":13889,"children":13890},{"style":329},[13891],{"type":26,"value":12468},{"type":21,"tag":322,"props":13893,"children":13894},{"style":3648},[13895],{"type":26,"value":3951},{"type":21,"tag":322,"props":13897,"children":13898},{"style":348},[13899],{"type":26,"value":3956},{"type":21,"tag":322,"props":13901,"children":13902},{"style":329},[13903],{"type":26,"value":13904},"(m):\n",{"type":21,"tag":322,"props":13906,"children":13907},{"class":324,"line":474},[13908,13913,13917,13922,13926],{"type":21,"tag":322,"props":13909,"children":13910},{"style":329},[13911],{"type":26,"value":13912},"            k ",{"type":21,"tag":322,"props":13914,"children":13915},{"style":3648},[13916],{"type":26,"value":3688},{"type":21,"tag":322,"props":13918,"children":13919},{"style":329},[13920],{"type":26,"value":13921}," m ",{"type":21,"tag":322,"props":13923,"children":13924},{"style":3648},[13925],{"type":26,"value":5298},{"type":21,"tag":322,"props":13927,"children":13928},{"style":329},[13929],{"type":26,"value":13930}," qubit\n",{"type":21,"tag":322,"props":13932,"children":13933},{"class":324,"line":496},[13934,13938,13943,13948],{"type":21,"tag":322,"props":13935,"children":13936},{"style":3648},[13937],{"type":26,"value":5349},{"type":21,"tag":322,"props":13939,"children":13940},{"style":329},[13941],{"type":26,"value":13942}," k ",{"type":21,"tag":322,"props":13944,"children":13945},{"style":3648},[13946],{"type":26,"value":13947},"\u003C=",{"type":21,"tag":322,"props":13949,"children":13950},{"style":329},[13951],{"type":26,"value":13952}," k_max:\n",{"type":21,"tag":322,"props":13954,"children":13955},{"class":324,"line":16},[13956,13961,13965,13969,13973],{"type":21,"tag":322,"props":13957,"children":13958},{"style":329},[13959],{"type":26,"value":13960},"                qc.cp(np.pi ",{"type":21,"tag":322,"props":13962,"children":13963},{"style":3648},[13964],{"type":26,"value":174},{"type":21,"tag":322,"props":13966,"children":13967},{"style":348},[13968],{"type":26,"value":6834},{"type":21,"tag":322,"props":13970,"children":13971},{"style":3648},[13972],{"type":26,"value":8759},{"type":21,"tag":322,"props":13974,"children":13975},{"style":329},[13976],{"type":26,"value":13977}," k, qubit, m)\n",{"type":21,"tag":322,"props":13979,"children":13980},{"class":324,"line":3894},[13981,13985,13989,13993,13997,14001,14005,14009],{"type":21,"tag":322,"props":13982,"children":13983},{"style":3648},[13984],{"type":26,"value":5190},{"type":21,"tag":322,"props":13986,"children":13987},{"style":329},[13988],{"type":26,"value":3946},{"type":21,"tag":322,"props":13990,"children":13991},{"style":3648},[13992],{"type":26,"value":3951},{"type":21,"tag":322,"props":13994,"children":13995},{"style":348},[13996],{"type":26,"value":3956},{"type":21,"tag":322,"props":13998,"children":13999},{"style":329},[14000],{"type":26,"value":8119},{"type":21,"tag":322,"props":14002,"children":14003},{"style":3648},[14004],{"type":26,"value":6558},{"type":21,"tag":322,"props":14006,"children":14007},{"style":348},[14008],{"type":26,"value":6834},{"type":21,"tag":322,"props":14010,"children":14011},{"style":329},[14012],{"type":26,"value":4864},{"type":21,"tag":322,"props":14014,"children":14015},{"class":324,"line":3904},[14016,14021,14025,14029,14033,14037],{"type":21,"tag":322,"props":14017,"children":14018},{"style":329},[14019],{"type":26,"value":14020},"        qc.swap(q, n ",{"type":21,"tag":322,"props":14022,"children":14023},{"style":3648},[14024],{"type":26,"value":5298},{"type":21,"tag":322,"props":14026,"children":14027},{"style":329},[14028],{"type":26,"value":3946},{"type":21,"tag":322,"props":14030,"children":14031},{"style":3648},[14032],{"type":26,"value":5298},{"type":21,"tag":322,"props":14034,"children":14035},{"style":348},[14036],{"type":26,"value":6549},{"type":21,"tag":322,"props":14038,"children":14039},{"style":329},[14040],{"type":26,"value":3748},{"type":21,"tag":322,"props":14042,"children":14043},{"class":324,"line":1043},[14044,14048],{"type":21,"tag":322,"props":14045,"children":14046},{"style":3648},[14047],{"type":26,"value":5036},{"type":21,"tag":322,"props":14049,"children":14050},{"style":329},[14051],{"type":26,"value":8228},{"type":21,"tag":22,"props":14053,"children":14054},{},[14055],{"type":26,"value":14056},"Measured fidelity against the exact 4-qubit QFT:",{"type":21,"tag":4516,"props":14058,"children":14059},{},[14060,14081],{"type":21,"tag":4520,"props":14061,"children":14062},{},[14063],{"type":21,"tag":4524,"props":14064,"children":14065},{},[14066,14071,14076],{"type":21,"tag":4528,"props":14067,"children":14068},{},[14069],{"type":26,"value":14070},"k_max",{"type":21,"tag":4528,"props":14072,"children":14073},{},[14074],{"type":26,"value":14075},"CP gates",{"type":21,"tag":4528,"props":14077,"children":14078},{},[14079],{"type":26,"value":14080},"Fidelity",{"type":21,"tag":4542,"props":14082,"children":14083},{},[14084,14100,14116,14133],{"type":21,"tag":4524,"props":14085,"children":14086},{},[14087,14091,14095],{"type":21,"tag":4549,"props":14088,"children":14089},{},[14090],{"type":26,"value":4004},{"type":21,"tag":4549,"props":14092,"children":14093},{},[14094],{"type":26,"value":6961},{"type":21,"tag":4549,"props":14096,"children":14097},{},[14098],{"type":26,"value":14099},"0.8456",{"type":21,"tag":4524,"props":14101,"children":14102},{},[14103,14107,14111],{"type":21,"tag":4549,"props":14104,"children":14105},{},[14106],{"type":26,"value":423},{"type":21,"tag":4549,"props":14108,"children":14109},{},[14110],{"type":26,"value":7132},{"type":21,"tag":4549,"props":14112,"children":14113},{},[14114],{"type":26,"value":14115},"0.9856",{"type":21,"tag":4524,"props":14117,"children":14118},{},[14119,14123,14128],{"type":21,"tag":4549,"props":14120,"children":14121},{},[14122],{"type":26,"value":6961},{"type":21,"tag":4549,"props":14124,"children":14125},{},[14126],{"type":26,"value":14127},"6",{"type":21,"tag":4549,"props":14129,"children":14130},{},[14131],{"type":26,"value":14132},"1.0000",{"type":21,"tag":4524,"props":14134,"children":14135},{},[14136,14141,14145],{"type":21,"tag":4549,"props":14137,"children":14138},{},[14139],{"type":26,"value":14140},"exact",{"type":21,"tag":4549,"props":14142,"children":14143},{},[14144],{"type":26,"value":14127},{"type":21,"tag":4549,"props":14146,"children":14147},{},[14148],{"type":26,"value":14132},{"type":21,"tag":22,"props":14150,"children":14151},{},[14152,14154,14158],{"type":26,"value":14153},"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":29,"props":14155,"children":14156},{"href":1014},[14157],{"type":26,"value":3734},{"type":26,"value":14159}," with a realistic noise model before committing.",{"type":21,"tag":59,"props":14161,"children":14163},{"id":14162},"try-this-next",[14164],{"type":26,"value":14165},"Try this next",{"type":21,"tag":3566,"props":14167,"children":14168},{},[14169,14181,14194],{"type":21,"tag":3570,"props":14170,"children":14171},{},[14172,14174,14179],{"type":26,"value":14173},"Build ",{"type":21,"tag":79,"props":14175,"children":14177},{"className":14176},[],[14178],{"type":26,"value":13687},{"type":26,"value":14180}," and use it to implement phase estimation on a T gate. You should recover θ = 1\u002F8 exactly with 3 counting qubits.",{"type":21,"tag":3570,"props":14182,"children":14183},{},[14184,14186,14192],{"type":26,"value":14185},"Run the 4-qubit QFT through ",{"type":21,"tag":79,"props":14187,"children":14189},{"className":14188},[],[14190],{"type":26,"value":14191},"transpile(qc, backend, optimization_level=3)",{"type":26,"value":14193}," for a real device and watch the CP gates decompose into CNOTs. The depth increase is sobering.",{"type":21,"tag":3570,"props":14195,"children":14196},{},[14197,14199,14203],{"type":26,"value":14198},"Compare against a variational algorithm like ",{"type":21,"tag":29,"props":14200,"children":14201},{"href":31},[14202],{"type":26,"value":14},{"type":26,"value":14204}," to see the contrast between structured algorithms with proven speedups and heuristic NISQ ones.",{"type":21,"tag":22,"props":14206,"children":14207},{},[14208],{"type":26,"value":14209},"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":703,"props":14211,"children":14212},{},[14213],{"type":26,"value":707},{"title":7,"searchDepth":335,"depth":335,"links":14215},[14216,14217,14218,14219,14220,14221,14222,14223,14224],{"id":12007,"depth":335,"text":12010},{"id":12077,"depth":335,"text":12080},{"id":12135,"depth":335,"text":12138},{"id":12214,"depth":335,"text":12217},{"id":12850,"depth":335,"text":12853},{"id":13083,"depth":335,"text":13086},{"id":13662,"depth":335,"text":13665},{"id":13732,"depth":335,"text":13735},{"id":14162,"depth":335,"text":14165},"content:blog:quantum-fourier-transform-tutorial.md","blog\u002Fquantum-fourier-transform-tutorial.md","blog\u002Fquantum-fourier-transform-tutorial",{"_path":14229,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":14230,"description":14231,"date":3510,"author":11,"tags":14232,"readingTime":16,"body":14235,"_type":715,"_id":16084,"_source":717,"_file":16085,"_stem":16086,"_extension":720},"\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.",[14233,14234,7598],"QML","PennyLane",{"type":18,"children":14236,"toc":16075},[14237,14242,14254,14259,14265,14270,14301,14311,14327,14337,14343,14355,14367,14372,14382,14388,14400,14412,14423,14428,14434,14439,14450,14455,14488,14493,14505,14511,14523,15856,15869,15924,15936,15955,15961,15966,15989,15999,16009,16015,16031,16043,16053,16071],{"type":21,"tag":22,"props":14238,"children":14239},{},[14240],{"type":26,"value":14241},"\"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":14243,"children":14244},{},[14245,14247,14252],{"type":26,"value":14246},"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":51,"props":14248,"children":14249},{},[14250],{"type":26,"value":14251},"said",{"type":26,"value":14253}," 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":14255,"children":14256},{},[14257],{"type":26,"value":14258},"So: what QML is, what the evidence shows, and what's still worth watching.",{"type":21,"tag":59,"props":14260,"children":14262},{"id":14261},"what-quantum-machine-learning-means",[14263],{"type":26,"value":14264},"What quantum machine learning means",{"type":21,"tag":22,"props":14266,"children":14267},{},[14268],{"type":26,"value":14269},"The term covers several quite different things that get blurred together.",{"type":21,"tag":22,"props":14271,"children":14272},{},[14273,14278,14280,14286,14288,14293,14295,14299],{"type":21,"tag":71,"props":14274,"children":14275},{},[14276],{"type":26,"value":14277},"Variational circuits as trainable models.",{"type":26,"value":14279}," This is what most people building QML today are doing. You write a parameterized quantum circuit, a ",{"type":21,"tag":29,"props":14281,"children":14283},{"href":14282},"\u002Fglossary\u002Fvariational-circuit",[14284],{"type":26,"value":14285},"variational circuit",{"type":26,"value":14287},", 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":29,"props":14289,"children":14290},{"href":977},[14291],{"type":26,"value":14292},"hybrid algorithm",{"type":26,"value":14294}," pattern as ",{"type":21,"tag":29,"props":14296,"children":14297},{"href":928},[14298],{"type":26,"value":888},{"type":26,"value":14300},", 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":14302,"children":14303},{},[14304,14309],{"type":21,"tag":71,"props":14305,"children":14306},{},[14307],{"type":26,"value":14308},"Quantum kernels.",{"type":26,"value":14310}," 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":14312,"children":14313},{},[14314,14319,14321,14325],{"type":21,"tag":71,"props":14315,"children":14316},{},[14317],{"type":26,"value":14318},"Data encoding.",{"type":26,"value":14320}," 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":29,"props":14322,"children":14323},{"href":1804},[14324],{"type":26,"value":3229},{"type":26,"value":14326}," 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":14328,"children":14329},{},[14330,14335],{"type":21,"tag":71,"props":14331,"children":14332},{},[14333],{"type":26,"value":14334},"Quantum-accelerated linear algebra.",{"type":26,"value":14336}," 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":59,"props":14338,"children":14340},{"id":14339},"the-data-loading-bottleneck",[14341],{"type":26,"value":14342},"The data-loading bottleneck",{"type":21,"tag":22,"props":14344,"children":14345},{},[14346,14347,14353],{"type":26,"value":11519},{"type":21,"tag":29,"props":14348,"children":14350},{"href":14349},"\u002Fresearch\u002Fbiamonte-quantum-machine-learning-2017",[14351],{"type":26,"value":14352},"Biamonte et al. review",{"type":26,"value":14354},", 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":14356,"children":14357},{},[14358,14360,14365],{"type":26,"value":14359},"Many quantum ML algorithms with proven exponential speedups assume your data is ",{"type":21,"tag":51,"props":14361,"children":14362},{},[14363],{"type":26,"value":14364},"already",{"type":26,"value":14366}," 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":14368,"children":14369},{},[14370],{"type":26,"value":14371},"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":14373,"children":14374},{},[14375,14377],{"type":26,"value":14376},"The practical rule: ",{"type":21,"tag":71,"props":14378,"children":14379},{},[14380],{"type":26,"value":14381},"be suspicious of any quantum ML speedup claim that doesn't account for how the data got in.",{"type":21,"tag":59,"props":14383,"children":14385},{"id":14384},"barren-plateaus",[14386],{"type":26,"value":14387},"Barren plateaus",{"type":21,"tag":22,"props":14389,"children":14390},{},[14391,14393,14399],{"type":26,"value":14392},"The variational approach (the one most people build with) has its own structural obstacle, and it's the one described in ",{"type":21,"tag":29,"props":14394,"children":14396},{"href":14395},"\u002Fresearch\u002Fmcclean-barren-plateaus-2018",[14397],{"type":26,"value":14398},"McClean et al.",{"type":26,"value":534},{"type":21,"tag":22,"props":14401,"children":14402},{},[14403,14405,14410],{"type":26,"value":14404},"Training a variational model means computing gradients and stepping downhill. McClean and colleagues showed that for randomly initialized circuits, the ",{"type":21,"tag":51,"props":14406,"children":14407},{},[14408],{"type":26,"value":14409},"variance",{"type":26,"value":14411}," 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":14413,"children":14414},{},[14415,14417,14421],{"type":26,"value":14416},"Why this is fatal rather than merely annoying: gradients on quantum hardware are estimated from measurement statistics, so they come with ",{"type":21,"tag":29,"props":14418,"children":14419},{"href":6158},[14420],{"type":26,"value":6161},{"type":26,"value":14422},". 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":14424,"children":14425},{},[14426],{"type":26,"value":14427},"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":59,"props":14429,"children":14431},{"id":14430},"the-2026-head-to-head-comparison",[14432],{"type":26,"value":14433},"The 2026 head-to-head comparison",{"type":21,"tag":22,"props":14435,"children":14436},{},[14437],{"type":26,"value":14438},"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":14440,"children":14441},{},[14442,14448],{"type":21,"tag":29,"props":14443,"children":14445},{"href":14444},"\u002Fresearch\u002Fquantum-vs-classical-ml-2026",[14446],{"type":26,"value":14447},"Yu et al. (2026)",{"type":26,"value":14449}," 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":14451,"children":14452},{},[14453],{"type":26,"value":14454},"The quantum models lost. Not on one axis: on three:",{"type":21,"tag":3566,"props":14456,"children":14457},{},[14458,14468,14478],{"type":21,"tag":3570,"props":14459,"children":14460},{},[14461,14466],{"type":21,"tag":71,"props":14462,"children":14463},{},[14464],{"type":26,"value":14465},"Prediction performance.",{"type":26,"value":14467}," Classical baselines were more accurate.",{"type":21,"tag":3570,"props":14469,"children":14470},{},[14471,14476],{"type":21,"tag":71,"props":14472,"children":14473},{},[14474],{"type":26,"value":14475},"Policy stability.",{"type":26,"value":14477}," In the reinforcement learning tasks, the quantum models produced less stable policies.",{"type":21,"tag":3570,"props":14479,"children":14480},{},[14481,14486],{"type":21,"tag":71,"props":14482,"children":14483},{},[14484],{"type":26,"value":14485},"Training time.",{"type":26,"value":14487}," The quantum models were slower to train.",{"type":21,"tag":22,"props":14489,"children":14490},{},[14491],{"type":26,"value":14492},"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":14494,"children":14495},{},[14496,14498,14503],{"type":26,"value":14497},"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":71,"props":14499,"children":14500},{},[14501],{"type":26,"value":14502},"As of mid-2026, \"quantum will make AI faster\" is not supported by the evidence.",{"type":26,"value":14504}," If someone tells you otherwise, ask them for the head-to-head benchmark.",{"type":21,"tag":59,"props":14506,"children":14508},{"id":14507},"try-it-yourself",[14509],{"type":26,"value":14510},"Try it yourself",{"type":21,"tag":22,"props":14512,"children":14513},{},[14514,14516,14521],{"type":26,"value":14515},"The best way to develop intuition here is to build one. This is a complete variational quantum classifier in ",{"type":21,"tag":29,"props":14517,"children":14519},{"href":14518},"\u002Fsdks\u002Fpennylane",[14520],{"type":26,"value":14234},{"type":26,"value":14522},": angle encoding, a trainable entangling ansatz, and a gradient-descent loop:",{"type":21,"tag":312,"props":14524,"children":14526},{"className":3636,"code":14525,"language":3638,"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",[14527],{"type":21,"tag":79,"props":14528,"children":14529},{"__ignoreMap":7},[14530,14551,14578,14599,14620,14627,14643,14660,14667,14707,14714,14727,14744,14752,14795,14802,14810,14835,14842,14862,14869,14886,14907,14914,14931,14964,14971,14988,15022,15034,15041,15049,15120,15153,15170,15209,15216,15223,15267,15292,15344,15386,15393,15427,15444,15451,15484,15519,15537,15555,15563,15597,15632,15659,15750,15758,15792],{"type":21,"tag":322,"props":14531,"children":14532},{"class":324,"line":325},[14533,14537,14542,14546],{"type":21,"tag":322,"props":14534,"children":14535},{"style":3648},[14536],{"type":26,"value":3661},{"type":21,"tag":322,"props":14538,"children":14539},{"style":329},[14540],{"type":26,"value":14541}," pennylane ",{"type":21,"tag":322,"props":14543,"children":14544},{"style":3648},[14545],{"type":26,"value":4728},{"type":21,"tag":322,"props":14547,"children":14548},{"style":329},[14549],{"type":26,"value":14550}," qml\n",{"type":21,"tag":322,"props":14552,"children":14553},{"class":324,"line":335},[14554,14558,14562,14566,14570,14574],{"type":21,"tag":322,"props":14555,"children":14556},{"style":3648},[14557],{"type":26,"value":3651},{"type":21,"tag":322,"props":14559,"children":14560},{"style":329},[14561],{"type":26,"value":14541},{"type":21,"tag":322,"props":14563,"children":14564},{"style":3648},[14565],{"type":26,"value":3661},{"type":21,"tag":322,"props":14567,"children":14568},{"style":329},[14569],{"type":26,"value":4723},{"type":21,"tag":322,"props":14571,"children":14572},{"style":3648},[14573],{"type":26,"value":4728},{"type":21,"tag":322,"props":14575,"children":14576},{"style":329},[14577],{"type":26,"value":4733},{"type":21,"tag":322,"props":14579,"children":14580},{"class":324,"line":344},[14581,14585,14590,14594],{"type":21,"tag":322,"props":14582,"children":14583},{"style":3648},[14584],{"type":26,"value":3651},{"type":21,"tag":322,"props":14586,"children":14587},{"style":329},[14588],{"type":26,"value":14589}," sklearn.datasets ",{"type":21,"tag":322,"props":14591,"children":14592},{"style":3648},[14593],{"type":26,"value":3661},{"type":21,"tag":322,"props":14595,"children":14596},{"style":329},[14597],{"type":26,"value":14598}," make_moons\n",{"type":21,"tag":322,"props":14600,"children":14601},{"class":324,"line":407},[14602,14606,14611,14615],{"type":21,"tag":322,"props":14603,"children":14604},{"style":3648},[14605],{"type":26,"value":3651},{"type":21,"tag":322,"props":14607,"children":14608},{"style":329},[14609],{"type":26,"value":14610}," sklearn.model_selection ",{"type":21,"tag":322,"props":14612,"children":14613},{"style":3648},[14614],{"type":26,"value":3661},{"type":21,"tag":322,"props":14616,"children":14617},{"style":329},[14618],{"type":26,"value":14619}," train_test_split\n",{"type":21,"tag":322,"props":14621,"children":14622},{"class":324,"line":431},[14623],{"type":21,"tag":322,"props":14624,"children":14625},{"emptyLinePlaceholder":3672},[14626],{"type":26,"value":3675},{"type":21,"tag":322,"props":14628,"children":14629},{"class":324,"line":453},[14630,14635,14639],{"type":21,"tag":322,"props":14631,"children":14632},{"style":329},[14633],{"type":26,"value":14634},"n_qubits ",{"type":21,"tag":322,"props":14636,"children":14637},{"style":3648},[14638],{"type":26,"value":3688},{"type":21,"tag":322,"props":14640,"children":14641},{"style":348},[14642],{"type":26,"value":5544},{"type":21,"tag":322,"props":14644,"children":14645},{"class":324,"line":474},[14646,14651,14655],{"type":21,"tag":322,"props":14647,"children":14648},{"style":329},[14649],{"type":26,"value":14650},"n_layers ",{"type":21,"tag":322,"props":14652,"children":14653},{"style":3648},[14654],{"type":26,"value":3688},{"type":21,"tag":322,"props":14656,"children":14657},{"style":348},[14658],{"type":26,"value":14659}," 3\n",{"type":21,"tag":322,"props":14661,"children":14662},{"class":324,"line":496},[14663],{"type":21,"tag":322,"props":14664,"children":14665},{"emptyLinePlaceholder":3672},[14666],{"type":26,"value":3675},{"type":21,"tag":322,"props":14668,"children":14669},{"class":324,"line":16},[14670,14675,14679,14684,14689,14693,14698,14702],{"type":21,"tag":322,"props":14671,"children":14672},{"style":329},[14673],{"type":26,"value":14674},"dev ",{"type":21,"tag":322,"props":14676,"children":14677},{"style":3648},[14678],{"type":26,"value":3688},{"type":21,"tag":322,"props":14680,"children":14681},{"style":329},[14682],{"type":26,"value":14683}," qml.device(",{"type":21,"tag":322,"props":14685,"children":14686},{"style":359},[14687],{"type":26,"value":14688},"\"default.qubit\"",{"type":21,"tag":322,"props":14690,"children":14691},{"style":329},[14692],{"type":26,"value":367},{"type":21,"tag":322,"props":14694,"children":14695},{"style":3713},[14696],{"type":26,"value":14697},"wires",{"type":21,"tag":322,"props":14699,"children":14700},{"style":3648},[14701],{"type":26,"value":3688},{"type":21,"tag":322,"props":14703,"children":14704},{"style":329},[14705],{"type":26,"value":14706},"n_qubits)\n",{"type":21,"tag":322,"props":14708,"children":14709},{"class":324,"line":3894},[14710],{"type":21,"tag":322,"props":14711,"children":14712},{"emptyLinePlaceholder":3672},[14713],{"type":26,"value":3675},{"type":21,"tag":322,"props":14715,"children":14716},{"class":324,"line":3904},[14717,14722],{"type":21,"tag":322,"props":14718,"children":14719},{"style":4814},[14720],{"type":26,"value":14721},"@qml.qnode",{"type":21,"tag":322,"props":14723,"children":14724},{"style":329},[14725],{"type":26,"value":14726},"(dev)\n",{"type":21,"tag":322,"props":14728,"children":14729},{"class":324,"line":1043},[14730,14734,14739],{"type":21,"tag":322,"props":14731,"children":14732},{"style":3648},[14733],{"type":26,"value":4811},{"type":21,"tag":322,"props":14735,"children":14736},{"style":4814},[14737],{"type":26,"value":14738}," circuit",{"type":21,"tag":322,"props":14740,"children":14741},{"style":329},[14742],{"type":26,"value":14743},"(weights, x):\n",{"type":21,"tag":322,"props":14745,"children":14746},{"class":324,"line":3964},[14747],{"type":21,"tag":322,"props":14748,"children":14749},{"style":3898},[14750],{"type":26,"value":14751},"    # Data encoding: each feature becomes a rotation angle\n",{"type":21,"tag":322,"props":14753,"children":14754},{"class":324,"line":4012},[14755,14760,14764,14768,14772,14777,14782,14786,14791],{"type":21,"tag":322,"props":14756,"children":14757},{"style":329},[14758],{"type":26,"value":14759},"    qml.AngleEmbedding(x, ",{"type":21,"tag":322,"props":14761,"children":14762},{"style":3713},[14763],{"type":26,"value":14697},{"type":21,"tag":322,"props":14765,"children":14766},{"style":3648},[14767],{"type":26,"value":3688},{"type":21,"tag":322,"props":14769,"children":14770},{"style":348},[14771],{"type":26,"value":5392},{"type":21,"tag":322,"props":14773,"children":14774},{"style":329},[14775],{"type":26,"value":14776},"(n_qubits), ",{"type":21,"tag":322,"props":14778,"children":14779},{"style":3713},[14780],{"type":26,"value":14781},"rotation",{"type":21,"tag":322,"props":14783,"children":14784},{"style":3648},[14785],{"type":26,"value":3688},{"type":21,"tag":322,"props":14787,"children":14788},{"style":359},[14789],{"type":26,"value":14790},"\"Y\"",{"type":21,"tag":322,"props":14792,"children":14793},{"style":329},[14794],{"type":26,"value":3748},{"type":21,"tag":322,"props":14796,"children":14797},{"class":324,"line":4054},[14798],{"type":21,"tag":322,"props":14799,"children":14800},{"emptyLinePlaceholder":3672},[14801],{"type":26,"value":3675},{"type":21,"tag":322,"props":14803,"children":14804},{"class":324,"line":5081},[14805],{"type":21,"tag":322,"props":14806,"children":14807},{"style":3898},[14808],{"type":26,"value":14809},"    # Trainable ansatz: rotations plus entangling CNOTs\n",{"type":21,"tag":322,"props":14811,"children":14812},{"class":324,"line":5100},[14813,14818,14822,14826,14830],{"type":21,"tag":322,"props":14814,"children":14815},{"style":329},[14816],{"type":26,"value":14817},"    qml.BasicEntanglerLayers(weights, ",{"type":21,"tag":322,"props":14819,"children":14820},{"style":3713},[14821],{"type":26,"value":14697},{"type":21,"tag":322,"props":14823,"children":14824},{"style":3648},[14825],{"type":26,"value":3688},{"type":21,"tag":322,"props":14827,"children":14828},{"style":348},[14829],{"type":26,"value":5392},{"type":21,"tag":322,"props":14831,"children":14832},{"style":329},[14833],{"type":26,"value":14834},"(n_qubits))\n",{"type":21,"tag":322,"props":14836,"children":14837},{"class":324,"line":5108},[14838],{"type":21,"tag":322,"props":14839,"children":14840},{"emptyLinePlaceholder":3672},[14841],{"type":26,"value":3675},{"type":21,"tag":322,"props":14843,"children":14844},{"class":324,"line":5139},[14845,14849,14854,14858],{"type":21,"tag":322,"props":14846,"children":14847},{"style":3648},[14848],{"type":26,"value":5036},{"type":21,"tag":322,"props":14850,"children":14851},{"style":329},[14852],{"type":26,"value":14853}," qml.expval(qml.PauliZ(",{"type":21,"tag":322,"props":14855,"children":14856},{"style":348},[14857],{"type":26,"value":5618},{"type":21,"tag":322,"props":14859,"children":14860},{"style":329},[14861],{"type":26,"value":12817},{"type":21,"tag":322,"props":14863,"children":14864},{"class":324,"line":5184},[14865],{"type":21,"tag":322,"props":14866,"children":14867},{"emptyLinePlaceholder":3672},[14868],{"type":26,"value":3675},{"type":21,"tag":322,"props":14870,"children":14871},{"class":324,"line":5223},[14872,14876,14881],{"type":21,"tag":322,"props":14873,"children":14874},{"style":3648},[14875],{"type":26,"value":4811},{"type":21,"tag":322,"props":14877,"children":14878},{"style":4814},[14879],{"type":26,"value":14880}," variational_classifier",{"type":21,"tag":322,"props":14882,"children":14883},{"style":329},[14884],{"type":26,"value":14885},"(weights, bias, x):\n",{"type":21,"tag":322,"props":14887,"children":14888},{"class":324,"line":5241},[14889,14893,14898,14902],{"type":21,"tag":322,"props":14890,"children":14891},{"style":3648},[14892],{"type":26,"value":5036},{"type":21,"tag":322,"props":14894,"children":14895},{"style":329},[14896],{"type":26,"value":14897}," circuit(weights, x) ",{"type":21,"tag":322,"props":14899,"children":14900},{"style":3648},[14901],{"type":26,"value":6978},{"type":21,"tag":322,"props":14903,"children":14904},{"style":329},[14905],{"type":26,"value":14906}," bias\n",{"type":21,"tag":322,"props":14908,"children":14909},{"class":324,"line":5315},[14910],{"type":21,"tag":322,"props":14911,"children":14912},{"emptyLinePlaceholder":3672},[14913],{"type":26,"value":3675},{"type":21,"tag":322,"props":14915,"children":14916},{"class":324,"line":5343},[14917,14921,14926],{"type":21,"tag":322,"props":14918,"children":14919},{"style":3648},[14920],{"type":26,"value":4811},{"type":21,"tag":322,"props":14922,"children":14923},{"style":4814},[14924],{"type":26,"value":14925}," square_loss",{"type":21,"tag":322,"props":14927,"children":14928},{"style":329},[14929],{"type":26,"value":14930},"(labels, preds):\n",{"type":21,"tag":322,"props":14932,"children":14933},{"class":324,"line":5372},[14934,14938,14943,14947,14952,14956,14960],{"type":21,"tag":322,"props":14935,"children":14936},{"style":3648},[14937],{"type":26,"value":5036},{"type":21,"tag":322,"props":14939,"children":14940},{"style":329},[14941],{"type":26,"value":14942}," np.mean((labels ",{"type":21,"tag":322,"props":14944,"children":14945},{"style":3648},[14946],{"type":26,"value":5298},{"type":21,"tag":322,"props":14948,"children":14949},{"style":329},[14950],{"type":26,"value":14951}," qml.math.stack(preds)) ",{"type":21,"tag":322,"props":14953,"children":14954},{"style":3648},[14955],{"type":26,"value":5163},{"type":21,"tag":322,"props":14957,"children":14958},{"style":348},[14959],{"type":26,"value":6834},{"type":21,"tag":322,"props":14961,"children":14962},{"style":329},[14963],{"type":26,"value":3748},{"type":21,"tag":322,"props":14965,"children":14966},{"class":324,"line":5381},[14967],{"type":21,"tag":322,"props":14968,"children":14969},{"emptyLinePlaceholder":3672},[14970],{"type":26,"value":3675},{"type":21,"tag":322,"props":14972,"children":14973},{"class":324,"line":5409},[14974,14978,14983],{"type":21,"tag":322,"props":14975,"children":14976},{"style":3648},[14977],{"type":26,"value":4811},{"type":21,"tag":322,"props":14979,"children":14980},{"style":4814},[14981],{"type":26,"value":14982}," cost",{"type":21,"tag":322,"props":14984,"children":14985},{"style":329},[14986],{"type":26,"value":14987},"(weights, bias, X, Y):\n",{"type":21,"tag":322,"props":14989,"children":14990},{"class":324,"line":5440},[14991,14996,15000,15005,15009,15013,15017],{"type":21,"tag":322,"props":14992,"children":14993},{"style":329},[14994],{"type":26,"value":14995},"    preds ",{"type":21,"tag":322,"props":14997,"children":14998},{"style":3648},[14999],{"type":26,"value":3688},{"type":21,"tag":322,"props":15001,"children":15002},{"style":329},[15003],{"type":26,"value":15004}," [variational_classifier(weights, bias, x) ",{"type":21,"tag":322,"props":15006,"children":15007},{"style":3648},[15008],{"type":26,"value":3941},{"type":21,"tag":322,"props":15010,"children":15011},{"style":329},[15012],{"type":26,"value":13179},{"type":21,"tag":322,"props":15014,"children":15015},{"style":3648},[15016],{"type":26,"value":3951},{"type":21,"tag":322,"props":15018,"children":15019},{"style":329},[15020],{"type":26,"value":15021}," X]\n",{"type":21,"tag":322,"props":15023,"children":15024},{"class":324,"line":5462},[15025,15029],{"type":21,"tag":322,"props":15026,"children":15027},{"style":3648},[15028],{"type":26,"value":5036},{"type":21,"tag":322,"props":15030,"children":15031},{"style":329},[15032],{"type":26,"value":15033}," square_loss(Y, preds)\n",{"type":21,"tag":322,"props":15035,"children":15036},{"class":324,"line":5508},[15037],{"type":21,"tag":322,"props":15038,"children":15039},{"emptyLinePlaceholder":3672},[15040],{"type":26,"value":3675},{"type":21,"tag":322,"props":15042,"children":15043},{"class":324,"line":5521},[15044],{"type":21,"tag":322,"props":15045,"children":15046},{"style":3898},[15047],{"type":26,"value":15048},"# Two-moons dataset, labels mapped to -1 \u002F +1 to match \u003CZ>\n",{"type":21,"tag":322,"props":15050,"children":15051},{"class":324,"line":5529},[15052,15057,15061,15066,15071,15075,15080,15084,15089,15093,15098,15102,15107,15111,15116],{"type":21,"tag":322,"props":15053,"children":15054},{"style":329},[15055],{"type":26,"value":15056},"X, y ",{"type":21,"tag":322,"props":15058,"children":15059},{"style":3648},[15060],{"type":26,"value":3688},{"type":21,"tag":322,"props":15062,"children":15063},{"style":329},[15064],{"type":26,"value":15065}," make_moons(",{"type":21,"tag":322,"props":15067,"children":15068},{"style":3713},[15069],{"type":26,"value":15070},"n_samples",{"type":21,"tag":322,"props":15072,"children":15073},{"style":3648},[15074],{"type":26,"value":3688},{"type":21,"tag":322,"props":15076,"children":15077},{"style":348},[15078],{"type":26,"value":15079},"200",{"type":21,"tag":322,"props":15081,"children":15082},{"style":329},[15083],{"type":26,"value":367},{"type":21,"tag":322,"props":15085,"children":15086},{"style":3713},[15087],{"type":26,"value":15088},"noise",{"type":21,"tag":322,"props":15090,"children":15091},{"style":3648},[15092],{"type":26,"value":3688},{"type":21,"tag":322,"props":15094,"children":15095},{"style":348},[15096],{"type":26,"value":15097},"0.15",{"type":21,"tag":322,"props":15099,"children":15100},{"style":329},[15101],{"type":26,"value":367},{"type":21,"tag":322,"props":15103,"children":15104},{"style":3713},[15105],{"type":26,"value":15106},"random_state",{"type":21,"tag":322,"props":15108,"children":15109},{"style":3648},[15110],{"type":26,"value":3688},{"type":21,"tag":322,"props":15112,"children":15113},{"style":348},[15114],{"type":26,"value":15115},"42",{"type":21,"tag":322,"props":15117,"children":15118},{"style":329},[15119],{"type":26,"value":3748},{"type":21,"tag":322,"props":15121,"children":15122},{"class":324,"line":5547},[15123,15128,15132,15136,15140,15145,15149],{"type":21,"tag":322,"props":15124,"children":15125},{"style":329},[15126],{"type":26,"value":15127},"y ",{"type":21,"tag":322,"props":15129,"children":15130},{"style":3648},[15131],{"type":26,"value":3688},{"type":21,"tag":322,"props":15133,"children":15134},{"style":348},[15135],{"type":26,"value":6834},{"type":21,"tag":322,"props":15137,"children":15138},{"style":3648},[15139],{"type":26,"value":8795},{"type":21,"tag":322,"props":15141,"children":15142},{"style":329},[15143],{"type":26,"value":15144}," y ",{"type":21,"tag":322,"props":15146,"children":15147},{"style":3648},[15148],{"type":26,"value":5298},{"type":21,"tag":322,"props":15150,"children":15151},{"style":348},[15152],{"type":26,"value":13242},{"type":21,"tag":322,"props":15154,"children":15155},{"class":324,"line":5565},[15156,15161,15165],{"type":21,"tag":322,"props":15157,"children":15158},{"style":329},[15159],{"type":26,"value":15160},"X_train, X_test, y_train, y_test ",{"type":21,"tag":322,"props":15162,"children":15163},{"style":3648},[15164],{"type":26,"value":3688},{"type":21,"tag":322,"props":15166,"children":15167},{"style":329},[15168],{"type":26,"value":15169}," train_test_split(\n",{"type":21,"tag":322,"props":15171,"children":15172},{"class":324,"line":5573},[15173,15178,15183,15187,15192,15196,15200,15204],{"type":21,"tag":322,"props":15174,"children":15175},{"style":329},[15176],{"type":26,"value":15177},"    X, y, ",{"type":21,"tag":322,"props":15179,"children":15180},{"style":3713},[15181],{"type":26,"value":15182},"test_size",{"type":21,"tag":322,"props":15184,"children":15185},{"style":3648},[15186],{"type":26,"value":3688},{"type":21,"tag":322,"props":15188,"children":15189},{"style":348},[15190],{"type":26,"value":15191},"0.3",{"type":21,"tag":322,"props":15193,"children":15194},{"style":329},[15195],{"type":26,"value":367},{"type":21,"tag":322,"props":15197,"children":15198},{"style":3713},[15199],{"type":26,"value":15106},{"type":21,"tag":322,"props":15201,"children":15202},{"style":3648},[15203],{"type":26,"value":3688},{"type":21,"tag":322,"props":15205,"children":15206},{"style":348},[15207],{"type":26,"value":15208},"42\n",{"type":21,"tag":322,"props":15210,"children":15211},{"class":324,"line":5607},[15212],{"type":21,"tag":322,"props":15213,"children":15214},{"style":329},[15215],{"type":26,"value":3748},{"type":21,"tag":322,"props":15217,"children":15218},{"class":324,"line":5625},[15219],{"type":21,"tag":322,"props":15220,"children":15221},{"emptyLinePlaceholder":3672},[15222],{"type":26,"value":3675},{"type":21,"tag":322,"props":15224,"children":15225},{"class":324,"line":5650},[15226,15231,15235,15240,15245,15249,15254,15259,15263],{"type":21,"tag":322,"props":15227,"children":15228},{"style":329},[15229],{"type":26,"value":15230},"shape ",{"type":21,"tag":322,"props":15232,"children":15233},{"style":3648},[15234],{"type":26,"value":3688},{"type":21,"tag":322,"props":15236,"children":15237},{"style":329},[15238],{"type":26,"value":15239}," qml.BasicEntanglerLayers.shape(",{"type":21,"tag":322,"props":15241,"children":15242},{"style":3713},[15243],{"type":26,"value":15244},"n_layers",{"type":21,"tag":322,"props":15246,"children":15247},{"style":3648},[15248],{"type":26,"value":3688},{"type":21,"tag":322,"props":15250,"children":15251},{"style":329},[15252],{"type":26,"value":15253},"n_layers, ",{"type":21,"tag":322,"props":15255,"children":15256},{"style":3713},[15257],{"type":26,"value":15258},"n_wires",{"type":21,"tag":322,"props":15260,"children":15261},{"style":3648},[15262],{"type":26,"value":3688},{"type":21,"tag":322,"props":15264,"children":15265},{"style":329},[15266],{"type":26,"value":14706},{"type":21,"tag":322,"props":15268,"children":15269},{"class":324,"line":5692},[15270,15275,15279,15284,15288],{"type":21,"tag":322,"props":15271,"children":15272},{"style":329},[15273],{"type":26,"value":15274},"rng ",{"type":21,"tag":322,"props":15276,"children":15277},{"style":3648},[15278],{"type":26,"value":3688},{"type":21,"tag":322,"props":15280,"children":15281},{"style":329},[15282],{"type":26,"value":15283}," np.random.default_rng(",{"type":21,"tag":322,"props":15285,"children":15286},{"style":348},[15287],{"type":26,"value":15115},{"type":21,"tag":322,"props":15289,"children":15290},{"style":329},[15291],{"type":26,"value":3748},{"type":21,"tag":322,"props":15293,"children":15294},{"class":324,"line":5700},[15295,15300,15304,15309,15313,15317,15322,15327,15332,15336,15340],{"type":21,"tag":322,"props":15296,"children":15297},{"style":329},[15298],{"type":26,"value":15299},"weights ",{"type":21,"tag":322,"props":15301,"children":15302},{"style":3648},[15303],{"type":26,"value":3688},{"type":21,"tag":322,"props":15305,"children":15306},{"style":329},[15307],{"type":26,"value":15308}," np.array(rng.normal(",{"type":21,"tag":322,"props":15310,"children":15311},{"style":348},[15312],{"type":26,"value":5618},{"type":21,"tag":322,"props":15314,"children":15315},{"style":329},[15316],{"type":26,"value":367},{"type":21,"tag":322,"props":15318,"children":15319},{"style":348},[15320],{"type":26,"value":15321},"0.1",{"type":21,"tag":322,"props":15323,"children":15324},{"style":329},[15325],{"type":26,"value":15326},", shape), ",{"type":21,"tag":322,"props":15328,"children":15329},{"style":3713},[15330],{"type":26,"value":15331},"requires_grad",{"type":21,"tag":322,"props":15333,"children":15334},{"style":3648},[15335],{"type":26,"value":3688},{"type":21,"tag":322,"props":15337,"children":15338},{"style":348},[15339],{"type":26,"value":3725},{"type":21,"tag":322,"props":15341,"children":15342},{"style":329},[15343],{"type":26,"value":3748},{"type":21,"tag":322,"props":15345,"children":15346},{"class":324,"line":5735},[15347,15352,15356,15361,15366,15370,15374,15378,15382],{"type":21,"tag":322,"props":15348,"children":15349},{"style":329},[15350],{"type":26,"value":15351},"bias ",{"type":21,"tag":322,"props":15353,"children":15354},{"style":3648},[15355],{"type":26,"value":3688},{"type":21,"tag":322,"props":15357,"children":15358},{"style":329},[15359],{"type":26,"value":15360}," np.array(",{"type":21,"tag":322,"props":15362,"children":15363},{"style":348},[15364],{"type":26,"value":15365},"0.0",{"type":21,"tag":322,"props":15367,"children":15368},{"style":329},[15369],{"type":26,"value":367},{"type":21,"tag":322,"props":15371,"children":15372},{"style":3713},[15373],{"type":26,"value":15331},{"type":21,"tag":322,"props":15375,"children":15376},{"style":3648},[15377],{"type":26,"value":3688},{"type":21,"tag":322,"props":15379,"children":15380},{"style":348},[15381],{"type":26,"value":3725},{"type":21,"tag":322,"props":15383,"children":15384},{"style":329},[15385],{"type":26,"value":3748},{"type":21,"tag":322,"props":15387,"children":15388},{"class":324,"line":5851},[15389],{"type":21,"tag":322,"props":15390,"children":15391},{"emptyLinePlaceholder":3672},[15392],{"type":26,"value":3675},{"type":21,"tag":322,"props":15394,"children":15395},{"class":324,"line":5859},[15396,15401,15405,15410,15415,15419,15423],{"type":21,"tag":322,"props":15397,"children":15398},{"style":329},[15399],{"type":26,"value":15400},"opt ",{"type":21,"tag":322,"props":15402,"children":15403},{"style":3648},[15404],{"type":26,"value":3688},{"type":21,"tag":322,"props":15406,"children":15407},{"style":329},[15408],{"type":26,"value":15409}," qml.AdamOptimizer(",{"type":21,"tag":322,"props":15411,"children":15412},{"style":3713},[15413],{"type":26,"value":15414},"stepsize",{"type":21,"tag":322,"props":15416,"children":15417},{"style":3648},[15418],{"type":26,"value":3688},{"type":21,"tag":322,"props":15420,"children":15421},{"style":348},[15422],{"type":26,"value":15321},{"type":21,"tag":322,"props":15424,"children":15425},{"style":329},[15426],{"type":26,"value":3748},{"type":21,"tag":322,"props":15428,"children":15429},{"class":324,"line":5904},[15430,15435,15439],{"type":21,"tag":322,"props":15431,"children":15432},{"style":329},[15433],{"type":26,"value":15434},"batch_size ",{"type":21,"tag":322,"props":15436,"children":15437},{"style":3648},[15438],{"type":26,"value":3688},{"type":21,"tag":322,"props":15440,"children":15441},{"style":348},[15442],{"type":26,"value":15443}," 20\n",{"type":21,"tag":322,"props":15445,"children":15446},{"class":324,"line":5922},[15447],{"type":21,"tag":322,"props":15448,"children":15449},{"emptyLinePlaceholder":3672},[15450],{"type":26,"value":3675},{"type":21,"tag":322,"props":15452,"children":15453},{"class":324,"line":5930},[15454,15458,15463,15467,15471,15475,15480],{"type":21,"tag":322,"props":15455,"children":15456},{"style":3648},[15457],{"type":26,"value":3941},{"type":21,"tag":322,"props":15459,"children":15460},{"style":329},[15461],{"type":26,"value":15462}," step ",{"type":21,"tag":322,"props":15464,"children":15465},{"style":3648},[15466],{"type":26,"value":3951},{"type":21,"tag":322,"props":15468,"children":15469},{"style":348},[15470],{"type":26,"value":3956},{"type":21,"tag":322,"props":15472,"children":15473},{"style":329},[15474],{"type":26,"value":3768},{"type":21,"tag":322,"props":15476,"children":15477},{"style":348},[15478],{"type":26,"value":15479},"60",{"type":21,"tag":322,"props":15481,"children":15482},{"style":329},[15483],{"type":26,"value":4864},{"type":21,"tag":322,"props":15485,"children":15486},{"class":324,"line":6018},[15487,15492,15496,15501,15505,15509,15514],{"type":21,"tag":322,"props":15488,"children":15489},{"style":329},[15490],{"type":26,"value":15491},"    idx ",{"type":21,"tag":322,"props":15493,"children":15494},{"style":3648},[15495],{"type":26,"value":3688},{"type":21,"tag":322,"props":15497,"children":15498},{"style":329},[15499],{"type":26,"value":15500}," np.random.randint(",{"type":21,"tag":322,"props":15502,"children":15503},{"style":348},[15504],{"type":26,"value":5618},{"type":21,"tag":322,"props":15506,"children":15507},{"style":329},[15508],{"type":26,"value":367},{"type":21,"tag":322,"props":15510,"children":15511},{"style":348},[15512],{"type":26,"value":15513},"len",{"type":21,"tag":322,"props":15515,"children":15516},{"style":329},[15517],{"type":26,"value":15518},"(X_train), (batch_size,))\n",{"type":21,"tag":322,"props":15520,"children":15522},{"class":324,"line":15521},48,[15523,15528,15532],{"type":21,"tag":322,"props":15524,"children":15525},{"style":329},[15526],{"type":26,"value":15527},"    X_batch, y_batch ",{"type":21,"tag":322,"props":15529,"children":15530},{"style":3648},[15531],{"type":26,"value":3688},{"type":21,"tag":322,"props":15533,"children":15534},{"style":329},[15535],{"type":26,"value":15536}," X_train[idx], y_train[idx]\n",{"type":21,"tag":322,"props":15538,"children":15540},{"class":324,"line":15539},49,[15541,15546,15550],{"type":21,"tag":322,"props":15542,"children":15543},{"style":329},[15544],{"type":26,"value":15545},"    weights, bias, _, _ ",{"type":21,"tag":322,"props":15547,"children":15548},{"style":3648},[15549],{"type":26,"value":3688},{"type":21,"tag":322,"props":15551,"children":15552},{"style":329},[15553],{"type":26,"value":15554}," opt.step(cost, weights, bias, X_batch, y_batch)\n",{"type":21,"tag":322,"props":15556,"children":15558},{"class":324,"line":15557},50,[15559],{"type":21,"tag":322,"props":15560,"children":15561},{"emptyLinePlaceholder":3672},[15562],{"type":26,"value":3675},{"type":21,"tag":322,"props":15564,"children":15566},{"class":324,"line":15565},51,[15567,15571,15575,15579,15584,15589,15593],{"type":21,"tag":322,"props":15568,"children":15569},{"style":3648},[15570],{"type":26,"value":12395},{"type":21,"tag":322,"props":15572,"children":15573},{"style":329},[15574],{"type":26,"value":15462},{"type":21,"tag":322,"props":15576,"children":15577},{"style":3648},[15578],{"type":26,"value":6829},{"type":21,"tag":322,"props":15580,"children":15581},{"style":348},[15582],{"type":26,"value":15583}," 15",{"type":21,"tag":322,"props":15585,"children":15586},{"style":3648},[15587],{"type":26,"value":15588}," ==",{"type":21,"tag":322,"props":15590,"children":15591},{"style":348},[15592],{"type":26,"value":12409},{"type":21,"tag":322,"props":15594,"children":15595},{"style":329},[15596],{"type":26,"value":5369},{"type":21,"tag":322,"props":15598,"children":15600},{"class":324,"line":15599},52,[15601,15606,15610,15615,15619,15623,15627],{"type":21,"tag":322,"props":15602,"children":15603},{"style":329},[15604],{"type":26,"value":15605},"        preds ",{"type":21,"tag":322,"props":15607,"children":15608},{"style":3648},[15609],{"type":26,"value":3688},{"type":21,"tag":322,"props":15611,"children":15612},{"style":329},[15613],{"type":26,"value":15614}," [np.sign(variational_classifier(weights, bias, x)) ",{"type":21,"tag":322,"props":15616,"children":15617},{"style":3648},[15618],{"type":26,"value":3941},{"type":21,"tag":322,"props":15620,"children":15621},{"style":329},[15622],{"type":26,"value":13179},{"type":21,"tag":322,"props":15624,"children":15625},{"style":3648},[15626],{"type":26,"value":3951},{"type":21,"tag":322,"props":15628,"children":15629},{"style":329},[15630],{"type":26,"value":15631}," X_train]\n",{"type":21,"tag":322,"props":15633,"children":15635},{"class":324,"line":15634},53,[15636,15641,15645,15650,15654],{"type":21,"tag":322,"props":15637,"children":15638},{"style":329},[15639],{"type":26,"value":15640},"        acc ",{"type":21,"tag":322,"props":15642,"children":15643},{"style":3648},[15644],{"type":26,"value":3688},{"type":21,"tag":322,"props":15646,"children":15647},{"style":329},[15648],{"type":26,"value":15649}," np.mean(np.array(preds) ",{"type":21,"tag":322,"props":15651,"children":15652},{"style":3648},[15653],{"type":26,"value":5359},{"type":21,"tag":322,"props":15655,"children":15656},{"style":329},[15657],{"type":26,"value":15658}," y_train)\n",{"type":21,"tag":322,"props":15660,"children":15662},{"class":324,"line":15661},54,[15663,15667,15671,15675,15680,15684,15689,15693,15697,15702,15706,15711,15715,15719,15724,15728,15733,15738,15742,15746],{"type":21,"tag":322,"props":15664,"children":15665},{"style":348},[15666],{"type":26,"value":13341},{"type":21,"tag":322,"props":15668,"children":15669},{"style":329},[15670],{"type":26,"value":3768},{"type":21,"tag":322,"props":15672,"children":15673},{"style":3648},[15674],{"type":26,"value":3773},{"type":21,"tag":322,"props":15676,"children":15677},{"style":359},[15678],{"type":26,"value":15679},"\"Step ",{"type":21,"tag":322,"props":15681,"children":15682},{"style":348},[15683],{"type":26,"value":3783},{"type":21,"tag":322,"props":15685,"children":15686},{"style":329},[15687],{"type":26,"value":15688},"step",{"type":21,"tag":322,"props":15690,"children":15691},{"style":3648},[15692],{"type":26,"value":13406},{"type":21,"tag":322,"props":15694,"children":15695},{"style":348},[15696],{"type":26,"value":3793},{"type":21,"tag":322,"props":15698,"children":15699},{"style":359},[15700],{"type":26,"value":15701}," | cost ",{"type":21,"tag":322,"props":15703,"children":15704},{"style":348},[15705],{"type":26,"value":3783},{"type":21,"tag":322,"props":15707,"children":15708},{"style":329},[15709],{"type":26,"value":15710},"cost(weights, bias, X_train, y_train)",{"type":21,"tag":322,"props":15712,"children":15713},{"style":3648},[15714],{"type":26,"value":4095},{"type":21,"tag":322,"props":15716,"children":15717},{"style":348},[15718],{"type":26,"value":3793},{"type":21,"tag":322,"props":15720,"children":15721},{"style":359},[15722],{"type":26,"value":15723}," | acc ",{"type":21,"tag":322,"props":15725,"children":15726},{"style":348},[15727],{"type":26,"value":3783},{"type":21,"tag":322,"props":15729,"children":15730},{"style":329},[15731],{"type":26,"value":15732},"acc",{"type":21,"tag":322,"props":15734,"children":15735},{"style":3648},[15736],{"type":26,"value":15737},":.3f",{"type":21,"tag":322,"props":15739,"children":15740},{"style":348},[15741],{"type":26,"value":3793},{"type":21,"tag":322,"props":15743,"children":15744},{"style":359},[15745],{"type":26,"value":3798},{"type":21,"tag":322,"props":15747,"children":15748},{"style":329},[15749],{"type":26,"value":3748},{"type":21,"tag":322,"props":15751,"children":15753},{"class":324,"line":15752},55,[15754],{"type":21,"tag":322,"props":15755,"children":15756},{"emptyLinePlaceholder":3672},[15757],{"type":26,"value":3675},{"type":21,"tag":322,"props":15759,"children":15761},{"class":324,"line":15760},56,[15762,15767,15771,15775,15779,15783,15787],{"type":21,"tag":322,"props":15763,"children":15764},{"style":329},[15765],{"type":26,"value":15766},"test_preds ",{"type":21,"tag":322,"props":15768,"children":15769},{"style":3648},[15770],{"type":26,"value":3688},{"type":21,"tag":322,"props":15772,"children":15773},{"style":329},[15774],{"type":26,"value":15614},{"type":21,"tag":322,"props":15776,"children":15777},{"style":3648},[15778],{"type":26,"value":3941},{"type":21,"tag":322,"props":15780,"children":15781},{"style":329},[15782],{"type":26,"value":13179},{"type":21,"tag":322,"props":15784,"children":15785},{"style":3648},[15786],{"type":26,"value":3951},{"type":21,"tag":322,"props":15788,"children":15789},{"style":329},[15790],{"type":26,"value":15791}," X_test]\n",{"type":21,"tag":322,"props":15793,"children":15795},{"class":324,"line":15794},57,[15796,15800,15804,15808,15812,15817,15822,15826,15831,15835,15840,15844,15848,15852],{"type":21,"tag":322,"props":15797,"children":15798},{"style":348},[15799],{"type":26,"value":3763},{"type":21,"tag":322,"props":15801,"children":15802},{"style":329},[15803],{"type":26,"value":3768},{"type":21,"tag":322,"props":15805,"children":15806},{"style":3648},[15807],{"type":26,"value":3773},{"type":21,"tag":322,"props":15809,"children":15810},{"style":359},[15811],{"type":26,"value":3798},{"type":21,"tag":322,"props":15813,"children":15814},{"style":348},[15815],{"type":26,"value":15816},"\\n",{"type":21,"tag":322,"props":15818,"children":15819},{"style":359},[15820],{"type":26,"value":15821},"Test accuracy: ",{"type":21,"tag":322,"props":15823,"children":15824},{"style":348},[15825],{"type":26,"value":3783},{"type":21,"tag":322,"props":15827,"children":15828},{"style":329},[15829],{"type":26,"value":15830},"np.mean(np.array(test_preds) ",{"type":21,"tag":322,"props":15832,"children":15833},{"style":3648},[15834],{"type":26,"value":5359},{"type":21,"tag":322,"props":15836,"children":15837},{"style":329},[15838],{"type":26,"value":15839}," y_test)",{"type":21,"tag":322,"props":15841,"children":15842},{"style":3648},[15843],{"type":26,"value":15737},{"type":21,"tag":322,"props":15845,"children":15846},{"style":348},[15847],{"type":26,"value":3793},{"type":21,"tag":322,"props":15849,"children":15850},{"style":359},[15851],{"type":26,"value":3798},{"type":21,"tag":322,"props":15853,"children":15854},{"style":329},[15855],{"type":26,"value":3748},{"type":21,"tag":22,"props":15857,"children":15858},{},[15859,15861,15867],{"type":26,"value":15860},"Running it (PennyLane 0.45, ",{"type":21,"tag":79,"props":15862,"children":15864},{"className":15863},[],[15865],{"type":26,"value":15866},"default.qubit",{"type":26,"value":15868},") gives:",{"type":21,"tag":312,"props":15870,"children":15873},{"className":15871,"code":15872,"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",[15874],{"type":21,"tag":79,"props":15875,"children":15876},{"__ignoreMap":7},[15877,15885,15893,15901,15909,15916],{"type":21,"tag":322,"props":15878,"children":15879},{"class":324,"line":325},[15880],{"type":21,"tag":322,"props":15881,"children":15882},{},[15883],{"type":26,"value":15884},"Step  0 | cost 1.6158 | acc 0.336\n",{"type":21,"tag":322,"props":15886,"children":15887},{"class":324,"line":335},[15888],{"type":21,"tag":322,"props":15889,"children":15890},{},[15891],{"type":26,"value":15892},"Step 15 | cost 0.6775 | acc 0.764\n",{"type":21,"tag":322,"props":15894,"children":15895},{"class":324,"line":344},[15896],{"type":21,"tag":322,"props":15897,"children":15898},{},[15899],{"type":26,"value":15900},"Step 30 | cost 0.6466 | acc 0.779\n",{"type":21,"tag":322,"props":15902,"children":15903},{"class":324,"line":407},[15904],{"type":21,"tag":322,"props":15905,"children":15906},{},[15907],{"type":26,"value":15908},"Step 45 | cost 0.6372 | acc 0.850\n",{"type":21,"tag":322,"props":15910,"children":15911},{"class":324,"line":431},[15912],{"type":21,"tag":322,"props":15913,"children":15914},{"emptyLinePlaceholder":3672},[15915],{"type":26,"value":3675},{"type":21,"tag":322,"props":15917,"children":15918},{"class":324,"line":453},[15919],{"type":21,"tag":322,"props":15920,"children":15921},{},[15922],{"type":26,"value":15923},"Test accuracy: 0.817\n",{"type":21,"tag":22,"props":15925,"children":15926},{},[15927,15929,15934],{"type":26,"value":15928},"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":71,"props":15930,"children":15931},{},[15932],{"type":26,"value":15933},"0.983",{"type":26,"value":15935}," 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":15937,"children":15938},{},[15939,15941,15947,15949,15953],{"type":26,"value":15940},"Try scaling it. Push ",{"type":21,"tag":79,"props":15942,"children":15944},{"className":15943},[],[15945],{"type":26,"value":15946},"n_qubits",{"type":26,"value":15948}," up, widen the ansatz, and watch the gradients shrink. You reproduce the barren-plateau effect on a ",{"type":21,"tag":29,"props":15950,"children":15951},{"href":1014},[15952],{"type":26,"value":3734},{"type":26,"value":15954}," in an afternoon, which is a far better education than reading about it.",{"type":21,"tag":59,"props":15956,"children":15958},{"id":15957},"whats-genuinely-promising",[15959],{"type":26,"value":15960},"What's genuinely promising",{"type":21,"tag":22,"props":15962,"children":15963},{},[15964],{"type":26,"value":15965},"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":15967,"children":15968},{},[15969,15974,15976,15981,15983,15987],{"type":21,"tag":71,"props":15970,"children":15971},{},[15972],{"type":26,"value":15973},"Quantum data instead of classical data.",{"type":26,"value":15975}," The data-loading bottleneck exists because we're forcing classical numbers into quantum states. If your data is ",{"type":21,"tag":51,"props":15977,"children":15978},{},[15979],{"type":26,"value":15980},"already quantum",{"type":26,"value":15982}," (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":29,"props":15984,"children":15985},{"href":11954},[15986],{"type":26,"value":11957},{"type":26,"value":15988}," covers the distinction.",{"type":21,"tag":22,"props":15990,"children":15991},{},[15992,15997],{"type":21,"tag":71,"props":15993,"children":15994},{},[15995],{"type":26,"value":15996},"Quantum kernels for structured data.",{"type":26,"value":15998}," 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":16000,"children":16001},{},[16002,16007],{"type":21,"tag":71,"props":16003,"children":16004},{},[16005],{"type":26,"value":16006},"Noise filtering.",{"type":26,"value":16008}," 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":59,"props":16010,"children":16012},{"id":16011},"where-this-leaves-you",[16013],{"type":26,"value":16014},"Where this leaves you",{"type":21,"tag":22,"props":16016,"children":16017},{},[16018,16020,16024,16025,16029],{"type":26,"value":16019},"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":29,"props":16021,"children":16022},{"href":898},[16023],{"type":26,"value":888},{"type":26,"value":236},{"type":21,"tag":29,"props":16026,"children":16027},{"href":31},[16028],{"type":26,"value":14},{"type":26,"value":16030}," need, and those have clearer near-term paths. Learning QML makes you better at variational quantum computing generally.",{"type":21,"tag":22,"props":16032,"children":16033},{},[16034,16036,16041],{"type":26,"value":16035},"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":29,"props":16037,"children":16038},{"href":1284},[16039],{"type":26,"value":16040},"benchmarking hardware claims",{"type":26,"value":16042},": 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":16044,"children":16045},{},[16046,16051],{"type":21,"tag":29,"props":16047,"children":16048},{"href":9203},[16049],{"type":26,"value":16050},"Preskill's NISQ paper",{"type":26,"value":16052}," 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":16054,"children":16055},{},[16056,16058,16063,16065,16069],{"type":26,"value":16057},"The field is more interesting when you stop needing it to be revolutionary. Start with the ",{"type":21,"tag":29,"props":16059,"children":16060},{"href":14518},[16061],{"type":26,"value":16062},"PennyLane SDK guide",{"type":26,"value":16064},", keep the ",{"type":21,"tag":29,"props":16066,"children":16067},{"href":4413},[16068],{"type":26,"value":9776},{"type":26,"value":16070}," open, and run the experiments yourself. The evidence is more useful than the pitch.",{"type":21,"tag":703,"props":16072,"children":16073},{},[16074],{"type":26,"value":707},{"title":7,"searchDepth":335,"depth":335,"links":16076},[16077,16078,16079,16080,16081,16082,16083],{"id":14261,"depth":335,"text":14264},{"id":14339,"depth":335,"text":14342},{"id":14384,"depth":335,"text":14387},{"id":14430,"depth":335,"text":14433},{"id":14507,"depth":335,"text":14510},{"id":15957,"depth":335,"text":15960},{"id":16011,"depth":335,"text":16014},"content:blog:quantum-machine-learning-reality-check.md","blog\u002Fquantum-machine-learning-reality-check.md","blog\u002Fquantum-machine-learning-reality-check",{"_path":1467,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":16088,"description":16089,"date":3510,"author":11,"tags":16090,"readingTime":16,"body":16091,"_type":715,"_id":16463,"_source":717,"_file":16464,"_stem":16465,"_extension":720},"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.",[730,9339,1042],{"type":18,"children":16092,"toc":16454},[16093,16098,16103,16123,16128,16134,16139,16149,16180,16190,16195,16201,16206,16217,16222,16251,16269,16275,16286,16291,16303,16308,16314,16319,16324,16329,16340,16346,16351,16360,16377,16388,16394,16399,16404,16409,16414,16420,16425,16442],{"type":21,"tag":22,"props":16094,"children":16095},{},[16096],{"type":26,"value":16097},"There is a ceiling problem in quantum hardware that doesn't get discussed as often as qubit counts do.",{"type":21,"tag":22,"props":16099,"children":16100},{},[16101],{"type":26,"value":16102},"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":16104,"children":16105},{},[16106,16108,16114,16116,16121],{"type":26,"value":16107},"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":29,"props":16109,"children":16111},{"href":16110},"\u002Fglossary\u002Fdistributed-quantum-computing",[16112],{"type":26,"value":16113},"distributed quantum computing",{"type":26,"value":16115}," means, and it is why quantum networking has moved from a communications curiosity to a scaling strategy. When we ",{"type":21,"tag":29,"props":16117,"children":16118},{"href":1284},[16119],{"type":26,"value":16120},"read EO 14413 as a technical document",{"type":26,"value":16122},", 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":16124,"children":16125},{},[16126],{"type":26,"value":16127},"The catch is that connecting quantum computers is nothing like connecting classical ones.",{"type":21,"tag":59,"props":16129,"children":16131},{"id":16130},"three-different-things-people-call-quantum-networking",[16132],{"type":26,"value":16133},"Three different things people call \"quantum networking\"",{"type":21,"tag":22,"props":16135,"children":16136},{},[16137],{"type":26,"value":16138},"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":16140,"children":16141},{},[16142,16147],{"type":21,"tag":71,"props":16143,"children":16144},{},[16145],{"type":26,"value":16146},"(a) Quantum networking for distributed computation.",{"type":26,"value":16148}," 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":16150,"children":16151},{},[16152,16157,16159,16164,16166,16172,16174,16178],{"type":21,"tag":71,"props":16153,"children":16154},{},[16155],{"type":26,"value":16156},"(b) Quantum key distribution and the \"quantum internet.\"",{"type":26,"value":16158}," 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":51,"props":16160,"children":16161},{},[16162],{"type":26,"value":16163},"communications security",{"type":26,"value":16165}," technology, descending from ",{"type":21,"tag":29,"props":16167,"children":16169},{"href":16168},"\u002Fresearch\u002Fbennett-brassard-bb84-1984",[16170],{"type":26,"value":16171},"Bennett and Brassard's BB84 protocol",{"type":26,"value":16173},". 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":29,"props":16175,"children":16176},{"href":9828},[16177],{"type":26,"value":9811},{"type":26,"value":16179},", which is software you deploy today, not hardware that needs new fibre.",{"type":21,"tag":22,"props":16181,"children":16182},{},[16183,16188],{"type":21,"tag":71,"props":16184,"children":16185},{},[16186],{"type":26,"value":16187},"(c) Classical networking of quantum computers.",{"type":26,"value":16189}," 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":16191,"children":16192},{},[16193],{"type":26,"value":16194},"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":59,"props":16196,"children":16198},{"id":16197},"why-you-cannot-simply-amplify-a-qubit",[16199],{"type":26,"value":16200},"Why you cannot simply amplify a qubit",{"type":21,"tag":22,"props":16202,"children":16203},{},[16204],{"type":26,"value":16205},"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":16207,"children":16208},{},[16209,16211,16215],{"type":26,"value":16210},"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":29,"props":16212,"children":16213},{"href":9303},[16214],{"type":26,"value":9306},{"type":26,"value":16216}," 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":16218,"children":16219},{},[16220],{"type":26,"value":16221},"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":16223,"children":16224},{},[16225,16227,16234,16236,16241,16243,16249],{"type":26,"value":16226},"Quantum repeaters solve this by a genuinely different mechanism. Rather than relaying the qubit, they relay ",{"type":21,"tag":51,"props":16228,"children":16229},{},[16230],{"type":21,"tag":29,"props":16231,"children":16232},{"href":4297},[16233],{"type":26,"value":4300},{"type":26,"value":16235},". 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":71,"props":16237,"children":16238},{},[16239],{"type":26,"value":16240},"entanglement swapping",{"type":26,"value":16242},": at each intermediate node, jointly measure the two local halves of two adjacent pairs in the ",{"type":21,"tag":29,"props":16244,"children":16246},{"href":16245},"\u002Fglossary\u002Fbell-state",[16247],{"type":26,"value":16248},"Bell basis",{"type":26,"value":16250},". 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":16252,"children":16253},{},[16254,16256,16260,16262,16267],{"type":26,"value":16255},"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":29,"props":16257,"children":16258},{"href":9463},[16259],{"type":26,"value":9466},{"type":26,"value":16261}," from degrading across hops. ",{"type":21,"tag":29,"props":16263,"children":16264},{"href":9379},[16265],{"type":26,"value":16266},"Decoherence",{"type":26,"value":16268}," 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":59,"props":16270,"children":16272},{"id":16271},"teleportation-is-the-transport-primitive",[16273],{"type":26,"value":16274},"Teleportation is the transport primitive",{"type":21,"tag":22,"props":16276,"children":16277},{},[16278,16280,16284],{"type":26,"value":16279},"Once two nodes share an entangled pair, moving an actual qubit between them is a solved protocol: ",{"type":21,"tag":29,"props":16281,"children":16282},{"href":4289},[16283],{"type":26,"value":4292},{"type":26,"value":16285},", from Bennett and colleagues in 1993.",{"type":21,"tag":22,"props":16287,"children":16288},{},[16289],{"type":26,"value":16290},"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":16292,"children":16293},{},[16294,16296,16301],{"type":26,"value":16295},"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":71,"props":16297,"children":16298},{},[16299],{"type":26,"value":16300},"the classical channel is mandatory",{"type":26,"value":16302},". 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":16304,"children":16305},{},[16306],{"type":26,"value":16307},"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":59,"props":16309,"children":16311},{"id":16310},"the-interconnect-is-the-bottleneck",[16312],{"type":26,"value":16313},"The interconnect is the bottleneck",{"type":21,"tag":22,"props":16315,"children":16316},{},[16317],{"type":26,"value":16318},"Now the engineering reality of stitching QPUs together.",{"type":21,"tag":22,"props":16320,"children":16321},{},[16322],{"type":26,"value":16323},"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":16325,"children":16326},{},[16327],{"type":26,"value":16328},"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":16330,"children":16331},{},[16332,16334,16338],{"type":26,"value":16333},"There is a genuinely appealing upside, though, and it's the reason serious people pursue this: ",{"type":21,"tag":29,"props":16335,"children":16336},{"href":753},[16337],{"type":26,"value":1642},{"type":26,"value":16339}," 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":59,"props":16341,"children":16343},{"id":16342},"modality-matters-here-more-than-usual",[16344],{"type":26,"value":16345},"Modality matters here more than usual",{"type":21,"tag":22,"props":16347,"children":16348},{},[16349],{"type":26,"value":16350},"The photonic interface is where hardware platforms diverge sharply.",{"type":21,"tag":22,"props":16352,"children":16353},{},[16354,16358],{"type":21,"tag":71,"props":16355,"children":16356},{},[16357],{"type":26,"value":9607},{"type":26,"value":16359}," 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":16361,"children":16362},{},[16363,16368,16370,16375],{"type":21,"tag":71,"props":16364,"children":16365},{},[16366],{"type":26,"value":16367},"Superconducting qubits",{"type":26,"value":16369}," 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":71,"props":16371,"children":16372},{},[16373],{"type":26,"value":16374},"microwave-to-optical transduction",{"type":26,"value":16376},": 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":16378,"children":16379},{},[16380,16382,16386],{"type":26,"value":16381},"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":29,"props":16383,"children":16384},{"href":817},[16385],{"type":26,"value":9624},{"type":26,"value":16387}," covers the broader trade-offs.",{"type":21,"tag":59,"props":16389,"children":16391},{"id":16390},"where-this-stands",[16392],{"type":26,"value":16393},"Where this stands",{"type":21,"tag":22,"props":16395,"children":16396},{},[16397],{"type":26,"value":16398},"Plainly: early.",{"type":21,"tag":22,"props":16400,"children":16401},{},[16402],{"type":26,"value":16403},"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":16405,"children":16406},{},[16407],{"type":26,"value":16408},"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":16410,"children":16411},{},[16412],{"type":26,"value":16413},"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":59,"props":16415,"children":16417},{"id":16416},"the-takeaway",[16418],{"type":26,"value":16419},"The takeaway",{"type":21,"tag":22,"props":16421,"children":16422},{},[16423],{"type":26,"value":16424},"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":16426,"children":16427},{},[16428,16430,16435,16436,16440],{"type":26,"value":16429},"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":51,"props":16431,"children":16432},{},[16433],{"type":26,"value":16434},"rate",{"type":26,"value":236},{"type":21,"tag":51,"props":16437,"children":16438},{},[16439],{"type":26,"value":9466},{"type":26,"value":16441}," 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":16443,"children":16444},{},[16445,16447,16452],{"type":26,"value":16446},"Answers to those tend to be absent from the announcements, which is itself informative. The ",{"type":21,"tag":29,"props":16448,"children":16450},{"href":16449},"\u002Fglossary\u002Fquantum-network",[16451],{"type":26,"value":9776},{"type":26,"value":16453}," covers the vocabulary if you want to read the primary sources yourself.",{"title":7,"searchDepth":335,"depth":335,"links":16455},[16456,16457,16458,16459,16460,16461,16462],{"id":16130,"depth":335,"text":16133},{"id":16197,"depth":335,"text":16200},{"id":16271,"depth":335,"text":16274},{"id":16310,"depth":335,"text":16313},{"id":16342,"depth":335,"text":16345},{"id":16390,"depth":335,"text":16393},{"id":16416,"depth":335,"text":16419},"content:blog:quantum-networking-distributed-computing.md","blog\u002Fquantum-networking-distributed-computing.md","blog\u002Fquantum-networking-distributed-computing",{"_path":16467,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":16468,"description":16469,"date":3510,"author":11,"tags":16470,"readingTime":3904,"body":16471,"_type":715,"_id":18565,"_source":717,"_file":18566,"_stem":18567,"_extension":720},"\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.",[7598,1972,3312],{"type":18,"children":16472,"toc":18553},[16473,16491,16509,16514,16522,16528,16533,16541,16546,16557,16596,16601,16613,16619,16624,16635,16643,16667,16675,16685,16690,16698,16718,16724,16735,16740,16750,16755,16783,16787,16823,17773,17777,17785,17795,17803,17808,17815,17847,17860,17868,17888,17893,17899,17904,18148,18152,18160,18172,18184,18192,18204,18216,18222,18245,18262,18290,18388,18412,18418,18429,18440,18482,18487,18492,18549],{"type":21,"tag":22,"props":16474,"children":16475},{},[16476,16478,16483,16485,16489],{"type":26,"value":16477},"Our ",{"type":21,"tag":29,"props":16479,"children":16480},{"href":11974},[16481],{"type":26,"value":16482},"QFT tutorial",{"type":26,"value":16484}," ended on a deliberately unsatisfying note: the ",{"type":21,"tag":29,"props":16486,"children":16487},{"href":11986},[16488],{"type":26,"value":11989},{"type":26,"value":16490}," 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":16492,"children":16493},{},[16494,16496,16500,16502,16507],{"type":26,"value":16495},"This post is the sequel that resolves that. Quantum phase estimation (QPE) is the machine that turns the ",{"type":21,"tag":51,"props":16497,"children":16498},{},[16499],{"type":26,"value":7429},{"type":26,"value":16501}," QFT into a readout primitive. It's the reason the QFT matters, and it is the algorithm sitting underneath ",{"type":21,"tag":29,"props":16503,"children":16504},{"href":10077},[16505],{"type":26,"value":16506},"Shor's",{"type":26,"value":16508},": Shor's is QPE applied to modular exponentiation, plus number theory.",{"type":21,"tag":22,"props":16510,"children":16511},{},[16512],{"type":26,"value":16513},"Read the QFT post first if you haven't. This one assumes the construction and won't rebuild it.",{"type":21,"tag":22,"props":16515,"children":16516},{},[16517],{"type":21,"tag":71,"props":16518,"children":16519},{},[16520],{"type":26,"value":16521},"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":59,"props":16523,"children":16525},{"id":16524},"the-problem-qpe-solves",[16526],{"type":26,"value":16527},"The problem QPE solves",{"type":21,"tag":22,"props":16529,"children":16530},{},[16531],{"type":26,"value":16532},"Given a unitary U and an eigenstate |ψ⟩ satisfying",{"type":21,"tag":312,"props":16534,"children":16536},{"code":16535},"U|ψ⟩ = e^{2πiθ} |ψ⟩\n",[16537],{"type":21,"tag":79,"props":16538,"children":16539},{"__ignoreMap":7},[16540],{"type":26,"value":16535},{"type":21,"tag":22,"props":16542,"children":16543},{},[16544],{"type":26,"value":16545},"estimate θ ∈ [0, 1).",{"type":21,"tag":22,"props":16547,"children":16548},{},[16549,16551,16556],{"type":26,"value":16550},"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":51,"props":16552,"children":16553},{},[16554],{"type":26,"value":16555},"enormous numbers of questions are secretly eigenvalue questions",{"type":26,"value":12866},{"type":21,"tag":3566,"props":16558,"children":16559},{},[16560,16570,16580],{"type":21,"tag":3570,"props":16561,"children":16562},{},[16563,16568],{"type":21,"tag":71,"props":16564,"children":16565},{},[16566],{"type":26,"value":16567},"What is a molecule's ground-state energy?",{"type":26,"value":16569}," Build U = e^{-iHt} for the molecular Hamiltonian H. Its eigenphases are the energy levels. Estimating θ estimates the energy.",{"type":21,"tag":3570,"props":16571,"children":16572},{},[16573,16578],{"type":21,"tag":71,"props":16574,"children":16575},{},[16576],{"type":26,"value":16577},"What is the order of a mod N?",{"type":26,"value":16579}," 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":3570,"props":16581,"children":16582},{},[16583,16588,16590,16595],{"type":21,"tag":71,"props":16584,"children":16585},{},[16586],{"type":26,"value":16587},"How many solutions does an oracle mark?",{"type":26,"value":16589}," 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":29,"props":16591,"children":16592},{"href":7594},[16593],{"type":26,"value":16594},"Grover tutorial",{"type":26,"value":534},{"type":21,"tag":22,"props":16597,"children":16598},{},[16599],{"type":26,"value":16600},"One primitive, three flagship algorithms. That's why \"estimate an eigenphase\" is worth a dedicated circuit.",{"type":21,"tag":22,"props":16602,"children":16603},{},[16604,16606,16611],{"type":26,"value":16605},"Note the precondition, which people gloss over: you need to ",{"type":21,"tag":51,"props":16607,"children":16608},{},[16609],{"type":26,"value":16610},"have",{"type":26,"value":16612}," 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":59,"props":16614,"children":16616},{"id":16615},"phase-kickback-the-key-insight",[16617],{"type":26,"value":16618},"Phase kickback: the key insight",{"type":21,"tag":22,"props":16620,"children":16621},{},[16622],{"type":26,"value":16623},"Here's the thing that makes QPE work, and it's worth slowing down for.",{"type":21,"tag":22,"props":16625,"children":16626},{},[16627,16629,16633],{"type":26,"value":16628},"A controlled-U applied to a control ",{"type":21,"tag":29,"props":16630,"children":16631},{"href":1804},[16632],{"type":26,"value":3229},{"type":26,"value":16634}," in state |1⟩ and a target in the eigenstate |ψ⟩ gives:",{"type":21,"tag":312,"props":16636,"children":16638},{"code":16637},"CU |1⟩|ψ⟩ = |1⟩ ⊗ U|ψ⟩ = |1⟩ ⊗ e^{2πiθ}|ψ⟩ = e^{2πiθ} |1⟩|ψ⟩\n",[16639],{"type":21,"tag":79,"props":16640,"children":16641},{"__ignoreMap":7},[16642],{"type":26,"value":16637},{"type":21,"tag":22,"props":16644,"children":16645},{},[16646,16648,16653,16655,16659,16661,16665],{"type":26,"value":16647},"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":51,"props":16649,"children":16650},{},[16651],{"type":26,"value":16652},"relative",{"type":26,"value":16654}," phase on the control qubit. Put the control in ",{"type":21,"tag":29,"props":16656,"children":16657},{"href":9303},[16658],{"type":26,"value":9306},{"type":26,"value":16660}," with a ",{"type":21,"tag":29,"props":16662,"children":16663},{"href":7705},[16664],{"type":26,"value":12155},{"type":26,"value":16666}," and you get:",{"type":21,"tag":312,"props":16668,"children":16670},{"code":16669},"CU (|0⟩+|1⟩)\u002F√2 ⊗ |ψ⟩ = (|0⟩ + e^{2πiθ}|1⟩)\u002F√2 ⊗ |ψ⟩\n",[16671],{"type":21,"tag":79,"props":16672,"children":16673},{"__ignoreMap":7},[16674],{"type":26,"value":16669},{"type":21,"tag":22,"props":16676,"children":16677},{},[16678,16683],{"type":21,"tag":71,"props":16679,"children":16680},{},[16681],{"type":26,"value":16682},"The phase kicked back from the target onto the control.",{"type":26,"value":16684}," 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":16686,"children":16687},{},[16688],{"type":26,"value":16689},"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":312,"props":16691,"children":16693},{"code":16692},"(1\u002F√N) Σ_{x=0}^{N-1} e^{2πi·x·θ} |x⟩\n",[16694],{"type":21,"tag":79,"props":16695,"children":16696},{"__ignoreMap":7},[16697],{"type":26,"value":16692},{"type":21,"tag":22,"props":16699,"children":16700},{},[16701,16703,16709,16711,16716],{"type":26,"value":16702},"Stare at that and compare it to the QFT formula from the previous post: ",{"type":21,"tag":79,"props":16704,"children":16706},{"className":16705},[],[16707],{"type":26,"value":16708},"QFT|j⟩ = (1\u002F√N) Σ_x e^{2πi·jx\u002FN}|x⟩",{"type":26,"value":16710},". They are the ",{"type":21,"tag":51,"props":16712,"children":16713},{},[16714],{"type":26,"value":16715},"same state",{"type":26,"value":16717},", with j\u002FN = θ. The counting register is holding the QFT of the number j = Nθ.",{"type":21,"tag":59,"props":16719,"children":16721},{"id":16720},"why-the-inverse-qft",[16722],{"type":26,"value":16723},"Why the inverse QFT",{"type":21,"tag":22,"props":16725,"children":16726},{},[16727,16729,16733],{"type":26,"value":16728},"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":29,"props":16730,"children":16731},{"href":7870},[16732],{"type":26,"value":11549},{"type":26,"value":16734},". Measure now and you get uniform noise.",{"type":21,"tag":22,"props":16736,"children":16737},{},[16738],{"type":26,"value":16739},"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":16741,"children":16742},{},[16743,16745,16749],{"type":26,"value":16744},"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":29,"props":16746,"children":16747},{"href":8497},[16748],{"type":26,"value":8500},{"type":26,"value":534},{"type":21,"tag":22,"props":16751,"children":16752},{},[16753],{"type":26,"value":16754},"The full recipe:",{"type":21,"tag":7457,"props":16756,"children":16757},{},[16758,16763,16768,16773,16778],{"type":21,"tag":3570,"props":16759,"children":16760},{},[16761],{"type":26,"value":16762},"n counting qubits + enough qubits to hold |ψ⟩.",{"type":21,"tag":3570,"props":16764,"children":16765},{},[16766],{"type":26,"value":16767},"Hadamard the counting register.",{"type":21,"tag":3570,"props":16769,"children":16770},{},[16771],{"type":26,"value":16772},"For k = 0…n−1: apply controlled-U^(2^k) from counting qubit k onto the eigenstate register.",{"type":21,"tag":3570,"props":16774,"children":16775},{},[16776],{"type":26,"value":16777},"Apply the inverse QFT to the counting register.",{"type":21,"tag":3570,"props":16779,"children":16780},{},[16781],{"type":26,"value":16782},"Measure the counting register. The result, read as a binary fraction, is θ.",{"type":21,"tag":59,"props":16784,"children":16785},{"id":12214},[16786],{"type":26,"value":12217},{"type":21,"tag":22,"props":16788,"children":16789},{},[16790,16792,16798,16800,16806,16808,16813,16815,16821],{"type":26,"value":16791},"Simplest possible U with a known answer: the phase gate ",{"type":21,"tag":79,"props":16793,"children":16795},{"className":16794},[],[16796],{"type":26,"value":16797},"P(λ)",{"type":26,"value":16799},", 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":79,"props":16801,"children":16803},{"className":16802},[],[16804],{"type":26,"value":16805},"qft",{"type":26,"value":16807}," function from the ",{"type":21,"tag":29,"props":16809,"children":16810},{"href":11974},[16811],{"type":26,"value":16812},"previous post",{"type":26,"value":16814}," and simply call ",{"type":21,"tag":79,"props":16816,"children":16818},{"className":16817},[],[16819],{"type":26,"value":16820},".inverse()",{"type":26,"value":16822}," on it.",{"type":21,"tag":312,"props":16824,"children":16826},{"code":16825,"language":3638,"meta":7,"className":3636,"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",[16827],{"type":21,"tag":79,"props":16828,"children":16829},{"__ignoreMap":7},[16830,16849,16868,16887,16894,16901,16916,16939,16950,16965,16972,16995,17026,17034,17045,17052,17059,17074,17105,17112,17153,17180,17191,17198,17205,17222,17230,17259,17280,17293,17300,17329,17376,17383,17424,17448,17459,17466,17473,17488,17527,17558,17565,17619,17665],{"type":21,"tag":322,"props":16831,"children":16832},{"class":324,"line":325},[16833,16837,16841,16845],{"type":21,"tag":322,"props":16834,"children":16835},{"style":3648},[16836],{"type":26,"value":3661},{"type":21,"tag":322,"props":16838,"children":16839},{"style":329},[16840],{"type":26,"value":4723},{"type":21,"tag":322,"props":16842,"children":16843},{"style":3648},[16844],{"type":26,"value":4728},{"type":21,"tag":322,"props":16846,"children":16847},{"style":329},[16848],{"type":26,"value":4733},{"type":21,"tag":322,"props":16850,"children":16851},{"class":324,"line":335},[16852,16856,16860,16864],{"type":21,"tag":322,"props":16853,"children":16854},{"style":3648},[16855],{"type":26,"value":3651},{"type":21,"tag":322,"props":16857,"children":16858},{"style":329},[16859],{"type":26,"value":4745},{"type":21,"tag":322,"props":16861,"children":16862},{"style":3648},[16863],{"type":26,"value":3661},{"type":21,"tag":322,"props":16865,"children":16866},{"style":329},[16867],{"type":26,"value":4754},{"type":21,"tag":322,"props":16869,"children":16870},{"class":324,"line":344},[16871,16875,16879,16883],{"type":21,"tag":322,"props":16872,"children":16873},{"style":3648},[16874],{"type":26,"value":3651},{"type":21,"tag":322,"props":16876,"children":16877},{"style":329},[16878],{"type":26,"value":4766},{"type":21,"tag":322,"props":16880,"children":16881},{"style":3648},[16882],{"type":26,"value":3661},{"type":21,"tag":322,"props":16884,"children":16885},{"style":329},[16886],{"type":26,"value":4775},{"type":21,"tag":322,"props":16888,"children":16889},{"class":324,"line":407},[16890],{"type":21,"tag":322,"props":16891,"children":16892},{"emptyLinePlaceholder":3672},[16893],{"type":26,"value":3675},{"type":21,"tag":322,"props":16895,"children":16896},{"class":324,"line":431},[16897],{"type":21,"tag":322,"props":16898,"children":16899},{"emptyLinePlaceholder":3672},[16900],{"type":26,"value":3675},{"type":21,"tag":322,"props":16902,"children":16903},{"class":324,"line":453},[16904,16908,16912],{"type":21,"tag":322,"props":16905,"children":16906},{"style":3648},[16907],{"type":26,"value":4811},{"type":21,"tag":322,"props":16909,"children":16910},{"style":4814},[16911],{"type":26,"value":12374},{"type":21,"tag":322,"props":16913,"children":16914},{"style":329},[16915],{"type":26,"value":12379},{"type":21,"tag":322,"props":16917,"children":16918},{"class":324,"line":474},[16919,16923,16927,16931,16935],{"type":21,"tag":322,"props":16920,"children":16921},{"style":3648},[16922],{"type":26,"value":12395},{"type":21,"tag":322,"props":16924,"children":16925},{"style":329},[16926],{"type":26,"value":12400},{"type":21,"tag":322,"props":16928,"children":16929},{"style":3648},[16930],{"type":26,"value":5359},{"type":21,"tag":322,"props":16932,"children":16933},{"style":348},[16934],{"type":26,"value":12409},{"type":21,"tag":322,"props":16936,"children":16937},{"style":329},[16938],{"type":26,"value":5369},{"type":21,"tag":322,"props":16940,"children":16941},{"class":324,"line":496},[16942,16946],{"type":21,"tag":322,"props":16943,"children":16944},{"style":3648},[16945],{"type":26,"value":12421},{"type":21,"tag":322,"props":16947,"children":16948},{"style":329},[16949],{"type":26,"value":12426},{"type":21,"tag":322,"props":16951,"children":16952},{"class":324,"line":16},[16953,16957,16961],{"type":21,"tag":322,"props":16954,"children":16955},{"style":329},[16956],{"type":26,"value":12434},{"type":21,"tag":322,"props":16958,"children":16959},{"style":3648},[16960],{"type":26,"value":12439},{"type":21,"tag":322,"props":16962,"children":16963},{"style":348},[16964],{"type":26,"value":13242},{"type":21,"tag":322,"props":16966,"children":16967},{"class":324,"line":3894},[16968],{"type":21,"tag":322,"props":16969,"children":16970},{"style":329},[16971],{"type":26,"value":12456},{"type":21,"tag":322,"props":16973,"children":16974},{"class":324,"line":3904},[16975,16979,16983,16987,16991],{"type":21,"tag":322,"props":16976,"children":16977},{"style":3648},[16978],{"type":26,"value":5190},{"type":21,"tag":322,"props":16980,"children":16981},{"style":329},[16982],{"type":26,"value":12468},{"type":21,"tag":322,"props":16984,"children":16985},{"style":3648},[16986],{"type":26,"value":3951},{"type":21,"tag":322,"props":16988,"children":16989},{"style":348},[16990],{"type":26,"value":3956},{"type":21,"tag":322,"props":16992,"children":16993},{"style":329},[16994],{"type":26,"value":8291},{"type":21,"tag":322,"props":16996,"children":16997},{"class":324,"line":1043},[16998,17002,17006,17010,17014,17018,17022],{"type":21,"tag":322,"props":16999,"children":17000},{"style":329},[17001],{"type":26,"value":12496},{"type":21,"tag":322,"props":17003,"children":17004},{"style":3648},[17005],{"type":26,"value":174},{"type":21,"tag":322,"props":17007,"children":17008},{"style":348},[17009],{"type":26,"value":6834},{"type":21,"tag":322,"props":17011,"children":17012},{"style":3648},[17013],{"type":26,"value":8759},{"type":21,"tag":322,"props":17015,"children":17016},{"style":329},[17017],{"type":26,"value":12513},{"type":21,"tag":322,"props":17019,"children":17020},{"style":3648},[17021],{"type":26,"value":5298},{"type":21,"tag":322,"props":17023,"children":17024},{"style":329},[17025],{"type":26,"value":12522},{"type":21,"tag":322,"props":17027,"children":17028},{"class":324,"line":3964},[17029],{"type":21,"tag":322,"props":17030,"children":17031},{"style":329},[17032],{"type":26,"value":17033},"    qft_rotations(circuit, n)\n",{"type":21,"tag":322,"props":17035,"children":17036},{"class":324,"line":4012},[17037,17041],{"type":21,"tag":322,"props":17038,"children":17039},{"style":3648},[17040],{"type":26,"value":5036},{"type":21,"tag":322,"props":17042,"children":17043},{"style":329},[17044],{"type":26,"value":12426},{"type":21,"tag":322,"props":17046,"children":17047},{"class":324,"line":4054},[17048],{"type":21,"tag":322,"props":17049,"children":17050},{"emptyLinePlaceholder":3672},[17051],{"type":26,"value":3675},{"type":21,"tag":322,"props":17053,"children":17054},{"class":324,"line":5081},[17055],{"type":21,"tag":322,"props":17056,"children":17057},{"emptyLinePlaceholder":3672},[17058],{"type":26,"value":3675},{"type":21,"tag":322,"props":17060,"children":17061},{"class":324,"line":5100},[17062,17066,17070],{"type":21,"tag":322,"props":17063,"children":17064},{"style":3648},[17065],{"type":26,"value":4811},{"type":21,"tag":322,"props":17067,"children":17068},{"style":4814},[17069],{"type":26,"value":12684},{"type":21,"tag":322,"props":17071,"children":17072},{"style":329},[17073],{"type":26,"value":8291},{"type":21,"tag":322,"props":17075,"children":17076},{"class":324,"line":5108},[17077,17081,17085,17089,17093,17097,17101],{"type":21,"tag":322,"props":17078,"children":17079},{"style":329},[17080],{"type":26,"value":7947},{"type":21,"tag":322,"props":17082,"children":17083},{"style":3648},[17084],{"type":26,"value":3688},{"type":21,"tag":322,"props":17086,"children":17087},{"style":329},[17088],{"type":26,"value":7956},{"type":21,"tag":322,"props":17090,"children":17091},{"style":3713},[17092],{"type":26,"value":7961},{"type":21,"tag":322,"props":17094,"children":17095},{"style":3648},[17096],{"type":26,"value":3688},{"type":21,"tag":322,"props":17098,"children":17099},{"style":359},[17100],{"type":26,"value":12716},{"type":21,"tag":322,"props":17102,"children":17103},{"style":329},[17104],{"type":26,"value":3748},{"type":21,"tag":322,"props":17106,"children":17107},{"class":324,"line":5139},[17108],{"type":21,"tag":322,"props":17109,"children":17110},{"style":329},[17111],{"type":26,"value":12728},{"type":21,"tag":322,"props":17113,"children":17114},{"class":324,"line":5184},[17115,17119,17123,17127,17131,17135,17139,17143,17148],{"type":21,"tag":322,"props":17116,"children":17117},{"style":3648},[17118],{"type":26,"value":5190},{"type":21,"tag":322,"props":17120,"children":17121},{"style":329},[17122],{"type":26,"value":3946},{"type":21,"tag":322,"props":17124,"children":17125},{"style":3648},[17126],{"type":26,"value":3951},{"type":21,"tag":322,"props":17128,"children":17129},{"style":348},[17130],{"type":26,"value":3956},{"type":21,"tag":322,"props":17132,"children":17133},{"style":329},[17134],{"type":26,"value":8119},{"type":21,"tag":322,"props":17136,"children":17137},{"style":3648},[17138],{"type":26,"value":6558},{"type":21,"tag":322,"props":17140,"children":17141},{"style":348},[17142],{"type":26,"value":6834},{"type":21,"tag":322,"props":17144,"children":17145},{"style":329},[17146],{"type":26,"value":17147},"):          ",{"type":21,"tag":322,"props":17149,"children":17150},{"style":3898},[17151],{"type":26,"value":17152},"# the swaps matter here, see below\n",{"type":21,"tag":322,"props":17154,"children":17155},{"class":324,"line":5223},[17156,17160,17164,17168,17172,17176],{"type":21,"tag":322,"props":17157,"children":17158},{"style":329},[17159],{"type":26,"value":14020},{"type":21,"tag":322,"props":17161,"children":17162},{"style":3648},[17163],{"type":26,"value":5298},{"type":21,"tag":322,"props":17165,"children":17166},{"style":329},[17167],{"type":26,"value":3946},{"type":21,"tag":322,"props":17169,"children":17170},{"style":3648},[17171],{"type":26,"value":5298},{"type":21,"tag":322,"props":17173,"children":17174},{"style":348},[17175],{"type":26,"value":6549},{"type":21,"tag":322,"props":17177,"children":17178},{"style":329},[17179],{"type":26,"value":3748},{"type":21,"tag":322,"props":17181,"children":17182},{"class":324,"line":5241},[17183,17187],{"type":21,"tag":322,"props":17184,"children":17185},{"style":3648},[17186],{"type":26,"value":5036},{"type":21,"tag":322,"props":17188,"children":17189},{"style":329},[17190],{"type":26,"value":8228},{"type":21,"tag":322,"props":17192,"children":17193},{"class":324,"line":5315},[17194],{"type":21,"tag":322,"props":17195,"children":17196},{"emptyLinePlaceholder":3672},[17197],{"type":26,"value":3675},{"type":21,"tag":322,"props":17199,"children":17200},{"class":324,"line":5343},[17201],{"type":21,"tag":322,"props":17202,"children":17203},{"emptyLinePlaceholder":3672},[17204],{"type":26,"value":3675},{"type":21,"tag":322,"props":17206,"children":17207},{"class":324,"line":5372},[17208,17212,17217],{"type":21,"tag":322,"props":17209,"children":17210},{"style":3648},[17211],{"type":26,"value":4811},{"type":21,"tag":322,"props":17213,"children":17214},{"style":4814},[17215],{"type":26,"value":17216}," qpe_phase_gate",{"type":21,"tag":322,"props":17218,"children":17219},{"style":329},[17220],{"type":26,"value":17221},"(n_count, theta):\n",{"type":21,"tag":322,"props":17223,"children":17224},{"class":324,"line":5381},[17225],{"type":21,"tag":322,"props":17226,"children":17227},{"style":359},[17228],{"type":26,"value":17229},"    \"\"\"QPE for U = P(2*pi*theta), whose eigenstate is |1>.\"\"\"\n",{"type":21,"tag":322,"props":17231,"children":17232},{"class":324,"line":5409},[17233,17237,17241,17246,17250,17254],{"type":21,"tag":322,"props":17234,"children":17235},{"style":329},[17236],{"type":26,"value":7947},{"type":21,"tag":322,"props":17238,"children":17239},{"style":3648},[17240],{"type":26,"value":3688},{"type":21,"tag":322,"props":17242,"children":17243},{"style":329},[17244],{"type":26,"value":17245}," QuantumCircuit(n_count ",{"type":21,"tag":322,"props":17247,"children":17248},{"style":3648},[17249],{"type":26,"value":6978},{"type":21,"tag":322,"props":17251,"children":17252},{"style":348},[17253],{"type":26,"value":6549},{"type":21,"tag":322,"props":17255,"children":17256},{"style":329},[17257],{"type":26,"value":17258},", n_count)\n",{"type":21,"tag":322,"props":17260,"children":17261},{"class":324,"line":5440},[17262,17266,17270,17275],{"type":21,"tag":322,"props":17263,"children":17264},{"style":329},[17265],{"type":26,"value":8339},{"type":21,"tag":322,"props":17267,"children":17268},{"style":348},[17269],{"type":26,"value":5392},{"type":21,"tag":322,"props":17271,"children":17272},{"style":329},[17273],{"type":26,"value":17274},"(n_count))             ",{"type":21,"tag":322,"props":17276,"children":17277},{"style":3898},[17278],{"type":26,"value":17279},"# counting register in superposition\n",{"type":21,"tag":322,"props":17281,"children":17282},{"class":324,"line":5462},[17283,17288],{"type":21,"tag":322,"props":17284,"children":17285},{"style":329},[17286],{"type":26,"value":17287},"    qc.x(n_count)                    ",{"type":21,"tag":322,"props":17289,"children":17290},{"style":3898},[17291],{"type":26,"value":17292},"# prepare the eigenstate |1>\n",{"type":21,"tag":322,"props":17294,"children":17295},{"class":324,"line":5508},[17296],{"type":21,"tag":322,"props":17297,"children":17298},{"emptyLinePlaceholder":3672},[17299],{"type":26,"value":3675},{"type":21,"tag":322,"props":17301,"children":17302},{"class":324,"line":5521},[17303,17307,17311,17315,17319,17324],{"type":21,"tag":322,"props":17304,"children":17305},{"style":3648},[17306],{"type":26,"value":5190},{"type":21,"tag":322,"props":17308,"children":17309},{"style":329},[17310],{"type":26,"value":13942},{"type":21,"tag":322,"props":17312,"children":17313},{"style":3648},[17314],{"type":26,"value":3951},{"type":21,"tag":322,"props":17316,"children":17317},{"style":348},[17318],{"type":26,"value":3956},{"type":21,"tag":322,"props":17320,"children":17321},{"style":329},[17322],{"type":26,"value":17323},"(n_count):         ",{"type":21,"tag":322,"props":17325,"children":17326},{"style":3898},[17327],{"type":26,"value":17328},"# controlled-U^(2^k) = CP(2*pi*theta*2^k)\n",{"type":21,"tag":322,"props":17330,"children":17331},{"class":324,"line":5529},[17332,17337,17341,17345,17350,17354,17359,17363,17367,17371],{"type":21,"tag":322,"props":17333,"children":17334},{"style":329},[17335],{"type":26,"value":17336},"        qc.cp(",{"type":21,"tag":322,"props":17338,"children":17339},{"style":348},[17340],{"type":26,"value":423},{"type":21,"tag":322,"props":17342,"children":17343},{"style":3648},[17344],{"type":26,"value":8795},{"type":21,"tag":322,"props":17346,"children":17347},{"style":329},[17348],{"type":26,"value":17349}," np.pi ",{"type":21,"tag":322,"props":17351,"children":17352},{"style":3648},[17353],{"type":26,"value":6843},{"type":21,"tag":322,"props":17355,"children":17356},{"style":329},[17357],{"type":26,"value":17358}," theta ",{"type":21,"tag":322,"props":17360,"children":17361},{"style":3648},[17362],{"type":26,"value":6843},{"type":21,"tag":322,"props":17364,"children":17365},{"style":348},[17366],{"type":26,"value":6834},{"type":21,"tag":322,"props":17368,"children":17369},{"style":3648},[17370],{"type":26,"value":8759},{"type":21,"tag":322,"props":17372,"children":17373},{"style":329},[17374],{"type":26,"value":17375}," k, k, n_count)\n",{"type":21,"tag":322,"props":17377,"children":17378},{"class":324,"line":5547},[17379],{"type":21,"tag":322,"props":17380,"children":17381},{"emptyLinePlaceholder":3672},[17382],{"type":26,"value":3675},{"type":21,"tag":322,"props":17384,"children":17385},{"class":324,"line":5565},[17386,17391,17395,17399,17403,17408,17412,17416,17420],{"type":21,"tag":322,"props":17387,"children":17388},{"style":329},[17389],{"type":26,"value":17390},"    qc.compose(qft(n_count).inverse(), ",{"type":21,"tag":322,"props":17392,"children":17393},{"style":3713},[17394],{"type":26,"value":1807},{"type":21,"tag":322,"props":17396,"children":17397},{"style":3648},[17398],{"type":26,"value":3688},{"type":21,"tag":322,"props":17400,"children":17401},{"style":348},[17402],{"type":26,"value":5392},{"type":21,"tag":322,"props":17404,"children":17405},{"style":329},[17406],{"type":26,"value":17407},"(n_count), ",{"type":21,"tag":322,"props":17409,"children":17410},{"style":3713},[17411],{"type":26,"value":8649},{"type":21,"tag":322,"props":17413,"children":17414},{"style":3648},[17415],{"type":26,"value":3688},{"type":21,"tag":322,"props":17417,"children":17418},{"style":348},[17419],{"type":26,"value":3725},{"type":21,"tag":322,"props":17421,"children":17422},{"style":329},[17423],{"type":26,"value":3748},{"type":21,"tag":322,"props":17425,"children":17426},{"class":324,"line":5573},[17427,17431,17435,17439,17443],{"type":21,"tag":322,"props":17428,"children":17429},{"style":329},[17430],{"type":26,"value":8704},{"type":21,"tag":322,"props":17432,"children":17433},{"style":348},[17434],{"type":26,"value":5392},{"type":21,"tag":322,"props":17436,"children":17437},{"style":329},[17438],{"type":26,"value":17407},{"type":21,"tag":322,"props":17440,"children":17441},{"style":348},[17442],{"type":26,"value":5392},{"type":21,"tag":322,"props":17444,"children":17445},{"style":329},[17446],{"type":26,"value":17447},"(n_count))\n",{"type":21,"tag":322,"props":17449,"children":17450},{"class":324,"line":5607},[17451,17455],{"type":21,"tag":322,"props":17452,"children":17453},{"style":3648},[17454],{"type":26,"value":5036},{"type":21,"tag":322,"props":17456,"children":17457},{"style":329},[17458],{"type":26,"value":8228},{"type":21,"tag":322,"props":17460,"children":17461},{"class":324,"line":5625},[17462],{"type":21,"tag":322,"props":17463,"children":17464},{"emptyLinePlaceholder":3672},[17465],{"type":26,"value":3675},{"type":21,"tag":322,"props":17467,"children":17468},{"class":324,"line":5650},[17469],{"type":21,"tag":322,"props":17470,"children":17471},{"emptyLinePlaceholder":3672},[17472],{"type":26,"value":3675},{"type":21,"tag":322,"props":17474,"children":17475},{"class":324,"line":5692},[17476,17480,17484],{"type":21,"tag":322,"props":17477,"children":17478},{"style":329},[17479],{"type":26,"value":8874},{"type":21,"tag":322,"props":17481,"children":17482},{"style":3648},[17483],{"type":26,"value":3688},{"type":21,"tag":322,"props":17485,"children":17486},{"style":329},[17487],{"type":26,"value":8883},{"type":21,"tag":322,"props":17489,"children":17490},{"class":324,"line":5700},[17491,17495,17499,17504,17508,17512,17517,17522],{"type":21,"tag":322,"props":17492,"children":17493},{"style":329},[17494],{"type":26,"value":7832},{"type":21,"tag":322,"props":17496,"children":17497},{"style":3648},[17498],{"type":26,"value":3688},{"type":21,"tag":322,"props":17500,"children":17501},{"style":329},[17502],{"type":26,"value":17503}," qpe_phase_gate(",{"type":21,"tag":322,"props":17505,"children":17506},{"style":348},[17507],{"type":26,"value":5982},{"type":21,"tag":322,"props":17509,"children":17510},{"style":329},[17511],{"type":26,"value":367},{"type":21,"tag":322,"props":17513,"children":17514},{"style":348},[17515],{"type":26,"value":17516},"0.625",{"type":21,"tag":322,"props":17518,"children":17519},{"style":329},[17520],{"type":26,"value":17521},")        ",{"type":21,"tag":322,"props":17523,"children":17524},{"style":3898},[17525],{"type":26,"value":17526},"# theta = 0.625 = 0.1010 in binary\n",{"type":21,"tag":322,"props":17528,"children":17529},{"class":324,"line":5735},[17530,17534,17538,17542,17546,17550,17554],{"type":21,"tag":322,"props":17531,"children":17532},{"style":329},[17533],{"type":26,"value":8907},{"type":21,"tag":322,"props":17535,"children":17536},{"style":3648},[17537],{"type":26,"value":3688},{"type":21,"tag":322,"props":17539,"children":17540},{"style":329},[17541],{"type":26,"value":8916},{"type":21,"tag":322,"props":17543,"children":17544},{"style":3713},[17545],{"type":26,"value":4573},{"type":21,"tag":322,"props":17547,"children":17548},{"style":3648},[17549],{"type":26,"value":3688},{"type":21,"tag":322,"props":17551,"children":17552},{"style":348},[17553],{"type":26,"value":8929},{"type":21,"tag":322,"props":17555,"children":17556},{"style":329},[17557],{"type":26,"value":5732},{"type":21,"tag":322,"props":17559,"children":17560},{"class":324,"line":5851},[17561],{"type":21,"tag":322,"props":17562,"children":17563},{"emptyLinePlaceholder":3672},[17564],{"type":26,"value":3675},{"type":21,"tag":322,"props":17566,"children":17567},{"class":324,"line":5859},[17568,17572,17577,17581,17586,17590,17594,17598,17602,17606,17610,17614],{"type":21,"tag":322,"props":17569,"children":17570},{"style":3648},[17571],{"type":26,"value":3941},{"type":21,"tag":322,"props":17573,"children":17574},{"style":329},[17575],{"type":26,"value":17576}," bits, c ",{"type":21,"tag":322,"props":17578,"children":17579},{"style":3648},[17580],{"type":26,"value":3951},{"type":21,"tag":322,"props":17582,"children":17583},{"style":348},[17584],{"type":26,"value":17585}," sorted",{"type":21,"tag":322,"props":17587,"children":17588},{"style":329},[17589],{"type":26,"value":13611},{"type":21,"tag":322,"props":17591,"children":17592},{"style":3713},[17593],{"type":26,"value":3989},{"type":21,"tag":322,"props":17595,"children":17596},{"style":3648},[17597],{"type":26,"value":3994},{"type":21,"tag":322,"props":17599,"children":17600},{"style":329},[17601],{"type":26,"value":13624},{"type":21,"tag":322,"props":17603,"children":17604},{"style":3648},[17605],{"type":26,"value":5298},{"type":21,"tag":322,"props":17607,"children":17608},{"style":329},[17609],{"type":26,"value":13633},{"type":21,"tag":322,"props":17611,"children":17612},{"style":348},[17613],{"type":26,"value":4004},{"type":21,"tag":322,"props":17615,"children":17616},{"style":329},[17617],{"type":26,"value":17618},"]):\n",{"type":21,"tag":322,"props":17620,"children":17621},{"class":324,"line":5904},[17622,17627,17631,17636,17641,17645,17649,17653,17657,17661],{"type":21,"tag":322,"props":17623,"children":17624},{"style":329},[17625],{"type":26,"value":17626},"    est ",{"type":21,"tag":322,"props":17628,"children":17629},{"style":3648},[17630],{"type":26,"value":3688},{"type":21,"tag":322,"props":17632,"children":17633},{"style":348},[17634],{"type":26,"value":17635}," int",{"type":21,"tag":322,"props":17637,"children":17638},{"style":329},[17639],{"type":26,"value":17640},"(bits, ",{"type":21,"tag":322,"props":17642,"children":17643},{"style":348},[17644],{"type":26,"value":423},{"type":21,"tag":322,"props":17646,"children":17647},{"style":329},[17648],{"type":26,"value":5797},{"type":21,"tag":322,"props":17650,"children":17651},{"style":3648},[17652],{"type":26,"value":174},{"type":21,"tag":322,"props":17654,"children":17655},{"style":348},[17656],{"type":26,"value":6834},{"type":21,"tag":322,"props":17658,"children":17659},{"style":3648},[17660],{"type":26,"value":8759},{"type":21,"tag":322,"props":17662,"children":17663},{"style":348},[17664],{"type":26,"value":12916},{"type":21,"tag":322,"props":17666,"children":17667},{"class":324,"line":5922},[17668,17673,17677,17681,17685,17689,17694,17698,17703,17708,17712,17716,17721,17725,17730,17734,17739,17743,17747,17752,17756,17761,17765,17769],{"type":21,"tag":322,"props":17669,"children":17670},{"style":348},[17671],{"type":26,"value":17672},"    print",{"type":21,"tag":322,"props":17674,"children":17675},{"style":329},[17676],{"type":26,"value":3768},{"type":21,"tag":322,"props":17678,"children":17679},{"style":3648},[17680],{"type":26,"value":3773},{"type":21,"tag":322,"props":17682,"children":17683},{"style":359},[17684],{"type":26,"value":3798},{"type":21,"tag":322,"props":17686,"children":17687},{"style":348},[17688],{"type":26,"value":3783},{"type":21,"tag":322,"props":17690,"children":17691},{"style":329},[17692],{"type":26,"value":17693},"bits",{"type":21,"tag":322,"props":17695,"children":17696},{"style":348},[17697],{"type":26,"value":3793},{"type":21,"tag":322,"props":17699,"children":17700},{"style":359},[17701],{"type":26,"value":17702}," -> theta = ",{"type":21,"tag":322,"props":17704,"children":17705},{"style":348},[17706],{"type":26,"value":17707},"{int",{"type":21,"tag":322,"props":17709,"children":17710},{"style":329},[17711],{"type":26,"value":17640},{"type":21,"tag":322,"props":17713,"children":17714},{"style":348},[17715],{"type":26,"value":423},{"type":21,"tag":322,"props":17717,"children":17718},{"style":329},[17719],{"type":26,"value":17720},")",{"type":21,"tag":322,"props":17722,"children":17723},{"style":348},[17724],{"type":26,"value":3793},{"type":21,"tag":322,"props":17726,"children":17727},{"style":359},[17728],{"type":26,"value":17729},"\u002F16 = ",{"type":21,"tag":322,"props":17731,"children":17732},{"style":348},[17733],{"type":26,"value":3783},{"type":21,"tag":322,"props":17735,"children":17736},{"style":329},[17737],{"type":26,"value":17738},"est",{"type":21,"tag":322,"props":17740,"children":17741},{"style":3648},[17742],{"type":26,"value":4095},{"type":21,"tag":322,"props":17744,"children":17745},{"style":348},[17746],{"type":26,"value":3793},{"type":21,"tag":322,"props":17748,"children":17749},{"style":359},[17750],{"type":26,"value":17751},"   counts = ",{"type":21,"tag":322,"props":17753,"children":17754},{"style":348},[17755],{"type":26,"value":3783},{"type":21,"tag":322,"props":17757,"children":17758},{"style":329},[17759],{"type":26,"value":17760},"c",{"type":21,"tag":322,"props":17762,"children":17763},{"style":348},[17764],{"type":26,"value":3793},{"type":21,"tag":322,"props":17766,"children":17767},{"style":359},[17768],{"type":26,"value":3798},{"type":21,"tag":322,"props":17770,"children":17771},{"style":329},[17772],{"type":26,"value":3748},{"type":21,"tag":22,"props":17774,"children":17775},{},[17776],{"type":26,"value":12834},{"type":21,"tag":312,"props":17778,"children":17780},{"code":17779},"1010 -> theta = 10\u002F16 = 0.6250   counts = 4096\n",[17781],{"type":21,"tag":79,"props":17782,"children":17783},{"__ignoreMap":7},[17784],{"type":26,"value":17779},{"type":21,"tag":22,"props":17786,"children":17787},{},[17788,17793],{"type":21,"tag":71,"props":17789,"children":17790},{},[17791],{"type":26,"value":17792},"4096 out of 4096 shots.",{"type":26,"value":17794}," θ = 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":312,"props":17796,"children":17798},{"code":17797},"[('001', 4096)]\n",[17799],{"type":21,"tag":79,"props":17800,"children":17801},{"__ignoreMap":7},[17802],{"type":26,"value":17797},{"type":21,"tag":22,"props":17804,"children":17805},{},[17806],{"type":26,"value":17807},"001 = 1, and 1\u002F8 = 0.125. Exact again.",{"type":21,"tag":17809,"props":17810,"children":17812},"h3",{"id":17811},"the-endianness-trap",[17813],{"type":26,"value":17814},"The endianness trap",{"type":21,"tag":22,"props":17816,"children":17817},{},[17818,17824,17826,17831,17833,17837,17839,17845],{"type":21,"tag":79,"props":17819,"children":17821},{"className":17820},[],[17822],{"type":26,"value":17823},"int(bits, 2) \u002F 2**n",{"type":26,"value":17825}," worked above, and it is worth understanding ",{"type":21,"tag":51,"props":17827,"children":17828},{},[17829],{"type":26,"value":17830},"why",{"type":26,"value":17832}," rather than copying it. Qiskit prints bitstrings with classical bit 0 on the ",{"type":21,"tag":71,"props":17834,"children":17835},{},[17836],{"type":26,"value":8238},{"type":26,"value":17838},", and our counting qubit 0 (the one that got the smallest rotation, ",{"type":21,"tag":79,"props":17840,"children":17842},{"className":17841},[],[17843],{"type":26,"value":17844},"U^1",{"type":26,"value":17846},") 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":17848,"children":17849},{},[17850,17852,17858],{"type":26,"value":17851},"Drop the swaps from ",{"type":21,"tag":79,"props":17853,"children":17855},{"className":17854},[],[17856],{"type":26,"value":17857},"qft()",{"type":26,"value":17859}," (a tempting \"optimization\", since they look cosmetic) and rerun the exact θ = 0.625 case. Real output over 2048 shots:",{"type":21,"tag":312,"props":17861,"children":17863},{"code":17862},"{'1101': 1007, '0101': 470, '0001': 251, '0100': 80, '1100': 77,\n '0010': 66, '1110': 64, '0110': 16, '1010': 9, '1001': 8}\n",[17864],{"type":21,"tag":79,"props":17865,"children":17866},{"__ignoreMap":7},[17867],{"type":26,"value":17862},{"type":21,"tag":22,"props":17869,"children":17870},{},[17871,17873,17879,17881,17886],{"type":26,"value":17872},"The correct answer ",{"type":21,"tag":79,"props":17874,"children":17876},{"className":17875},[],[17877],{"type":26,"value":17878},"1010",{"type":26,"value":17880}," now gets ",{"type":21,"tag":71,"props":17882,"children":17883},{},[17884],{"type":26,"value":17885},"9 shots out of 2048",{"type":26,"value":17887},". 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":17889,"children":17890},{},[17891],{"type":26,"value":17892},"Always sanity-check a QPE implementation against a θ you already know before pointing it at one you don't.",{"type":21,"tag":59,"props":17894,"children":17896},{"id":17895},"when-θ-doesnt-fit-in-n-bits",[17897],{"type":26,"value":17898},"When θ doesn't fit in n bits",{"type":21,"tag":22,"props":17900,"children":17901},{},[17902],{"type":26,"value":17903},"Real eigenphases are not tidy binary fractions. Try θ = 0.3, which has an infinite binary expansion, with 4 counting qubits:",{"type":21,"tag":312,"props":17905,"children":17907},{"code":17906,"language":3638,"meta":7,"className":3636,"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",[17908],{"type":21,"tag":79,"props":17909,"children":17910},{"__ignoreMap":7},[17911,17942,17973,18034],{"type":21,"tag":322,"props":17912,"children":17913},{"class":324,"line":325},[17914,17918,17922,17926,17930,17934,17938],{"type":21,"tag":322,"props":17915,"children":17916},{"style":329},[17917],{"type":26,"value":7832},{"type":21,"tag":322,"props":17919,"children":17920},{"style":3648},[17921],{"type":26,"value":3688},{"type":21,"tag":322,"props":17923,"children":17924},{"style":329},[17925],{"type":26,"value":17503},{"type":21,"tag":322,"props":17927,"children":17928},{"style":348},[17929],{"type":26,"value":5982},{"type":21,"tag":322,"props":17931,"children":17932},{"style":329},[17933],{"type":26,"value":367},{"type":21,"tag":322,"props":17935,"children":17936},{"style":348},[17937],{"type":26,"value":15191},{"type":21,"tag":322,"props":17939,"children":17940},{"style":329},[17941],{"type":26,"value":3748},{"type":21,"tag":322,"props":17943,"children":17944},{"class":324,"line":335},[17945,17949,17953,17957,17961,17965,17969],{"type":21,"tag":322,"props":17946,"children":17947},{"style":329},[17948],{"type":26,"value":8907},{"type":21,"tag":322,"props":17950,"children":17951},{"style":3648},[17952],{"type":26,"value":3688},{"type":21,"tag":322,"props":17954,"children":17955},{"style":329},[17956],{"type":26,"value":8916},{"type":21,"tag":322,"props":17958,"children":17959},{"style":3713},[17960],{"type":26,"value":4573},{"type":21,"tag":322,"props":17962,"children":17963},{"style":3648},[17964],{"type":26,"value":3688},{"type":21,"tag":322,"props":17966,"children":17967},{"style":348},[17968],{"type":26,"value":8929},{"type":21,"tag":322,"props":17970,"children":17971},{"style":329},[17972],{"type":26,"value":5732},{"type":21,"tag":322,"props":17974,"children":17975},{"class":324,"line":344},[17976,17980,17984,17988,17992,17996,18000,18004,18008,18012,18016,18020,18025,18029],{"type":21,"tag":322,"props":17977,"children":17978},{"style":3648},[17979],{"type":26,"value":3941},{"type":21,"tag":322,"props":17981,"children":17982},{"style":329},[17983],{"type":26,"value":17576},{"type":21,"tag":322,"props":17985,"children":17986},{"style":3648},[17987],{"type":26,"value":3951},{"type":21,"tag":322,"props":17989,"children":17990},{"style":348},[17991],{"type":26,"value":17585},{"type":21,"tag":322,"props":17993,"children":17994},{"style":329},[17995],{"type":26,"value":13611},{"type":21,"tag":322,"props":17997,"children":17998},{"style":3713},[17999],{"type":26,"value":3989},{"type":21,"tag":322,"props":18001,"children":18002},{"style":3648},[18003],{"type":26,"value":3994},{"type":21,"tag":322,"props":18005,"children":18006},{"style":329},[18007],{"type":26,"value":13624},{"type":21,"tag":322,"props":18009,"children":18010},{"style":3648},[18011],{"type":26,"value":5298},{"type":21,"tag":322,"props":18013,"children":18014},{"style":329},[18015],{"type":26,"value":13633},{"type":21,"tag":322,"props":18017,"children":18018},{"style":348},[18019],{"type":26,"value":4004},{"type":21,"tag":322,"props":18021,"children":18022},{"style":329},[18023],{"type":26,"value":18024},"])[:",{"type":21,"tag":322,"props":18026,"children":18027},{"style":348},[18028],{"type":26,"value":14127},{"type":21,"tag":322,"props":18030,"children":18031},{"style":329},[18032],{"type":26,"value":18033},"]:\n",{"type":21,"tag":322,"props":18035,"children":18036},{"class":324,"line":407},[18037,18041,18045,18049,18053,18057,18061,18065,18070,18074,18078,18082,18086,18090,18094,18098,18102,18106,18110,18114,18118,18123,18127,18132,18136,18140,18144],{"type":21,"tag":322,"props":18038,"children":18039},{"style":348},[18040],{"type":26,"value":17672},{"type":21,"tag":322,"props":18042,"children":18043},{"style":329},[18044],{"type":26,"value":3768},{"type":21,"tag":322,"props":18046,"children":18047},{"style":3648},[18048],{"type":26,"value":3773},{"type":21,"tag":322,"props":18050,"children":18051},{"style":359},[18052],{"type":26,"value":3798},{"type":21,"tag":322,"props":18054,"children":18055},{"style":348},[18056],{"type":26,"value":3783},{"type":21,"tag":322,"props":18058,"children":18059},{"style":329},[18060],{"type":26,"value":17693},{"type":21,"tag":322,"props":18062,"children":18063},{"style":348},[18064],{"type":26,"value":3793},{"type":21,"tag":322,"props":18066,"children":18067},{"style":359},[18068],{"type":26,"value":18069},"  theta_est = ",{"type":21,"tag":322,"props":18071,"children":18072},{"style":348},[18073],{"type":26,"value":17707},{"type":21,"tag":322,"props":18075,"children":18076},{"style":329},[18077],{"type":26,"value":17640},{"type":21,"tag":322,"props":18079,"children":18080},{"style":348},[18081],{"type":26,"value":423},{"type":21,"tag":322,"props":18083,"children":18084},{"style":329},[18085],{"type":26,"value":5797},{"type":21,"tag":322,"props":18087,"children":18088},{"style":3648},[18089],{"type":26,"value":174},{"type":21,"tag":322,"props":18091,"children":18092},{"style":348},[18093],{"type":26,"value":6834},{"type":21,"tag":322,"props":18095,"children":18096},{"style":3648},[18097],{"type":26,"value":5163},{"type":21,"tag":322,"props":18099,"children":18100},{"style":348},[18101],{"type":26,"value":5982},{"type":21,"tag":322,"props":18103,"children":18104},{"style":3648},[18105],{"type":26,"value":4095},{"type":21,"tag":322,"props":18107,"children":18108},{"style":348},[18109],{"type":26,"value":3793},{"type":21,"tag":322,"props":18111,"children":18112},{"style":359},[18113],{"type":26,"value":13415},{"type":21,"tag":322,"props":18115,"children":18116},{"style":348},[18117],{"type":26,"value":3783},{"type":21,"tag":322,"props":18119,"children":18120},{"style":329},[18121],{"type":26,"value":18122},"c ",{"type":21,"tag":322,"props":18124,"children":18125},{"style":3648},[18126],{"type":26,"value":174},{"type":21,"tag":322,"props":18128,"children":18129},{"style":348},[18130],{"type":26,"value":18131}," 4096",{"type":21,"tag":322,"props":18133,"children":18134},{"style":3648},[18135],{"type":26,"value":4095},{"type":21,"tag":322,"props":18137,"children":18138},{"style":348},[18139],{"type":26,"value":3793},{"type":21,"tag":322,"props":18141,"children":18142},{"style":359},[18143],{"type":26,"value":3798},{"type":21,"tag":322,"props":18145,"children":18146},{"style":329},[18147],{"type":26,"value":3748},{"type":21,"tag":22,"props":18149,"children":18150},{},[18151],{"type":26,"value":12834},{"type":21,"tag":312,"props":18153,"children":18155},{"code":18154},"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",[18156],{"type":21,"tag":79,"props":18157,"children":18158},{"__ignoreMap":7},[18159],{"type":26,"value":18154},{"type":21,"tag":22,"props":18161,"children":18162},{},[18163,18165,18170],{"type":26,"value":18164},"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":71,"props":18166,"children":18167},{},[18168],{"type":26,"value":18169},"you get the nearest n-bit value with high probability, not certainty.",{"type":26,"value":18171}," 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":18173,"children":18174},{},[18175,18177,18182],{"type":26,"value":18176},"Two things improve together when you add counting qubits: finer resolution ",{"type":21,"tag":51,"props":18178,"children":18179},{},[18180],{"type":26,"value":18181},"and",{"type":26,"value":18183}," a tighter peak. Same θ = 0.3 with 8 counting qubits:",{"type":21,"tag":312,"props":18185,"children":18187},{"code":18186},"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",[18188],{"type":21,"tag":79,"props":18189,"children":18190},{"__ignoreMap":7},[18191],{"type":26,"value":18186},{"type":21,"tag":22,"props":18193,"children":18194},{},[18195,18197,18202],{"type":26,"value":18196},"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":29,"props":18198,"children":18199},{"href":9427},[18200],{"type":26,"value":18201},"ancillas",{"type":26,"value":18203}," buys you a lot of confidence.",{"type":21,"tag":22,"props":18205,"children":18206},{},[18207,18209,18214],{"type":26,"value":18208},"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":71,"props":18210,"children":18211},{},[18212],{"type":26,"value":18213},"doubles",{"type":26,"value":18215}," 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":59,"props":18217,"children":18219},{"id":18218},"where-qpe-gets-used",[18220],{"type":26,"value":18221},"Where QPE gets used",{"type":21,"tag":22,"props":18223,"children":18224},{},[18225,18230,18232,18236,18238,18243],{"type":21,"tag":71,"props":18226,"children":18227},{},[18228],{"type":26,"value":18229},"Shor's algorithm.",{"type":26,"value":18231}," 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":29,"props":18233,"children":18234},{"href":9058},[18235],{"type":26,"value":10097},{"type":26,"value":18237}," 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":29,"props":18239,"children":18240},{"href":10108},[18241],{"type":26,"value":18242},"machine-verified in Lean",{"type":26,"value":18244},", if you want the formal treatment.)",{"type":21,"tag":22,"props":18246,"children":18247},{},[18248,18253,18255,18260],{"type":21,"tag":71,"props":18249,"children":18250},{},[18251],{"type":26,"value":18252},"Quantum chemistry.",{"type":26,"value":18254}," 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":51,"props":18256,"children":18257},{},[18258],{"type":26,"value":18259},"provable",{"type":26,"value":18261}," 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":18263,"children":18264},{},[18265,18270,18271,18275,18277,18281,18283,18288],{"type":21,"tag":71,"props":18266,"children":18267},{},[18268],{"type":26,"value":18269},"Contrast with VQE.",{"type":26,"value":1911},{"type":21,"tag":29,"props":18272,"children":18273},{"href":928},[18274],{"type":26,"value":888},{"type":26,"value":18276}," attacks the same chemistry problem from the opposite direction. Instead of one deep coherent circuit, it uses a shallow ",{"type":21,"tag":29,"props":18278,"children":18279},{"href":14282},[18280],{"type":26,"value":14285},{"type":26,"value":18282}," plus a classical optimizer, as introduced in ",{"type":21,"tag":29,"props":18284,"children":18285},{"href":935},[18286],{"type":26,"value":18287},"Peruzzo et al. 2014",{"type":26,"value":18289},". The trade is explicit:",{"type":21,"tag":4516,"props":18291,"children":18292},{},[18293,18311],{"type":21,"tag":4520,"props":18294,"children":18295},{},[18296],{"type":21,"tag":4524,"props":18297,"children":18298},{},[18299,18302,18307],{"type":21,"tag":4528,"props":18300,"children":18301},{},[],{"type":21,"tag":4528,"props":18303,"children":18304},{},[18305],{"type":26,"value":18306},"QPE",{"type":21,"tag":4528,"props":18308,"children":18309},{},[18310],{"type":26,"value":888},{"type":21,"tag":4542,"props":18312,"children":18313},{},[18314,18332,18350,18368],{"type":21,"tag":4524,"props":18315,"children":18316},{},[18317,18322,18327],{"type":21,"tag":4549,"props":18318,"children":18319},{},[18320],{"type":26,"value":18321},"Circuit depth",{"type":21,"tag":4549,"props":18323,"children":18324},{},[18325],{"type":26,"value":18326},"Deep, grows as 2ⁿ in precision bits",{"type":21,"tag":4549,"props":18328,"children":18329},{},[18330],{"type":26,"value":18331},"Shallow, fixed ansatz",{"type":21,"tag":4524,"props":18333,"children":18334},{},[18335,18340,18345],{"type":21,"tag":4549,"props":18336,"children":18337},{},[18338],{"type":26,"value":18339},"Precision",{"type":21,"tag":4549,"props":18341,"children":18342},{},[18343],{"type":26,"value":18344},"Provable, arbitrary",{"type":21,"tag":4549,"props":18346,"children":18347},{},[18348],{"type":26,"value":18349},"Heuristic, ansatz-limited",{"type":21,"tag":4524,"props":18351,"children":18352},{},[18353,18358,18363],{"type":21,"tag":4549,"props":18354,"children":18355},{},[18356],{"type":26,"value":18357},"Measurements",{"type":21,"tag":4549,"props":18359,"children":18360},{},[18361],{"type":26,"value":18362},"Few shots",{"type":21,"tag":4549,"props":18364,"children":18365},{},[18366],{"type":26,"value":18367},"Many thousands per iteration",{"type":21,"tag":4524,"props":18369,"children":18370},{},[18371,18376,18381],{"type":21,"tag":4549,"props":18372,"children":18373},{},[18374],{"type":26,"value":18375},"Hardware era",{"type":21,"tag":4549,"props":18377,"children":18378},{},[18379],{"type":26,"value":18380},"Fault-tolerant",{"type":21,"tag":4549,"props":18382,"children":18383},{},[18384],{"type":21,"tag":29,"props":18385,"children":18386},{"href":263},[18387],{"type":26,"value":266},{"type":21,"tag":22,"props":18389,"children":18390},{},[18391,18393,18398,18400,18404,18406,18410],{"type":26,"value":18392},"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":29,"props":18394,"children":18395},{"href":898},[18396],{"type":26,"value":18397},"VQE walkthrough in PennyLane",{"type":26,"value":18399}," covers the near-term side. ",{"type":21,"tag":29,"props":18401,"children":18402},{"href":14518},[18403],{"type":26,"value":14234},{"type":26,"value":18405}," is generally the better fit for variational work while ",{"type":21,"tag":29,"props":18407,"children":18408},{"href":7541},[18409],{"type":26,"value":1972},{"type":26,"value":18411}," suits structured circuits like this one.",{"type":21,"tag":59,"props":18413,"children":18415},{"id":18414},"the-honest-caveat",[18416],{"type":26,"value":18417},"The honest caveat",{"type":21,"tag":22,"props":18419,"children":18420},{},[18421,18423,18427],{"type":26,"value":18422},"QPE is not a NISQ algorithm and no amount of clever ",{"type":21,"tag":29,"props":18424,"children":18425},{"href":6205},[18426],{"type":26,"value":6208},{"type":26,"value":18428}," will make it one.",{"type":21,"tag":22,"props":18430,"children":18431},{},[18432,18434,18438],{"type":26,"value":18433},"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":29,"props":18435,"children":18436},{"href":9379},[18437],{"type":26,"value":16266},{"type":26,"value":18439}," 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":18441,"children":18442},{},[18443,18445,18449,18451,18456,18458,18462,18464,18468,18470,18474,18476,18481],{"type":26,"value":18444},"QPE becomes practical when circuits run on ",{"type":21,"tag":29,"props":18446,"children":18447},{"href":1993},[18448],{"type":26,"value":1996},{"type":26,"value":18450}," rather than physical ones. Google's ",{"type":21,"tag":29,"props":18452,"children":18453},{"href":4194},[18454],{"type":26,"value":18455},"below-threshold result",{"type":26,"value":18457}," is the first real evidence that path is open, and our ",{"type":21,"tag":29,"props":18459,"children":18460},{"href":753},[18461],{"type":26,"value":2106},{"type":26,"value":18463}," covers what still has to happen. Until then: develop QPE on ",{"type":21,"tag":29,"props":18465,"children":18466},{"href":1014},[18467],{"type":26,"value":9224},{"type":26,"value":18469},", where you verify it exactly, and reach for VQE or ",{"type":21,"tag":29,"props":18471,"children":18472},{"href":4436},[18473],{"type":26,"value":9728},{"type":26,"value":18475}," if you need results from ",{"type":21,"tag":29,"props":18477,"children":18478},{"href":809},[18479],{"type":26,"value":18480},"today's hardware",{"type":26,"value":534},{"type":21,"tag":22,"props":18483,"children":18484},{},[18485],{"type":26,"value":18486},"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":59,"props":18488,"children":18489},{"id":9236},[18490],{"type":26,"value":18491},"Next steps",{"type":21,"tag":3566,"props":18493,"children":18494},{},[18495,18507,18520,18544],{"type":21,"tag":3570,"props":18496,"children":18497},{},[18498,18505],{"type":21,"tag":71,"props":18499,"children":18500},{},[18501],{"type":21,"tag":29,"props":18502,"children":18503},{"href":817},[18504],{"type":26,"value":9278},{"type":26,"value":18506},": build the same QPE circuit in Cirq or Braket",{"type":21,"tag":3570,"props":18508,"children":18509},{},[18510,18518],{"type":21,"tag":71,"props":18511,"children":18512},{},[18513],{"type":21,"tag":29,"props":18514,"children":18515},{"href":4326},[18516],{"type":26,"value":18517},"Courses",{"type":26,"value":18519},": structured paths through the algorithm canon",{"type":21,"tag":3570,"props":18521,"children":18522},{},[18523,18530,18531,18537,18538,18543],{"type":21,"tag":71,"props":18524,"children":18525},{},[18526],{"type":21,"tag":29,"props":18527,"children":18528},{"href":4413},[18529],{"type":26,"value":9299},{"type":26,"value":418},{"type":21,"tag":29,"props":18532,"children":18534},{"href":18533},"\u002Fglossary\u002Fquantum-gate",[18535],{"type":26,"value":18536},"quantum gate",{"type":26,"value":367},{"type":21,"tag":29,"props":18539,"children":18540},{"href":9427},[18541],{"type":26,"value":18542},"ancilla qubit",{"type":26,"value":9315},{"type":21,"tag":3570,"props":18545,"children":18546},{},[18547],{"type":26,"value":18548},"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":703,"props":18550,"children":18551},{},[18552],{"type":26,"value":707},{"title":7,"searchDepth":335,"depth":335,"links":18554},[18555,18556,18557,18558,18561,18562,18563,18564],{"id":16524,"depth":335,"text":16527},{"id":16615,"depth":335,"text":16618},{"id":16720,"depth":335,"text":16723},{"id":12214,"depth":335,"text":12217,"children":18559},[18560],{"id":17811,"depth":344,"text":17814},{"id":17895,"depth":335,"text":17898},{"id":18218,"depth":335,"text":18221},{"id":18414,"depth":335,"text":18417},{"id":9236,"depth":335,"text":18491},"content:blog:quantum-phase-estimation-tutorial.md","blog\u002Fquantum-phase-estimation-tutorial.md","blog\u002Fquantum-phase-estimation-tutorial",{"_path":18569,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":18570,"description":18571,"date":18572,"author":11,"tags":18573,"readingTime":16,"body":18575,"_type":715,"_id":19590,"_source":717,"_file":19591,"_stem":19592,"_extension":720},"\u002Fhi\u002Fblog\u002Fquantum-computing-new-vocabulary","क्वांटम कंप्यूटिंग की नई शब्दावली: 16 शब्द जो मुख्यधारा में आएंगे","जैसे AI ने हमें 'tokens', 'hallucinations' और 'fine-tuning' दिए, वैसे ही क्वांटम कंप्यूटिंग अपनी खुद की शब्दावली गढ़ रही है। यहाँ वे शब्द हैं जिन्हें डेवलपर और व्यवसाय कुछ ही वर्षों में इस्तेमाल करने लगेंगे।","2026-03-15",[7599,1042,18574],"Terminology",{"type":18,"children":18576,"toc":19571},[18577,18613,18618,18623,18627,18633,18641,18646,18672,18677,18680,18686,18694,18713,18718,18726,18731,18734,18740,18748,18760,18771,18783,18786,18792,18800,18811,18823,18826,18832,18840,18852,18942,18947,18950,18956,18964,18989,19001,19009,19014,19017,19023,19031,19043,19048,19051,19057,19065,19074,19079,19082,19088,19096,19120,19132,19137,19142,19145,19151,19159,19171,19183,19195,19198,19204,19212,19224,19229,19232,19238,19246,19264,19269,19272,19278,19286,19295,19300,19303,19309,19317,19336,19341,19344,19350,19358,19363,19373,19389,19394,19397,19403,19411,19423,19446,19457,19460,19465,19470,19543,19548,19553,19567],{"type":21,"tag":22,"props":18578,"children":18579},{},[18580,18582,18587,18588,18593,18594,18599,18600,18605,18606,18611],{"type":26,"value":18581},"जब डीप लर्निंग लगभग 2022–2023 के आसपास मुख्यधारा में आई, तो वह एक पूरी नई शब्दावली को रोज़मर्रा की बातचीत में खींच लाई। अचानक हर कोई ",{"type":21,"tag":51,"props":18583,"children":18584},{},[18585],{"type":26,"value":18586},"tokens",{"type":26,"value":367},{"type":21,"tag":51,"props":18589,"children":18590},{},[18591],{"type":26,"value":18592},"hallucinations",{"type":26,"value":367},{"type":21,"tag":51,"props":18595,"children":18596},{},[18597],{"type":26,"value":18598},"context windows",{"type":26,"value":367},{"type":21,"tag":51,"props":18601,"children":18602},{},[18603],{"type":26,"value":18604},"fine-tuning",{"type":26,"value":814},{"type":21,"tag":51,"props":18607,"children":18608},{},[18609],{"type":26,"value":18610},"prompt engineering",{"type":26,"value":18612}," की बात करने लगा — ऐसे शब्द जो एक दशक पहले आम डेवलपर शब्दकोश में मुश्किल से मौजूद थे। \"AI इंजीनियरों\" की एक नई पीढ़ी उभरी, GPU समय एक बहुमूल्य वस्तु बन गया, और \"inference cost\" इंजीनियरिंग बजट में एक मद बन गई।",{"type":21,"tag":22,"props":18614,"children":18615},{},[18616],{"type":26,"value":18617},"क्वांटम कंप्यूटिंग एक समान राह पर है। यह वक्र में पहले के चरण में है, लेकिन मोड़ का बिंदु आ रहा है — और उसके साथ, शब्दों का एक नया समूह जो शोध पत्रों से निकलकर नौकरी के विवरण, स्टार्टअप पिच और Stack Overflow के सवालों में पहुँचेगा। इनमें से कुछ पहले से ही क्वांटम समुदाय में मौजूद हैं। अधिकांश उसके बाहर अनजाने हैं। इन सभी को अभी सीखना सार्थक है, इससे पहले कि बाकी सब सीखें।",{"type":21,"tag":22,"props":18619,"children":18620},{},[18621],{"type":26,"value":18622},"यहाँ क्वांटम कंप्यूटिंग की दुनिया से 16 शब्द हैं जो मुख्यधारा में जाने के लिए तैयार हैं।",{"type":21,"tag":18624,"props":18625,"children":18626},"hr",{},[],{"type":21,"tag":59,"props":18628,"children":18630},{"id":18629},"_1-qpu-quantum-processing-unit",[18631],{"type":26,"value":18632},"1. QPU (Quantum Processing Unit)",{"type":21,"tag":22,"props":18634,"children":18635},{},[18636],{"type":21,"tag":71,"props":18637,"children":18638},{},[18639],{"type":26,"value":18640},"AI समानांतर: GPU",{"type":21,"tag":22,"props":18642,"children":18643},{},[18644],{"type":26,"value":18645},"\"क्या आपके पास GPU एक्सेस है?\" ML टीमों में एक मानक सवाल बन गया। \"क्या आपके पास QPU एक्सेस है?\" इसका क्वांटम समकक्ष बन जाएगा।",{"type":21,"tag":22,"props":18647,"children":18648},{},[18649,18651,18656,18658,18663,18665,18670],{"type":26,"value":18650},"QPU वह हार्डवेयर चिप है जो क्वांटम सर्किट को निष्पादित करती है। IBM अपने सिस्टम को ",{"type":21,"tag":51,"props":18652,"children":18653},{},[18654],{"type":26,"value":18655},"quantum computers",{"type":26,"value":18657}," कहता है, NVIDIA के पास GPU-त्वरित सिमुलेशन के लिए ",{"type":21,"tag":71,"props":18659,"children":18660},{},[18661],{"type":26,"value":18662},"CUDA-Q",{"type":26,"value":18664}," है, और IonQ के trapped-ion सिस्टम आज उपलब्ध सबसे उच्च-फ़िडेलिटी QPU हैं। जैसे \"GPU समय\" एक ऐसा संसाधन बन गया जिसके लिए इंजीनियर संघर्ष करते हैं, वैसे ही ",{"type":21,"tag":71,"props":18666,"children":18667},{},[18668],{"type":26,"value":18669},"QPU समय",{"type":26,"value":18671}," — क्वांटम हार्डवेयर पर वास्तविक निष्पादन चक्र — एक प्रीमियम, अनुसूचित किया जा सकने वाला संसाधन बन जाएगा।",{"type":21,"tag":22,"props":18673,"children":18674},{},[18675],{"type":26,"value":18676},"यह शब्द पहले से ही क्लाउड मूल्य निर्धारण पृष्ठों (AWS Braket, Azure Quantum) में दिखाई देता है। यह पाँच वर्षों के भीतर नौकरी के विवरणों में होगा।",{"type":21,"tag":18624,"props":18678,"children":18679},{},[],{"type":21,"tag":59,"props":18681,"children":18683},{"id":18682},"_2-shot-budget",[18684],{"type":26,"value":18685},"2. Shot Budget",{"type":21,"tag":22,"props":18687,"children":18688},{},[18689],{"type":21,"tag":71,"props":18690,"children":18691},{},[18692],{"type":26,"value":18693},"AI समानांतर: Token budget \u002F context window",{"type":21,"tag":22,"props":18695,"children":18696},{},[18697,18699,18704,18706,18711],{"type":26,"value":18698},"जब आप एक क्वांटम सर्किट चलाते हैं, तो आपको एक एकल उत्तर नहीं मिलता — आपको एक ",{"type":21,"tag":51,"props":18700,"children":18701},{},[18702],{"type":26,"value":18703},"probability distribution",{"type":26,"value":18705}," मिलता है जिसे सर्किट को कई बार चलाकर सैंपल किया जाता है। प्रत्येक रन को ",{"type":21,"tag":71,"props":18707,"children":18708},{},[18709],{"type":26,"value":18710},"shot",{"type":26,"value":18712}," कहा जाता है। 1,000 बार चलाया गया सर्किट उसी सर्किट को 100 बार चलाने की तुलना में अधिक QPU समय खर्च करता है।",{"type":21,"tag":22,"props":18714,"children":18715},{},[18716],{"type":26,"value":18717},"\"shot budget\" — आप कितने निष्पादन वहन कर सकते हैं — QPU एक्सेस के बढ़ने के साथ एक वास्तविक अनुकूलन चिंता बन जाएगी। जैसे डेवलपरों ने token सीमाओं के भीतर रहने के लिए prompts को छाँटना सीखा, वैसे ही क्वांटम डेवलपर ऐसे सर्किट डिज़ाइन करना सीखेंगे जो न्यूनतम shot budget से अधिकतम संकेत निकालें।",{"type":21,"tag":200,"props":18719,"children":18720},{},[18721],{"type":21,"tag":22,"props":18722,"children":18723},{},[18724],{"type":26,"value":18725},"\"हमने VQE को 2,000 के बजाय 200 shots में अभिसरित करा लिया — इससे हमारी QPU लागत 90% कम हो गई।\"",{"type":21,"tag":22,"props":18727,"children":18728},{},[18729],{"type":26,"value":18730},"यह VQE और QAOA जैसे variational एल्गोरिदम में पहले से ही एक वास्तविक चिंता है, जहाँ shot noise सीधे परिणाम की गुणवत्ता को प्रभावित करता है।",{"type":21,"tag":18624,"props":18732,"children":18733},{},[],{"type":21,"tag":59,"props":18735,"children":18737},{"id":18736},"_3-quantum-advantage",[18738],{"type":26,"value":18739},"3. Quantum Advantage",{"type":21,"tag":22,"props":18741,"children":18742},{},[18743],{"type":21,"tag":71,"props":18744,"children":18745},{},[18746],{"type":26,"value":18747},"AI समानांतर: 10x speedup, \"better than human\"",{"type":21,"tag":22,"props":18749,"children":18750},{},[18751,18753,18758],{"type":26,"value":18752},"\"Quantum advantage\" वह क्षण है जब एक क्वांटम कंप्यूटर किसी विशिष्ट, वास्तविक-दुनिया की समस्या को किसी भी क्लासिकल कंप्यूटर की तुलना में ",{"type":21,"tag":51,"props":18754,"children":18755},{},[18756],{"type":26,"value":18757},"तेज़ी से या बेहतर",{"type":26,"value":18759}," हल करता है। यह AI बेंचमार्क में \"superhuman performance\" का क्वांटम समकक्ष है।",{"type":21,"tag":22,"props":18761,"children":18762},{},[18763,18765,18769],{"type":26,"value":18764},"IBM ने 2023 में संबंधित शब्द ",{"type":21,"tag":71,"props":18766,"children":18767},{},[18768],{"type":26,"value":2067},{"type":26,"value":18770}," पेश किया, जो उन सर्किटों का वर्णन करता है जो क्लासिकल रूप से सिमुलेट करने के लिए बहुत जटिल हैं लेकिन व्यावहारिक रूप से उपयोगी हैं — पूर्ण quantum advantage का एक अधिक ज़मीनी पूर्वगामी। हार्डवेयर के परिपक्व होने के साथ दोनों शब्दों के प्रेस विज्ञप्तियों, फंडिंग घोषणाओं और नियामक चर्चाओं में दिखने की अपेक्षा करें।",{"type":21,"tag":22,"props":18772,"children":18773},{},[18774,18776,18781],{"type":26,"value":18775},"यह अंतर मायने रखता है: quantum advantage एक ",{"type":21,"tag":51,"props":18777,"children":18778},{},[18779],{"type":26,"value":18780},"समस्या + हार्डवेयर संयोजन",{"type":26,"value":18782}," का गुण है, न कि क्वांटम कंप्यूटरों के \"बेहतर\" होने के बारे में एक सामान्य कथन। इसे समझना सूचित क्वांटम बातचीत को प्रचार से अलग करेगा।",{"type":21,"tag":18624,"props":18784,"children":18785},{},[],{"type":21,"tag":59,"props":18787,"children":18789},{"id":18788},"_4-quantum-utility",[18790],{"type":26,"value":18791},"4. Quantum Utility",{"type":21,"tag":22,"props":18793,"children":18794},{},[18795],{"type":21,"tag":71,"props":18796,"children":18797},{},[18798],{"type":26,"value":18799},"AI समानांतर: \"Production AI\" बनाम शोध डेमो",{"type":21,"tag":22,"props":18801,"children":18802},{},[18803,18805,18809],{"type":26,"value":18804},"quantum advantage से निकटता से संबंधित, ",{"type":21,"tag":71,"props":18806,"children":18807},{},[18808],{"type":26,"value":2067},{"type":26,"value":18810}," का विशेष रूप से अर्थ है: एक क्वांटम सर्किट जो किसी वास्तविक अनुप्रयोग के लिए उपयोगी परिणाम उत्पन्न करता है, भले ही उस ठीक सर्किट का क्लासिकल सिमुलेशन सैद्धांतिक रूप से अभी भी संभव हो लेकिन अव्यावहारिक हो।",{"type":21,"tag":22,"props":18812,"children":18813},{},[18814,18816,18821],{"type":26,"value":18815},"IBM ने पहली बार यह शब्द 2023 के एक ",{"type":21,"tag":51,"props":18817,"children":18818},{},[18819],{"type":26,"value":18820},"Nature",{"type":26,"value":18822}," पेपर में उपयोग किया, जिसमें दर्शाया गया कि उनके Eagle प्रोसेसर पर चलने वाले कुछ क्वांटम सर्किट ऐसे परिणाम उत्पन्न करते हैं जिन्हें क्लासिकल सिमुलेशन आसानी से सत्यापित नहीं कर सका। यह पूर्ण quantum advantage की तुलना में एक अधिक प्राप्त करने योग्य, निकट-अवधि का मील का पत्थर है — और वह जिसके बारे में हमें अगले कुछ वर्षों में सुनने की सबसे अधिक संभावना है।",{"type":21,"tag":18624,"props":18824,"children":18825},{},[],{"type":21,"tag":59,"props":18827,"children":18829},{"id":18828},"_5-transpilation",[18830],{"type":26,"value":18831},"5. Transpilation",{"type":21,"tag":22,"props":18833,"children":18834},{},[18835],{"type":21,"tag":71,"props":18836,"children":18837},{},[18838],{"type":26,"value":18839},"AI समानांतर: Model compilation \u002F quantization",{"type":21,"tag":22,"props":18841,"children":18842},{},[18843,18845,18850],{"type":26,"value":18844},"इससे पहले कि एक क्वांटम सर्किट वास्तविक हार्डवेयर पर चले, इसे ",{"type":21,"tag":51,"props":18846,"children":18847},{},[18848],{"type":26,"value":18849},"transpile",{"type":26,"value":18851}," किया जाना चाहिए — अमूर्त संचालन से हार्डवेयर के native gate set में परिवर्तित किया जाना, जिसमें qubit संचालन को भौतिक कनेक्टिविटी बाधाओं का सम्मान करने के लिए पुनर्निर्देशित किया जाता है। यह इस बात के अनुरूप है कि कैसे एक डीप लर्निंग मॉडल को किसी विशिष्ट चिप आर्किटेक्चर के लिए संकलित और अनुकूलित किया जाना चाहिए।",{"type":21,"tag":312,"props":18853,"children":18855},{"className":3636,"code":18854,"language":3638,"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",[18856],{"type":21,"tag":79,"props":18857,"children":18858},{"__ignoreMap":7},[18859,18880,18887,18895],{"type":21,"tag":322,"props":18860,"children":18861},{"class":324,"line":325},[18862,18866,18871,18875],{"type":21,"tag":322,"props":18863,"children":18864},{"style":3648},[18865],{"type":26,"value":3651},{"type":21,"tag":322,"props":18867,"children":18868},{"style":329},[18869],{"type":26,"value":18870}," qiskit.compiler ",{"type":21,"tag":322,"props":18872,"children":18873},{"style":3648},[18874],{"type":26,"value":3661},{"type":21,"tag":322,"props":18876,"children":18877},{"style":329},[18878],{"type":26,"value":18879}," transpile\n",{"type":21,"tag":322,"props":18881,"children":18882},{"class":324,"line":335},[18883],{"type":21,"tag":322,"props":18884,"children":18885},{"emptyLinePlaceholder":3672},[18886],{"type":26,"value":3675},{"type":21,"tag":322,"props":18888,"children":18889},{"class":324,"line":344},[18890],{"type":21,"tag":322,"props":18891,"children":18892},{"style":3898},[18893],{"type":26,"value":18894},"# Circuit written in abstract gates\n",{"type":21,"tag":322,"props":18896,"children":18897},{"class":324,"line":407},[18898,18903,18907,18912,18917,18921,18926,18930,18934,18938],{"type":21,"tag":322,"props":18899,"children":18900},{"style":329},[18901],{"type":26,"value":18902},"transpiled ",{"type":21,"tag":322,"props":18904,"children":18905},{"style":3648},[18906],{"type":26,"value":3688},{"type":21,"tag":322,"props":18908,"children":18909},{"style":329},[18910],{"type":26,"value":18911}," transpile(circuit, ",{"type":21,"tag":322,"props":18913,"children":18914},{"style":3713},[18915],{"type":26,"value":18916},"backend",{"type":21,"tag":322,"props":18918,"children":18919},{"style":3648},[18920],{"type":26,"value":3688},{"type":21,"tag":322,"props":18922,"children":18923},{"style":329},[18924],{"type":26,"value":18925},"real_qpu, ",{"type":21,"tag":322,"props":18927,"children":18928},{"style":3713},[18929],{"type":26,"value":6725},{"type":21,"tag":322,"props":18931,"children":18932},{"style":3648},[18933],{"type":26,"value":3688},{"type":21,"tag":322,"props":18935,"children":18936},{"style":348},[18937],{"type":26,"value":6961},{"type":21,"tag":322,"props":18939,"children":18940},{"style":329},[18941],{"type":26,"value":3748},{"type":21,"tag":22,"props":18943,"children":18944},{},[18945],{"type":26,"value":18946},"जैसे-जैसे क्वांटम उत्पादन की ओर बढ़ता है, \"transpilation overhead\" और \"transpilation depth\" मानक इंजीनियरिंग चिंताएँ बन जाएँगी — ठीक वैसे ही जैसे inference latency और model quantization आज हैं।",{"type":21,"tag":18624,"props":18948,"children":18949},{},[],{"type":21,"tag":59,"props":18951,"children":18953},{"id":18952},"_6-coherence-time-t1-t2",[18954],{"type":26,"value":18955},"6. Coherence Time (T1 \u002F T2)",{"type":21,"tag":22,"props":18957,"children":18958},{},[18959],{"type":21,"tag":71,"props":18960,"children":18961},{},[18962],{"type":26,"value":18963},"AI समानांतर: Context window \u002F memory limit",{"type":21,"tag":22,"props":18965,"children":18966},{},[18967,18969,18973,18975,18980,18982,18987],{"type":26,"value":18968},"एक qubit हमेशा के लिए क्वांटम नहीं रहता। यह क्षय होता है — पर्यावरणीय शोर के माध्यम से अपने superposition को खो देता है, जिस प्रक्रिया को ",{"type":21,"tag":51,"props":18970,"children":18971},{},[18972],{"type":26,"value":9382},{"type":26,"value":18974}," कहा जाता है। ",{"type":21,"tag":71,"props":18976,"children":18977},{},[18978],{"type":26,"value":18979},"T1 time",{"type":26,"value":18981}," (energy relaxation) और ",{"type":21,"tag":71,"props":18983,"children":18984},{},[18985],{"type":26,"value":18986},"T2 time",{"type":26,"value":18988}," (phase coherence) मापते हैं कि एक qubit कितने समय तक उपयोगी रहता है।",{"type":21,"tag":22,"props":18990,"children":18991},{},[18992,18994,18999],{"type":26,"value":18993},"यह context window का क्वांटम समकक्ष है: यह उस ",{"type":21,"tag":51,"props":18995,"children":18996},{},[18997],{"type":26,"value":18998},"अधिकतम circuit depth",{"type":26,"value":19000}," को परिभाषित करता है जिसे आप अपने qubits के क्लासिकल शोर बनने से पहले निष्पादित कर सकते हैं। IBM के superconducting qubits का T2 समय लगभग 100–300 माइक्रोसेकंड है। IonQ के trapped-ion qubits का T2 समय एक सेकंड से अधिक है — यही कारण है कि उनके सर्किट बहुत अधिक गहरे हो सकते हैं।",{"type":21,"tag":200,"props":19002,"children":19003},{},[19004],{"type":21,"tag":22,"props":19005,"children":19006},{},[19007],{"type":26,"value":19008},"\"हमारा सर्किट इस backend के लिए बहुत गहरा है — अंतिम gate के निष्पादित होने से पहले हम T2 तक पहुँच जाएँगे।\"",{"type":21,"tag":22,"props":19010,"children":19011},{},[19012],{"type":26,"value":19013},"डेवलपर coherence time का बजट उसी तरह बनाना सीखेंगे जैसे वे memory का बजट बनाते हैं।",{"type":21,"tag":18624,"props":19015,"children":19016},{},[],{"type":21,"tag":59,"props":19018,"children":19020},{"id":19019},"_7-decoherence-budget",[19021],{"type":26,"value":19022},"7. Decoherence Budget",{"type":21,"tag":22,"props":19024,"children":19025},{},[19026],{"type":21,"tag":71,"props":19027,"children":19028},{},[19029],{"type":26,"value":19030},"AI समानांतर: Latency budget \u002F compute budget",{"type":21,"tag":22,"props":19032,"children":19033},{},[19034,19036,19041],{"type":26,"value":19035},"T1\u002FT2 का एक स्वाभाविक विस्तार: ",{"type":21,"tag":71,"props":19037,"children":19038},{},[19039],{"type":26,"value":19040},"decoherence budget",{"type":26,"value":19042}," वह कुल \"coherence time\" है जो किसी सर्किट के पूरा होने के लिए उपलब्ध है, इससे पहले कि त्रुटियाँ उपयोगिता से परे जमा हो जाएँ। लंबे सर्किट अधिक decoherence budget का उपभोग करते हैं।",{"type":21,"tag":22,"props":19044,"children":19045},{},[19046],{"type":26,"value":19047},"जैसे-जैसे क्वांटम अनुप्रयोग अधिक जटिल होते जाएँगे, आर्किटेक्ट ऐसे सिस्टम डिज़ाइन करेंगे जो decoherence budgets के भीतर रहें — circuit depth बनाम result fidelity के बीच समझौता करते हुए, ठीक वैसे ही जैसे backend इंजीनियर आज response latency बनाम compute cost के बीच समझौता करते हैं।",{"type":21,"tag":18624,"props":19049,"children":19050},{},[],{"type":21,"tag":59,"props":19052,"children":19054},{"id":19053},"_8-circuit-fidelity",[19055],{"type":26,"value":19056},"8. Circuit Fidelity",{"type":21,"tag":22,"props":19058,"children":19059},{},[19060],{"type":21,"tag":71,"props":19061,"children":19062},{},[19063],{"type":26,"value":19064},"AI समानांतर: Model accuracy \u002F F1 score",{"type":21,"tag":22,"props":19066,"children":19067},{},[19068,19072],{"type":21,"tag":71,"props":19069,"children":19070},{},[19071],{"type":26,"value":14080},{"type":26,"value":19073}," मापता है कि किसी सर्किट द्वारा उत्पन्न वास्तविक क्वांटम अवस्था आदर्श सैद्धांतिक अवस्था के कितनी करीब है। 99% fidelity वाला सर्किट उत्कृष्ट है। 90% पर वाला परिशुद्धता अनुप्रयोगों के लिए बेकार हो सकता है।",{"type":21,"tag":22,"props":19075,"children":19076},{},[19077],{"type":26,"value":19078},"प्रत्येक लागू किए गए gate के साथ (प्रत्येक gate की एक error rate होती है) और circuit depth के साथ (लंबे सर्किट अधिक decohere होते हैं) fidelity घटती है। यह QPU परिणामों के लिए प्राथमिक गुणवत्ता मीट्रिक बन जाएगी — किसी बेंचमार्क पर model accuracy का क्वांटम समकक्ष।",{"type":21,"tag":18624,"props":19080,"children":19081},{},[],{"type":21,"tag":59,"props":19083,"children":19085},{"id":19084},"_9-physical-vs-logical-qubit",[19086],{"type":26,"value":19087},"9. Physical vs. Logical Qubit",{"type":21,"tag":22,"props":19089,"children":19090},{},[19091],{"type":21,"tag":71,"props":19092,"children":19093},{},[19094],{"type":26,"value":19095},"AI समानांतर: Raw parameters बनाम effective model capacity",{"type":21,"tag":22,"props":19097,"children":19098},{},[19099,19101,19105,19107,19111,19113,19118],{"type":26,"value":19100},"मुख्यधारा में जाने वाले सबसे महत्वपूर्ण अंतरों में से एक: एक ",{"type":21,"tag":71,"props":19102,"children":19103},{},[19104],{"type":26,"value":9374},{"type":26,"value":19106}," एक वास्तविक हार्डवेयर qubit है (शोरयुक्त, त्रुटि की प्रवृत्ति वाला)। एक ",{"type":21,"tag":71,"props":19108,"children":19109},{},[19110],{"type":26,"value":9403},{"type":26,"value":19112}," एक ",{"type":21,"tag":51,"props":19114,"children":19115},{},[19116],{"type":26,"value":19117},"error-corrected",{"type":26,"value":19119}," qubit है जिसे कई physical qubits में एन्कोड किया जाता है — विश्वसनीय, लेकिन महंगा।",{"type":21,"tag":22,"props":19121,"children":19122},{},[19123,19125,19130],{"type":26,"value":19124},"आज का सर्वोत्तम हार्डवेयर (IBM, IonQ) physical qubits के साथ संचालित होता है। पूर्ण fault-tolerant क्वांटम कंप्यूटिंग के लिए logical qubits की आवश्यकता होती है। वर्तमान अनुमान surface code error correction के लिए यह अनुपात ",{"type":21,"tag":71,"props":19126,"children":19127},{},[19128],{"type":26,"value":19129},"1,000–10,000 physical qubits प्रति logical qubit",{"type":26,"value":19131}," रखते हैं।",{"type":21,"tag":22,"props":19133,"children":19134},{},[19135],{"type":26,"value":19136},"जब आप सुनते हैं \"IBM के पास 1,000 qubits हैं,\" तो वे physical qubits हैं। RSA-2048 के खिलाफ Shor's algorithm चलाने में सक्षम एक fault-tolerant कंप्यूटर को लाखों physical qubits की आवश्यकता होगी।",{"type":21,"tag":22,"props":19138,"children":19139},{},[19140],{"type":26,"value":19141},"इस अंतर को समझना क्वांटम हार्डवेयर मार्केटिंग को तकनीकी वास्तविकता से अलग करने के लिए आवश्यक होगा।",{"type":21,"tag":18624,"props":19143,"children":19144},{},[],{"type":21,"tag":59,"props":19146,"children":19148},{"id":19147},"_10-quantum-safe-post-quantum-cryptography",[19149],{"type":26,"value":19150},"10. Quantum-Safe \u002F Post-Quantum Cryptography",{"type":21,"tag":22,"props":19152,"children":19153},{},[19154],{"type":21,"tag":71,"props":19155,"children":19156},{},[19157],{"type":26,"value":19158},"AI समानांतर: \"AI-resistant\" (कम उपयुक्त) → वास्तव में \"GDPR for algorithms\" के अधिक करीब",{"type":21,"tag":22,"props":19160,"children":19161},{},[19162,19164,19169],{"type":26,"value":19163},"यह शब्द पहले से ही शोध की दुनिया को छोड़ रहा है। ",{"type":21,"tag":71,"props":19165,"children":19166},{},[19167],{"type":26,"value":19168},"Post-quantum cryptography",{"type":26,"value":19170}," (PQC) उन क्लासिकल क्रिप्टोग्राफ़िक एल्गोरिदम को संदर्भित करता है जो क्वांटम कंप्यूटरों के हमलों का प्रतिरोध करने के लिए डिज़ाइन किए गए हैं। खतरा: Shor's algorithm उन बड़े primes का गुणनखंडन कर सकता है जो RSA को आधार देते हैं, जिससे आज के अधिकांश public-key encryption टूट जाते हैं।",{"type":21,"tag":22,"props":19172,"children":19173},{},[19174,19176,19181],{"type":26,"value":19175},"NIST ने 2024 में अपने पहले post-quantum cryptography मानकों को अंतिम रूप दिया (CRYSTALS-Kyber, CRYSTALS-Dilithium)। ",{"type":21,"tag":71,"props":19177,"children":19178},{},[19179],{"type":26,"value":19180},"\"Quantum-safe\"",{"type":26,"value":19182}," पाँच वर्षों के भीतर एक प्रमाणन और अनुपालन शब्द बन जाएगा — सुरक्षा ऑडिट, खरीद आवश्यकताओं और क्लाउड प्रदाता दस्तावेज़ीकरण में दिखाई देगा।",{"type":21,"tag":22,"props":19184,"children":19185},{},[19186,19188,19193],{"type":26,"value":19187},"अधिकांश संगठनों को जिस अटैक वेक्टर के लिए तैयारी करनी चाहिए: ",{"type":21,"tag":71,"props":19189,"children":19190},{},[19191],{"type":26,"value":19192},"\"harvest now, decrypt later\"",{"type":26,"value":19194}," — विरोधी आज एन्क्रिप्टेड डेटा एकत्र कर रहे हैं इस इरादे से कि क्वांटम कंप्यूटरों के पर्याप्त सक्षम होने पर उसे डिक्रिप्ट किया जाए।",{"type":21,"tag":18624,"props":19196,"children":19197},{},[],{"type":21,"tag":59,"props":19199,"children":19201},{"id":19200},"_11-hybrid-algorithm-quantum-classical-hybrid",[19202],{"type":26,"value":19203},"11. Hybrid Algorithm \u002F Quantum-Classical Hybrid",{"type":21,"tag":22,"props":19205,"children":19206},{},[19207],{"type":21,"tag":71,"props":19208,"children":19209},{},[19210],{"type":26,"value":19211},"AI समानांतर: \"AI-assisted\" वर्कफ़्लो, CPU+GPU heterogeneous computing",{"type":21,"tag":22,"props":19213,"children":19214},{},[19215,19217,19222],{"type":26,"value":19216},"लगभग सभी निकट-अवधि क्वांटम अनुप्रयोग ",{"type":21,"tag":71,"props":19218,"children":19219},{},[19220],{"type":26,"value":19221},"hybrid",{"type":26,"value":19223}," हैं: एक क्लासिकल optimizer बार-बार एक क्वांटम सर्किट को कॉल करता है, उन हिस्सों के लिए क्वांटम हार्डवेयर का उपयोग करता है जिनसे क्लासिकल कंप्यूटर जूझते हैं (state preparation, interference) जबकि क्लासिकल कंप्यूटर optimization loops को संभालते हैं।",{"type":21,"tag":22,"props":19225,"children":19226},{},[19227],{"type":26,"value":19228},"VQE और QAOA विहित hybrid एल्गोरिदम हैं। जैसे-जैसे क्वांटम प्रोग्रामिंग फ्रेमवर्क परिपक्व होंगे, \"hybrid workflow orchestration\" — क्लासिकल और क्वांटम compute के बीच हैंडऑफ़ का प्रबंधन — एक मानक सॉफ़्टवेयर इंजीनियरिंग समस्या बन जाएगी। इसके इर्द-गिर्द बने टूल, फ्रेमवर्क और जॉब टाइटल की अपेक्षा करें।",{"type":21,"tag":18624,"props":19230,"children":19231},{},[],{"type":21,"tag":59,"props":19233,"children":19235},{"id":19234},"_12-variational-circuit-parameterized-quantum-circuit",[19236],{"type":26,"value":19237},"12. Variational Circuit (Parameterized Quantum Circuit)",{"type":21,"tag":22,"props":19239,"children":19240},{},[19241],{"type":21,"tag":71,"props":19242,"children":19243},{},[19244],{"type":26,"value":19245},"AI समानांतर: Neural network (trainable weights)",{"type":21,"tag":22,"props":19247,"children":19248},{},[19249,19251,19255,19257,19262],{"type":26,"value":19250},"एक ",{"type":21,"tag":71,"props":19252,"children":19253},{},[19254],{"type":26,"value":14285},{"type":26,"value":19256}," या ",{"type":21,"tag":71,"props":19258,"children":19259},{},[19260],{"type":26,"value":19261},"parameterized quantum circuit (PQC)",{"type":26,"value":19263}," एक क्वांटम सर्किट है जिसमें ट्यून करने योग्य rotation angles होते हैं — अनिवार्य रूप से एक क्वांटम neural network परत। इन parameters को एक cost function को न्यूनतम करने के लिए एक क्लासिकल optimizer द्वारा समायोजित किया जाता है।",{"type":21,"tag":22,"props":19265,"children":19266},{},[19267],{"type":26,"value":19268},"VQE एक variational circuit को energy estimator के रूप में उपयोग करता है। QAOA इसका उपयोग optimization समस्याओं को एन्कोड करने के लिए करता है। जैसे-जैसे quantum machine learning विकसित होगा, \"एक क्वांटम सर्किट को प्रशिक्षित करना\" उतना ही स्वाभाविक वाक्यांश बन जाएगा जितना \"एक neural network को प्रशिक्षित करना।\"",{"type":21,"tag":18624,"props":19270,"children":19271},{},[],{"type":21,"tag":59,"props":19273,"children":19275},{"id":19274},"_13-quantum-volume-qv",[19276],{"type":26,"value":19277},"13. Quantum Volume (QV)",{"type":21,"tag":22,"props":19279,"children":19280},{},[19281],{"type":21,"tag":71,"props":19282,"children":19283},{},[19284],{"type":26,"value":19285},"AI समानांतर: FLOPS, benchmark scores (MLPerf)",{"type":21,"tag":22,"props":19287,"children":19288},{},[19289,19293],{"type":21,"tag":71,"props":19290,"children":19291},{},[19292],{"type":26,"value":3591},{"type":26,"value":19294}," IBM द्वारा पेश किया गया एक एकल-संख्या बेंचमार्क है जो QPU प्रदर्शन को समग्र रूप से पकड़ता है — qubit गिनती, gate fidelity, connectivity और अधिकतम निष्पादन योग्य circuit depth को एक साथ ध्यान में रखते हुए।",{"type":21,"tag":22,"props":19296,"children":19297},{},[19298],{"type":26,"value":19299},"QV 128 (= 2^7, एक 7-qubit-समकक्ष सर्किट) वाला एक QPU QV 64 वाले से बेहतर प्रदर्शन करता है, भले ही कम-QV मशीन में अधिक raw qubits हों। यह क्वांटम दुनिया का \"MLPerf score\" है — एक संख्या जिसे विक्रेता विज्ञापित करेंगे और डेवलपर हार्डवेयर की तुलना करने के लिए उपयोग करेंगे।",{"type":21,"tag":18624,"props":19301,"children":19302},{},[],{"type":21,"tag":59,"props":19304,"children":19306},{"id":19305},"_14-quantum-job-quantum-queue",[19307],{"type":26,"value":19308},"14. Quantum Job \u002F Quantum Queue",{"type":21,"tag":22,"props":19310,"children":19311},{},[19312],{"type":21,"tag":71,"props":19313,"children":19314},{},[19315],{"type":26,"value":19316},"AI समानांतर: Batch inference jobs, GPU queue",{"type":21,"tag":22,"props":19318,"children":19319},{},[19320,19322,19327,19329,19334],{"type":26,"value":19321},"जब आप किसी वास्तविक QPU को एक सर्किट सबमिट करते हैं, तो आप एक ",{"type":21,"tag":71,"props":19323,"children":19324},{},[19325],{"type":26,"value":19326},"quantum job",{"type":26,"value":19328}," सबमिट करते हैं जो एक ",{"type":21,"tag":71,"props":19330,"children":19331},{},[19332],{"type":26,"value":19333},"quantum queue",{"type":26,"value":19335}," में प्रवेश करता है — एक शेड्यूलिंग सिस्टम जो साझा हार्डवेयर तक पहुँच का प्रबंधन करता है। IBM Quantum के free tier जॉब अक्सर paid-tier ग्राहकों के पीछे कतार में मिनटों या घंटों प्रतीक्षा करते हैं।",{"type":21,"tag":22,"props":19337,"children":19338},{},[19339],{"type":26,"value":19340},"\"Job throughput,\" \"queue depth,\" और \"job priority\" क्वांटम इंफ्रास्ट्रक्चर टीमों के लिए परिचालन मीट्रिक बन जाएँगे — आज GPU cluster जॉब कतारों के प्रबंधन के भाव में समान।",{"type":21,"tag":18624,"props":19342,"children":19343},{},[],{"type":21,"tag":59,"props":19345,"children":19347},{"id":19346},"_15-error-mitigation-vs-error-correction",[19348],{"type":26,"value":19349},"15. Error Mitigation vs. Error Correction",{"type":21,"tag":22,"props":19351,"children":19352},{},[19353],{"type":21,"tag":71,"props":19354,"children":19355},{},[19356],{"type":26,"value":19357},"AI समानांतर: Regularization (mitigation) बनाम hardware ECC (correction)",{"type":21,"tag":22,"props":19359,"children":19360},{},[19361],{"type":26,"value":19362},"यह अंतर मायने रखता है और क्वांटम के मुख्यधारा में जाने के बाद लगातार गलत तरीके से उपयोग किया जाएगा।",{"type":21,"tag":22,"props":19364,"children":19365},{},[19366,19371],{"type":21,"tag":71,"props":19367,"children":19368},{},[19369],{"type":26,"value":19370},"Error correction",{"type":26,"value":19372}," — logical qubits को अतिरेक के साथ एन्कोड करना ताकि त्रुटियों का पता लगाया और ठीक किया जा सके। इसके लिए ~1,000:1 physical-to-logical qubit ओवरहेड की आवश्यकता होती है। अभी तक बड़े पैमाने पर उपलब्ध नहीं है।",{"type":21,"tag":22,"props":19374,"children":19375},{},[19376,19380,19382,19387],{"type":21,"tag":71,"props":19377,"children":19378},{},[19379],{"type":26,"value":4500},{"type":26,"value":19381}," — क्लासिकल पोस्ट-प्रोसेसिंग तकनीकें जो शोर के प्रभाव को सांख्यिकीय रूप से कम करती हैं ",{"type":21,"tag":51,"props":19383,"children":19384},{},[19385],{"type":26,"value":19386},"बिना",{"type":26,"value":19388}," इसे भौतिक रूप से ठीक किए। Zero-noise extrapolation, probabilistic error cancellation, measurement error mitigation। अभी उपलब्ध, NISQ हार्डवेयर पर।",{"type":21,"tag":22,"props":19390,"children":19391},{},[19392],{"type":26,"value":19393},"जब कोई विक्रेता दावा करता है कि उनका QPU \"त्रुटियों को संभालता है,\" तो हमेशा पूछें कि उनका मतलब किससे है।",{"type":21,"tag":18624,"props":19395,"children":19396},{},[],{"type":21,"tag":59,"props":19398,"children":19400},{"id":19399},"_16-quantum-developer-quantum-engineer",[19401],{"type":26,"value":19402},"16. Quantum Developer \u002F Quantum Engineer",{"type":21,"tag":22,"props":19404,"children":19405},{},[19406],{"type":21,"tag":71,"props":19407,"children":19408},{},[19409],{"type":26,"value":19410},"AI समानांतर: ML Engineer, AI Engineer, Prompt Engineer",{"type":21,"tag":22,"props":19412,"children":19413},{},[19414,19416,19421],{"type":26,"value":19415},"शायद सबसे परिणामी नया शब्द: ",{"type":21,"tag":71,"props":19417,"children":19418},{},[19419],{"type":26,"value":19420},"quantum developer",{"type":26,"value":19422},"। जैसे \"AI engineer\" की भूमिका 2023 के आसपास स्पष्ट हुई — पारंपरिक सॉफ़्टवेयर इंजीनियरिंग और ML शोध दोनों से अलग — वैसे ही \"quantum developer\" की भूमिका एक विशिष्ट कौशल समूह के इर्द-गिर्द उभर रही है:",{"type":21,"tag":3566,"props":19424,"children":19425},{},[19426,19431,19436,19441],{"type":21,"tag":3570,"props":19427,"children":19428},{},[19429],{"type":26,"value":19430},"Qiskit, Cirq, या HLQuantum जैसे फ्रेमवर्क में सर्किट लिखना",{"type":21,"tag":3570,"props":19432,"children":19433},{},[19434],{"type":26,"value":19435},"हार्डवेयर बाधाओं (connectivity, noise, coherence) को समझना",{"type":21,"tag":3570,"props":19437,"children":19438},{},[19439],{"type":26,"value":19440},"Hybrid classical-quantum वर्कफ़्लो डिज़ाइन करना",{"type":21,"tag":3570,"props":19442,"children":19443},{},[19444],{"type":26,"value":19445},"संभाव्य परिणामों और fidelity मीट्रिक की व्याख्या करना",{"type":21,"tag":22,"props":19447,"children":19448},{},[19449,19455],{"type":21,"tag":29,"props":19450,"children":19452},{"href":19451},"\u002Fhlquantum",[19453],{"type":26,"value":19454},"HLQuantum",{"type":26,"value":19456}," जैसे टूल — जो सभी backends में एक एकीकृत API प्रदान करते हैं — डेवलपरों को हर SDK की विशिष्टताओं में गहरी विशेषज्ञता के बिना पोर्टेबल क्वांटम कोड लिखने देकर इसे तेज़ कर रहे हैं। 2028 का \"quantum developer\" संभवतः एक abstraction layer का उपयोग उसी तरह करेगा जैसे आज का वेब डेवलपर एक फ्रेमवर्क का उपयोग करता है, बजाय प्रत्येक backend के लिए raw सर्किट लिखने के।",{"type":21,"tag":18624,"props":19458,"children":19459},{},[],{"type":21,"tag":59,"props":19461,"children":19463},{"id":19462},"पैटर्न",[19464],{"type":26,"value":19462},{"type":21,"tag":22,"props":19466,"children":19467},{},[19468],{"type":26,"value":19469},"इन 16 शब्दों को देखने पर, एक पैटर्न उभरता है। हर बड़ा प्लेटफ़ॉर्म बदलाव उत्पन्न करता है:",{"type":21,"tag":7457,"props":19471,"children":19472},{},[19473,19483,19493,19503,19513,19523,19533],{"type":21,"tag":3570,"props":19474,"children":19475},{},[19476,19481],{"type":21,"tag":71,"props":19477,"children":19478},{},[19479],{"type":26,"value":19480},"compute की एक नई इकाई",{"type":26,"value":19482}," — GPU → QPU, tokens → shots",{"type":21,"tag":3570,"props":19484,"children":19485},{},[19486,19491],{"type":21,"tag":71,"props":19487,"children":19488},{},[19489],{"type":26,"value":19490},"एक नई संसाधन बाधा",{"type":26,"value":19492}," — VRAM, context window → coherence time, shot budget",{"type":21,"tag":3570,"props":19494,"children":19495},{},[19496,19501],{"type":21,"tag":71,"props":19497,"children":19498},{},[19499],{"type":26,"value":19500},"एक नई गुणवत्ता मीट्रिक",{"type":26,"value":19502}," — accuracy, F1 → fidelity, quantum volume",{"type":21,"tag":3570,"props":19504,"children":19505},{},[19506,19511],{"type":21,"tag":71,"props":19507,"children":19508},{},[19509],{"type":26,"value":19510},"एक नया compilation चरण",{"type":26,"value":19512}," — model quantization → transpilation",{"type":21,"tag":3570,"props":19514,"children":19515},{},[19516,19521],{"type":21,"tag":71,"props":19517,"children":19518},{},[19519],{"type":26,"value":19520},"एक नया hybrid आर्किटेक्चर",{"type":26,"value":19522}," — CPU+GPU → classical+quantum",{"type":21,"tag":3570,"props":19524,"children":19525},{},[19526,19531],{"type":21,"tag":71,"props":19527,"children":19528},{},[19529],{"type":26,"value":19530},"एक नई सुरक्षा सतह",{"type":26,"value":19532}," — adversarial ML → post-quantum cryptography",{"type":21,"tag":3570,"props":19534,"children":19535},{},[19536,19541],{"type":21,"tag":71,"props":19537,"children":19538},{},[19539],{"type":26,"value":19540},"एक नया जॉब टाइटल",{"type":26,"value":19542}," — ML engineer → quantum engineer",{"type":21,"tag":22,"props":19544,"children":19545},{},[19546],{"type":26,"value":19547},"क्वांटम कंप्यूटिंग की शब्दावली केवल शब्दजाल नहीं है — यह सीधे वास्तविक इंजीनियरिंग बाधाओं, वास्तविक समझौतों और वास्तविक अवसरों से मैप होती है। मुख्यधारा की लहर के आने से पहले इसे सीखना वही दांव है जो शुरुआती क्लाउड इंजीनियरों ने तब लगाया था जब उन्होंने अधिकांश डेवलपरों से पहले \"latency\" और \"throughput\" की परवाह करना शुरू किया।",{"type":21,"tag":22,"props":19549,"children":19550},{},[19551],{"type":26,"value":19552},"शुरू करने का सबसे अच्छा समय पाँच वर्ष पहले था। दूसरा सबसे अच्छा समय अभी है — जबकि हार्डवेयर अभी भी मुफ़्त में एक्सेस करने योग्य है और सीखने का वक्र सबसे कम है।",{"type":21,"tag":22,"props":19554,"children":19555},{},[19556,19561,19562],{"type":21,"tag":71,"props":19557,"children":19558},{},[19559],{"type":26,"value":19560},"यहाँ से शुरू करें:",{"type":26,"value":1911},{"type":21,"tag":29,"props":19563,"children":19564},{"href":1014},[19565],{"type":26,"value":19566},"अपना पहला क्वांटम सर्किट मुफ़्त में चलाएँ →",{"type":21,"tag":703,"props":19568,"children":19569},{},[19570],{"type":26,"value":707},{"title":7,"searchDepth":335,"depth":335,"links":19572},[19573,19574,19575,19576,19577,19578,19579,19580,19581,19582,19583,19584,19585,19586,19587,19588,19589],{"id":18629,"depth":335,"text":18632},{"id":18682,"depth":335,"text":18685},{"id":18736,"depth":335,"text":18739},{"id":18788,"depth":335,"text":18791},{"id":18828,"depth":335,"text":18831},{"id":18952,"depth":335,"text":18955},{"id":19019,"depth":335,"text":19022},{"id":19053,"depth":335,"text":19056},{"id":19084,"depth":335,"text":19087},{"id":19147,"depth":335,"text":19150},{"id":19200,"depth":335,"text":19203},{"id":19234,"depth":335,"text":19237},{"id":19274,"depth":335,"text":19277},{"id":19305,"depth":335,"text":19308},{"id":19346,"depth":335,"text":19349},{"id":19399,"depth":335,"text":19402},{"id":19462,"depth":335,"text":19462},"content:hi:blog:quantum-computing-new-vocabulary.md","hi\u002Fblog\u002Fquantum-computing-new-vocabulary.md","hi\u002Fblog\u002Fquantum-computing-new-vocabulary",{"_path":19594,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":19595,"description":19596,"date":19597,"author":11,"tags":19598,"readingTime":16,"body":19599,"_type":715,"_id":20612,"_source":717,"_file":20613,"_stem":20614,"_extension":720},"\u002Fhi\u002Fblog\u002Fquantum-use-cases-2026","क्वांटम कंप्यूटर 2026 में वास्तव में क्या कर सकते हैं","एक यथार्थवादी दृष्टिकोण कि कौन से क्वांटम कंप्यूटिंग अनुप्रयोग अभी प्रोडक्शन के लिए तैयार हैं, कौन से निकट-अवधि के हैं, और कौन से दीर्घकालिक शोध लक्ष्य बने हुए हैं — असली प्रगति को अतिशयोक्ति से अलग करते हुए।","2026-03-12",[1042,15,7598],{"type":18,"children":19600,"toc":20592},[19601,19606,19611,19617,19622,19655,19660,19663,19669,19675,19685,19695,19705,19715,19725,19890,19893,19899,19908,19917,19935,19945,19954,19957,19963,19972,19989,19998,20015,20018,20024,20033,20042,20059,20069,20072,20078,20084,20093,20102,20112,20122,20125,20131,20156,20165,20174,20177,20183,20192,20201,20210,20219,20222,20228,20234,20243,20253,20263,20280,20283,20289,20298,20307,20316,20319,20325,20334,20343,20352,20355,20361,20527,20545,20557,20562,20588],{"type":21,"tag":22,"props":19602,"children":19603},{},[19604],{"type":26,"value":19605},"\"क्वांटम कंप्यूटर दवा खोज में क्रांति लाएंगे, सभी एन्क्रिप्शन तोड़ देंगे, और जलवायु परिवर्तन को हल कर देंगे।\" आपने यह प्रचार सुना है। अब यहाँ ईमानदार जवाब है: क्वांटम कंप्यूटर 2026 में, आज मौजूद हार्डवेयर पर, वास्तव में क्या कर सकते हैं?",{"type":21,"tag":22,"props":19607,"children":19608},{},[19609],{"type":26,"value":19610},"ईमानदार जवाब सूक्ष्म है — और अतिशयोक्ति या संदेह दोनों की तुलना में अधिक दिलचस्प है।",{"type":21,"tag":59,"props":19612,"children":19614},{"id":19613},"क्वांटम-तैयारी-के-बारे-में-कैसे-सोचें",[19615],{"type":26,"value":19616},"क्वांटम तैयारी के बारे में कैसे सोचें",{"type":21,"tag":22,"props":19618,"children":19619},{},[19620],{"type":26,"value":19621},"क्वांटम अनुप्रयोग तीन श्रेणियों में आते हैं:",{"type":21,"tag":3566,"props":19623,"children":19624},{},[19625,19635,19645],{"type":21,"tag":3570,"props":19626,"children":19627},{},[19628,19633],{"type":21,"tag":71,"props":19629,"children":19630},{},[19631],{"type":26,"value":19632},"NISQ-युग के अनुप्रयोग (अभी):",{"type":26,"value":19634}," ऐसे एल्गोरिदम जो आज के शोरगुल वाले 50–1000 क्यूबिट हार्डवेयर पर सीमित सर्किट गहराई के साथ काम करते हैं। परिणाम अनुमानित हो सकते हैं। मूल्य अन्वेषणात्मक या प्रदर्शनात्मक है।",{"type":21,"tag":3570,"props":19636,"children":19637},{},[19638,19643],{"type":21,"tag":71,"props":19639,"children":19640},{},[19641],{"type":26,"value":19642},"निकट-अवधि के अनुप्रयोग (2–7 वर्ष):",{"type":26,"value":19644}," मामूली त्रुटि सुधार की आवश्यकता होती है — सैकड़ों से कुछ हज़ार तार्किक क्यूबिट। विशिष्ट समस्या उदाहरणों के लिए व्यावहारिक गति वृद्धि दिखाई देने लगती है।",{"type":21,"tag":3570,"props":19646,"children":19647},{},[19648,19653],{"type":21,"tag":71,"props":19649,"children":19650},{},[19651],{"type":26,"value":19652},"दीर्घकालिक अनुप्रयोग (7–20+ वर्ष):",{"type":26,"value":19654}," लाखों भौतिक क्यूबिट और पूर्ण फॉल्ट टॉलरेंस की आवश्यकता होती है। परिवर्तनकारी प्रभाव।",{"type":21,"tag":22,"props":19656,"children":19657},{},[19658],{"type":26,"value":19659},"अतिशयोक्ति और वास्तविकता के बीच का अंतर ज़्यादातर इन तीन श्रेणियों को भ्रमित करने से आता है।",{"type":21,"tag":18624,"props":19661,"children":19662},{},[],{"type":21,"tag":59,"props":19664,"children":19666},{"id":19665},"अभी-क्या-काम-करता-है-nisq-युग",[19667],{"type":26,"value":19668},"अभी क्या काम करता है (NISQ युग)",{"type":21,"tag":17809,"props":19670,"children":19672},{"id":19671},"क्वांटम-रसायन-सिमुलेशन-सीमित-अणु",[19673],{"type":26,"value":19674},"क्वांटम रसायन सिमुलेशन — सीमित अणु",{"type":21,"tag":22,"props":19676,"children":19677},{},[19678,19683],{"type":21,"tag":71,"props":19679,"children":19680},{},[19681],{"type":26,"value":19682},"क्या:",{"type":26,"value":19684}," VQE का उपयोग करके छोटे अणुओं की ग्राउंड स्टेट ऊर्जा का सिमुलेशन।",{"type":21,"tag":22,"props":19686,"children":19687},{},[19688,19693],{"type":21,"tag":71,"props":19689,"children":19690},{},[19691],{"type":26,"value":19692},"प्रदर्शित:",{"type":26,"value":19694}," IBM और अन्य ने वास्तविक QPUs पर H₂, LiH, BeH₂, और छोटे हाइड्रोकार्बन के लिए ग्राउंड स्टेट ऊर्जा की गणना की है। परिणाम 4–12 क्यूबिट समस्याओं के लिए शास्त्रीय विधियों से मेल खाते हैं।",{"type":21,"tag":22,"props":19696,"children":19697},{},[19698,19703],{"type":21,"tag":71,"props":19699,"children":19700},{},[19701],{"type":26,"value":19702},"अभी व्यावहारिक मूल्य:",{"type":26,"value":19704}," शोध और बेंचमार्किंग। उन अणुओं के लिए जिन्हें शास्त्रीय कंप्यूटर भी सटीक रूप से सिमुलेट कर सकते हैं, कोई लाभ नहीं है — लेकिन विधियों को मान्य किया जा रहा है।",{"type":21,"tag":22,"props":19706,"children":19707},{},[19708,19713],{"type":21,"tag":71,"props":19709,"children":19710},{},[19711],{"type":26,"value":19712},"बाधा:",{"type":26,"value":19714}," व्यावहारिक फार्मास्युटिकल प्रासंगिकता (50+ परमाणु) वाले अणुओं तक स्केल करने के लिए 100s तार्किक क्यूबिट की आवश्यकता होती है। वर्तमान शोरगुल वाले हार्डवेयर पर संभव नहीं।",{"type":21,"tag":22,"props":19716,"children":19717},{},[19718,19723],{"type":21,"tag":71,"props":19719,"children":19720},{},[19721],{"type":26,"value":19722},"कौन कर रहा है:",{"type":26,"value":19724}," IBM Quantum, IonQ (दवा खोज साझेदारियों के लिए), Quantinuum।",{"type":21,"tag":312,"props":19726,"children":19728},{"className":3636,"code":19727,"language":3638,"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",[19729],{"type":21,"tag":79,"props":19730,"children":19731},{"__ignoreMap":7},[19732,19753,19760,19768,19838],{"type":21,"tag":322,"props":19733,"children":19734},{"class":324,"line":325},[19735,19739,19744,19748],{"type":21,"tag":322,"props":19736,"children":19737},{"style":3648},[19738],{"type":26,"value":3661},{"type":21,"tag":322,"props":19740,"children":19741},{"style":329},[19742],{"type":26,"value":19743}," hlquantum ",{"type":21,"tag":322,"props":19745,"children":19746},{"style":3648},[19747],{"type":26,"value":4728},{"type":21,"tag":322,"props":19749,"children":19750},{"style":329},[19751],{"type":26,"value":19752}," hlq\n",{"type":21,"tag":322,"props":19754,"children":19755},{"class":324,"line":335},[19756],{"type":21,"tag":322,"props":19757,"children":19758},{"emptyLinePlaceholder":3672},[19759],{"type":26,"value":3675},{"type":21,"tag":322,"props":19761,"children":19762},{"class":324,"line":344},[19763],{"type":21,"tag":322,"props":19764,"children":19765},{"style":3898},[19766],{"type":26,"value":19767},"# VQE for H2 — works today, results match classical\n",{"type":21,"tag":322,"props":19769,"children":19770},{"class":324,"line":407},[19771,19776,19780,19785,19790,19794,19799,19803,19808,19812,19817,19821,19825,19829,19834],{"type":21,"tag":322,"props":19772,"children":19773},{"style":329},[19774],{"type":26,"value":19775},"result ",{"type":21,"tag":322,"props":19777,"children":19778},{"style":3648},[19779],{"type":26,"value":3688},{"type":21,"tag":322,"props":19781,"children":19782},{"style":329},[19783],{"type":26,"value":19784}," hlq.algorithms.vqe(",{"type":21,"tag":322,"props":19786,"children":19787},{"style":3713},[19788],{"type":26,"value":19789},"molecule",{"type":21,"tag":322,"props":19791,"children":19792},{"style":3648},[19793],{"type":26,"value":3688},{"type":21,"tag":322,"props":19795,"children":19796},{"style":359},[19797],{"type":26,"value":19798},"'H2'",{"type":21,"tag":322,"props":19800,"children":19801},{"style":329},[19802],{"type":26,"value":367},{"type":21,"tag":322,"props":19804,"children":19805},{"style":3713},[19806],{"type":26,"value":19807},"basis",{"type":21,"tag":322,"props":19809,"children":19810},{"style":3648},[19811],{"type":26,"value":3688},{"type":21,"tag":322,"props":19813,"children":19814},{"style":359},[19815],{"type":26,"value":19816},"'sto-3g'",{"type":21,"tag":322,"props":19818,"children":19819},{"style":329},[19820],{"type":26,"value":367},{"type":21,"tag":322,"props":19822,"children":19823},{"style":3713},[19824],{"type":26,"value":18916},{"type":21,"tag":322,"props":19826,"children":19827},{"style":3648},[19828],{"type":26,"value":3688},{"type":21,"tag":322,"props":19830,"children":19831},{"style":359},[19832],{"type":26,"value":19833},"'qiskit'",{"type":21,"tag":322,"props":19835,"children":19836},{"style":329},[19837],{"type":26,"value":3748},{"type":21,"tag":322,"props":19839,"children":19840},{"class":324,"line":431},[19841,19845,19849,19853,19858,19862,19867,19871,19875,19880,19885],{"type":21,"tag":322,"props":19842,"children":19843},{"style":348},[19844],{"type":26,"value":3763},{"type":21,"tag":322,"props":19846,"children":19847},{"style":329},[19848],{"type":26,"value":3768},{"type":21,"tag":322,"props":19850,"children":19851},{"style":3648},[19852],{"type":26,"value":3773},{"type":21,"tag":322,"props":19854,"children":19855},{"style":359},[19856],{"type":26,"value":19857},"\"Ground state: ",{"type":21,"tag":322,"props":19859,"children":19860},{"style":348},[19861],{"type":26,"value":3783},{"type":21,"tag":322,"props":19863,"children":19864},{"style":329},[19865],{"type":26,"value":19866},"result.energy",{"type":21,"tag":322,"props":19868,"children":19869},{"style":3648},[19870],{"type":26,"value":4095},{"type":21,"tag":322,"props":19872,"children":19873},{"style":348},[19874],{"type":26,"value":3793},{"type":21,"tag":322,"props":19876,"children":19877},{"style":359},[19878],{"type":26,"value":19879}," Ha\"",{"type":21,"tag":322,"props":19881,"children":19882},{"style":329},[19883],{"type":26,"value":19884},")  ",{"type":21,"tag":322,"props":19886,"children":19887},{"style":3898},[19888],{"type":26,"value":19889},"# -1.1372 Ha\n",{"type":21,"tag":18624,"props":19891,"children":19892},{},[],{"type":21,"tag":17809,"props":19894,"children":19896},{"id":19895},"क्वांटम-मशीन-लर्निंग-कॉन्सेप्ट-का-प्रमाण",[19897],{"type":26,"value":19898},"क्वांटम मशीन लर्निंग — कॉन्सेप्ट का प्रमाण",{"type":21,"tag":22,"props":19900,"children":19901},{},[19902,19906],{"type":21,"tag":71,"props":19903,"children":19904},{},[19905],{"type":26,"value":19682},{"type":26,"value":19907}," वर्गीकरण के लिए क्वांटम न्यूरल नेटवर्क (QNNs) और क्वांटम कर्नेल विधियाँ।",{"type":21,"tag":22,"props":19909,"children":19910},{},[19911,19915],{"type":21,"tag":71,"props":19912,"children":19913},{},[19914],{"type":26,"value":19692},{"type":26,"value":19916}," क्वांटम कर्नेल को खिलौना डेटासेट पर काम करते हुए दिखाया गया है। व्यावहारिक डेटासेट के लिए शास्त्रीय ML पर कोई क्वांटम लाभ प्रदर्शित नहीं किया गया है।",{"type":21,"tag":22,"props":19918,"children":19919},{},[19920,19924,19926,19933],{"type":21,"tag":71,"props":19921,"children":19922},{},[19923],{"type":26,"value":19702},{"type":26,"value":19925}," शोध। \"",{"type":21,"tag":29,"props":19927,"children":19930},{"href":19928,"rel":19929},"https:\u002F\u002Farxiv.org\u002Fabs\u002F2109.01aborting",[44],[19931],{"type":26,"value":19932},"no free lunch",{"type":26,"value":19934},"\" समस्या लागू होती है — QML में क्वांटम लाभ, यदि यह मौजूद है, तो विशिष्ट क्वांटम संरचना वाले विशिष्ट डेटा के लिए होगा।",{"type":21,"tag":22,"props":19936,"children":19937},{},[19938,19943],{"type":21,"tag":71,"props":19939,"children":19940},{},[19941],{"type":26,"value":19942},"उभरता हुआ यथार्थवादी उपयोग मामला:",{"type":26,"value":19944}," क्वांटम भौतिकी प्रयोगों से उत्पन्न होने वाले डेटासेट के लिए क्वांटम कर्नेल में अंतर्निहित क्वांटम संरचना हो सकती है जिसका क्वांटम ML शास्त्रीय विधियों की तुलना में बेहतर उपयोग करता है।",{"type":21,"tag":22,"props":19946,"children":19947},{},[19948,19952],{"type":21,"tag":71,"props":19949,"children":19950},{},[19951],{"type":26,"value":19722},{"type":26,"value":19953}," PennyLane\u002FXanadu (QML फोकस), IBM, Google (Quantum AI)।",{"type":21,"tag":18624,"props":19955,"children":19956},{},[],{"type":21,"tag":17809,"props":19958,"children":19960},{"id":19959},"ऑप्टिमाइज़ेशन-बेंचमार्किंग-qaoa",[19961],{"type":26,"value":19962},"ऑप्टिमाइज़ेशन बेंचमार्किंग (QAOA)",{"type":21,"tag":22,"props":19964,"children":19965},{},[19966,19970],{"type":21,"tag":71,"props":19967,"children":19968},{},[19969],{"type":26,"value":19682},{"type":26,"value":19971}," Max-Cut, पोर्टफोलियो ऑप्टिमाइज़ेशन, वाहन रूटिंग पर लागू QAOA।",{"type":21,"tag":22,"props":19973,"children":19974},{},[19975,19979,19981,19987],{"type":21,"tag":71,"props":19976,"children":19977},{},[19978],{"type":26,"value":19692},{"type":26,"value":19980}," QAOA सर्किट वास्तविक हार्डवेयर पर चलाए गए हैं। ",{"type":21,"tag":79,"props":19982,"children":19984},{"className":19983},[],[19985],{"type":26,"value":19986},"p=1",{"type":26,"value":19988}," पर, Max-Cut पर ~0.75 के सन्निकटन अनुपात NISQ उपकरणों पर प्राप्त किए जा सकते हैं।",{"type":21,"tag":22,"props":19990,"children":19991},{},[19992,19996],{"type":21,"tag":71,"props":19993,"children":19994},{},[19995],{"type":26,"value":19702},{"type":26,"value":19997}," वास्तविक समस्या आकारों के लिए शास्त्रीय सॉल्वर्स (simulated annealing, GUROBI) के साथ प्रतिस्पर्धी नहीं। शोध और हार्डवेयर बेंचमार्किंग के लिए मूल्यवान।",{"type":21,"tag":22,"props":19999,"children":20000},{},[20001,20006,20008,20013],{"type":21,"tag":71,"props":20002,"children":20003},{},[20004],{"type":26,"value":20005},"यह कब मायने रखता है:",{"type":26,"value":20007}," महत्वपूर्ण लाभ के लिए पर्याप्त बड़े ",{"type":21,"tag":79,"props":20009,"children":20011},{"className":20010},[],[20012],{"type":26,"value":22},{"type":26,"value":20014}," पर, सर्किट NISQ उपकरणों के लिए बहुत गहरे होते हैं। त्रुटि सुधार की आवश्यकता है।",{"type":21,"tag":18624,"props":20016,"children":20017},{},[],{"type":21,"tag":17809,"props":20019,"children":20021},{"id":20020},"रैंडम-सर्किट-सैंपलिंग-क्वांटम-सुप्रीमेसी-दावे",[20022],{"type":26,"value":20023},"रैंडम सर्किट सैंपलिंग (क्वांटम सुप्रीमेसी दावे)",{"type":21,"tag":22,"props":20025,"children":20026},{},[20027,20031],{"type":21,"tag":71,"props":20028,"children":20029},{},[20030],{"type":26,"value":19682},{"type":26,"value":20032}," रैंडम क्वांटम सर्किट से सैंपलिंग।",{"type":21,"tag":22,"props":20034,"children":20035},{},[20036,20040],{"type":21,"tag":71,"props":20037,"children":20038},{},[20039],{"type":26,"value":19692},{"type":26,"value":20041}," Google (2019, Sycamore), IBM (2023, Eagle), चीनी समूह (2020, 2021)।",{"type":21,"tag":22,"props":20043,"children":20044},{},[20045,20050,20052,20057],{"type":21,"tag":71,"props":20046,"children":20047},{},[20048],{"type":26,"value":20049},"व्यावहारिक मूल्य:",{"type":26,"value":20051}," वर्तमान में कोई नहीं — रैंडम सर्किट सैंपलिंग का कोई ज्ञात अनुप्रयोग नहीं है। यह एक हार्डवेयर बेंचमार्क है जो प्रदर्शित करता है कि क्वांटम उपकरण ",{"type":21,"tag":51,"props":20053,"children":20054},{},[20055],{"type":26,"value":20056},"कुछ ऐसा",{"type":26,"value":20058}," करते हैं जिसे शास्त्रीय कंप्यूटर सिमुलेट करने में संघर्ष करते हैं।",{"type":21,"tag":22,"props":20060,"children":20061},{},[20062,20067],{"type":21,"tag":71,"props":20063,"children":20064},{},[20065],{"type":26,"value":20066},"यह क्यों मायने रखता है:",{"type":26,"value":20068}," यह मान्य करता है कि क्वांटम हार्डवेयर सही ढंग से काम कर रहा है और कुछ सर्किट आकारों के लिए शास्त्रीय सिमुलेशन असाध्य होता जा रहा है।",{"type":21,"tag":18624,"props":20070,"children":20071},{},[],{"type":21,"tag":59,"props":20073,"children":20075},{"id":20074},"निकट-अवधि-में-क्या-है-27-वर्ष",[20076],{"type":26,"value":20077},"निकट-अवधि में क्या है (2–7 वर्ष)",{"type":21,"tag":17809,"props":20079,"children":20081},{"id":20080},"क्वांटम-सहायता-प्राप्त-दवा-खोज",[20082],{"type":26,"value":20083},"क्वांटम-सहायता प्राप्त दवा खोज",{"type":21,"tag":22,"props":20085,"children":20086},{},[20087,20091],{"type":21,"tag":71,"props":20088,"children":20089},{},[20090],{"type":26,"value":19682},{"type":26,"value":20092}," प्रोटीन-लिगैंड बाइंडिंग ऊर्जा को मॉडल करने के लिए क्वांटम सिमुलेशन का उपयोग, यह भविष्यवाणी करना कि कौन से दवा उम्मीदवार संश्लेषित करने लायक हैं।",{"type":21,"tag":22,"props":20094,"children":20095},{},[20096,20100],{"type":21,"tag":71,"props":20097,"children":20098},{},[20099],{"type":26,"value":20066},{"type":26,"value":20101}," दवा खोज की लागत प्रति स्वीकृत दवा ~$2.5 बिलियन है। बेहतर कम्प्यूटेशनल स्क्रीनिंग द्वारा असफल क्लिनिकल परीक्षणों को कम करना बेहद मूल्यवान है।",{"type":21,"tag":22,"props":20103,"children":20104},{},[20105,20110],{"type":21,"tag":71,"props":20106,"children":20107},{},[20108],{"type":26,"value":20109},"वर्तमान स्थिति:",{"type":26,"value":20111}," IBM और फार्मास्युटिकल साझेदार (Pfizer, AstraZeneca, JSR) क्वांटम हार्डवेयर पर ~50 क्यूबिट तक के अणुओं पर VQE चला रहे हैं। अभी भी प्रदर्शनात्मक — वाणिज्यिक रूप से प्रासंगिक अणुओं के लिए शास्त्रीय विधियाँ अधिक सटीक बनी हुई हैं।",{"type":21,"tag":22,"props":20113,"children":20114},{},[20115,20120],{"type":21,"tag":71,"props":20116,"children":20117},{},[20118],{"type":26,"value":20119},"यह कब वास्तविक बनता है:",{"type":26,"value":20121}," जब तार्किक क्यूबिट संख्या ~1,000–5,000 तक पहुँचती है। तब क्वांटम सिमुलेशन प्रमुख आणविक वर्गों के लिए शास्त्रीय से बेहतर प्रदर्शन कर सकता है। वर्तमान अनुमान: 5–10 वर्ष।",{"type":21,"tag":18624,"props":20123,"children":20124},{},[],{"type":21,"tag":17809,"props":20126,"children":20128},{"id":20127},"क्वांटम-फाइनेंस-monte-carlo-गति-वृद्धि",[20129],{"type":26,"value":20130},"क्वांटम फाइनेंस: Monte Carlo गति वृद्धि",{"type":21,"tag":22,"props":20132,"children":20133},{},[20134,20138,20140,20146,20148,20154],{"type":21,"tag":71,"props":20135,"children":20136},{},[20137],{"type":26,"value":19682},{"type":26,"value":20139}," क्वांटम एम्प्लीट्यूड एस्टीमेशन सैद्धांतिक रूप से Monte Carlo इंटीग्रेशन को ",{"type":21,"tag":79,"props":20141,"children":20143},{"className":20142},[],[20144],{"type":26,"value":20145},"O(1\u002Fε²)",{"type":26,"value":20147}," से ",{"type":21,"tag":79,"props":20149,"children":20151},{"className":20150},[],[20152],{"type":26,"value":20153},"O(1\u002Fε)",{"type":26,"value":20155}," तक तेज़ कर सकता है — एक द्विघातीय गति वृद्धि जो ऑप्शन प्राइसिंग और जोखिम सिमुलेशन के लिए बेहद मायने रखती है।",{"type":21,"tag":22,"props":20157,"children":20158},{},[20159,20163],{"type":21,"tag":71,"props":20160,"children":20161},{},[20162],{"type":26,"value":20109},{"type":26,"value":20164}," Goldman Sachs, JPMorgan, और BBVA सक्रिय रूप से इस पर शोध कर रहे हैं। छोटे पैमाने के प्रदर्शन किए गए हैं। अभी तक प्रोडक्शन-स्केल नहीं।",{"type":21,"tag":22,"props":20166,"children":20167},{},[20168,20172],{"type":21,"tag":71,"props":20169,"children":20170},{},[20171],{"type":26,"value":20119},{"type":26,"value":20173}," मामूली फॉल्ट टॉलरेंस (हज़ारों तार्किक क्यूबिट) की आवश्यकता होती है। व्यावहारिक वित्तीय गति वृद्धि के लिए अनुमान 5–15 वर्ष के बीच हैं।",{"type":21,"tag":18624,"props":20175,"children":20176},{},[],{"type":21,"tag":17809,"props":20178,"children":20180},{"id":20179},"सामग्री-विज्ञान-बैटरी-और-सोलर-सेल-डिज़ाइन",[20181],{"type":26,"value":20182},"सामग्री विज्ञान: बैटरी और सोलर सेल डिज़ाइन",{"type":21,"tag":22,"props":20184,"children":20185},{},[20186,20190],{"type":21,"tag":71,"props":20187,"children":20188},{},[20189],{"type":26,"value":19682},{"type":26,"value":20191}," लिथियम-एयर बैटरी, नाइट्रोजन फिक्सेशन उत्प्रेरक (Haber-Bosch प्रक्रिया की जगह लेने वाले), और फोटोवोल्टिक सामग्री के लिए उम्मीदवार सामग्री का क्वांटम सिमुलेशन।",{"type":21,"tag":22,"props":20193,"children":20194},{},[20195,20199],{"type":21,"tag":71,"props":20196,"children":20197},{},[20198],{"type":26,"value":20066},{"type":26,"value":20200}," बेहतर बैटरी = EV क्रांति। कुशल N₂ फिक्सेशन = उर्वरक ऊर्जा उपयोग में नाटकीय कमी (वर्तमान में वैश्विक ऊर्जा खपत का 1–2%)। ये खरबों-डॉलर की समस्याएँ हैं।",{"type":21,"tag":22,"props":20202,"children":20203},{},[20204,20208],{"type":21,"tag":71,"props":20205,"children":20206},{},[20207],{"type":26,"value":20109},{"type":26,"value":20209}," Microsoft (StationQ), IBM, और QunaSys तथा Good Chemistry जैसे स्टार्टअप इसका पीछा कर रहे हैं। प्रारंभिक-चरण का शोध।",{"type":21,"tag":22,"props":20211,"children":20212},{},[20213,20217],{"type":21,"tag":71,"props":20214,"children":20215},{},[20216],{"type":26,"value":20119},{"type":26,"value":20218}," लक्ष्य सटीकता और अणु आकार के आधार पर 5–20 वर्ष।",{"type":21,"tag":18624,"props":20220,"children":20221},{},[],{"type":21,"tag":59,"props":20223,"children":20225},{"id":20224},"पूर्ण-फॉल्ट-टॉलरेंस-की-क्या-आवश्यकता-है-720-वर्ष",[20226],{"type":26,"value":20227},"पूर्ण फॉल्ट टॉलरेंस की क्या आवश्यकता है (7–20+ वर्ष)",{"type":21,"tag":17809,"props":20229,"children":20231},{"id":20230},"shor-के-एल्गोरिदम-से-rsaecc-तोड़ना",[20232],{"type":26,"value":20233},"Shor के एल्गोरिदम से RSA\u002FECC तोड़ना",{"type":21,"tag":22,"props":20235,"children":20236},{},[20237,20241],{"type":21,"tag":71,"props":20238,"children":20239},{},[20240],{"type":26,"value":19682},{"type":26,"value":20242}," RSA-2048 के अंतर्निहित बड़े अभाज्य संख्याओं का गुणनखंडन।",{"type":21,"tag":22,"props":20244,"children":20245},{},[20246,20251],{"type":21,"tag":71,"props":20247,"children":20248},{},[20249],{"type":26,"value":20250},"आवश्यक:",{"type":26,"value":20252}," ~4,000 तार्किक क्यूबिट (प्रत्येक को ~1,000 भौतिक क्यूबिट की आवश्यकता = ~4 मिलियन भौतिक क्यूबिट)। वर्तमान स्थिति: सैकड़ों भौतिक क्यूबिट, बहुत शोरगुल वाले।",{"type":21,"tag":22,"props":20254,"children":20255},{},[20256,20261],{"type":21,"tag":71,"props":20257,"children":20258},{},[20259],{"type":26,"value":20260},"समय-सीमा:",{"type":26,"value":20262}," अधिकांश अनुमान RSA को खतरे में डालने वाले क्वांटम कंप्यूटरों को 2030–2040 पर रखते हैं। कुछ कहते हैं कभी नहीं — इस पैमाने पर इंजीनियरिंग चुनौतियाँ अनसुलझी हो सकती हैं।",{"type":21,"tag":22,"props":20264,"children":20265},{},[20266,20271,20273,20278],{"type":21,"tag":71,"props":20267,"children":20268},{},[20269],{"type":26,"value":20270},"अभी क्या करें:",{"type":26,"value":20272}," समय-सीमा की परवाह किए बिना ",{"type":21,"tag":29,"props":20274,"children":20275},{"href":9828},[20276],{"type":26,"value":20277},"पोस्ट-क्वांटम क्रिप्टोग्राफी की ओर माइग्रेट करें",{"type":26,"value":20279},"। यह संक्रमण वर्षों लेता है, और HNDL हमले अभी हो रहे हैं।",{"type":21,"tag":18624,"props":20281,"children":20282},{},[],{"type":21,"tag":17809,"props":20284,"children":20286},{"id":20285},"बड़े-पैमाने-पर-grover-की-खोज",[20287],{"type":26,"value":20288},"बड़े पैमाने पर Grover की खोज",{"type":21,"tag":22,"props":20290,"children":20291},{},[20292,20296],{"type":21,"tag":71,"props":20293,"children":20294},{},[20295],{"type":26,"value":19682},{"type":26,"value":20297}," अवर्गीकृत डेटाबेस खोजने, NP-hard समस्याओं को हल करने के लिए द्विघातीय गति वृद्धि।",{"type":21,"tag":22,"props":20299,"children":20300},{},[20301,20305],{"type":21,"tag":71,"props":20302,"children":20303},{},[20304],{"type":26,"value":20250},{"type":26,"value":20306}," गहरे, त्रुटि-सुधारित सर्किट। द्विघातीय गति वृद्धि का अर्थ है कि बड़े N के लिए √N अभी भी विशाल है — स्थिरांक कारकों को क्वांटम हार्डवेयर के पक्ष में होना चाहिए।",{"type":21,"tag":22,"props":20308,"children":20309},{},[20310,20314],{"type":21,"tag":71,"props":20311,"children":20312},{},[20313],{"type":26,"value":20260},{"type":26,"value":20315}," दीर्घकालिक शोध।",{"type":21,"tag":18624,"props":20317,"children":20318},{},[],{"type":21,"tag":17809,"props":20320,"children":20322},{"id":20321},"जलवायु-मॉडलिंग-और-द्रव-गतिकी",[20323],{"type":26,"value":20324},"जलवायु मॉडलिंग और द्रव गतिकी",{"type":21,"tag":22,"props":20326,"children":20327},{},[20328,20332],{"type":21,"tag":71,"props":20329,"children":20330},{},[20331],{"type":26,"value":19682},{"type":26,"value":20333}," अवकल समीकरणों को हल करने के लिए क्वांटम एल्गोरिदम (HHL algorithm) जलवायु सिमुलेशन, द्रव गतिकी, और वित्तीय मॉडलिंग को तेज़ कर सकते हैं।",{"type":21,"tag":22,"props":20335,"children":20336},{},[20337,20341],{"type":21,"tag":71,"props":20338,"children":20339},{},[20340],{"type":26,"value":20250},{"type":26,"value":20342}," पूर्ण फॉल्ट टॉलरेंस। HHL एल्गोरिदम में इतना अधिक ओवरहेड है कि व्यावहारिक लाभ सिद्धांत में भी स्पष्ट नहीं है।",{"type":21,"tag":22,"props":20344,"children":20345},{},[20346,20350],{"type":21,"tag":71,"props":20347,"children":20348},{},[20349],{"type":26,"value":20260},{"type":26,"value":20351}," यह सबसे अनुमानात्मक श्रेणी है। PDE हल करने के लिए क्वांटम लाभ व्यवहार में अप्रमाणित बना हुआ है।",{"type":21,"tag":18624,"props":20353,"children":20354},{},[],{"type":21,"tag":59,"props":20356,"children":20358},{"id":20357},"ईमानदार-निष्कर्ष",[20359],{"type":26,"value":20360},"ईमानदार निष्कर्ष",{"type":21,"tag":4516,"props":20362,"children":20363},{},[20364,20385],{"type":21,"tag":4520,"props":20365,"children":20366},{},[20367],{"type":21,"tag":4524,"props":20368,"children":20369},{},[20370,20375,20380],{"type":21,"tag":4528,"props":20371,"children":20372},{},[20373],{"type":26,"value":20374},"अनुप्रयोग",{"type":21,"tag":4528,"props":20376,"children":20377},{},[20378],{"type":26,"value":20379},"आज क्वांटम लाभ?",{"type":21,"tag":4528,"props":20381,"children":20382},{},[20383],{"type":26,"value":20384},"क्षितिज",{"type":21,"tag":4542,"props":20386,"children":20387},{},[20388,20406,20424,20441,20459,20477,20493,20510],{"type":21,"tag":4524,"props":20389,"children":20390},{},[20391,20396,20401],{"type":21,"tag":4549,"props":20392,"children":20393},{},[20394],{"type":26,"value":20395},"रैंडम सर्किट सैंपलिंग",{"type":21,"tag":4549,"props":20397,"children":20398},{},[20399],{"type":26,"value":20400},"मामूली, कोई अनुप्रयोग नहीं",{"type":21,"tag":4549,"props":20402,"children":20403},{},[20404],{"type":26,"value":20405},"अभी (केवल शोध)",{"type":21,"tag":4524,"props":20407,"children":20408},{},[20409,20414,20419],{"type":21,"tag":4549,"props":20410,"children":20411},{},[20412],{"type":26,"value":20413},"छोटे अणुओं के लिए VQE",{"type":21,"tag":4549,"props":20415,"children":20416},{},[20417],{"type":26,"value":20418},"कोई शास्त्रीय लाभ नहीं",{"type":21,"tag":4549,"props":20420,"children":20421},{},[20422],{"type":26,"value":20423},"उपयोगी अणुओं के लिए 3–5 वर्ष",{"type":21,"tag":4524,"props":20425,"children":20426},{},[20427,20432,20436],{"type":21,"tag":4549,"props":20428,"children":20429},{},[20430],{"type":26,"value":20431},"ऑप्टिमाइज़ेशन के लिए QAOA",{"type":21,"tag":4549,"props":20433,"children":20434},{},[20435],{"type":26,"value":20418},{"type":21,"tag":4549,"props":20437,"children":20438},{},[20439],{"type":26,"value":20440},"5–10 वर्ष",{"type":21,"tag":4524,"props":20442,"children":20443},{},[20444,20449,20454],{"type":21,"tag":4549,"props":20445,"children":20446},{},[20447],{"type":26,"value":20448},"QML \u002F क्वांटम कर्नेल",{"type":21,"tag":4549,"props":20450,"children":20451},{},[20452],{"type":26,"value":20453},"वास्तविक डेटा के लिए कोई लाभ नहीं",{"type":21,"tag":4549,"props":20455,"children":20456},{},[20457],{"type":26,"value":20458},"अनिश्चित",{"type":21,"tag":4524,"props":20460,"children":20461},{},[20462,20467,20472],{"type":21,"tag":4549,"props":20463,"children":20464},{},[20465],{"type":26,"value":20466},"दवा खोज",{"type":21,"tag":4549,"props":20468,"children":20469},{},[20470],{"type":26,"value":20471},"नहीं",{"type":21,"tag":4549,"props":20473,"children":20474},{},[20475],{"type":26,"value":20476},"7–10 वर्ष",{"type":21,"tag":4524,"props":20478,"children":20479},{},[20480,20485,20489],{"type":21,"tag":4549,"props":20481,"children":20482},{},[20483],{"type":26,"value":20484},"फाइनेंस (Monte Carlo)",{"type":21,"tag":4549,"props":20486,"children":20487},{},[20488],{"type":26,"value":20471},{"type":21,"tag":4549,"props":20490,"children":20491},{},[20492],{"type":26,"value":20440},{"type":21,"tag":4524,"props":20494,"children":20495},{},[20496,20501,20505],{"type":21,"tag":4549,"props":20497,"children":20498},{},[20499],{"type":26,"value":20500},"सामग्री सिमुलेशन",{"type":21,"tag":4549,"props":20502,"children":20503},{},[20504],{"type":26,"value":20471},{"type":21,"tag":4549,"props":20506,"children":20507},{},[20508],{"type":26,"value":20509},"7–15 वर्ष",{"type":21,"tag":4524,"props":20511,"children":20512},{},[20513,20518,20522],{"type":21,"tag":4549,"props":20514,"children":20515},{},[20516],{"type":26,"value":20517},"क्रिप्टोग्राफी (Shor's)",{"type":21,"tag":4549,"props":20519,"children":20520},{},[20521],{"type":26,"value":20471},{"type":21,"tag":4549,"props":20523,"children":20524},{},[20525],{"type":26,"value":20526},"10–20+ वर्ष",{"type":21,"tag":22,"props":20528,"children":20529},{},[20530,20532,20536,20538,20543],{"type":26,"value":20531},"सबसे तात्कालिक क्वांटम मूल्य एल्गोरिदम चलाने में ",{"type":21,"tag":71,"props":20533,"children":20534},{},[20535],{"type":26,"value":20471},{"type":26,"value":20537}," है — यह ",{"type":21,"tag":71,"props":20539,"children":20540},{},[20541],{"type":26,"value":20542},"क्षेत्र को जल्दी सीखने",{"type":26,"value":20544}," में है। IBM, Google, NVIDIA, AWS, IonQ, और दर्जनों स्टार्टअप जैसी कंपनियाँ क्वांटम इंजीनियरों को नियुक्त कर रही हैं। कौशल सेट — सर्किट डिज़ाइन, वैरिएशनल एल्गोरिदम, क्वांटम-शास्त्रीय हाइब्रिड वर्कफ़्लो — वास्तव में दुर्लभ है। वह अंतर बंद हो जाएगा, और जो लोग जल्दी सीखेंगे वे अच्छी स्थिति में होंगे।",{"type":21,"tag":22,"props":20546,"children":20547},{},[20548,20550,20555],{"type":26,"value":20549},"दूसरा सबसे तात्कालिक मूल्य ",{"type":21,"tag":71,"props":20551,"children":20552},{},[20553],{"type":26,"value":20554},"पोस्ट-क्वांटम क्रिप्टोग्राफी",{"type":26,"value":20556}," है — जो एक क्वांटम खतरे वाली शास्त्रीय सॉफ्टवेयर समस्या है, और जहाँ आवश्यक कार्रवाई स्पष्ट और अत्यावश्यक है।",{"type":21,"tag":22,"props":20558,"children":20559},{},[20560],{"type":26,"value":20561},"बाकी सब के लिए: हार्डवेयर वास्तविक है, प्रगति असली है, अतिशयोक्ति समय से पहले है, और प्रक्षेपवक्र तीव्र है।",{"type":21,"tag":22,"props":20563,"children":20564},{},[20565,20570,20571,20576,20577,20582,20583],{"type":21,"tag":71,"props":20566,"children":20567},{},[20568],{"type":26,"value":20569},"हार्डवेयर का अन्वेषण करें:",{"type":26,"value":1911},{"type":21,"tag":29,"props":20572,"children":20573},{"href":809},[20574],{"type":26,"value":20575},"Free QPU access",{"type":26,"value":7562},{"type":21,"tag":29,"props":20578,"children":20579},{"href":1014},[20580],{"type":26,"value":20581},"Compare all simulators",{"type":26,"value":7562},{"type":21,"tag":29,"props":20584,"children":20585},{"href":11954},[20586],{"type":26,"value":20587},"Quantum use cases deep dive",{"type":21,"tag":703,"props":20589,"children":20590},{},[20591],{"type":26,"value":707},{"title":7,"searchDepth":335,"depth":335,"links":20593},[20594,20595,20601,20606,20611],{"id":19613,"depth":335,"text":19616},{"id":19665,"depth":335,"text":19668,"children":20596},[20597,20598,20599,20600],{"id":19671,"depth":344,"text":19674},{"id":19895,"depth":344,"text":19898},{"id":19959,"depth":344,"text":19962},{"id":20020,"depth":344,"text":20023},{"id":20074,"depth":335,"text":20077,"children":20602},[20603,20604,20605],{"id":20080,"depth":344,"text":20083},{"id":20127,"depth":344,"text":20130},{"id":20179,"depth":344,"text":20182},{"id":20224,"depth":335,"text":20227,"children":20607},[20608,20609,20610],{"id":20230,"depth":344,"text":20233},{"id":20285,"depth":344,"text":20288},{"id":20321,"depth":344,"text":20324},{"id":20357,"depth":335,"text":20360},"content:hi:blog:quantum-use-cases-2026.md","hi\u002Fblog\u002Fquantum-use-cases-2026.md","hi\u002Fblog\u002Fquantum-use-cases-2026",{"_path":20616,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":20617,"description":20618,"date":20619,"author":11,"tags":20620,"readingTime":453,"body":20622,"_type":715,"_id":21457,"_source":717,"_file":21458,"_stem":21459,"_extension":720},"\u002Fhi\u002Fblog\u002Fgetting-started-free-quantum-computing","2026 में मुफ्त क्वांटम कंप्यूटिंग की शुरुआत कैसे करें","अपना पहला क्वांटम सर्किट मुफ्त में चलाने के लिए एक संपूर्ण शुरुआती गाइड — न कोई महंगा हार्डवेयर, न कोई सशुल्क सब्सक्रिप्शन।","2026-03-10",[7599,20621,1972],"Simulators",{"type":18,"children":20623,"toc":21449},[20624,20629,20635,20640,20675,20680,20686,20691,20716,20728,20938,20971,20977,20982,21056,21075,21081,21093,21118,21204,21212,21217,21223,21337,21348,21354,21359,21408,21424,21427,21445],{"type":21,"tag":22,"props":20625,"children":20626},{},[20627],{"type":26,"value":20628},"क्वांटम कंप्यूटिंग अब लाखों डॉलर के रिसर्च लैब उपकरणों के पीछे बंद नहीं रह गई है। आज, आप अपने लैपटॉप से — मुफ्त में — एक असली 127-क्यूबिट मशीन पर क्वांटम सर्किट लिख और चला सकते हैं। यह गाइड आपको अभी उपलब्ध हर विकल्प के बारे में बताती है।",{"type":21,"tag":59,"props":20630,"children":20632},{"id":20631},"आपको-वास्तव-में-क्या-चाहिए",[20633],{"type":26,"value":20634},"आपको वास्तव में क्या चाहिए",{"type":21,"tag":22,"props":20636,"children":20637},{},[20638],{"type":26,"value":20639},"शुरुआत करने के लिए, आपको बिल्कुल तीन चीज़ों की आवश्यकता है:",{"type":21,"tag":7457,"props":20641,"children":20642},{},[20643,20653,20665],{"type":21,"tag":3570,"props":20644,"children":20645},{},[20646,20648],{"type":26,"value":20647},"आपकी मशीन पर इंस्टॉल किया गया ",{"type":21,"tag":71,"props":20649,"children":20650},{},[20651],{"type":26,"value":20652},"Python 3.9+",{"type":21,"tag":3570,"props":20654,"children":20655},{},[20656,20658,20663],{"type":26,"value":20657},"किसी एक क्वांटम क्लाउड प्लेटफ़ॉर्म पर ",{"type":21,"tag":71,"props":20659,"children":20660},{},[20661],{"type":26,"value":20662},"एक मुफ्त अकाउंट",{"type":26,"value":20664}," (IBM Quantum सबसे आसान है)",{"type":21,"tag":3570,"props":20666,"children":20667},{},[20668,20670],{"type":26,"value":20669},"अपना पहला Bell state चलाने के लिए ",{"type":21,"tag":71,"props":20671,"children":20672},{},[20673],{"type":26,"value":20674},"पाँच मिनट",{"type":21,"tag":22,"props":20676,"children":20677},{},[20678],{"type":26,"value":20679},"बस इतना ही। न कोई GPU। न कोई विशेष हार्डवेयर। न कोई क्रेडिट कार्ड।",{"type":21,"tag":59,"props":20681,"children":20683},{"id":20682},"आपका-पहला-क्वांटम-सर्किट",[20684],{"type":26,"value":20685},"आपका पहला क्वांटम सर्किट",{"type":21,"tag":22,"props":20687,"children":20688},{},[20689],{"type":26,"value":20690},"Qiskit और इसका सिम्युलेटर इंस्टॉल करें:",{"type":21,"tag":312,"props":20692,"children":20693},{"className":10192,"code":12231,"language":10194,"meta":7,"style":7},[20694],{"type":21,"tag":79,"props":20695,"children":20696},{"__ignoreMap":7},[20697],{"type":21,"tag":322,"props":20698,"children":20699},{"class":324,"line":325},[20700,20704,20708,20712],{"type":21,"tag":322,"props":20701,"children":20702},{"style":4814},[20703],{"type":26,"value":12243},{"type":21,"tag":322,"props":20705,"children":20706},{"style":359},[20707],{"type":26,"value":12248},{"type":21,"tag":322,"props":20709,"children":20710},{"style":359},[20711],{"type":26,"value":12253},{"type":21,"tag":322,"props":20713,"children":20714},{"style":359},[20715],{"type":26,"value":12258},{"type":21,"tag":22,"props":20717,"children":20718},{},[20719,20721,20726],{"type":26,"value":20720},"अब एक ",{"type":21,"tag":71,"props":20722,"children":20723},{},[20724],{"type":26,"value":20725},"Bell state",{"type":26,"value":20727}," बनाएँ — यह उत्कृष्ट दो-क्यूबिट सर्किट है जो सुपरपोज़िशन और उलझाव (entanglement) को दर्शाता है:",{"type":21,"tag":312,"props":20729,"children":20731},{"className":3636,"code":20730,"language":3638,"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",[20732],{"type":21,"tag":79,"props":20733,"children":20734},{"__ignoreMap":7},[20735,20755,20774,20781,20789,20812,20833,20862,20869,20876,20884,20918,20930],{"type":21,"tag":322,"props":20736,"children":20737},{"class":324,"line":325},[20738,20742,20746,20750],{"type":21,"tag":322,"props":20739,"children":20740},{"style":3648},[20741],{"type":26,"value":3651},{"type":21,"tag":322,"props":20743,"children":20744},{"style":329},[20745],{"type":26,"value":4745},{"type":21,"tag":322,"props":20747,"children":20748},{"style":3648},[20749],{"type":26,"value":3661},{"type":21,"tag":322,"props":20751,"children":20752},{"style":329},[20753],{"type":26,"value":20754}," QuantumCircuit\n",{"type":21,"tag":322,"props":20756,"children":20757},{"class":324,"line":335},[20758,20762,20766,20770],{"type":21,"tag":322,"props":20759,"children":20760},{"style":3648},[20761],{"type":26,"value":3651},{"type":21,"tag":322,"props":20763,"children":20764},{"style":329},[20765],{"type":26,"value":4766},{"type":21,"tag":322,"props":20767,"children":20768},{"style":3648},[20769],{"type":26,"value":3661},{"type":21,"tag":322,"props":20771,"children":20772},{"style":329},[20773],{"type":26,"value":4775},{"type":21,"tag":322,"props":20775,"children":20776},{"class":324,"line":344},[20777],{"type":21,"tag":322,"props":20778,"children":20779},{"emptyLinePlaceholder":3672},[20780],{"type":26,"value":3675},{"type":21,"tag":322,"props":20782,"children":20783},{"class":324,"line":407},[20784],{"type":21,"tag":322,"props":20785,"children":20786},{"style":3898},[20787],{"type":26,"value":20788},"# Build the circuit\n",{"type":21,"tag":322,"props":20790,"children":20791},{"class":324,"line":431},[20792,20796,20800,20804,20808],{"type":21,"tag":322,"props":20793,"children":20794},{"style":329},[20795],{"type":26,"value":7832},{"type":21,"tag":322,"props":20797,"children":20798},{"style":3648},[20799],{"type":26,"value":3688},{"type":21,"tag":322,"props":20801,"children":20802},{"style":329},[20803],{"type":26,"value":5588},{"type":21,"tag":322,"props":20805,"children":20806},{"style":348},[20807],{"type":26,"value":423},{"type":21,"tag":322,"props":20809,"children":20810},{"style":329},[20811],{"type":26,"value":3748},{"type":21,"tag":322,"props":20813,"children":20814},{"class":324,"line":453},[20815,20819,20823,20828],{"type":21,"tag":322,"props":20816,"children":20817},{"style":329},[20818],{"type":26,"value":7848},{"type":21,"tag":322,"props":20820,"children":20821},{"style":348},[20822],{"type":26,"value":5618},{"type":21,"tag":322,"props":20824,"children":20825},{"style":329},[20826],{"type":26,"value":20827},")       ",{"type":21,"tag":322,"props":20829,"children":20830},{"style":3898},[20831],{"type":26,"value":20832},"# Hadamard — puts qubit 0 into superposition\n",{"type":21,"tag":322,"props":20834,"children":20835},{"class":324,"line":474},[20836,20841,20845,20849,20853,20857],{"type":21,"tag":322,"props":20837,"children":20838},{"style":329},[20839],{"type":26,"value":20840},"qc.cx(",{"type":21,"tag":322,"props":20842,"children":20843},{"style":348},[20844],{"type":26,"value":5618},{"type":21,"tag":322,"props":20846,"children":20847},{"style":329},[20848],{"type":26,"value":367},{"type":21,"tag":322,"props":20850,"children":20851},{"style":348},[20852],{"type":26,"value":4004},{"type":21,"tag":322,"props":20854,"children":20855},{"style":329},[20856],{"type":26,"value":7206},{"type":21,"tag":322,"props":20858,"children":20859},{"style":3898},[20860],{"type":26,"value":20861},"# CNOT — entangles qubit 1 with qubit 0\n",{"type":21,"tag":322,"props":20863,"children":20864},{"class":324,"line":496},[20865],{"type":21,"tag":322,"props":20866,"children":20867},{"style":329},[20868],{"type":26,"value":13538},{"type":21,"tag":322,"props":20870,"children":20871},{"class":324,"line":16},[20872],{"type":21,"tag":322,"props":20873,"children":20874},{"emptyLinePlaceholder":3672},[20875],{"type":26,"value":3675},{"type":21,"tag":322,"props":20877,"children":20878},{"class":324,"line":3894},[20879],{"type":21,"tag":322,"props":20880,"children":20881},{"style":3898},[20882],{"type":26,"value":20883},"# Run locally on a simulator\n",{"type":21,"tag":322,"props":20885,"children":20886},{"class":324,"line":3904},[20887,20891,20895,20900,20904,20908,20913],{"type":21,"tag":322,"props":20888,"children":20889},{"style":329},[20890],{"type":26,"value":19775},{"type":21,"tag":322,"props":20892,"children":20893},{"style":3648},[20894],{"type":26,"value":3688},{"type":21,"tag":322,"props":20896,"children":20897},{"style":329},[20898],{"type":26,"value":20899}," AerSimulator().run(qc, ",{"type":21,"tag":322,"props":20901,"children":20902},{"style":3713},[20903],{"type":26,"value":4573},{"type":21,"tag":322,"props":20905,"children":20906},{"style":3648},[20907],{"type":26,"value":3688},{"type":21,"tag":322,"props":20909,"children":20910},{"style":348},[20911],{"type":26,"value":20912},"1000",{"type":21,"tag":322,"props":20914,"children":20915},{"style":329},[20916],{"type":26,"value":20917},").result()\n",{"type":21,"tag":322,"props":20919,"children":20920},{"class":324,"line":1043},[20921,20925],{"type":21,"tag":322,"props":20922,"children":20923},{"style":348},[20924],{"type":26,"value":3763},{"type":21,"tag":322,"props":20926,"children":20927},{"style":329},[20928],{"type":26,"value":20929},"(result.get_counts())\n",{"type":21,"tag":322,"props":20931,"children":20932},{"class":324,"line":3964},[20933],{"type":21,"tag":322,"props":20934,"children":20935},{"style":3898},[20936],{"type":26,"value":20937},"# {'00': 503, '11': 497}\n",{"type":21,"tag":22,"props":20939,"children":20940},{},[20941,20943,20948,20949,20954,20956,20962,20963,20969],{"type":26,"value":20942},"आउटपुट — ",{"type":21,"tag":79,"props":20944,"children":20946},{"className":20945},[],[20947],{"type":26,"value":6126},{"type":26,"value":814},{"type":21,"tag":79,"props":20950,"children":20952},{"className":20951},[],[20953],{"type":26,"value":6133},{"type":26,"value":20955}," की लगभग बराबर गिनती, कभी ",{"type":21,"tag":79,"props":20957,"children":20959},{"className":20958},[],[20960],{"type":26,"value":20961},"01",{"type":26,"value":19256},{"type":21,"tag":79,"props":20964,"children":20966},{"className":20965},[],[20967],{"type":26,"value":20968},"10",{"type":26,"value":20970}," नहीं — उलझाव (entanglement) का हस्ताक्षर है। एक क्यूबिट को मापें और आप तुरंत दूसरे के बारे में जान जाते हैं, चाहे उनके बीच की दूरी कितनी भी हो।",{"type":21,"tag":59,"props":20972,"children":20974},{"id":20973},"मुफ्त-सिम्युलेटर-किसी-अकाउंट-की-आवश्यकता-नहीं",[20975],{"type":26,"value":20976},"मुफ्त सिम्युलेटर: किसी अकाउंट की आवश्यकता नहीं",{"type":21,"tag":22,"props":20978,"children":20979},{},[20980],{"type":26,"value":20981},"सभी प्रमुख SDK शक्तिशाली स्थानीय सिम्युलेटर के साथ आते हैं जो बिना किसी साइन-अप के आपके CPU या GPU पर चलते हैं:",{"type":21,"tag":312,"props":20983,"children":20985},{"className":10192,"code":20984,"language":10194,"meta":7,"style":7},"pip install qiskit qiskit-aer   # IBM Qiskit + Aer simulator\npip install cirq                 # Google Cirq\npip install pennylane            # PennyLane\n",[20986],{"type":21,"tag":79,"props":20987,"children":20988},{"__ignoreMap":7},[20989,21014,21035],{"type":21,"tag":322,"props":20990,"children":20991},{"class":324,"line":325},[20992,20996,21000,21004,21009],{"type":21,"tag":322,"props":20993,"children":20994},{"style":4814},[20995],{"type":26,"value":12243},{"type":21,"tag":322,"props":20997,"children":20998},{"style":359},[20999],{"type":26,"value":12248},{"type":21,"tag":322,"props":21001,"children":21002},{"style":359},[21003],{"type":26,"value":12253},{"type":21,"tag":322,"props":21005,"children":21006},{"style":359},[21007],{"type":26,"value":21008}," qiskit-aer",{"type":21,"tag":322,"props":21010,"children":21011},{"style":3898},[21012],{"type":26,"value":21013},"   # IBM Qiskit + Aer simulator\n",{"type":21,"tag":322,"props":21015,"children":21016},{"class":324,"line":335},[21017,21021,21025,21030],{"type":21,"tag":322,"props":21018,"children":21019},{"style":4814},[21020],{"type":26,"value":12243},{"type":21,"tag":322,"props":21022,"children":21023},{"style":359},[21024],{"type":26,"value":12248},{"type":21,"tag":322,"props":21026,"children":21027},{"style":359},[21028],{"type":26,"value":21029}," cirq",{"type":21,"tag":322,"props":21031,"children":21032},{"style":3898},[21033],{"type":26,"value":21034},"                 # Google Cirq\n",{"type":21,"tag":322,"props":21036,"children":21037},{"class":324,"line":344},[21038,21042,21046,21051],{"type":21,"tag":322,"props":21039,"children":21040},{"style":4814},[21041],{"type":26,"value":12243},{"type":21,"tag":322,"props":21043,"children":21044},{"style":359},[21045],{"type":26,"value":12248},{"type":21,"tag":322,"props":21047,"children":21048},{"style":359},[21049],{"type":26,"value":21050}," pennylane",{"type":21,"tag":322,"props":21052,"children":21053},{"style":3898},[21054],{"type":26,"value":21055},"            # PennyLane\n",{"type":21,"tag":22,"props":21057,"children":21058},{},[21059,21061,21067,21069,21074],{"type":26,"value":21060},"प्रत्येक 20–30 क्यूबिट सर्किट को आराम से संभालता है। बड़े सर्किट या GPU त्वरण के लिए, ",{"type":21,"tag":29,"props":21062,"children":21064},{"href":21063},"\u002Fsdks\u002Fcudaq",[21065],{"type":26,"value":21066},"NVIDIA CUDA-Q",{"type":26,"value":21068}," एक ही GPU पर 34+ क्यूबिट का सिमुलेशन कर सकता है। विस्तृत तुलना के लिए पूरा ",{"type":21,"tag":29,"props":21070,"children":21071},{"href":1014},[21072],{"type":26,"value":21073},"Simulators guide",{"type":26,"value":4162},{"type":21,"tag":59,"props":21076,"children":21078},{"id":21077},"मुफ्त-असली-हार्डवेयर-ibm-quantum",[21079],{"type":26,"value":21080},"मुफ्त असली हार्डवेयर: IBM Quantum",{"type":21,"tag":22,"props":21082,"children":21083},{},[21084,21086,21091],{"type":26,"value":21085},"IBM Quantum किसी भी व्यक्ति को जिसके पास IBM ID है, असली क्वांटम प्रोसेसर तक ",{"type":21,"tag":71,"props":21087,"children":21088},{},[21089],{"type":26,"value":21090},"पूरी तरह मुफ्त",{"type":26,"value":21092}," पहुँच प्रदान करता है:",{"type":21,"tag":7457,"props":21094,"children":21095},{},[21096,21108,21113],{"type":21,"tag":3570,"props":21097,"children":21098},{},[21099,21106],{"type":21,"tag":29,"props":21100,"children":21103},{"href":21101,"rel":21102},"https:\u002F\u002Fquantum.ibm.com\u002F",[44],[21104],{"type":26,"value":21105},"quantum.ibm.com",{"type":26,"value":21107}," पर जाएँ और एक मुफ्त अकाउंट बनाएँ",{"type":21,"tag":3570,"props":21109,"children":21110},{},[21111],{"type":26,"value":21112},"Account settings से अपना API token कॉपी करें",{"type":21,"tag":3570,"props":21114,"children":21115},{},[21116],{"type":26,"value":21117},"अपने token के साथ Qiskit को कॉन्फ़िगर करें:",{"type":21,"tag":312,"props":21119,"children":21121},{"className":3636,"code":21120,"language":3638,"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",[21122],{"type":21,"tag":79,"props":21123,"children":21124},{"__ignoreMap":7},[21125,21144,21151,21159,21180,21197],{"type":21,"tag":322,"props":21126,"children":21127},{"class":324,"line":325},[21128,21132,21136,21140],{"type":21,"tag":322,"props":21129,"children":21130},{"style":3648},[21131],{"type":26,"value":3651},{"type":21,"tag":322,"props":21133,"children":21134},{"style":329},[21135],{"type":26,"value":3656},{"type":21,"tag":322,"props":21137,"children":21138},{"style":3648},[21139],{"type":26,"value":3661},{"type":21,"tag":322,"props":21141,"children":21142},{"style":329},[21143],{"type":26,"value":3666},{"type":21,"tag":322,"props":21145,"children":21146},{"class":324,"line":335},[21147],{"type":21,"tag":322,"props":21148,"children":21149},{"emptyLinePlaceholder":3672},[21150],{"type":26,"value":3675},{"type":21,"tag":322,"props":21152,"children":21153},{"class":324,"line":344},[21154],{"type":21,"tag":322,"props":21155,"children":21156},{"style":329},[21157],{"type":26,"value":21158},"QiskitRuntimeService.save_account(\n",{"type":21,"tag":322,"props":21160,"children":21161},{"class":324,"line":407},[21162,21167,21171,21176],{"type":21,"tag":322,"props":21163,"children":21164},{"style":3713},[21165],{"type":26,"value":21166},"    channel",{"type":21,"tag":322,"props":21168,"children":21169},{"style":3648},[21170],{"type":26,"value":3688},{"type":21,"tag":322,"props":21172,"children":21173},{"style":359},[21174],{"type":26,"value":21175},"\"ibm_quantum\"",{"type":21,"tag":322,"props":21177,"children":21178},{"style":329},[21179],{"type":26,"value":428},{"type":21,"tag":322,"props":21181,"children":21182},{"class":324,"line":431},[21183,21188,21192],{"type":21,"tag":322,"props":21184,"children":21185},{"style":3713},[21186],{"type":26,"value":21187},"    token",{"type":21,"tag":322,"props":21189,"children":21190},{"style":3648},[21191],{"type":26,"value":3688},{"type":21,"tag":322,"props":21193,"children":21194},{"style":359},[21195],{"type":26,"value":21196},"\"YOUR_TOKEN_HERE\"\n",{"type":21,"tag":322,"props":21198,"children":21199},{"class":324,"line":453},[21200],{"type":21,"tag":322,"props":21201,"children":21202},{"style":329},[21203],{"type":26,"value":3748},{"type":21,"tag":7457,"props":21205,"children":21206},{"start":407},[21207],{"type":21,"tag":3570,"props":21208,"children":21209},{},[21210],{"type":26,"value":21211},"IBM के किसी भी मुफ्त सार्वजनिक QPU पर जॉब्स सबमिट करें",{"type":21,"tag":22,"props":21213,"children":21214},{},[21215],{"type":26,"value":21216},"सार्वजनिक सिस्टम पर कतार का समय आमतौर पर कुछ मिनटों से लेकर कुछ घंटों तक होता है। आप दुनिया भर के शोधकर्ताओं और छात्रों के साथ समय साझा कर रहे हैं — बस यही एकमात्र पेच है।",{"type":21,"tag":59,"props":21218,"children":21220},{"id":21219},"अपना-पहला-sdk-चुनना",[21221],{"type":26,"value":21222},"अपना पहला SDK चुनना",{"type":21,"tag":4516,"props":21224,"children":21225},{},[21226,21247],{"type":21,"tag":4520,"props":21227,"children":21228},{},[21229],{"type":21,"tag":4524,"props":21230,"children":21231},{},[21232,21237,21242],{"type":21,"tag":4528,"props":21233,"children":21234},{},[21235],{"type":26,"value":21236},"SDK",{"type":21,"tag":4528,"props":21238,"children":21239},{},[21240],{"type":26,"value":21241},"किसके लिए सर्वोत्तम",{"type":21,"tag":4528,"props":21243,"children":21244},{},[21245],{"type":26,"value":21246},"मुफ्त टियर",{"type":21,"tag":4542,"props":21248,"children":21249},{},[21250,21268,21285,21302,21320],{"type":21,"tag":4524,"props":21251,"children":21252},{},[21253,21258,21263],{"type":21,"tag":4549,"props":21254,"children":21255},{},[21256],{"type":26,"value":21257},"IBM Qiskit",{"type":21,"tag":4549,"props":21259,"children":21260},{},[21261],{"type":26,"value":21262},"सामान्य उपयोग, असली हार्डवेयर",{"type":21,"tag":4549,"props":21264,"children":21265},{},[21266],{"type":26,"value":21267},"पूर्ण — स्थानीय + असली QPU",{"type":21,"tag":4524,"props":21269,"children":21270},{},[21271,21275,21280],{"type":21,"tag":4549,"props":21272,"children":21273},{},[21274],{"type":26,"value":14234},{"type":21,"tag":4549,"props":21276,"children":21277},{},[21278],{"type":26,"value":21279},"क्वांटम ML, ग्रेडिएंट",{"type":21,"tag":4549,"props":21281,"children":21282},{},[21283],{"type":26,"value":21284},"पूर्ण — स्थानीय सिम्युलेटर",{"type":21,"tag":4524,"props":21286,"children":21287},{},[21288,21293,21298],{"type":21,"tag":4549,"props":21289,"children":21290},{},[21291],{"type":26,"value":21292},"Google Cirq",{"type":21,"tag":4549,"props":21294,"children":21295},{},[21296],{"type":26,"value":21297},"NISQ शोध",{"type":21,"tag":4549,"props":21299,"children":21300},{},[21301],{"type":26,"value":21284},{"type":21,"tag":4524,"props":21303,"children":21304},{},[21305,21310,21315],{"type":21,"tag":4549,"props":21306,"children":21307},{},[21308],{"type":26,"value":21309},"Amazon Braket",{"type":21,"tag":4549,"props":21311,"children":21312},{},[21313],{"type":26,"value":21314},"AWS एकीकरण",{"type":21,"tag":4549,"props":21316,"children":21317},{},[21318],{"type":26,"value":21319},"मुफ्त स्थानीय सिम, सशुल्क क्लाउड",{"type":21,"tag":4524,"props":21321,"children":21322},{},[21323,21327,21332],{"type":21,"tag":4549,"props":21324,"children":21325},{},[21326],{"type":26,"value":21066},{"type":21,"tag":4549,"props":21328,"children":21329},{},[21330],{"type":26,"value":21331},"GPU त्वरण",{"type":21,"tag":4549,"props":21333,"children":21334},{},[21335],{"type":26,"value":21336},"पूर्ण — स्थानीय GPU",{"type":21,"tag":22,"props":21338,"children":21339},{},[21340,21342,21346],{"type":26,"value":21341},"अधिकांश शुरुआती लोगों के लिए, ",{"type":21,"tag":71,"props":21343,"children":21344},{},[21345],{"type":26,"value":1972},{"type":26,"value":21347}," सबसे अच्छा शुरुआती बिंदु है — इसका समुदाय सबसे बड़ा है, सबसे अधिक दस्तावेज़ीकरण है, और असली IBM हार्डवेयर तक सीधी पहुँच है।",{"type":21,"tag":59,"props":21349,"children":21351},{"id":21350},"आगे-क्या-बनाएँ",[21352],{"type":26,"value":21353},"आगे क्या बनाएँ",{"type":21,"tag":22,"props":21355,"children":21356},{},[21357],{"type":26,"value":21358},"एक बार आपका Bell state चल जाए, तो यहाँ आज़माने के लिए दिलचस्प सर्किटों की एक क्रमिक प्रगति है:",{"type":21,"tag":3566,"props":21360,"children":21361},{},[21362,21379,21389,21399],{"type":21,"tag":3570,"props":21363,"children":21364},{},[21365,21370,21372,21378],{"type":21,"tag":71,"props":21366,"children":21367},{},[21368],{"type":26,"value":21369},"GHZ state",{"type":26,"value":21371}," — एक 3-क्यूबिट उलझी हुई अवस्था (",{"type":21,"tag":79,"props":21373,"children":21375},{"className":21374},[],[21376],{"type":26,"value":21377},"h(0).cx(0,1).cx(0,2)",{"type":26,"value":17720},{"type":21,"tag":3570,"props":21380,"children":21381},{},[21382,21387],{"type":21,"tag":71,"props":21383,"children":21384},{},[21385],{"type":26,"value":21386},"Quantum teleportation",{"type":26,"value":21388}," — उलझाव और शास्त्रीय संचार का उपयोग करके एक क्यूबिट अवस्था स्थानांतरित करें",{"type":21,"tag":3570,"props":21390,"children":21391},{},[21392,21397],{"type":21,"tag":71,"props":21393,"children":21394},{},[21395],{"type":26,"value":21396},"Grover's search",{"type":26,"value":21398}," — किसी सूची में चिह्नित आइटम को ब्रूट फोर्स की तुलना में द्विघातीय रूप से तेज़ी से खोजें",{"type":21,"tag":3570,"props":21400,"children":21401},{},[21402,21406],{"type":21,"tag":71,"props":21403,"children":21404},{},[21405],{"type":26,"value":888},{"type":26,"value":21407}," — एक वैरिएशनल एल्गोरिदम के साथ आणविक ग्राउंड स्टेट ऊर्जा का अनुमान लगाएँ",{"type":21,"tag":22,"props":21409,"children":21410},{},[21411,21413,21417,21418,21423],{"type":26,"value":21412},"गहराई में जाने के लिए ",{"type":21,"tag":29,"props":21414,"children":21415},{"href":1014},[21416],{"type":26,"value":21073},{"type":26,"value":814},{"type":21,"tag":29,"props":21419,"children":21420},{"href":809},[21421],{"type":26,"value":21422},"Hardware guide",{"type":26,"value":4162},{"type":21,"tag":18624,"props":21425,"children":21426},{},[],{"type":21,"tag":22,"props":21428,"children":21429},{},[21430,21432,21437,21439,21443],{"type":26,"value":21431},"💡 ",{"type":21,"tag":71,"props":21433,"children":21434},{},[21435],{"type":26,"value":21436},"सुझाव:",{"type":26,"value":21438}," यदि आप हर बार अपने सर्किट को फिर से लिखे बिना कई SDK में प्रयोग करने की योजना बनाते हैं, तो ",{"type":21,"tag":29,"props":21440,"children":21441},{"href":19451},[21442],{"type":26,"value":19454},{"type":26,"value":21444}," एक एकीकृत API प्रदान करता है जो एक ही बैकएंड फ़्लैग के साथ उसी सर्किट को Qiskit, Cirq, PennyLane, Braket, CUDA-Q, या IonQ पर चलाता है।",{"type":21,"tag":703,"props":21446,"children":21447},{},[21448],{"type":26,"value":707},{"title":7,"searchDepth":335,"depth":335,"links":21450},[21451,21452,21453,21454,21455,21456],{"id":20631,"depth":335,"text":20634},{"id":20682,"depth":335,"text":20685},{"id":20973,"depth":335,"text":20976},{"id":21077,"depth":335,"text":21080},{"id":21219,"depth":335,"text":21222},{"id":21350,"depth":335,"text":21353},"content:hi:blog:getting-started-free-quantum-computing.md","hi\u002Fblog\u002Fgetting-started-free-quantum-computing.md","hi\u002Fblog\u002Fgetting-started-free-quantum-computing",{"_path":21461,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":21462,"description":21463,"date":21464,"author":11,"tags":21465,"readingTime":474,"body":21467,"_type":715,"_id":23926,"_source":717,"_file":23927,"_stem":23928,"_extension":720},"\u002Fhi\u002Fblog\u002Fhlquantum-vs-qiskit","HLQuantum बनाम शुद्ध Qiskit: एब्स्ट्रैक्शन लेयर का उपयोग कब करें","Qiskit में सीधे क्वांटम सर्किट लिखने बनाम HLQuantum के एकीकृत API का उपयोग करने की एक व्यावहारिक तुलना — साथ-साथ कोड और यह तय करने के लिए एक ढांचे के साथ कि किसका उपयोग करें।","2026-03-08",[19454,1972,7599,21466],"Best Practices",{"type":18,"children":21468,"toc":23916},[21469,21474,21479,21485,21494,21503,21509,21517,21749,21757,21918,21923,21929,21937,22453,22461,22798,22803,22809,22817,23208,23216,23459,23464,23470,23475,23558,23564,23569,23643,23649,23654,23863,23868,23874,23882,23887,23912],{"type":21,"tag":22,"props":21470,"children":21471},{},[21472],{"type":26,"value":21473},"क्वांटम कंप्यूटिंग प्रोजेक्ट शुरू करते समय एक वास्तविक प्रश्न होता है: क्या आपको सर्किट सीधे Qiskit में लिखने चाहिए, या इसके ऊपर HLQuantum की एब्स्ट्रैक्शन लेयर का उपयोग करना चाहिए? दोनों वैध विकल्प हैं, और सही उत्तर इस पर निर्भर करता है कि आप क्या बना रहे हैं।",{"type":21,"tag":22,"props":21475,"children":21476},{},[21477],{"type":26,"value":21478},"यह पोस्ट आपको निर्णय लेने में मदद करने के लिए एक ठोस, कोड-संचालित तुलना देती है।",{"type":21,"tag":59,"props":21480,"children":21482},{"id":21481},"मूल-अंतर",[21483],{"type":26,"value":21484},"मूल अंतर",{"type":21,"tag":22,"props":21486,"children":21487},{},[21488,21492],{"type":21,"tag":71,"props":21489,"children":21490},{},[21491],{"type":26,"value":1972},{"type":26,"value":21493}," IBM का क्वांटम SDK है। यह आपको हर गेट, क्यूबिट, माप और कंपाइलेशन चरण पर सीधा, सटीक नियंत्रण देता है। यह IBM हार्डवेयर को मूल रूप से लक्षित करता है और IBM-विशिष्ट वर्कफ़्लो के लिए इसका सबसे गहरा इकोसिस्टम है।",{"type":21,"tag":22,"props":21495,"children":21496},{},[21497,21501],{"type":21,"tag":71,"props":21498,"children":21499},{},[21500],{"type":26,"value":19454},{"type":26,"value":21502}," एक एकीकृत API है जो Qiskit, Cirq, PennyLane, Braket, CUDA-Q, और IonQ के ऊपर बैठता है। आप एक सर्किट लिखते हैं; यह उसे अनुवादित करता है और जिस भी बैकएंड की ओर आप इंगित करते हैं उस पर भेज देता है। यह पोर्टेबिलिटी और सरलता के बदले में कुछ निम्न-स्तरीय नियंत्रण का व्यापार करता है।",{"type":21,"tag":59,"props":21504,"children":21506},{"id":21505},"साथ-साथ-bell-state",[21507],{"type":26,"value":21508},"साथ-साथ: Bell State",{"type":21,"tag":22,"props":21510,"children":21511},{},[21512],{"type":21,"tag":71,"props":21513,"children":21514},{},[21515],{"type":26,"value":21516},"शुद्ध Qiskit:",{"type":21,"tag":312,"props":21518,"children":21520},{"code":21519,"language":3638,"meta":7,"className":3636,"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",[21521],{"type":21,"tag":79,"props":21522,"children":21523},{"__ignoreMap":7},[21524,21543,21562,21569,21600,21615,21638,21678,21685,21700,21732],{"type":21,"tag":322,"props":21525,"children":21526},{"class":324,"line":325},[21527,21531,21535,21539],{"type":21,"tag":322,"props":21528,"children":21529},{"style":3648},[21530],{"type":26,"value":3651},{"type":21,"tag":322,"props":21532,"children":21533},{"style":329},[21534],{"type":26,"value":4745},{"type":21,"tag":322,"props":21536,"children":21537},{"style":3648},[21538],{"type":26,"value":3661},{"type":21,"tag":322,"props":21540,"children":21541},{"style":329},[21542],{"type":26,"value":20754},{"type":21,"tag":322,"props":21544,"children":21545},{"class":324,"line":335},[21546,21550,21554,21558],{"type":21,"tag":322,"props":21547,"children":21548},{"style":3648},[21549],{"type":26,"value":3651},{"type":21,"tag":322,"props":21551,"children":21552},{"style":329},[21553],{"type":26,"value":4766},{"type":21,"tag":322,"props":21555,"children":21556},{"style":3648},[21557],{"type":26,"value":3661},{"type":21,"tag":322,"props":21559,"children":21560},{"style":329},[21561],{"type":26,"value":4775},{"type":21,"tag":322,"props":21563,"children":21564},{"class":324,"line":344},[21565],{"type":21,"tag":322,"props":21566,"children":21567},{"emptyLinePlaceholder":3672},[21568],{"type":26,"value":3675},{"type":21,"tag":322,"props":21570,"children":21571},{"class":324,"line":407},[21572,21576,21580,21584,21588,21592,21596],{"type":21,"tag":322,"props":21573,"children":21574},{"style":329},[21575],{"type":26,"value":7832},{"type":21,"tag":322,"props":21577,"children":21578},{"style":3648},[21579],{"type":26,"value":3688},{"type":21,"tag":322,"props":21581,"children":21582},{"style":329},[21583],{"type":26,"value":5588},{"type":21,"tag":322,"props":21585,"children":21586},{"style":348},[21587],{"type":26,"value":423},{"type":21,"tag":322,"props":21589,"children":21590},{"style":329},[21591],{"type":26,"value":367},{"type":21,"tag":322,"props":21593,"children":21594},{"style":348},[21595],{"type":26,"value":423},{"type":21,"tag":322,"props":21597,"children":21598},{"style":329},[21599],{"type":26,"value":3748},{"type":21,"tag":322,"props":21601,"children":21602},{"class":324,"line":431},[21603,21607,21611],{"type":21,"tag":322,"props":21604,"children":21605},{"style":329},[21606],{"type":26,"value":7848},{"type":21,"tag":322,"props":21608,"children":21609},{"style":348},[21610],{"type":26,"value":5618},{"type":21,"tag":322,"props":21612,"children":21613},{"style":329},[21614],{"type":26,"value":3748},{"type":21,"tag":322,"props":21616,"children":21617},{"class":324,"line":453},[21618,21622,21626,21630,21634],{"type":21,"tag":322,"props":21619,"children":21620},{"style":329},[21621],{"type":26,"value":20840},{"type":21,"tag":322,"props":21623,"children":21624},{"style":348},[21625],{"type":26,"value":5618},{"type":21,"tag":322,"props":21627,"children":21628},{"style":329},[21629],{"type":26,"value":367},{"type":21,"tag":322,"props":21631,"children":21632},{"style":348},[21633],{"type":26,"value":4004},{"type":21,"tag":322,"props":21635,"children":21636},{"style":329},[21637],{"type":26,"value":3748},{"type":21,"tag":322,"props":21639,"children":21640},{"class":324,"line":474},[21641,21646,21650,21654,21658,21662,21666,21670,21674],{"type":21,"tag":322,"props":21642,"children":21643},{"style":329},[21644],{"type":26,"value":21645},"qc.measure([",{"type":21,"tag":322,"props":21647,"children":21648},{"style":348},[21649],{"type":26,"value":5618},{"type":21,"tag":322,"props":21651,"children":21652},{"style":329},[21653],{"type":26,"value":367},{"type":21,"tag":322,"props":21655,"children":21656},{"style":348},[21657],{"type":26,"value":4004},{"type":21,"tag":322,"props":21659,"children":21660},{"style":329},[21661],{"type":26,"value":5673},{"type":21,"tag":322,"props":21663,"children":21664},{"style":348},[21665],{"type":26,"value":5618},{"type":21,"tag":322,"props":21667,"children":21668},{"style":329},[21669],{"type":26,"value":367},{"type":21,"tag":322,"props":21671,"children":21672},{"style":348},[21673],{"type":26,"value":4004},{"type":21,"tag":322,"props":21675,"children":21676},{"style":329},[21677],{"type":26,"value":4009},{"type":21,"tag":322,"props":21679,"children":21680},{"class":324,"line":496},[21681],{"type":21,"tag":322,"props":21682,"children":21683},{"emptyLinePlaceholder":3672},[21684],{"type":26,"value":3675},{"type":21,"tag":322,"props":21686,"children":21687},{"class":324,"line":16},[21688,21692,21696],{"type":21,"tag":322,"props":21689,"children":21690},{"style":329},[21691],{"type":26,"value":8874},{"type":21,"tag":322,"props":21693,"children":21694},{"style":3648},[21695],{"type":26,"value":3688},{"type":21,"tag":322,"props":21697,"children":21698},{"style":329},[21699],{"type":26,"value":8883},{"type":21,"tag":322,"props":21701,"children":21702},{"class":324,"line":3894},[21703,21707,21711,21716,21720,21724,21728],{"type":21,"tag":322,"props":21704,"children":21705},{"style":329},[21706],{"type":26,"value":19775},{"type":21,"tag":322,"props":21708,"children":21709},{"style":3648},[21710],{"type":26,"value":3688},{"type":21,"tag":322,"props":21712,"children":21713},{"style":329},[21714],{"type":26,"value":21715}," sim.run(qc, ",{"type":21,"tag":322,"props":21717,"children":21718},{"style":3713},[21719],{"type":26,"value":4573},{"type":21,"tag":322,"props":21721,"children":21722},{"style":3648},[21723],{"type":26,"value":3688},{"type":21,"tag":322,"props":21725,"children":21726},{"style":348},[21727],{"type":26,"value":20912},{"type":21,"tag":322,"props":21729,"children":21730},{"style":329},[21731],{"type":26,"value":20917},{"type":21,"tag":322,"props":21733,"children":21734},{"class":324,"line":3904},[21735,21739,21744],{"type":21,"tag":322,"props":21736,"children":21737},{"style":348},[21738],{"type":26,"value":3763},{"type":21,"tag":322,"props":21740,"children":21741},{"style":329},[21742],{"type":26,"value":21743},"(result.get_counts())  ",{"type":21,"tag":322,"props":21745,"children":21746},{"style":3898},[21747],{"type":26,"value":21748},"# {'00': 501, '11': 499}\n",{"type":21,"tag":22,"props":21750,"children":21751},{},[21752],{"type":21,"tag":71,"props":21753,"children":21754},{},[21755],{"type":26,"value":21756},"HLQuantum:",{"type":21,"tag":312,"props":21758,"children":21760},{"code":21759,"language":3638,"meta":7,"className":3636,"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",[21761],{"type":21,"tag":79,"props":21762,"children":21763},{"__ignoreMap":7},[21764,21783,21790,21814,21847,21854,21902],{"type":21,"tag":322,"props":21765,"children":21766},{"class":324,"line":325},[21767,21771,21775,21779],{"type":21,"tag":322,"props":21768,"children":21769},{"style":3648},[21770],{"type":26,"value":3661},{"type":21,"tag":322,"props":21772,"children":21773},{"style":329},[21774],{"type":26,"value":19743},{"type":21,"tag":322,"props":21776,"children":21777},{"style":3648},[21778],{"type":26,"value":4728},{"type":21,"tag":322,"props":21780,"children":21781},{"style":329},[21782],{"type":26,"value":19752},{"type":21,"tag":322,"props":21784,"children":21785},{"class":324,"line":335},[21786],{"type":21,"tag":322,"props":21787,"children":21788},{"emptyLinePlaceholder":3672},[21789],{"type":26,"value":3675},{"type":21,"tag":322,"props":21791,"children":21792},{"class":324,"line":344},[21793,21797,21801,21806,21810],{"type":21,"tag":322,"props":21794,"children":21795},{"style":329},[21796],{"type":26,"value":7832},{"type":21,"tag":322,"props":21798,"children":21799},{"style":3648},[21800],{"type":26,"value":3688},{"type":21,"tag":322,"props":21802,"children":21803},{"style":329},[21804],{"type":26,"value":21805}," hlq.Circuit(",{"type":21,"tag":322,"props":21807,"children":21808},{"style":348},[21809],{"type":26,"value":423},{"type":21,"tag":322,"props":21811,"children":21812},{"style":329},[21813],{"type":26,"value":3748},{"type":21,"tag":322,"props":21815,"children":21816},{"class":324,"line":407},[21817,21821,21825,21830,21834,21838,21842],{"type":21,"tag":322,"props":21818,"children":21819},{"style":329},[21820],{"type":26,"value":7848},{"type":21,"tag":322,"props":21822,"children":21823},{"style":348},[21824],{"type":26,"value":5618},{"type":21,"tag":322,"props":21826,"children":21827},{"style":329},[21828],{"type":26,"value":21829},").cx(",{"type":21,"tag":322,"props":21831,"children":21832},{"style":348},[21833],{"type":26,"value":5618},{"type":21,"tag":322,"props":21835,"children":21836},{"style":329},[21837],{"type":26,"value":367},{"type":21,"tag":322,"props":21839,"children":21840},{"style":348},[21841],{"type":26,"value":4004},{"type":21,"tag":322,"props":21843,"children":21844},{"style":329},[21845],{"type":26,"value":21846},").measure_all()\n",{"type":21,"tag":322,"props":21848,"children":21849},{"class":324,"line":431},[21850],{"type":21,"tag":322,"props":21851,"children":21852},{"emptyLinePlaceholder":3672},[21853],{"type":26,"value":3675},{"type":21,"tag":322,"props":21855,"children":21856},{"class":324,"line":453},[21857,21861,21865,21870,21874,21878,21882,21886,21890,21894,21898],{"type":21,"tag":322,"props":21858,"children":21859},{"style":329},[21860],{"type":26,"value":19775},{"type":21,"tag":322,"props":21862,"children":21863},{"style":3648},[21864],{"type":26,"value":3688},{"type":21,"tag":322,"props":21866,"children":21867},{"style":329},[21868],{"type":26,"value":21869}," hlq.run(qc, ",{"type":21,"tag":322,"props":21871,"children":21872},{"style":3713},[21873],{"type":26,"value":18916},{"type":21,"tag":322,"props":21875,"children":21876},{"style":3648},[21877],{"type":26,"value":3688},{"type":21,"tag":322,"props":21879,"children":21880},{"style":359},[21881],{"type":26,"value":19833},{"type":21,"tag":322,"props":21883,"children":21884},{"style":329},[21885],{"type":26,"value":367},{"type":21,"tag":322,"props":21887,"children":21888},{"style":3713},[21889],{"type":26,"value":4573},{"type":21,"tag":322,"props":21891,"children":21892},{"style":3648},[21893],{"type":26,"value":3688},{"type":21,"tag":322,"props":21895,"children":21896},{"style":348},[21897],{"type":26,"value":20912},{"type":21,"tag":322,"props":21899,"children":21900},{"style":329},[21901],{"type":26,"value":3748},{"type":21,"tag":322,"props":21903,"children":21904},{"class":324,"line":474},[21905,21909,21914],{"type":21,"tag":322,"props":21906,"children":21907},{"style":348},[21908],{"type":26,"value":3763},{"type":21,"tag":322,"props":21910,"children":21911},{"style":329},[21912],{"type":26,"value":21913},"(result.counts)  ",{"type":21,"tag":322,"props":21915,"children":21916},{"style":3898},[21917],{"type":26,"value":21748},{"type":21,"tag":22,"props":21919,"children":21920},{},[21921],{"type":26,"value":21922},"एकल बैकएंड के लिए लगभग समान वर्बोसिटी। अंतर तब दिखाई देता है जब आप अधिक बैकएंड जोड़ते हैं।",{"type":21,"tag":59,"props":21924,"children":21926},{"id":21925},"साथ-साथ-कई-बैकएंड-पर-चलाना",[21927],{"type":26,"value":21928},"साथ-साथ: कई बैकएंड पर चलाना",{"type":21,"tag":22,"props":21930,"children":21931},{},[21932],{"type":21,"tag":71,"props":21933,"children":21934},{},[21935],{"type":26,"value":21936},"शुद्ध Qiskit (दूसरा बैकएंड जोड़ने के लिए, आपको फिर से लिखना पड़ता है):",{"type":21,"tag":312,"props":21938,"children":21940},{"code":21939,"language":3638,"meta":7,"className":3636,"style":7},"# Qiskit Aer\nfrom qiskit import QuantumCircuit\nfrom qiskit_aer import AerSimulator\nqc_qiskit = QuantumCircuit(2, 2)\nqc_qiskit.h(0); qc_qiskit.cx(0, 1); qc_qiskit.measure_all()\nresult_qiskit = AerSimulator().run(qc_qiskit, shots=1000).result()\n\n# PennyLane — completely different API, rewrite circuit\nimport pennylane as qml\ndev = qml.device('default.qubit', wires=2)\n@qml.qnode(dev)\ndef bell():\n    qml.Hadamard(wires=0)\n    qml.CNOT(wires=[0, 1])\n    return qml.probs(wires=[0, 1])\nresult_pennylane = bell()\n\n# CUDA-Q — yet another API, rewrite again\nimport cudaq\n@cudaq.kernel\ndef bell():\n    qvec = cudaq.qvector(2)\n    h(qvec[0]); cx(qvec[0], qvec[1]); mz(qvec)\nresult_cudaq = cudaq.sample(bell, shots_count=1000)\n",[21941],{"type":21,"tag":79,"props":21942,"children":21943},{"__ignoreMap":7},[21944,21952,21971,21990,22022,22056,22089,22096,22104,22123,22163,22174,22191,22215,22252,22292,22309,22316,22324,22336,22344,22359,22384,22419],{"type":21,"tag":322,"props":21945,"children":21946},{"class":324,"line":325},[21947],{"type":21,"tag":322,"props":21948,"children":21949},{"style":3898},[21950],{"type":26,"value":21951},"# Qiskit Aer\n",{"type":21,"tag":322,"props":21953,"children":21954},{"class":324,"line":335},[21955,21959,21963,21967],{"type":21,"tag":322,"props":21956,"children":21957},{"style":3648},[21958],{"type":26,"value":3651},{"type":21,"tag":322,"props":21960,"children":21961},{"style":329},[21962],{"type":26,"value":4745},{"type":21,"tag":322,"props":21964,"children":21965},{"style":3648},[21966],{"type":26,"value":3661},{"type":21,"tag":322,"props":21968,"children":21969},{"style":329},[21970],{"type":26,"value":20754},{"type":21,"tag":322,"props":21972,"children":21973},{"class":324,"line":344},[21974,21978,21982,21986],{"type":21,"tag":322,"props":21975,"children":21976},{"style":3648},[21977],{"type":26,"value":3651},{"type":21,"tag":322,"props":21979,"children":21980},{"style":329},[21981],{"type":26,"value":4766},{"type":21,"tag":322,"props":21983,"children":21984},{"style":3648},[21985],{"type":26,"value":3661},{"type":21,"tag":322,"props":21987,"children":21988},{"style":329},[21989],{"type":26,"value":4775},{"type":21,"tag":322,"props":21991,"children":21992},{"class":324,"line":407},[21993,21998,22002,22006,22010,22014,22018],{"type":21,"tag":322,"props":21994,"children":21995},{"style":329},[21996],{"type":26,"value":21997},"qc_qiskit ",{"type":21,"tag":322,"props":21999,"children":22000},{"style":3648},[22001],{"type":26,"value":3688},{"type":21,"tag":322,"props":22003,"children":22004},{"style":329},[22005],{"type":26,"value":5588},{"type":21,"tag":322,"props":22007,"children":22008},{"style":348},[22009],{"type":26,"value":423},{"type":21,"tag":322,"props":22011,"children":22012},{"style":329},[22013],{"type":26,"value":367},{"type":21,"tag":322,"props":22015,"children":22016},{"style":348},[22017],{"type":26,"value":423},{"type":21,"tag":322,"props":22019,"children":22020},{"style":329},[22021],{"type":26,"value":3748},{"type":21,"tag":322,"props":22023,"children":22024},{"class":324,"line":431},[22025,22030,22034,22039,22043,22047,22051],{"type":21,"tag":322,"props":22026,"children":22027},{"style":329},[22028],{"type":26,"value":22029},"qc_qiskit.h(",{"type":21,"tag":322,"props":22031,"children":22032},{"style":348},[22033],{"type":26,"value":5618},{"type":21,"tag":322,"props":22035,"children":22036},{"style":329},[22037],{"type":26,"value":22038},"); qc_qiskit.cx(",{"type":21,"tag":322,"props":22040,"children":22041},{"style":348},[22042],{"type":26,"value":5618},{"type":21,"tag":322,"props":22044,"children":22045},{"style":329},[22046],{"type":26,"value":367},{"type":21,"tag":322,"props":22048,"children":22049},{"style":348},[22050],{"type":26,"value":4004},{"type":21,"tag":322,"props":22052,"children":22053},{"style":329},[22054],{"type":26,"value":22055},"); qc_qiskit.measure_all()\n",{"type":21,"tag":322,"props":22057,"children":22058},{"class":324,"line":453},[22059,22064,22068,22073,22077,22081,22085],{"type":21,"tag":322,"props":22060,"children":22061},{"style":329},[22062],{"type":26,"value":22063},"result_qiskit ",{"type":21,"tag":322,"props":22065,"children":22066},{"style":3648},[22067],{"type":26,"value":3688},{"type":21,"tag":322,"props":22069,"children":22070},{"style":329},[22071],{"type":26,"value":22072}," AerSimulator().run(qc_qiskit, ",{"type":21,"tag":322,"props":22074,"children":22075},{"style":3713},[22076],{"type":26,"value":4573},{"type":21,"tag":322,"props":22078,"children":22079},{"style":3648},[22080],{"type":26,"value":3688},{"type":21,"tag":322,"props":22082,"children":22083},{"style":348},[22084],{"type":26,"value":20912},{"type":21,"tag":322,"props":22086,"children":22087},{"style":329},[22088],{"type":26,"value":20917},{"type":21,"tag":322,"props":22090,"children":22091},{"class":324,"line":474},[22092],{"type":21,"tag":322,"props":22093,"children":22094},{"emptyLinePlaceholder":3672},[22095],{"type":26,"value":3675},{"type":21,"tag":322,"props":22097,"children":22098},{"class":324,"line":496},[22099],{"type":21,"tag":322,"props":22100,"children":22101},{"style":3898},[22102],{"type":26,"value":22103},"# PennyLane — completely different API, rewrite circuit\n",{"type":21,"tag":322,"props":22105,"children":22106},{"class":324,"line":16},[22107,22111,22115,22119],{"type":21,"tag":322,"props":22108,"children":22109},{"style":3648},[22110],{"type":26,"value":3661},{"type":21,"tag":322,"props":22112,"children":22113},{"style":329},[22114],{"type":26,"value":14541},{"type":21,"tag":322,"props":22116,"children":22117},{"style":3648},[22118],{"type":26,"value":4728},{"type":21,"tag":322,"props":22120,"children":22121},{"style":329},[22122],{"type":26,"value":14550},{"type":21,"tag":322,"props":22124,"children":22125},{"class":324,"line":3894},[22126,22130,22134,22138,22143,22147,22151,22155,22159],{"type":21,"tag":322,"props":22127,"children":22128},{"style":329},[22129],{"type":26,"value":14674},{"type":21,"tag":322,"props":22131,"children":22132},{"style":3648},[22133],{"type":26,"value":3688},{"type":21,"tag":322,"props":22135,"children":22136},{"style":329},[22137],{"type":26,"value":14683},{"type":21,"tag":322,"props":22139,"children":22140},{"style":359},[22141],{"type":26,"value":22142},"'default.qubit'",{"type":21,"tag":322,"props":22144,"children":22145},{"style":329},[22146],{"type":26,"value":367},{"type":21,"tag":322,"props":22148,"children":22149},{"style":3713},[22150],{"type":26,"value":14697},{"type":21,"tag":322,"props":22152,"children":22153},{"style":3648},[22154],{"type":26,"value":3688},{"type":21,"tag":322,"props":22156,"children":22157},{"style":348},[22158],{"type":26,"value":423},{"type":21,"tag":322,"props":22160,"children":22161},{"style":329},[22162],{"type":26,"value":3748},{"type":21,"tag":322,"props":22164,"children":22165},{"class":324,"line":3904},[22166,22170],{"type":21,"tag":322,"props":22167,"children":22168},{"style":4814},[22169],{"type":26,"value":14721},{"type":21,"tag":322,"props":22171,"children":22172},{"style":329},[22173],{"type":26,"value":14726},{"type":21,"tag":322,"props":22175,"children":22176},{"class":324,"line":1043},[22177,22181,22186],{"type":21,"tag":322,"props":22178,"children":22179},{"style":3648},[22180],{"type":26,"value":4811},{"type":21,"tag":322,"props":22182,"children":22183},{"style":4814},[22184],{"type":26,"value":22185}," bell",{"type":21,"tag":322,"props":22187,"children":22188},{"style":329},[22189],{"type":26,"value":22190},"():\n",{"type":21,"tag":322,"props":22192,"children":22193},{"class":324,"line":3964},[22194,22199,22203,22207,22211],{"type":21,"tag":322,"props":22195,"children":22196},{"style":329},[22197],{"type":26,"value":22198},"    qml.Hadamard(",{"type":21,"tag":322,"props":22200,"children":22201},{"style":3713},[22202],{"type":26,"value":14697},{"type":21,"tag":322,"props":22204,"children":22205},{"style":3648},[22206],{"type":26,"value":3688},{"type":21,"tag":322,"props":22208,"children":22209},{"style":348},[22210],{"type":26,"value":5618},{"type":21,"tag":322,"props":22212,"children":22213},{"style":329},[22214],{"type":26,"value":3748},{"type":21,"tag":322,"props":22216,"children":22217},{"class":324,"line":4012},[22218,22223,22227,22231,22236,22240,22244,22248],{"type":21,"tag":322,"props":22219,"children":22220},{"style":329},[22221],{"type":26,"value":22222},"    qml.CNOT(",{"type":21,"tag":322,"props":22224,"children":22225},{"style":3713},[22226],{"type":26,"value":14697},{"type":21,"tag":322,"props":22228,"children":22229},{"style":3648},[22230],{"type":26,"value":3688},{"type":21,"tag":322,"props":22232,"children":22233},{"style":329},[22234],{"type":26,"value":22235},"[",{"type":21,"tag":322,"props":22237,"children":22238},{"style":348},[22239],{"type":26,"value":5618},{"type":21,"tag":322,"props":22241,"children":22242},{"style":329},[22243],{"type":26,"value":367},{"type":21,"tag":322,"props":22245,"children":22246},{"style":348},[22247],{"type":26,"value":4004},{"type":21,"tag":322,"props":22249,"children":22250},{"style":329},[22251],{"type":26,"value":4009},{"type":21,"tag":322,"props":22253,"children":22254},{"class":324,"line":4054},[22255,22259,22264,22268,22272,22276,22280,22284,22288],{"type":21,"tag":322,"props":22256,"children":22257},{"style":3648},[22258],{"type":26,"value":5036},{"type":21,"tag":322,"props":22260,"children":22261},{"style":329},[22262],{"type":26,"value":22263}," qml.probs(",{"type":21,"tag":322,"props":22265,"children":22266},{"style":3713},[22267],{"type":26,"value":14697},{"type":21,"tag":322,"props":22269,"children":22270},{"style":3648},[22271],{"type":26,"value":3688},{"type":21,"tag":322,"props":22273,"children":22274},{"style":329},[22275],{"type":26,"value":22235},{"type":21,"tag":322,"props":22277,"children":22278},{"style":348},[22279],{"type":26,"value":5618},{"type":21,"tag":322,"props":22281,"children":22282},{"style":329},[22283],{"type":26,"value":367},{"type":21,"tag":322,"props":22285,"children":22286},{"style":348},[22287],{"type":26,"value":4004},{"type":21,"tag":322,"props":22289,"children":22290},{"style":329},[22291],{"type":26,"value":4009},{"type":21,"tag":322,"props":22293,"children":22294},{"class":324,"line":5081},[22295,22300,22304],{"type":21,"tag":322,"props":22296,"children":22297},{"style":329},[22298],{"type":26,"value":22299},"result_pennylane ",{"type":21,"tag":322,"props":22301,"children":22302},{"style":3648},[22303],{"type":26,"value":3688},{"type":21,"tag":322,"props":22305,"children":22306},{"style":329},[22307],{"type":26,"value":22308}," bell()\n",{"type":21,"tag":322,"props":22310,"children":22311},{"class":324,"line":5100},[22312],{"type":21,"tag":322,"props":22313,"children":22314},{"emptyLinePlaceholder":3672},[22315],{"type":26,"value":3675},{"type":21,"tag":322,"props":22317,"children":22318},{"class":324,"line":5108},[22319],{"type":21,"tag":322,"props":22320,"children":22321},{"style":3898},[22322],{"type":26,"value":22323},"# CUDA-Q — yet another API, rewrite again\n",{"type":21,"tag":322,"props":22325,"children":22326},{"class":324,"line":5139},[22327,22331],{"type":21,"tag":322,"props":22328,"children":22329},{"style":3648},[22330],{"type":26,"value":3661},{"type":21,"tag":322,"props":22332,"children":22333},{"style":329},[22334],{"type":26,"value":22335}," cudaq\n",{"type":21,"tag":322,"props":22337,"children":22338},{"class":324,"line":5184},[22339],{"type":21,"tag":322,"props":22340,"children":22341},{"style":4814},[22342],{"type":26,"value":22343},"@cudaq.kernel\n",{"type":21,"tag":322,"props":22345,"children":22346},{"class":324,"line":5223},[22347,22351,22355],{"type":21,"tag":322,"props":22348,"children":22349},{"style":3648},[22350],{"type":26,"value":4811},{"type":21,"tag":322,"props":22352,"children":22353},{"style":4814},[22354],{"type":26,"value":22185},{"type":21,"tag":322,"props":22356,"children":22357},{"style":329},[22358],{"type":26,"value":22190},{"type":21,"tag":322,"props":22360,"children":22361},{"class":324,"line":5241},[22362,22367,22371,22376,22380],{"type":21,"tag":322,"props":22363,"children":22364},{"style":329},[22365],{"type":26,"value":22366},"    qvec ",{"type":21,"tag":322,"props":22368,"children":22369},{"style":3648},[22370],{"type":26,"value":3688},{"type":21,"tag":322,"props":22372,"children":22373},{"style":329},[22374],{"type":26,"value":22375}," cudaq.qvector(",{"type":21,"tag":322,"props":22377,"children":22378},{"style":348},[22379],{"type":26,"value":423},{"type":21,"tag":322,"props":22381,"children":22382},{"style":329},[22383],{"type":26,"value":3748},{"type":21,"tag":322,"props":22385,"children":22386},{"class":324,"line":5315},[22387,22392,22396,22401,22405,22410,22414],{"type":21,"tag":322,"props":22388,"children":22389},{"style":329},[22390],{"type":26,"value":22391},"    h(qvec[",{"type":21,"tag":322,"props":22393,"children":22394},{"style":348},[22395],{"type":26,"value":5618},{"type":21,"tag":322,"props":22397,"children":22398},{"style":329},[22399],{"type":26,"value":22400},"]); cx(qvec[",{"type":21,"tag":322,"props":22402,"children":22403},{"style":348},[22404],{"type":26,"value":5618},{"type":21,"tag":322,"props":22406,"children":22407},{"style":329},[22408],{"type":26,"value":22409},"], qvec[",{"type":21,"tag":322,"props":22411,"children":22412},{"style":348},[22413],{"type":26,"value":4004},{"type":21,"tag":322,"props":22415,"children":22416},{"style":329},[22417],{"type":26,"value":22418},"]); mz(qvec)\n",{"type":21,"tag":322,"props":22420,"children":22421},{"class":324,"line":5343},[22422,22427,22431,22436,22441,22445,22449],{"type":21,"tag":322,"props":22423,"children":22424},{"style":329},[22425],{"type":26,"value":22426},"result_cudaq ",{"type":21,"tag":322,"props":22428,"children":22429},{"style":3648},[22430],{"type":26,"value":3688},{"type":21,"tag":322,"props":22432,"children":22433},{"style":329},[22434],{"type":26,"value":22435}," cudaq.sample(bell, ",{"type":21,"tag":322,"props":22437,"children":22438},{"style":3713},[22439],{"type":26,"value":22440},"shots_count",{"type":21,"tag":322,"props":22442,"children":22443},{"style":3648},[22444],{"type":26,"value":3688},{"type":21,"tag":322,"props":22446,"children":22447},{"style":348},[22448],{"type":26,"value":20912},{"type":21,"tag":322,"props":22450,"children":22451},{"style":329},[22452],{"type":26,"value":3748},{"type":21,"tag":22,"props":22454,"children":22455},{},[22456],{"type":21,"tag":71,"props":22457,"children":22458},{},[22459],{"type":26,"value":22460},"HLQuantum (एक सर्किट, कोई भी बैकएंड):",{"type":21,"tag":312,"props":22462,"children":22464},{"code":22463,"language":3638,"meta":7,"className":3636,"style":7},"import hlquantum as hlq\n\nqc = hlq.Circuit(2)\nqc.h(0).cx(0, 1).measure_all()\n\n# Switch backends with one word\nresult_qiskit    = hlq.run(qc, backend='qiskit')\nresult_pennylane = hlq.run(qc, backend='pennylane')\nresult_cudaq     = hlq.run(qc, backend='cudaq')    # GPU\nresult_cirq      = hlq.run(qc, backend='cirq')\nresult_ionq      = hlq.run(qc, backend='ionq', device='aria-1')\nresult_ibm       = hlq.run(qc, backend='qiskit', device='ibm_sherbrooke')\n",[22465],{"type":21,"tag":79,"props":22466,"children":22467},{"__ignoreMap":7},[22468,22487,22494,22517,22548,22555,22563,22595,22627,22665,22698,22749],{"type":21,"tag":322,"props":22469,"children":22470},{"class":324,"line":325},[22471,22475,22479,22483],{"type":21,"tag":322,"props":22472,"children":22473},{"style":3648},[22474],{"type":26,"value":3661},{"type":21,"tag":322,"props":22476,"children":22477},{"style":329},[22478],{"type":26,"value":19743},{"type":21,"tag":322,"props":22480,"children":22481},{"style":3648},[22482],{"type":26,"value":4728},{"type":21,"tag":322,"props":22484,"children":22485},{"style":329},[22486],{"type":26,"value":19752},{"type":21,"tag":322,"props":22488,"children":22489},{"class":324,"line":335},[22490],{"type":21,"tag":322,"props":22491,"children":22492},{"emptyLinePlaceholder":3672},[22493],{"type":26,"value":3675},{"type":21,"tag":322,"props":22495,"children":22496},{"class":324,"line":344},[22497,22501,22505,22509,22513],{"type":21,"tag":322,"props":22498,"children":22499},{"style":329},[22500],{"type":26,"value":7832},{"type":21,"tag":322,"props":22502,"children":22503},{"style":3648},[22504],{"type":26,"value":3688},{"type":21,"tag":322,"props":22506,"children":22507},{"style":329},[22508],{"type":26,"value":21805},{"type":21,"tag":322,"props":22510,"children":22511},{"style":348},[22512],{"type":26,"value":423},{"type":21,"tag":322,"props":22514,"children":22515},{"style":329},[22516],{"type":26,"value":3748},{"type":21,"tag":322,"props":22518,"children":22519},{"class":324,"line":407},[22520,22524,22528,22532,22536,22540,22544],{"type":21,"tag":322,"props":22521,"children":22522},{"style":329},[22523],{"type":26,"value":7848},{"type":21,"tag":322,"props":22525,"children":22526},{"style":348},[22527],{"type":26,"value":5618},{"type":21,"tag":322,"props":22529,"children":22530},{"style":329},[22531],{"type":26,"value":21829},{"type":21,"tag":322,"props":22533,"children":22534},{"style":348},[22535],{"type":26,"value":5618},{"type":21,"tag":322,"props":22537,"children":22538},{"style":329},[22539],{"type":26,"value":367},{"type":21,"tag":322,"props":22541,"children":22542},{"style":348},[22543],{"type":26,"value":4004},{"type":21,"tag":322,"props":22545,"children":22546},{"style":329},[22547],{"type":26,"value":21846},{"type":21,"tag":322,"props":22549,"children":22550},{"class":324,"line":431},[22551],{"type":21,"tag":322,"props":22552,"children":22553},{"emptyLinePlaceholder":3672},[22554],{"type":26,"value":3675},{"type":21,"tag":322,"props":22556,"children":22557},{"class":324,"line":453},[22558],{"type":21,"tag":322,"props":22559,"children":22560},{"style":3898},[22561],{"type":26,"value":22562},"# Switch backends with one word\n",{"type":21,"tag":322,"props":22564,"children":22565},{"class":324,"line":474},[22566,22571,22575,22579,22583,22587,22591],{"type":21,"tag":322,"props":22567,"children":22568},{"style":329},[22569],{"type":26,"value":22570},"result_qiskit    ",{"type":21,"tag":322,"props":22572,"children":22573},{"style":3648},[22574],{"type":26,"value":3688},{"type":21,"tag":322,"props":22576,"children":22577},{"style":329},[22578],{"type":26,"value":21869},{"type":21,"tag":322,"props":22580,"children":22581},{"style":3713},[22582],{"type":26,"value":18916},{"type":21,"tag":322,"props":22584,"children":22585},{"style":3648},[22586],{"type":26,"value":3688},{"type":21,"tag":322,"props":22588,"children":22589},{"style":359},[22590],{"type":26,"value":19833},{"type":21,"tag":322,"props":22592,"children":22593},{"style":329},[22594],{"type":26,"value":3748},{"type":21,"tag":322,"props":22596,"children":22597},{"class":324,"line":496},[22598,22602,22606,22610,22614,22618,22623],{"type":21,"tag":322,"props":22599,"children":22600},{"style":329},[22601],{"type":26,"value":22299},{"type":21,"tag":322,"props":22603,"children":22604},{"style":3648},[22605],{"type":26,"value":3688},{"type":21,"tag":322,"props":22607,"children":22608},{"style":329},[22609],{"type":26,"value":21869},{"type":21,"tag":322,"props":22611,"children":22612},{"style":3713},[22613],{"type":26,"value":18916},{"type":21,"tag":322,"props":22615,"children":22616},{"style":3648},[22617],{"type":26,"value":3688},{"type":21,"tag":322,"props":22619,"children":22620},{"style":359},[22621],{"type":26,"value":22622},"'pennylane'",{"type":21,"tag":322,"props":22624,"children":22625},{"style":329},[22626],{"type":26,"value":3748},{"type":21,"tag":322,"props":22628,"children":22629},{"class":324,"line":16},[22630,22635,22639,22643,22647,22651,22656,22660],{"type":21,"tag":322,"props":22631,"children":22632},{"style":329},[22633],{"type":26,"value":22634},"result_cudaq     ",{"type":21,"tag":322,"props":22636,"children":22637},{"style":3648},[22638],{"type":26,"value":3688},{"type":21,"tag":322,"props":22640,"children":22641},{"style":329},[22642],{"type":26,"value":21869},{"type":21,"tag":322,"props":22644,"children":22645},{"style":3713},[22646],{"type":26,"value":18916},{"type":21,"tag":322,"props":22648,"children":22649},{"style":3648},[22650],{"type":26,"value":3688},{"type":21,"tag":322,"props":22652,"children":22653},{"style":359},[22654],{"type":26,"value":22655},"'cudaq'",{"type":21,"tag":322,"props":22657,"children":22658},{"style":329},[22659],{"type":26,"value":8662},{"type":21,"tag":322,"props":22661,"children":22662},{"style":3898},[22663],{"type":26,"value":22664},"# GPU\n",{"type":21,"tag":322,"props":22666,"children":22667},{"class":324,"line":3894},[22668,22673,22677,22681,22685,22689,22694],{"type":21,"tag":322,"props":22669,"children":22670},{"style":329},[22671],{"type":26,"value":22672},"result_cirq      ",{"type":21,"tag":322,"props":22674,"children":22675},{"style":3648},[22676],{"type":26,"value":3688},{"type":21,"tag":322,"props":22678,"children":22679},{"style":329},[22680],{"type":26,"value":21869},{"type":21,"tag":322,"props":22682,"children":22683},{"style":3713},[22684],{"type":26,"value":18916},{"type":21,"tag":322,"props":22686,"children":22687},{"style":3648},[22688],{"type":26,"value":3688},{"type":21,"tag":322,"props":22690,"children":22691},{"style":359},[22692],{"type":26,"value":22693},"'cirq'",{"type":21,"tag":322,"props":22695,"children":22696},{"style":329},[22697],{"type":26,"value":3748},{"type":21,"tag":322,"props":22699,"children":22700},{"class":324,"line":3904},[22701,22706,22710,22714,22718,22722,22727,22731,22736,22740,22745],{"type":21,"tag":322,"props":22702,"children":22703},{"style":329},[22704],{"type":26,"value":22705},"result_ionq      ",{"type":21,"tag":322,"props":22707,"children":22708},{"style":3648},[22709],{"type":26,"value":3688},{"type":21,"tag":322,"props":22711,"children":22712},{"style":329},[22713],{"type":26,"value":21869},{"type":21,"tag":322,"props":22715,"children":22716},{"style":3713},[22717],{"type":26,"value":18916},{"type":21,"tag":322,"props":22719,"children":22720},{"style":3648},[22721],{"type":26,"value":3688},{"type":21,"tag":322,"props":22723,"children":22724},{"style":359},[22725],{"type":26,"value":22726},"'ionq'",{"type":21,"tag":322,"props":22728,"children":22729},{"style":329},[22730],{"type":26,"value":367},{"type":21,"tag":322,"props":22732,"children":22733},{"style":3713},[22734],{"type":26,"value":22735},"device",{"type":21,"tag":322,"props":22737,"children":22738},{"style":3648},[22739],{"type":26,"value":3688},{"type":21,"tag":322,"props":22741,"children":22742},{"style":359},[22743],{"type":26,"value":22744},"'aria-1'",{"type":21,"tag":322,"props":22746,"children":22747},{"style":329},[22748],{"type":26,"value":3748},{"type":21,"tag":322,"props":22750,"children":22751},{"class":324,"line":1043},[22752,22757,22761,22765,22769,22773,22777,22781,22785,22789,22794],{"type":21,"tag":322,"props":22753,"children":22754},{"style":329},[22755],{"type":26,"value":22756},"result_ibm       ",{"type":21,"tag":322,"props":22758,"children":22759},{"style":3648},[22760],{"type":26,"value":3688},{"type":21,"tag":322,"props":22762,"children":22763},{"style":329},[22764],{"type":26,"value":21869},{"type":21,"tag":322,"props":22766,"children":22767},{"style":3713},[22768],{"type":26,"value":18916},{"type":21,"tag":322,"props":22770,"children":22771},{"style":3648},[22772],{"type":26,"value":3688},{"type":21,"tag":322,"props":22774,"children":22775},{"style":359},[22776],{"type":26,"value":19833},{"type":21,"tag":322,"props":22778,"children":22779},{"style":329},[22780],{"type":26,"value":367},{"type":21,"tag":322,"props":22782,"children":22783},{"style":3713},[22784],{"type":26,"value":22735},{"type":21,"tag":322,"props":22786,"children":22787},{"style":3648},[22788],{"type":26,"value":3688},{"type":21,"tag":322,"props":22790,"children":22791},{"style":359},[22792],{"type":26,"value":22793},"'ibm_sherbrooke'",{"type":21,"tag":322,"props":22795,"children":22796},{"style":329},[22797],{"type":26,"value":3748},{"type":21,"tag":22,"props":22799,"children":22800},{},[22801],{"type":26,"value":22802},"यहीं HLQuantum का लाभ मिलता है — किसी स्थानीय सिम्युलेटर पर प्रोटोटाइप बनाना और सर्किट को फिर से लिखे बिना QPU पर तैनात करना।",{"type":21,"tag":59,"props":22804,"children":22806},{"id":22805},"साथ-साथ-vqe",[22807],{"type":26,"value":22808},"साथ-साथ: VQE",{"type":21,"tag":22,"props":22810,"children":22811},{},[22812],{"type":21,"tag":71,"props":22813,"children":22814},{},[22815],{"type":26,"value":22816},"शुद्ध Qiskit VQE:",{"type":21,"tag":312,"props":22818,"children":22820},{"code":22819,"language":3638,"meta":7,"className":3636,"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",[22821],{"type":21,"tag":79,"props":22822,"children":22823},{"__ignoreMap":7},[22824,22845,22866,22887,22908,22929,22950,22957,22992,23009,23026,23051,23058,23075,23083,23091,23099,23116,23123,23130,23147,23163],{"type":21,"tag":322,"props":22825,"children":22826},{"class":324,"line":325},[22827,22831,22836,22840],{"type":21,"tag":322,"props":22828,"children":22829},{"style":3648},[22830],{"type":26,"value":3651},{"type":21,"tag":322,"props":22832,"children":22833},{"style":329},[22834],{"type":26,"value":22835}," qiskit_nature.second_q.drivers ",{"type":21,"tag":322,"props":22837,"children":22838},{"style":3648},[22839],{"type":26,"value":3661},{"type":21,"tag":322,"props":22841,"children":22842},{"style":329},[22843],{"type":26,"value":22844}," PySCFDriver\n",{"type":21,"tag":322,"props":22846,"children":22847},{"class":324,"line":335},[22848,22852,22857,22861],{"type":21,"tag":322,"props":22849,"children":22850},{"style":3648},[22851],{"type":26,"value":3651},{"type":21,"tag":322,"props":22853,"children":22854},{"style":329},[22855],{"type":26,"value":22856}," qiskit_nature.second_q.mappers ",{"type":21,"tag":322,"props":22858,"children":22859},{"style":3648},[22860],{"type":26,"value":3661},{"type":21,"tag":322,"props":22862,"children":22863},{"style":329},[22864],{"type":26,"value":22865}," JordanWignerMapper\n",{"type":21,"tag":322,"props":22867,"children":22868},{"class":324,"line":344},[22869,22873,22878,22882],{"type":21,"tag":322,"props":22870,"children":22871},{"style":3648},[22872],{"type":26,"value":3651},{"type":21,"tag":322,"props":22874,"children":22875},{"style":329},[22876],{"type":26,"value":22877}," qiskit_nature.second_q.circuit.library ",{"type":21,"tag":322,"props":22879,"children":22880},{"style":3648},[22881],{"type":26,"value":3661},{"type":21,"tag":322,"props":22883,"children":22884},{"style":348},[22885],{"type":26,"value":22886}," UCCSD\n",{"type":21,"tag":322,"props":22888,"children":22889},{"class":324,"line":407},[22890,22894,22899,22903],{"type":21,"tag":322,"props":22891,"children":22892},{"style":3648},[22893],{"type":26,"value":3651},{"type":21,"tag":322,"props":22895,"children":22896},{"style":329},[22897],{"type":26,"value":22898}," qiskit_algorithms ",{"type":21,"tag":322,"props":22900,"children":22901},{"style":3648},[22902],{"type":26,"value":3661},{"type":21,"tag":322,"props":22904,"children":22905},{"style":348},[22906],{"type":26,"value":22907}," VQE\n",{"type":21,"tag":322,"props":22909,"children":22910},{"class":324,"line":431},[22911,22915,22920,22924],{"type":21,"tag":322,"props":22912,"children":22913},{"style":3648},[22914],{"type":26,"value":3651},{"type":21,"tag":322,"props":22916,"children":22917},{"style":329},[22918],{"type":26,"value":22919}," qiskit_algorithms.optimizers ",{"type":21,"tag":322,"props":22921,"children":22922},{"style":3648},[22923],{"type":26,"value":3661},{"type":21,"tag":322,"props":22925,"children":22926},{"style":348},[22927],{"type":26,"value":22928}," COBYLA\n",{"type":21,"tag":322,"props":22930,"children":22931},{"class":324,"line":453},[22932,22936,22941,22945],{"type":21,"tag":322,"props":22933,"children":22934},{"style":3648},[22935],{"type":26,"value":3651},{"type":21,"tag":322,"props":22937,"children":22938},{"style":329},[22939],{"type":26,"value":22940}," qiskit.primitives ",{"type":21,"tag":322,"props":22942,"children":22943},{"style":3648},[22944],{"type":26,"value":3661},{"type":21,"tag":322,"props":22946,"children":22947},{"style":329},[22948],{"type":26,"value":22949}," Estimator\n",{"type":21,"tag":322,"props":22951,"children":22952},{"class":324,"line":474},[22953],{"type":21,"tag":322,"props":22954,"children":22955},{"emptyLinePlaceholder":3672},[22956],{"type":26,"value":3675},{"type":21,"tag":322,"props":22958,"children":22959},{"class":324,"line":496},[22960,22965,22969,22974,22979,22983,22988],{"type":21,"tag":322,"props":22961,"children":22962},{"style":329},[22963],{"type":26,"value":22964},"driver ",{"type":21,"tag":322,"props":22966,"children":22967},{"style":3648},[22968],{"type":26,"value":3688},{"type":21,"tag":322,"props":22970,"children":22971},{"style":329},[22972],{"type":26,"value":22973}," PySCFDriver(",{"type":21,"tag":322,"props":22975,"children":22976},{"style":3713},[22977],{"type":26,"value":22978},"atom",{"type":21,"tag":322,"props":22980,"children":22981},{"style":3648},[22982],{"type":26,"value":3688},{"type":21,"tag":322,"props":22984,"children":22985},{"style":359},[22986],{"type":26,"value":22987},"'H .0 .0 .0; H .0 .0 0.735'",{"type":21,"tag":322,"props":22989,"children":22990},{"style":329},[22991],{"type":26,"value":3748},{"type":21,"tag":322,"props":22993,"children":22994},{"class":324,"line":16},[22995,23000,23004],{"type":21,"tag":322,"props":22996,"children":22997},{"style":329},[22998],{"type":26,"value":22999},"problem ",{"type":21,"tag":322,"props":23001,"children":23002},{"style":3648},[23003],{"type":26,"value":3688},{"type":21,"tag":322,"props":23005,"children":23006},{"style":329},[23007],{"type":26,"value":23008}," driver.run()\n",{"type":21,"tag":322,"props":23010,"children":23011},{"class":324,"line":3894},[23012,23017,23021],{"type":21,"tag":322,"props":23013,"children":23014},{"style":329},[23015],{"type":26,"value":23016},"mapper ",{"type":21,"tag":322,"props":23018,"children":23019},{"style":3648},[23020],{"type":26,"value":3688},{"type":21,"tag":322,"props":23022,"children":23023},{"style":329},[23024],{"type":26,"value":23025}," JordanWignerMapper()\n",{"type":21,"tag":322,"props":23027,"children":23028},{"class":324,"line":3904},[23029,23034,23038,23043,23047],{"type":21,"tag":322,"props":23030,"children":23031},{"style":329},[23032],{"type":26,"value":23033},"hamiltonian ",{"type":21,"tag":322,"props":23035,"children":23036},{"style":3648},[23037],{"type":26,"value":3688},{"type":21,"tag":322,"props":23039,"children":23040},{"style":329},[23041],{"type":26,"value":23042}," mapper.map(problem.second_q_ops()[",{"type":21,"tag":322,"props":23044,"children":23045},{"style":348},[23046],{"type":26,"value":5618},{"type":21,"tag":322,"props":23048,"children":23049},{"style":329},[23050],{"type":26,"value":4009},{"type":21,"tag":322,"props":23052,"children":23053},{"class":324,"line":1043},[23054],{"type":21,"tag":322,"props":23055,"children":23056},{"emptyLinePlaceholder":3672},[23057],{"type":26,"value":3675},{"type":21,"tag":322,"props":23059,"children":23060},{"class":324,"line":3964},[23061,23066,23070],{"type":21,"tag":322,"props":23062,"children":23063},{"style":329},[23064],{"type":26,"value":23065},"ansatz ",{"type":21,"tag":322,"props":23067,"children":23068},{"style":3648},[23069],{"type":26,"value":3688},{"type":21,"tag":322,"props":23071,"children":23072},{"style":329},[23073],{"type":26,"value":23074}," UCCSD(\n",{"type":21,"tag":322,"props":23076,"children":23077},{"class":324,"line":4012},[23078],{"type":21,"tag":322,"props":23079,"children":23080},{"style":329},[23081],{"type":26,"value":23082},"    problem.num_spatial_orbitals,\n",{"type":21,"tag":322,"props":23084,"children":23085},{"class":324,"line":4054},[23086],{"type":21,"tag":322,"props":23087,"children":23088},{"style":329},[23089],{"type":26,"value":23090},"    problem.num_particles,\n",{"type":21,"tag":322,"props":23092,"children":23093},{"class":324,"line":5081},[23094],{"type":21,"tag":322,"props":23095,"children":23096},{"style":329},[23097],{"type":26,"value":23098},"    mapper,\n",{"type":21,"tag":322,"props":23100,"children":23101},{"class":324,"line":5100},[23102,23107,23111],{"type":21,"tag":322,"props":23103,"children":23104},{"style":3713},[23105],{"type":26,"value":23106},"    initial_state",{"type":21,"tag":322,"props":23108,"children":23109},{"style":3648},[23110],{"type":26,"value":3688},{"type":21,"tag":322,"props":23112,"children":23113},{"style":329},[23114],{"type":26,"value":23115},"problem.reference_state,\n",{"type":21,"tag":322,"props":23117,"children":23118},{"class":324,"line":5108},[23119],{"type":21,"tag":322,"props":23120,"children":23121},{"style":329},[23122],{"type":26,"value":3748},{"type":21,"tag":322,"props":23124,"children":23125},{"class":324,"line":5139},[23126],{"type":21,"tag":322,"props":23127,"children":23128},{"emptyLinePlaceholder":3672},[23129],{"type":26,"value":3675},{"type":21,"tag":322,"props":23131,"children":23132},{"class":324,"line":5184},[23133,23138,23142],{"type":21,"tag":322,"props":23134,"children":23135},{"style":329},[23136],{"type":26,"value":23137},"vqe ",{"type":21,"tag":322,"props":23139,"children":23140},{"style":3648},[23141],{"type":26,"value":3688},{"type":21,"tag":322,"props":23143,"children":23144},{"style":329},[23145],{"type":26,"value":23146}," VQE(Estimator(), ansatz, COBYLA())\n",{"type":21,"tag":322,"props":23148,"children":23149},{"class":324,"line":5223},[23150,23154,23158],{"type":21,"tag":322,"props":23151,"children":23152},{"style":329},[23153],{"type":26,"value":19775},{"type":21,"tag":322,"props":23155,"children":23156},{"style":3648},[23157],{"type":26,"value":3688},{"type":21,"tag":322,"props":23159,"children":23160},{"style":329},[23161],{"type":26,"value":23162}," vqe.compute_minimum_eigenvalue(hamiltonian)\n",{"type":21,"tag":322,"props":23164,"children":23165},{"class":324,"line":5241},[23166,23170,23174,23178,23183,23187,23192,23196,23200,23204],{"type":21,"tag":322,"props":23167,"children":23168},{"style":348},[23169],{"type":26,"value":3763},{"type":21,"tag":322,"props":23171,"children":23172},{"style":329},[23173],{"type":26,"value":3768},{"type":21,"tag":322,"props":23175,"children":23176},{"style":3648},[23177],{"type":26,"value":3773},{"type":21,"tag":322,"props":23179,"children":23180},{"style":359},[23181],{"type":26,"value":23182},"\"H2 ground state: ",{"type":21,"tag":322,"props":23184,"children":23185},{"style":348},[23186],{"type":26,"value":3783},{"type":21,"tag":322,"props":23188,"children":23189},{"style":329},[23190],{"type":26,"value":23191},"result.eigenvalue.real",{"type":21,"tag":322,"props":23193,"children":23194},{"style":3648},[23195],{"type":26,"value":4095},{"type":21,"tag":322,"props":23197,"children":23198},{"style":348},[23199],{"type":26,"value":3793},{"type":21,"tag":322,"props":23201,"children":23202},{"style":359},[23203],{"type":26,"value":19879},{"type":21,"tag":322,"props":23205,"children":23206},{"style":329},[23207],{"type":26,"value":3748},{"type":21,"tag":22,"props":23209,"children":23210},{},[23211],{"type":21,"tag":71,"props":23212,"children":23213},{},[23214],{"type":26,"value":23215},"HLQuantum VQE:",{"type":21,"tag":312,"props":23217,"children":23219},{"code":23218,"language":3638,"meta":7,"className":3636,"style":7},"import hlquantum as hlq\n\nresult = hlq.algorithms.vqe(\n    molecule='H2',\n    basis='sto-3g',\n    backend='qiskit',\n    optimizer='COBYLA',\n)\nprint(f\"H2 ground state: {result.energy:.4f} Ha\")\n\n# Switch to GPU:\nresult_gpu = hlq.algorithms.vqe(molecule='H2', backend='cudaq')\n",[23220],{"type":21,"tag":79,"props":23221,"children":23222},{"__ignoreMap":7},[23223,23242,23249,23265,23285,23305,23325,23346,23353,23396,23403,23411],{"type":21,"tag":322,"props":23224,"children":23225},{"class":324,"line":325},[23226,23230,23234,23238],{"type":21,"tag":322,"props":23227,"children":23228},{"style":3648},[23229],{"type":26,"value":3661},{"type":21,"tag":322,"props":23231,"children":23232},{"style":329},[23233],{"type":26,"value":19743},{"type":21,"tag":322,"props":23235,"children":23236},{"style":3648},[23237],{"type":26,"value":4728},{"type":21,"tag":322,"props":23239,"children":23240},{"style":329},[23241],{"type":26,"value":19752},{"type":21,"tag":322,"props":23243,"children":23244},{"class":324,"line":335},[23245],{"type":21,"tag":322,"props":23246,"children":23247},{"emptyLinePlaceholder":3672},[23248],{"type":26,"value":3675},{"type":21,"tag":322,"props":23250,"children":23251},{"class":324,"line":344},[23252,23256,23260],{"type":21,"tag":322,"props":23253,"children":23254},{"style":329},[23255],{"type":26,"value":19775},{"type":21,"tag":322,"props":23257,"children":23258},{"style":3648},[23259],{"type":26,"value":3688},{"type":21,"tag":322,"props":23261,"children":23262},{"style":329},[23263],{"type":26,"value":23264}," hlq.algorithms.vqe(\n",{"type":21,"tag":322,"props":23266,"children":23267},{"class":324,"line":407},[23268,23273,23277,23281],{"type":21,"tag":322,"props":23269,"children":23270},{"style":3713},[23271],{"type":26,"value":23272},"    molecule",{"type":21,"tag":322,"props":23274,"children":23275},{"style":3648},[23276],{"type":26,"value":3688},{"type":21,"tag":322,"props":23278,"children":23279},{"style":359},[23280],{"type":26,"value":19798},{"type":21,"tag":322,"props":23282,"children":23283},{"style":329},[23284],{"type":26,"value":428},{"type":21,"tag":322,"props":23286,"children":23287},{"class":324,"line":431},[23288,23293,23297,23301],{"type":21,"tag":322,"props":23289,"children":23290},{"style":3713},[23291],{"type":26,"value":23292},"    basis",{"type":21,"tag":322,"props":23294,"children":23295},{"style":3648},[23296],{"type":26,"value":3688},{"type":21,"tag":322,"props":23298,"children":23299},{"style":359},[23300],{"type":26,"value":19816},{"type":21,"tag":322,"props":23302,"children":23303},{"style":329},[23304],{"type":26,"value":428},{"type":21,"tag":322,"props":23306,"children":23307},{"class":324,"line":453},[23308,23313,23317,23321],{"type":21,"tag":322,"props":23309,"children":23310},{"style":3713},[23311],{"type":26,"value":23312},"    backend",{"type":21,"tag":322,"props":23314,"children":23315},{"style":3648},[23316],{"type":26,"value":3688},{"type":21,"tag":322,"props":23318,"children":23319},{"style":359},[23320],{"type":26,"value":19833},{"type":21,"tag":322,"props":23322,"children":23323},{"style":329},[23324],{"type":26,"value":428},{"type":21,"tag":322,"props":23326,"children":23327},{"class":324,"line":474},[23328,23333,23337,23342],{"type":21,"tag":322,"props":23329,"children":23330},{"style":3713},[23331],{"type":26,"value":23332},"    optimizer",{"type":21,"tag":322,"props":23334,"children":23335},{"style":3648},[23336],{"type":26,"value":3688},{"type":21,"tag":322,"props":23338,"children":23339},{"style":359},[23340],{"type":26,"value":23341},"'COBYLA'",{"type":21,"tag":322,"props":23343,"children":23344},{"style":329},[23345],{"type":26,"value":428},{"type":21,"tag":322,"props":23347,"children":23348},{"class":324,"line":496},[23349],{"type":21,"tag":322,"props":23350,"children":23351},{"style":329},[23352],{"type":26,"value":3748},{"type":21,"tag":322,"props":23354,"children":23355},{"class":324,"line":16},[23356,23360,23364,23368,23372,23376,23380,23384,23388,23392],{"type":21,"tag":322,"props":23357,"children":23358},{"style":348},[23359],{"type":26,"value":3763},{"type":21,"tag":322,"props":23361,"children":23362},{"style":329},[23363],{"type":26,"value":3768},{"type":21,"tag":322,"props":23365,"children":23366},{"style":3648},[23367],{"type":26,"value":3773},{"type":21,"tag":322,"props":23369,"children":23370},{"style":359},[23371],{"type":26,"value":23182},{"type":21,"tag":322,"props":23373,"children":23374},{"style":348},[23375],{"type":26,"value":3783},{"type":21,"tag":322,"props":23377,"children":23378},{"style":329},[23379],{"type":26,"value":19866},{"type":21,"tag":322,"props":23381,"children":23382},{"style":3648},[23383],{"type":26,"value":4095},{"type":21,"tag":322,"props":23385,"children":23386},{"style":348},[23387],{"type":26,"value":3793},{"type":21,"tag":322,"props":23389,"children":23390},{"style":359},[23391],{"type":26,"value":19879},{"type":21,"tag":322,"props":23393,"children":23394},{"style":329},[23395],{"type":26,"value":3748},{"type":21,"tag":322,"props":23397,"children":23398},{"class":324,"line":3894},[23399],{"type":21,"tag":322,"props":23400,"children":23401},{"emptyLinePlaceholder":3672},[23402],{"type":26,"value":3675},{"type":21,"tag":322,"props":23404,"children":23405},{"class":324,"line":3904},[23406],{"type":21,"tag":322,"props":23407,"children":23408},{"style":3898},[23409],{"type":26,"value":23410},"# Switch to GPU:\n",{"type":21,"tag":322,"props":23412,"children":23413},{"class":324,"line":1043},[23414,23419,23423,23427,23431,23435,23439,23443,23447,23451,23455],{"type":21,"tag":322,"props":23415,"children":23416},{"style":329},[23417],{"type":26,"value":23418},"result_gpu ",{"type":21,"tag":322,"props":23420,"children":23421},{"style":3648},[23422],{"type":26,"value":3688},{"type":21,"tag":322,"props":23424,"children":23425},{"style":329},[23426],{"type":26,"value":19784},{"type":21,"tag":322,"props":23428,"children":23429},{"style":3713},[23430],{"type":26,"value":19789},{"type":21,"tag":322,"props":23432,"children":23433},{"style":3648},[23434],{"type":26,"value":3688},{"type":21,"tag":322,"props":23436,"children":23437},{"style":359},[23438],{"type":26,"value":19798},{"type":21,"tag":322,"props":23440,"children":23441},{"style":329},[23442],{"type":26,"value":367},{"type":21,"tag":322,"props":23444,"children":23445},{"style":3713},[23446],{"type":26,"value":18916},{"type":21,"tag":322,"props":23448,"children":23449},{"style":3648},[23450],{"type":26,"value":3688},{"type":21,"tag":322,"props":23452,"children":23453},{"style":359},[23454],{"type":26,"value":22655},{"type":21,"tag":322,"props":23456,"children":23457},{"style":329},[23458],{"type":26,"value":3748},{"type":21,"tag":22,"props":23460,"children":23461},{},[23462],{"type":26,"value":23463},"शुद्ध Qiskit आपको ansatz, mapper, और driver पर पूर्ण नियंत्रण देता है। HLQuantum की एक-पंक्ति बैकएंड की तुलना करने या जल्दी परिणाम प्राप्त करने के लिए सर्वोत्तम है; शुद्ध Qiskit तब बेहतर है जब आपको कस्टम ansatze या एल्गोरिदम ट्यूनिंग की आवश्यकता हो।",{"type":21,"tag":59,"props":23465,"children":23467},{"id":23466},"शुद्ध-qiskit-का-उपयोग-कब-करें",[23468],{"type":26,"value":23469},"शुद्ध Qiskit का उपयोग कब करें",{"type":21,"tag":22,"props":23471,"children":23472},{},[23473],{"type":26,"value":23474},"Qiskit का सीधे उपयोग तब करें जब:",{"type":21,"tag":7457,"props":23476,"children":23477},{},[23478,23488,23498,23538,23548],{"type":21,"tag":3570,"props":23479,"children":23480},{},[23481,23486],{"type":21,"tag":71,"props":23482,"children":23483},{},[23484],{"type":26,"value":23485},"आप विशेष रूप से IBM हार्डवेयर को लक्षित कर रहे हों",{"type":26,"value":23487}," — Qiskit का ट्रांसपाइलर और IBM Runtime प्रिमिटिव आपको IBM QPU पर सर्वोत्तम प्रदर्शन देते हैं। HLQuantum का एब्स्ट्रैक्शन ओवरहेड जोड़ता है।",{"type":21,"tag":3570,"props":23489,"children":23490},{},[23491,23496],{"type":21,"tag":71,"props":23492,"children":23493},{},[23494],{"type":26,"value":23495},"आपको बारीक सर्किट नियंत्रण की आवश्यकता हो",{"type":26,"value":23497}," — कस्टम गेट अपघटन, विशिष्ट ट्रांसपाइलर पास, पल्स-स्तरीय नियंत्रण, मध्य-सर्किट मापों के साथ गतिशील सर्किट।",{"type":21,"tag":3570,"props":23499,"children":23500},{},[23501,23506,23508,23514,23515,23521,23522,23528,23530,23536],{"type":21,"tag":71,"props":23502,"children":23503},{},[23504],{"type":26,"value":23505},"आप IBM-इकोसिस्टम अनुसंधान कर रहे हों",{"type":26,"value":23507}," — ",{"type":21,"tag":79,"props":23509,"children":23511},{"className":23510},[],[23512],{"type":26,"value":23513},"qiskit-nature",{"type":26,"value":367},{"type":21,"tag":79,"props":23516,"children":23518},{"className":23517},[],[23519],{"type":26,"value":23520},"qiskit-finance",{"type":26,"value":367},{"type":21,"tag":79,"props":23523,"children":23525},{"className":23524},[],[23526],{"type":26,"value":23527},"qiskit-optimization",{"type":26,"value":23529},", या ",{"type":21,"tag":79,"props":23531,"children":23533},{"className":23532},[],[23534],{"type":26,"value":23535},"qiskit-machine-learning",{"type":26,"value":23537}," का उपयोग करते हुए — ये शुद्ध Qiskit के साथ सबसे गहराई से एकीकृत होते हैं।",{"type":21,"tag":3570,"props":23539,"children":23540},{},[23541,23546],{"type":21,"tag":71,"props":23542,"children":23543},{},[23544],{"type":26,"value":23545},"प्रदर्शन महत्वपूर्ण हो",{"type":26,"value":23547}," — सीधे Qiskit कोड में HLQuantum की अनुवाद लेयर की तुलना में कम ओवरहेड होता है।",{"type":21,"tag":3570,"props":23549,"children":23550},{},[23551,23556],{"type":21,"tag":71,"props":23552,"children":23553},{},[23554],{"type":26,"value":23555},"आप Qiskit इकोसिस्टम में योगदान दे रहे हों",{"type":26,"value":23557}," — Qiskit प्लगइन्स, ट्यूटोरियल, या अनुसंधान पत्र लिखना जहां Qiskit संदर्भ कार्यान्वयन है।",{"type":21,"tag":59,"props":23559,"children":23561},{"id":23560},"hlquantum-का-उपयोग-कब-करें",[23562],{"type":26,"value":23563},"HLQuantum का उपयोग कब करें",{"type":21,"tag":22,"props":23565,"children":23566},{},[23567],{"type":26,"value":23568},"HLQuantum का उपयोग तब करें जब:",{"type":21,"tag":7457,"props":23570,"children":23571},{},[23572,23582,23592,23602,23633],{"type":21,"tag":3570,"props":23573,"children":23574},{},[23575,23580],{"type":21,"tag":71,"props":23576,"children":23577},{},[23578],{"type":26,"value":23579},"आपको बैकएंड लचीलेपन की आवश्यकता हो",{"type":26,"value":23581}," — सिम्युलेटर प्रदर्शन की तुलना करना, विभिन्न आर्किटेक्चर पर सर्किट का बेंचमार्क करना, या कई क्लाउड QPU तक पहुँचना।",{"type":21,"tag":3570,"props":23583,"children":23584},{},[23585,23590],{"type":21,"tag":71,"props":23586,"children":23587},{},[23588],{"type":26,"value":23589},"आप एल्गोरिदम का प्रोटोटाइप बना रहे हों",{"type":26,"value":23591}," — एक बार लिखें, हर जगह परीक्षण करें। स्थानीय सिमुलेशन से GPU से वास्तविक हार्डवेयर पर स्विच करते समय सर्किट को फिर से न जोड़ें।",{"type":21,"tag":3570,"props":23593,"children":23594},{},[23595,23600],{"type":21,"tag":71,"props":23596,"children":23597},{},[23598],{"type":26,"value":23599},"आप पढ़ा रहे हों या सीख रहे हों",{"type":26,"value":23601}," — सभी बैकएंड में एक सुसंगत API सीखना आसान बनाता है। 6 अलग-अलग API सीखने की आवश्यकता नहीं।",{"type":21,"tag":3570,"props":23603,"children":23604},{},[23605,23610,23611,23617,23618,23624,23625,23631],{"type":21,"tag":71,"props":23606,"children":23607},{},[23608],{"type":26,"value":23609},"आप अंतर्निहित एल्गोरिदम चाहते हों",{"type":26,"value":23507},{"type":21,"tag":79,"props":23612,"children":23614},{"className":23613},[],[23615],{"type":26,"value":23616},"hlq.algorithms.vqe()",{"type":26,"value":367},{"type":21,"tag":79,"props":23619,"children":23621},{"className":23620},[],[23622],{"type":26,"value":23623},"hlq.algorithms.qaoa()",{"type":26,"value":367},{"type":21,"tag":79,"props":23626,"children":23628},{"className":23627},[],[23629],{"type":26,"value":23630},"hlq.algorithms.grover()",{"type":26,"value":23632}," बॉयलरप्लेट को संभालते हैं।",{"type":21,"tag":3570,"props":23634,"children":23635},{},[23636,23641],{"type":21,"tag":71,"props":23637,"children":23638},{},[23639],{"type":26,"value":23640},"आप बहु-बैकएंड एप्लिकेशन बना रहे हों",{"type":26,"value":23642}," — यदि आपके ऐप को उस QPU पर चलने की आवश्यकता है जिसकी कतार सबसे छोटी या लागत सबसे कम है, तो HLQuantum का डिस्पैचर इसे संभालता है।",{"type":21,"tag":59,"props":23644,"children":23646},{"id":23645},"माइग्रेशन-qiskit-hlquantum",[23647],{"type":26,"value":23648},"माइग्रेशन: Qiskit → HLQuantum",{"type":21,"tag":22,"props":23650,"children":23651},{},[23652],{"type":26,"value":23653},"यदि आपके पास मौजूदा Qiskit कोड है, तो HLQuantum Qiskit सर्किट को सीधे उपभोग कर सकता है:",{"type":21,"tag":312,"props":23655,"children":23657},{"code":23656,"language":3638,"meta":7,"className":3636,"style":7},"import hlquantum as hlq\nfrom qiskit import QuantumCircuit\n\n# Existing Qiskit circuit\nqc = QuantumCircuit(3)\nqc.h(0); qc.cx(0, 1); qc.cx(1, 2)\n\n# Wrap and run on any backend\nresult = hlq.run(hlq.from_qiskit(qc), backend='pennylane')\nresult_gpu = hlq.run(hlq.from_qiskit(qc), backend='cudaq')\n",[23658],{"type":21,"tag":79,"props":23659,"children":23660},{"__ignoreMap":7},[23661,23680,23699,23706,23714,23737,23785,23792,23800,23832],{"type":21,"tag":322,"props":23662,"children":23663},{"class":324,"line":325},[23664,23668,23672,23676],{"type":21,"tag":322,"props":23665,"children":23666},{"style":3648},[23667],{"type":26,"value":3661},{"type":21,"tag":322,"props":23669,"children":23670},{"style":329},[23671],{"type":26,"value":19743},{"type":21,"tag":322,"props":23673,"children":23674},{"style":3648},[23675],{"type":26,"value":4728},{"type":21,"tag":322,"props":23677,"children":23678},{"style":329},[23679],{"type":26,"value":19752},{"type":21,"tag":322,"props":23681,"children":23682},{"class":324,"line":335},[23683,23687,23691,23695],{"type":21,"tag":322,"props":23684,"children":23685},{"style":3648},[23686],{"type":26,"value":3651},{"type":21,"tag":322,"props":23688,"children":23689},{"style":329},[23690],{"type":26,"value":4745},{"type":21,"tag":322,"props":23692,"children":23693},{"style":3648},[23694],{"type":26,"value":3661},{"type":21,"tag":322,"props":23696,"children":23697},{"style":329},[23698],{"type":26,"value":20754},{"type":21,"tag":322,"props":23700,"children":23701},{"class":324,"line":344},[23702],{"type":21,"tag":322,"props":23703,"children":23704},{"emptyLinePlaceholder":3672},[23705],{"type":26,"value":3675},{"type":21,"tag":322,"props":23707,"children":23708},{"class":324,"line":407},[23709],{"type":21,"tag":322,"props":23710,"children":23711},{"style":3898},[23712],{"type":26,"value":23713},"# Existing Qiskit circuit\n",{"type":21,"tag":322,"props":23715,"children":23716},{"class":324,"line":431},[23717,23721,23725,23729,23733],{"type":21,"tag":322,"props":23718,"children":23719},{"style":329},[23720],{"type":26,"value":7832},{"type":21,"tag":322,"props":23722,"children":23723},{"style":3648},[23724],{"type":26,"value":3688},{"type":21,"tag":322,"props":23726,"children":23727},{"style":329},[23728],{"type":26,"value":5588},{"type":21,"tag":322,"props":23730,"children":23731},{"style":348},[23732],{"type":26,"value":6961},{"type":21,"tag":322,"props":23734,"children":23735},{"style":329},[23736],{"type":26,"value":3748},{"type":21,"tag":322,"props":23738,"children":23739},{"class":324,"line":453},[23740,23744,23748,23753,23757,23761,23765,23769,23773,23777,23781],{"type":21,"tag":322,"props":23741,"children":23742},{"style":329},[23743],{"type":26,"value":7848},{"type":21,"tag":322,"props":23745,"children":23746},{"style":348},[23747],{"type":26,"value":5618},{"type":21,"tag":322,"props":23749,"children":23750},{"style":329},[23751],{"type":26,"value":23752},"); qc.cx(",{"type":21,"tag":322,"props":23754,"children":23755},{"style":348},[23756],{"type":26,"value":5618},{"type":21,"tag":322,"props":23758,"children":23759},{"style":329},[23760],{"type":26,"value":367},{"type":21,"tag":322,"props":23762,"children":23763},{"style":348},[23764],{"type":26,"value":4004},{"type":21,"tag":322,"props":23766,"children":23767},{"style":329},[23768],{"type":26,"value":23752},{"type":21,"tag":322,"props":23770,"children":23771},{"style":348},[23772],{"type":26,"value":4004},{"type":21,"tag":322,"props":23774,"children":23775},{"style":329},[23776],{"type":26,"value":367},{"type":21,"tag":322,"props":23778,"children":23779},{"style":348},[23780],{"type":26,"value":423},{"type":21,"tag":322,"props":23782,"children":23783},{"style":329},[23784],{"type":26,"value":3748},{"type":21,"tag":322,"props":23786,"children":23787},{"class":324,"line":474},[23788],{"type":21,"tag":322,"props":23789,"children":23790},{"emptyLinePlaceholder":3672},[23791],{"type":26,"value":3675},{"type":21,"tag":322,"props":23793,"children":23794},{"class":324,"line":496},[23795],{"type":21,"tag":322,"props":23796,"children":23797},{"style":3898},[23798],{"type":26,"value":23799},"# Wrap and run on any backend\n",{"type":21,"tag":322,"props":23801,"children":23802},{"class":324,"line":16},[23803,23807,23811,23816,23820,23824,23828],{"type":21,"tag":322,"props":23804,"children":23805},{"style":329},[23806],{"type":26,"value":19775},{"type":21,"tag":322,"props":23808,"children":23809},{"style":3648},[23810],{"type":26,"value":3688},{"type":21,"tag":322,"props":23812,"children":23813},{"style":329},[23814],{"type":26,"value":23815}," hlq.run(hlq.from_qiskit(qc), ",{"type":21,"tag":322,"props":23817,"children":23818},{"style":3713},[23819],{"type":26,"value":18916},{"type":21,"tag":322,"props":23821,"children":23822},{"style":3648},[23823],{"type":26,"value":3688},{"type":21,"tag":322,"props":23825,"children":23826},{"style":359},[23827],{"type":26,"value":22622},{"type":21,"tag":322,"props":23829,"children":23830},{"style":329},[23831],{"type":26,"value":3748},{"type":21,"tag":322,"props":23833,"children":23834},{"class":324,"line":3894},[23835,23839,23843,23847,23851,23855,23859],{"type":21,"tag":322,"props":23836,"children":23837},{"style":329},[23838],{"type":26,"value":23418},{"type":21,"tag":322,"props":23840,"children":23841},{"style":3648},[23842],{"type":26,"value":3688},{"type":21,"tag":322,"props":23844,"children":23845},{"style":329},[23846],{"type":26,"value":23815},{"type":21,"tag":322,"props":23848,"children":23849},{"style":3713},[23850],{"type":26,"value":18916},{"type":21,"tag":322,"props":23852,"children":23853},{"style":3648},[23854],{"type":26,"value":3688},{"type":21,"tag":322,"props":23856,"children":23857},{"style":359},[23858],{"type":26,"value":22655},{"type":21,"tag":322,"props":23860,"children":23861},{"style":329},[23862],{"type":26,"value":3748},{"type":21,"tag":22,"props":23864,"children":23865},{},[23866],{"type":26,"value":23867},"किसी पुनर्लेखन की आवश्यकता नहीं — आप मौजूदा Qiskit कोड में HLQuantum की बहु-बैकएंड क्षमताओं को क्रमिक रूप से जोड़ सकते हैं।",{"type":21,"tag":59,"props":23869,"children":23871},{"id":23870},"निर्णय-चेकलिस्ट",[23872],{"type":26,"value":23873},"निर्णय चेकलिस्ट",{"type":21,"tag":312,"props":23875,"children":23877},{"code":23876},"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",[23878],{"type":21,"tag":79,"props":23879,"children":23880},{"__ignoreMap":7},[23881],{"type":26,"value":23876},{"type":21,"tag":22,"props":23883,"children":23884},{},[23885],{"type":26,"value":23886},"ये दोनों परस्पर अनन्य नहीं हैं। कई वर्कफ़्लो सर्किट डिज़ाइन के लिए शुद्ध Qiskit से शुरू होते हैं, फिर बहु-बैकएंड तैनाती के लिए HLQuantum के साथ लपेटते हैं।",{"type":21,"tag":22,"props":23888,"children":23889},{},[23890,23895,23896,23901,23902,23906,23907],{"type":21,"tag":71,"props":23891,"children":23892},{},[23893],{"type":26,"value":23894},"शुरू करें:",{"type":26,"value":1911},{"type":21,"tag":29,"props":23897,"children":23898},{"href":19451},[23899],{"type":26,"value":23900},"HLQuantum guide",{"type":26,"value":7562},{"type":21,"tag":29,"props":23903,"children":23904},{"href":7541},[23905],{"type":26,"value":9253},{"type":26,"value":7562},{"type":21,"tag":29,"props":23908,"children":23909},{"href":817},[23910],{"type":26,"value":23911},"Compare all SDKs",{"type":21,"tag":703,"props":23913,"children":23914},{},[23915],{"type":26,"value":707},{"title":7,"searchDepth":335,"depth":335,"links":23917},[23918,23919,23920,23921,23922,23923,23924,23925],{"id":21481,"depth":335,"text":21484},{"id":21505,"depth":335,"text":21508},{"id":21925,"depth":335,"text":21928},{"id":22805,"depth":335,"text":22808},{"id":23466,"depth":335,"text":23469},{"id":23560,"depth":335,"text":23563},{"id":23645,"depth":335,"text":23648},{"id":23870,"depth":335,"text":23873},"content:hi:blog:hlquantum-vs-qiskit.md","hi\u002Fblog\u002Fhlquantum-vs-qiskit.md","hi\u002Fblog\u002Fhlquantum-vs-qiskit",{"_path":23930,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":23931,"description":23932,"date":23933,"author":11,"tags":23934,"readingTime":3894,"body":23935,"_type":715,"_id":24980,"_source":717,"_file":24981,"_stem":24982,"_extension":720},"\u002Fhi\u002Fblog\u002Fpost-quantum-cryptography-guide","पोस्ट-क्वांटम क्रिप्टोग्राफी: डेवलपर्स को अभी क्या करना चाहिए","Shor का एल्गोरिदम RSA और ECC के लिए खतरा है। NIST ने अपने पोस्ट-क्वांटम मानकों को अंतिम रूप दे दिया है। यहाँ बताया गया है कि खतरा क्या है, मानक क्या कहते हैं, और डेवलपर्स को आज कौन-सी कार्रवाई करनी चाहिए।","2026-03-05",[9797,9798,9796],{"type":18,"children":23936,"toc":24964},[23937,23949,23954,23960,23973,23981,24004,24012,24035,24047,24053,24058,24076,24093,24101,24129,24137,24155,24161,24166,24172,24215,24376,24382,24421,24544,24550,24589,24601,24607,24613,24623,24646,24656,24666,24672,24690,24715,24725,24735,24741,24751,24761,24771,24777,24921,24927,24935,24940,24960],{"type":21,"tag":22,"props":23938,"children":23939},{},[23940,23942,23947],{"type":26,"value":23941},"क्वांटम कंप्यूटर अभी आपके एन्क्रिप्शन के लिए खतरा नहीं हैं। RSA-2048 को तोड़ने में सक्षम एक क्वांटम कंप्यूटर को लाखों त्रुटि-सुधारित लॉजिकल क्यूबिट की आवश्यकता होगी — हमारे पास सैकड़ों शोरगुल वाले भौतिक क्यूबिट हैं। लेकिन समस्या यहाँ है: विरोधी ",{"type":21,"tag":71,"props":23943,"children":23944},{},[23945],{"type":26,"value":23946},"अभी",{"type":26,"value":23948}," एन्क्रिप्टेड डेटा एकत्र कर रहे होंगे, इस इरादे से कि क्वांटम हार्डवेयर के परिपक्व होने पर बाद में उसे डिक्रिप्ट कर लेंगे। और क्रिप्टोग्राफिक इन्फ्रास्ट्रक्चर को माइग्रेट करने में वर्षों लगते हैं।",{"type":21,"tag":22,"props":23950,"children":23951},{},[23952],{"type":26,"value":23953},"यही कारण है कि 2024 के NIST पोस्ट-क्वांटम क्रिप्टोग्राफी मानक डेवलपर्स के लिए आज मायने रखते हैं, 2035 में नहीं।",{"type":21,"tag":59,"props":23955,"children":23957},{"id":23956},"असली-खतरा-shor-का-एल्गोरिदम",[23958],{"type":26,"value":23959},"असली खतरा: Shor का एल्गोरिदम",{"type":21,"tag":22,"props":23961,"children":23962},{},[23963,23965,23971],{"type":26,"value":23964},"1994 में, Peter Shor ने साबित किया कि एक क्वांटम कंप्यूटर बड़े पूर्णांकों को बहुपद समय ",{"type":21,"tag":79,"props":23966,"children":23968},{"className":23967},[],[23969],{"type":26,"value":23970},"O((log N)³)",{"type":26,"value":23972}," में गुणनखंडित कर सकता है। यह RSA को तोड़ता है, जिसकी सुरक्षा गुणनखंडन के कठिन होने पर निर्भर करती है। वही एल्गोरिदम — मामूली संशोधनों के साथ — एलिप्टिक कर्व क्रिप्टोग्राफी (ECC) को तोड़ता है, जो ECDSA और ECDH का आधार है।",{"type":21,"tag":22,"props":23974,"children":23975},{},[23976],{"type":21,"tag":71,"props":23977,"children":23978},{},[23979],{"type":26,"value":23980},"क्या टूटता है:",{"type":21,"tag":3566,"props":23982,"children":23983},{},[23984,23989,23994,23999],{"type":21,"tag":3570,"props":23985,"children":23986},{},[23987],{"type":26,"value":23988},"RSA (एन्क्रिप्शन, सिग्नेचर)",{"type":21,"tag":3570,"props":23990,"children":23991},{},[23992],{"type":26,"value":23993},"ECDSA (साइनिंग — TLS, SSH, कोड साइनिंग, Bitcoin में उपयोग होता है)",{"type":21,"tag":3570,"props":23995,"children":23996},{},[23997],{"type":26,"value":23998},"ECDH (कुंजी विनिमय — TLS, Signal, WhatsApp, iMessage में उपयोग होता है)",{"type":21,"tag":3570,"props":24000,"children":24001},{},[24002],{"type":26,"value":24003},"Diffie-Hellman (कुंजी विनिमय)",{"type":21,"tag":22,"props":24005,"children":24006},{},[24007],{"type":21,"tag":71,"props":24008,"children":24009},{},[24010],{"type":26,"value":24011},"क्या नहीं टूटता:",{"type":21,"tag":3566,"props":24013,"children":24014},{},[24015,24020,24025,24030],{"type":21,"tag":3570,"props":24016,"children":24017},{},[24018],{"type":26,"value":24019},"AES-256 (सममित एन्क्रिप्शन) — Grover का एल्गोरिदम केवल द्विघाती गति प्रदान करता है, जो प्रभावी कुंजी शक्ति को 256 से घटाकर 128 बिट कर देता है। यह संभालने योग्य है।",{"type":21,"tag":3570,"props":24021,"children":24022},{},[24023],{"type":26,"value":24024},"SHA-256, SHA-3 (हैश फ़ंक्शन) — वही: Grover मामूली गति प्रदान करता है, सुरक्षा आधी हो जाती है, फिर भी वर्तमान कुंजी आकारों के साथ पर्याप्त रूप से मज़बूत है",{"type":21,"tag":3570,"props":24026,"children":24027},{},[24028],{"type":26,"value":24029},"HMAC — सुरक्षित",{"type":21,"tag":3570,"props":24031,"children":24032},{},[24033],{"type":26,"value":24034},"Argon2, bcrypt (पासवर्ड हैशिंग) — सुरक्षित",{"type":21,"tag":22,"props":24036,"children":24037},{},[24038,24040,24045],{"type":26,"value":24039},"निष्कर्ष यह है: ",{"type":21,"tag":71,"props":24041,"children":24042},{},[24043],{"type":26,"value":24044},"असममित क्रिप्टोग्राफी को बदलने की आवश्यकता है; सममित क्रिप्टोग्राफी को कुंजी आकार में वृद्धि की आवश्यकता है (AES-128 → AES-256)",{"type":26,"value":24046},"।",{"type":21,"tag":59,"props":24048,"children":24050},{"id":24049},"अभी-काटो-बाद-में-डिक्रिप्ट-करो",[24051],{"type":26,"value":24052},"अभी काटो, बाद में डिक्रिप्ट करो",{"type":21,"tag":22,"props":24054,"children":24055},{},[24056],{"type":26,"value":24057},"खतरा यह नहीं है कि \"क्वांटम कंप्यूटर अगले साल एन्क्रिप्शन तोड़ देंगे।\" खतरा यह है:",{"type":21,"tag":7457,"props":24059,"children":24060},{},[24061,24066,24071],{"type":21,"tag":3570,"props":24062,"children":24063},{},[24064],{"type":26,"value":24065},"एक विरोधी आज आपके एन्क्रिप्टेड TLS ट्रैफ़िक को कैप्चर करके संग्रहीत करता है",{"type":21,"tag":3570,"props":24067,"children":24068},{},[24069],{"type":26,"value":24070},"2032–2040 में, वे उस पर Shor का एल्गोरिदम चलाते हैं",{"type":21,"tag":3570,"props":24072,"children":24073},{},[24074],{"type":26,"value":24075},"वे सब कुछ पूर्वव्यापी रूप से डिक्रिप्ट कर देते हैं",{"type":21,"tag":22,"props":24077,"children":24078},{},[24079,24081,24085,24086,24091],{"type":26,"value":24080},"यह हमला — जिसे ",{"type":21,"tag":71,"props":24082,"children":24083},{},[24084],{"type":26,"value":19192},{"type":26,"value":19256},{"type":21,"tag":71,"props":24087,"children":24088},{},[24089],{"type":26,"value":24090},"HNDL",{"type":26,"value":24092}," कहा जाता है — पहले से ही हो रहा है। NSA और अन्य खुफिया एजेंसियाँ लगभग निश्चित रूप से बड़ी मात्रा में एन्क्रिप्टेड ट्रैफ़िक संग्रहीत कर रही हैं। 2022 की NSA सलाह ने इस बारे में स्पष्ट रूप से चेतावनी दी थी।",{"type":21,"tag":22,"props":24094,"children":24095},{},[24096],{"type":21,"tag":71,"props":24097,"children":24098},{},[24099],{"type":26,"value":24100},"वह डेटा जिसे आज HNDL के विरुद्ध सुरक्षा की आवश्यकता है:",{"type":21,"tag":3566,"props":24102,"children":24103},{},[24104,24109,24114,24119,24124],{"type":21,"tag":3570,"props":24105,"children":24106},{},[24107],{"type":26,"value":24108},"राज्य के रहस्य, वर्गीकृत सरकारी डेटा",{"type":21,"tag":3570,"props":24110,"children":24111},{},[24112],{"type":26,"value":24113},"लंबे समय तक चलने वाला व्यक्तिगत डेटा (चिकित्सा रिकॉर्ड, पहचान दस्तावेज़)",{"type":21,"tag":3570,"props":24115,"children":24116},{},[24117],{"type":26,"value":24118},"लंबी नियामक प्रतिधारण आवश्यकताओं वाला वित्तीय डेटा",{"type":21,"tag":3570,"props":24120,"children":24121},{},[24122],{"type":26,"value":24123},"व्यापार रहस्य और IP",{"type":21,"tag":3570,"props":24125,"children":24126},{},[24127],{"type":26,"value":24128},"पासवर्ड डेटाबेस (हालाँकि bcrypt\u002FArgon2 सुरक्षित हैं)",{"type":21,"tag":22,"props":24130,"children":24131},{},[24132],{"type":21,"tag":71,"props":24133,"children":24134},{},[24135],{"type":26,"value":24136},"वह डेटा जिसके लिए तत्काल चिंता की आवश्यकता नहीं है:",{"type":21,"tag":3566,"props":24138,"children":24139},{},[24140,24145,24150],{"type":21,"tag":3570,"props":24141,"children":24142},{},[24143],{"type":26,"value":24144},"सेशन टोकन (अल्पकालिक, 10 वर्षों में बेकार)",{"type":21,"tag":3570,"props":24146,"children":24147},{},[24148],{"type":26,"value":24149},"क्षणिक चैट संदेश (जब तक कि आप एक उच्च-मूल्य लक्ष्य न हों)",{"type":21,"tag":3570,"props":24151,"children":24152},{},[24153],{"type":26,"value":24154},"सार्वजनिक जानकारी",{"type":21,"tag":59,"props":24156,"children":24158},{"id":24157},"nist-के-पोस्ट-क्वांटम-मानक-2024",[24159],{"type":26,"value":24160},"NIST के पोस्ट-क्वांटम मानक (2024)",{"type":21,"tag":22,"props":24162,"children":24163},{},[24164],{"type":26,"value":24165},"8 साल की प्रतियोगिता के बाद, NIST ने अगस्त 2024 में तीन पोस्ट-क्वांटम क्रिप्टोग्राफी एल्गोरिदम को अंतिम रूप दिया:",{"type":21,"tag":17809,"props":24167,"children":24169},{"id":24168},"ml-kem-crystals-kyber-कुंजी-एनकैप्सुलेशन",[24170],{"type":26,"value":24171},"ML-KEM (CRYSTALS-Kyber) — कुंजी एनकैप्सुलेशन",{"type":21,"tag":3566,"props":24173,"children":24174},{},[24175,24185,24195,24205],{"type":21,"tag":3570,"props":24176,"children":24177},{},[24178,24183],{"type":21,"tag":71,"props":24179,"children":24180},{},[24181],{"type":26,"value":24182},"प्रतिस्थापित करता है:",{"type":26,"value":24184}," RSA कुंजी विनिमय, ECDH",{"type":21,"tag":3570,"props":24186,"children":24187},{},[24188,24193],{"type":21,"tag":71,"props":24189,"children":24190},{},[24191],{"type":26,"value":24192},"सुरक्षा आधार:",{"type":26,"value":24194}," Module Learning With Errors (MLWE) समस्या — शास्त्रीय और क्वांटम दोनों कंप्यूटरों के लिए कठिन मानी जाती है",{"type":21,"tag":3570,"props":24196,"children":24197},{},[24198,24203],{"type":21,"tag":71,"props":24199,"children":24200},{},[24201],{"type":26,"value":24202},"प्रदर्शन:",{"type":26,"value":24204}," तेज़, छोटी कुंजियाँ (KEM-768 के लिए ~800 बाइट), तेज़ ऑपरेशन",{"type":21,"tag":3570,"props":24206,"children":24207},{},[24208,24213],{"type":21,"tag":71,"props":24209,"children":24210},{},[24211],{"type":26,"value":24212},"इसके लिए उपयोग करें:",{"type":26,"value":24214}," TLS कुंजी विनिमय, एन्क्रिप्टेड कुंजी रैपिंग, हाइब्रिड एन्क्रिप्शन योजनाएँ",{"type":21,"tag":312,"props":24216,"children":24218},{"code":24217,"language":3638,"meta":7,"className":3636,"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",[24219],{"type":21,"tag":79,"props":24220,"children":24221},{"__ignoreMap":7},[24222,24230,24251,24258,24275,24282,24290,24307,24314,24322,24339,24346,24368],{"type":21,"tag":322,"props":24223,"children":24224},{"class":324,"line":325},[24225],{"type":21,"tag":322,"props":24226,"children":24227},{"style":3898},[24228],{"type":26,"value":24229},"# Python example using pqcrypto library\n",{"type":21,"tag":322,"props":24231,"children":24232},{"class":324,"line":335},[24233,24237,24242,24246],{"type":21,"tag":322,"props":24234,"children":24235},{"style":3648},[24236],{"type":26,"value":3651},{"type":21,"tag":322,"props":24238,"children":24239},{"style":329},[24240],{"type":26,"value":24241}," pqcrypto.kem.kyber768 ",{"type":21,"tag":322,"props":24243,"children":24244},{"style":3648},[24245],{"type":26,"value":3661},{"type":21,"tag":322,"props":24247,"children":24248},{"style":329},[24249],{"type":26,"value":24250}," generate_keypair, encapsulate, decapsulate\n",{"type":21,"tag":322,"props":24252,"children":24253},{"class":324,"line":344},[24254],{"type":21,"tag":322,"props":24255,"children":24256},{"emptyLinePlaceholder":3672},[24257],{"type":26,"value":3675},{"type":21,"tag":322,"props":24259,"children":24260},{"class":324,"line":407},[24261,24266,24270],{"type":21,"tag":322,"props":24262,"children":24263},{"style":329},[24264],{"type":26,"value":24265},"public_key, secret_key ",{"type":21,"tag":322,"props":24267,"children":24268},{"style":3648},[24269],{"type":26,"value":3688},{"type":21,"tag":322,"props":24271,"children":24272},{"style":329},[24273],{"type":26,"value":24274}," generate_keypair()\n",{"type":21,"tag":322,"props":24276,"children":24277},{"class":324,"line":431},[24278],{"type":21,"tag":322,"props":24279,"children":24280},{"emptyLinePlaceholder":3672},[24281],{"type":26,"value":3675},{"type":21,"tag":322,"props":24283,"children":24284},{"class":324,"line":453},[24285],{"type":21,"tag":322,"props":24286,"children":24287},{"style":3898},[24288],{"type":26,"value":24289},"# Sender encapsulates a shared secret\n",{"type":21,"tag":322,"props":24291,"children":24292},{"class":324,"line":474},[24293,24298,24302],{"type":21,"tag":322,"props":24294,"children":24295},{"style":329},[24296],{"type":26,"value":24297},"ciphertext, shared_secret_sender ",{"type":21,"tag":322,"props":24299,"children":24300},{"style":3648},[24301],{"type":26,"value":3688},{"type":21,"tag":322,"props":24303,"children":24304},{"style":329},[24305],{"type":26,"value":24306}," encapsulate(public_key)\n",{"type":21,"tag":322,"props":24308,"children":24309},{"class":324,"line":496},[24310],{"type":21,"tag":322,"props":24311,"children":24312},{"emptyLinePlaceholder":3672},[24313],{"type":26,"value":3675},{"type":21,"tag":322,"props":24315,"children":24316},{"class":324,"line":16},[24317],{"type":21,"tag":322,"props":24318,"children":24319},{"style":3898},[24320],{"type":26,"value":24321},"# Receiver decapsulates\n",{"type":21,"tag":322,"props":24323,"children":24324},{"class":324,"line":3894},[24325,24330,24334],{"type":21,"tag":322,"props":24326,"children":24327},{"style":329},[24328],{"type":26,"value":24329},"shared_secret_receiver ",{"type":21,"tag":322,"props":24331,"children":24332},{"style":3648},[24333],{"type":26,"value":3688},{"type":21,"tag":322,"props":24335,"children":24336},{"style":329},[24337],{"type":26,"value":24338}," decapsulate(secret_key, ciphertext)\n",{"type":21,"tag":322,"props":24340,"children":24341},{"class":324,"line":3904},[24342],{"type":21,"tag":322,"props":24343,"children":24344},{"emptyLinePlaceholder":3672},[24345],{"type":26,"value":3675},{"type":21,"tag":322,"props":24347,"children":24348},{"class":324,"line":1043},[24349,24354,24359,24363],{"type":21,"tag":322,"props":24350,"children":24351},{"style":3648},[24352],{"type":26,"value":24353},"assert",{"type":21,"tag":322,"props":24355,"children":24356},{"style":329},[24357],{"type":26,"value":24358}," shared_secret_sender ",{"type":21,"tag":322,"props":24360,"children":24361},{"style":3648},[24362],{"type":26,"value":5359},{"type":21,"tag":322,"props":24364,"children":24365},{"style":329},[24366],{"type":26,"value":24367}," shared_secret_receiver\n",{"type":21,"tag":322,"props":24369,"children":24370},{"class":324,"line":3964},[24371],{"type":21,"tag":322,"props":24372,"children":24373},{"style":3898},[24374],{"type":26,"value":24375},"# Now use shared_secret as AES key\n",{"type":21,"tag":17809,"props":24377,"children":24379},{"id":24378},"ml-dsa-crystals-dilithium-डिजिटल-सिग्नेचर",[24380],{"type":26,"value":24381},"ML-DSA (CRYSTALS-Dilithium) — डिजिटल सिग्नेचर",{"type":21,"tag":3566,"props":24383,"children":24384},{},[24385,24394,24403,24412],{"type":21,"tag":3570,"props":24386,"children":24387},{},[24388,24392],{"type":21,"tag":71,"props":24389,"children":24390},{},[24391],{"type":26,"value":24182},{"type":26,"value":24393}," साइनिंग के लिए ECDSA, RSA-PSS",{"type":21,"tag":3570,"props":24395,"children":24396},{},[24397,24401],{"type":21,"tag":71,"props":24398,"children":24399},{},[24400],{"type":26,"value":24192},{"type":26,"value":24402}," MLWE + MSIS समस्याएँ",{"type":21,"tag":3570,"props":24404,"children":24405},{},[24406,24410],{"type":21,"tag":71,"props":24407,"children":24408},{},[24409],{"type":26,"value":24202},{"type":26,"value":24411}," मध्यम कुंजी आकार (~1,312 बाइट सार्वजनिक कुंजी), तेज़ साइनिंग",{"type":21,"tag":3570,"props":24413,"children":24414},{},[24415,24419],{"type":21,"tag":71,"props":24416,"children":24417},{},[24418],{"type":26,"value":24212},{"type":26,"value":24420}," कोड साइनिंग, TLS सर्टिफिकेट, दस्तावेज़ साइनिंग, JWT सिग्नेचर",{"type":21,"tag":312,"props":24422,"children":24424},{"code":24423,"language":3638,"meta":7,"className":3636,"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",[24425],{"type":21,"tag":79,"props":24426,"children":24427},{"__ignoreMap":7},[24428,24449,24456,24471,24478,24500,24517,24524,24532],{"type":21,"tag":322,"props":24429,"children":24430},{"class":324,"line":325},[24431,24435,24440,24444],{"type":21,"tag":322,"props":24432,"children":24433},{"style":3648},[24434],{"type":26,"value":3651},{"type":21,"tag":322,"props":24436,"children":24437},{"style":329},[24438],{"type":26,"value":24439}," pqcrypto.sign.dilithium3 ",{"type":21,"tag":322,"props":24441,"children":24442},{"style":3648},[24443],{"type":26,"value":3661},{"type":21,"tag":322,"props":24445,"children":24446},{"style":329},[24447],{"type":26,"value":24448}," generate_keypair, sign, verify\n",{"type":21,"tag":322,"props":24450,"children":24451},{"class":324,"line":335},[24452],{"type":21,"tag":322,"props":24453,"children":24454},{"emptyLinePlaceholder":3672},[24455],{"type":26,"value":3675},{"type":21,"tag":322,"props":24457,"children":24458},{"class":324,"line":344},[24459,24463,24467],{"type":21,"tag":322,"props":24460,"children":24461},{"style":329},[24462],{"type":26,"value":24265},{"type":21,"tag":322,"props":24464,"children":24465},{"style":3648},[24466],{"type":26,"value":3688},{"type":21,"tag":322,"props":24468,"children":24469},{"style":329},[24470],{"type":26,"value":24274},{"type":21,"tag":322,"props":24472,"children":24473},{"class":324,"line":407},[24474],{"type":21,"tag":322,"props":24475,"children":24476},{"emptyLinePlaceholder":3672},[24477],{"type":26,"value":3675},{"type":21,"tag":322,"props":24479,"children":24480},{"class":324,"line":431},[24481,24486,24490,24495],{"type":21,"tag":322,"props":24482,"children":24483},{"style":329},[24484],{"type":26,"value":24485},"message ",{"type":21,"tag":322,"props":24487,"children":24488},{"style":3648},[24489],{"type":26,"value":3688},{"type":21,"tag":322,"props":24491,"children":24492},{"style":3648},[24493],{"type":26,"value":24494}," b",{"type":21,"tag":322,"props":24496,"children":24497},{"style":359},[24498],{"type":26,"value":24499},"\"Deploy to production\"\n",{"type":21,"tag":322,"props":24501,"children":24502},{"class":324,"line":453},[24503,24508,24512],{"type":21,"tag":322,"props":24504,"children":24505},{"style":329},[24506],{"type":26,"value":24507},"signature ",{"type":21,"tag":322,"props":24509,"children":24510},{"style":3648},[24511],{"type":26,"value":3688},{"type":21,"tag":322,"props":24513,"children":24514},{"style":329},[24515],{"type":26,"value":24516}," sign(message, secret_key)\n",{"type":21,"tag":322,"props":24518,"children":24519},{"class":324,"line":474},[24520],{"type":21,"tag":322,"props":24521,"children":24522},{"emptyLinePlaceholder":3672},[24523],{"type":26,"value":3675},{"type":21,"tag":322,"props":24525,"children":24526},{"class":324,"line":496},[24527],{"type":21,"tag":322,"props":24528,"children":24529},{"style":3898},[24530],{"type":26,"value":24531},"# Verify\n",{"type":21,"tag":322,"props":24533,"children":24534},{"class":324,"line":16},[24535,24539],{"type":21,"tag":322,"props":24536,"children":24537},{"style":3648},[24538],{"type":26,"value":24353},{"type":21,"tag":322,"props":24540,"children":24541},{"style":329},[24542],{"type":26,"value":24543}," verify(message, signature, public_key)\n",{"type":21,"tag":17809,"props":24545,"children":24547},{"id":24546},"slh-dsa-sphincs-हैश-आधारित-सिग्नेचर",[24548],{"type":26,"value":24549},"SLH-DSA (SPHINCS+) — हैश-आधारित सिग्नेचर",{"type":21,"tag":3566,"props":24551,"children":24552},{},[24553,24562,24571,24580],{"type":21,"tag":3570,"props":24554,"children":24555},{},[24556,24560],{"type":21,"tag":71,"props":24557,"children":24558},{},[24559],{"type":26,"value":24182},{"type":26,"value":24561}," एक रूढ़िवादी बैकअप के रूप में ECDSA",{"type":21,"tag":3570,"props":24563,"children":24564},{},[24565,24569],{"type":21,"tag":71,"props":24566,"children":24567},{},[24568],{"type":26,"value":24192},{"type":26,"value":24570}," केवल हैश फ़ंक्शन — सबसे रूढ़िवादी विकल्प",{"type":21,"tag":3570,"props":24572,"children":24573},{},[24574,24578],{"type":21,"tag":71,"props":24575,"children":24576},{},[24577],{"type":26,"value":24202},{"type":26,"value":24579}," बड़े सिग्नेचर (~8–50 KB), धीमी साइनिंग",{"type":21,"tag":3570,"props":24581,"children":24582},{},[24583,24587],{"type":21,"tag":71,"props":24584,"children":24585},{},[24586],{"type":26,"value":24212},{"type":26,"value":24588}," उच्च-आश्वासन वाली साइनिंग जहाँ कुंजी पुनः उपयोग एक चिंता है, दीर्घकालिक दस्तावेज़ साइनिंग",{"type":21,"tag":22,"props":24590,"children":24591},{},[24592,24594,24599],{"type":26,"value":24593},"NIST ने ",{"type":21,"tag":71,"props":24595,"children":24596},{},[24597],{"type":26,"value":24598},"FALCON (FN-DSA)",{"type":26,"value":24600}," को भी मानकीकृत किया — एक जालक (lattice) सिग्नेचर योजना जिसमें कॉम्पैक्ट सिग्नेचर होते हैं, जो IoT जैसे सीमित वातावरणों के लिए उपयुक्त है।",{"type":21,"tag":59,"props":24602,"children":24604},{"id":24603},"अभी-क्या-करें-एक-स्तरित-कार्य-योजना",[24605],{"type":26,"value":24606},"अभी क्या करें: एक स्तरित कार्य योजना",{"type":21,"tag":17809,"props":24608,"children":24610},{"id":24609},"स्तर-1-यह-आज-करें-कम-प्रयास-उच्च-प्रभाव",[24611],{"type":26,"value":24612},"स्तर 1 — यह आज करें (कम प्रयास, उच्च प्रभाव)",{"type":21,"tag":22,"props":24614,"children":24615},{},[24616,24621],{"type":21,"tag":71,"props":24617,"children":24618},{},[24619],{"type":26,"value":24620},"अपनी क्रिप्टोग्राफिक इन्वेंट्री का ऑडिट करें।",{"type":26,"value":24622}," आप उसे माइग्रेट नहीं कर सकते जिसे आपने सूचीबद्ध नहीं किया है। दस्तावेज़ीकृत करें:",{"type":21,"tag":3566,"props":24624,"children":24625},{},[24626,24631,24636,24641],{"type":21,"tag":3570,"props":24627,"children":24628},{},[24629],{"type":26,"value":24630},"आपका एप्लिकेशन TLS का उपयोग कहाँ करता है? (अधिकांश फ्रेमवर्क इसे संभालते हैं)",{"type":21,"tag":3570,"props":24632,"children":24633},{},[24634],{"type":26,"value":24635},"आप सिग्नेचर कहाँ उत्पन्न या सत्यापित करते हैं? (JWTs, कोड साइनिंग, PDF साइनिंग)",{"type":21,"tag":3570,"props":24637,"children":24638},{},[24639],{"type":26,"value":24640},"आप असममित कुंजी विनिमय का उपयोग कहाँ करते हैं? (RSA-रैप्ड AES कुंजियाँ, SSH)",{"type":21,"tag":3570,"props":24642,"children":24643},{},[24644],{"type":26,"value":24645},"आप कौन-सी लाइब्रेरी का उपयोग कर रहे हैं? (OpenSSL, BouncyCastle, AWS KMS, आदि)",{"type":21,"tag":22,"props":24647,"children":24648},{},[24649,24654],{"type":21,"tag":71,"props":24650,"children":24651},{},[24652],{"type":26,"value":24653},"AES-128 को AES-256 में अपग्रेड करें।",{"type":26,"value":24655}," यह कम-जोखिम वाला और तत्काल है। AES-256, Grover के विरुद्ध 128-बिट सुरक्षा तक आधा हो जाता है — फिर भी पर्याप्त रूप से सुरक्षित।",{"type":21,"tag":22,"props":24657,"children":24658},{},[24659,24664],{"type":21,"tag":71,"props":24660,"children":24661},{},[24662],{"type":26,"value":24663},"हर जगह TLS 1.3 सक्षम करें।",{"type":26,"value":24665}," TLS 1.3 डिफ़ॉल्ट रूप से फॉरवर्ड सीक्रेसी (ECDHE) का उपयोग करता है, जिसका अर्थ है कि दीर्घकालिक कुंजी से समझौता होने पर भी पिछले सेशन डिक्रिप्ट नहीं किए जा सकते। यह TLS ट्रैफ़िक के लिए HNDL को आंशिक रूप से कम करता है।",{"type":21,"tag":17809,"props":24667,"children":24669},{"id":24668},"स्तर-2-अगले-618-महीनों-के-लिए-योजना-बनाएँ",[24670],{"type":26,"value":24671},"स्तर 2 — अगले 6–18 महीनों के लिए योजना बनाएँ",{"type":21,"tag":22,"props":24673,"children":24674},{},[24675,24680,24682,24688],{"type":21,"tag":71,"props":24676,"children":24677},{},[24678],{"type":26,"value":24679},"TLS में हाइब्रिड कुंजी विनिमय अपनाएँ।",{"type":26,"value":24681}," TLS वर्किंग ग्रुप ने ",{"type":21,"tag":79,"props":24683,"children":24685},{"className":24684},[],[24686],{"type":26,"value":24687},"X25519Kyber768",{"type":26,"value":24689}," को मानकीकृत किया है — एक हाइब्रिड योजना जो शास्त्रीय ECDH और ML-KEM दोनों का उपयोग करती है। Google Chrome, Cloudflare, और AWS पहले से ही इसका समर्थन करते हैं। यह शास्त्रीय सुरक्षा बनाए रखते हुए HNDL से बचाता है:",{"type":21,"tag":312,"props":24691,"children":24695},{"code":24692,"language":24693,"meta":7,"className":24694,"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",[24696],{"type":21,"tag":79,"props":24697,"children":24698},{"__ignoreMap":7},[24699,24707],{"type":21,"tag":322,"props":24700,"children":24701},{"class":324,"line":325},[24702],{"type":21,"tag":322,"props":24703,"children":24704},{},[24705],{"type":26,"value":24706},"# Nginx with OpenSSL 3.x + oqs-provider (Open Quantum Safe)\n",{"type":21,"tag":322,"props":24708,"children":24709},{"class":324,"line":335},[24710],{"type":21,"tag":322,"props":24711,"children":24712},{},[24713],{"type":26,"value":24714},"ssl_ecdh_curve X25519Kyber768;  # hybrid classical + PQC\n",{"type":21,"tag":22,"props":24716,"children":24717},{},[24718,24723],{"type":21,"tag":71,"props":24719,"children":24720},{},[24721],{"type":26,"value":24722},"नई प्रणालियों में RSA\u002FECDSA को ML-DSA से बदलें।",{"type":26,"value":24724}," किसी भी नए सिरे से बनाई गई चीज़ के लिए — नए माइक्रोसर्विसेज़, नए JWT कार्यान्वयन, नई SSH तैनाती — ECDSA-256 के बजाय ML-DSA (Dilithium3 या Dilithium5) का उपयोग करें।",{"type":21,"tag":22,"props":24726,"children":24727},{},[24728,24733],{"type":21,"tag":71,"props":24729,"children":24730},{},[24731],{"type":26,"value":24732},"अपनी TLS सर्टिफिकेट पाइपलाइन को अपडेट करें।",{"type":26,"value":24734}," अधिकांश सार्वजनिक CA अभी तक PQC सर्टिफिकेट जारी नहीं करते, लेकिन आप आज आंतरिक रूप से हस्ताक्षरित सर्टिफिकेट और सर्विस मेश सर्टिफिकेट के लिए ML-DSA का उपयोग कर सकते हैं।",{"type":21,"tag":17809,"props":24736,"children":24738},{"id":24737},"स्तर-3-दीर्घकालिक-माइग्रेशन-15-वर्ष",[24739],{"type":26,"value":24740},"स्तर 3 — दीर्घकालिक माइग्रेशन (1–5 वर्ष)",{"type":21,"tag":22,"props":24742,"children":24743},{},[24744,24749],{"type":21,"tag":71,"props":24745,"children":24746},{},[24747],{"type":26,"value":24748},"पूर्ण PKI माइग्रेशन।",{"type":26,"value":24750}," अपने RSA\u002FECC सर्टिफिकेट पदानुक्रम को PQC-आधारित CA इन्फ्रास्ट्रक्चर से बदलें। यह सबसे कठिन हिस्सा है — हार्डवेयर सुरक्षा मॉड्यूल (HSMs), स्वचालित सर्टिफिकेट रोटेशन, और सर्टिफिकेट चेन सभी को अपडेट करने की आवश्यकता है।",{"type":21,"tag":22,"props":24752,"children":24753},{},[24754,24759],{"type":21,"tag":71,"props":24755,"children":24756},{},[24757],{"type":26,"value":24758},"हार्डवेयर और एम्बेडेड डिवाइस।",{"type":26,"value":24760}," IoT और एम्बेडेड डिवाइस अक्सर दूरस्थ रूप से पैच नहीं किए जा सकते और उनका जीवनकाल 10+ वर्ष होता है। ऐसे किसी भी डिवाइस का ऑडिट करें जो प्रमाणीकरण के लिए RSA या ECDSA पर निर्भर करता है।",{"type":21,"tag":22,"props":24762,"children":24763},{},[24764,24769],{"type":21,"tag":71,"props":24765,"children":24766},{},[24767],{"type":26,"value":24768},"कुंजी प्रबंधन प्रणालियाँ।",{"type":26,"value":24770}," AWS KMS, Azure Key Vault, HashiCorp Vault — उनके PQC रोडमैप और माइग्रेशन समयसीमा को सत्यापित करें।",{"type":21,"tag":59,"props":24772,"children":24774},{"id":24773},"लाइब्रेरी-और-फ्रेमवर्क-समर्थन",[24775],{"type":26,"value":24776},"लाइब्रेरी और फ्रेमवर्क समर्थन",{"type":21,"tag":4516,"props":24778,"children":24779},{},[24780,24796],{"type":21,"tag":4520,"props":24781,"children":24782},{},[24783],{"type":21,"tag":4524,"props":24784,"children":24785},{},[24786,24791],{"type":21,"tag":4528,"props":24787,"children":24788},{},[24789],{"type":26,"value":24790},"प्लेटफ़ॉर्म",{"type":21,"tag":4528,"props":24792,"children":24793},{},[24794],{"type":26,"value":24795},"PQC स्थिति",{"type":21,"tag":4542,"props":24797,"children":24798},{},[24799,24812,24825,24838,24851,24864,24877,24896,24909],{"type":21,"tag":4524,"props":24800,"children":24801},{},[24802,24807],{"type":21,"tag":4549,"props":24803,"children":24804},{},[24805],{"type":26,"value":24806},"OpenSSL 3.x + oqs-provider",{"type":21,"tag":4549,"props":24808,"children":24809},{},[24810],{"type":26,"value":24811},"प्लगइन के माध्यम से ML-KEM, ML-DSA, FALCON",{"type":21,"tag":4524,"props":24813,"children":24814},{},[24815,24820],{"type":21,"tag":4549,"props":24816,"children":24817},{},[24818],{"type":26,"value":24819},"AWS KMS",{"type":21,"tag":4549,"props":24821,"children":24822},{},[24823],{"type":26,"value":24824},"ML-KEM हाइब्रिड TLS प्रीव्यू में",{"type":21,"tag":4524,"props":24826,"children":24827},{},[24828,24833],{"type":21,"tag":4549,"props":24829,"children":24830},{},[24831],{"type":26,"value":24832},"Cloudflare",{"type":21,"tag":4549,"props":24834,"children":24835},{},[24836],{"type":26,"value":24837},"X25519Kyber768 TLS (2023 से लाइव)",{"type":21,"tag":4524,"props":24839,"children":24840},{},[24841,24846],{"type":21,"tag":4549,"props":24842,"children":24843},{},[24844],{"type":26,"value":24845},"Chrome 124+",{"type":21,"tag":4549,"props":24847,"children":24848},{},[24849],{"type":26,"value":24850},"X25519Kyber768 TLS",{"type":21,"tag":4524,"props":24852,"children":24853},{},[24854,24859],{"type":21,"tag":4549,"props":24855,"children":24856},{},[24857],{"type":26,"value":24858},"Java (BouncyCastle)",{"type":21,"tag":4549,"props":24860,"children":24861},{},[24862],{"type":26,"value":24863},"CRYSTALS-Kyber, Dilithium",{"type":21,"tag":4524,"props":24865,"children":24866},{},[24867,24872],{"type":21,"tag":4549,"props":24868,"children":24869},{},[24870],{"type":26,"value":24871},"Python (pqcrypto)",{"type":21,"tag":4549,"props":24873,"children":24874},{},[24875],{"type":26,"value":24876},"पूर्ण NIST सेट",{"type":21,"tag":4524,"props":24878,"children":24879},{},[24880,24885],{"type":21,"tag":4549,"props":24881,"children":24882},{},[24883],{"type":26,"value":24884},"Go",{"type":21,"tag":4549,"props":24886,"children":24887},{},[24888,24894],{"type":21,"tag":79,"props":24889,"children":24891},{"className":24890},[],[24892],{"type":26,"value":24893},"golang.org\u002Fx\u002Fcrypto",{"type":26,"value":24895}," PQC विकासाधीन",{"type":21,"tag":4524,"props":24897,"children":24898},{},[24899,24904],{"type":21,"tag":4549,"props":24900,"children":24901},{},[24902],{"type":26,"value":24903},"Node.js",{"type":21,"tag":4549,"props":24905,"children":24906},{},[24907],{"type":26,"value":24908},"नेटिव मॉड्यूल के माध्यम से (OpenSSL 3.x बाइंडिंग)",{"type":21,"tag":4524,"props":24910,"children":24911},{},[24912,24917],{"type":21,"tag":4549,"props":24913,"children":24914},{},[24915],{"type":26,"value":24916},"Rust (pqcrypto crate)",{"type":21,"tag":4549,"props":24918,"children":24919},{},[24920],{"type":26,"value":24876},{"type":21,"tag":59,"props":24922,"children":24924},{"id":24923},"एक-पृष्ठ-सारांश",[24925],{"type":26,"value":24926},"एक-पृष्ठ सारांश",{"type":21,"tag":312,"props":24928,"children":24930},{"code":24929},"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",[24931],{"type":21,"tag":79,"props":24932,"children":24933},{"__ignoreMap":7},[24934],{"type":26,"value":24929},{"type":21,"tag":22,"props":24936,"children":24937},{},[24938],{"type":26,"value":24939},"क्रिप्टोग्राफी के लिए क्वांटम खतरा वास्तविक है और समयसीमा अनिश्चित है — यही ठीक वह कारण है कि अभी कार्रवाई करना, क्वांटम कंप्यूटरों के सक्षम होने से पहले, सही निर्णय है।",{"type":21,"tag":22,"props":24941,"children":24942},{},[24943,24948,24949,24954,24955],{"type":21,"tag":71,"props":24944,"children":24945},{},[24946],{"type":26,"value":24947},"आगे पढ़ें:",{"type":26,"value":1911},{"type":21,"tag":29,"props":24950,"children":24951},{"href":10077},[24952],{"type":26,"value":24953},"क्वांटम कंप्यूटिंग शब्दावली — Shor का एल्गोरिदम",{"type":26,"value":7562},{"type":21,"tag":29,"props":24956,"children":24957},{"href":11954},[24958],{"type":26,"value":24959},"क्वांटम कंप्यूटर आज क्या कर सकते हैं",{"type":21,"tag":703,"props":24961,"children":24962},{},[24963],{"type":26,"value":707},{"title":7,"searchDepth":335,"depth":335,"links":24965},[24966,24967,24968,24973,24978,24979],{"id":23956,"depth":335,"text":23959},{"id":24049,"depth":335,"text":24052},{"id":24157,"depth":335,"text":24160,"children":24969},[24970,24971,24972],{"id":24168,"depth":344,"text":24171},{"id":24378,"depth":344,"text":24381},{"id":24546,"depth":344,"text":24549},{"id":24603,"depth":335,"text":24606,"children":24974},[24975,24976,24977],{"id":24609,"depth":344,"text":24612},{"id":24668,"depth":344,"text":24671},{"id":24737,"depth":344,"text":24740},{"id":24773,"depth":335,"text":24776},{"id":24923,"depth":335,"text":24926},"content:hi:blog:post-quantum-cryptography-guide.md","hi\u002Fblog\u002Fpost-quantum-cryptography-guide.md","hi\u002Fblog\u002Fpost-quantum-cryptography-guide",{"_path":24984,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":24985,"description":24986,"date":24987,"author":11,"tags":24988,"readingTime":496,"body":24989,"_type":715,"_id":27528,"_source":717,"_file":27529,"_stem":27530,"_extension":720},"\u002Fhi\u002Fblog\u002Freduce-shot-count","वैरिएशनल क्वांटम एल्गोरिदम में अपने शॉट काउंट को 80% तक कैसे घटाएं","VQE और QAOA में आवश्यक सर्किट निष्पादनों की संख्या घटाने की व्यावहारिक तकनीकें — शॉट-किफायती ऑप्टिमाइज़र, ग्रेडिएंट आकलन की तरकीबें, और मेज़रमेंट ग्रुपिंग।","2026-03-01",[13,888,14,9339],{"type":18,"children":24990,"toc":27517},[24991,24996,25001,25007,25012,25134,25146,25152,25164,25464,25474,25480,25492,25815,25827,25833,25853,26046,26071,26077,26089,26238,26248,26254,26259,26592,26597,26603,26608,26781,26787,27349,27355,27483,27488,27513],{"type":21,"tag":22,"props":24992,"children":24993},{},[24994],{"type":26,"value":24995},"हर बार जब आप वास्तविक हार्डवेयर पर कोई क्वांटम सर्किट चलाते हैं, तो इसमें QPU समय और पैसा खर्च होता है। VQE और QAOA जैसे वैरिएशनल एल्गोरिदम को अभिसरित (converge) होने के लिए लाखों सर्किट निष्पादनों की आवश्यकता हो सकती है — क्लाउड QPU पर $0.075–$0.90 प्रति टास्क की दर से, यह तेज़ी से जुड़ता जाता है।",{"type":21,"tag":22,"props":24997,"children":24998},{},[24999],{"type":26,"value":25000},"अच्छी खबर: अधिकांश डिफ़ॉल्ट कार्यान्वयन बेहद शॉट-अकुशल होते हैं। सही तकनीकों के साथ, आप परिणाम की गुणवत्ता से समझौता किए बिना शॉट आवश्यकताओं को 50–90% तक घटा सकते हैं।",{"type":21,"tag":59,"props":25002,"children":25004},{"id":25003},"शॉट-काउंट-डिफ़ॉल्ट-रूप-से-इतने-अधिक-क्यों-होते-हैं",[25005],{"type":26,"value":25006},"शॉट काउंट डिफ़ॉल्ट रूप से इतने अधिक क्यों होते हैं",{"type":21,"tag":22,"props":25008,"children":25009},{},[25010],{"type":26,"value":25011},"VQE पॉली ऑपरेटरों के प्रत्याशित मान (expectation values) की गणना करता है। एक हैमिल्टोनियन को पॉली पदों के योग में विघटित किया जाता है, और प्रत्येक पद के लिए एक अलग सर्किट निष्पादन की आवश्यकता होती है। H₂ (4 qubits) जैसे अणु के लिए, लगभग 15 पॉली पद होते हैं। बड़े अणुओं के लिए यह संख्या विस्फोटक रूप से बढ़ जाती है:",{"type":21,"tag":4516,"props":25013,"children":25014},{},[25015,25041],{"type":21,"tag":4520,"props":25016,"children":25017},{},[25018],{"type":21,"tag":4524,"props":25019,"children":25020},{},[25021,25026,25031,25036],{"type":21,"tag":4528,"props":25022,"children":25023},{},[25024],{"type":26,"value":25025},"अणु",{"type":21,"tag":4528,"props":25027,"children":25028},{},[25029],{"type":26,"value":25030},"Qubits",{"type":21,"tag":4528,"props":25032,"children":25033},{},[25034],{"type":26,"value":25035},"पॉली पद",{"type":21,"tag":4528,"props":25037,"children":25038},{},[25039],{"type":26,"value":25040},"नाइव शॉट्स\u002Fइटरेशन",{"type":21,"tag":4542,"props":25042,"children":25043},{},[25044,25066,25089,25112],{"type":21,"tag":4524,"props":25045,"children":25046},{},[25047,25052,25056,25061],{"type":21,"tag":4549,"props":25048,"children":25049},{},[25050],{"type":26,"value":25051},"H₂",{"type":21,"tag":4549,"props":25053,"children":25054},{},[25055],{"type":26,"value":5982},{"type":21,"tag":4549,"props":25057,"children":25058},{},[25059],{"type":26,"value":25060},"15",{"type":21,"tag":4549,"props":25062,"children":25063},{},[25064],{"type":26,"value":25065},"15,000",{"type":21,"tag":4524,"props":25067,"children":25068},{},[25069,25074,25079,25084],{"type":21,"tag":4549,"props":25070,"children":25071},{},[25072],{"type":26,"value":25073},"LiH",{"type":21,"tag":4549,"props":25075,"children":25076},{},[25077],{"type":26,"value":25078},"12",{"type":21,"tag":4549,"props":25080,"children":25081},{},[25082],{"type":26,"value":25083},"631",{"type":21,"tag":4549,"props":25085,"children":25086},{},[25087],{"type":26,"value":25088},"631,000",{"type":21,"tag":4524,"props":25090,"children":25091},{},[25092,25097,25102,25107],{"type":21,"tag":4549,"props":25093,"children":25094},{},[25095],{"type":26,"value":25096},"BeH₂",{"type":21,"tag":4549,"props":25098,"children":25099},{},[25100],{"type":26,"value":25101},"14",{"type":21,"tag":4549,"props":25103,"children":25104},{},[25105],{"type":26,"value":25106},"666",{"type":21,"tag":4549,"props":25108,"children":25109},{},[25110],{"type":26,"value":25111},"666,000",{"type":21,"tag":4524,"props":25113,"children":25114},{},[25115,25120,25124,25129],{"type":21,"tag":4549,"props":25116,"children":25117},{},[25118],{"type":26,"value":25119},"H₂O",{"type":21,"tag":4549,"props":25121,"children":25122},{},[25123],{"type":26,"value":25101},{"type":21,"tag":4549,"props":25125,"children":25126},{},[25127],{"type":26,"value":25128},"1,086",{"type":21,"tag":4549,"props":25130,"children":25131},{},[25132],{"type":26,"value":25133},"1,086,000",{"type":21,"tag":22,"props":25135,"children":25136},{},[25137,25139,25144],{"type":26,"value":25138},"200 ऑप्टिमाइज़र इटरेशन के साथ, H₂O को नाइव तरीके से ",{"type":21,"tag":71,"props":25140,"children":25141},{},[25142],{"type":26,"value":25143},"217 मिलियन शॉट्स",{"type":26,"value":25145}," की आवश्यकता होती है। नीचे दी गई तकनीकें इसे 80–95% तक घटा देती हैं।",{"type":21,"tag":59,"props":25147,"children":25149},{"id":25148},"तकनीक-1-मेज़रमेंट-ग्रुपिंग-सबसे-बड़ी-बचत",[25150],{"type":26,"value":25151},"तकनीक 1: मेज़रमेंट ग्रुपिंग (सबसे बड़ी बचत)",{"type":21,"tag":22,"props":25153,"children":25154},{},[25155,25157,25162],{"type":26,"value":25156},"कई पॉली पद ",{"type":21,"tag":71,"props":25158,"children":25159},{},[25160],{"type":26,"value":25161},"कम्यूट",{"type":26,"value":25163}," करते हैं — उन्हें अलग-अलग के बजाय एक ही सर्किट निष्पादन में एक साथ मापा जा सकता है। कम्यूट करने वाले प्रेक्षणीयों (observables) को समूहित करना उपलब्ध सबसे बड़ी एकल कटौती है।",{"type":21,"tag":312,"props":25165,"children":25167},{"className":3636,"code":25166,"language":3638,"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",[25168],{"type":21,"tag":79,"props":25169,"children":25170},{"__ignoreMap":7},[25171,25191,25210,25229,25248,25255,25263,25271,25288,25295,25303,25322,25329,25346,25353,25361,25396,25456],{"type":21,"tag":322,"props":25172,"children":25173},{"class":324,"line":325},[25174,25178,25182,25186],{"type":21,"tag":322,"props":25175,"children":25176},{"style":3648},[25177],{"type":26,"value":3651},{"type":21,"tag":322,"props":25179,"children":25180},{"style":329},[25181],{"type":26,"value":22940},{"type":21,"tag":322,"props":25183,"children":25184},{"style":3648},[25185],{"type":26,"value":3661},{"type":21,"tag":322,"props":25187,"children":25188},{"style":329},[25189],{"type":26,"value":25190}," StatevectorEstimator\n",{"type":21,"tag":322,"props":25192,"children":25193},{"class":324,"line":335},[25194,25198,25202,25206],{"type":21,"tag":322,"props":25195,"children":25196},{"style":3648},[25197],{"type":26,"value":3651},{"type":21,"tag":322,"props":25199,"children":25200},{"style":329},[25201],{"type":26,"value":22856},{"type":21,"tag":322,"props":25203,"children":25204},{"style":3648},[25205],{"type":26,"value":3661},{"type":21,"tag":322,"props":25207,"children":25208},{"style":329},[25209],{"type":26,"value":22865},{"type":21,"tag":322,"props":25211,"children":25212},{"class":324,"line":344},[25213,25217,25221,25225],{"type":21,"tag":322,"props":25214,"children":25215},{"style":3648},[25216],{"type":26,"value":3651},{"type":21,"tag":322,"props":25218,"children":25219},{"style":329},[25220],{"type":26,"value":22898},{"type":21,"tag":322,"props":25222,"children":25223},{"style":3648},[25224],{"type":26,"value":3661},{"type":21,"tag":322,"props":25226,"children":25227},{"style":348},[25228],{"type":26,"value":22907},{"type":21,"tag":322,"props":25230,"children":25231},{"class":324,"line":407},[25232,25236,25240,25244],{"type":21,"tag":322,"props":25233,"children":25234},{"style":3648},[25235],{"type":26,"value":3651},{"type":21,"tag":322,"props":25237,"children":25238},{"style":329},[25239],{"type":26,"value":22919},{"type":21,"tag":322,"props":25241,"children":25242},{"style":3648},[25243],{"type":26,"value":3661},{"type":21,"tag":322,"props":25245,"children":25246},{"style":348},[25247],{"type":26,"value":22928},{"type":21,"tag":322,"props":25249,"children":25250},{"class":324,"line":431},[25251],{"type":21,"tag":322,"props":25252,"children":25253},{"emptyLinePlaceholder":3672},[25254],{"type":26,"value":3675},{"type":21,"tag":322,"props":25256,"children":25257},{"class":324,"line":453},[25258],{"type":21,"tag":322,"props":25259,"children":25260},{"style":3898},[25261],{"type":26,"value":25262},"# Qiskit automatically groups commuting Paulis in the Estimator primitive\n",{"type":21,"tag":322,"props":25264,"children":25265},{"class":324,"line":474},[25266],{"type":21,"tag":322,"props":25267,"children":25268},{"style":3898},[25269],{"type":26,"value":25270},"# This reduces shots from O(n_terms) to O(n_groups) — often 5-10x reduction\n",{"type":21,"tag":322,"props":25272,"children":25273},{"class":324,"line":496},[25274,25279,25283],{"type":21,"tag":322,"props":25275,"children":25276},{"style":329},[25277],{"type":26,"value":25278},"estimator ",{"type":21,"tag":322,"props":25280,"children":25281},{"style":3648},[25282],{"type":26,"value":3688},{"type":21,"tag":322,"props":25284,"children":25285},{"style":329},[25286],{"type":26,"value":25287}," StatevectorEstimator()\n",{"type":21,"tag":322,"props":25289,"children":25290},{"class":324,"line":16},[25291],{"type":21,"tag":322,"props":25292,"children":25293},{"emptyLinePlaceholder":3672},[25294],{"type":26,"value":3675},{"type":21,"tag":322,"props":25296,"children":25297},{"class":324,"line":3894},[25298],{"type":21,"tag":322,"props":25299,"children":25300},{"style":3898},[25301],{"type":26,"value":25302},"# With PennyLane, use grouping explicitly:\n",{"type":21,"tag":322,"props":25304,"children":25305},{"class":324,"line":3904},[25306,25310,25314,25318],{"type":21,"tag":322,"props":25307,"children":25308},{"style":3648},[25309],{"type":26,"value":3661},{"type":21,"tag":322,"props":25311,"children":25312},{"style":329},[25313],{"type":26,"value":14541},{"type":21,"tag":322,"props":25315,"children":25316},{"style":3648},[25317],{"type":26,"value":4728},{"type":21,"tag":322,"props":25319,"children":25320},{"style":329},[25321],{"type":26,"value":14550},{"type":21,"tag":322,"props":25323,"children":25324},{"class":324,"line":1043},[25325],{"type":21,"tag":322,"props":25326,"children":25327},{"emptyLinePlaceholder":3672},[25328],{"type":26,"value":3675},{"type":21,"tag":322,"props":25330,"children":25331},{"class":324,"line":3964},[25332,25337,25341],{"type":21,"tag":322,"props":25333,"children":25334},{"style":329},[25335],{"type":26,"value":25336},"H ",{"type":21,"tag":322,"props":25338,"children":25339},{"style":3648},[25340],{"type":26,"value":3688},{"type":21,"tag":322,"props":25342,"children":25343},{"style":329},[25344],{"type":26,"value":25345}," qml.Hamiltonian(coeffs, observables)\n",{"type":21,"tag":322,"props":25347,"children":25348},{"class":324,"line":4012},[25349],{"type":21,"tag":322,"props":25350,"children":25351},{"emptyLinePlaceholder":3672},[25352],{"type":26,"value":3675},{"type":21,"tag":322,"props":25354,"children":25355},{"class":324,"line":4054},[25356],{"type":21,"tag":322,"props":25357,"children":25358},{"style":3898},[25359],{"type":26,"value":25360},"# Group commuting terms — usually reduces term count by 5-10x\n",{"type":21,"tag":322,"props":25362,"children":25363},{"class":324,"line":5081},[25364,25369,25373,25378,25383,25387,25392],{"type":21,"tag":322,"props":25365,"children":25366},{"style":329},[25367],{"type":26,"value":25368},"groups ",{"type":21,"tag":322,"props":25370,"children":25371},{"style":3648},[25372],{"type":26,"value":3688},{"type":21,"tag":322,"props":25374,"children":25375},{"style":329},[25376],{"type":26,"value":25377}," qml.grouping.group_observables(observables, ",{"type":21,"tag":322,"props":25379,"children":25380},{"style":3713},[25381],{"type":26,"value":25382},"grouping_type",{"type":21,"tag":322,"props":25384,"children":25385},{"style":3648},[25386],{"type":26,"value":3688},{"type":21,"tag":322,"props":25388,"children":25389},{"style":359},[25390],{"type":26,"value":25391},"'qwc'",{"type":21,"tag":322,"props":25393,"children":25394},{"style":329},[25395],{"type":26,"value":3748},{"type":21,"tag":322,"props":25397,"children":25398},{"class":324,"line":5100},[25399,25403,25407,25411,25416,25421,25426,25430,25435,25439,25444,25448,25452],{"type":21,"tag":322,"props":25400,"children":25401},{"style":348},[25402],{"type":26,"value":3763},{"type":21,"tag":322,"props":25404,"children":25405},{"style":329},[25406],{"type":26,"value":3768},{"type":21,"tag":322,"props":25408,"children":25409},{"style":3648},[25410],{"type":26,"value":3773},{"type":21,"tag":322,"props":25412,"children":25413},{"style":359},[25414],{"type":26,"value":25415},"\"Original terms: ",{"type":21,"tag":322,"props":25417,"children":25418},{"style":348},[25419],{"type":26,"value":25420},"{len",{"type":21,"tag":322,"props":25422,"children":25423},{"style":329},[25424],{"type":26,"value":25425},"(observables)",{"type":21,"tag":322,"props":25427,"children":25428},{"style":348},[25429],{"type":26,"value":3793},{"type":21,"tag":322,"props":25431,"children":25432},{"style":359},[25433],{"type":26,"value":25434},", Groups: ",{"type":21,"tag":322,"props":25436,"children":25437},{"style":348},[25438],{"type":26,"value":25420},{"type":21,"tag":322,"props":25440,"children":25441},{"style":329},[25442],{"type":26,"value":25443},"(groups)",{"type":21,"tag":322,"props":25445,"children":25446},{"style":348},[25447],{"type":26,"value":3793},{"type":21,"tag":322,"props":25449,"children":25450},{"style":359},[25451],{"type":26,"value":3798},{"type":21,"tag":322,"props":25453,"children":25454},{"style":329},[25455],{"type":26,"value":3748},{"type":21,"tag":322,"props":25457,"children":25458},{"class":324,"line":5108},[25459],{"type":21,"tag":322,"props":25460,"children":25461},{"style":3898},[25462],{"type":26,"value":25463},"# Original terms: 631, Groups: 68  (for LiH)\n",{"type":21,"tag":22,"props":25465,"children":25466},{},[25467,25472],{"type":21,"tag":71,"props":25468,"children":25469},{},[25470],{"type":26,"value":25471},"अपेक्षित बचत: 5–15×",{"type":26,"value":25473}," सामान्य रसायन विज्ञान हैमिल्टोनियन पर।",{"type":21,"tag":59,"props":25475,"children":25477},{"id":25476},"तकनीक-2-शॉट-किफायती-ऑप्टिमाइज़र",[25478],{"type":26,"value":25479},"तकनीक 2: शॉट-किफायती ऑप्टिमाइज़र",{"type":21,"tag":22,"props":25481,"children":25482},{},[25483,25485,25490],{"type":26,"value":25484},"L-BFGS-B या ADAM जैसे शास्त्रीय ऑप्टिमाइज़र शोर-रहित फ़ंक्शन मूल्यांकनों को मानकर चलते हैं — जब परिणाम शोरयुक्त होते हैं तब वे आवश्यकता से अधिक ग्रेडिएंट मूल्यांकनों का अनुरोध करते हैं। ",{"type":21,"tag":71,"props":25486,"children":25487},{},[25488],{"type":26,"value":25489},"शॉट-किफायती ऑप्टिमाइज़र",{"type":26,"value":25491}," मेज़रमेंट प्रसरण (variance) के आधार पर शॉट्स को अनुकूली रूप से आवंटित करते हैं।",{"type":21,"tag":312,"props":25493,"children":25495},{"className":3636,"code":25494,"language":3638,"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",[25496],{"type":21,"tag":79,"props":25497,"children":25498},{"__ignoreMap":7},[25499,25520,25527,25566,25573,25584,25600,25608,25616,25628,25635,25643,25676,25683,25709,25741,25758],{"type":21,"tag":322,"props":25500,"children":25501},{"class":324,"line":325},[25502,25506,25511,25515],{"type":21,"tag":322,"props":25503,"children":25504},{"style":3648},[25505],{"type":26,"value":3651},{"type":21,"tag":322,"props":25507,"children":25508},{"style":329},[25509],{"type":26,"value":25510}," pennylane.optimize ",{"type":21,"tag":322,"props":25512,"children":25513},{"style":3648},[25514],{"type":26,"value":3661},{"type":21,"tag":322,"props":25516,"children":25517},{"style":329},[25518],{"type":26,"value":25519}," AdaptiveOptimizer, ShotAdaptiveOptimizer\n",{"type":21,"tag":322,"props":25521,"children":25522},{"class":324,"line":335},[25523],{"type":21,"tag":322,"props":25524,"children":25525},{"emptyLinePlaceholder":3672},[25526],{"type":26,"value":3675},{"type":21,"tag":322,"props":25528,"children":25529},{"class":324,"line":344},[25530,25534,25538,25542,25546,25550,25554,25558,25562],{"type":21,"tag":322,"props":25531,"children":25532},{"style":329},[25533],{"type":26,"value":14674},{"type":21,"tag":322,"props":25535,"children":25536},{"style":3648},[25537],{"type":26,"value":3688},{"type":21,"tag":322,"props":25539,"children":25540},{"style":329},[25541],{"type":26,"value":14683},{"type":21,"tag":322,"props":25543,"children":25544},{"style":359},[25545],{"type":26,"value":14688},{"type":21,"tag":322,"props":25547,"children":25548},{"style":329},[25549],{"type":26,"value":367},{"type":21,"tag":322,"props":25551,"children":25552},{"style":3713},[25553],{"type":26,"value":14697},{"type":21,"tag":322,"props":25555,"children":25556},{"style":3648},[25557],{"type":26,"value":3688},{"type":21,"tag":322,"props":25559,"children":25560},{"style":348},[25561],{"type":26,"value":5982},{"type":21,"tag":322,"props":25563,"children":25564},{"style":329},[25565],{"type":26,"value":3748},{"type":21,"tag":322,"props":25567,"children":25568},{"class":324,"line":407},[25569],{"type":21,"tag":322,"props":25570,"children":25571},{"emptyLinePlaceholder":3672},[25572],{"type":26,"value":3675},{"type":21,"tag":322,"props":25574,"children":25575},{"class":324,"line":431},[25576,25580],{"type":21,"tag":322,"props":25577,"children":25578},{"style":4814},[25579],{"type":26,"value":14721},{"type":21,"tag":322,"props":25581,"children":25582},{"style":329},[25583],{"type":26,"value":14726},{"type":21,"tag":322,"props":25585,"children":25586},{"class":324,"line":453},[25587,25591,25595],{"type":21,"tag":322,"props":25588,"children":25589},{"style":3648},[25590],{"type":26,"value":4811},{"type":21,"tag":322,"props":25592,"children":25593},{"style":4814},[25594],{"type":26,"value":14738},{"type":21,"tag":322,"props":25596,"children":25597},{"style":329},[25598],{"type":26,"value":25599},"(params):\n",{"type":21,"tag":322,"props":25601,"children":25602},{"class":324,"line":474},[25603],{"type":21,"tag":322,"props":25604,"children":25605},{"style":3898},[25606],{"type":26,"value":25607},"    # ansatz\n",{"type":21,"tag":322,"props":25609,"children":25610},{"class":324,"line":496},[25611],{"type":21,"tag":322,"props":25612,"children":25613},{"style":348},[25614],{"type":26,"value":25615},"    ...\n",{"type":21,"tag":322,"props":25617,"children":25618},{"class":324,"line":16},[25619,25623],{"type":21,"tag":322,"props":25620,"children":25621},{"style":3648},[25622],{"type":26,"value":5036},{"type":21,"tag":322,"props":25624,"children":25625},{"style":329},[25626],{"type":26,"value":25627}," qml.expval(H)\n",{"type":21,"tag":322,"props":25629,"children":25630},{"class":324,"line":3894},[25631],{"type":21,"tag":322,"props":25632,"children":25633},{"emptyLinePlaceholder":3672},[25634],{"type":26,"value":3675},{"type":21,"tag":322,"props":25636,"children":25637},{"class":324,"line":3904},[25638],{"type":21,"tag":322,"props":25639,"children":25640},{"style":3898},[25641],{"type":26,"value":25642},"# ShotAdaptiveOptimizer: allocates more shots to high-variance directions\n",{"type":21,"tag":322,"props":25644,"children":25645},{"class":324,"line":1043},[25646,25650,25654,25659,25664,25668,25672],{"type":21,"tag":322,"props":25647,"children":25648},{"style":329},[25649],{"type":26,"value":15400},{"type":21,"tag":322,"props":25651,"children":25652},{"style":3648},[25653],{"type":26,"value":3688},{"type":21,"tag":322,"props":25655,"children":25656},{"style":329},[25657],{"type":26,"value":25658}," ShotAdaptiveOptimizer(",{"type":21,"tag":322,"props":25660,"children":25661},{"style":3713},[25662],{"type":26,"value":25663},"min_shots",{"type":21,"tag":322,"props":25665,"children":25666},{"style":3648},[25667],{"type":26,"value":3688},{"type":21,"tag":322,"props":25669,"children":25670},{"style":348},[25671],{"type":26,"value":20968},{"type":21,"tag":322,"props":25673,"children":25674},{"style":329},[25675],{"type":26,"value":3748},{"type":21,"tag":322,"props":25677,"children":25678},{"class":324,"line":3964},[25679],{"type":21,"tag":322,"props":25680,"children":25681},{"emptyLinePlaceholder":3672},[25682],{"type":26,"value":3675},{"type":21,"tag":322,"props":25684,"children":25685},{"class":324,"line":4012},[25686,25691,25695,25700,25704],{"type":21,"tag":322,"props":25687,"children":25688},{"style":329},[25689],{"type":26,"value":25690},"params ",{"type":21,"tag":322,"props":25692,"children":25693},{"style":3648},[25694],{"type":26,"value":3688},{"type":21,"tag":322,"props":25696,"children":25697},{"style":329},[25698],{"type":26,"value":25699}," np.random.uniform(",{"type":21,"tag":322,"props":25701,"children":25702},{"style":3648},[25703],{"type":26,"value":5298},{"type":21,"tag":322,"props":25705,"children":25706},{"style":329},[25707],{"type":26,"value":25708},"np.pi, np.pi, n_params)\n",{"type":21,"tag":322,"props":25710,"children":25711},{"class":324,"line":4054},[25712,25716,25720,25724,25728,25732,25737],{"type":21,"tag":322,"props":25713,"children":25714},{"style":3648},[25715],{"type":26,"value":3941},{"type":21,"tag":322,"props":25717,"children":25718},{"style":329},[25719],{"type":26,"value":5195},{"type":21,"tag":322,"props":25721,"children":25722},{"style":3648},[25723],{"type":26,"value":3951},{"type":21,"tag":322,"props":25725,"children":25726},{"style":348},[25727],{"type":26,"value":3956},{"type":21,"tag":322,"props":25729,"children":25730},{"style":329},[25731],{"type":26,"value":3768},{"type":21,"tag":322,"props":25733,"children":25734},{"style":348},[25735],{"type":26,"value":25736},"100",{"type":21,"tag":322,"props":25738,"children":25739},{"style":329},[25740],{"type":26,"value":4864},{"type":21,"tag":322,"props":25742,"children":25743},{"class":324,"line":5081},[25744,25749,25753],{"type":21,"tag":322,"props":25745,"children":25746},{"style":329},[25747],{"type":26,"value":25748},"    params, _, shots_used ",{"type":21,"tag":322,"props":25750,"children":25751},{"style":3648},[25752],{"type":26,"value":3688},{"type":21,"tag":322,"props":25754,"children":25755},{"style":329},[25756],{"type":26,"value":25757}," opt.step_and_cost(circuit, params)\n",{"type":21,"tag":322,"props":25759,"children":25760},{"class":324,"line":5100},[25761,25765,25769,25773,25777,25781,25785,25789,25794,25798,25803,25807,25811],{"type":21,"tag":322,"props":25762,"children":25763},{"style":348},[25764],{"type":26,"value":17672},{"type":21,"tag":322,"props":25766,"children":25767},{"style":329},[25768],{"type":26,"value":3768},{"type":21,"tag":322,"props":25770,"children":25771},{"style":3648},[25772],{"type":26,"value":3773},{"type":21,"tag":322,"props":25774,"children":25775},{"style":359},[25776],{"type":26,"value":15679},{"type":21,"tag":322,"props":25778,"children":25779},{"style":348},[25780],{"type":26,"value":3783},{"type":21,"tag":322,"props":25782,"children":25783},{"style":329},[25784],{"type":26,"value":4686},{"type":21,"tag":322,"props":25786,"children":25787},{"style":348},[25788],{"type":26,"value":3793},{"type":21,"tag":322,"props":25790,"children":25791},{"style":359},[25792],{"type":26,"value":25793},": shots used = ",{"type":21,"tag":322,"props":25795,"children":25796},{"style":348},[25797],{"type":26,"value":3783},{"type":21,"tag":322,"props":25799,"children":25800},{"style":329},[25801],{"type":26,"value":25802},"shots_used",{"type":21,"tag":322,"props":25804,"children":25805},{"style":348},[25806],{"type":26,"value":3793},{"type":21,"tag":322,"props":25808,"children":25809},{"style":359},[25810],{"type":26,"value":3798},{"type":21,"tag":322,"props":25812,"children":25813},{"style":329},[25814],{"type":26,"value":3748},{"type":21,"tag":22,"props":25816,"children":25817},{},[25818,25820,25825],{"type":26,"value":25819},"ऑप्टिमाइज़र प्रति मूल्यांकन कम शॉट्स के साथ शुरू करता है और उन्हें केवल तभी बढ़ाता है जब ग्रेडिएंट अनिश्चित होता है। एक सामान्य VQE रन फिक्स्ड-शॉट COBYLA की तुलना में ",{"type":21,"tag":71,"props":25821,"children":25822},{},[25823],{"type":26,"value":25824},"5–10× कम शॉट्स",{"type":26,"value":25826}," का उपयोग करता है।",{"type":21,"tag":59,"props":25828,"children":25830},{"id":25829},"तकनीक-3-पैरामीटर-शिफ्ट-ग्रेडिएंट-कम-मूल्यांकनों-का-उपयोग-करें",[25831],{"type":26,"value":25832},"तकनीक 3: पैरामीटर-शिफ्ट ग्रेडिएंट (कम मूल्यांकनों का उपयोग करें)",{"type":21,"tag":22,"props":25834,"children":25835},{},[25836,25838,25844,25846,25851],{"type":26,"value":25837},"नाइव फ़ाइनाइट-डिफरेंस ग्रेडिएंट आकलन ",{"type":21,"tag":79,"props":25839,"children":25841},{"className":25840},[],[25842],{"type":26,"value":25843},"(f(x+ε) - f(x))\u002Fε",{"type":26,"value":25845}," में छोटे ε पर उच्च प्रसरण और बड़े ε पर बड़ा पूर्वाग्रह (bias) होता है। ",{"type":21,"tag":71,"props":25847,"children":25848},{},[25849],{"type":26,"value":25850},"पैरामीटर-शिफ्ट नियम",{"type":26,"value":25852}," प्रति पैरामीटर केवल 2 सर्किट मूल्यांकनों के साथ सटीक ग्रेडिएंट देता है:",{"type":21,"tag":312,"props":25854,"children":25856},{"className":3636,"code":25855,"language":3638,"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",[25857],{"type":21,"tag":79,"props":25858,"children":25859},{"__ignoreMap":7},[25860,25868,25903,25918,25925,25932,25940,25973,25980,25988,25996,26024,26039],{"type":21,"tag":322,"props":25861,"children":25862},{"class":324,"line":325},[25863],{"type":21,"tag":322,"props":25864,"children":25865},{"style":3898},[25866],{"type":26,"value":25867},"# PennyLane uses parameter-shift by default for gradients\n",{"type":21,"tag":322,"props":25869,"children":25870},{"class":324,"line":335},[25871,25875,25880,25885,25889,25894,25898],{"type":21,"tag":322,"props":25872,"children":25873},{"style":4814},[25874],{"type":26,"value":14721},{"type":21,"tag":322,"props":25876,"children":25877},{"style":329},[25878],{"type":26,"value":25879},"(dev, ",{"type":21,"tag":322,"props":25881,"children":25882},{"style":3713},[25883],{"type":26,"value":25884},"diff_method",{"type":21,"tag":322,"props":25886,"children":25887},{"style":3648},[25888],{"type":26,"value":3688},{"type":21,"tag":322,"props":25890,"children":25891},{"style":359},[25892],{"type":26,"value":25893},"\"parameter-shift\"",{"type":21,"tag":322,"props":25895,"children":25896},{"style":329},[25897],{"type":26,"value":19884},{"type":21,"tag":322,"props":25899,"children":25900},{"style":3898},[25901],{"type":26,"value":25902},"# 2 evals per param\n",{"type":21,"tag":322,"props":25904,"children":25905},{"class":324,"line":344},[25906,25910,25914],{"type":21,"tag":322,"props":25907,"children":25908},{"style":3648},[25909],{"type":26,"value":4811},{"type":21,"tag":322,"props":25911,"children":25912},{"style":4814},[25913],{"type":26,"value":14738},{"type":21,"tag":322,"props":25915,"children":25916},{"style":329},[25917],{"type":26,"value":25599},{"type":21,"tag":322,"props":25919,"children":25920},{"class":324,"line":407},[25921],{"type":21,"tag":322,"props":25922,"children":25923},{"style":348},[25924],{"type":26,"value":25615},{"type":21,"tag":322,"props":25926,"children":25927},{"class":324,"line":431},[25928],{"type":21,"tag":322,"props":25929,"children":25930},{"emptyLinePlaceholder":3672},[25931],{"type":26,"value":3675},{"type":21,"tag":322,"props":25933,"children":25934},{"class":324,"line":453},[25935],{"type":21,"tag":322,"props":25936,"children":25937},{"style":3898},[25938],{"type":26,"value":25939},"# Compare to finite-difference (requires 1 eval per param but biased):\n",{"type":21,"tag":322,"props":25941,"children":25942},{"class":324,"line":474},[25943,25947,25951,25955,25959,25964,25968],{"type":21,"tag":322,"props":25944,"children":25945},{"style":4814},[25946],{"type":26,"value":14721},{"type":21,"tag":322,"props":25948,"children":25949},{"style":329},[25950],{"type":26,"value":25879},{"type":21,"tag":322,"props":25952,"children":25953},{"style":3713},[25954],{"type":26,"value":25884},{"type":21,"tag":322,"props":25956,"children":25957},{"style":3648},[25958],{"type":26,"value":3688},{"type":21,"tag":322,"props":25960,"children":25961},{"style":359},[25962],{"type":26,"value":25963},"\"finite-diff\"",{"type":21,"tag":322,"props":25965,"children":25966},{"style":329},[25967],{"type":26,"value":19884},{"type":21,"tag":322,"props":25969,"children":25970},{"style":3898},[25971],{"type":26,"value":25972},"# 1 eval but approximate\n",{"type":21,"tag":322,"props":25974,"children":25975},{"class":324,"line":496},[25976],{"type":21,"tag":322,"props":25977,"children":25978},{"emptyLinePlaceholder":3672},[25979],{"type":26,"value":3675},{"type":21,"tag":322,"props":25981,"children":25982},{"class":324,"line":16},[25983],{"type":21,"tag":322,"props":25984,"children":25985},{"style":3898},[25986],{"type":26,"value":25987},"# For large circuits, use \"best\" — PennyLane chooses adjoint on simulator,\n",{"type":21,"tag":322,"props":25989,"children":25990},{"class":324,"line":3894},[25991],{"type":21,"tag":322,"props":25992,"children":25993},{"style":3898},[25994],{"type":26,"value":25995},"# parameter-shift on hardware\n",{"type":21,"tag":322,"props":25997,"children":25998},{"class":324,"line":3904},[25999,26003,26007,26011,26015,26020],{"type":21,"tag":322,"props":26000,"children":26001},{"style":4814},[26002],{"type":26,"value":14721},{"type":21,"tag":322,"props":26004,"children":26005},{"style":329},[26006],{"type":26,"value":25879},{"type":21,"tag":322,"props":26008,"children":26009},{"style":3713},[26010],{"type":26,"value":25884},{"type":21,"tag":322,"props":26012,"children":26013},{"style":3648},[26014],{"type":26,"value":3688},{"type":21,"tag":322,"props":26016,"children":26017},{"style":359},[26018],{"type":26,"value":26019},"\"best\"",{"type":21,"tag":322,"props":26021,"children":26022},{"style":329},[26023],{"type":26,"value":3748},{"type":21,"tag":322,"props":26025,"children":26026},{"class":324,"line":1043},[26027,26031,26035],{"type":21,"tag":322,"props":26028,"children":26029},{"style":3648},[26030],{"type":26,"value":4811},{"type":21,"tag":322,"props":26032,"children":26033},{"style":4814},[26034],{"type":26,"value":14738},{"type":21,"tag":322,"props":26036,"children":26037},{"style":329},[26038],{"type":26,"value":25599},{"type":21,"tag":322,"props":26040,"children":26041},{"class":324,"line":3964},[26042],{"type":21,"tag":322,"props":26043,"children":26044},{"style":348},[26045],{"type":26,"value":25615},{"type":21,"tag":22,"props":26047,"children":26048},{},[26049,26054,26056,26062,26064,26069],{"type":21,"tag":79,"props":26050,"children":26052},{"className":26051},[],[26053],{"type":26,"value":5279},{"type":26,"value":26055}," पैरामीटरों के साथ, पैरामीटर-शिफ्ट को प्रति ग्रेडिएंट चरण ",{"type":21,"tag":79,"props":26057,"children":26059},{"className":26058},[],[26060],{"type":26,"value":26061},"2n",{"type":26,"value":26063}," मूल्यांकनों की लागत आती है। जब ",{"type":21,"tag":79,"props":26065,"children":26067},{"className":26066},[],[26068],{"type":26,"value":5279},{"type":26,"value":26070}," बड़ा हो तो ग्रेडिएंट-मुक्त ऑप्टिमाइज़र (COBYLA, SPSA, Nelder-Mead) का उपयोग करें।",{"type":21,"tag":59,"props":26072,"children":26074},{"id":26073},"तकनीक-4-spsa-स्टोकैस्टिक-ग्रेडिएंट-आकलन",[26075],{"type":26,"value":26076},"तकनीक 4: SPSA — स्टोकैस्टिक ग्रेडिएंट आकलन",{"type":21,"tag":22,"props":26078,"children":26079},{},[26080,26082,26087],{"type":26,"value":26081},"सिमल्टेनियस पर्टर्बेशन स्टोकैस्टिक अप्रोक्सिमेशन (SPSA) सभी पैरामीटरों को एक साथ पर्टर्ब करके, पैरामीटर संख्या की परवाह किए बिना, केवल ",{"type":21,"tag":71,"props":26083,"children":26084},{},[26085],{"type":26,"value":26086},"2 सर्किट मूल्यांकनों",{"type":26,"value":26088}," के साथ पूरे ग्रेडिएंट का आकलन करता है:",{"type":21,"tag":312,"props":26090,"children":26092},{"className":3636,"code":26091,"language":3638,"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",[26093],{"type":21,"tag":79,"props":26094,"children":26095},{"__ignoreMap":7},[26096,26116,26123,26131,26139,26207,26214,26222,26230],{"type":21,"tag":322,"props":26097,"children":26098},{"class":324,"line":325},[26099,26103,26107,26111],{"type":21,"tag":322,"props":26100,"children":26101},{"style":3648},[26102],{"type":26,"value":3651},{"type":21,"tag":322,"props":26104,"children":26105},{"style":329},[26106],{"type":26,"value":22919},{"type":21,"tag":322,"props":26108,"children":26109},{"style":3648},[26110],{"type":26,"value":3661},{"type":21,"tag":322,"props":26112,"children":26113},{"style":348},[26114],{"type":26,"value":26115}," SPSA\n",{"type":21,"tag":322,"props":26117,"children":26118},{"class":324,"line":335},[26119],{"type":21,"tag":322,"props":26120,"children":26121},{"emptyLinePlaceholder":3672},[26122],{"type":26,"value":3675},{"type":21,"tag":322,"props":26124,"children":26125},{"class":324,"line":344},[26126],{"type":21,"tag":322,"props":26127,"children":26128},{"style":3898},[26129],{"type":26,"value":26130},"# SPSA: 2 evaluations per step regardless of parameter count\n",{"type":21,"tag":322,"props":26132,"children":26133},{"class":324,"line":407},[26134],{"type":21,"tag":322,"props":26135,"children":26136},{"style":3898},[26137],{"type":26,"value":26138},"# vs parameter-shift: 2n evaluations per step\n",{"type":21,"tag":322,"props":26140,"children":26141},{"class":324,"line":431},[26142,26147,26151,26156,26160,26164,26169,26173,26178,26182,26186,26190,26195,26199,26203],{"type":21,"tag":322,"props":26143,"children":26144},{"style":329},[26145],{"type":26,"value":26146},"optimizer ",{"type":21,"tag":322,"props":26148,"children":26149},{"style":3648},[26150],{"type":26,"value":3688},{"type":21,"tag":322,"props":26152,"children":26153},{"style":329},[26154],{"type":26,"value":26155}," SPSA(",{"type":21,"tag":322,"props":26157,"children":26158},{"style":3713},[26159],{"type":26,"value":617},{"type":21,"tag":322,"props":26161,"children":26162},{"style":3648},[26163],{"type":26,"value":3688},{"type":21,"tag":322,"props":26165,"children":26166},{"style":348},[26167],{"type":26,"value":26168},"300",{"type":21,"tag":322,"props":26170,"children":26171},{"style":329},[26172],{"type":26,"value":367},{"type":21,"tag":322,"props":26174,"children":26175},{"style":3713},[26176],{"type":26,"value":26177},"learning_rate",{"type":21,"tag":322,"props":26179,"children":26180},{"style":3648},[26181],{"type":26,"value":3688},{"type":21,"tag":322,"props":26183,"children":26184},{"style":348},[26185],{"type":26,"value":15321},{"type":21,"tag":322,"props":26187,"children":26188},{"style":329},[26189],{"type":26,"value":367},{"type":21,"tag":322,"props":26191,"children":26192},{"style":3713},[26193],{"type":26,"value":26194},"perturbation",{"type":21,"tag":322,"props":26196,"children":26197},{"style":3648},[26198],{"type":26,"value":3688},{"type":21,"tag":322,"props":26200,"children":26201},{"style":348},[26202],{"type":26,"value":4859},{"type":21,"tag":322,"props":26204,"children":26205},{"style":329},[26206],{"type":26,"value":3748},{"type":21,"tag":322,"props":26208,"children":26209},{"class":324,"line":453},[26210],{"type":21,"tag":322,"props":26211,"children":26212},{"emptyLinePlaceholder":3672},[26213],{"type":26,"value":3675},{"type":21,"tag":322,"props":26215,"children":26216},{"class":324,"line":474},[26217],{"type":21,"tag":322,"props":26218,"children":26219},{"style":3898},[26220],{"type":26,"value":26221},"# For 10 parameters:\n",{"type":21,"tag":322,"props":26223,"children":26224},{"class":324,"line":496},[26225],{"type":21,"tag":322,"props":26226,"children":26227},{"style":3898},[26228],{"type":26,"value":26229},"# - Parameter shift: 2×10 = 20 evals\u002Fstep × 300 steps = 6,000 total\n",{"type":21,"tag":322,"props":26231,"children":26232},{"class":324,"line":16},[26233],{"type":21,"tag":322,"props":26234,"children":26235},{"style":3898},[26236],{"type":26,"value":26237},"# - SPSA: 2 evals\u002Fstep × 300 steps = 600 total  ← 10x reduction\n",{"type":21,"tag":22,"props":26239,"children":26240},{},[26241,26246],{"type":21,"tag":71,"props":26242,"children":26243},{},[26244],{"type":26,"value":26245},"कब सबसे अच्छा:",{"type":26,"value":26247}," जब सर्किट में कई पैरामीटर (> 10) हों। इसका समझौता यह है कि प्रति चरण अभिसरण धीमा होता है, लेकिन कुल शॉट्स कम होते हैं।",{"type":21,"tag":59,"props":26249,"children":26251},{"id":26250},"तकनीक-5-प्रारंभिक-समाप्ति-प्रसरण-थ्रेशोल्डिंग",[26252],{"type":26,"value":26253},"तकनीक 5: प्रारंभिक समाप्ति + प्रसरण थ्रेशोल्डिंग",{"type":21,"tag":22,"props":26255,"children":26256},{},[26257],{"type":26,"value":26258},"जब परिणाम पहले से ही पर्याप्त अच्छा हो तो सर्किट को पूर्णता तक न चलाएं:",{"type":21,"tag":312,"props":26260,"children":26262},{"className":3636,"code":26261,"language":3638,"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",[26263],{"type":21,"tag":79,"props":26264,"children":26265},{"__ignoreMap":7},[26266,26286,26305,26312,26344,26360,26390,26397,26421,26437,26444,26452,26484,26520,26560,26568,26575],{"type":21,"tag":322,"props":26267,"children":26268},{"class":324,"line":325},[26269,26273,26277,26281],{"type":21,"tag":322,"props":26270,"children":26271},{"style":3648},[26272],{"type":26,"value":3651},{"type":21,"tag":322,"props":26274,"children":26275},{"style":329},[26276],{"type":26,"value":25510},{"type":21,"tag":322,"props":26278,"children":26279},{"style":3648},[26280],{"type":26,"value":3661},{"type":21,"tag":322,"props":26282,"children":26283},{"style":329},[26284],{"type":26,"value":26285}," AdamOptimizer\n",{"type":21,"tag":322,"props":26287,"children":26288},{"class":324,"line":335},[26289,26293,26297,26301],{"type":21,"tag":322,"props":26290,"children":26291},{"style":3648},[26292],{"type":26,"value":3661},{"type":21,"tag":322,"props":26294,"children":26295},{"style":329},[26296],{"type":26,"value":4723},{"type":21,"tag":322,"props":26298,"children":26299},{"style":3648},[26300],{"type":26,"value":4728},{"type":21,"tag":322,"props":26302,"children":26303},{"style":329},[26304],{"type":26,"value":4733},{"type":21,"tag":322,"props":26306,"children":26307},{"class":324,"line":344},[26308],{"type":21,"tag":322,"props":26309,"children":26310},{"emptyLinePlaceholder":3672},[26311],{"type":26,"value":3675},{"type":21,"tag":322,"props":26313,"children":26314},{"class":324,"line":407},[26315,26319,26323,26328,26332,26336,26340],{"type":21,"tag":322,"props":26316,"children":26317},{"style":329},[26318],{"type":26,"value":15400},{"type":21,"tag":322,"props":26320,"children":26321},{"style":3648},[26322],{"type":26,"value":3688},{"type":21,"tag":322,"props":26324,"children":26325},{"style":329},[26326],{"type":26,"value":26327}," AdamOptimizer(",{"type":21,"tag":322,"props":26329,"children":26330},{"style":3713},[26331],{"type":26,"value":15414},{"type":21,"tag":322,"props":26333,"children":26334},{"style":3648},[26335],{"type":26,"value":3688},{"type":21,"tag":322,"props":26337,"children":26338},{"style":348},[26339],{"type":26,"value":4845},{"type":21,"tag":322,"props":26341,"children":26342},{"style":329},[26343],{"type":26,"value":3748},{"type":21,"tag":322,"props":26345,"children":26346},{"class":324,"line":431},[26347,26351,26355],{"type":21,"tag":322,"props":26348,"children":26349},{"style":329},[26350],{"type":26,"value":25690},{"type":21,"tag":322,"props":26352,"children":26353},{"style":3648},[26354],{"type":26,"value":3688},{"type":21,"tag":322,"props":26356,"children":26357},{"style":329},[26358],{"type":26,"value":26359}," init_params.copy()\n",{"type":21,"tag":322,"props":26361,"children":26362},{"class":324,"line":453},[26363,26368,26372,26377,26381,26386],{"type":21,"tag":322,"props":26364,"children":26365},{"style":329},[26366],{"type":26,"value":26367},"prev_energy ",{"type":21,"tag":322,"props":26369,"children":26370},{"style":3648},[26371],{"type":26,"value":3688},{"type":21,"tag":322,"props":26373,"children":26374},{"style":348},[26375],{"type":26,"value":26376}," float",{"type":21,"tag":322,"props":26378,"children":26379},{"style":329},[26380],{"type":26,"value":3768},{"type":21,"tag":322,"props":26382,"children":26383},{"style":359},[26384],{"type":26,"value":26385},"'inf'",{"type":21,"tag":322,"props":26387,"children":26388},{"style":329},[26389],{"type":26,"value":3748},{"type":21,"tag":322,"props":26391,"children":26392},{"class":324,"line":474},[26393],{"type":21,"tag":322,"props":26394,"children":26395},{"emptyLinePlaceholder":3672},[26396],{"type":26,"value":3675},{"type":21,"tag":322,"props":26398,"children":26399},{"class":324,"line":496},[26400,26404,26408,26412,26416],{"type":21,"tag":322,"props":26401,"children":26402},{"style":3648},[26403],{"type":26,"value":3941},{"type":21,"tag":322,"props":26405,"children":26406},{"style":329},[26407],{"type":26,"value":15462},{"type":21,"tag":322,"props":26409,"children":26410},{"style":3648},[26411],{"type":26,"value":3951},{"type":21,"tag":322,"props":26413,"children":26414},{"style":348},[26415],{"type":26,"value":3956},{"type":21,"tag":322,"props":26417,"children":26418},{"style":329},[26419],{"type":26,"value":26420},"(max_steps):\n",{"type":21,"tag":322,"props":26422,"children":26423},{"class":324,"line":16},[26424,26429,26433],{"type":21,"tag":322,"props":26425,"children":26426},{"style":329},[26427],{"type":26,"value":26428},"    params, energy ",{"type":21,"tag":322,"props":26430,"children":26431},{"style":3648},[26432],{"type":26,"value":3688},{"type":21,"tag":322,"props":26434,"children":26435},{"style":329},[26436],{"type":26,"value":25757},{"type":21,"tag":322,"props":26438,"children":26439},{"class":324,"line":3894},[26440],{"type":21,"tag":322,"props":26441,"children":26442},{"emptyLinePlaceholder":3672},[26443],{"type":26,"value":3675},{"type":21,"tag":322,"props":26445,"children":26446},{"class":324,"line":3904},[26447],{"type":21,"tag":322,"props":26448,"children":26449},{"style":3898},[26450],{"type":26,"value":26451},"    # Stop when change is below shot-noise floor\n",{"type":21,"tag":322,"props":26453,"children":26454},{"class":324,"line":1043},[26455,26460,26464,26469,26474,26479],{"type":21,"tag":322,"props":26456,"children":26457},{"style":329},[26458],{"type":26,"value":26459},"    variance ",{"type":21,"tag":322,"props":26461,"children":26462},{"style":3648},[26463],{"type":26,"value":3688},{"type":21,"tag":322,"props":26465,"children":26466},{"style":348},[26467],{"type":26,"value":26468}," 1.0",{"type":21,"tag":322,"props":26470,"children":26471},{"style":3648},[26472],{"type":26,"value":26473}," \u002F",{"type":21,"tag":322,"props":26475,"children":26476},{"style":329},[26477],{"type":26,"value":26478}," np.sqrt(shots_per_eval)  ",{"type":21,"tag":322,"props":26480,"children":26481},{"style":3898},[26482],{"type":26,"value":26483},"# shot noise floor\n",{"type":21,"tag":322,"props":26485,"children":26486},{"class":324,"line":3964},[26487,26491,26496,26501,26505,26510,26515],{"type":21,"tag":322,"props":26488,"children":26489},{"style":3648},[26490],{"type":26,"value":12395},{"type":21,"tag":322,"props":26492,"children":26493},{"style":348},[26494],{"type":26,"value":26495}," abs",{"type":21,"tag":322,"props":26497,"children":26498},{"style":329},[26499],{"type":26,"value":26500},"(energy ",{"type":21,"tag":322,"props":26502,"children":26503},{"style":3648},[26504],{"type":26,"value":5298},{"type":21,"tag":322,"props":26506,"children":26507},{"style":329},[26508],{"type":26,"value":26509}," prev_energy) ",{"type":21,"tag":322,"props":26511,"children":26512},{"style":3648},[26513],{"type":26,"value":26514},"\u003C",{"type":21,"tag":322,"props":26516,"children":26517},{"style":329},[26518],{"type":26,"value":26519}," variance:\n",{"type":21,"tag":322,"props":26521,"children":26522},{"class":324,"line":4012},[26523,26527,26531,26535,26540,26544,26548,26552,26556],{"type":21,"tag":322,"props":26524,"children":26525},{"style":348},[26526],{"type":26,"value":13341},{"type":21,"tag":322,"props":26528,"children":26529},{"style":329},[26530],{"type":26,"value":3768},{"type":21,"tag":322,"props":26532,"children":26533},{"style":3648},[26534],{"type":26,"value":3773},{"type":21,"tag":322,"props":26536,"children":26537},{"style":359},[26538],{"type":26,"value":26539},"\"Converged at step ",{"type":21,"tag":322,"props":26541,"children":26542},{"style":348},[26543],{"type":26,"value":3783},{"type":21,"tag":322,"props":26545,"children":26546},{"style":329},[26547],{"type":26,"value":15688},{"type":21,"tag":322,"props":26549,"children":26550},{"style":348},[26551],{"type":26,"value":3793},{"type":21,"tag":322,"props":26553,"children":26554},{"style":359},[26555],{"type":26,"value":3798},{"type":21,"tag":322,"props":26557,"children":26558},{"style":329},[26559],{"type":26,"value":3748},{"type":21,"tag":322,"props":26561,"children":26562},{"class":324,"line":4054},[26563],{"type":21,"tag":322,"props":26564,"children":26565},{"style":3648},[26566],{"type":26,"value":26567},"        break\n",{"type":21,"tag":322,"props":26569,"children":26570},{"class":324,"line":5081},[26571],{"type":21,"tag":322,"props":26572,"children":26573},{"emptyLinePlaceholder":3672},[26574],{"type":26,"value":3675},{"type":21,"tag":322,"props":26576,"children":26577},{"class":324,"line":5100},[26578,26583,26587],{"type":21,"tag":322,"props":26579,"children":26580},{"style":329},[26581],{"type":26,"value":26582},"    prev_energy ",{"type":21,"tag":322,"props":26584,"children":26585},{"style":3648},[26586],{"type":26,"value":3688},{"type":21,"tag":322,"props":26588,"children":26589},{"style":329},[26590],{"type":26,"value":26591}," energy\n",{"type":21,"tag":22,"props":26593,"children":26594},{},[26595],{"type":26,"value":26596},"कई VQE रन जल्दी ही पठार (plateau) पर पहुंच जाते हैं — जारी रखना केवल शोर के उतार-चढ़ाव पर शॉट्स बर्बाद करता है।",{"type":21,"tag":59,"props":26598,"children":26600},{"id":26599},"तकनीक-6-वार्म-स्टार्टिंग",[26601],{"type":26,"value":26602},"तकनीक 6: वार्म स्टार्टिंग",{"type":21,"tag":22,"props":26604,"children":26605},{},[26606],{"type":26,"value":26607},"QAOA या VQE पैरामीटरों को यादृच्छिक के बजाय किसी संबंधित शास्त्रीय समाधान से आरंभ करें:",{"type":21,"tag":312,"props":26609,"children":26611},{"className":3636,"code":26610,"language":3638,"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",[26612],{"type":21,"tag":79,"props":26613,"children":26614},{"__ignoreMap":7},[26615,26623,26644,26651,26668,26685,26692,26700,26708,26737,26766,26773],{"type":21,"tag":322,"props":26616,"children":26617},{"class":324,"line":325},[26618],{"type":21,"tag":322,"props":26619,"children":26620},{"style":3898},[26621],{"type":26,"value":26622},"# For QAOA on Max-Cut: warm start from a greedy classical solution\n",{"type":21,"tag":322,"props":26624,"children":26625},{"class":324,"line":335},[26626,26630,26635,26639],{"type":21,"tag":322,"props":26627,"children":26628},{"style":3648},[26629],{"type":26,"value":3661},{"type":21,"tag":322,"props":26631,"children":26632},{"style":329},[26633],{"type":26,"value":26634}," networkx ",{"type":21,"tag":322,"props":26636,"children":26637},{"style":3648},[26638],{"type":26,"value":4728},{"type":21,"tag":322,"props":26640,"children":26641},{"style":329},[26642],{"type":26,"value":26643}," nx\n",{"type":21,"tag":322,"props":26645,"children":26646},{"class":324,"line":344},[26647],{"type":21,"tag":322,"props":26648,"children":26649},{"emptyLinePlaceholder":3672},[26650],{"type":26,"value":3675},{"type":21,"tag":322,"props":26652,"children":26653},{"class":324,"line":407},[26654,26659,26663],{"type":21,"tag":322,"props":26655,"children":26656},{"style":329},[26657],{"type":26,"value":26658},"G ",{"type":21,"tag":322,"props":26660,"children":26661},{"style":3648},[26662],{"type":26,"value":3688},{"type":21,"tag":322,"props":26664,"children":26665},{"style":329},[26666],{"type":26,"value":26667}," nx.from_edgelist(edges)\n",{"type":21,"tag":322,"props":26669,"children":26670},{"class":324,"line":431},[26671,26676,26680],{"type":21,"tag":322,"props":26672,"children":26673},{"style":329},[26674],{"type":26,"value":26675},"classical_cut ",{"type":21,"tag":322,"props":26677,"children":26678},{"style":3648},[26679],{"type":26,"value":3688},{"type":21,"tag":322,"props":26681,"children":26682},{"style":329},[26683],{"type":26,"value":26684}," nx.algorithms.approximation.one_exchange(G)\n",{"type":21,"tag":322,"props":26686,"children":26687},{"class":324,"line":453},[26688],{"type":21,"tag":322,"props":26689,"children":26690},{"emptyLinePlaceholder":3672},[26691],{"type":26,"value":3675},{"type":21,"tag":322,"props":26693,"children":26694},{"class":324,"line":474},[26695],{"type":21,"tag":322,"props":26696,"children":26697},{"style":3898},[26698],{"type":26,"value":26699},"# Map classical solution to initial QAOA angles\n",{"type":21,"tag":322,"props":26701,"children":26702},{"class":324,"line":496},[26703],{"type":21,"tag":322,"props":26704,"children":26705},{"style":3898},[26706],{"type":26,"value":26707},"# γ₀ ≈ π\u002F4 for a good cut, β₀ ≈ π\u002F8\n",{"type":21,"tag":322,"props":26709,"children":26710},{"class":324,"line":16},[26711,26716,26720,26725,26729,26733],{"type":21,"tag":322,"props":26712,"children":26713},{"style":329},[26714],{"type":26,"value":26715},"init_gamma ",{"type":21,"tag":322,"props":26717,"children":26718},{"style":3648},[26719],{"type":26,"value":3688},{"type":21,"tag":322,"props":26721,"children":26722},{"style":329},[26723],{"type":26,"value":26724}," [np.pi ",{"type":21,"tag":322,"props":26726,"children":26727},{"style":3648},[26728],{"type":26,"value":174},{"type":21,"tag":322,"props":26730,"children":26731},{"style":348},[26732],{"type":26,"value":8790},{"type":21,"tag":322,"props":26734,"children":26735},{"style":329},[26736],{"type":26,"value":7137},{"type":21,"tag":322,"props":26738,"children":26739},{"class":324,"line":3894},[26740,26745,26749,26753,26757,26762],{"type":21,"tag":322,"props":26741,"children":26742},{"style":329},[26743],{"type":26,"value":26744},"init_beta ",{"type":21,"tag":322,"props":26746,"children":26747},{"style":3648},[26748],{"type":26,"value":3688},{"type":21,"tag":322,"props":26750,"children":26751},{"style":329},[26752],{"type":26,"value":26724},{"type":21,"tag":322,"props":26754,"children":26755},{"style":3648},[26756],{"type":26,"value":174},{"type":21,"tag":322,"props":26758,"children":26759},{"style":348},[26760],{"type":26,"value":26761}," 8",{"type":21,"tag":322,"props":26763,"children":26764},{"style":329},[26765],{"type":26,"value":7137},{"type":21,"tag":322,"props":26767,"children":26768},{"class":324,"line":3904},[26769],{"type":21,"tag":322,"props":26770,"children":26771},{"emptyLinePlaceholder":3672},[26772],{"type":26,"value":3675},{"type":21,"tag":322,"props":26774,"children":26775},{"class":324,"line":1043},[26776],{"type":21,"tag":322,"props":26777,"children":26778},{"style":3898},[26779],{"type":26,"value":26780},"# Warm-started QAOA typically converges in 30-50% fewer iterations\n",{"type":21,"tag":59,"props":26782,"children":26784},{"id":26783},"सब-कुछ-मिलाना-एक-व्यावहारिक-vqe-टेम्पलेट",[26785],{"type":26,"value":26786},"सब कुछ मिलाना: एक व्यावहारिक VQE टेम्पलेट",{"type":21,"tag":312,"props":26788,"children":26790},{"className":3636,"code":26789,"language":3638,"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",[26791],{"type":21,"tag":79,"props":26792,"children":26793},{"__ignoreMap":7},[26794,26813,26832,26852,26859,26912,26919,26927,26953,26960,26987,27003,27011,27035,27056,27092,27125,27137,27144,27152,27184,27191,27199,27215,27222,27230,27261,27278,27290,27297,27304],{"type":21,"tag":322,"props":26795,"children":26796},{"class":324,"line":325},[26797,26801,26805,26809],{"type":21,"tag":322,"props":26798,"children":26799},{"style":3648},[26800],{"type":26,"value":3661},{"type":21,"tag":322,"props":26802,"children":26803},{"style":329},[26804],{"type":26,"value":14541},{"type":21,"tag":322,"props":26806,"children":26807},{"style":3648},[26808],{"type":26,"value":4728},{"type":21,"tag":322,"props":26810,"children":26811},{"style":329},[26812],{"type":26,"value":14550},{"type":21,"tag":322,"props":26814,"children":26815},{"class":324,"line":335},[26816,26820,26824,26828],{"type":21,"tag":322,"props":26817,"children":26818},{"style":3648},[26819],{"type":26,"value":3661},{"type":21,"tag":322,"props":26821,"children":26822},{"style":329},[26823],{"type":26,"value":4723},{"type":21,"tag":322,"props":26825,"children":26826},{"style":3648},[26827],{"type":26,"value":4728},{"type":21,"tag":322,"props":26829,"children":26830},{"style":329},[26831],{"type":26,"value":4733},{"type":21,"tag":322,"props":26833,"children":26834},{"class":324,"line":344},[26835,26839,26843,26847],{"type":21,"tag":322,"props":26836,"children":26837},{"style":3648},[26838],{"type":26,"value":3651},{"type":21,"tag":322,"props":26840,"children":26841},{"style":329},[26842],{"type":26,"value":25510},{"type":21,"tag":322,"props":26844,"children":26845},{"style":3648},[26846],{"type":26,"value":3661},{"type":21,"tag":322,"props":26848,"children":26849},{"style":329},[26850],{"type":26,"value":26851}," ShotAdaptiveOptimizer\n",{"type":21,"tag":322,"props":26853,"children":26854},{"class":324,"line":407},[26855],{"type":21,"tag":322,"props":26856,"children":26857},{"emptyLinePlaceholder":3672},[26858],{"type":26,"value":3675},{"type":21,"tag":322,"props":26860,"children":26861},{"class":324,"line":431},[26862,26866,26870,26874,26878,26882,26886,26890,26895,26899,26903,26908],{"type":21,"tag":322,"props":26863,"children":26864},{"style":329},[26865],{"type":26,"value":14674},{"type":21,"tag":322,"props":26867,"children":26868},{"style":3648},[26869],{"type":26,"value":3688},{"type":21,"tag":322,"props":26871,"children":26872},{"style":329},[26873],{"type":26,"value":14683},{"type":21,"tag":322,"props":26875,"children":26876},{"style":359},[26877],{"type":26,"value":14688},{"type":21,"tag":322,"props":26879,"children":26880},{"style":329},[26881],{"type":26,"value":367},{"type":21,"tag":322,"props":26883,"children":26884},{"style":3713},[26885],{"type":26,"value":14697},{"type":21,"tag":322,"props":26887,"children":26888},{"style":3648},[26889],{"type":26,"value":3688},{"type":21,"tag":322,"props":26891,"children":26892},{"style":329},[26893],{"type":26,"value":26894},"n_qubits, ",{"type":21,"tag":322,"props":26896,"children":26897},{"style":3713},[26898],{"type":26,"value":4573},{"type":21,"tag":322,"props":26900,"children":26901},{"style":3648},[26902],{"type":26,"value":3688},{"type":21,"tag":322,"props":26904,"children":26905},{"style":348},[26906],{"type":26,"value":26907},"512",{"type":21,"tag":322,"props":26909,"children":26910},{"style":329},[26911],{"type":26,"value":3748},{"type":21,"tag":322,"props":26913,"children":26914},{"class":324,"line":453},[26915],{"type":21,"tag":322,"props":26916,"children":26917},{"emptyLinePlaceholder":3672},[26918],{"type":26,"value":3675},{"type":21,"tag":322,"props":26920,"children":26921},{"class":324,"line":474},[26922],{"type":21,"tag":322,"props":26923,"children":26924},{"style":3898},[26925],{"type":26,"value":26926},"# 1. Group commuting terms (5-10x reduction in circuit count)\n",{"type":21,"tag":322,"props":26928,"children":26929},{"class":324,"line":496},[26930,26935,26939,26944,26948],{"type":21,"tag":322,"props":26931,"children":26932},{"style":329},[26933],{"type":26,"value":26934},"grouped_H ",{"type":21,"tag":322,"props":26936,"children":26937},{"style":3648},[26938],{"type":26,"value":3688},{"type":21,"tag":322,"props":26940,"children":26941},{"style":329},[26942],{"type":26,"value":26943}," qml.Hamiltonian(",{"type":21,"tag":322,"props":26945,"children":26946},{"style":3648},[26947],{"type":26,"value":6843},{"type":21,"tag":322,"props":26949,"children":26950},{"style":329},[26951],{"type":26,"value":26952},"qml.grouping.group_observables(H))\n",{"type":21,"tag":322,"props":26954,"children":26955},{"class":324,"line":16},[26956],{"type":21,"tag":322,"props":26957,"children":26958},{"emptyLinePlaceholder":3672},[26959],{"type":26,"value":3675},{"type":21,"tag":322,"props":26961,"children":26962},{"class":324,"line":3894},[26963,26967,26971,26975,26979,26983],{"type":21,"tag":322,"props":26964,"children":26965},{"style":4814},[26966],{"type":26,"value":14721},{"type":21,"tag":322,"props":26968,"children":26969},{"style":329},[26970],{"type":26,"value":25879},{"type":21,"tag":322,"props":26972,"children":26973},{"style":3713},[26974],{"type":26,"value":25884},{"type":21,"tag":322,"props":26976,"children":26977},{"style":3648},[26978],{"type":26,"value":3688},{"type":21,"tag":322,"props":26980,"children":26981},{"style":359},[26982],{"type":26,"value":25893},{"type":21,"tag":322,"props":26984,"children":26985},{"style":329},[26986],{"type":26,"value":3748},{"type":21,"tag":322,"props":26988,"children":26989},{"class":324,"line":3904},[26990,26994,26999],{"type":21,"tag":322,"props":26991,"children":26992},{"style":3648},[26993],{"type":26,"value":4811},{"type":21,"tag":322,"props":26995,"children":26996},{"style":4814},[26997],{"type":26,"value":26998}," ansatz",{"type":21,"tag":322,"props":27000,"children":27001},{"style":329},[27002],{"type":26,"value":25599},{"type":21,"tag":322,"props":27004,"children":27005},{"class":324,"line":1043},[27006],{"type":21,"tag":322,"props":27007,"children":27008},{"style":3898},[27009],{"type":26,"value":27010},"    # Hardware-efficient ansatz\n",{"type":21,"tag":322,"props":27012,"children":27013},{"class":324,"line":3964},[27014,27018,27022,27026,27030],{"type":21,"tag":322,"props":27015,"children":27016},{"style":3648},[27017],{"type":26,"value":5190},{"type":21,"tag":322,"props":27019,"children":27020},{"style":329},[27021],{"type":26,"value":5195},{"type":21,"tag":322,"props":27023,"children":27024},{"style":3648},[27025],{"type":26,"value":3951},{"type":21,"tag":322,"props":27027,"children":27028},{"style":348},[27029],{"type":26,"value":3956},{"type":21,"tag":322,"props":27031,"children":27032},{"style":329},[27033],{"type":26,"value":27034},"(n_qubits):\n",{"type":21,"tag":322,"props":27036,"children":27037},{"class":324,"line":4012},[27038,27043,27047,27051],{"type":21,"tag":322,"props":27039,"children":27040},{"style":329},[27041],{"type":26,"value":27042},"        qml.RY(params[i], ",{"type":21,"tag":322,"props":27044,"children":27045},{"style":3713},[27046],{"type":26,"value":14697},{"type":21,"tag":322,"props":27048,"children":27049},{"style":3648},[27050],{"type":26,"value":3688},{"type":21,"tag":322,"props":27052,"children":27053},{"style":329},[27054],{"type":26,"value":27055},"i)\n",{"type":21,"tag":322,"props":27057,"children":27058},{"class":324,"line":4054},[27059,27063,27067,27071,27075,27080,27084,27088],{"type":21,"tag":322,"props":27060,"children":27061},{"style":3648},[27062],{"type":26,"value":5190},{"type":21,"tag":322,"props":27064,"children":27065},{"style":329},[27066],{"type":26,"value":5195},{"type":21,"tag":322,"props":27068,"children":27069},{"style":3648},[27070],{"type":26,"value":3951},{"type":21,"tag":322,"props":27072,"children":27073},{"style":348},[27074],{"type":26,"value":3956},{"type":21,"tag":322,"props":27076,"children":27077},{"style":329},[27078],{"type":26,"value":27079},"(n_qubits ",{"type":21,"tag":322,"props":27081,"children":27082},{"style":3648},[27083],{"type":26,"value":5298},{"type":21,"tag":322,"props":27085,"children":27086},{"style":348},[27087],{"type":26,"value":6549},{"type":21,"tag":322,"props":27089,"children":27090},{"style":329},[27091],{"type":26,"value":4864},{"type":21,"tag":322,"props":27093,"children":27094},{"class":324,"line":5081},[27095,27100,27104,27108,27113,27117,27121],{"type":21,"tag":322,"props":27096,"children":27097},{"style":329},[27098],{"type":26,"value":27099},"        qml.CNOT(",{"type":21,"tag":322,"props":27101,"children":27102},{"style":3713},[27103],{"type":26,"value":14697},{"type":21,"tag":322,"props":27105,"children":27106},{"style":3648},[27107],{"type":26,"value":3688},{"type":21,"tag":322,"props":27109,"children":27110},{"style":329},[27111],{"type":26,"value":27112},"[i, i ",{"type":21,"tag":322,"props":27114,"children":27115},{"style":3648},[27116],{"type":26,"value":6978},{"type":21,"tag":322,"props":27118,"children":27119},{"style":348},[27120],{"type":26,"value":6549},{"type":21,"tag":322,"props":27122,"children":27123},{"style":329},[27124],{"type":26,"value":4009},{"type":21,"tag":322,"props":27126,"children":27127},{"class":324,"line":5100},[27128,27132],{"type":21,"tag":322,"props":27129,"children":27130},{"style":3648},[27131],{"type":26,"value":5036},{"type":21,"tag":322,"props":27133,"children":27134},{"style":329},[27135],{"type":26,"value":27136}," qml.expval(grouped_H)\n",{"type":21,"tag":322,"props":27138,"children":27139},{"class":324,"line":5108},[27140],{"type":21,"tag":322,"props":27141,"children":27142},{"emptyLinePlaceholder":3672},[27143],{"type":26,"value":3675},{"type":21,"tag":322,"props":27145,"children":27146},{"class":324,"line":5139},[27147],{"type":21,"tag":322,"props":27148,"children":27149},{"style":3898},[27150],{"type":26,"value":27151},"# 2. Use shot-adaptive optimizer\n",{"type":21,"tag":322,"props":27153,"children":27154},{"class":324,"line":5184},[27155,27159,27163,27167,27171,27175,27180],{"type":21,"tag":322,"props":27156,"children":27157},{"style":329},[27158],{"type":26,"value":15400},{"type":21,"tag":322,"props":27160,"children":27161},{"style":3648},[27162],{"type":26,"value":3688},{"type":21,"tag":322,"props":27164,"children":27165},{"style":329},[27166],{"type":26,"value":25658},{"type":21,"tag":322,"props":27168,"children":27169},{"style":3713},[27170],{"type":26,"value":25663},{"type":21,"tag":322,"props":27172,"children":27173},{"style":3648},[27174],{"type":26,"value":3688},{"type":21,"tag":322,"props":27176,"children":27177},{"style":348},[27178],{"type":26,"value":27179},"50",{"type":21,"tag":322,"props":27181,"children":27182},{"style":329},[27183],{"type":26,"value":3748},{"type":21,"tag":322,"props":27185,"children":27186},{"class":324,"line":5223},[27187],{"type":21,"tag":322,"props":27188,"children":27189},{"emptyLinePlaceholder":3672},[27190],{"type":26,"value":3675},{"type":21,"tag":322,"props":27192,"children":27193},{"class":324,"line":5241},[27194],{"type":21,"tag":322,"props":27195,"children":27196},{"style":3898},[27197],{"type":26,"value":27198},"# 3. Warm start\n",{"type":21,"tag":322,"props":27200,"children":27201},{"class":324,"line":5315},[27202,27206,27210],{"type":21,"tag":322,"props":27203,"children":27204},{"style":329},[27205],{"type":26,"value":25690},{"type":21,"tag":322,"props":27207,"children":27208},{"style":3648},[27209],{"type":26,"value":3688},{"type":21,"tag":322,"props":27211,"children":27212},{"style":329},[27213],{"type":26,"value":27214}," warm_start_params(H)\n",{"type":21,"tag":322,"props":27216,"children":27217},{"class":324,"line":5343},[27218],{"type":21,"tag":322,"props":27219,"children":27220},{"emptyLinePlaceholder":3672},[27221],{"type":26,"value":3675},{"type":21,"tag":322,"props":27223,"children":27224},{"class":324,"line":5372},[27225],{"type":21,"tag":322,"props":27226,"children":27227},{"style":3898},[27228],{"type":26,"value":27229},"# 4. Run with early stopping\n",{"type":21,"tag":322,"props":27231,"children":27232},{"class":324,"line":5381},[27233,27237,27241,27245,27249,27253,27257],{"type":21,"tag":322,"props":27234,"children":27235},{"style":3648},[27236],{"type":26,"value":3941},{"type":21,"tag":322,"props":27238,"children":27239},{"style":329},[27240],{"type":26,"value":15462},{"type":21,"tag":322,"props":27242,"children":27243},{"style":3648},[27244],{"type":26,"value":3951},{"type":21,"tag":322,"props":27246,"children":27247},{"style":348},[27248],{"type":26,"value":3956},{"type":21,"tag":322,"props":27250,"children":27251},{"style":329},[27252],{"type":26,"value":3768},{"type":21,"tag":322,"props":27254,"children":27255},{"style":348},[27256],{"type":26,"value":26168},{"type":21,"tag":322,"props":27258,"children":27259},{"style":329},[27260],{"type":26,"value":4864},{"type":21,"tag":322,"props":27262,"children":27263},{"class":324,"line":5409},[27264,27269,27273],{"type":21,"tag":322,"props":27265,"children":27266},{"style":329},[27267],{"type":26,"value":27268},"    params, energy, shots ",{"type":21,"tag":322,"props":27270,"children":27271},{"style":3648},[27272],{"type":26,"value":3688},{"type":21,"tag":322,"props":27274,"children":27275},{"style":329},[27276],{"type":26,"value":27277}," opt.step_and_cost(ansatz, params)\n",{"type":21,"tag":322,"props":27279,"children":27280},{"class":324,"line":5440},[27281,27285],{"type":21,"tag":322,"props":27282,"children":27283},{"style":3648},[27284],{"type":26,"value":12395},{"type":21,"tag":322,"props":27286,"children":27287},{"style":329},[27288],{"type":26,"value":27289}," check_convergence(energy, shots):\n",{"type":21,"tag":322,"props":27291,"children":27292},{"class":324,"line":5462},[27293],{"type":21,"tag":322,"props":27294,"children":27295},{"style":3648},[27296],{"type":26,"value":26567},{"type":21,"tag":322,"props":27298,"children":27299},{"class":324,"line":5508},[27300],{"type":21,"tag":322,"props":27301,"children":27302},{"emptyLinePlaceholder":3672},[27303],{"type":26,"value":3675},{"type":21,"tag":322,"props":27305,"children":27306},{"class":324,"line":5521},[27307,27311,27315,27319,27324,27328,27333,27337,27341,27345],{"type":21,"tag":322,"props":27308,"children":27309},{"style":348},[27310],{"type":26,"value":3763},{"type":21,"tag":322,"props":27312,"children":27313},{"style":329},[27314],{"type":26,"value":3768},{"type":21,"tag":322,"props":27316,"children":27317},{"style":3648},[27318],{"type":26,"value":3773},{"type":21,"tag":322,"props":27320,"children":27321},{"style":359},[27322],{"type":26,"value":27323},"\"Ground state energy: ",{"type":21,"tag":322,"props":27325,"children":27326},{"style":348},[27327],{"type":26,"value":3783},{"type":21,"tag":322,"props":27329,"children":27330},{"style":329},[27331],{"type":26,"value":27332},"energy",{"type":21,"tag":322,"props":27334,"children":27335},{"style":3648},[27336],{"type":26,"value":4095},{"type":21,"tag":322,"props":27338,"children":27339},{"style":348},[27340],{"type":26,"value":3793},{"type":21,"tag":322,"props":27342,"children":27343},{"style":359},[27344],{"type":26,"value":19879},{"type":21,"tag":322,"props":27346,"children":27347},{"style":329},[27348],{"type":26,"value":3748},{"type":21,"tag":59,"props":27350,"children":27352},{"id":27351},"त्वरित-संदर्भ-विधि-के-अनुसार-शॉट-बजट",[27353],{"type":26,"value":27354},"त्वरित संदर्भ: विधि के अनुसार शॉट बजट",{"type":21,"tag":4516,"props":27356,"children":27357},{},[27358,27378],{"type":21,"tag":4520,"props":27359,"children":27360},{},[27361],{"type":21,"tag":4524,"props":27362,"children":27363},{},[27364,27369,27374],{"type":21,"tag":4528,"props":27365,"children":27366},{},[27367],{"type":26,"value":27368},"विधि",{"type":21,"tag":4528,"props":27370,"children":27371},{},[27372],{"type":26,"value":27373},"शॉट्स\u002Fचरण",{"type":21,"tag":4528,"props":27375,"children":27376},{},[27377],{"type":26,"value":21241},{"type":21,"tag":4542,"props":27379,"children":27380},{},[27381,27403,27425,27447,27465],{"type":21,"tag":4524,"props":27382,"children":27383},{},[27384,27389,27398],{"type":21,"tag":4549,"props":27385,"children":27386},{},[27387],{"type":26,"value":27388},"COBYLA + fixed shots",{"type":21,"tag":4549,"props":27390,"children":27391},{},[27392],{"type":21,"tag":79,"props":27393,"children":27395},{"className":27394},[],[27396],{"type":26,"value":27397},"n_terms × shots",{"type":21,"tag":4549,"props":27399,"children":27400},{},[27401],{"type":26,"value":27402},"छोटी पैरामीटर संख्या",{"type":21,"tag":4524,"props":27404,"children":27405},{},[27406,27411,27420],{"type":21,"tag":4549,"props":27407,"children":27408},{},[27409],{"type":26,"value":27410},"Parameter-shift + Adam",{"type":21,"tag":4549,"props":27412,"children":27413},{},[27414],{"type":21,"tag":79,"props":27415,"children":27417},{"className":27416},[],[27418],{"type":26,"value":27419},"2n_params × shots",{"type":21,"tag":4549,"props":27421,"children":27422},{},[27423],{"type":26,"value":27424},"अवकलनीय (differentiable) सर्किट",{"type":21,"tag":4524,"props":27426,"children":27427},{},[27428,27433,27442],{"type":21,"tag":4549,"props":27429,"children":27430},{},[27431],{"type":26,"value":27432},"SPSA",{"type":21,"tag":4549,"props":27434,"children":27435},{},[27436],{"type":21,"tag":79,"props":27437,"children":27439},{"className":27438},[],[27440],{"type":26,"value":27441},"2 × shots",{"type":21,"tag":4549,"props":27443,"children":27444},{},[27445],{"type":26,"value":27446},"बड़ी पैरामीटर संख्या",{"type":21,"tag":4524,"props":27448,"children":27449},{},[27450,27455,27460],{"type":21,"tag":4549,"props":27451,"children":27452},{},[27453],{"type":26,"value":27454},"ShotAdaptiveOptimizer",{"type":21,"tag":4549,"props":27456,"children":27457},{},[27458],{"type":26,"value":27459},"अनुकूली",{"type":21,"tag":4549,"props":27461,"children":27462},{},[27463],{"type":26,"value":27464},"सामान्य VQE",{"type":21,"tag":4524,"props":27466,"children":27467},{},[27468,27473,27478],{"type":21,"tag":4549,"props":27469,"children":27470},{},[27471],{"type":26,"value":27472},"Grouped Paulis",{"type":21,"tag":4549,"props":27474,"children":27475},{},[27476],{"type":26,"value":27477},"÷5–15×",{"type":21,"tag":4549,"props":27479,"children":27480},{},[27481],{"type":26,"value":27482},"हमेशा पहले लागू करें",{"type":21,"tag":22,"props":27484,"children":27485},{},[27486],{"type":26,"value":27487},"मेज़रमेंट ग्रुपिंग पहले लागू करें — यह सबसे बड़ी एकल बचत है और इसके लिए आपके ऑप्टिमाइज़र या सर्किट में किसी बदलाव की आवश्यकता नहीं होती।",{"type":21,"tag":22,"props":27489,"children":27490},{},[27491,27496,27497,27502,27503,27508,27509],{"type":21,"tag":71,"props":27492,"children":27493},{},[27494],{"type":26,"value":27495},"संबंधित:",{"type":26,"value":1911},{"type":21,"tag":29,"props":27498,"children":27499},{"href":898},[27500],{"type":26,"value":27501},"VQE with PennyLane",{"type":26,"value":7562},{"type":21,"tag":29,"props":27504,"children":27505},{"href":809},[27506],{"type":26,"value":27507},"QPU access guide",{"type":26,"value":7562},{"type":21,"tag":29,"props":27510,"children":27511},{"href":19451},[27512],{"type":26,"value":19454},{"type":21,"tag":703,"props":27514,"children":27515},{},[27516],{"type":26,"value":707},{"title":7,"searchDepth":335,"depth":335,"links":27518},[27519,27520,27521,27522,27523,27524,27525,27526,27527],{"id":25003,"depth":335,"text":25006},{"id":25148,"depth":335,"text":25151},{"id":25476,"depth":335,"text":25479},{"id":25829,"depth":335,"text":25832},{"id":26073,"depth":335,"text":26076},{"id":26250,"depth":335,"text":26253},{"id":26599,"depth":335,"text":26602},{"id":26783,"depth":335,"text":26786},{"id":27351,"depth":335,"text":27354},"content:hi:blog:reduce-shot-count.md","hi\u002Fblog\u002Freduce-shot-count.md","hi\u002Fblog\u002Freduce-shot-count",{"_path":27532,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":27533,"description":27534,"date":27535,"updatedDate":10,"author":11,"tags":27536,"readingTime":496,"body":27538,"_type":715,"_id":29343,"_source":717,"_file":29344,"_stem":29345,"_extension":720},"\u002Fhi\u002Fblog\u002Fibm-quantum-free-tier-2026","IBM Quantum फ्री टियर: 2026 में आप जो कुछ एक्सेस कर सकते हैं","IBM Quantum के मुफ्त Open Plan में क्या शामिल है, क्यू टाइम कैसे काम करता है, और अपने मुफ्त QPU एक्सेस का अधिकतम लाभ कैसे उठाएं, इसका विस्तृत विवरण।","2026-02-20",[27537,730,1972],"IBM",{"type":18,"children":27539,"toc":29329},[27540,27545,27551,27563,27622,27627,27633,27661,27681,27701,27707,27712,27817,27822,28064,28070,28076,28086,28092,28119,28125,28130,28241,28254,28260,28904,28910,28915,28941,28949,28980,28986,28991,29070,29075,29081,29086,29315,29325],{"type":21,"tag":22,"props":27541,"children":27542},{},[27543],{"type":26,"value":27544},"IBM Quantum के पास क्वांटम कंप्यूटिंग उद्योग में सबसे सुलभ फ्री टियर है। एक मुफ्त IBM ID के साथ, आपको 127 क्यूबिट तक वाले वास्तविक क्वांटम प्रोसेसर तक पहुंच मिलती है, कोई शुल्क नहीं, कोई क्रेडिट कार्ड नहीं, कोई आवेदन आवश्यक नहीं। यहां बताया गया है कि व्यवहार में इसका वास्तव में क्या मतलब है।",{"type":21,"tag":59,"props":27546,"children":27548},{"id":27547},"फ्री-टियर-में-क्या-शामिल-है",[27549],{"type":26,"value":27550},"फ्री टियर में क्या शामिल है",{"type":21,"tag":22,"props":27552,"children":27553},{},[27554,27556,27561],{"type":26,"value":27555},"IBM Quantum ",{"type":21,"tag":71,"props":27557,"children":27558},{},[27559],{"type":26,"value":27560},"Open Plan",{"type":26,"value":27562}," आपको देता है:",{"type":21,"tag":3566,"props":27564,"children":27565},{},[27566,27576,27588,27600,27610],{"type":21,"tag":3570,"props":27567,"children":27568},{},[27569,27571],{"type":26,"value":27570},"सभी सार्वजनिक रूप से उपलब्ध क्वांटम सिस्टम तक ",{"type":21,"tag":71,"props":27572,"children":27573},{},[27574],{"type":26,"value":27575},"असीमित पहुंच",{"type":21,"tag":3570,"props":27577,"children":27578},{},[27579,27581,27586],{"type":26,"value":27580},"प्रति माह ",{"type":21,"tag":71,"props":27582,"children":27583},{},[27584],{"type":26,"value":27585},"10 मिनट का क्वांटम समय",{"type":26,"value":27587}," (वह समय जब आपके सर्किट सक्रिय रूप से QPU पर चल रहे होते हैं)",{"type":21,"tag":3570,"props":27589,"children":27590},{},[27591,27593,27598],{"type":26,"value":27592},"बिना किसी समय सीमा के ",{"type":21,"tag":71,"props":27594,"children":27595},{},[27596],{"type":26,"value":27597},"IBM सिमुलेटर तक पहुंच",{"type":26,"value":27599}," (statevector, QASM, matrix product state)",{"type":21,"tag":3570,"props":27601,"children":27602},{},[27603,27608],{"type":21,"tag":71,"props":27604,"children":27605},{},[27606],{"type":26,"value":27607},"Qiskit Runtime",{"type":26,"value":27609},": सर्किट के लिए आधुनिक IBM निष्पादन वातावरण",{"type":21,"tag":3570,"props":27611,"children":27612},{},[27613,27615,27620],{"type":26,"value":27614},"ट्यूटोरियल और कोर्स के साथ ",{"type":21,"tag":71,"props":27616,"children":27617},{},[27618],{"type":26,"value":27619},"IBM Quantum Learning",{"type":26,"value":27621}," प्लेटफ़ॉर्म",{"type":21,"tag":22,"props":27623,"children":27624},{},[27625],{"type":26,"value":27626},"प्रति माह 10 मिनट की सीमा प्रतिबंधात्मक लगती है, लेकिन व्यवहार में अधिकांश शोध सर्किट वास्तविक QPU समय के मिलीसेकंड में चलते हैं। क्वांटम एल्गोरिदम के साथ प्रयोग करने वाले व्यक्तिगत डेवलपर्स द्वारा यह सीमा शायद ही कभी पहुंची जाती है।",{"type":21,"tag":59,"props":27628,"children":27630},{"id":27629},"अगस्त-2026-अपडेट-heron-r2-और-बोनस-कंप्यूट-समय",[27631],{"type":26,"value":27632},"अगस्त 2026 अपडेट: Heron r2 और बोनस कंप्यूट समय",{"type":21,"tag":22,"props":27634,"children":27635},{},[27636,27638,27644,27646,27652,27654,27659],{"type":26,"value":27637},"IBM ने मार्च 2026 में अपना बेहतर प्रदर्शन वाला Heron r2 प्रोसेसर (",{"type":21,"tag":79,"props":27639,"children":27641},{"className":27640},[],[27642],{"type":26,"value":27643},"ibm_kingston",{"type":26,"value":27645},") Open Plan में जोड़ा, जिससे फ्री-टियर उपयोगकर्ताओं को मूल Heron r1 सिस्टम्स की तुलना में काफी बेहतर टू-क्यूबिट गेट फिडेलिटी मिलती है। अगर आपने काफी समय से कुछ नहीं चलाया है, तो यह जांचना उचित होगा कि आपकी ",{"type":21,"tag":79,"props":27647,"children":27649},{"className":27648},[],[27650],{"type":26,"value":27651},"service.backends()",{"type":26,"value":27653}," सूची में ",{"type":21,"tag":79,"props":27655,"children":27657},{"className":27656},[],[27658],{"type":26,"value":27643},{"type":26,"value":27660}," दिखता है या नहीं।",{"type":21,"tag":22,"props":27662,"children":27663},{},[27664,27666,27671,27673,27680],{"type":26,"value":27665},"IBM ने सक्रिय उपयोगकर्ताओं के लिए एक बार की प्रमोशन भी चलाई: जिन उपयोगकर्ताओं ने किसी भी 12-महीने की अवधि में कम से कम 20 मिनट QPU समय दर्ज किया था, वे अगले 12 महीनों के लिए ",{"type":21,"tag":71,"props":27667,"children":27668},{},[27669],{"type":26,"value":27670},"180 मिनट",{"type":26,"value":27672}," का बोनस (मानक मासिक आवंटन का अठारह गुना) चुन सकते थे। यह ऑफ़र एक विशिष्ट नामांकन विंडो से जुड़ा था, न कि Open Plan के प्रति माह 10 मिनट के आधार में स्थायी बदलाव, इसलिए यह न मान लें कि यह अभी भी लागू है। अपने खाते पर वर्तमान में क्या लागू है, यह जानने के लिए ",{"type":21,"tag":29,"props":27674,"children":27677},{"href":27675,"rel":27676},"https:\u002F\u002Fquantum.cloud.ibm.com\u002Fdocs\u002Fen\u002Fguides\u002Fplans-overview",[44],[27678],{"type":26,"value":27679},"Open Plan पेज",{"type":26,"value":4162},{"type":21,"tag":22,"props":27682,"children":27683},{},[27684,27686,27692,27694,27699],{"type":26,"value":27685},"सिस्टम की सूची दूसरी दिशा में भी बदलती रहती है। IBM ने अप्रैल 2026 की शुरुआत में ",{"type":21,"tag":79,"props":27687,"children":27689},{"className":27688},[],[27690],{"type":26,"value":27691},"ibm_torino",{"type":26,"value":27693}," को रिटायर कर दिया, जो Open Plan के संचालन का एक सामान्य हिस्सा है: नए हार्डवेयर आने पर सिस्टम जोड़े जाते हैं, और पुराने सिस्टम अपनी उपयोगी अवधि पूरी होने पर हटा दिए जाते हैं। यही कारण है कि नीचे दिया गया ",{"type":21,"tag":79,"props":27695,"children":27697},{"className":27696},[],[27698],{"type":26,"value":27651},{"type":26,"value":27700}," स्निपेट किसी भी स्थिर तालिका से ज़्यादा मायने रखता है। इस पोस्ट की सूची को मौजूदा स्थिति के बजाय एक स्नैपशॉट मानें।",{"type":21,"tag":59,"props":27702,"children":27704},{"id":27703},"उपलब्ध-मुफ्त-qpu",[27705],{"type":26,"value":27706},"उपलब्ध मुफ्त QPU",{"type":21,"tag":22,"props":27708,"children":27709},{},[27710],{"type":26,"value":27711},"2026 के मध्य तक, IBM के Open Plan में इन जैसे सिस्टम्स तक पहुंच शामिल है:",{"type":21,"tag":4516,"props":27713,"children":27714},{},[27715,27741],{"type":21,"tag":4520,"props":27716,"children":27717},{},[27718],{"type":21,"tag":4524,"props":27719,"children":27720},{},[27721,27726,27731,27736],{"type":21,"tag":4528,"props":27722,"children":27723},{},[27724],{"type":26,"value":27725},"सिस्टम",{"type":21,"tag":4528,"props":27727,"children":27728},{},[27729],{"type":26,"value":27730},"क्यूबिट्स",{"type":21,"tag":4528,"props":27732,"children":27733},{},[27734],{"type":26,"value":27735},"तकनीक",{"type":21,"tag":4528,"props":27737,"children":27738},{},[27739],{"type":26,"value":27740},"सामान्य कतार",{"type":21,"tag":4542,"props":27742,"children":27743},{},[27744,27773,27795],{"type":21,"tag":4524,"props":27745,"children":27746},{},[27747,27758,27763,27768],{"type":21,"tag":4549,"props":27748,"children":27749},{},[27750,27752,27757],{"type":26,"value":27751},"IBM Heron r2 (",{"type":21,"tag":79,"props":27753,"children":27755},{"className":27754},[],[27756],{"type":26,"value":27643},{"type":26,"value":17720},{"type":21,"tag":4549,"props":27759,"children":27760},{},[27761],{"type":26,"value":27762},"156",{"type":21,"tag":4549,"props":27764,"children":27765},{},[27766],{"type":26,"value":27767},"Heron प्रोसेसर, उच्च फिडेलिटी",{"type":21,"tag":4549,"props":27769,"children":27770},{},[27771],{"type":26,"value":27772},"30–120 मिनट",{"type":21,"tag":4524,"props":27774,"children":27775},{},[27776,27781,27786,27790],{"type":21,"tag":4549,"props":27777,"children":27778},{},[27779],{"type":26,"value":27780},"IBM Eagle",{"type":21,"tag":4549,"props":27782,"children":27783},{},[27784],{"type":26,"value":27785},"127",{"type":21,"tag":4549,"props":27787,"children":27788},{},[27789],{"type":26,"value":9597},{"type":21,"tag":4549,"props":27791,"children":27792},{},[27793],{"type":26,"value":27794},"10–60 मिनट",{"type":21,"tag":4524,"props":27796,"children":27797},{},[27798,27803,27808,27813],{"type":21,"tag":4549,"props":27799,"children":27800},{},[27801],{"type":26,"value":27802},"IBM Heron r1",{"type":21,"tag":4549,"props":27804,"children":27805},{},[27806],{"type":26,"value":27807},"133",{"type":21,"tag":4549,"props":27809,"children":27810},{},[27811],{"type":26,"value":27812},"Heron processor",{"type":21,"tag":4549,"props":27814,"children":27815},{},[27816],{"type":26,"value":27772},{"type":21,"tag":22,"props":27818,"children":27819},{},[27820],{"type":26,"value":27821},"IBM नियमित रूप से सिस्टम रिटायर और जोड़ता रहता है। इस तालिका को एक स्नैपशॉट मानें, गारंटी नहीं। मौजूदा सूची देखने के लिए Qiskit Runtime सेवा का उपयोग करें:",{"type":21,"tag":312,"props":27823,"children":27825},{"className":3636,"code":27824,"language":3638,"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",[27826],{"type":21,"tag":79,"props":27827,"children":27828},{"__ignoreMap":7},[27829,27848,27855,27888,27905,27925,27945,27962,27969,27989],{"type":21,"tag":322,"props":27830,"children":27831},{"class":324,"line":325},[27832,27836,27840,27844],{"type":21,"tag":322,"props":27833,"children":27834},{"style":3648},[27835],{"type":26,"value":3651},{"type":21,"tag":322,"props":27837,"children":27838},{"style":329},[27839],{"type":26,"value":3656},{"type":21,"tag":322,"props":27841,"children":27842},{"style":3648},[27843],{"type":26,"value":3661},{"type":21,"tag":322,"props":27845,"children":27846},{"style":329},[27847],{"type":26,"value":3666},{"type":21,"tag":322,"props":27849,"children":27850},{"class":324,"line":335},[27851],{"type":21,"tag":322,"props":27852,"children":27853},{"emptyLinePlaceholder":3672},[27854],{"type":26,"value":3675},{"type":21,"tag":322,"props":27856,"children":27857},{"class":324,"line":344},[27858,27862,27866,27871,27876,27880,27884],{"type":21,"tag":322,"props":27859,"children":27860},{"style":329},[27861],{"type":26,"value":3683},{"type":21,"tag":322,"props":27863,"children":27864},{"style":3648},[27865],{"type":26,"value":3688},{"type":21,"tag":322,"props":27867,"children":27868},{"style":329},[27869],{"type":26,"value":27870}," QiskitRuntimeService(",{"type":21,"tag":322,"props":27872,"children":27873},{"style":3713},[27874],{"type":26,"value":27875},"channel",{"type":21,"tag":322,"props":27877,"children":27878},{"style":3648},[27879],{"type":26,"value":3688},{"type":21,"tag":322,"props":27881,"children":27882},{"style":359},[27883],{"type":26,"value":21175},{"type":21,"tag":322,"props":27885,"children":27886},{"style":329},[27887],{"type":26,"value":3748},{"type":21,"tag":322,"props":27889,"children":27890},{"class":324,"line":407},[27891,27896,27900],{"type":21,"tag":322,"props":27892,"children":27893},{"style":329},[27894],{"type":26,"value":27895},"backends ",{"type":21,"tag":322,"props":27897,"children":27898},{"style":3648},[27899],{"type":26,"value":3688},{"type":21,"tag":322,"props":27901,"children":27902},{"style":329},[27903],{"type":26,"value":27904}," service.backends(\n",{"type":21,"tag":322,"props":27906,"children":27907},{"class":324,"line":431},[27908,27913,27917,27921],{"type":21,"tag":322,"props":27909,"children":27910},{"style":3713},[27911],{"type":26,"value":27912},"    operational",{"type":21,"tag":322,"props":27914,"children":27915},{"style":3648},[27916],{"type":26,"value":3688},{"type":21,"tag":322,"props":27918,"children":27919},{"style":348},[27920],{"type":26,"value":3725},{"type":21,"tag":322,"props":27922,"children":27923},{"style":329},[27924],{"type":26,"value":428},{"type":21,"tag":322,"props":27926,"children":27927},{"class":324,"line":453},[27928,27933,27937,27941],{"type":21,"tag":322,"props":27929,"children":27930},{"style":3713},[27931],{"type":26,"value":27932},"    simulator",{"type":21,"tag":322,"props":27934,"children":27935},{"style":3648},[27936],{"type":26,"value":3688},{"type":21,"tag":322,"props":27938,"children":27939},{"style":348},[27940],{"type":26,"value":3743},{"type":21,"tag":322,"props":27942,"children":27943},{"style":329},[27944],{"type":26,"value":428},{"type":21,"tag":322,"props":27946,"children":27947},{"class":324,"line":474},[27948,27953,27957],{"type":21,"tag":322,"props":27949,"children":27950},{"style":3713},[27951],{"type":26,"value":27952},"    min_num_qubits",{"type":21,"tag":322,"props":27954,"children":27955},{"style":3648},[27956],{"type":26,"value":3688},{"type":21,"tag":322,"props":27958,"children":27959},{"style":348},[27960],{"type":26,"value":27961},"1\n",{"type":21,"tag":322,"props":27963,"children":27964},{"class":324,"line":496},[27965],{"type":21,"tag":322,"props":27966,"children":27967},{"style":329},[27968],{"type":26,"value":3748},{"type":21,"tag":322,"props":27970,"children":27971},{"class":324,"line":16},[27972,27976,27980,27984],{"type":21,"tag":322,"props":27973,"children":27974},{"style":3648},[27975],{"type":26,"value":3941},{"type":21,"tag":322,"props":27977,"children":27978},{"style":329},[27979],{"type":26,"value":5354},{"type":21,"tag":322,"props":27981,"children":27982},{"style":3648},[27983],{"type":26,"value":3951},{"type":21,"tag":322,"props":27985,"children":27986},{"style":329},[27987],{"type":26,"value":27988}," backends:\n",{"type":21,"tag":322,"props":27990,"children":27991},{"class":324,"line":3894},[27992,27996,28000,28004,28008,28012,28017,28021,28025,28029,28034,28038,28043,28047,28052,28056,28060],{"type":21,"tag":322,"props":27993,"children":27994},{"style":348},[27995],{"type":26,"value":17672},{"type":21,"tag":322,"props":27997,"children":27998},{"style":329},[27999],{"type":26,"value":3768},{"type":21,"tag":322,"props":28001,"children":28002},{"style":3648},[28003],{"type":26,"value":3773},{"type":21,"tag":322,"props":28005,"children":28006},{"style":359},[28007],{"type":26,"value":3798},{"type":21,"tag":322,"props":28009,"children":28010},{"style":348},[28011],{"type":26,"value":3783},{"type":21,"tag":322,"props":28013,"children":28014},{"style":329},[28015],{"type":26,"value":28016},"b.name",{"type":21,"tag":322,"props":28018,"children":28019},{"style":348},[28020],{"type":26,"value":3793},{"type":21,"tag":322,"props":28022,"children":28023},{"style":359},[28024],{"type":26,"value":418},{"type":21,"tag":322,"props":28026,"children":28027},{"style":348},[28028],{"type":26,"value":3783},{"type":21,"tag":322,"props":28030,"children":28031},{"style":329},[28032],{"type":26,"value":28033},"b.num_qubits",{"type":21,"tag":322,"props":28035,"children":28036},{"style":348},[28037],{"type":26,"value":3793},{"type":21,"tag":322,"props":28039,"children":28040},{"style":359},[28041],{"type":26,"value":28042}," qubits, status: ",{"type":21,"tag":322,"props":28044,"children":28045},{"style":348},[28046],{"type":26,"value":3783},{"type":21,"tag":322,"props":28048,"children":28049},{"style":329},[28050],{"type":26,"value":28051},"b.status().status_msg",{"type":21,"tag":322,"props":28053,"children":28054},{"style":348},[28055],{"type":26,"value":3793},{"type":21,"tag":322,"props":28057,"children":28058},{"style":359},[28059],{"type":26,"value":3798},{"type":21,"tag":322,"props":28061,"children":28062},{"style":329},[28063],{"type":26,"value":3748},{"type":21,"tag":59,"props":28065,"children":28067},{"id":28066},"_10-मिनट-में-सेटअप-करना",[28068],{"type":26,"value":28069},"10 मिनट में सेटअप करना",{"type":21,"tag":17809,"props":28071,"children":28073},{"id":28072},"चरण-1-अपना-मुफ्त-खाता-बनाएं",[28074],{"type":26,"value":28075},"चरण 1: अपना मुफ्त खाता बनाएं",{"type":21,"tag":22,"props":28077,"children":28078},{},[28079,28084],{"type":21,"tag":29,"props":28080,"children":28082},{"href":21101,"rel":28081},[44],[28083],{"type":26,"value":21105},{"type":26,"value":28085}," पर जाएं और एक मुफ्त IBM ID बनाएं। किसी भुगतान जानकारी की आवश्यकता नहीं है।",{"type":21,"tag":17809,"props":28087,"children":28089},{"id":28088},"चरण-2-sdk-इंस्टॉल-करें",[28090],{"type":26,"value":28091},"चरण 2: SDK इंस्टॉल करें",{"type":21,"tag":312,"props":28093,"children":28095},{"className":10192,"code":28094,"language":10194,"meta":7,"style":7},"pip install qiskit qiskit-ibm-runtime\n",[28096],{"type":21,"tag":79,"props":28097,"children":28098},{"__ignoreMap":7},[28099],{"type":21,"tag":322,"props":28100,"children":28101},{"class":324,"line":325},[28102,28106,28110,28114],{"type":21,"tag":322,"props":28103,"children":28104},{"style":4814},[28105],{"type":26,"value":12243},{"type":21,"tag":322,"props":28107,"children":28108},{"style":359},[28109],{"type":26,"value":12248},{"type":21,"tag":322,"props":28111,"children":28112},{"style":359},[28113],{"type":26,"value":12253},{"type":21,"tag":322,"props":28115,"children":28116},{"style":359},[28117],{"type":26,"value":28118}," qiskit-ibm-runtime\n",{"type":21,"tag":17809,"props":28120,"children":28122},{"id":28121},"चरण-3-अपने-क्रेडेंशियल-सहेजें",[28123],{"type":26,"value":28124},"चरण 3: अपने क्रेडेंशियल सहेजें",{"type":21,"tag":22,"props":28126,"children":28127},{},[28128],{"type":26,"value":28129},"IBM Quantum डैशबोर्ड में लॉग इन करने के बाद, Account पेज से अपना API टोकन कॉपी करें।",{"type":21,"tag":312,"props":28131,"children":28133},{"className":3636,"code":28132,"language":3638,"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",[28134],{"type":21,"tag":79,"props":28135,"children":28136},{"__ignoreMap":7},[28137,28156,28163,28171,28178,28197,28217,28234],{"type":21,"tag":322,"props":28138,"children":28139},{"class":324,"line":325},[28140,28144,28148,28152],{"type":21,"tag":322,"props":28141,"children":28142},{"style":3648},[28143],{"type":26,"value":3651},{"type":21,"tag":322,"props":28145,"children":28146},{"style":329},[28147],{"type":26,"value":3656},{"type":21,"tag":322,"props":28149,"children":28150},{"style":3648},[28151],{"type":26,"value":3661},{"type":21,"tag":322,"props":28153,"children":28154},{"style":329},[28155],{"type":26,"value":3666},{"type":21,"tag":322,"props":28157,"children":28158},{"class":324,"line":335},[28159],{"type":21,"tag":322,"props":28160,"children":28161},{"emptyLinePlaceholder":3672},[28162],{"type":26,"value":3675},{"type":21,"tag":322,"props":28164,"children":28165},{"class":324,"line":344},[28166],{"type":21,"tag":322,"props":28167,"children":28168},{"style":3898},[28169],{"type":26,"value":28170},"# Run this once to save your token locally\n",{"type":21,"tag":322,"props":28172,"children":28173},{"class":324,"line":407},[28174],{"type":21,"tag":322,"props":28175,"children":28176},{"style":329},[28177],{"type":26,"value":21158},{"type":21,"tag":322,"props":28179,"children":28180},{"class":324,"line":431},[28181,28185,28189,28193],{"type":21,"tag":322,"props":28182,"children":28183},{"style":3713},[28184],{"type":26,"value":21166},{"type":21,"tag":322,"props":28186,"children":28187},{"style":3648},[28188],{"type":26,"value":3688},{"type":21,"tag":322,"props":28190,"children":28191},{"style":359},[28192],{"type":26,"value":21175},{"type":21,"tag":322,"props":28194,"children":28195},{"style":329},[28196],{"type":26,"value":428},{"type":21,"tag":322,"props":28198,"children":28199},{"class":324,"line":453},[28200,28204,28208,28213],{"type":21,"tag":322,"props":28201,"children":28202},{"style":3713},[28203],{"type":26,"value":21187},{"type":21,"tag":322,"props":28205,"children":28206},{"style":3648},[28207],{"type":26,"value":3688},{"type":21,"tag":322,"props":28209,"children":28210},{"style":359},[28211],{"type":26,"value":28212},"\"YOUR_API_TOKEN_HERE\"",{"type":21,"tag":322,"props":28214,"children":28215},{"style":329},[28216],{"type":26,"value":428},{"type":21,"tag":322,"props":28218,"children":28219},{"class":324,"line":474},[28220,28225,28229],{"type":21,"tag":322,"props":28221,"children":28222},{"style":3713},[28223],{"type":26,"value":28224},"    overwrite",{"type":21,"tag":322,"props":28226,"children":28227},{"style":3648},[28228],{"type":26,"value":3688},{"type":21,"tag":322,"props":28230,"children":28231},{"style":348},[28232],{"type":26,"value":28233},"True\n",{"type":21,"tag":322,"props":28235,"children":28236},{"class":324,"line":496},[28237],{"type":21,"tag":322,"props":28238,"children":28239},{"style":329},[28240],{"type":26,"value":3748},{"type":21,"tag":22,"props":28242,"children":28243},{},[28244,28246,28252],{"type":26,"value":28245},"आपके क्रेडेंशियल ",{"type":21,"tag":79,"props":28247,"children":28249},{"className":28248},[],[28250],{"type":26,"value":28251},"~\u002F.qiskit\u002Fqiskit-ibm.json",{"type":26,"value":28253}," में सहेजे जाते हैं। आपको इसे दोबारा करने की आवश्यकता नहीं होगी।",{"type":21,"tag":17809,"props":28255,"children":28257},{"id":28256},"चरण-4-अपना-पहला-जॉब-सबमिट-करें",[28258],{"type":26,"value":28259},"चरण 4: अपना पहला जॉब सबमिट करें",{"type":21,"tag":312,"props":28261,"children":28263},{"className":3636,"code":28262,"language":3638,"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",[28264],{"type":21,"tag":79,"props":28265,"children":28266},{"__ignoreMap":7},[28267,28286,28307,28336,28343,28351,28382,28397,28420,28459,28466,28474,28505,28521,28540,28559,28575,28582,28622,28629,28637,28682,28699,28706,28714,28745,28778,28785,28826,28867,28883],{"type":21,"tag":322,"props":28268,"children":28269},{"class":324,"line":325},[28270,28274,28278,28282],{"type":21,"tag":322,"props":28271,"children":28272},{"style":3648},[28273],{"type":26,"value":3651},{"type":21,"tag":322,"props":28275,"children":28276},{"style":329},[28277],{"type":26,"value":4745},{"type":21,"tag":322,"props":28279,"children":28280},{"style":3648},[28281],{"type":26,"value":3661},{"type":21,"tag":322,"props":28283,"children":28284},{"style":329},[28285],{"type":26,"value":20754},{"type":21,"tag":322,"props":28287,"children":28288},{"class":324,"line":335},[28289,28293,28298,28302],{"type":21,"tag":322,"props":28290,"children":28291},{"style":3648},[28292],{"type":26,"value":3651},{"type":21,"tag":322,"props":28294,"children":28295},{"style":329},[28296],{"type":26,"value":28297}," qiskit.transpiler.preset_passmanagers ",{"type":21,"tag":322,"props":28299,"children":28300},{"style":3648},[28301],{"type":26,"value":3661},{"type":21,"tag":322,"props":28303,"children":28304},{"style":329},[28305],{"type":26,"value":28306}," generate_preset_pass_manager\n",{"type":21,"tag":322,"props":28308,"children":28309},{"class":324,"line":344},[28310,28314,28318,28322,28327,28331],{"type":21,"tag":322,"props":28311,"children":28312},{"style":3648},[28313],{"type":26,"value":3651},{"type":21,"tag":322,"props":28315,"children":28316},{"style":329},[28317],{"type":26,"value":3656},{"type":21,"tag":322,"props":28319,"children":28320},{"style":3648},[28321],{"type":26,"value":3661},{"type":21,"tag":322,"props":28323,"children":28324},{"style":329},[28325],{"type":26,"value":28326}," QiskitRuntimeService, SamplerV2 ",{"type":21,"tag":322,"props":28328,"children":28329},{"style":3648},[28330],{"type":26,"value":4728},{"type":21,"tag":322,"props":28332,"children":28333},{"style":329},[28334],{"type":26,"value":28335}," Sampler\n",{"type":21,"tag":322,"props":28337,"children":28338},{"class":324,"line":407},[28339],{"type":21,"tag":322,"props":28340,"children":28341},{"emptyLinePlaceholder":3672},[28342],{"type":26,"value":3675},{"type":21,"tag":322,"props":28344,"children":28345},{"class":324,"line":431},[28346],{"type":21,"tag":322,"props":28347,"children":28348},{"style":3898},[28349],{"type":26,"value":28350},"# Build a Bell state\n",{"type":21,"tag":322,"props":28352,"children":28353},{"class":324,"line":453},[28354,28358,28362,28366,28370,28374,28378],{"type":21,"tag":322,"props":28355,"children":28356},{"style":329},[28357],{"type":26,"value":7832},{"type":21,"tag":322,"props":28359,"children":28360},{"style":3648},[28361],{"type":26,"value":3688},{"type":21,"tag":322,"props":28363,"children":28364},{"style":329},[28365],{"type":26,"value":5588},{"type":21,"tag":322,"props":28367,"children":28368},{"style":348},[28369],{"type":26,"value":423},{"type":21,"tag":322,"props":28371,"children":28372},{"style":329},[28373],{"type":26,"value":367},{"type":21,"tag":322,"props":28375,"children":28376},{"style":348},[28377],{"type":26,"value":423},{"type":21,"tag":322,"props":28379,"children":28380},{"style":329},[28381],{"type":26,"value":3748},{"type":21,"tag":322,"props":28383,"children":28384},{"class":324,"line":474},[28385,28389,28393],{"type":21,"tag":322,"props":28386,"children":28387},{"style":329},[28388],{"type":26,"value":7848},{"type":21,"tag":322,"props":28390,"children":28391},{"style":348},[28392],{"type":26,"value":5618},{"type":21,"tag":322,"props":28394,"children":28395},{"style":329},[28396],{"type":26,"value":3748},{"type":21,"tag":322,"props":28398,"children":28399},{"class":324,"line":496},[28400,28404,28408,28412,28416],{"type":21,"tag":322,"props":28401,"children":28402},{"style":329},[28403],{"type":26,"value":20840},{"type":21,"tag":322,"props":28405,"children":28406},{"style":348},[28407],{"type":26,"value":5618},{"type":21,"tag":322,"props":28409,"children":28410},{"style":329},[28411],{"type":26,"value":367},{"type":21,"tag":322,"props":28413,"children":28414},{"style":348},[28415],{"type":26,"value":4004},{"type":21,"tag":322,"props":28417,"children":28418},{"style":329},[28419],{"type":26,"value":3748},{"type":21,"tag":322,"props":28421,"children":28422},{"class":324,"line":16},[28423,28427,28431,28435,28439,28443,28447,28451,28455],{"type":21,"tag":322,"props":28424,"children":28425},{"style":329},[28426],{"type":26,"value":21645},{"type":21,"tag":322,"props":28428,"children":28429},{"style":348},[28430],{"type":26,"value":5618},{"type":21,"tag":322,"props":28432,"children":28433},{"style":329},[28434],{"type":26,"value":367},{"type":21,"tag":322,"props":28436,"children":28437},{"style":348},[28438],{"type":26,"value":4004},{"type":21,"tag":322,"props":28440,"children":28441},{"style":329},[28442],{"type":26,"value":5673},{"type":21,"tag":322,"props":28444,"children":28445},{"style":348},[28446],{"type":26,"value":5618},{"type":21,"tag":322,"props":28448,"children":28449},{"style":329},[28450],{"type":26,"value":367},{"type":21,"tag":322,"props":28452,"children":28453},{"style":348},[28454],{"type":26,"value":4004},{"type":21,"tag":322,"props":28456,"children":28457},{"style":329},[28458],{"type":26,"value":4009},{"type":21,"tag":322,"props":28460,"children":28461},{"class":324,"line":3894},[28462],{"type":21,"tag":322,"props":28463,"children":28464},{"emptyLinePlaceholder":3672},[28465],{"type":26,"value":3675},{"type":21,"tag":322,"props":28467,"children":28468},{"class":324,"line":3904},[28469],{"type":21,"tag":322,"props":28470,"children":28471},{"style":3898},[28472],{"type":26,"value":28473},"# Connect and pick the least-busy free QPU\n",{"type":21,"tag":322,"props":28475,"children":28476},{"class":324,"line":1043},[28477,28481,28485,28489,28493,28497,28501],{"type":21,"tag":322,"props":28478,"children":28479},{"style":329},[28480],{"type":26,"value":3683},{"type":21,"tag":322,"props":28482,"children":28483},{"style":3648},[28484],{"type":26,"value":3688},{"type":21,"tag":322,"props":28486,"children":28487},{"style":329},[28488],{"type":26,"value":27870},{"type":21,"tag":322,"props":28490,"children":28491},{"style":3713},[28492],{"type":26,"value":27875},{"type":21,"tag":322,"props":28494,"children":28495},{"style":3648},[28496],{"type":26,"value":3688},{"type":21,"tag":322,"props":28498,"children":28499},{"style":359},[28500],{"type":26,"value":21175},{"type":21,"tag":322,"props":28502,"children":28503},{"style":329},[28504],{"type":26,"value":3748},{"type":21,"tag":322,"props":28506,"children":28507},{"class":324,"line":3964},[28508,28512,28516],{"type":21,"tag":322,"props":28509,"children":28510},{"style":329},[28511],{"type":26,"value":3701},{"type":21,"tag":322,"props":28513,"children":28514},{"style":3648},[28515],{"type":26,"value":3688},{"type":21,"tag":322,"props":28517,"children":28518},{"style":329},[28519],{"type":26,"value":28520}," service.least_busy(\n",{"type":21,"tag":322,"props":28522,"children":28523},{"class":324,"line":4012},[28524,28528,28532,28536],{"type":21,"tag":322,"props":28525,"children":28526},{"style":3713},[28527],{"type":26,"value":27912},{"type":21,"tag":322,"props":28529,"children":28530},{"style":3648},[28531],{"type":26,"value":3688},{"type":21,"tag":322,"props":28533,"children":28534},{"style":348},[28535],{"type":26,"value":3725},{"type":21,"tag":322,"props":28537,"children":28538},{"style":329},[28539],{"type":26,"value":428},{"type":21,"tag":322,"props":28541,"children":28542},{"class":324,"line":4054},[28543,28547,28551,28555],{"type":21,"tag":322,"props":28544,"children":28545},{"style":3713},[28546],{"type":26,"value":27932},{"type":21,"tag":322,"props":28548,"children":28549},{"style":3648},[28550],{"type":26,"value":3688},{"type":21,"tag":322,"props":28552,"children":28553},{"style":348},[28554],{"type":26,"value":3743},{"type":21,"tag":322,"props":28556,"children":28557},{"style":329},[28558],{"type":26,"value":428},{"type":21,"tag":322,"props":28560,"children":28561},{"class":324,"line":5081},[28562,28566,28570],{"type":21,"tag":322,"props":28563,"children":28564},{"style":3713},[28565],{"type":26,"value":27952},{"type":21,"tag":322,"props":28567,"children":28568},{"style":3648},[28569],{"type":26,"value":3688},{"type":21,"tag":322,"props":28571,"children":28572},{"style":348},[28573],{"type":26,"value":28574},"2\n",{"type":21,"tag":322,"props":28576,"children":28577},{"class":324,"line":5100},[28578],{"type":21,"tag":322,"props":28579,"children":28580},{"style":329},[28581],{"type":26,"value":3748},{"type":21,"tag":322,"props":28583,"children":28584},{"class":324,"line":5108},[28585,28589,28593,28597,28602,28606,28610,28614,28618],{"type":21,"tag":322,"props":28586,"children":28587},{"style":348},[28588],{"type":26,"value":3763},{"type":21,"tag":322,"props":28590,"children":28591},{"style":329},[28592],{"type":26,"value":3768},{"type":21,"tag":322,"props":28594,"children":28595},{"style":3648},[28596],{"type":26,"value":3773},{"type":21,"tag":322,"props":28598,"children":28599},{"style":359},[28600],{"type":26,"value":28601},"\"Submitting to: ",{"type":21,"tag":322,"props":28603,"children":28604},{"style":348},[28605],{"type":26,"value":3783},{"type":21,"tag":322,"props":28607,"children":28608},{"style":329},[28609],{"type":26,"value":3788},{"type":21,"tag":322,"props":28611,"children":28612},{"style":348},[28613],{"type":26,"value":3793},{"type":21,"tag":322,"props":28615,"children":28616},{"style":359},[28617],{"type":26,"value":3798},{"type":21,"tag":322,"props":28619,"children":28620},{"style":329},[28621],{"type":26,"value":3748},{"type":21,"tag":322,"props":28623,"children":28624},{"class":324,"line":5139},[28625],{"type":21,"tag":322,"props":28626,"children":28627},{"emptyLinePlaceholder":3672},[28628],{"type":26,"value":3675},{"type":21,"tag":322,"props":28630,"children":28631},{"class":324,"line":5184},[28632],{"type":21,"tag":322,"props":28633,"children":28634},{"style":3898},[28635],{"type":26,"value":28636},"# Transpile for the target device\n",{"type":21,"tag":322,"props":28638,"children":28639},{"class":324,"line":5223},[28640,28644,28648,28653,28657,28661,28666,28670,28674,28678],{"type":21,"tag":322,"props":28641,"children":28642},{"style":329},[28643],{"type":26,"value":6295},{"type":21,"tag":322,"props":28645,"children":28646},{"style":3648},[28647],{"type":26,"value":3688},{"type":21,"tag":322,"props":28649,"children":28650},{"style":329},[28651],{"type":26,"value":28652}," generate_preset_pass_manager(",{"type":21,"tag":322,"props":28654,"children":28655},{"style":3713},[28656],{"type":26,"value":18916},{"type":21,"tag":322,"props":28658,"children":28659},{"style":3648},[28660],{"type":26,"value":3688},{"type":21,"tag":322,"props":28662,"children":28663},{"style":329},[28664],{"type":26,"value":28665},"backend, ",{"type":21,"tag":322,"props":28667,"children":28668},{"style":3713},[28669],{"type":26,"value":6725},{"type":21,"tag":322,"props":28671,"children":28672},{"style":3648},[28673],{"type":26,"value":3688},{"type":21,"tag":322,"props":28675,"children":28676},{"style":348},[28677],{"type":26,"value":4004},{"type":21,"tag":322,"props":28679,"children":28680},{"style":329},[28681],{"type":26,"value":3748},{"type":21,"tag":322,"props":28683,"children":28684},{"class":324,"line":5241},[28685,28690,28694],{"type":21,"tag":322,"props":28686,"children":28687},{"style":329},[28688],{"type":26,"value":28689},"isa_qc ",{"type":21,"tag":322,"props":28691,"children":28692},{"style":3648},[28693],{"type":26,"value":3688},{"type":21,"tag":322,"props":28695,"children":28696},{"style":329},[28697],{"type":26,"value":28698}," pm.run(qc)\n",{"type":21,"tag":322,"props":28700,"children":28701},{"class":324,"line":5315},[28702],{"type":21,"tag":322,"props":28703,"children":28704},{"emptyLinePlaceholder":3672},[28705],{"type":26,"value":3675},{"type":21,"tag":322,"props":28707,"children":28708},{"class":324,"line":5343},[28709],{"type":21,"tag":322,"props":28710,"children":28711},{"style":3898},[28712],{"type":26,"value":28713},"# Submit\n",{"type":21,"tag":322,"props":28715,"children":28716},{"class":324,"line":5372},[28717,28722,28726,28731,28736,28740],{"type":21,"tag":322,"props":28718,"children":28719},{"style":329},[28720],{"type":26,"value":28721},"sampler ",{"type":21,"tag":322,"props":28723,"children":28724},{"style":3648},[28725],{"type":26,"value":3688},{"type":21,"tag":322,"props":28727,"children":28728},{"style":329},[28729],{"type":26,"value":28730}," Sampler(",{"type":21,"tag":322,"props":28732,"children":28733},{"style":3713},[28734],{"type":26,"value":28735},"mode",{"type":21,"tag":322,"props":28737,"children":28738},{"style":3648},[28739],{"type":26,"value":3688},{"type":21,"tag":322,"props":28741,"children":28742},{"style":329},[28743],{"type":26,"value":28744},"backend)\n",{"type":21,"tag":322,"props":28746,"children":28747},{"class":324,"line":5381},[28748,28753,28757,28762,28766,28770,28774],{"type":21,"tag":322,"props":28749,"children":28750},{"style":329},[28751],{"type":26,"value":28752},"job ",{"type":21,"tag":322,"props":28754,"children":28755},{"style":3648},[28756],{"type":26,"value":3688},{"type":21,"tag":322,"props":28758,"children":28759},{"style":329},[28760],{"type":26,"value":28761}," sampler.run([isa_qc], ",{"type":21,"tag":322,"props":28763,"children":28764},{"style":3713},[28765],{"type":26,"value":4573},{"type":21,"tag":322,"props":28767,"children":28768},{"style":3648},[28769],{"type":26,"value":3688},{"type":21,"tag":322,"props":28771,"children":28772},{"style":348},[28773],{"type":26,"value":489},{"type":21,"tag":322,"props":28775,"children":28776},{"style":329},[28777],{"type":26,"value":3748},{"type":21,"tag":322,"props":28779,"children":28780},{"class":324,"line":5409},[28781],{"type":21,"tag":322,"props":28782,"children":28783},{"emptyLinePlaceholder":3672},[28784],{"type":26,"value":3675},{"type":21,"tag":322,"props":28786,"children":28787},{"class":324,"line":5440},[28788,28792,28796,28800,28805,28809,28814,28818,28822],{"type":21,"tag":322,"props":28789,"children":28790},{"style":348},[28791],{"type":26,"value":3763},{"type":21,"tag":322,"props":28793,"children":28794},{"style":329},[28795],{"type":26,"value":3768},{"type":21,"tag":322,"props":28797,"children":28798},{"style":3648},[28799],{"type":26,"value":3773},{"type":21,"tag":322,"props":28801,"children":28802},{"style":359},[28803],{"type":26,"value":28804},"\"Job ID: ",{"type":21,"tag":322,"props":28806,"children":28807},{"style":348},[28808],{"type":26,"value":3783},{"type":21,"tag":322,"props":28810,"children":28811},{"style":329},[28812],{"type":26,"value":28813},"job.job_id()",{"type":21,"tag":322,"props":28815,"children":28816},{"style":348},[28817],{"type":26,"value":3793},{"type":21,"tag":322,"props":28819,"children":28820},{"style":359},[28821],{"type":26,"value":3798},{"type":21,"tag":322,"props":28823,"children":28824},{"style":329},[28825],{"type":26,"value":3748},{"type":21,"tag":322,"props":28827,"children":28828},{"class":324,"line":5462},[28829,28833,28837,28841,28846,28850,28855,28859,28863],{"type":21,"tag":322,"props":28830,"children":28831},{"style":348},[28832],{"type":26,"value":3763},{"type":21,"tag":322,"props":28834,"children":28835},{"style":329},[28836],{"type":26,"value":3768},{"type":21,"tag":322,"props":28838,"children":28839},{"style":3648},[28840],{"type":26,"value":3773},{"type":21,"tag":322,"props":28842,"children":28843},{"style":359},[28844],{"type":26,"value":28845},"\"Status: ",{"type":21,"tag":322,"props":28847,"children":28848},{"style":348},[28849],{"type":26,"value":3783},{"type":21,"tag":322,"props":28851,"children":28852},{"style":329},[28853],{"type":26,"value":28854},"job.status()",{"type":21,"tag":322,"props":28856,"children":28857},{"style":348},[28858],{"type":26,"value":3793},{"type":21,"tag":322,"props":28860,"children":28861},{"style":359},[28862],{"type":26,"value":3798},{"type":21,"tag":322,"props":28864,"children":28865},{"style":329},[28866],{"type":26,"value":3748},{"type":21,"tag":322,"props":28868,"children":28869},{"class":324,"line":5508},[28870,28874,28878],{"type":21,"tag":322,"props":28871,"children":28872},{"style":329},[28873],{"type":26,"value":19775},{"type":21,"tag":322,"props":28875,"children":28876},{"style":3648},[28877],{"type":26,"value":3688},{"type":21,"tag":322,"props":28879,"children":28880},{"style":329},[28881],{"type":26,"value":28882}," job.result()\n",{"type":21,"tag":322,"props":28884,"children":28885},{"class":324,"line":5521},[28886,28890,28895,28899],{"type":21,"tag":322,"props":28887,"children":28888},{"style":348},[28889],{"type":26,"value":3763},{"type":21,"tag":322,"props":28891,"children":28892},{"style":329},[28893],{"type":26,"value":28894},"(result[",{"type":21,"tag":322,"props":28896,"children":28897},{"style":348},[28898],{"type":26,"value":5618},{"type":21,"tag":322,"props":28900,"children":28901},{"style":329},[28902],{"type":26,"value":28903},"].data.c.get_counts())\n",{"type":21,"tag":59,"props":28905,"children":28907},{"id":28906},"क्यू-टाइम-को-समझना",[28908],{"type":26,"value":28909},"क्यू टाइम को समझना",{"type":21,"tag":22,"props":28911,"children":28912},{},[28913],{"type":26,"value":28914},"क्यू टाइम फ्री टियर के साथ सबसे आम निराशा है। यहां बताया गया है कि क्या हो रहा है:",{"type":21,"tag":3566,"props":28916,"children":28917},{},[28918,28923,28936],{"type":21,"tag":3570,"props":28919,"children":28920},{},[28921],{"type":26,"value":28922},"आप QPU को दुनिया भर के अन्य सभी Open Plan उपयोगकर्ताओं के साथ साझा कर रहे हैं",{"type":21,"tag":3570,"props":28924,"children":28925},{},[28926,28928,28934],{"type":26,"value":28927},"जॉब प्रति सिस्टम कतारबद्ध होते हैं: ",{"type":21,"tag":79,"props":28929,"children":28931},{"className":28930},[],[28932],{"type":26,"value":28933},"least_busy()",{"type":26,"value":28935}," सबसे कम प्रतीक्षा खोजने में मदद करता है",{"type":21,"tag":3570,"props":28937,"children":28938},{},[28939],{"type":26,"value":28940},"सामान्य प्रतीक्षा: सिस्टम लोड के आधार पर 5 मिनट से 2 घंटे तक",{"type":21,"tag":22,"props":28942,"children":28943},{},[28944],{"type":21,"tag":71,"props":28945,"children":28946},{},[28947],{"type":26,"value":28948},"क्यू टाइम को कम करने के लिए सुझाव:",{"type":21,"tag":3566,"props":28950,"children":28951},{},[28952,28957,28970,28975],{"type":21,"tag":3570,"props":28953,"children":28954},{},[28955],{"type":26,"value":28956},"ऑफ-पीक घंटों के दौरान चलाएं (यूरोपीय सुबह = अमेरिकी रात)",{"type":21,"tag":3570,"props":28958,"children":28959},{},[28960,28962,28968],{"type":26,"value":28961},"किसी विशिष्ट सिस्टम को लक्षित करने के बजाय ",{"type":21,"tag":79,"props":28963,"children":28965},{"className":28964},[],[28966],{"type":26,"value":28967},"service.least_busy()",{"type":26,"value":28969}," का उपयोग करें",{"type":21,"tag":3570,"props":28971,"children":28972},{},[28973],{"type":26,"value":28974},"विकास के लिए, स्थानीय रूप से Aer सिमुलेटर का उपयोग करें, और केवल अंतिम सत्यापन के लिए वास्तविक हार्डवेयर पर सबमिट करें",{"type":21,"tag":3570,"props":28976,"children":28977},{},[28978],{"type":26,"value":28979},"SamplerV2 के लिस्ट इनपुट का उपयोग करके कई सर्किट को एक ही जॉब में बैच करें",{"type":21,"tag":59,"props":28981,"children":28983},{"id":28982},"इसके-बजाय-मुफ्त-क्लाउड-सिमुलेटर-का-उपयोग-करना",[28984],{"type":26,"value":28985},"इसके बजाय मुफ्त क्लाउड सिमुलेटर का उपयोग करना",{"type":21,"tag":22,"props":28987,"children":28988},{},[28989],{"type":26,"value":28990},"अधिकांश विकास कार्य के लिए, IBM के क्लाउड-होस्टेड सिमुलेटर वास्तविक हार्डवेयर के लिए कतार में लगने की तुलना में तेज़ होते हैं:",{"type":21,"tag":312,"props":28992,"children":28994},{"className":3636,"code":28993,"language":3638,"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",[28995],{"type":21,"tag":79,"props":28996,"children":28997},{"__ignoreMap":7},[28998,29006,29031,29038,29046],{"type":21,"tag":322,"props":28999,"children":29000},{"class":324,"line":325},[29001],{"type":21,"tag":322,"props":29002,"children":29003},{"style":3898},[29004],{"type":26,"value":29005},"# IBM cloud QASM simulator (up to 32 qubits, no queue)\n",{"type":21,"tag":322,"props":29007,"children":29008},{"class":324,"line":335},[29009,29013,29017,29022,29027],{"type":21,"tag":322,"props":29010,"children":29011},{"style":329},[29012],{"type":26,"value":3701},{"type":21,"tag":322,"props":29014,"children":29015},{"style":3648},[29016],{"type":26,"value":3688},{"type":21,"tag":322,"props":29018,"children":29019},{"style":329},[29020],{"type":26,"value":29021}," service.backend(",{"type":21,"tag":322,"props":29023,"children":29024},{"style":359},[29025],{"type":26,"value":29026},"\"ibmq_qasm_simulator\"",{"type":21,"tag":322,"props":29028,"children":29029},{"style":329},[29030],{"type":26,"value":3748},{"type":21,"tag":322,"props":29032,"children":29033},{"class":324,"line":344},[29034],{"type":21,"tag":322,"props":29035,"children":29036},{"emptyLinePlaceholder":3672},[29037],{"type":26,"value":3675},{"type":21,"tag":322,"props":29039,"children":29040},{"class":324,"line":407},[29041],{"type":21,"tag":322,"props":29042,"children":29043},{"style":3898},[29044],{"type":26,"value":29045},"# Or use the Statevector simulator (exact simulation)\n",{"type":21,"tag":322,"props":29047,"children":29048},{"class":324,"line":431},[29049,29053,29057,29061,29066],{"type":21,"tag":322,"props":29050,"children":29051},{"style":329},[29052],{"type":26,"value":3701},{"type":21,"tag":322,"props":29054,"children":29055},{"style":3648},[29056],{"type":26,"value":3688},{"type":21,"tag":322,"props":29058,"children":29059},{"style":329},[29060],{"type":26,"value":29021},{"type":21,"tag":322,"props":29062,"children":29063},{"style":359},[29064],{"type":26,"value":29065},"\"simulator_statevector\"",{"type":21,"tag":322,"props":29067,"children":29068},{"style":329},[29069],{"type":26,"value":3748},{"type":21,"tag":22,"props":29071,"children":29072},{},[29073],{"type":26,"value":29074},"इन सिमुलेटरों में कोई क्यू टाइम नहीं होता है और ये तुरंत चलते हैं। वास्तविक QPU का उपयोग तब करें जब आपको वास्तविक नॉइज़ विशेषताओं की आवश्यकता हो या वास्तविक हार्डवेयर पर बेंचमार्क करना चाहते हों।",{"type":21,"tag":59,"props":29076,"children":29078},{"id":29077},"ibm-quantum-के-साथ-hlquantum-का-उपयोग-करना",[29079],{"type":26,"value":29080},"IBM Quantum के साथ HLQuantum का उपयोग करना",{"type":21,"tag":22,"props":29082,"children":29083},{},[29084],{"type":26,"value":29085},"यदि आप कई SDK का उपयोग कर रहे हैं, तो HLQuantum IBM हार्डवेयर के लिए एक स्वच्छ इंटरफ़ेस प्रदान करता है:",{"type":21,"tag":312,"props":29087,"children":29089},{"className":3636,"code":29088,"language":3638,"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",[29090],{"type":21,"tag":79,"props":29091,"children":29092},{"__ignoreMap":7},[29093,29112,29119,29142,29173,29180,29188,29204,29212,29232,29259,29279,29296,29303],{"type":21,"tag":322,"props":29094,"children":29095},{"class":324,"line":325},[29096,29100,29104,29108],{"type":21,"tag":322,"props":29097,"children":29098},{"style":3648},[29099],{"type":26,"value":3661},{"type":21,"tag":322,"props":29101,"children":29102},{"style":329},[29103],{"type":26,"value":19743},{"type":21,"tag":322,"props":29105,"children":29106},{"style":3648},[29107],{"type":26,"value":4728},{"type":21,"tag":322,"props":29109,"children":29110},{"style":329},[29111],{"type":26,"value":19752},{"type":21,"tag":322,"props":29113,"children":29114},{"class":324,"line":335},[29115],{"type":21,"tag":322,"props":29116,"children":29117},{"emptyLinePlaceholder":3672},[29118],{"type":26,"value":3675},{"type":21,"tag":322,"props":29120,"children":29121},{"class":324,"line":344},[29122,29126,29130,29134,29138],{"type":21,"tag":322,"props":29123,"children":29124},{"style":329},[29125],{"type":26,"value":7832},{"type":21,"tag":322,"props":29127,"children":29128},{"style":3648},[29129],{"type":26,"value":3688},{"type":21,"tag":322,"props":29131,"children":29132},{"style":329},[29133],{"type":26,"value":21805},{"type":21,"tag":322,"props":29135,"children":29136},{"style":348},[29137],{"type":26,"value":423},{"type":21,"tag":322,"props":29139,"children":29140},{"style":329},[29141],{"type":26,"value":3748},{"type":21,"tag":322,"props":29143,"children":29144},{"class":324,"line":407},[29145,29149,29153,29157,29161,29165,29169],{"type":21,"tag":322,"props":29146,"children":29147},{"style":329},[29148],{"type":26,"value":7848},{"type":21,"tag":322,"props":29150,"children":29151},{"style":348},[29152],{"type":26,"value":5618},{"type":21,"tag":322,"props":29154,"children":29155},{"style":329},[29156],{"type":26,"value":21829},{"type":21,"tag":322,"props":29158,"children":29159},{"style":348},[29160],{"type":26,"value":5618},{"type":21,"tag":322,"props":29162,"children":29163},{"style":329},[29164],{"type":26,"value":367},{"type":21,"tag":322,"props":29166,"children":29167},{"style":348},[29168],{"type":26,"value":4004},{"type":21,"tag":322,"props":29170,"children":29171},{"style":329},[29172],{"type":26,"value":21846},{"type":21,"tag":322,"props":29174,"children":29175},{"class":324,"line":431},[29176],{"type":21,"tag":322,"props":29177,"children":29178},{"emptyLinePlaceholder":3672},[29179],{"type":26,"value":3675},{"type":21,"tag":322,"props":29181,"children":29182},{"class":324,"line":453},[29183],{"type":21,"tag":322,"props":29184,"children":29185},{"style":3898},[29186],{"type":26,"value":29187},"# Run on IBM's free QPU\n",{"type":21,"tag":322,"props":29189,"children":29190},{"class":324,"line":474},[29191,29195,29199],{"type":21,"tag":322,"props":29192,"children":29193},{"style":329},[29194],{"type":26,"value":19775},{"type":21,"tag":322,"props":29196,"children":29197},{"style":3648},[29198],{"type":26,"value":3688},{"type":21,"tag":322,"props":29200,"children":29201},{"style":329},[29202],{"type":26,"value":29203}," hlq.run(\n",{"type":21,"tag":322,"props":29205,"children":29206},{"class":324,"line":496},[29207],{"type":21,"tag":322,"props":29208,"children":29209},{"style":329},[29210],{"type":26,"value":29211},"    qc,\n",{"type":21,"tag":322,"props":29213,"children":29214},{"class":324,"line":16},[29215,29219,29223,29228],{"type":21,"tag":322,"props":29216,"children":29217},{"style":3713},[29218],{"type":26,"value":23312},{"type":21,"tag":322,"props":29220,"children":29221},{"style":3648},[29222],{"type":26,"value":3688},{"type":21,"tag":322,"props":29224,"children":29225},{"style":359},[29226],{"type":26,"value":29227},"\"qiskit\"",{"type":21,"tag":322,"props":29229,"children":29230},{"style":329},[29231],{"type":26,"value":428},{"type":21,"tag":322,"props":29233,"children":29234},{"class":324,"line":3894},[29235,29240,29244,29249,29254],{"type":21,"tag":322,"props":29236,"children":29237},{"style":3713},[29238],{"type":26,"value":29239},"    device",{"type":21,"tag":322,"props":29241,"children":29242},{"style":3648},[29243],{"type":26,"value":3688},{"type":21,"tag":322,"props":29245,"children":29246},{"style":359},[29247],{"type":26,"value":29248},"\"ibm_sherbrooke\"",{"type":21,"tag":322,"props":29250,"children":29251},{"style":329},[29252],{"type":26,"value":29253},",  ",{"type":21,"tag":322,"props":29255,"children":29256},{"style":3898},[29257],{"type":26,"value":29258},"# or use \"auto\" for least busy\n",{"type":21,"tag":322,"props":29260,"children":29261},{"class":324,"line":3904},[29262,29267,29271,29275],{"type":21,"tag":322,"props":29263,"children":29264},{"style":3713},[29265],{"type":26,"value":29266},"    shots",{"type":21,"tag":322,"props":29268,"children":29269},{"style":3648},[29270],{"type":26,"value":3688},{"type":21,"tag":322,"props":29272,"children":29273},{"style":348},[29274],{"type":26,"value":489},{"type":21,"tag":322,"props":29276,"children":29277},{"style":329},[29278],{"type":26,"value":428},{"type":21,"tag":322,"props":29280,"children":29281},{"class":324,"line":1043},[29282,29287,29291],{"type":21,"tag":322,"props":29283,"children":29284},{"style":3713},[29285],{"type":26,"value":29286},"    error_mitigation",{"type":21,"tag":322,"props":29288,"children":29289},{"style":3648},[29290],{"type":26,"value":3688},{"type":21,"tag":322,"props":29292,"children":29293},{"style":359},[29294],{"type":26,"value":29295},"\"zne\"\n",{"type":21,"tag":322,"props":29297,"children":29298},{"class":324,"line":3964},[29299],{"type":21,"tag":322,"props":29300,"children":29301},{"style":329},[29302],{"type":26,"value":3748},{"type":21,"tag":322,"props":29304,"children":29305},{"class":324,"line":4012},[29306,29310],{"type":21,"tag":322,"props":29307,"children":29308},{"style":348},[29309],{"type":26,"value":3763},{"type":21,"tag":322,"props":29311,"children":29312},{"style":329},[29313],{"type":26,"value":29314},"(result)\n",{"type":21,"tag":22,"props":29316,"children":29317},{},[29318,29320,29324],{"type":26,"value":29319},"HLQuantum ट्रांसपाइलेशन, जॉब सबमिशन, और रिज़ल्ट पार्सिंग को स्वचालित रूप से संभालता है। उन्नत कॉन्फ़िगरेशन के लिए पूरी ",{"type":21,"tag":29,"props":29321,"children":29322},{"href":7541},[29323],{"type":26,"value":9253},{"type":26,"value":4162},{"type":21,"tag":703,"props":29326,"children":29327},{},[29328],{"type":26,"value":707},{"title":7,"searchDepth":335,"depth":335,"links":29330},[29331,29332,29333,29334,29340,29341,29342],{"id":27547,"depth":335,"text":27550},{"id":27629,"depth":335,"text":27632},{"id":27703,"depth":335,"text":27706},{"id":28066,"depth":335,"text":28069,"children":29335},[29336,29337,29338,29339],{"id":28072,"depth":344,"text":28075},{"id":28088,"depth":344,"text":28091},{"id":28121,"depth":344,"text":28124},{"id":28256,"depth":344,"text":28259},{"id":28906,"depth":335,"text":28909},{"id":28982,"depth":335,"text":28985},{"id":29077,"depth":335,"text":29080},"content:hi:blog:ibm-quantum-free-tier-2026.md","hi\u002Fblog\u002Fibm-quantum-free-tier-2026.md","hi\u002Fblog\u002Fibm-quantum-free-tier-2026",{"_path":29347,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":29348,"description":29349,"date":27535,"author":11,"tags":29350,"readingTime":3904,"body":29351,"_type":715,"_id":32083,"_source":717,"_file":32084,"_stem":32085,"_extension":720},"\u002Fhi\u002Fblog\u002Fqaoa-max-cut-tutorial","QAOA की व्याख्या: Max-Cut को चरण दर चरण हल करना","Max-Cut ग्राफ़ समस्या पर लागू Quantum Approximate Optimization Algorithm का एक व्यावहारिक अवलोकन — Qiskit, PennyLane, और HLQuantum का उपयोग करते हुए पूर्ण Python कोड के साथ।",[7598,14,1972,14234],{"type":18,"children":29352,"toc":32073},[29353,29358,29363,29369,29374,29379,29387,29406,29412,29417,29454,29482,29488,30627,30647,30653,30658,31256,31261,31269,31287,31293,31298,31596,31601,31806,31812,31832,31926,31953,31959,31967,31985,31993,32006,32023,32029,32069],{"type":21,"tag":22,"props":29354,"children":29355},{},[29356],{"type":26,"value":29357},"QAOA (Quantum Approximate Optimization Algorithm) निकट-अवधि के सबसे अधिक चर्चित क्वांटम एल्गोरिदम में से एक है — और सही कारणों से। यह संयोजनात्मक अनुकूलन समस्याओं पर क्वांटम लाभ का एक वास्तविक उम्मीदवार है, यह आज के NISQ हार्डवेयर पर चलता है, और यह एक दोपहर में लागू करने के लिए पर्याप्त सुलभ है।",{"type":21,"tag":22,"props":29359,"children":29360},{},[29361],{"type":26,"value":29362},"यह मार्गदर्शिका उदाहरण समस्या के रूप में Max-Cut का उपयोग करते हुए, शुरू से पूरी QAOA पाइपलाइन बनाती है। अंत तक आप समझ जाएंगे कि QAOA वास्तव में क्या करता है, इसे कैसे लागू करें, और इसका उपयोग करना कब सार्थक है।",{"type":21,"tag":59,"props":29364,"children":29366},{"id":29365},"max-cut-क्या-है",[29367],{"type":26,"value":29368},"Max-Cut क्या है?",{"type":21,"tag":22,"props":29370,"children":29371},{},[29372],{"type":26,"value":29373},"Max-Cut एक ग्राफ़ विभाजन समस्या है: एक ग्राफ़ दिए जाने पर, नोड्स को दो समूहों (0 और 1) में विभाजित करें ताकि समूहों के बीच से गुजरने वाले किनारों (edges) की संख्या अधिकतम हो। यह सामान्यतः NP-hard है, VLSI चिप डिज़ाइन, क्लस्टरिंग, और नेटवर्क विश्लेषण में दिखाई देती है, और क्वांटम हार्डवेयर पर सफाई से मैप हो जाती है।",{"type":21,"tag":22,"props":29375,"children":29376},{},[29377],{"type":26,"value":29378},"यहाँ एक सरल 4-नोड ग्राफ़ है:",{"type":21,"tag":312,"props":29380,"children":29382},{"code":29381},"0 --- 1\n|   \\ |\n3 --- 2\n",[29383],{"type":21,"tag":79,"props":29384,"children":29385},{"__ignoreMap":7},[29386],{"type":26,"value":29381},{"type":21,"tag":22,"props":29388,"children":29389},{},[29390,29392,29398,29399,29404],{"type":26,"value":29391},"इस ग्राफ़ का अधिकतम कट 4 है (किनारे 0-1, 1-2, 2-3, 3-0 सभी पार करते हैं)। हमारा लक्ष्य: वह बिट स्ट्रिंग ",{"type":21,"tag":79,"props":29393,"children":29395},{"className":29394},[],[29396],{"type":26,"value":29397},"0101",{"type":26,"value":19256},{"type":21,"tag":79,"props":29400,"children":29402},{"className":29401},[],[29403],{"type":26,"value":17878},{"type":26,"value":29405}," खोजना जो इसे प्राप्त करती है।",{"type":21,"tag":59,"props":29407,"children":29409},{"id":29408},"qaoa-का-विचार",[29410],{"type":26,"value":29411},"QAOA का विचार",{"type":21,"tag":22,"props":29413,"children":29414},{},[29415],{"type":26,"value":29416},"QAOA एक वैरिएशनल हाइब्रिड एल्गोरिदम है। यह दो पैरामीटरीकृत संक्रियाओं के बीच बारी-बारी करता है:",{"type":21,"tag":7457,"props":29418,"children":29419},{},[29420,29437],{"type":21,"tag":3570,"props":29421,"children":29422},{},[29423,29428,29429,29435],{"type":21,"tag":71,"props":29424,"children":29425},{},[29426],{"type":26,"value":29427},"समस्या यूनिटरी (Problem unitary)",{"type":26,"value":1911},{"type":21,"tag":79,"props":29430,"children":29432},{"className":29431},[],[29433],{"type":26,"value":29434},"U_C(γ)",{"type":26,"value":29436}," — लागत फ़ंक्शन (किनारा पार करना) को फ़ेज़ किकबैक के रूप में एनकोड करता है",{"type":21,"tag":3570,"props":29438,"children":29439},{},[29440,29445,29446,29452],{"type":21,"tag":71,"props":29441,"children":29442},{},[29443],{"type":26,"value":29444},"मिक्सर यूनिटरी (Mixer unitary)",{"type":26,"value":1911},{"type":21,"tag":79,"props":29447,"children":29449},{"className":29448},[],[29450],{"type":26,"value":29451},"U_B(β)",{"type":26,"value":29453}," — समाधानों के बीच मिश्रण करता है (X रोटेशन)",{"type":21,"tag":22,"props":29455,"children":29456},{},[29457,29459,29464,29466,29472,29474,29480],{"type":26,"value":29458},"इन बारी-बारी की यूनिटरीज़ की ",{"type":21,"tag":79,"props":29460,"children":29462},{"className":29461},[],[29463],{"type":26,"value":22},{"type":26,"value":29465}," परतों के साथ, QAOA एक क्वांटम अवस्था तैयार करता है जिसका माप संभवतः एक अच्छा समाधान होता है। एक क्लासिकल ऑप्टिमाइज़र अपेक्षित कट मान को अधिकतम करने के लिए ",{"type":21,"tag":79,"props":29467,"children":29469},{"className":29468},[],[29470],{"type":26,"value":29471},"2p",{"type":26,"value":29473}," कोणों ",{"type":21,"tag":79,"props":29475,"children":29477},{"className":29476},[],[29478],{"type":26,"value":29479},"(γ, β)",{"type":26,"value":29481}," को ट्यून करता है।",{"type":21,"tag":59,"props":29483,"children":29485},{"id":29484},"pennylane-के-साथ-qaoa-बनाना",[29486],{"type":26,"value":29487},"PennyLane के साथ QAOA बनाना",{"type":21,"tag":312,"props":29489,"children":29491},{"code":29490,"language":3638,"meta":7,"className":3636,"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",[29492],{"type":21,"tag":79,"props":29493,"children":29494},{"__ignoreMap":7},[29495,29514,29533,29554,29561,29569,29652,29667,29674,29709,29716,29733,29741,29762,29782,29816,29835,29842,29859,29867,29890,29923,29930,29941,29970,29987,30004,30012,30035,30055,30063,30088,30096,30104,30131,30138,30166,30174,30191,30208,30233,30283,30345,30372,30393,30400,30408,30424,30462,30495,30529,30536,30577],{"type":21,"tag":322,"props":29496,"children":29497},{"class":324,"line":325},[29498,29502,29506,29510],{"type":21,"tag":322,"props":29499,"children":29500},{"style":3648},[29501],{"type":26,"value":3661},{"type":21,"tag":322,"props":29503,"children":29504},{"style":329},[29505],{"type":26,"value":14541},{"type":21,"tag":322,"props":29507,"children":29508},{"style":3648},[29509],{"type":26,"value":4728},{"type":21,"tag":322,"props":29511,"children":29512},{"style":329},[29513],{"type":26,"value":14550},{"type":21,"tag":322,"props":29515,"children":29516},{"class":324,"line":335},[29517,29521,29525,29529],{"type":21,"tag":322,"props":29518,"children":29519},{"style":3648},[29520],{"type":26,"value":3661},{"type":21,"tag":322,"props":29522,"children":29523},{"style":329},[29524],{"type":26,"value":4723},{"type":21,"tag":322,"props":29526,"children":29527},{"style":3648},[29528],{"type":26,"value":4728},{"type":21,"tag":322,"props":29530,"children":29531},{"style":329},[29532],{"type":26,"value":4733},{"type":21,"tag":322,"props":29534,"children":29535},{"class":324,"line":344},[29536,29540,29545,29549],{"type":21,"tag":322,"props":29537,"children":29538},{"style":3648},[29539],{"type":26,"value":3651},{"type":21,"tag":322,"props":29541,"children":29542},{"style":329},[29543],{"type":26,"value":29544}," scipy.optimize ",{"type":21,"tag":322,"props":29546,"children":29547},{"style":3648},[29548],{"type":26,"value":3661},{"type":21,"tag":322,"props":29550,"children":29551},{"style":329},[29552],{"type":26,"value":29553}," minimize\n",{"type":21,"tag":322,"props":29555,"children":29556},{"class":324,"line":407},[29557],{"type":21,"tag":322,"props":29558,"children":29559},{"emptyLinePlaceholder":3672},[29560],{"type":26,"value":3675},{"type":21,"tag":322,"props":29562,"children":29563},{"class":324,"line":431},[29564],{"type":21,"tag":322,"props":29565,"children":29566},{"style":3898},[29567],{"type":26,"value":29568},"# Graph edges\n",{"type":21,"tag":322,"props":29570,"children":29571},{"class":324,"line":453},[29572,29577,29581,29586,29590,29594,29598,29603,29607,29611,29615,29619,29623,29627,29631,29635,29639,29643,29647],{"type":21,"tag":322,"props":29573,"children":29574},{"style":329},[29575],{"type":26,"value":29576},"edges ",{"type":21,"tag":322,"props":29578,"children":29579},{"style":3648},[29580],{"type":26,"value":3688},{"type":21,"tag":322,"props":29582,"children":29583},{"style":329},[29584],{"type":26,"value":29585}," [(",{"type":21,"tag":322,"props":29587,"children":29588},{"style":348},[29589],{"type":26,"value":5618},{"type":21,"tag":322,"props":29591,"children":29592},{"style":329},[29593],{"type":26,"value":367},{"type":21,"tag":322,"props":29595,"children":29596},{"style":348},[29597],{"type":26,"value":4004},{"type":21,"tag":322,"props":29599,"children":29600},{"style":329},[29601],{"type":26,"value":29602},"), (",{"type":21,"tag":322,"props":29604,"children":29605},{"style":348},[29606],{"type":26,"value":4004},{"type":21,"tag":322,"props":29608,"children":29609},{"style":329},[29610],{"type":26,"value":367},{"type":21,"tag":322,"props":29612,"children":29613},{"style":348},[29614],{"type":26,"value":423},{"type":21,"tag":322,"props":29616,"children":29617},{"style":329},[29618],{"type":26,"value":29602},{"type":21,"tag":322,"props":29620,"children":29621},{"style":348},[29622],{"type":26,"value":423},{"type":21,"tag":322,"props":29624,"children":29625},{"style":329},[29626],{"type":26,"value":367},{"type":21,"tag":322,"props":29628,"children":29629},{"style":348},[29630],{"type":26,"value":6961},{"type":21,"tag":322,"props":29632,"children":29633},{"style":329},[29634],{"type":26,"value":29602},{"type":21,"tag":322,"props":29636,"children":29637},{"style":348},[29638],{"type":26,"value":6961},{"type":21,"tag":322,"props":29640,"children":29641},{"style":329},[29642],{"type":26,"value":367},{"type":21,"tag":322,"props":29644,"children":29645},{"style":348},[29646],{"type":26,"value":5618},{"type":21,"tag":322,"props":29648,"children":29649},{"style":329},[29650],{"type":26,"value":29651},")]\n",{"type":21,"tag":322,"props":29653,"children":29654},{"class":324,"line":474},[29655,29659,29663],{"type":21,"tag":322,"props":29656,"children":29657},{"style":329},[29658],{"type":26,"value":14634},{"type":21,"tag":322,"props":29660,"children":29661},{"style":3648},[29662],{"type":26,"value":3688},{"type":21,"tag":322,"props":29664,"children":29665},{"style":348},[29666],{"type":26,"value":12916},{"type":21,"tag":322,"props":29668,"children":29669},{"class":324,"line":496},[29670],{"type":21,"tag":322,"props":29671,"children":29672},{"emptyLinePlaceholder":3672},[29673],{"type":26,"value":3675},{"type":21,"tag":322,"props":29675,"children":29676},{"class":324,"line":16},[29677,29681,29685,29689,29693,29697,29701,29705],{"type":21,"tag":322,"props":29678,"children":29679},{"style":329},[29680],{"type":26,"value":14674},{"type":21,"tag":322,"props":29682,"children":29683},{"style":3648},[29684],{"type":26,"value":3688},{"type":21,"tag":322,"props":29686,"children":29687},{"style":329},[29688],{"type":26,"value":14683},{"type":21,"tag":322,"props":29690,"children":29691},{"style":359},[29692],{"type":26,"value":14688},{"type":21,"tag":322,"props":29694,"children":29695},{"style":329},[29696],{"type":26,"value":367},{"type":21,"tag":322,"props":29698,"children":29699},{"style":3713},[29700],{"type":26,"value":14697},{"type":21,"tag":322,"props":29702,"children":29703},{"style":3648},[29704],{"type":26,"value":3688},{"type":21,"tag":322,"props":29706,"children":29707},{"style":329},[29708],{"type":26,"value":14706},{"type":21,"tag":322,"props":29710,"children":29711},{"class":324,"line":3894},[29712],{"type":21,"tag":322,"props":29713,"children":29714},{"emptyLinePlaceholder":3672},[29715],{"type":26,"value":3675},{"type":21,"tag":322,"props":29717,"children":29718},{"class":324,"line":3904},[29719,29723,29728],{"type":21,"tag":322,"props":29720,"children":29721},{"style":3648},[29722],{"type":26,"value":4811},{"type":21,"tag":322,"props":29724,"children":29725},{"style":4814},[29726],{"type":26,"value":29727}," cost_unitary",{"type":21,"tag":322,"props":29729,"children":29730},{"style":329},[29731],{"type":26,"value":29732},"(gamma):\n",{"type":21,"tag":322,"props":29734,"children":29735},{"class":324,"line":1043},[29736],{"type":21,"tag":322,"props":29737,"children":29738},{"style":359},[29739],{"type":26,"value":29740},"    \"\"\"Encode the Max-Cut cost into phases.\"\"\"\n",{"type":21,"tag":322,"props":29742,"children":29743},{"class":324,"line":3964},[29744,29748,29753,29757],{"type":21,"tag":322,"props":29745,"children":29746},{"style":3648},[29747],{"type":26,"value":5190},{"type":21,"tag":322,"props":29749,"children":29750},{"style":329},[29751],{"type":26,"value":29752}," u, v ",{"type":21,"tag":322,"props":29754,"children":29755},{"style":3648},[29756],{"type":26,"value":3951},{"type":21,"tag":322,"props":29758,"children":29759},{"style":329},[29760],{"type":26,"value":29761}," edges:\n",{"type":21,"tag":322,"props":29763,"children":29764},{"class":324,"line":4012},[29765,29769,29773,29777],{"type":21,"tag":322,"props":29766,"children":29767},{"style":329},[29768],{"type":26,"value":27099},{"type":21,"tag":322,"props":29770,"children":29771},{"style":3713},[29772],{"type":26,"value":14697},{"type":21,"tag":322,"props":29774,"children":29775},{"style":3648},[29776],{"type":26,"value":3688},{"type":21,"tag":322,"props":29778,"children":29779},{"style":329},[29780],{"type":26,"value":29781},"[u, v])\n",{"type":21,"tag":322,"props":29783,"children":29784},{"class":324,"line":4054},[29785,29790,29794,29798,29803,29807,29811],{"type":21,"tag":322,"props":29786,"children":29787},{"style":329},[29788],{"type":26,"value":29789},"        qml.RZ(",{"type":21,"tag":322,"props":29791,"children":29792},{"style":348},[29793],{"type":26,"value":423},{"type":21,"tag":322,"props":29795,"children":29796},{"style":3648},[29797],{"type":26,"value":8795},{"type":21,"tag":322,"props":29799,"children":29800},{"style":329},[29801],{"type":26,"value":29802}," gamma, ",{"type":21,"tag":322,"props":29804,"children":29805},{"style":3713},[29806],{"type":26,"value":14697},{"type":21,"tag":322,"props":29808,"children":29809},{"style":3648},[29810],{"type":26,"value":3688},{"type":21,"tag":322,"props":29812,"children":29813},{"style":329},[29814],{"type":26,"value":29815},"v)\n",{"type":21,"tag":322,"props":29817,"children":29818},{"class":324,"line":5081},[29819,29823,29827,29831],{"type":21,"tag":322,"props":29820,"children":29821},{"style":329},[29822],{"type":26,"value":27099},{"type":21,"tag":322,"props":29824,"children":29825},{"style":3713},[29826],{"type":26,"value":14697},{"type":21,"tag":322,"props":29828,"children":29829},{"style":3648},[29830],{"type":26,"value":3688},{"type":21,"tag":322,"props":29832,"children":29833},{"style":329},[29834],{"type":26,"value":29781},{"type":21,"tag":322,"props":29836,"children":29837},{"class":324,"line":5100},[29838],{"type":21,"tag":322,"props":29839,"children":29840},{"emptyLinePlaceholder":3672},[29841],{"type":26,"value":3675},{"type":21,"tag":322,"props":29843,"children":29844},{"class":324,"line":5108},[29845,29849,29854],{"type":21,"tag":322,"props":29846,"children":29847},{"style":3648},[29848],{"type":26,"value":4811},{"type":21,"tag":322,"props":29850,"children":29851},{"style":4814},[29852],{"type":26,"value":29853}," mixer_unitary",{"type":21,"tag":322,"props":29855,"children":29856},{"style":329},[29857],{"type":26,"value":29858},"(beta):\n",{"type":21,"tag":322,"props":29860,"children":29861},{"class":324,"line":5139},[29862],{"type":21,"tag":322,"props":29863,"children":29864},{"style":359},[29865],{"type":26,"value":29866},"    \"\"\"Apply X-rotation mixer to all qubits.\"\"\"\n",{"type":21,"tag":322,"props":29868,"children":29869},{"class":324,"line":5184},[29870,29874,29878,29882,29886],{"type":21,"tag":322,"props":29871,"children":29872},{"style":3648},[29873],{"type":26,"value":5190},{"type":21,"tag":322,"props":29875,"children":29876},{"style":329},[29877],{"type":26,"value":5195},{"type":21,"tag":322,"props":29879,"children":29880},{"style":3648},[29881],{"type":26,"value":3951},{"type":21,"tag":322,"props":29883,"children":29884},{"style":348},[29885],{"type":26,"value":3956},{"type":21,"tag":322,"props":29887,"children":29888},{"style":329},[29889],{"type":26,"value":27034},{"type":21,"tag":322,"props":29891,"children":29892},{"class":324,"line":5223},[29893,29898,29902,29906,29911,29915,29919],{"type":21,"tag":322,"props":29894,"children":29895},{"style":329},[29896],{"type":26,"value":29897},"        qml.RX(",{"type":21,"tag":322,"props":29899,"children":29900},{"style":348},[29901],{"type":26,"value":423},{"type":21,"tag":322,"props":29903,"children":29904},{"style":3648},[29905],{"type":26,"value":8795},{"type":21,"tag":322,"props":29907,"children":29908},{"style":329},[29909],{"type":26,"value":29910}," beta, ",{"type":21,"tag":322,"props":29912,"children":29913},{"style":3713},[29914],{"type":26,"value":14697},{"type":21,"tag":322,"props":29916,"children":29917},{"style":3648},[29918],{"type":26,"value":3688},{"type":21,"tag":322,"props":29920,"children":29921},{"style":329},[29922],{"type":26,"value":27055},{"type":21,"tag":322,"props":29924,"children":29925},{"class":324,"line":5241},[29926],{"type":21,"tag":322,"props":29927,"children":29928},{"emptyLinePlaceholder":3672},[29929],{"type":26,"value":3675},{"type":21,"tag":322,"props":29931,"children":29932},{"class":324,"line":5315},[29933,29937],{"type":21,"tag":322,"props":29934,"children":29935},{"style":4814},[29936],{"type":26,"value":14721},{"type":21,"tag":322,"props":29938,"children":29939},{"style":329},[29940],{"type":26,"value":14726},{"type":21,"tag":322,"props":29942,"children":29943},{"class":324,"line":5343},[29944,29948,29953,29958,29962,29966],{"type":21,"tag":322,"props":29945,"children":29946},{"style":3648},[29947],{"type":26,"value":4811},{"type":21,"tag":322,"props":29949,"children":29950},{"style":4814},[29951],{"type":26,"value":29952}," qaoa_circuit",{"type":21,"tag":322,"props":29954,"children":29955},{"style":329},[29956],{"type":26,"value":29957},"(params, p",{"type":21,"tag":322,"props":29959,"children":29960},{"style":3648},[29961],{"type":26,"value":3688},{"type":21,"tag":322,"props":29963,"children":29964},{"style":348},[29965],{"type":26,"value":4004},{"type":21,"tag":322,"props":29967,"children":29968},{"style":329},[29969],{"type":26,"value":4864},{"type":21,"tag":322,"props":29971,"children":29972},{"class":324,"line":5372},[29973,29978,29982],{"type":21,"tag":322,"props":29974,"children":29975},{"style":329},[29976],{"type":26,"value":29977},"    gammas ",{"type":21,"tag":322,"props":29979,"children":29980},{"style":3648},[29981],{"type":26,"value":3688},{"type":21,"tag":322,"props":29983,"children":29984},{"style":329},[29985],{"type":26,"value":29986}," params[:p]\n",{"type":21,"tag":322,"props":29988,"children":29989},{"class":324,"line":5381},[29990,29995,29999],{"type":21,"tag":322,"props":29991,"children":29992},{"style":329},[29993],{"type":26,"value":29994},"    betas ",{"type":21,"tag":322,"props":29996,"children":29997},{"style":3648},[29998],{"type":26,"value":3688},{"type":21,"tag":322,"props":30000,"children":30001},{"style":329},[30002],{"type":26,"value":30003}," params[p:]\n",{"type":21,"tag":322,"props":30005,"children":30006},{"class":324,"line":5409},[30007],{"type":21,"tag":322,"props":30008,"children":30009},{"style":3898},[30010],{"type":26,"value":30011},"    # Start in uniform superposition\n",{"type":21,"tag":322,"props":30013,"children":30014},{"class":324,"line":5440},[30015,30019,30023,30027,30031],{"type":21,"tag":322,"props":30016,"children":30017},{"style":3648},[30018],{"type":26,"value":5190},{"type":21,"tag":322,"props":30020,"children":30021},{"style":329},[30022],{"type":26,"value":5195},{"type":21,"tag":322,"props":30024,"children":30025},{"style":3648},[30026],{"type":26,"value":3951},{"type":21,"tag":322,"props":30028,"children":30029},{"style":348},[30030],{"type":26,"value":3956},{"type":21,"tag":322,"props":30032,"children":30033},{"style":329},[30034],{"type":26,"value":27034},{"type":21,"tag":322,"props":30036,"children":30037},{"class":324,"line":5462},[30038,30043,30047,30051],{"type":21,"tag":322,"props":30039,"children":30040},{"style":329},[30041],{"type":26,"value":30042},"        qml.Hadamard(",{"type":21,"tag":322,"props":30044,"children":30045},{"style":3713},[30046],{"type":26,"value":14697},{"type":21,"tag":322,"props":30048,"children":30049},{"style":3648},[30050],{"type":26,"value":3688},{"type":21,"tag":322,"props":30052,"children":30053},{"style":329},[30054],{"type":26,"value":27055},{"type":21,"tag":322,"props":30056,"children":30057},{"class":324,"line":5508},[30058],{"type":21,"tag":322,"props":30059,"children":30060},{"style":3898},[30061],{"type":26,"value":30062},"    # Alternate p layers\n",{"type":21,"tag":322,"props":30064,"children":30065},{"class":324,"line":5521},[30066,30070,30075,30079,30083],{"type":21,"tag":322,"props":30067,"children":30068},{"style":3648},[30069],{"type":26,"value":5190},{"type":21,"tag":322,"props":30071,"children":30072},{"style":329},[30073],{"type":26,"value":30074}," layer ",{"type":21,"tag":322,"props":30076,"children":30077},{"style":3648},[30078],{"type":26,"value":3951},{"type":21,"tag":322,"props":30080,"children":30081},{"style":348},[30082],{"type":26,"value":3956},{"type":21,"tag":322,"props":30084,"children":30085},{"style":329},[30086],{"type":26,"value":30087},"(p):\n",{"type":21,"tag":322,"props":30089,"children":30090},{"class":324,"line":5529},[30091],{"type":21,"tag":322,"props":30092,"children":30093},{"style":329},[30094],{"type":26,"value":30095},"        cost_unitary(gammas[layer])\n",{"type":21,"tag":322,"props":30097,"children":30098},{"class":324,"line":5547},[30099],{"type":21,"tag":322,"props":30100,"children":30101},{"style":329},[30102],{"type":26,"value":30103},"        mixer_unitary(betas[layer])\n",{"type":21,"tag":322,"props":30105,"children":30106},{"class":324,"line":5565},[30107,30111,30115,30119,30123,30127],{"type":21,"tag":322,"props":30108,"children":30109},{"style":3648},[30110],{"type":26,"value":5036},{"type":21,"tag":322,"props":30112,"children":30113},{"style":329},[30114],{"type":26,"value":22263},{"type":21,"tag":322,"props":30116,"children":30117},{"style":3713},[30118],{"type":26,"value":14697},{"type":21,"tag":322,"props":30120,"children":30121},{"style":3648},[30122],{"type":26,"value":3688},{"type":21,"tag":322,"props":30124,"children":30125},{"style":348},[30126],{"type":26,"value":5392},{"type":21,"tag":322,"props":30128,"children":30129},{"style":329},[30130],{"type":26,"value":14834},{"type":21,"tag":322,"props":30132,"children":30133},{"class":324,"line":5573},[30134],{"type":21,"tag":322,"props":30135,"children":30136},{"emptyLinePlaceholder":3672},[30137],{"type":26,"value":3675},{"type":21,"tag":322,"props":30139,"children":30140},{"class":324,"line":5607},[30141,30145,30150,30154,30158,30162],{"type":21,"tag":322,"props":30142,"children":30143},{"style":3648},[30144],{"type":26,"value":4811},{"type":21,"tag":322,"props":30146,"children":30147},{"style":4814},[30148],{"type":26,"value":30149}," expected_cut",{"type":21,"tag":322,"props":30151,"children":30152},{"style":329},[30153],{"type":26,"value":29957},{"type":21,"tag":322,"props":30155,"children":30156},{"style":3648},[30157],{"type":26,"value":3688},{"type":21,"tag":322,"props":30159,"children":30160},{"style":348},[30161],{"type":26,"value":4004},{"type":21,"tag":322,"props":30163,"children":30164},{"style":329},[30165],{"type":26,"value":4864},{"type":21,"tag":322,"props":30167,"children":30168},{"class":324,"line":5625},[30169],{"type":21,"tag":322,"props":30170,"children":30171},{"style":359},[30172],{"type":26,"value":30173},"    \"\"\"Classical cost function: expected number of cut edges.\"\"\"\n",{"type":21,"tag":322,"props":30175,"children":30176},{"class":324,"line":5650},[30177,30182,30186],{"type":21,"tag":322,"props":30178,"children":30179},{"style":329},[30180],{"type":26,"value":30181},"    probs ",{"type":21,"tag":322,"props":30183,"children":30184},{"style":3648},[30185],{"type":26,"value":3688},{"type":21,"tag":322,"props":30187,"children":30188},{"style":329},[30189],{"type":26,"value":30190}," qaoa_circuit(params, p)\n",{"type":21,"tag":322,"props":30192,"children":30193},{"class":324,"line":5692},[30194,30199,30203],{"type":21,"tag":322,"props":30195,"children":30196},{"style":329},[30197],{"type":26,"value":30198},"    total ",{"type":21,"tag":322,"props":30200,"children":30201},{"style":3648},[30202],{"type":26,"value":3688},{"type":21,"tag":322,"props":30204,"children":30205},{"style":348},[30206],{"type":26,"value":30207}," 0.0\n",{"type":21,"tag":322,"props":30209,"children":30210},{"class":324,"line":5700},[30211,30215,30220,30224,30228],{"type":21,"tag":322,"props":30212,"children":30213},{"style":3648},[30214],{"type":26,"value":5190},{"type":21,"tag":322,"props":30216,"children":30217},{"style":329},[30218],{"type":26,"value":30219}," bitstring_idx, prob ",{"type":21,"tag":322,"props":30221,"children":30222},{"style":3648},[30223],{"type":26,"value":3951},{"type":21,"tag":322,"props":30225,"children":30226},{"style":348},[30227],{"type":26,"value":5335},{"type":21,"tag":322,"props":30229,"children":30230},{"style":329},[30231],{"type":26,"value":30232},"(probs):\n",{"type":21,"tag":322,"props":30234,"children":30235},{"class":324,"line":5735},[30236,30240,30244,30248,30253,30257,30262,30266,30270,30274,30279],{"type":21,"tag":322,"props":30237,"children":30238},{"style":329},[30239],{"type":26,"value":5247},{"type":21,"tag":322,"props":30241,"children":30242},{"style":3648},[30243],{"type":26,"value":3688},{"type":21,"tag":322,"props":30245,"children":30246},{"style":348},[30247],{"type":26,"value":5256},{"type":21,"tag":322,"props":30249,"children":30250},{"style":329},[30251],{"type":26,"value":30252},"(bitstring_idx, ",{"type":21,"tag":322,"props":30254,"children":30255},{"style":3648},[30256],{"type":26,"value":3773},{"type":21,"tag":322,"props":30258,"children":30259},{"style":359},[30260],{"type":26,"value":30261},"'0",{"type":21,"tag":322,"props":30263,"children":30264},{"style":348},[30265],{"type":26,"value":3783},{"type":21,"tag":322,"props":30267,"children":30268},{"style":329},[30269],{"type":26,"value":15946},{"type":21,"tag":322,"props":30271,"children":30272},{"style":348},[30273],{"type":26,"value":3793},{"type":21,"tag":322,"props":30275,"children":30276},{"style":359},[30277],{"type":26,"value":30278},"b'",{"type":21,"tag":322,"props":30280,"children":30281},{"style":329},[30282],{"type":26,"value":3748},{"type":21,"tag":322,"props":30284,"children":30285},{"class":324,"line":5851},[30286,30291,30295,30299,30303,30307,30312,30316,30320,30325,30330,30335,30340],{"type":21,"tag":322,"props":30287,"children":30288},{"style":329},[30289],{"type":26,"value":30290},"        cut ",{"type":21,"tag":322,"props":30292,"children":30293},{"style":3648},[30294],{"type":26,"value":3688},{"type":21,"tag":322,"props":30296,"children":30297},{"style":348},[30298],{"type":26,"value":6770},{"type":21,"tag":322,"props":30300,"children":30301},{"style":329},[30302],{"type":26,"value":3768},{"type":21,"tag":322,"props":30304,"children":30305},{"style":348},[30306],{"type":26,"value":4004},{"type":21,"tag":322,"props":30308,"children":30309},{"style":3648},[30310],{"type":26,"value":30311}," for",{"type":21,"tag":322,"props":30313,"children":30314},{"style":329},[30315],{"type":26,"value":29752},{"type":21,"tag":322,"props":30317,"children":30318},{"style":3648},[30319],{"type":26,"value":3951},{"type":21,"tag":322,"props":30321,"children":30322},{"style":329},[30323],{"type":26,"value":30324}," edges ",{"type":21,"tag":322,"props":30326,"children":30327},{"style":3648},[30328],{"type":26,"value":30329},"if",{"type":21,"tag":322,"props":30331,"children":30332},{"style":329},[30333],{"type":26,"value":30334}," bits[u] ",{"type":21,"tag":322,"props":30336,"children":30337},{"style":3648},[30338],{"type":26,"value":30339},"!=",{"type":21,"tag":322,"props":30341,"children":30342},{"style":329},[30343],{"type":26,"value":30344}," bits[v])\n",{"type":21,"tag":322,"props":30346,"children":30347},{"class":324,"line":5859},[30348,30353,30358,30363,30367],{"type":21,"tag":322,"props":30349,"children":30350},{"style":329},[30351],{"type":26,"value":30352},"        total ",{"type":21,"tag":322,"props":30354,"children":30355},{"style":3648},[30356],{"type":26,"value":30357},"+=",{"type":21,"tag":322,"props":30359,"children":30360},{"style":329},[30361],{"type":26,"value":30362}," prob ",{"type":21,"tag":322,"props":30364,"children":30365},{"style":3648},[30366],{"type":26,"value":6843},{"type":21,"tag":322,"props":30368,"children":30369},{"style":329},[30370],{"type":26,"value":30371}," cut\n",{"type":21,"tag":322,"props":30373,"children":30374},{"class":324,"line":5904},[30375,30379,30383,30388],{"type":21,"tag":322,"props":30376,"children":30377},{"style":3648},[30378],{"type":26,"value":5036},{"type":21,"tag":322,"props":30380,"children":30381},{"style":3648},[30382],{"type":26,"value":5002},{"type":21,"tag":322,"props":30384,"children":30385},{"style":329},[30386],{"type":26,"value":30387},"total  ",{"type":21,"tag":322,"props":30389,"children":30390},{"style":3898},[30391],{"type":26,"value":30392},"# Minimize negative cut\n",{"type":21,"tag":322,"props":30394,"children":30395},{"class":324,"line":5922},[30396],{"type":21,"tag":322,"props":30397,"children":30398},{"emptyLinePlaceholder":3672},[30399],{"type":26,"value":3675},{"type":21,"tag":322,"props":30401,"children":30402},{"class":324,"line":5930},[30403],{"type":21,"tag":322,"props":30404,"children":30405},{"style":3898},[30406],{"type":26,"value":30407},"# Optimize p=1 QAOA\n",{"type":21,"tag":322,"props":30409,"children":30410},{"class":324,"line":6018},[30411,30416,30420],{"type":21,"tag":322,"props":30412,"children":30413},{"style":329},[30414],{"type":26,"value":30415},"p ",{"type":21,"tag":322,"props":30417,"children":30418},{"style":3648},[30419],{"type":26,"value":3688},{"type":21,"tag":322,"props":30421,"children":30422},{"style":348},[30423],{"type":26,"value":13242},{"type":21,"tag":322,"props":30425,"children":30426},{"class":324,"line":15521},[30427,30432,30436,30440,30444,30449,30453,30457],{"type":21,"tag":322,"props":30428,"children":30429},{"style":329},[30430],{"type":26,"value":30431},"init_params ",{"type":21,"tag":322,"props":30433,"children":30434},{"style":3648},[30435],{"type":26,"value":3688},{"type":21,"tag":322,"props":30437,"children":30438},{"style":329},[30439],{"type":26,"value":25699},{"type":21,"tag":322,"props":30441,"children":30442},{"style":348},[30443],{"type":26,"value":5618},{"type":21,"tag":322,"props":30445,"children":30446},{"style":329},[30447],{"type":26,"value":30448},", np.pi, ",{"type":21,"tag":322,"props":30450,"children":30451},{"style":348},[30452],{"type":26,"value":423},{"type":21,"tag":322,"props":30454,"children":30455},{"style":3648},[30456],{"type":26,"value":8795},{"type":21,"tag":322,"props":30458,"children":30459},{"style":329},[30460],{"type":26,"value":30461}," p)\n",{"type":21,"tag":322,"props":30463,"children":30464},{"class":324,"line":15539},[30465,30469,30473,30478,30483,30487,30491],{"type":21,"tag":322,"props":30466,"children":30467},{"style":329},[30468],{"type":26,"value":19775},{"type":21,"tag":322,"props":30470,"children":30471},{"style":3648},[30472],{"type":26,"value":3688},{"type":21,"tag":322,"props":30474,"children":30475},{"style":329},[30476],{"type":26,"value":30477}," minimize(expected_cut, init_params, ",{"type":21,"tag":322,"props":30479,"children":30480},{"style":3713},[30481],{"type":26,"value":30482},"method",{"type":21,"tag":322,"props":30484,"children":30485},{"style":3648},[30486],{"type":26,"value":3688},{"type":21,"tag":322,"props":30488,"children":30489},{"style":359},[30490],{"type":26,"value":23341},{"type":21,"tag":322,"props":30492,"children":30493},{"style":329},[30494],{"type":26,"value":428},{"type":21,"tag":322,"props":30496,"children":30497},{"class":324,"line":15557},[30498,30503,30507,30511,30516,30520,30524],{"type":21,"tag":322,"props":30499,"children":30500},{"style":3713},[30501],{"type":26,"value":30502},"                  options",{"type":21,"tag":322,"props":30504,"children":30505},{"style":3648},[30506],{"type":26,"value":3688},{"type":21,"tag":322,"props":30508,"children":30509},{"style":329},[30510],{"type":26,"value":3783},{"type":21,"tag":322,"props":30512,"children":30513},{"style":359},[30514],{"type":26,"value":30515},"'maxiter'",{"type":21,"tag":322,"props":30517,"children":30518},{"style":329},[30519],{"type":26,"value":418},{"type":21,"tag":322,"props":30521,"children":30522},{"style":348},[30523],{"type":26,"value":15079},{"type":21,"tag":322,"props":30525,"children":30526},{"style":329},[30527],{"type":26,"value":30528},"})\n",{"type":21,"tag":322,"props":30530,"children":30531},{"class":324,"line":15565},[30532],{"type":21,"tag":322,"props":30533,"children":30534},{"emptyLinePlaceholder":3672},[30535],{"type":26,"value":3675},{"type":21,"tag":322,"props":30537,"children":30538},{"class":324,"line":15599},[30539,30543,30547,30551,30556,30560,30565,30569,30573],{"type":21,"tag":322,"props":30540,"children":30541},{"style":348},[30542],{"type":26,"value":3763},{"type":21,"tag":322,"props":30544,"children":30545},{"style":329},[30546],{"type":26,"value":3768},{"type":21,"tag":322,"props":30548,"children":30549},{"style":3648},[30550],{"type":26,"value":3773},{"type":21,"tag":322,"props":30552,"children":30553},{"style":359},[30554],{"type":26,"value":30555},"\"Optimized params: ",{"type":21,"tag":322,"props":30557,"children":30558},{"style":348},[30559],{"type":26,"value":3783},{"type":21,"tag":322,"props":30561,"children":30562},{"style":329},[30563],{"type":26,"value":30564},"result.x",{"type":21,"tag":322,"props":30566,"children":30567},{"style":348},[30568],{"type":26,"value":3793},{"type":21,"tag":322,"props":30570,"children":30571},{"style":359},[30572],{"type":26,"value":3798},{"type":21,"tag":322,"props":30574,"children":30575},{"style":329},[30576],{"type":26,"value":3748},{"type":21,"tag":322,"props":30578,"children":30579},{"class":324,"line":15634},[30580,30584,30588,30592,30597,30601,30605,30610,30614,30618,30623],{"type":21,"tag":322,"props":30581,"children":30582},{"style":348},[30583],{"type":26,"value":3763},{"type":21,"tag":322,"props":30585,"children":30586},{"style":329},[30587],{"type":26,"value":3768},{"type":21,"tag":322,"props":30589,"children":30590},{"style":3648},[30591],{"type":26,"value":3773},{"type":21,"tag":322,"props":30593,"children":30594},{"style":359},[30595],{"type":26,"value":30596},"\"Expected cut: ",{"type":21,"tag":322,"props":30598,"children":30599},{"style":348},[30600],{"type":26,"value":3783},{"type":21,"tag":322,"props":30602,"children":30603},{"style":3648},[30604],{"type":26,"value":5298},{"type":21,"tag":322,"props":30606,"children":30607},{"style":329},[30608],{"type":26,"value":30609},"result.fun",{"type":21,"tag":322,"props":30611,"children":30612},{"style":3648},[30613],{"type":26,"value":15737},{"type":21,"tag":322,"props":30615,"children":30616},{"style":348},[30617],{"type":26,"value":3793},{"type":21,"tag":322,"props":30619,"children":30620},{"style":359},[30621],{"type":26,"value":30622}," \u002F 4.0 maximum\"",{"type":21,"tag":322,"props":30624,"children":30625},{"style":329},[30626],{"type":26,"value":3748},{"type":21,"tag":22,"props":30628,"children":30629},{},[30630,30632,30637,30639,30645],{"type":26,"value":30631},"इसे चलाने पर आमतौर पर ",{"type":21,"tag":79,"props":30633,"children":30635},{"className":30634},[],[30636],{"type":26,"value":19986},{"type":26,"value":30638}," के साथ ",{"type":21,"tag":79,"props":30640,"children":30642},{"className":30641},[],[30643],{"type":26,"value":30644},"expected_cut ≈ 3.5",{"type":26,"value":30646}," प्राप्त होता है — अधिकतम कट का 87.5%।",{"type":21,"tag":59,"props":30648,"children":30650},{"id":30649},"सर्वोत्तम-समाधान-का-सैंपलिंग",[30651],{"type":26,"value":30652},"सर्वोत्तम समाधान का सैंपलिंग",{"type":21,"tag":22,"props":30654,"children":30655},{},[30656],{"type":26,"value":30657},"अनुकूलन के बाद, सबसे संभावित अच्छे समाधान खोजने के लिए सर्किट का सैंपल लें:",{"type":21,"tag":312,"props":30659,"children":30661},{"code":30660,"language":3638,"meta":7,"className":3636,"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",[30662],{"type":21,"tag":79,"props":30663,"children":30664},{"__ignoreMap":7},[30665,30676,30717,30732,30747,30770,30789,30812,30819,30826,30854,30861,30894,30901,30909,30930,30947,30968,31017,31073,31089,31096,31104,31167],{"type":21,"tag":322,"props":30666,"children":30667},{"class":324,"line":325},[30668,30672],{"type":21,"tag":322,"props":30669,"children":30670},{"style":4814},[30671],{"type":26,"value":14721},{"type":21,"tag":322,"props":30673,"children":30674},{"style":329},[30675],{"type":26,"value":14726},{"type":21,"tag":322,"props":30677,"children":30678},{"class":324,"line":335},[30679,30683,30688,30692,30696,30700,30705,30709,30713],{"type":21,"tag":322,"props":30680,"children":30681},{"style":3648},[30682],{"type":26,"value":4811},{"type":21,"tag":322,"props":30684,"children":30685},{"style":4814},[30686],{"type":26,"value":30687}," sample_circuit",{"type":21,"tag":322,"props":30689,"children":30690},{"style":329},[30691],{"type":26,"value":29957},{"type":21,"tag":322,"props":30693,"children":30694},{"style":3648},[30695],{"type":26,"value":3688},{"type":21,"tag":322,"props":30697,"children":30698},{"style":348},[30699],{"type":26,"value":4004},{"type":21,"tag":322,"props":30701,"children":30702},{"style":329},[30703],{"type":26,"value":30704},", shots",{"type":21,"tag":322,"props":30706,"children":30707},{"style":3648},[30708],{"type":26,"value":3688},{"type":21,"tag":322,"props":30710,"children":30711},{"style":348},[30712],{"type":26,"value":20912},{"type":21,"tag":322,"props":30714,"children":30715},{"style":329},[30716],{"type":26,"value":4864},{"type":21,"tag":322,"props":30718,"children":30719},{"class":324,"line":344},[30720,30724,30728],{"type":21,"tag":322,"props":30721,"children":30722},{"style":329},[30723],{"type":26,"value":29977},{"type":21,"tag":322,"props":30725,"children":30726},{"style":3648},[30727],{"type":26,"value":3688},{"type":21,"tag":322,"props":30729,"children":30730},{"style":329},[30731],{"type":26,"value":29986},{"type":21,"tag":322,"props":30733,"children":30734},{"class":324,"line":407},[30735,30739,30743],{"type":21,"tag":322,"props":30736,"children":30737},{"style":329},[30738],{"type":26,"value":29994},{"type":21,"tag":322,"props":30740,"children":30741},{"style":3648},[30742],{"type":26,"value":3688},{"type":21,"tag":322,"props":30744,"children":30745},{"style":329},[30746],{"type":26,"value":30003},{"type":21,"tag":322,"props":30748,"children":30749},{"class":324,"line":431},[30750,30754,30758,30762,30766],{"type":21,"tag":322,"props":30751,"children":30752},{"style":3648},[30753],{"type":26,"value":5190},{"type":21,"tag":322,"props":30755,"children":30756},{"style":329},[30757],{"type":26,"value":5195},{"type":21,"tag":322,"props":30759,"children":30760},{"style":3648},[30761],{"type":26,"value":3951},{"type":21,"tag":322,"props":30763,"children":30764},{"style":348},[30765],{"type":26,"value":3956},{"type":21,"tag":322,"props":30767,"children":30768},{"style":329},[30769],{"type":26,"value":27034},{"type":21,"tag":322,"props":30771,"children":30772},{"class":324,"line":453},[30773,30777,30781,30785],{"type":21,"tag":322,"props":30774,"children":30775},{"style":329},[30776],{"type":26,"value":30042},{"type":21,"tag":322,"props":30778,"children":30779},{"style":3713},[30780],{"type":26,"value":14697},{"type":21,"tag":322,"props":30782,"children":30783},{"style":3648},[30784],{"type":26,"value":3688},{"type":21,"tag":322,"props":30786,"children":30787},{"style":329},[30788],{"type":26,"value":27055},{"type":21,"tag":322,"props":30790,"children":30791},{"class":324,"line":474},[30792,30796,30800,30804,30808],{"type":21,"tag":322,"props":30793,"children":30794},{"style":3648},[30795],{"type":26,"value":5190},{"type":21,"tag":322,"props":30797,"children":30798},{"style":329},[30799],{"type":26,"value":30074},{"type":21,"tag":322,"props":30801,"children":30802},{"style":3648},[30803],{"type":26,"value":3951},{"type":21,"tag":322,"props":30805,"children":30806},{"style":348},[30807],{"type":26,"value":3956},{"type":21,"tag":322,"props":30809,"children":30810},{"style":329},[30811],{"type":26,"value":30087},{"type":21,"tag":322,"props":30813,"children":30814},{"class":324,"line":496},[30815],{"type":21,"tag":322,"props":30816,"children":30817},{"style":329},[30818],{"type":26,"value":30095},{"type":21,"tag":322,"props":30820,"children":30821},{"class":324,"line":16},[30822],{"type":21,"tag":322,"props":30823,"children":30824},{"style":329},[30825],{"type":26,"value":30103},{"type":21,"tag":322,"props":30827,"children":30828},{"class":324,"line":3894},[30829,30833,30838,30842,30846,30850],{"type":21,"tag":322,"props":30830,"children":30831},{"style":3648},[30832],{"type":26,"value":5036},{"type":21,"tag":322,"props":30834,"children":30835},{"style":329},[30836],{"type":26,"value":30837}," qml.sample(",{"type":21,"tag":322,"props":30839,"children":30840},{"style":3713},[30841],{"type":26,"value":14697},{"type":21,"tag":322,"props":30843,"children":30844},{"style":3648},[30845],{"type":26,"value":3688},{"type":21,"tag":322,"props":30847,"children":30848},{"style":348},[30849],{"type":26,"value":5392},{"type":21,"tag":322,"props":30851,"children":30852},{"style":329},[30853],{"type":26,"value":14834},{"type":21,"tag":322,"props":30855,"children":30856},{"class":324,"line":3904},[30857],{"type":21,"tag":322,"props":30858,"children":30859},{"emptyLinePlaceholder":3672},[30860],{"type":26,"value":3675},{"type":21,"tag":322,"props":30862,"children":30863},{"class":324,"line":1043},[30864,30869,30873,30878,30882,30886,30890],{"type":21,"tag":322,"props":30865,"children":30866},{"style":329},[30867],{"type":26,"value":30868},"samples ",{"type":21,"tag":322,"props":30870,"children":30871},{"style":3648},[30872],{"type":26,"value":3688},{"type":21,"tag":322,"props":30874,"children":30875},{"style":329},[30876],{"type":26,"value":30877}," sample_circuit(result.x, ",{"type":21,"tag":322,"props":30879,"children":30880},{"style":3713},[30881],{"type":26,"value":4573},{"type":21,"tag":322,"props":30883,"children":30884},{"style":3648},[30885],{"type":26,"value":3688},{"type":21,"tag":322,"props":30887,"children":30888},{"style":348},[30889],{"type":26,"value":20912},{"type":21,"tag":322,"props":30891,"children":30892},{"style":329},[30893],{"type":26,"value":3748},{"type":21,"tag":322,"props":30895,"children":30896},{"class":324,"line":3964},[30897],{"type":21,"tag":322,"props":30898,"children":30899},{"emptyLinePlaceholder":3672},[30900],{"type":26,"value":3675},{"type":21,"tag":322,"props":30902,"children":30903},{"class":324,"line":4012},[30904],{"type":21,"tag":322,"props":30905,"children":30906},{"style":3898},[30907],{"type":26,"value":30908},"# Count cut values for each bitstring\n",{"type":21,"tag":322,"props":30910,"children":30911},{"class":324,"line":4054},[30912,30916,30921,30925],{"type":21,"tag":322,"props":30913,"children":30914},{"style":3648},[30915],{"type":26,"value":3651},{"type":21,"tag":322,"props":30917,"children":30918},{"style":329},[30919],{"type":26,"value":30920}," collections ",{"type":21,"tag":322,"props":30922,"children":30923},{"style":3648},[30924],{"type":26,"value":3661},{"type":21,"tag":322,"props":30926,"children":30927},{"style":329},[30928],{"type":26,"value":30929}," Counter\n",{"type":21,"tag":322,"props":30931,"children":30932},{"class":324,"line":5081},[30933,30938,30942],{"type":21,"tag":322,"props":30934,"children":30935},{"style":329},[30936],{"type":26,"value":30937},"cut_counts ",{"type":21,"tag":322,"props":30939,"children":30940},{"style":3648},[30941],{"type":26,"value":3688},{"type":21,"tag":322,"props":30943,"children":30944},{"style":329},[30945],{"type":26,"value":30946}," Counter()\n",{"type":21,"tag":322,"props":30948,"children":30949},{"class":324,"line":5100},[30950,30954,30959,30963],{"type":21,"tag":322,"props":30951,"children":30952},{"style":3648},[30953],{"type":26,"value":3941},{"type":21,"tag":322,"props":30955,"children":30956},{"style":329},[30957],{"type":26,"value":30958}," bits ",{"type":21,"tag":322,"props":30960,"children":30961},{"style":3648},[30962],{"type":26,"value":3951},{"type":21,"tag":322,"props":30964,"children":30965},{"style":329},[30966],{"type":26,"value":30967}," samples:\n",{"type":21,"tag":322,"props":30969,"children":30970},{"class":324,"line":5108},[30971,30976,30980,30985,30990,30995,31000,31004,31008,31012],{"type":21,"tag":322,"props":30972,"children":30973},{"style":329},[30974],{"type":26,"value":30975},"    key ",{"type":21,"tag":322,"props":30977,"children":30978},{"style":3648},[30979],{"type":26,"value":3688},{"type":21,"tag":322,"props":30981,"children":30982},{"style":359},[30983],{"type":26,"value":30984}," ''",{"type":21,"tag":322,"props":30986,"children":30987},{"style":329},[30988],{"type":26,"value":30989},".join(",{"type":21,"tag":322,"props":30991,"children":30992},{"style":348},[30993],{"type":26,"value":30994},"str",{"type":21,"tag":322,"props":30996,"children":30997},{"style":329},[30998],{"type":26,"value":30999},"(b) ",{"type":21,"tag":322,"props":31001,"children":31002},{"style":3648},[31003],{"type":26,"value":3941},{"type":21,"tag":322,"props":31005,"children":31006},{"style":329},[31007],{"type":26,"value":5354},{"type":21,"tag":322,"props":31009,"children":31010},{"style":3648},[31011],{"type":26,"value":3951},{"type":21,"tag":322,"props":31013,"children":31014},{"style":329},[31015],{"type":26,"value":31016}," bits)\n",{"type":21,"tag":322,"props":31018,"children":31019},{"class":324,"line":5139},[31020,31025,31029,31033,31037,31041,31045,31049,31053,31057,31061,31065,31069],{"type":21,"tag":322,"props":31021,"children":31022},{"style":329},[31023],{"type":26,"value":31024},"    cut ",{"type":21,"tag":322,"props":31026,"children":31027},{"style":3648},[31028],{"type":26,"value":3688},{"type":21,"tag":322,"props":31030,"children":31031},{"style":348},[31032],{"type":26,"value":6770},{"type":21,"tag":322,"props":31034,"children":31035},{"style":329},[31036],{"type":26,"value":3768},{"type":21,"tag":322,"props":31038,"children":31039},{"style":348},[31040],{"type":26,"value":4004},{"type":21,"tag":322,"props":31042,"children":31043},{"style":3648},[31044],{"type":26,"value":30311},{"type":21,"tag":322,"props":31046,"children":31047},{"style":329},[31048],{"type":26,"value":29752},{"type":21,"tag":322,"props":31050,"children":31051},{"style":3648},[31052],{"type":26,"value":3951},{"type":21,"tag":322,"props":31054,"children":31055},{"style":329},[31056],{"type":26,"value":30324},{"type":21,"tag":322,"props":31058,"children":31059},{"style":3648},[31060],{"type":26,"value":30329},{"type":21,"tag":322,"props":31062,"children":31063},{"style":329},[31064],{"type":26,"value":30334},{"type":21,"tag":322,"props":31066,"children":31067},{"style":3648},[31068],{"type":26,"value":30339},{"type":21,"tag":322,"props":31070,"children":31071},{"style":329},[31072],{"type":26,"value":30344},{"type":21,"tag":322,"props":31074,"children":31075},{"class":324,"line":5184},[31076,31081,31085],{"type":21,"tag":322,"props":31077,"children":31078},{"style":329},[31079],{"type":26,"value":31080},"    cut_counts[(key, cut)] ",{"type":21,"tag":322,"props":31082,"children":31083},{"style":3648},[31084],{"type":26,"value":30357},{"type":21,"tag":322,"props":31086,"children":31087},{"style":348},[31088],{"type":26,"value":13242},{"type":21,"tag":322,"props":31090,"children":31091},{"class":324,"line":5223},[31092],{"type":21,"tag":322,"props":31093,"children":31094},{"emptyLinePlaceholder":3672},[31095],{"type":26,"value":3675},{"type":21,"tag":322,"props":31097,"children":31098},{"class":324,"line":5241},[31099],{"type":21,"tag":322,"props":31100,"children":31101},{"style":3898},[31102],{"type":26,"value":31103},"# Show top 5 most frequent bitstrings\n",{"type":21,"tag":322,"props":31105,"children":31106},{"class":324,"line":5315},[31107,31111,31116,31120,31124,31129,31133,31137,31142,31146,31151,31155,31159,31163],{"type":21,"tag":322,"props":31108,"children":31109},{"style":3648},[31110],{"type":26,"value":3941},{"type":21,"tag":322,"props":31112,"children":31113},{"style":329},[31114],{"type":26,"value":31115}," (bits, cut), count ",{"type":21,"tag":322,"props":31117,"children":31118},{"style":3648},[31119],{"type":26,"value":3951},{"type":21,"tag":322,"props":31121,"children":31122},{"style":348},[31123],{"type":26,"value":17585},{"type":21,"tag":322,"props":31125,"children":31126},{"style":329},[31127],{"type":26,"value":31128},"(cut_counts.items(), ",{"type":21,"tag":322,"props":31130,"children":31131},{"style":3713},[31132],{"type":26,"value":3989},{"type":21,"tag":322,"props":31134,"children":31135},{"style":3648},[31136],{"type":26,"value":3994},{"type":21,"tag":322,"props":31138,"children":31139},{"style":329},[31140],{"type":26,"value":31141}," x: ",{"type":21,"tag":322,"props":31143,"children":31144},{"style":3648},[31145],{"type":26,"value":5298},{"type":21,"tag":322,"props":31147,"children":31148},{"style":329},[31149],{"type":26,"value":31150},"x[",{"type":21,"tag":322,"props":31152,"children":31153},{"style":348},[31154],{"type":26,"value":4004},{"type":21,"tag":322,"props":31156,"children":31157},{"style":329},[31158],{"type":26,"value":18024},{"type":21,"tag":322,"props":31160,"children":31161},{"style":348},[31162],{"type":26,"value":7132},{"type":21,"tag":322,"props":31164,"children":31165},{"style":329},[31166],{"type":26,"value":18033},{"type":21,"tag":322,"props":31168,"children":31169},{"class":324,"line":5343},[31170,31174,31178,31182,31186,31190,31194,31198,31203,31207,31212,31216,31221,31225,31230,31234,31238,31243,31247,31252],{"type":21,"tag":322,"props":31171,"children":31172},{"style":348},[31173],{"type":26,"value":17672},{"type":21,"tag":322,"props":31175,"children":31176},{"style":329},[31177],{"type":26,"value":3768},{"type":21,"tag":322,"props":31179,"children":31180},{"style":3648},[31181],{"type":26,"value":3773},{"type":21,"tag":322,"props":31183,"children":31184},{"style":359},[31185],{"type":26,"value":3798},{"type":21,"tag":322,"props":31187,"children":31188},{"style":348},[31189],{"type":26,"value":3783},{"type":21,"tag":322,"props":31191,"children":31192},{"style":329},[31193],{"type":26,"value":17693},{"type":21,"tag":322,"props":31195,"children":31196},{"style":348},[31197],{"type":26,"value":3793},{"type":21,"tag":322,"props":31199,"children":31200},{"style":359},[31201],{"type":26,"value":31202},"  cut=",{"type":21,"tag":322,"props":31204,"children":31205},{"style":348},[31206],{"type":26,"value":3783},{"type":21,"tag":322,"props":31208,"children":31209},{"style":329},[31210],{"type":26,"value":31211},"cut",{"type":21,"tag":322,"props":31213,"children":31214},{"style":348},[31215],{"type":26,"value":3793},{"type":21,"tag":322,"props":31217,"children":31218},{"style":359},[31219],{"type":26,"value":31220},"  frequency=",{"type":21,"tag":322,"props":31222,"children":31223},{"style":348},[31224],{"type":26,"value":3783},{"type":21,"tag":322,"props":31226,"children":31227},{"style":329},[31228],{"type":26,"value":31229},"count",{"type":21,"tag":322,"props":31231,"children":31232},{"style":3648},[31233],{"type":26,"value":174},{"type":21,"tag":322,"props":31235,"children":31236},{"style":348},[31237],{"type":26,"value":20968},{"type":21,"tag":322,"props":31239,"children":31240},{"style":3648},[31241],{"type":26,"value":31242},":.1f",{"type":21,"tag":322,"props":31244,"children":31245},{"style":348},[31246],{"type":26,"value":3793},{"type":21,"tag":322,"props":31248,"children":31249},{"style":359},[31250],{"type":26,"value":31251},"%\"",{"type":21,"tag":322,"props":31253,"children":31254},{"style":329},[31255],{"type":26,"value":3748},{"type":21,"tag":22,"props":31257,"children":31258},{},[31259],{"type":26,"value":31260},"अपेक्षित आउटपुट:",{"type":21,"tag":312,"props":31262,"children":31264},{"code":31263},"0101  cut=4  frequency=28.3%\n1010  cut=4  frequency=27.1%\n0110  cut=3  frequency=8.4%\n...\n",[31265],{"type":21,"tag":79,"props":31266,"children":31267},{"__ignoreMap":7},[31268],{"type":26,"value":31263},{"type":21,"tag":22,"props":31270,"children":31271},{},[31272,31274,31279,31280,31285],{"type":26,"value":31273},"इष्टतम समाधान (",{"type":21,"tag":79,"props":31275,"children":31277},{"className":31276},[],[31278],{"type":26,"value":29397},{"type":26,"value":814},{"type":21,"tag":79,"props":31281,"children":31283},{"className":31282},[],[31284],{"type":26,"value":17878},{"type":26,"value":31286},") हावी रहते हैं — QAOA ने उनकी प्रायिकता को बढ़ा दिया।",{"type":21,"tag":59,"props":31288,"children":31290},{"id":31289},"वही-समस्या-hlquantum-के-साथ",[31291],{"type":26,"value":31292},"वही समस्या HLQuantum के साथ",{"type":21,"tag":22,"props":31294,"children":31295},{},[31296],{"type":26,"value":31297},"HLQuantum का अंतर्निहित QAOA आपको सर्किट निर्माण को पूरी तरह छोड़ देने की अनुमति देता है:",{"type":21,"tag":312,"props":31299,"children":31301},{"code":31300,"language":3638,"meta":7,"className":3636,"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",[31302],{"type":21,"tag":79,"props":31303,"children":31304},{"__ignoreMap":7},[31305,31324,31331,31411,31418,31434,31451,31472,31492,31511,31531,31538,31545,31562,31579],{"type":21,"tag":322,"props":31306,"children":31307},{"class":324,"line":325},[31308,31312,31316,31320],{"type":21,"tag":322,"props":31309,"children":31310},{"style":3648},[31311],{"type":26,"value":3661},{"type":21,"tag":322,"props":31313,"children":31314},{"style":329},[31315],{"type":26,"value":19743},{"type":21,"tag":322,"props":31317,"children":31318},{"style":3648},[31319],{"type":26,"value":4728},{"type":21,"tag":322,"props":31321,"children":31322},{"style":329},[31323],{"type":26,"value":19752},{"type":21,"tag":322,"props":31325,"children":31326},{"class":324,"line":335},[31327],{"type":21,"tag":322,"props":31328,"children":31329},{"emptyLinePlaceholder":3672},[31330],{"type":26,"value":3675},{"type":21,"tag":322,"props":31332,"children":31333},{"class":324,"line":344},[31334,31339,31343,31347,31351,31355,31359,31363,31367,31371,31375,31379,31383,31387,31391,31395,31399,31403,31407],{"type":21,"tag":322,"props":31335,"children":31336},{"style":329},[31337],{"type":26,"value":31338},"graph ",{"type":21,"tag":322,"props":31340,"children":31341},{"style":3648},[31342],{"type":26,"value":3688},{"type":21,"tag":322,"props":31344,"children":31345},{"style":329},[31346],{"type":26,"value":29585},{"type":21,"tag":322,"props":31348,"children":31349},{"style":348},[31350],{"type":26,"value":5618},{"type":21,"tag":322,"props":31352,"children":31353},{"style":329},[31354],{"type":26,"value":367},{"type":21,"tag":322,"props":31356,"children":31357},{"style":348},[31358],{"type":26,"value":4004},{"type":21,"tag":322,"props":31360,"children":31361},{"style":329},[31362],{"type":26,"value":29602},{"type":21,"tag":322,"props":31364,"children":31365},{"style":348},[31366],{"type":26,"value":4004},{"type":21,"tag":322,"props":31368,"children":31369},{"style":329},[31370],{"type":26,"value":367},{"type":21,"tag":322,"props":31372,"children":31373},{"style":348},[31374],{"type":26,"value":423},{"type":21,"tag":322,"props":31376,"children":31377},{"style":329},[31378],{"type":26,"value":29602},{"type":21,"tag":322,"props":31380,"children":31381},{"style":348},[31382],{"type":26,"value":423},{"type":21,"tag":322,"props":31384,"children":31385},{"style":329},[31386],{"type":26,"value":367},{"type":21,"tag":322,"props":31388,"children":31389},{"style":348},[31390],{"type":26,"value":6961},{"type":21,"tag":322,"props":31392,"children":31393},{"style":329},[31394],{"type":26,"value":29602},{"type":21,"tag":322,"props":31396,"children":31397},{"style":348},[31398],{"type":26,"value":6961},{"type":21,"tag":322,"props":31400,"children":31401},{"style":329},[31402],{"type":26,"value":367},{"type":21,"tag":322,"props":31404,"children":31405},{"style":348},[31406],{"type":26,"value":5618},{"type":21,"tag":322,"props":31408,"children":31409},{"style":329},[31410],{"type":26,"value":29651},{"type":21,"tag":322,"props":31412,"children":31413},{"class":324,"line":407},[31414],{"type":21,"tag":322,"props":31415,"children":31416},{"emptyLinePlaceholder":3672},[31417],{"type":26,"value":3675},{"type":21,"tag":322,"props":31419,"children":31420},{"class":324,"line":431},[31421,31425,31429],{"type":21,"tag":322,"props":31422,"children":31423},{"style":329},[31424],{"type":26,"value":19775},{"type":21,"tag":322,"props":31426,"children":31427},{"style":3648},[31428],{"type":26,"value":3688},{"type":21,"tag":322,"props":31430,"children":31431},{"style":329},[31432],{"type":26,"value":31433}," hlq.algorithms.qaoa(\n",{"type":21,"tag":322,"props":31435,"children":31436},{"class":324,"line":453},[31437,31442,31446],{"type":21,"tag":322,"props":31438,"children":31439},{"style":3713},[31440],{"type":26,"value":31441},"    graph",{"type":21,"tag":322,"props":31443,"children":31444},{"style":3648},[31445],{"type":26,"value":3688},{"type":21,"tag":322,"props":31447,"children":31448},{"style":329},[31449],{"type":26,"value":31450},"graph,\n",{"type":21,"tag":322,"props":31452,"children":31453},{"class":324,"line":474},[31454,31459,31463,31468],{"type":21,"tag":322,"props":31455,"children":31456},{"style":3713},[31457],{"type":26,"value":31458},"    problem",{"type":21,"tag":322,"props":31460,"children":31461},{"style":3648},[31462],{"type":26,"value":3688},{"type":21,"tag":322,"props":31464,"children":31465},{"style":359},[31466],{"type":26,"value":31467},"'max_cut'",{"type":21,"tag":322,"props":31469,"children":31470},{"style":329},[31471],{"type":26,"value":428},{"type":21,"tag":322,"props":31473,"children":31474},{"class":324,"line":496},[31475,31480,31484,31488],{"type":21,"tag":322,"props":31476,"children":31477},{"style":3713},[31478],{"type":26,"value":31479},"    p",{"type":21,"tag":322,"props":31481,"children":31482},{"style":3648},[31483],{"type":26,"value":3688},{"type":21,"tag":322,"props":31485,"children":31486},{"style":348},[31487],{"type":26,"value":423},{"type":21,"tag":322,"props":31489,"children":31490},{"style":329},[31491],{"type":26,"value":428},{"type":21,"tag":322,"props":31493,"children":31494},{"class":324,"line":16},[31495,31499,31503,31507],{"type":21,"tag":322,"props":31496,"children":31497},{"style":3713},[31498],{"type":26,"value":23312},{"type":21,"tag":322,"props":31500,"children":31501},{"style":3648},[31502],{"type":26,"value":3688},{"type":21,"tag":322,"props":31504,"children":31505},{"style":359},[31506],{"type":26,"value":22622},{"type":21,"tag":322,"props":31508,"children":31509},{"style":329},[31510],{"type":26,"value":428},{"type":21,"tag":322,"props":31512,"children":31513},{"class":324,"line":3894},[31514,31518,31522,31527],{"type":21,"tag":322,"props":31515,"children":31516},{"style":3713},[31517],{"type":26,"value":29266},{"type":21,"tag":322,"props":31519,"children":31520},{"style":3648},[31521],{"type":26,"value":3688},{"type":21,"tag":322,"props":31523,"children":31524},{"style":348},[31525],{"type":26,"value":31526},"2000",{"type":21,"tag":322,"props":31528,"children":31529},{"style":329},[31530],{"type":26,"value":428},{"type":21,"tag":322,"props":31532,"children":31533},{"class":324,"line":3904},[31534],{"type":21,"tag":322,"props":31535,"children":31536},{"style":329},[31537],{"type":26,"value":3748},{"type":21,"tag":322,"props":31539,"children":31540},{"class":324,"line":1043},[31541],{"type":21,"tag":322,"props":31542,"children":31543},{"emptyLinePlaceholder":3672},[31544],{"type":26,"value":3675},{"type":21,"tag":322,"props":31546,"children":31547},{"class":324,"line":3964},[31548,31552,31557],{"type":21,"tag":322,"props":31549,"children":31550},{"style":348},[31551],{"type":26,"value":3763},{"type":21,"tag":322,"props":31553,"children":31554},{"style":329},[31555],{"type":26,"value":31556},"(result.best_solution)   ",{"type":21,"tag":322,"props":31558,"children":31559},{"style":3898},[31560],{"type":26,"value":31561},"# '0101' or '1010'\n",{"type":21,"tag":322,"props":31563,"children":31564},{"class":324,"line":4012},[31565,31569,31574],{"type":21,"tag":322,"props":31566,"children":31567},{"style":348},[31568],{"type":26,"value":3763},{"type":21,"tag":322,"props":31570,"children":31571},{"style":329},[31572],{"type":26,"value":31573},"(result.cut_value)       ",{"type":21,"tag":322,"props":31575,"children":31576},{"style":3898},[31577],{"type":26,"value":31578},"# 4\n",{"type":21,"tag":322,"props":31580,"children":31581},{"class":324,"line":4054},[31582,31586,31591],{"type":21,"tag":322,"props":31583,"children":31584},{"style":348},[31585],{"type":26,"value":3763},{"type":21,"tag":322,"props":31587,"children":31588},{"style":329},[31589],{"type":26,"value":31590},"(result.approximation_ratio)  ",{"type":21,"tag":322,"props":31592,"children":31593},{"style":3898},[31594],{"type":26,"value":31595},"# ~0.96 for p=2\n",{"type":21,"tag":22,"props":31597,"children":31598},{},[31599],{"type":26,"value":31600},"एक ही फ़्लैग से बैकएंड बदलें:",{"type":21,"tag":312,"props":31602,"children":31604},{"code":31603,"language":3638,"meta":7,"className":3636,"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",[31605],{"type":21,"tag":79,"props":31606,"children":31607},{"__ignoreMap":7},[31608,31616,31695,31702,31710,31770],{"type":21,"tag":322,"props":31609,"children":31610},{"class":324,"line":325},[31611],{"type":21,"tag":322,"props":31612,"children":31613},{"style":3898},[31614],{"type":26,"value":31615},"# Run on Qiskit Aer\n",{"type":21,"tag":322,"props":31617,"children":31618},{"class":324,"line":335},[31619,31623,31627,31632,31637,31641,31646,31651,31655,31659,31663,31667,31671,31675,31679,31683,31687,31691],{"type":21,"tag":322,"props":31620,"children":31621},{"style":329},[31622],{"type":26,"value":22063},{"type":21,"tag":322,"props":31624,"children":31625},{"style":3648},[31626],{"type":26,"value":3688},{"type":21,"tag":322,"props":31628,"children":31629},{"style":329},[31630],{"type":26,"value":31631}," hlq.algorithms.qaoa(",{"type":21,"tag":322,"props":31633,"children":31634},{"style":3713},[31635],{"type":26,"value":31636},"graph",{"type":21,"tag":322,"props":31638,"children":31639},{"style":3648},[31640],{"type":26,"value":3688},{"type":21,"tag":322,"props":31642,"children":31643},{"style":329},[31644],{"type":26,"value":31645},"graph, ",{"type":21,"tag":322,"props":31647,"children":31648},{"style":3713},[31649],{"type":26,"value":31650},"problem",{"type":21,"tag":322,"props":31652,"children":31653},{"style":3648},[31654],{"type":26,"value":3688},{"type":21,"tag":322,"props":31656,"children":31657},{"style":359},[31658],{"type":26,"value":31467},{"type":21,"tag":322,"props":31660,"children":31661},{"style":329},[31662],{"type":26,"value":367},{"type":21,"tag":322,"props":31664,"children":31665},{"style":3713},[31666],{"type":26,"value":22},{"type":21,"tag":322,"props":31668,"children":31669},{"style":3648},[31670],{"type":26,"value":3688},{"type":21,"tag":322,"props":31672,"children":31673},{"style":348},[31674],{"type":26,"value":423},{"type":21,"tag":322,"props":31676,"children":31677},{"style":329},[31678],{"type":26,"value":367},{"type":21,"tag":322,"props":31680,"children":31681},{"style":3713},[31682],{"type":26,"value":18916},{"type":21,"tag":322,"props":31684,"children":31685},{"style":3648},[31686],{"type":26,"value":3688},{"type":21,"tag":322,"props":31688,"children":31689},{"style":359},[31690],{"type":26,"value":19833},{"type":21,"tag":322,"props":31692,"children":31693},{"style":329},[31694],{"type":26,"value":3748},{"type":21,"tag":322,"props":31696,"children":31697},{"class":324,"line":344},[31698],{"type":21,"tag":322,"props":31699,"children":31700},{"emptyLinePlaceholder":3672},[31701],{"type":26,"value":3675},{"type":21,"tag":322,"props":31703,"children":31704},{"class":324,"line":407},[31705],{"type":21,"tag":322,"props":31706,"children":31707},{"style":3898},[31708],{"type":26,"value":31709},"# Run on real IonQ hardware (if you have credits)\n",{"type":21,"tag":322,"props":31711,"children":31712},{"class":324,"line":431},[31713,31718,31722,31726,31730,31734,31738,31742,31746,31750,31754,31758,31762,31766],{"type":21,"tag":322,"props":31714,"children":31715},{"style":329},[31716],{"type":26,"value":31717},"result_ionq ",{"type":21,"tag":322,"props":31719,"children":31720},{"style":3648},[31721],{"type":26,"value":3688},{"type":21,"tag":322,"props":31723,"children":31724},{"style":329},[31725],{"type":26,"value":31631},{"type":21,"tag":322,"props":31727,"children":31728},{"style":3713},[31729],{"type":26,"value":31636},{"type":21,"tag":322,"props":31731,"children":31732},{"style":3648},[31733],{"type":26,"value":3688},{"type":21,"tag":322,"props":31735,"children":31736},{"style":329},[31737],{"type":26,"value":31645},{"type":21,"tag":322,"props":31739,"children":31740},{"style":3713},[31741],{"type":26,"value":31650},{"type":21,"tag":322,"props":31743,"children":31744},{"style":3648},[31745],{"type":26,"value":3688},{"type":21,"tag":322,"props":31747,"children":31748},{"style":359},[31749],{"type":26,"value":31467},{"type":21,"tag":322,"props":31751,"children":31752},{"style":329},[31753],{"type":26,"value":367},{"type":21,"tag":322,"props":31755,"children":31756},{"style":3713},[31757],{"type":26,"value":22},{"type":21,"tag":322,"props":31759,"children":31760},{"style":3648},[31761],{"type":26,"value":3688},{"type":21,"tag":322,"props":31763,"children":31764},{"style":348},[31765],{"type":26,"value":423},{"type":21,"tag":322,"props":31767,"children":31768},{"style":329},[31769],{"type":26,"value":428},{"type":21,"tag":322,"props":31771,"children":31772},{"class":324,"line":453},[31773,31778,31782,31786,31790,31794,31798,31802],{"type":21,"tag":322,"props":31774,"children":31775},{"style":3713},[31776],{"type":26,"value":31777},"                                   backend",{"type":21,"tag":322,"props":31779,"children":31780},{"style":3648},[31781],{"type":26,"value":3688},{"type":21,"tag":322,"props":31783,"children":31784},{"style":359},[31785],{"type":26,"value":22726},{"type":21,"tag":322,"props":31787,"children":31788},{"style":329},[31789],{"type":26,"value":367},{"type":21,"tag":322,"props":31791,"children":31792},{"style":3713},[31793],{"type":26,"value":22735},{"type":21,"tag":322,"props":31795,"children":31796},{"style":3648},[31797],{"type":26,"value":3688},{"type":21,"tag":322,"props":31799,"children":31800},{"style":359},[31801],{"type":26,"value":22744},{"type":21,"tag":322,"props":31803,"children":31804},{"style":329},[31805],{"type":26,"value":3748},{"type":21,"tag":59,"props":31807,"children":31809},{"id":31808},"बेहतर-परिणामों-के-लिए-p-बढ़ाना",[31810],{"type":26,"value":31811},"बेहतर परिणामों के लिए p बढ़ाना",{"type":21,"tag":22,"props":31813,"children":31814},{},[31815,31817,31822,31824,31830],{"type":26,"value":31816},"QAOA का सन्निकटन अनुपात गहराई ",{"type":21,"tag":79,"props":31818,"children":31820},{"className":31819},[],[31821],{"type":26,"value":22},{"type":26,"value":31823}," के साथ बेहतर होता है। ",{"type":21,"tag":79,"props":31825,"children":31827},{"className":31826},[],[31828],{"type":26,"value":31829},"p→∞",{"type":26,"value":31831}," पर, QAOA समस्या को सटीक रूप से हल कर देता है। व्यवहार में:",{"type":21,"tag":4516,"props":31833,"children":31834},{},[31835,31855],{"type":21,"tag":4520,"props":31836,"children":31837},{},[31838],{"type":21,"tag":4524,"props":31839,"children":31840},{},[31841,31845,31850],{"type":21,"tag":4528,"props":31842,"children":31843},{},[31844],{"type":26,"value":22},{"type":21,"tag":4528,"props":31846,"children":31847},{},[31848],{"type":26,"value":31849},"विशिष्ट सन्निकटन अनुपात (Max-Cut)",{"type":21,"tag":4528,"props":31851,"children":31852},{},[31853],{"type":26,"value":31854},"आवश्यक गेट्स",{"type":21,"tag":4542,"props":31856,"children":31857},{},[31858,31875,31892,31909],{"type":21,"tag":4524,"props":31859,"children":31860},{},[31861,31865,31870],{"type":21,"tag":4549,"props":31862,"children":31863},{},[31864],{"type":26,"value":4004},{"type":21,"tag":4549,"props":31866,"children":31867},{},[31868],{"type":26,"value":31869},"~0.75",{"type":21,"tag":4549,"props":31871,"children":31872},{},[31873],{"type":26,"value":31874},"2×edges + 4n",{"type":21,"tag":4524,"props":31876,"children":31877},{},[31878,31882,31887],{"type":21,"tag":4549,"props":31879,"children":31880},{},[31881],{"type":26,"value":423},{"type":21,"tag":4549,"props":31883,"children":31884},{},[31885],{"type":26,"value":31886},"~0.86",{"type":21,"tag":4549,"props":31888,"children":31889},{},[31890],{"type":26,"value":31891},"4×edges + 8n",{"type":21,"tag":4524,"props":31893,"children":31894},{},[31895,31899,31904],{"type":21,"tag":4549,"props":31896,"children":31897},{},[31898],{"type":26,"value":6961},{"type":21,"tag":4549,"props":31900,"children":31901},{},[31902],{"type":26,"value":31903},"~0.91",{"type":21,"tag":4549,"props":31905,"children":31906},{},[31907],{"type":26,"value":31908},"6×edges + 12n",{"type":21,"tag":4524,"props":31910,"children":31911},{},[31912,31916,31921],{"type":21,"tag":4549,"props":31913,"children":31914},{},[31915],{"type":26,"value":7132},{"type":21,"tag":4549,"props":31917,"children":31918},{},[31919],{"type":26,"value":31920},"~0.95",{"type":21,"tag":4549,"props":31922,"children":31923},{},[31924],{"type":26,"value":31925},"10×edges + 20n",{"type":21,"tag":22,"props":31927,"children":31928},{},[31929,31931,31937,31939,31944,31945,31951],{"type":26,"value":31930},"समझौता: गहरे सर्किट वास्तविक हार्डवेयर पर अधिक शोर (noise) एकत्रित करते हैं। सिम्युलेटर पर, ",{"type":21,"tag":79,"props":31932,"children":31934},{"className":31933},[],[31935],{"type":26,"value":31936},"p=3",{"type":26,"value":31938}," या उससे अधिक का उपयोग करें। NISQ QPUs पर, ",{"type":21,"tag":79,"props":31940,"children":31942},{"className":31941},[],[31943],{"type":26,"value":19986},{"type":26,"value":19256},{"type":21,"tag":79,"props":31946,"children":31948},{"className":31947},[],[31949],{"type":26,"value":31950},"p=2",{"type":26,"value":31952}," आमतौर पर व्यावहारिक सीमा है।",{"type":21,"tag":59,"props":31954,"children":31956},{"id":31955},"qaoa-का-उपयोग-करना-कब-सार्थक-है",[31957],{"type":26,"value":31958},"QAOA का उपयोग करना कब सार्थक है?",{"type":21,"tag":22,"props":31960,"children":31961},{},[31962],{"type":21,"tag":71,"props":31963,"children":31964},{},[31965],{"type":26,"value":31966},"वर्तमान में उपयोगी:",{"type":21,"tag":3566,"props":31968,"children":31969},{},[31970,31975,31980],{"type":21,"tag":3570,"props":31971,"children":31972},{},[31973],{"type":26,"value":31974},"NISQ उपकरणों का बेंचमार्किंग (QAOA एक मानक बेंचमार्क सर्किट है)",{"type":21,"tag":3570,"props":31976,"children":31977},{},[31978],{"type":26,"value":31979},"वैरिएशनल क्वांटम एल्गोरिदम पर शैक्षणिक अनुसंधान",{"type":21,"tag":3570,"props":31981,"children":31982},{},[31983],{"type":26,"value":31984},"सिम्युलेटर पर छोटे ग्राफ़ (20 नोड्स से कम)",{"type":21,"tag":22,"props":31986,"children":31987},{},[31988],{"type":21,"tag":71,"props":31989,"children":31990},{},[31991],{"type":26,"value":31992},"अभी तक उपयोगी नहीं:",{"type":21,"tag":3566,"props":31994,"children":31995},{},[31996,32001],{"type":21,"tag":3570,"props":31997,"children":31998},{},[31999],{"type":26,"value":32000},"बड़े पैमाने पर वास्तविक हार्डवेयर पर उत्पादन अनुकूलन — क्लासिकल ह्यूरिस्टिक्स (simulated annealing, tabu search) व्यावहारिक समस्याओं पर अब भी QAOA से बेहतर प्रदर्शन करते हैं",{"type":21,"tag":3570,"props":32002,"children":32003},{},[32004],{"type":26,"value":32005},"बड़े ग्राफ़ — सर्किट गहराई ग्राफ़ घनत्व के साथ बढ़ती है",{"type":21,"tag":22,"props":32007,"children":32008},{},[32009,32014,32016,32021],{"type":21,"tag":71,"props":32010,"children":32011},{},[32012],{"type":26,"value":32013},"वादा:",{"type":26,"value":32015}," उच्च-गहराई वाले सर्किट के साथ भविष्य के फ़ॉल्ट-टॉलरेंट हार्डवेयर पर, बड़े ",{"type":21,"tag":79,"props":32017,"children":32019},{"className":32018},[],[32020],{"type":26,"value":22},{"type":26,"value":32022}," पर QAOA सघन NP-hard अनुकूलन के लिए वास्तविक गति वृद्धि प्रदान कर सकता है। सैद्धांतिक आधार ठोस हैं; हार्डवेयर अभी वहाँ तक नहीं पहुँचा है।",{"type":21,"tag":59,"props":32024,"children":32026},{"id":32025},"अगले-चरण",[32027],{"type":26,"value":32028},"अगले चरण",{"type":21,"tag":3566,"props":32030,"children":32031},{},[32032,32044,32057],{"type":21,"tag":3570,"props":32033,"children":32034},{},[32035,32042],{"type":21,"tag":71,"props":32036,"children":32037},{},[32038],{"type":21,"tag":29,"props":32039,"children":32040},{"href":14518},[32041],{"type":26,"value":16062},{"type":26,"value":32043}," — अधिक वैरिएशनल एल्गोरिदम के लिए PennyLane सेट अप करें",{"type":21,"tag":3570,"props":32045,"children":32046},{},[32047,32055],{"type":21,"tag":71,"props":32048,"children":32049},{},[32050],{"type":21,"tag":29,"props":32051,"children":32052},{"href":898},[32053],{"type":26,"value":32054},"VQE guide",{"type":26,"value":32056}," — क्वांटम रसायन विज्ञान के लिए सहयोगी एल्गोरिदम",{"type":21,"tag":3570,"props":32058,"children":32059},{},[32060,32067],{"type":21,"tag":71,"props":32061,"children":32062},{},[32063],{"type":21,"tag":29,"props":32064,"children":32065},{"href":19451},[32066],{"type":26,"value":19454},{"type":26,"value":32068}," — एक ही API के साथ किसी भी बैकएंड पर QAOA चलाएं",{"type":21,"tag":703,"props":32070,"children":32071},{},[32072],{"type":26,"value":707},{"title":7,"searchDepth":335,"depth":335,"links":32074},[32075,32076,32077,32078,32079,32080,32081,32082],{"id":29365,"depth":335,"text":29368},{"id":29408,"depth":335,"text":29411},{"id":29484,"depth":335,"text":29487},{"id":30649,"depth":335,"text":30652},{"id":31289,"depth":335,"text":31292},{"id":31808,"depth":335,"text":31811},{"id":31955,"depth":335,"text":31958},{"id":32025,"depth":335,"text":32028},"content:hi:blog:qaoa-max-cut-tutorial.md","hi\u002Fblog\u002Fqaoa-max-cut-tutorial.md","hi\u002Fblog\u002Fqaoa-max-cut-tutorial",{"_path":32087,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":32088,"description":32089,"date":32090,"author":11,"tags":32091,"readingTime":474,"body":32093,"_type":715,"_id":34081,"_source":717,"_file":34082,"_stem":34083,"_extension":720},"\u002Fhi\u002Fblog\u002Fquantum-simulators-compared","मुफ्त क्वांटम सिम्युलेटरों की तुलना: Qiskit Aer बनाम Cirq बनाम PennyLane बनाम CUDA-Q","प्रमुख मुफ्त क्वांटम सिम्युलेटरों की एक व्यावहारिक तुलना — प्रदर्शन, क्यूबिट सीमाएँ, GPU समर्थन, और प्रत्येक का उपयोग कब करना चाहिए।","2026-02-10",[20621,3512,32092],"GPU",{"type":18,"children":32094,"toc":34072},[32095,32100,32106,32289,32295,32304,32357,32527,32537,32543,32559,32886,32906,32929,32977,32987,32993,33002,33239,33249,33267,33277,33283,33292,33468,33478,33484,33495,33708,33718,33724,33735,34063,34068],{"type":21,"tag":22,"props":32096,"children":32097},{},[32098],{"type":26,"value":32099},"क्वांटम सिम्युलेटर आपको हार्डवेयर कतारों में प्रतीक्षा किए बिना या प्रति शॉट भुगतान किए बिना सर्किटों का परीक्षण करने देते हैं। लेकिन जब छह प्रमुख सिम्युलेटर मुफ्त में उपलब्ध हैं, तो आपको किसका उपयोग करना चाहिए? यहाँ एक व्यावहारिक विश्लेषण है।",{"type":21,"tag":59,"props":32101,"children":32103},{"id":32102},"त्वरित-उत्तर",[32104],{"type":26,"value":32105},"त्वरित उत्तर",{"type":21,"tag":4516,"props":32107,"children":32108},{},[32109,32134],{"type":21,"tag":4520,"props":32110,"children":32111},{},[32112],{"type":21,"tag":4524,"props":32113,"children":32114},{},[32115,32120,32124,32129],{"type":21,"tag":4528,"props":32116,"children":32117},{},[32118],{"type":26,"value":32119},"सिम्युलेटर",{"type":21,"tag":4528,"props":32121,"children":32122},{},[32123],{"type":26,"value":21241},{"type":21,"tag":4528,"props":32125,"children":32126},{},[32127],{"type":26,"value":32128},"अधिकतम क्यूबिट (CPU)",{"type":21,"tag":4528,"props":32130,"children":32131},{},[32132],{"type":26,"value":32133},"GPU?",{"type":21,"tag":4542,"props":32135,"children":32136},{},[32137,32163,32189,32215,32240,32265],{"type":21,"tag":4524,"props":32138,"children":32139},{},[32140,32148,32153,32158],{"type":21,"tag":4549,"props":32141,"children":32142},{},[32143],{"type":21,"tag":71,"props":32144,"children":32145},{},[32146],{"type":26,"value":32147},"Qiskit Aer",{"type":21,"tag":4549,"props":32149,"children":32150},{},[32151],{"type":26,"value":32152},"सामान्य उद्देश्य",{"type":21,"tag":4549,"props":32154,"children":32155},{},[32156],{"type":26,"value":32157},"~30 (statevector)",{"type":21,"tag":4549,"props":32159,"children":32160},{},[32161],{"type":26,"value":32162},"✅ AerCuda",{"type":21,"tag":4524,"props":32164,"children":32165},{},[32166,32174,32179,32184],{"type":21,"tag":4549,"props":32167,"children":32168},{},[32169],{"type":21,"tag":71,"props":32170,"children":32171},{},[32172],{"type":26,"value":32173},"Cirq Simulator",{"type":21,"tag":4549,"props":32175,"children":32176},{},[32177],{"type":26,"value":32178},"Cirq सर्किट, density matrix",{"type":21,"tag":4549,"props":32180,"children":32181},{},[32182],{"type":26,"value":32183},"~25",{"type":21,"tag":4549,"props":32185,"children":32186},{},[32187],{"type":26,"value":32188},"❌",{"type":21,"tag":4524,"props":32190,"children":32191},{},[32192,32200,32205,32210],{"type":21,"tag":4549,"props":32193,"children":32194},{},[32195],{"type":21,"tag":71,"props":32196,"children":32197},{},[32198],{"type":26,"value":32199},"PennyLane default.qubit",{"type":21,"tag":4549,"props":32201,"children":32202},{},[32203],{"type":26,"value":32204},"QML, ग्रेडिएंट",{"type":21,"tag":4549,"props":32206,"children":32207},{},[32208],{"type":26,"value":32209},"~20",{"type":21,"tag":4549,"props":32211,"children":32212},{},[32213],{"type":26,"value":32214},"✅ lightning.gpu",{"type":21,"tag":4524,"props":32216,"children":32217},{},[32218,32226,32231,32236],{"type":21,"tag":4549,"props":32219,"children":32220},{},[32221],{"type":21,"tag":71,"props":32222,"children":32223},{},[32224],{"type":26,"value":32225},"PennyLane lightning.qubit",{"type":21,"tag":4549,"props":32227,"children":32228},{},[32229],{"type":26,"value":32230},"तेज़ CPU सिमुलेशन",{"type":21,"tag":4549,"props":32232,"children":32233},{},[32234],{"type":26,"value":32235},"~30",{"type":21,"tag":4549,"props":32237,"children":32238},{},[32239],{"type":26,"value":32214},{"type":21,"tag":4524,"props":32241,"children":32242},{},[32243,32250,32255,32260],{"type":21,"tag":4549,"props":32244,"children":32245},{},[32246],{"type":21,"tag":71,"props":32247,"children":32248},{},[32249],{"type":26,"value":21066},{"type":21,"tag":4549,"props":32251,"children":32252},{},[32253],{"type":26,"value":32254},"बड़े सर्किट, गति",{"type":21,"tag":4549,"props":32256,"children":32257},{},[32258],{"type":26,"value":32259},"~34 एकल GPU",{"type":21,"tag":4549,"props":32261,"children":32262},{},[32263],{"type":26,"value":32264},"✅ native",{"type":21,"tag":4524,"props":32266,"children":32267},{},[32268,32276,32281,32285],{"type":21,"tag":4549,"props":32269,"children":32270},{},[32271],{"type":21,"tag":71,"props":32272,"children":32273},{},[32274],{"type":26,"value":32275},"Braket LocalSimulator",{"type":21,"tag":4549,"props":32277,"children":32278},{},[32279],{"type":26,"value":32280},"Braket सर्किट, मुफ्त",{"type":21,"tag":4549,"props":32282,"children":32283},{},[32284],{"type":26,"value":32183},{"type":21,"tag":4549,"props":32286,"children":32287},{},[32288],{"type":26,"value":32188},{"type":21,"tag":59,"props":32290,"children":32292},{"id":32291},"qiskit-aer-कार्यशील-घोड़ा",[32293],{"type":26,"value":32294},"Qiskit Aer: कार्यशील घोड़ा",{"type":21,"tag":22,"props":32296,"children":32297},{},[32298,32302],{"type":21,"tag":29,"props":32299,"children":32300},{"href":7541},[32301],{"type":26,"value":32147},{"type":26,"value":32303}," सबसे अधिक फीचर-संपन्न मुफ्त सिम्युलेटर है। यह कई सिमुलेशन विधियों का समर्थन करता है:",{"type":21,"tag":3566,"props":32305,"children":32306},{},[32307,32317,32327,32337,32347],{"type":21,"tag":3570,"props":32308,"children":32309},{},[32310,32315],{"type":21,"tag":71,"props":32311,"children":32312},{},[32313],{"type":26,"value":32314},"statevector_simulator",{"type":26,"value":32316},": ~30 क्यूबिट तक सटीक सिमुलेशन। मेमोरी 2ⁿ जटिल संख्याओं के रूप में बढ़ती है (30 क्यूबिट के लिए 16 GB RAM आवश्यक)।",{"type":21,"tag":3570,"props":32318,"children":32319},{},[32320,32325],{"type":21,"tag":71,"props":32321,"children":32322},{},[32323],{"type":26,"value":32324},"qasm_simulator",{"type":26,"value":32326},": नॉइज़ मॉडल समर्थन के साथ शॉट-आधारित सैंपलिंग",{"type":21,"tag":3570,"props":32328,"children":32329},{},[32330,32335],{"type":21,"tag":71,"props":32331,"children":32332},{},[32333],{"type":26,"value":32334},"density_matrix",{"type":26,"value":32336},": मिश्रित अवस्थाओं और खुली क्वांटम प्रणालियों का सिमुलेशन करता है",{"type":21,"tag":3570,"props":32338,"children":32339},{},[32340,32345],{"type":21,"tag":71,"props":32341,"children":32342},{},[32343],{"type":26,"value":32344},"mps",{"type":26,"value":32346},": Matrix Product State — सीमित उलझाव वाले सर्किटों का सैकड़ों क्यूबिट तक सिमुलेशन करता है",{"type":21,"tag":3570,"props":32348,"children":32349},{},[32350,32355],{"type":21,"tag":71,"props":32351,"children":32352},{},[32353],{"type":26,"value":32354},"stabilizer",{"type":26,"value":32356},": केवल Clifford सर्किट, लेकिन बहुपद समय में हजारों क्यूबिट तक बढ़ता है",{"type":21,"tag":312,"props":32358,"children":32360},{"className":3636,"code":32359,"language":3638,"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",[32361],{"type":21,"tag":79,"props":32362,"children":32363},{"__ignoreMap":7},[32364,32383,32390,32398,32413,32420,32428,32461,32494],{"type":21,"tag":322,"props":32365,"children":32366},{"class":324,"line":325},[32367,32371,32375,32379],{"type":21,"tag":322,"props":32368,"children":32369},{"style":3648},[32370],{"type":26,"value":3651},{"type":21,"tag":322,"props":32372,"children":32373},{"style":329},[32374],{"type":26,"value":4766},{"type":21,"tag":322,"props":32376,"children":32377},{"style":3648},[32378],{"type":26,"value":3661},{"type":21,"tag":322,"props":32380,"children":32381},{"style":329},[32382],{"type":26,"value":4775},{"type":21,"tag":322,"props":32384,"children":32385},{"class":324,"line":335},[32386],{"type":21,"tag":322,"props":32387,"children":32388},{"emptyLinePlaceholder":3672},[32389],{"type":26,"value":3675},{"type":21,"tag":322,"props":32391,"children":32392},{"class":324,"line":344},[32393],{"type":21,"tag":322,"props":32394,"children":32395},{"style":3898},[32396],{"type":26,"value":32397},"# Default: automatic method selection\n",{"type":21,"tag":322,"props":32399,"children":32400},{"class":324,"line":407},[32401,32405,32409],{"type":21,"tag":322,"props":32402,"children":32403},{"style":329},[32404],{"type":26,"value":8874},{"type":21,"tag":322,"props":32406,"children":32407},{"style":3648},[32408],{"type":26,"value":3688},{"type":21,"tag":322,"props":32410,"children":32411},{"style":329},[32412],{"type":26,"value":8883},{"type":21,"tag":322,"props":32414,"children":32415},{"class":324,"line":431},[32416],{"type":21,"tag":322,"props":32417,"children":32418},{"emptyLinePlaceholder":3672},[32419],{"type":26,"value":3675},{"type":21,"tag":322,"props":32421,"children":32422},{"class":324,"line":453},[32423],{"type":21,"tag":322,"props":32424,"children":32425},{"style":3898},[32426],{"type":26,"value":32427},"# Force a specific method\n",{"type":21,"tag":322,"props":32429,"children":32430},{"class":324,"line":474},[32431,32436,32440,32444,32448,32452,32457],{"type":21,"tag":322,"props":32432,"children":32433},{"style":329},[32434],{"type":26,"value":32435},"sim_sv ",{"type":21,"tag":322,"props":32437,"children":32438},{"style":3648},[32439],{"type":26,"value":3688},{"type":21,"tag":322,"props":32441,"children":32442},{"style":329},[32443],{"type":26,"value":5064},{"type":21,"tag":322,"props":32445,"children":32446},{"style":3713},[32447],{"type":26,"value":30482},{"type":21,"tag":322,"props":32449,"children":32450},{"style":3648},[32451],{"type":26,"value":3688},{"type":21,"tag":322,"props":32453,"children":32454},{"style":359},[32455],{"type":26,"value":32456},"'statevector'",{"type":21,"tag":322,"props":32458,"children":32459},{"style":329},[32460],{"type":26,"value":3748},{"type":21,"tag":322,"props":32462,"children":32463},{"class":324,"line":496},[32464,32469,32473,32477,32481,32485,32490],{"type":21,"tag":322,"props":32465,"children":32466},{"style":329},[32467],{"type":26,"value":32468},"sim_dm ",{"type":21,"tag":322,"props":32470,"children":32471},{"style":3648},[32472],{"type":26,"value":3688},{"type":21,"tag":322,"props":32474,"children":32475},{"style":329},[32476],{"type":26,"value":5064},{"type":21,"tag":322,"props":32478,"children":32479},{"style":3713},[32480],{"type":26,"value":30482},{"type":21,"tag":322,"props":32482,"children":32483},{"style":3648},[32484],{"type":26,"value":3688},{"type":21,"tag":322,"props":32486,"children":32487},{"style":359},[32488],{"type":26,"value":32489},"'density_matrix'",{"type":21,"tag":322,"props":32491,"children":32492},{"style":329},[32493],{"type":26,"value":3748},{"type":21,"tag":322,"props":32495,"children":32496},{"class":324,"line":16},[32497,32502,32506,32510,32514,32518,32523],{"type":21,"tag":322,"props":32498,"children":32499},{"style":329},[32500],{"type":26,"value":32501},"sim_mps ",{"type":21,"tag":322,"props":32503,"children":32504},{"style":3648},[32505],{"type":26,"value":3688},{"type":21,"tag":322,"props":32507,"children":32508},{"style":329},[32509],{"type":26,"value":5064},{"type":21,"tag":322,"props":32511,"children":32512},{"style":3713},[32513],{"type":26,"value":30482},{"type":21,"tag":322,"props":32515,"children":32516},{"style":3648},[32517],{"type":26,"value":3688},{"type":21,"tag":322,"props":32519,"children":32520},{"style":359},[32521],{"type":26,"value":32522},"'matrix_product_state'",{"type":21,"tag":322,"props":32524,"children":32525},{"style":329},[32526],{"type":26,"value":3748},{"type":21,"tag":22,"props":32528,"children":32529},{},[32530,32535],{"type":21,"tag":71,"props":32531,"children":32532},{},[32533],{"type":26,"value":32534},"Aer का उपयोग कब करें:",{"type":26,"value":32536}," किसी भी Qiskit वर्कफ़्लो, नॉइज़ मॉडलिंग, या जब आप IBM हार्डवेयर व्यवहार से निकटता से मेल खाना चाहते हों।",{"type":21,"tag":59,"props":32538,"children":32540},{"id":32539},"pennylane-क्वांटम-ml-के-लिए-सर्वोत्तम",[32541],{"type":26,"value":32542},"PennyLane: क्वांटम ML के लिए सर्वोत्तम",{"type":21,"tag":22,"props":32544,"children":32545},{},[32546,32550,32552,32557],{"type":21,"tag":29,"props":32547,"children":32548},{"href":14518},[32549],{"type":26,"value":14234},{"type":26,"value":32551}," तब चमकता है जब आपको विभेदनीय सर्किटों की आवश्यकता होती है। इसका ",{"type":21,"tag":79,"props":32553,"children":32555},{"className":32554},[],[32556],{"type":26,"value":15866},{"type":26,"value":32558}," सिम्युलेटर parameter-shift नियम के माध्यम से सटीक ग्रेडिएंट की गणना करता है, जिससे क्वांटम सर्किटों का ग्रेडिएंट-आधारित अनुकूलन संभव होता है:",{"type":21,"tag":312,"props":32560,"children":32562},{"className":3636,"code":32561,"language":3638,"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",[32563],{"type":21,"tag":79,"props":32564,"children":32565},{"__ignoreMap":7},[32566,32585,32604,32611,32650,32657,32668,32684,32717,32749,32784,32803,32810,32818,32835,32869],{"type":21,"tag":322,"props":32567,"children":32568},{"class":324,"line":325},[32569,32573,32577,32581],{"type":21,"tag":322,"props":32570,"children":32571},{"style":3648},[32572],{"type":26,"value":3661},{"type":21,"tag":322,"props":32574,"children":32575},{"style":329},[32576],{"type":26,"value":14541},{"type":21,"tag":322,"props":32578,"children":32579},{"style":3648},[32580],{"type":26,"value":4728},{"type":21,"tag":322,"props":32582,"children":32583},{"style":329},[32584],{"type":26,"value":14550},{"type":21,"tag":322,"props":32586,"children":32587},{"class":324,"line":335},[32588,32592,32596,32600],{"type":21,"tag":322,"props":32589,"children":32590},{"style":3648},[32591],{"type":26,"value":3661},{"type":21,"tag":322,"props":32593,"children":32594},{"style":329},[32595],{"type":26,"value":4723},{"type":21,"tag":322,"props":32597,"children":32598},{"style":3648},[32599],{"type":26,"value":4728},{"type":21,"tag":322,"props":32601,"children":32602},{"style":329},[32603],{"type":26,"value":4733},{"type":21,"tag":322,"props":32605,"children":32606},{"class":324,"line":344},[32607],{"type":21,"tag":322,"props":32608,"children":32609},{"emptyLinePlaceholder":3672},[32610],{"type":26,"value":3675},{"type":21,"tag":322,"props":32612,"children":32613},{"class":324,"line":407},[32614,32618,32622,32626,32630,32634,32638,32642,32646],{"type":21,"tag":322,"props":32615,"children":32616},{"style":329},[32617],{"type":26,"value":14674},{"type":21,"tag":322,"props":32619,"children":32620},{"style":3648},[32621],{"type":26,"value":3688},{"type":21,"tag":322,"props":32623,"children":32624},{"style":329},[32625],{"type":26,"value":14683},{"type":21,"tag":322,"props":32627,"children":32628},{"style":359},[32629],{"type":26,"value":14688},{"type":21,"tag":322,"props":32631,"children":32632},{"style":329},[32633],{"type":26,"value":367},{"type":21,"tag":322,"props":32635,"children":32636},{"style":3713},[32637],{"type":26,"value":14697},{"type":21,"tag":322,"props":32639,"children":32640},{"style":3648},[32641],{"type":26,"value":3688},{"type":21,"tag":322,"props":32643,"children":32644},{"style":348},[32645],{"type":26,"value":423},{"type":21,"tag":322,"props":32647,"children":32648},{"style":329},[32649],{"type":26,"value":3748},{"type":21,"tag":322,"props":32651,"children":32652},{"class":324,"line":431},[32653],{"type":21,"tag":322,"props":32654,"children":32655},{"emptyLinePlaceholder":3672},[32656],{"type":26,"value":3675},{"type":21,"tag":322,"props":32658,"children":32659},{"class":324,"line":453},[32660,32664],{"type":21,"tag":322,"props":32661,"children":32662},{"style":4814},[32663],{"type":26,"value":14721},{"type":21,"tag":322,"props":32665,"children":32666},{"style":329},[32667],{"type":26,"value":14726},{"type":21,"tag":322,"props":32669,"children":32670},{"class":324,"line":474},[32671,32675,32679],{"type":21,"tag":322,"props":32672,"children":32673},{"style":3648},[32674],{"type":26,"value":4811},{"type":21,"tag":322,"props":32676,"children":32677},{"style":4814},[32678],{"type":26,"value":14738},{"type":21,"tag":322,"props":32680,"children":32681},{"style":329},[32682],{"type":26,"value":32683},"(theta):\n",{"type":21,"tag":322,"props":32685,"children":32686},{"class":324,"line":496},[32687,32692,32696,32701,32705,32709,32713],{"type":21,"tag":322,"props":32688,"children":32689},{"style":329},[32690],{"type":26,"value":32691},"    qml.RX(theta[",{"type":21,"tag":322,"props":32693,"children":32694},{"style":348},[32695],{"type":26,"value":5618},{"type":21,"tag":322,"props":32697,"children":32698},{"style":329},[32699],{"type":26,"value":32700},"], ",{"type":21,"tag":322,"props":32702,"children":32703},{"style":3713},[32704],{"type":26,"value":14697},{"type":21,"tag":322,"props":32706,"children":32707},{"style":3648},[32708],{"type":26,"value":3688},{"type":21,"tag":322,"props":32710,"children":32711},{"style":348},[32712],{"type":26,"value":5618},{"type":21,"tag":322,"props":32714,"children":32715},{"style":329},[32716],{"type":26,"value":3748},{"type":21,"tag":322,"props":32718,"children":32719},{"class":324,"line":16},[32720,32725,32729,32733,32737,32741,32745],{"type":21,"tag":322,"props":32721,"children":32722},{"style":329},[32723],{"type":26,"value":32724},"    qml.RY(theta[",{"type":21,"tag":322,"props":32726,"children":32727},{"style":348},[32728],{"type":26,"value":4004},{"type":21,"tag":322,"props":32730,"children":32731},{"style":329},[32732],{"type":26,"value":32700},{"type":21,"tag":322,"props":32734,"children":32735},{"style":3713},[32736],{"type":26,"value":14697},{"type":21,"tag":322,"props":32738,"children":32739},{"style":3648},[32740],{"type":26,"value":3688},{"type":21,"tag":322,"props":32742,"children":32743},{"style":348},[32744],{"type":26,"value":4004},{"type":21,"tag":322,"props":32746,"children":32747},{"style":329},[32748],{"type":26,"value":3748},{"type":21,"tag":322,"props":32750,"children":32751},{"class":324,"line":3894},[32752,32756,32760,32764,32768,32772,32776,32780],{"type":21,"tag":322,"props":32753,"children":32754},{"style":329},[32755],{"type":26,"value":22222},{"type":21,"tag":322,"props":32757,"children":32758},{"style":3713},[32759],{"type":26,"value":14697},{"type":21,"tag":322,"props":32761,"children":32762},{"style":3648},[32763],{"type":26,"value":3688},{"type":21,"tag":322,"props":32765,"children":32766},{"style":329},[32767],{"type":26,"value":22235},{"type":21,"tag":322,"props":32769,"children":32770},{"style":348},[32771],{"type":26,"value":5618},{"type":21,"tag":322,"props":32773,"children":32774},{"style":329},[32775],{"type":26,"value":367},{"type":21,"tag":322,"props":32777,"children":32778},{"style":348},[32779],{"type":26,"value":4004},{"type":21,"tag":322,"props":32781,"children":32782},{"style":329},[32783],{"type":26,"value":4009},{"type":21,"tag":322,"props":32785,"children":32786},{"class":324,"line":3904},[32787,32791,32795,32799],{"type":21,"tag":322,"props":32788,"children":32789},{"style":3648},[32790],{"type":26,"value":5036},{"type":21,"tag":322,"props":32792,"children":32793},{"style":329},[32794],{"type":26,"value":14853},{"type":21,"tag":322,"props":32796,"children":32797},{"style":348},[32798],{"type":26,"value":5618},{"type":21,"tag":322,"props":32800,"children":32801},{"style":329},[32802],{"type":26,"value":12817},{"type":21,"tag":322,"props":32804,"children":32805},{"class":324,"line":1043},[32806],{"type":21,"tag":322,"props":32807,"children":32808},{"emptyLinePlaceholder":3672},[32809],{"type":26,"value":3675},{"type":21,"tag":322,"props":32811,"children":32812},{"class":324,"line":3964},[32813],{"type":21,"tag":322,"props":32814,"children":32815},{"style":3898},[32816],{"type":26,"value":32817},"# Automatic gradient computation\n",{"type":21,"tag":322,"props":32819,"children":32820},{"class":324,"line":4012},[32821,32826,32830],{"type":21,"tag":322,"props":32822,"children":32823},{"style":329},[32824],{"type":26,"value":32825},"grad_fn ",{"type":21,"tag":322,"props":32827,"children":32828},{"style":3648},[32829],{"type":26,"value":3688},{"type":21,"tag":322,"props":32831,"children":32832},{"style":329},[32833],{"type":26,"value":32834}," qml.grad(circuit)\n",{"type":21,"tag":322,"props":32836,"children":32837},{"class":324,"line":4054},[32838,32843,32847,32852,32856,32860,32865],{"type":21,"tag":322,"props":32839,"children":32840},{"style":329},[32841],{"type":26,"value":32842},"theta ",{"type":21,"tag":322,"props":32844,"children":32845},{"style":3648},[32846],{"type":26,"value":3688},{"type":21,"tag":322,"props":32848,"children":32849},{"style":329},[32850],{"type":26,"value":32851}," np.array([",{"type":21,"tag":322,"props":32853,"children":32854},{"style":348},[32855],{"type":26,"value":446},{"type":21,"tag":322,"props":32857,"children":32858},{"style":329},[32859],{"type":26,"value":367},{"type":21,"tag":322,"props":32861,"children":32862},{"style":348},[32863],{"type":26,"value":32864},"1.2",{"type":21,"tag":322,"props":32866,"children":32867},{"style":329},[32868],{"type":26,"value":4009},{"type":21,"tag":322,"props":32870,"children":32871},{"class":324,"line":5081},[32872,32876,32881],{"type":21,"tag":322,"props":32873,"children":32874},{"style":348},[32875],{"type":26,"value":3763},{"type":21,"tag":322,"props":32877,"children":32878},{"style":329},[32879],{"type":26,"value":32880},"(grad_fn(theta))  ",{"type":21,"tag":322,"props":32882,"children":32883},{"style":3898},[32884],{"type":26,"value":32885},"# exact gradient\n",{"type":21,"tag":22,"props":32887,"children":32888},{},[32889,32891,32897,32899,32904],{"type":26,"value":32890},"ग्रेडिएंट के बिना तेज़ सिमुलेशन के लिए, ",{"type":21,"tag":79,"props":32892,"children":32894},{"className":32893},[],[32895],{"type":26,"value":32896},"lightning.qubit",{"type":26,"value":32898}," का उपयोग करें (C++ बैकएंड, ",{"type":21,"tag":79,"props":32900,"children":32902},{"className":32901},[],[32903],{"type":26,"value":15866},{"type":26,"value":32905}," की तुलना में ~10× तेज़):",{"type":21,"tag":312,"props":32907,"children":32909},{"className":10192,"code":32908,"language":10194,"meta":7,"style":7},"pip install pennylane-lightning\n",[32910],{"type":21,"tag":79,"props":32911,"children":32912},{"__ignoreMap":7},[32913],{"type":21,"tag":322,"props":32914,"children":32915},{"class":324,"line":325},[32916,32920,32924],{"type":21,"tag":322,"props":32917,"children":32918},{"style":4814},[32919],{"type":26,"value":12243},{"type":21,"tag":322,"props":32921,"children":32922},{"style":359},[32923],{"type":26,"value":12248},{"type":21,"tag":322,"props":32925,"children":32926},{"style":359},[32927],{"type":26,"value":32928}," pennylane-lightning\n",{"type":21,"tag":312,"props":32930,"children":32932},{"className":3636,"code":32931,"language":3638,"meta":7,"style":7},"dev = qml.device(\"lightning.qubit\", wires=20)\n",[32933],{"type":21,"tag":79,"props":32934,"children":32935},{"__ignoreMap":7},[32936],{"type":21,"tag":322,"props":32937,"children":32938},{"class":324,"line":325},[32939,32943,32947,32951,32956,32960,32964,32968,32973],{"type":21,"tag":322,"props":32940,"children":32941},{"style":329},[32942],{"type":26,"value":14674},{"type":21,"tag":322,"props":32944,"children":32945},{"style":3648},[32946],{"type":26,"value":3688},{"type":21,"tag":322,"props":32948,"children":32949},{"style":329},[32950],{"type":26,"value":14683},{"type":21,"tag":322,"props":32952,"children":32953},{"style":359},[32954],{"type":26,"value":32955},"\"lightning.qubit\"",{"type":21,"tag":322,"props":32957,"children":32958},{"style":329},[32959],{"type":26,"value":367},{"type":21,"tag":322,"props":32961,"children":32962},{"style":3713},[32963],{"type":26,"value":14697},{"type":21,"tag":322,"props":32965,"children":32966},{"style":3648},[32967],{"type":26,"value":3688},{"type":21,"tag":322,"props":32969,"children":32970},{"style":348},[32971],{"type":26,"value":32972},"20",{"type":21,"tag":322,"props":32974,"children":32975},{"style":329},[32976],{"type":26,"value":3748},{"type":21,"tag":22,"props":32978,"children":32979},{},[32980,32985],{"type":21,"tag":71,"props":32981,"children":32982},{},[32983],{"type":26,"value":32984},"PennyLane का उपयोग कब करें:",{"type":26,"value":32986}," वैरिएशनल एल्गोरिदम (VQE, QAOA), क्वांटम ML, कोई भी वर्कफ़्लो जिसमें सर्किट ग्रेडिएंट की आवश्यकता हो।",{"type":21,"tag":59,"props":32988,"children":32990},{"id":32989},"nvidia-cuda-q-जब-गति-मायने-रखती-है",[32991],{"type":26,"value":32992},"NVIDIA CUDA-Q: जब गति मायने रखती है",{"type":21,"tag":22,"props":32994,"children":32995},{},[32996,33000],{"type":21,"tag":29,"props":32997,"children":32998},{"href":21063},[32999],{"type":26,"value":18662},{"type":26,"value":33001}," GPU-त्वरित सिमुलेशन प्रदान करता है जो बड़े सर्किटों के लिए CPU सिम्युलेटरों की तुलना में 100–10,000× तेज़ हो सकता है। यदि आपके पास कोई भी NVIDIA GPU है, तो 25+ क्यूबिट सर्किटों के लिए यह सही विकल्प है:",{"type":21,"tag":312,"props":33003,"children":33005},{"className":3636,"code":33004,"language":3638,"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",[33006],{"type":21,"tag":79,"props":33007,"children":33008},{"__ignoreMap":7},[33009,33020,33027,33034,33059,33075,33090,33125,33145,33153,33160,33168,33185,33227],{"type":21,"tag":322,"props":33010,"children":33011},{"class":324,"line":325},[33012,33016],{"type":21,"tag":322,"props":33013,"children":33014},{"style":3648},[33015],{"type":26,"value":3661},{"type":21,"tag":322,"props":33017,"children":33018},{"style":329},[33019],{"type":26,"value":22335},{"type":21,"tag":322,"props":33021,"children":33022},{"class":324,"line":335},[33023],{"type":21,"tag":322,"props":33024,"children":33025},{"emptyLinePlaceholder":3672},[33026],{"type":26,"value":3675},{"type":21,"tag":322,"props":33028,"children":33029},{"class":324,"line":344},[33030],{"type":21,"tag":322,"props":33031,"children":33032},{"style":4814},[33033],{"type":26,"value":22343},{"type":21,"tag":322,"props":33035,"children":33036},{"class":324,"line":407},[33037,33041,33046,33051,33055],{"type":21,"tag":322,"props":33038,"children":33039},{"style":3648},[33040],{"type":26,"value":4811},{"type":21,"tag":322,"props":33042,"children":33043},{"style":4814},[33044],{"type":26,"value":33045}," large_circuit",{"type":21,"tag":322,"props":33047,"children":33048},{"style":329},[33049],{"type":26,"value":33050},"(n: ",{"type":21,"tag":322,"props":33052,"children":33053},{"style":348},[33054],{"type":26,"value":5473},{"type":21,"tag":322,"props":33056,"children":33057},{"style":329},[33058],{"type":26,"value":4864},{"type":21,"tag":322,"props":33060,"children":33061},{"class":324,"line":431},[33062,33066,33070],{"type":21,"tag":322,"props":33063,"children":33064},{"style":329},[33065],{"type":26,"value":22366},{"type":21,"tag":322,"props":33067,"children":33068},{"style":3648},[33069],{"type":26,"value":3688},{"type":21,"tag":322,"props":33071,"children":33072},{"style":329},[33073],{"type":26,"value":33074}," cudaq.qvector(n)\n",{"type":21,"tag":322,"props":33076,"children":33077},{"class":324,"line":453},[33078,33082,33086],{"type":21,"tag":322,"props":33079,"children":33080},{"style":329},[33081],{"type":26,"value":22391},{"type":21,"tag":322,"props":33083,"children":33084},{"style":348},[33085],{"type":26,"value":5618},{"type":21,"tag":322,"props":33087,"children":33088},{"style":329},[33089],{"type":26,"value":4009},{"type":21,"tag":322,"props":33091,"children":33092},{"class":324,"line":474},[33093,33097,33101,33105,33109,33113,33117,33121],{"type":21,"tag":322,"props":33094,"children":33095},{"style":3648},[33096],{"type":26,"value":5190},{"type":21,"tag":322,"props":33098,"children":33099},{"style":329},[33100],{"type":26,"value":5195},{"type":21,"tag":322,"props":33102,"children":33103},{"style":3648},[33104],{"type":26,"value":3951},{"type":21,"tag":322,"props":33106,"children":33107},{"style":348},[33108],{"type":26,"value":3956},{"type":21,"tag":322,"props":33110,"children":33111},{"style":329},[33112],{"type":26,"value":8119},{"type":21,"tag":322,"props":33114,"children":33115},{"style":3648},[33116],{"type":26,"value":5298},{"type":21,"tag":322,"props":33118,"children":33119},{"style":348},[33120],{"type":26,"value":6549},{"type":21,"tag":322,"props":33122,"children":33123},{"style":329},[33124],{"type":26,"value":4864},{"type":21,"tag":322,"props":33126,"children":33127},{"class":324,"line":496},[33128,33133,33137,33141],{"type":21,"tag":322,"props":33129,"children":33130},{"style":329},[33131],{"type":26,"value":33132},"        cx(qvec[i], qvec[i ",{"type":21,"tag":322,"props":33134,"children":33135},{"style":3648},[33136],{"type":26,"value":6978},{"type":21,"tag":322,"props":33138,"children":33139},{"style":348},[33140],{"type":26,"value":6549},{"type":21,"tag":322,"props":33142,"children":33143},{"style":329},[33144],{"type":26,"value":4009},{"type":21,"tag":322,"props":33146,"children":33147},{"class":324,"line":16},[33148],{"type":21,"tag":322,"props":33149,"children":33150},{"style":329},[33151],{"type":26,"value":33152},"    mz(qvec)\n",{"type":21,"tag":322,"props":33154,"children":33155},{"class":324,"line":3894},[33156],{"type":21,"tag":322,"props":33157,"children":33158},{"emptyLinePlaceholder":3672},[33159],{"type":26,"value":3675},{"type":21,"tag":322,"props":33161,"children":33162},{"class":324,"line":3904},[33163],{"type":21,"tag":322,"props":33164,"children":33165},{"style":3898},[33166],{"type":26,"value":33167},"# Run on GPU (specify 'nvidia' target)\n",{"type":21,"tag":322,"props":33169,"children":33170},{"class":324,"line":1043},[33171,33176,33181],{"type":21,"tag":322,"props":33172,"children":33173},{"style":329},[33174],{"type":26,"value":33175},"cudaq.set_target(",{"type":21,"tag":322,"props":33177,"children":33178},{"style":359},[33179],{"type":26,"value":33180},"'nvidia'",{"type":21,"tag":322,"props":33182,"children":33183},{"style":329},[33184],{"type":26,"value":3748},{"type":21,"tag":322,"props":33186,"children":33187},{"class":324,"line":3964},[33188,33192,33196,33201,33206,33210,33214,33218,33223],{"type":21,"tag":322,"props":33189,"children":33190},{"style":329},[33191],{"type":26,"value":8907},{"type":21,"tag":322,"props":33193,"children":33194},{"style":3648},[33195],{"type":26,"value":3688},{"type":21,"tag":322,"props":33197,"children":33198},{"style":329},[33199],{"type":26,"value":33200}," cudaq.sample(large_circuit, ",{"type":21,"tag":322,"props":33202,"children":33203},{"style":348},[33204],{"type":26,"value":33205},"30",{"type":21,"tag":322,"props":33207,"children":33208},{"style":329},[33209],{"type":26,"value":367},{"type":21,"tag":322,"props":33211,"children":33212},{"style":3713},[33213],{"type":26,"value":22440},{"type":21,"tag":322,"props":33215,"children":33216},{"style":3648},[33217],{"type":26,"value":3688},{"type":21,"tag":322,"props":33219,"children":33220},{"style":348},[33221],{"type":26,"value":33222},"10000",{"type":21,"tag":322,"props":33224,"children":33225},{"style":329},[33226],{"type":26,"value":3748},{"type":21,"tag":322,"props":33228,"children":33229},{"class":324,"line":4012},[33230,33234],{"type":21,"tag":322,"props":33231,"children":33232},{"style":348},[33233],{"type":26,"value":3763},{"type":21,"tag":322,"props":33235,"children":33236},{"style":329},[33237],{"type":26,"value":33238},"(counts)\n",{"type":21,"tag":22,"props":33240,"children":33241},{},[33242,33247],{"type":21,"tag":71,"props":33243,"children":33244},{},[33245],{"type":26,"value":33246},"प्रदर्शन बेंचमार्क",{"type":26,"value":33248}," (GHZ सर्किट, 28 क्यूबिट, 1000 शॉट):",{"type":21,"tag":3566,"props":33250,"children":33251},{},[33252,33257,33262],{"type":21,"tag":3570,"props":33253,"children":33254},{},[33255],{"type":26,"value":33256},"Qiskit Aer CPU: ~45 सेकंड",{"type":21,"tag":3570,"props":33258,"children":33259},{},[33260],{"type":26,"value":33261},"PennyLane lightning.qubit: ~30 सेकंड",{"type":21,"tag":3570,"props":33263,"children":33264},{},[33265],{"type":26,"value":33266},"CUDA-Q (A100 GPU): ~0.8 सेकंड",{"type":21,"tag":22,"props":33268,"children":33269},{},[33270,33275],{"type":21,"tag":71,"props":33271,"children":33272},{},[33273],{"type":26,"value":33274},"CUDA-Q का उपयोग कब करें:",{"type":26,"value":33276}," 25+ क्यूबिट वाला कोई भी सर्किट, प्रदर्शन-महत्वपूर्ण सिमुलेशन, बहु-GPU वर्कलोड।",{"type":21,"tag":59,"props":33278,"children":33280},{"id":33279},"cirq-नॉइज़-मॉडलिंग-और-nisq-अनुसंधान",[33281],{"type":26,"value":33282},"Cirq: नॉइज़ मॉडलिंग और NISQ अनुसंधान",{"type":21,"tag":22,"props":33284,"children":33285},{},[33286,33290],{"type":21,"tag":29,"props":33287,"children":33288},{"href":9283},[33289],{"type":26,"value":21292},{"type":26,"value":33291}," में तीन सिम्युलेटर शामिल हैं:",{"type":21,"tag":312,"props":33293,"children":33295},{"className":3636,"code":33294,"language":3638,"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",[33296],{"type":21,"tag":79,"props":33297,"children":33298},{"__ignoreMap":7},[33299,33311,33318,33326,33342,33349,33357,33374,33399,33406,33436,33443,33451],{"type":21,"tag":322,"props":33300,"children":33301},{"class":324,"line":325},[33302,33306],{"type":21,"tag":322,"props":33303,"children":33304},{"style":3648},[33305],{"type":26,"value":3661},{"type":21,"tag":322,"props":33307,"children":33308},{"style":329},[33309],{"type":26,"value":33310}," cirq\n",{"type":21,"tag":322,"props":33312,"children":33313},{"class":324,"line":335},[33314],{"type":21,"tag":322,"props":33315,"children":33316},{"emptyLinePlaceholder":3672},[33317],{"type":26,"value":3675},{"type":21,"tag":322,"props":33319,"children":33320},{"class":324,"line":344},[33321],{"type":21,"tag":322,"props":33322,"children":33323},{"style":3898},[33324],{"type":26,"value":33325},"# Exact statevector simulation\n",{"type":21,"tag":322,"props":33327,"children":33328},{"class":324,"line":407},[33329,33333,33337],{"type":21,"tag":322,"props":33330,"children":33331},{"style":329},[33332],{"type":26,"value":8874},{"type":21,"tag":322,"props":33334,"children":33335},{"style":3648},[33336],{"type":26,"value":3688},{"type":21,"tag":322,"props":33338,"children":33339},{"style":329},[33340],{"type":26,"value":33341}," cirq.Simulator()\n",{"type":21,"tag":322,"props":33343,"children":33344},{"class":324,"line":431},[33345],{"type":21,"tag":322,"props":33346,"children":33347},{"emptyLinePlaceholder":3672},[33348],{"type":26,"value":3675},{"type":21,"tag":322,"props":33350,"children":33351},{"class":324,"line":453},[33352],{"type":21,"tag":322,"props":33353,"children":33354},{"style":3898},[33355],{"type":26,"value":33356},"# Density matrix with noise\n",{"type":21,"tag":322,"props":33358,"children":33359},{"class":324,"line":474},[33360,33365,33369],{"type":21,"tag":322,"props":33361,"children":33362},{"style":329},[33363],{"type":26,"value":33364},"noise_model ",{"type":21,"tag":322,"props":33366,"children":33367},{"style":3648},[33368],{"type":26,"value":3688},{"type":21,"tag":322,"props":33370,"children":33371},{"style":329},[33372],{"type":26,"value":33373}," cirq.ConstantQubitNoiseModel(\n",{"type":21,"tag":322,"props":33375,"children":33376},{"class":324,"line":496},[33377,33382,33386,33390,33395],{"type":21,"tag":322,"props":33378,"children":33379},{"style":329},[33380],{"type":26,"value":33381},"    cirq.depolarize(",{"type":21,"tag":322,"props":33383,"children":33384},{"style":3713},[33385],{"type":26,"value":22},{"type":21,"tag":322,"props":33387,"children":33388},{"style":3648},[33389],{"type":26,"value":3688},{"type":21,"tag":322,"props":33391,"children":33392},{"style":348},[33393],{"type":26,"value":33394},"0.01",{"type":21,"tag":322,"props":33396,"children":33397},{"style":329},[33398],{"type":26,"value":3748},{"type":21,"tag":322,"props":33400,"children":33401},{"class":324,"line":16},[33402],{"type":21,"tag":322,"props":33403,"children":33404},{"style":329},[33405],{"type":26,"value":3748},{"type":21,"tag":322,"props":33407,"children":33408},{"class":324,"line":3894},[33409,33414,33418,33423,33427,33431],{"type":21,"tag":322,"props":33410,"children":33411},{"style":329},[33412],{"type":26,"value":33413},"noisy_sim ",{"type":21,"tag":322,"props":33415,"children":33416},{"style":3648},[33417],{"type":26,"value":3688},{"type":21,"tag":322,"props":33419,"children":33420},{"style":329},[33421],{"type":26,"value":33422}," cirq.DensityMatrixSimulator(",{"type":21,"tag":322,"props":33424,"children":33425},{"style":3713},[33426],{"type":26,"value":15088},{"type":21,"tag":322,"props":33428,"children":33429},{"style":3648},[33430],{"type":26,"value":3688},{"type":21,"tag":322,"props":33432,"children":33433},{"style":329},[33434],{"type":26,"value":33435},"noise_model)\n",{"type":21,"tag":322,"props":33437,"children":33438},{"class":324,"line":3904},[33439],{"type":21,"tag":322,"props":33440,"children":33441},{"emptyLinePlaceholder":3672},[33442],{"type":26,"value":3675},{"type":21,"tag":322,"props":33444,"children":33445},{"class":324,"line":1043},[33446],{"type":21,"tag":322,"props":33447,"children":33448},{"style":3898},[33449],{"type":26,"value":33450},"# Clifford circuits only (but exponentially faster for stabilizer states)\n",{"type":21,"tag":322,"props":33452,"children":33453},{"class":324,"line":3964},[33454,33459,33463],{"type":21,"tag":322,"props":33455,"children":33456},{"style":329},[33457],{"type":26,"value":33458},"clifford_sim ",{"type":21,"tag":322,"props":33460,"children":33461},{"style":3648},[33462],{"type":26,"value":3688},{"type":21,"tag":322,"props":33464,"children":33465},{"style":329},[33466],{"type":26,"value":33467}," cirq.CliffordSimulator()\n",{"type":21,"tag":22,"props":33469,"children":33470},{},[33471,33476],{"type":21,"tag":71,"props":33472,"children":33473},{},[33474],{"type":26,"value":33475},"Cirq का उपयोग कब करें:",{"type":26,"value":33477}," NISQ नॉइज़ मॉडलिंग, stabilizer सर्किट अनुसंधान, Google AI Quantum वर्कफ़्लो।",{"type":21,"tag":59,"props":33479,"children":33481},{"id":33480},"amazon-braket-localsimulator-पृथक्करण-और-पोर्टेबिलिटी",[33482],{"type":26,"value":33483},"Amazon Braket LocalSimulator: पृथक्करण और पोर्टेबिलिटी",{"type":21,"tag":22,"props":33485,"children":33486},{},[33487,33493],{"type":21,"tag":29,"props":33488,"children":33490},{"href":33489},"\u002Fsdks\u002Fbraket",[33491],{"type":26,"value":33492},"Braket SDK",{"type":26,"value":33494}," में एक मुफ्त स्थानीय सिम्युलेटर शामिल है जो क्लाउड API को बिल्कुल प्रतिबिंबित करता है:",{"type":21,"tag":312,"props":33496,"children":33498},{"className":3636,"code":33497,"language":3638,"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",[33499],{"type":21,"tag":79,"props":33500,"children":33501},{"__ignoreMap":7},[33502,33523,33544,33551,33568,33575,33592,33608,33632,33640,33647,33680,33696],{"type":21,"tag":322,"props":33503,"children":33504},{"class":324,"line":325},[33505,33509,33514,33518],{"type":21,"tag":322,"props":33506,"children":33507},{"style":3648},[33508],{"type":26,"value":3651},{"type":21,"tag":322,"props":33510,"children":33511},{"style":329},[33512],{"type":26,"value":33513}," braket.devices ",{"type":21,"tag":322,"props":33515,"children":33516},{"style":3648},[33517],{"type":26,"value":3661},{"type":21,"tag":322,"props":33519,"children":33520},{"style":329},[33521],{"type":26,"value":33522}," LocalSimulator\n",{"type":21,"tag":322,"props":33524,"children":33525},{"class":324,"line":335},[33526,33530,33535,33539],{"type":21,"tag":322,"props":33527,"children":33528},{"style":3648},[33529],{"type":26,"value":3651},{"type":21,"tag":322,"props":33531,"children":33532},{"style":329},[33533],{"type":26,"value":33534}," braket.circuits ",{"type":21,"tag":322,"props":33536,"children":33537},{"style":3648},[33538],{"type":26,"value":3661},{"type":21,"tag":322,"props":33540,"children":33541},{"style":329},[33542],{"type":26,"value":33543}," Circuit\n",{"type":21,"tag":322,"props":33545,"children":33546},{"class":324,"line":344},[33547],{"type":21,"tag":322,"props":33548,"children":33549},{"emptyLinePlaceholder":3672},[33550],{"type":26,"value":3675},{"type":21,"tag":322,"props":33552,"children":33553},{"class":324,"line":407},[33554,33559,33563],{"type":21,"tag":322,"props":33555,"children":33556},{"style":329},[33557],{"type":26,"value":33558},"device ",{"type":21,"tag":322,"props":33560,"children":33561},{"style":3648},[33562],{"type":26,"value":3688},{"type":21,"tag":322,"props":33564,"children":33565},{"style":329},[33566],{"type":26,"value":33567}," LocalSimulator()\n",{"type":21,"tag":322,"props":33569,"children":33570},{"class":324,"line":431},[33571],{"type":21,"tag":322,"props":33572,"children":33573},{"emptyLinePlaceholder":3672},[33574],{"type":26,"value":3675},{"type":21,"tag":322,"props":33576,"children":33577},{"class":324,"line":453},[33578,33583,33587],{"type":21,"tag":322,"props":33579,"children":33580},{"style":329},[33581],{"type":26,"value":33582},"circuit ",{"type":21,"tag":322,"props":33584,"children":33585},{"style":3648},[33586],{"type":26,"value":3688},{"type":21,"tag":322,"props":33588,"children":33589},{"style":329},[33590],{"type":26,"value":33591}," Circuit()\n",{"type":21,"tag":322,"props":33593,"children":33594},{"class":324,"line":474},[33595,33600,33604],{"type":21,"tag":322,"props":33596,"children":33597},{"style":329},[33598],{"type":26,"value":33599},"circuit.h(",{"type":21,"tag":322,"props":33601,"children":33602},{"style":348},[33603],{"type":26,"value":5618},{"type":21,"tag":322,"props":33605,"children":33606},{"style":329},[33607],{"type":26,"value":3748},{"type":21,"tag":322,"props":33609,"children":33610},{"class":324,"line":496},[33611,33616,33620,33624,33628],{"type":21,"tag":322,"props":33612,"children":33613},{"style":329},[33614],{"type":26,"value":33615},"circuit.cnot(",{"type":21,"tag":322,"props":33617,"children":33618},{"style":348},[33619],{"type":26,"value":5618},{"type":21,"tag":322,"props":33621,"children":33622},{"style":329},[33623],{"type":26,"value":367},{"type":21,"tag":322,"props":33625,"children":33626},{"style":348},[33627],{"type":26,"value":4004},{"type":21,"tag":322,"props":33629,"children":33630},{"style":329},[33631],{"type":26,"value":3748},{"type":21,"tag":322,"props":33633,"children":33634},{"class":324,"line":16},[33635],{"type":21,"tag":322,"props":33636,"children":33637},{"style":329},[33638],{"type":26,"value":33639},"circuit.probability()\n",{"type":21,"tag":322,"props":33641,"children":33642},{"class":324,"line":3894},[33643],{"type":21,"tag":322,"props":33644,"children":33645},{"emptyLinePlaceholder":3672},[33646],{"type":26,"value":3675},{"type":21,"tag":322,"props":33648,"children":33649},{"class":324,"line":3904},[33650,33655,33659,33664,33668,33672,33676],{"type":21,"tag":322,"props":33651,"children":33652},{"style":329},[33653],{"type":26,"value":33654},"task ",{"type":21,"tag":322,"props":33656,"children":33657},{"style":3648},[33658],{"type":26,"value":3688},{"type":21,"tag":322,"props":33660,"children":33661},{"style":329},[33662],{"type":26,"value":33663}," device.run(circuit, ",{"type":21,"tag":322,"props":33665,"children":33666},{"style":3713},[33667],{"type":26,"value":4573},{"type":21,"tag":322,"props":33669,"children":33670},{"style":3648},[33671],{"type":26,"value":3688},{"type":21,"tag":322,"props":33673,"children":33674},{"style":348},[33675],{"type":26,"value":20912},{"type":21,"tag":322,"props":33677,"children":33678},{"style":329},[33679],{"type":26,"value":3748},{"type":21,"tag":322,"props":33681,"children":33682},{"class":324,"line":1043},[33683,33687,33691],{"type":21,"tag":322,"props":33684,"children":33685},{"style":329},[33686],{"type":26,"value":19775},{"type":21,"tag":322,"props":33688,"children":33689},{"style":3648},[33690],{"type":26,"value":3688},{"type":21,"tag":322,"props":33692,"children":33693},{"style":329},[33694],{"type":26,"value":33695}," task.result()\n",{"type":21,"tag":322,"props":33697,"children":33698},{"class":324,"line":3964},[33699,33703],{"type":21,"tag":322,"props":33700,"children":33701},{"style":348},[33702],{"type":26,"value":3763},{"type":21,"tag":322,"props":33704,"children":33705},{"style":329},[33706],{"type":26,"value":33707},"(result.measurement_counts)\n",{"type":21,"tag":22,"props":33709,"children":33710},{},[33711,33716],{"type":21,"tag":71,"props":33712,"children":33713},{},[33714],{"type":26,"value":33715},"Braket local का उपयोग कब करें:",{"type":26,"value":33717}," आप AWS परिनियोजन के लिए निर्माण कर रहे हैं और चाहते हैं कि स्थानीय dev\u002Ftest क्लाउड API से मेल खाए।",{"type":21,"tag":59,"props":33719,"children":33721},{"id":33720},"hlquantum-शॉर्टकट",[33722],{"type":26,"value":33723},"HLQuantum शॉर्टकट",{"type":21,"tag":22,"props":33725,"children":33726},{},[33727,33729,33733],{"type":26,"value":33728},"यदि आपको बेंचमार्किंग या तुलना के लिए एक ही सर्किट को कई सिम्युलेटरों पर चलाने की आवश्यकता है, तो ",{"type":21,"tag":29,"props":33730,"children":33731},{"href":19451},[33732],{"type":26,"value":19454},{"type":26,"value":33734}," इसे सरल बना देता है:",{"type":21,"tag":312,"props":33736,"children":33738},{"className":3636,"code":33737,"language":3638,"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",[33739],{"type":21,"tag":79,"props":33740,"children":33741},{"__ignoreMap":7},[33742,33761,33773,33780,33804,33819,33851,33871,33878,33885,33931,33948,33992],{"type":21,"tag":322,"props":33743,"children":33744},{"class":324,"line":325},[33745,33749,33753,33757],{"type":21,"tag":322,"props":33746,"children":33747},{"style":3648},[33748],{"type":26,"value":3661},{"type":21,"tag":322,"props":33750,"children":33751},{"style":329},[33752],{"type":26,"value":19743},{"type":21,"tag":322,"props":33754,"children":33755},{"style":3648},[33756],{"type":26,"value":4728},{"type":21,"tag":322,"props":33758,"children":33759},{"style":329},[33760],{"type":26,"value":19752},{"type":21,"tag":322,"props":33762,"children":33763},{"class":324,"line":335},[33764,33768],{"type":21,"tag":322,"props":33765,"children":33766},{"style":3648},[33767],{"type":26,"value":3661},{"type":21,"tag":322,"props":33769,"children":33770},{"style":329},[33771],{"type":26,"value":33772}," time\n",{"type":21,"tag":322,"props":33774,"children":33775},{"class":324,"line":344},[33776],{"type":21,"tag":322,"props":33777,"children":33778},{"emptyLinePlaceholder":3672},[33779],{"type":26,"value":3675},{"type":21,"tag":322,"props":33781,"children":33782},{"class":324,"line":407},[33783,33787,33791,33795,33800],{"type":21,"tag":322,"props":33784,"children":33785},{"style":329},[33786],{"type":26,"value":7832},{"type":21,"tag":322,"props":33788,"children":33789},{"style":3648},[33790],{"type":26,"value":3688},{"type":21,"tag":322,"props":33792,"children":33793},{"style":329},[33794],{"type":26,"value":21805},{"type":21,"tag":322,"props":33796,"children":33797},{"style":348},[33798],{"type":26,"value":33799},"28",{"type":21,"tag":322,"props":33801,"children":33802},{"style":329},[33803],{"type":26,"value":3748},{"type":21,"tag":322,"props":33805,"children":33806},{"class":324,"line":431},[33807,33811,33815],{"type":21,"tag":322,"props":33808,"children":33809},{"style":329},[33810],{"type":26,"value":7848},{"type":21,"tag":322,"props":33812,"children":33813},{"style":348},[33814],{"type":26,"value":5618},{"type":21,"tag":322,"props":33816,"children":33817},{"style":329},[33818],{"type":26,"value":3748},{"type":21,"tag":322,"props":33820,"children":33821},{"class":324,"line":453},[33822,33826,33830,33834,33838,33842,33847],{"type":21,"tag":322,"props":33823,"children":33824},{"style":3648},[33825],{"type":26,"value":3941},{"type":21,"tag":322,"props":33827,"children":33828},{"style":329},[33829],{"type":26,"value":5195},{"type":21,"tag":322,"props":33831,"children":33832},{"style":3648},[33833],{"type":26,"value":3951},{"type":21,"tag":322,"props":33835,"children":33836},{"style":348},[33837],{"type":26,"value":3956},{"type":21,"tag":322,"props":33839,"children":33840},{"style":329},[33841],{"type":26,"value":3768},{"type":21,"tag":322,"props":33843,"children":33844},{"style":348},[33845],{"type":26,"value":33846},"27",{"type":21,"tag":322,"props":33848,"children":33849},{"style":329},[33850],{"type":26,"value":4864},{"type":21,"tag":322,"props":33852,"children":33853},{"class":324,"line":474},[33854,33859,33863,33867],{"type":21,"tag":322,"props":33855,"children":33856},{"style":329},[33857],{"type":26,"value":33858},"    qc.cx(i, i ",{"type":21,"tag":322,"props":33860,"children":33861},{"style":3648},[33862],{"type":26,"value":6978},{"type":21,"tag":322,"props":33864,"children":33865},{"style":348},[33866],{"type":26,"value":6549},{"type":21,"tag":322,"props":33868,"children":33869},{"style":329},[33870],{"type":26,"value":3748},{"type":21,"tag":322,"props":33872,"children":33873},{"class":324,"line":496},[33874],{"type":21,"tag":322,"props":33875,"children":33876},{"style":329},[33877],{"type":26,"value":13538},{"type":21,"tag":322,"props":33879,"children":33880},{"class":324,"line":16},[33881],{"type":21,"tag":322,"props":33882,"children":33883},{"emptyLinePlaceholder":3672},[33884],{"type":26,"value":3675},{"type":21,"tag":322,"props":33886,"children":33887},{"class":324,"line":3894},[33888,33892,33897,33901,33905,33909,33913,33918,33922,33927],{"type":21,"tag":322,"props":33889,"children":33890},{"style":3648},[33891],{"type":26,"value":3941},{"type":21,"tag":322,"props":33893,"children":33894},{"style":329},[33895],{"type":26,"value":33896}," backend ",{"type":21,"tag":322,"props":33898,"children":33899},{"style":3648},[33900],{"type":26,"value":3951},{"type":21,"tag":322,"props":33902,"children":33903},{"style":329},[33904],{"type":26,"value":7111},{"type":21,"tag":322,"props":33906,"children":33907},{"style":359},[33908],{"type":26,"value":29227},{"type":21,"tag":322,"props":33910,"children":33911},{"style":329},[33912],{"type":26,"value":367},{"type":21,"tag":322,"props":33914,"children":33915},{"style":359},[33916],{"type":26,"value":33917},"\"pennylane\"",{"type":21,"tag":322,"props":33919,"children":33920},{"style":329},[33921],{"type":26,"value":367},{"type":21,"tag":322,"props":33923,"children":33924},{"style":359},[33925],{"type":26,"value":33926},"\"cudaq\"",{"type":21,"tag":322,"props":33928,"children":33929},{"style":329},[33930],{"type":26,"value":18033},{"type":21,"tag":322,"props":33932,"children":33933},{"class":324,"line":3904},[33934,33939,33943],{"type":21,"tag":322,"props":33935,"children":33936},{"style":329},[33937],{"type":26,"value":33938},"    t0 ",{"type":21,"tag":322,"props":33940,"children":33941},{"style":3648},[33942],{"type":26,"value":3688},{"type":21,"tag":322,"props":33944,"children":33945},{"style":329},[33946],{"type":26,"value":33947}," time.time()\n",{"type":21,"tag":322,"props":33949,"children":33950},{"class":324,"line":1043},[33951,33956,33960,33964,33968,33972,33976,33980,33984,33988],{"type":21,"tag":322,"props":33952,"children":33953},{"style":329},[33954],{"type":26,"value":33955},"    result ",{"type":21,"tag":322,"props":33957,"children":33958},{"style":3648},[33959],{"type":26,"value":3688},{"type":21,"tag":322,"props":33961,"children":33962},{"style":329},[33963],{"type":26,"value":21869},{"type":21,"tag":322,"props":33965,"children":33966},{"style":3713},[33967],{"type":26,"value":4573},{"type":21,"tag":322,"props":33969,"children":33970},{"style":3648},[33971],{"type":26,"value":3688},{"type":21,"tag":322,"props":33973,"children":33974},{"style":348},[33975],{"type":26,"value":20912},{"type":21,"tag":322,"props":33977,"children":33978},{"style":329},[33979],{"type":26,"value":367},{"type":21,"tag":322,"props":33981,"children":33982},{"style":3713},[33983],{"type":26,"value":18916},{"type":21,"tag":322,"props":33985,"children":33986},{"style":3648},[33987],{"type":26,"value":3688},{"type":21,"tag":322,"props":33989,"children":33990},{"style":329},[33991],{"type":26,"value":28744},{"type":21,"tag":322,"props":33993,"children":33994},{"class":324,"line":3964},[33995,33999,34003,34007,34011,34015,34019,34023,34027,34031,34036,34040,34045,34050,34054,34059],{"type":21,"tag":322,"props":33996,"children":33997},{"style":348},[33998],{"type":26,"value":17672},{"type":21,"tag":322,"props":34000,"children":34001},{"style":329},[34002],{"type":26,"value":3768},{"type":21,"tag":322,"props":34004,"children":34005},{"style":3648},[34006],{"type":26,"value":3773},{"type":21,"tag":322,"props":34008,"children":34009},{"style":359},[34010],{"type":26,"value":3798},{"type":21,"tag":322,"props":34012,"children":34013},{"style":348},[34014],{"type":26,"value":3783},{"type":21,"tag":322,"props":34016,"children":34017},{"style":329},[34018],{"type":26,"value":18916},{"type":21,"tag":322,"props":34020,"children":34021},{"style":348},[34022],{"type":26,"value":3793},{"type":21,"tag":322,"props":34024,"children":34025},{"style":359},[34026],{"type":26,"value":418},{"type":21,"tag":322,"props":34028,"children":34029},{"style":348},[34030],{"type":26,"value":3783},{"type":21,"tag":322,"props":34032,"children":34033},{"style":329},[34034],{"type":26,"value":34035},"time.time() ",{"type":21,"tag":322,"props":34037,"children":34038},{"style":3648},[34039],{"type":26,"value":5298},{"type":21,"tag":322,"props":34041,"children":34042},{"style":329},[34043],{"type":26,"value":34044}," t0",{"type":21,"tag":322,"props":34046,"children":34047},{"style":3648},[34048],{"type":26,"value":34049},":.2f",{"type":21,"tag":322,"props":34051,"children":34052},{"style":348},[34053],{"type":26,"value":3793},{"type":21,"tag":322,"props":34055,"children":34056},{"style":359},[34057],{"type":26,"value":34058},"s\"",{"type":21,"tag":322,"props":34060,"children":34061},{"style":329},[34062],{"type":26,"value":3748},{"type":21,"tag":22,"props":34064,"children":34065},{},[34066],{"type":26,"value":34067},"एक सर्किट, तीन बैकएंड, सीधे तुलनीय परिणाम।",{"type":21,"tag":703,"props":34069,"children":34070},{},[34071],{"type":26,"value":707},{"title":7,"searchDepth":335,"depth":335,"links":34073},[34074,34075,34076,34077,34078,34079,34080],{"id":32102,"depth":335,"text":32105},{"id":32291,"depth":335,"text":32294},{"id":32539,"depth":335,"text":32542},{"id":32989,"depth":335,"text":32992},{"id":33279,"depth":335,"text":33282},{"id":33480,"depth":335,"text":33483},{"id":33720,"depth":335,"text":33723},"content:hi:blog:quantum-simulators-compared.md","hi\u002Fblog\u002Fquantum-simulators-compared.md","hi\u002Fblog\u002Fquantum-simulators-compared",{"_path":34085,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":34086,"description":34087,"date":34088,"author":11,"tags":34089,"readingTime":16,"body":34090,"_type":715,"_id":36186,"_source":717,"_file":36187,"_stem":36188,"_extension":720},"\u002Fhi\u002Fblog\u002Fvqe-pennylane-practical-guide","PennyLane के साथ VQE बनाना: एक व्यावहारिक मार्गदर्शिका","PennyLane का उपयोग करते हुए Variational Quantum Eigensolver का चरण-दर-चरण कार्यान्वयन — Hamiltonian सेटअप से लेकर classical optimization loop तक।","2026-01-28",[888,14234,7598,14233],{"type":18,"children":34091,"toc":36177},[34092,34097,34103,34108,34131,34136,34142,34147,34174,34179,34510,34516,34526,34856,34862,34867,35342,35347,35355,35360,35366,35371,35655,35661,35666,36014,36020,36025,36035,36045,36063,36156,36173],{"type":21,"tag":22,"props":34093,"children":34094},{},[34095],{"type":26,"value":34096},"Variational Quantum Eigensolver (VQE) सबसे महत्वपूर्ण near-term क्वांटम एल्गोरिदम में से एक है। यह किसी अणु या पदार्थ की ground state ऊर्जा ज्ञात करता है — एक ऐसी गणना जो classical कंप्यूटरों के लिए exponentially कठिन है लेकिन NISQ उपकरणों पर साध्य है। यह मार्गदर्शिका एक संपूर्ण PennyLane VQE कार्यान्वयन के माध्यम से आपको ले जाती है।",{"type":21,"tag":59,"props":34098,"children":34100},{"id":34099},"vqe-क्या-करता-है",[34101],{"type":26,"value":34102},"VQE क्या करता है",{"type":21,"tag":22,"props":34104,"children":34105},{},[34106],{"type":26,"value":34107},"VQE किसी Hamiltonian H (आमतौर पर किसी अणु की ऊर्जा को दर्शाने वाला) के न्यूनतम eigenvalue को ज्ञात करता है। यह इस प्रकार काम करता है:",{"type":21,"tag":7457,"props":34109,"children":34110},{},[34111,34116,34121,34126],{"type":21,"tag":3570,"props":34112,"children":34113},{},[34114],{"type":26,"value":34115},"एक क्वांटम circuit का उपयोग करके एक parameterized trial state |ψ(θ)⟩ तैयार करना",{"type":21,"tag":3570,"props":34117,"children":34118},{},[34119],{"type":26,"value":34120},"QPU पर expectation value ⟨ψ(θ)|H|ψ(θ)⟩ को मापना",{"type":21,"tag":3570,"props":34122,"children":34123},{},[34124],{"type":26,"value":34125},"ऊर्जा को कम करने के लिए θ को अद्यतन करने हेतु एक classical optimizer का उपयोग करना",{"type":21,"tag":3570,"props":34127,"children":34128},{},[34129],{"type":26,"value":34130},"convergence तक दोहराना",{"type":21,"tag":22,"props":34132,"children":34133},{},[34134],{"type":26,"value":34135},"variational सिद्धांत किसी भी state के लिए ⟨ψ(θ)|H|ψ(θ)⟩ ≥ E₀ की गारंटी देता है — इसलिए इस राशि को कम करने से वास्तविक ground state ऊर्जा E₀ पर एक ऊपरी सीमा (upper bound) प्राप्त होती है।",{"type":21,"tag":59,"props":34137,"children":34139},{"id":34138},"सेटअप-करना",[34140],{"type":26,"value":34141},"सेटअप करना",{"type":21,"tag":22,"props":34143,"children":34144},{},[34145],{"type":26,"value":34146},"PennyLane को इसके chemistry plugin के साथ इंस्टॉल करें:",{"type":21,"tag":312,"props":34148,"children":34150},{"code":34149,"language":10194,"meta":7,"className":10192,"style":7},"pip install pennylane pennylane-qchem\n",[34151],{"type":21,"tag":79,"props":34152,"children":34153},{"__ignoreMap":7},[34154],{"type":21,"tag":322,"props":34155,"children":34156},{"class":324,"line":325},[34157,34161,34165,34169],{"type":21,"tag":322,"props":34158,"children":34159},{"style":4814},[34160],{"type":26,"value":12243},{"type":21,"tag":322,"props":34162,"children":34163},{"style":359},[34164],{"type":26,"value":12248},{"type":21,"tag":322,"props":34166,"children":34167},{"style":359},[34168],{"type":26,"value":21050},{"type":21,"tag":322,"props":34170,"children":34171},{"style":359},[34172],{"type":26,"value":34173}," pennylane-qchem\n",{"type":21,"tag":22,"props":34175,"children":34176},{},[34177],{"type":26,"value":34178},"हाइड्रोजन अणु (H₂) के लिए — क्लासिक VQE benchmark — हमें दो इलेक्ट्रॉन और चार spin-orbitals (4 qubits) की आवश्यकता होती है:",{"type":21,"tag":312,"props":34180,"children":34182},{"code":34181,"language":3638,"meta":7,"className":3636,"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",[34183],{"type":21,"tag":79,"props":34184,"children":34185},{"__ignoreMap":7},[34186,34205,34232,34253,34260,34268,34301,34372,34379,34387,34404,34412,34420,34436,34443,34502],{"type":21,"tag":322,"props":34187,"children":34188},{"class":324,"line":325},[34189,34193,34197,34201],{"type":21,"tag":322,"props":34190,"children":34191},{"style":3648},[34192],{"type":26,"value":3661},{"type":21,"tag":322,"props":34194,"children":34195},{"style":329},[34196],{"type":26,"value":14541},{"type":21,"tag":322,"props":34198,"children":34199},{"style":3648},[34200],{"type":26,"value":4728},{"type":21,"tag":322,"props":34202,"children":34203},{"style":329},[34204],{"type":26,"value":14550},{"type":21,"tag":322,"props":34206,"children":34207},{"class":324,"line":335},[34208,34212,34216,34220,34224,34228],{"type":21,"tag":322,"props":34209,"children":34210},{"style":3648},[34211],{"type":26,"value":3651},{"type":21,"tag":322,"props":34213,"children":34214},{"style":329},[34215],{"type":26,"value":14541},{"type":21,"tag":322,"props":34217,"children":34218},{"style":3648},[34219],{"type":26,"value":3661},{"type":21,"tag":322,"props":34221,"children":34222},{"style":329},[34223],{"type":26,"value":4723},{"type":21,"tag":322,"props":34225,"children":34226},{"style":3648},[34227],{"type":26,"value":4728},{"type":21,"tag":322,"props":34229,"children":34230},{"style":329},[34231],{"type":26,"value":4733},{"type":21,"tag":322,"props":34233,"children":34234},{"class":324,"line":344},[34235,34239,34244,34248],{"type":21,"tag":322,"props":34236,"children":34237},{"style":3648},[34238],{"type":26,"value":3661},{"type":21,"tag":322,"props":34240,"children":34241},{"style":329},[34242],{"type":26,"value":34243}," pennylane.qchem ",{"type":21,"tag":322,"props":34245,"children":34246},{"style":3648},[34247],{"type":26,"value":4728},{"type":21,"tag":322,"props":34249,"children":34250},{"style":329},[34251],{"type":26,"value":34252}," qchem\n",{"type":21,"tag":322,"props":34254,"children":34255},{"class":324,"line":407},[34256],{"type":21,"tag":322,"props":34257,"children":34258},{"emptyLinePlaceholder":3672},[34259],{"type":26,"value":3675},{"type":21,"tag":322,"props":34261,"children":34262},{"class":324,"line":431},[34263],{"type":21,"tag":322,"props":34264,"children":34265},{"style":3898},[34266],{"type":26,"value":34267},"# H2 at equilibrium bond length (Angstrom)\n",{"type":21,"tag":322,"props":34269,"children":34270},{"class":324,"line":453},[34271,34276,34280,34284,34289,34293,34297],{"type":21,"tag":322,"props":34272,"children":34273},{"style":329},[34274],{"type":26,"value":34275},"symbols ",{"type":21,"tag":322,"props":34277,"children":34278},{"style":3648},[34279],{"type":26,"value":3688},{"type":21,"tag":322,"props":34281,"children":34282},{"style":329},[34283],{"type":26,"value":7111},{"type":21,"tag":322,"props":34285,"children":34286},{"style":359},[34287],{"type":26,"value":34288},"\"H\"",{"type":21,"tag":322,"props":34290,"children":34291},{"style":329},[34292],{"type":26,"value":367},{"type":21,"tag":322,"props":34294,"children":34295},{"style":359},[34296],{"type":26,"value":34288},{"type":21,"tag":322,"props":34298,"children":34299},{"style":329},[34300],{"type":26,"value":7137},{"type":21,"tag":322,"props":34302,"children":34303},{"class":324,"line":474},[34304,34309,34313,34318,34322,34326,34330,34334,34338,34343,34347,34351,34355,34359,34363,34367],{"type":21,"tag":322,"props":34305,"children":34306},{"style":329},[34307],{"type":26,"value":34308},"coordinates ",{"type":21,"tag":322,"props":34310,"children":34311},{"style":3648},[34312],{"type":26,"value":3688},{"type":21,"tag":322,"props":34314,"children":34315},{"style":329},[34316],{"type":26,"value":34317}," np.array([[",{"type":21,"tag":322,"props":34319,"children":34320},{"style":348},[34321],{"type":26,"value":15365},{"type":21,"tag":322,"props":34323,"children":34324},{"style":329},[34325],{"type":26,"value":367},{"type":21,"tag":322,"props":34327,"children":34328},{"style":348},[34329],{"type":26,"value":15365},{"type":21,"tag":322,"props":34331,"children":34332},{"style":329},[34333],{"type":26,"value":367},{"type":21,"tag":322,"props":34335,"children":34336},{"style":3648},[34337],{"type":26,"value":5298},{"type":21,"tag":322,"props":34339,"children":34340},{"style":348},[34341],{"type":26,"value":34342},"0.6614",{"type":21,"tag":322,"props":34344,"children":34345},{"style":329},[34346],{"type":26,"value":5673},{"type":21,"tag":322,"props":34348,"children":34349},{"style":348},[34350],{"type":26,"value":15365},{"type":21,"tag":322,"props":34352,"children":34353},{"style":329},[34354],{"type":26,"value":367},{"type":21,"tag":322,"props":34356,"children":34357},{"style":348},[34358],{"type":26,"value":15365},{"type":21,"tag":322,"props":34360,"children":34361},{"style":329},[34362],{"type":26,"value":367},{"type":21,"tag":322,"props":34364,"children":34365},{"style":348},[34366],{"type":26,"value":34342},{"type":21,"tag":322,"props":34368,"children":34369},{"style":329},[34370],{"type":26,"value":34371},"]])\n",{"type":21,"tag":322,"props":34373,"children":34374},{"class":324,"line":496},[34375],{"type":21,"tag":322,"props":34376,"children":34377},{"emptyLinePlaceholder":3672},[34378],{"type":26,"value":3675},{"type":21,"tag":322,"props":34380,"children":34381},{"class":324,"line":16},[34382],{"type":21,"tag":322,"props":34383,"children":34384},{"style":3898},[34385],{"type":26,"value":34386},"# Build the qubit Hamiltonian\n",{"type":21,"tag":322,"props":34388,"children":34389},{"class":324,"line":3894},[34390,34395,34399],{"type":21,"tag":322,"props":34391,"children":34392},{"style":329},[34393],{"type":26,"value":34394},"H, qubits ",{"type":21,"tag":322,"props":34396,"children":34397},{"style":3648},[34398],{"type":26,"value":3688},{"type":21,"tag":322,"props":34400,"children":34401},{"style":329},[34402],{"type":26,"value":34403}," qchem.molecular_hamiltonian(\n",{"type":21,"tag":322,"props":34405,"children":34406},{"class":324,"line":3904},[34407],{"type":21,"tag":322,"props":34408,"children":34409},{"style":329},[34410],{"type":26,"value":34411},"    symbols,\n",{"type":21,"tag":322,"props":34413,"children":34414},{"class":324,"line":1043},[34415],{"type":21,"tag":322,"props":34416,"children":34417},{"style":329},[34418],{"type":26,"value":34419},"    coordinates,\n",{"type":21,"tag":322,"props":34421,"children":34422},{"class":324,"line":3964},[34423,34427,34431],{"type":21,"tag":322,"props":34424,"children":34425},{"style":3713},[34426],{"type":26,"value":23292},{"type":21,"tag":322,"props":34428,"children":34429},{"style":3648},[34430],{"type":26,"value":3688},{"type":21,"tag":322,"props":34432,"children":34433},{"style":359},[34434],{"type":26,"value":34435},"\"sto-3g\"\n",{"type":21,"tag":322,"props":34437,"children":34438},{"class":324,"line":4012},[34439],{"type":21,"tag":322,"props":34440,"children":34441},{"style":329},[34442],{"type":26,"value":3748},{"type":21,"tag":322,"props":34444,"children":34445},{"class":324,"line":4054},[34446,34450,34454,34458,34463,34467,34472,34476,34481,34485,34489,34493,34498],{"type":21,"tag":322,"props":34447,"children":34448},{"style":348},[34449],{"type":26,"value":3763},{"type":21,"tag":322,"props":34451,"children":34452},{"style":329},[34453],{"type":26,"value":3768},{"type":21,"tag":322,"props":34455,"children":34456},{"style":3648},[34457],{"type":26,"value":3773},{"type":21,"tag":322,"props":34459,"children":34460},{"style":359},[34461],{"type":26,"value":34462},"\"Hamiltonian: ",{"type":21,"tag":322,"props":34464,"children":34465},{"style":348},[34466],{"type":26,"value":25420},{"type":21,"tag":322,"props":34468,"children":34469},{"style":329},[34470],{"type":26,"value":34471},"(H.ops)",{"type":21,"tag":322,"props":34473,"children":34474},{"style":348},[34475],{"type":26,"value":3793},{"type":21,"tag":322,"props":34477,"children":34478},{"style":359},[34479],{"type":26,"value":34480}," terms, ",{"type":21,"tag":322,"props":34482,"children":34483},{"style":348},[34484],{"type":26,"value":3783},{"type":21,"tag":322,"props":34486,"children":34487},{"style":329},[34488],{"type":26,"value":1807},{"type":21,"tag":322,"props":34490,"children":34491},{"style":348},[34492],{"type":26,"value":3793},{"type":21,"tag":322,"props":34494,"children":34495},{"style":359},[34496],{"type":26,"value":34497}," qubits\"",{"type":21,"tag":322,"props":34499,"children":34500},{"style":329},[34501],{"type":26,"value":3748},{"type":21,"tag":322,"props":34503,"children":34504},{"class":324,"line":5081},[34505],{"type":21,"tag":322,"props":34506,"children":34507},{"style":3898},[34508],{"type":26,"value":34509},"# Hamiltonian: 15 terms, 4 qubits\n",{"type":21,"tag":59,"props":34511,"children":34513},{"id":34512},"ansatz-को-परिभाषित-करना",[34514],{"type":26,"value":34515},"Ansatz को परिभाषित करना",{"type":21,"tag":22,"props":34517,"children":34518},{},[34519,34524],{"type":21,"tag":71,"props":34520,"children":34521},{},[34522],{"type":26,"value":34523},"ansatz",{"type":26,"value":34525}," वह parameterized circuit है जो trial state तैयार करता है। chemistry समस्याओं के लिए, UCCSD (Unitary Coupled-Cluster Singles and Doubles) ansatz मानक है:",{"type":21,"tag":312,"props":34527,"children":34529},{"code":34528,"language":3638,"meta":7,"className":3636,"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",[34530],{"type":21,"tag":79,"props":34531,"children":34532},{"__ignoreMap":7},[34533,34541,34557,34574,34608,34615,34623,34640,34647,34683,34690,34701,34744,34752,34773,34780,34788,34838,34845],{"type":21,"tag":322,"props":34534,"children":34535},{"class":324,"line":325},[34536],{"type":21,"tag":322,"props":34537,"children":34538},{"style":3898},[34539],{"type":26,"value":34540},"# Get UCCSD circuit parameters\n",{"type":21,"tag":322,"props":34542,"children":34543},{"class":324,"line":335},[34544,34549,34553],{"type":21,"tag":322,"props":34545,"children":34546},{"style":329},[34547],{"type":26,"value":34548},"electrons ",{"type":21,"tag":322,"props":34550,"children":34551},{"style":3648},[34552],{"type":26,"value":3688},{"type":21,"tag":322,"props":34554,"children":34555},{"style":348},[34556],{"type":26,"value":5544},{"type":21,"tag":322,"props":34558,"children":34559},{"class":324,"line":344},[34560,34565,34569],{"type":21,"tag":322,"props":34561,"children":34562},{"style":329},[34563],{"type":26,"value":34564},"singles, doubles ",{"type":21,"tag":322,"props":34566,"children":34567},{"style":3648},[34568],{"type":26,"value":3688},{"type":21,"tag":322,"props":34570,"children":34571},{"style":329},[34572],{"type":26,"value":34573}," qchem.excitations(electrons, qubits)\n",{"type":21,"tag":322,"props":34575,"children":34576},{"class":324,"line":407},[34577,34582,34586,34591,34595,34599,34603],{"type":21,"tag":322,"props":34578,"children":34579},{"style":329},[34580],{"type":26,"value":34581},"s_wires, d_wires ",{"type":21,"tag":322,"props":34583,"children":34584},{"style":3648},[34585],{"type":26,"value":3688},{"type":21,"tag":322,"props":34587,"children":34588},{"style":329},[34589],{"type":26,"value":34590}," qchem.excitations_to_wires(singles, doubles, ",{"type":21,"tag":322,"props":34592,"children":34593},{"style":3713},[34594],{"type":26,"value":14697},{"type":21,"tag":322,"props":34596,"children":34597},{"style":3648},[34598],{"type":26,"value":3688},{"type":21,"tag":322,"props":34600,"children":34601},{"style":348},[34602],{"type":26,"value":5392},{"type":21,"tag":322,"props":34604,"children":34605},{"style":329},[34606],{"type":26,"value":34607},"(qubits))\n",{"type":21,"tag":322,"props":34609,"children":34610},{"class":324,"line":431},[34611],{"type":21,"tag":322,"props":34612,"children":34613},{"emptyLinePlaceholder":3672},[34614],{"type":26,"value":3675},{"type":21,"tag":322,"props":34616,"children":34617},{"class":324,"line":453},[34618],{"type":21,"tag":322,"props":34619,"children":34620},{"style":3898},[34621],{"type":26,"value":34622},"# Initial Hartree-Fock state (reference state)\n",{"type":21,"tag":322,"props":34624,"children":34625},{"class":324,"line":474},[34626,34631,34635],{"type":21,"tag":322,"props":34627,"children":34628},{"style":329},[34629],{"type":26,"value":34630},"hf_state ",{"type":21,"tag":322,"props":34632,"children":34633},{"style":3648},[34634],{"type":26,"value":3688},{"type":21,"tag":322,"props":34636,"children":34637},{"style":329},[34638],{"type":26,"value":34639}," qchem.hf_state(electrons, qubits)\n",{"type":21,"tag":322,"props":34641,"children":34642},{"class":324,"line":496},[34643],{"type":21,"tag":322,"props":34644,"children":34645},{"emptyLinePlaceholder":3672},[34646],{"type":26,"value":3675},{"type":21,"tag":322,"props":34648,"children":34649},{"class":324,"line":16},[34650,34654,34658,34662,34666,34670,34674,34678],{"type":21,"tag":322,"props":34651,"children":34652},{"style":329},[34653],{"type":26,"value":14674},{"type":21,"tag":322,"props":34655,"children":34656},{"style":3648},[34657],{"type":26,"value":3688},{"type":21,"tag":322,"props":34659,"children":34660},{"style":329},[34661],{"type":26,"value":14683},{"type":21,"tag":322,"props":34663,"children":34664},{"style":359},[34665],{"type":26,"value":14688},{"type":21,"tag":322,"props":34667,"children":34668},{"style":329},[34669],{"type":26,"value":367},{"type":21,"tag":322,"props":34671,"children":34672},{"style":3713},[34673],{"type":26,"value":14697},{"type":21,"tag":322,"props":34675,"children":34676},{"style":3648},[34677],{"type":26,"value":3688},{"type":21,"tag":322,"props":34679,"children":34680},{"style":329},[34681],{"type":26,"value":34682},"qubits)\n",{"type":21,"tag":322,"props":34684,"children":34685},{"class":324,"line":3894},[34686],{"type":21,"tag":322,"props":34687,"children":34688},{"emptyLinePlaceholder":3672},[34689],{"type":26,"value":3675},{"type":21,"tag":322,"props":34691,"children":34692},{"class":324,"line":3904},[34693,34697],{"type":21,"tag":322,"props":34694,"children":34695},{"style":4814},[34696],{"type":26,"value":14721},{"type":21,"tag":322,"props":34698,"children":34699},{"style":329},[34700],{"type":26,"value":14726},{"type":21,"tag":322,"props":34702,"children":34703},{"class":324,"line":1043},[34704,34708,34712,34717,34721,34726,34730,34735,34739],{"type":21,"tag":322,"props":34705,"children":34706},{"style":3648},[34707],{"type":26,"value":4811},{"type":21,"tag":322,"props":34709,"children":34710},{"style":4814},[34711],{"type":26,"value":14738},{"type":21,"tag":322,"props":34713,"children":34714},{"style":329},[34715],{"type":26,"value":34716},"(weights, wires, s_wires",{"type":21,"tag":322,"props":34718,"children":34719},{"style":3648},[34720],{"type":26,"value":3688},{"type":21,"tag":322,"props":34722,"children":34723},{"style":329},[34724],{"type":26,"value":34725},"[], d_wires",{"type":21,"tag":322,"props":34727,"children":34728},{"style":3648},[34729],{"type":26,"value":3688},{"type":21,"tag":322,"props":34731,"children":34732},{"style":329},[34733],{"type":26,"value":34734},"[], hf_state",{"type":21,"tag":322,"props":34736,"children":34737},{"style":3648},[34738],{"type":26,"value":3688},{"type":21,"tag":322,"props":34740,"children":34741},{"style":329},[34742],{"type":26,"value":34743},"hf_state):\n",{"type":21,"tag":322,"props":34745,"children":34746},{"class":324,"line":3964},[34747],{"type":21,"tag":322,"props":34748,"children":34749},{"style":3898},[34750],{"type":26,"value":34751},"    # Prepare HF reference state\n",{"type":21,"tag":322,"props":34753,"children":34754},{"class":324,"line":4012},[34755,34760,34764,34768],{"type":21,"tag":322,"props":34756,"children":34757},{"style":329},[34758],{"type":26,"value":34759},"    qml.BasisState(hf_state, ",{"type":21,"tag":322,"props":34761,"children":34762},{"style":3713},[34763],{"type":26,"value":14697},{"type":21,"tag":322,"props":34765,"children":34766},{"style":3648},[34767],{"type":26,"value":3688},{"type":21,"tag":322,"props":34769,"children":34770},{"style":329},[34771],{"type":26,"value":34772},"wires)\n",{"type":21,"tag":322,"props":34774,"children":34775},{"class":324,"line":4054},[34776],{"type":21,"tag":322,"props":34777,"children":34778},{"emptyLinePlaceholder":3672},[34779],{"type":26,"value":3675},{"type":21,"tag":322,"props":34781,"children":34782},{"class":324,"line":5081},[34783],{"type":21,"tag":322,"props":34784,"children":34785},{"style":3898},[34786],{"type":26,"value":34787},"    # Apply UCCSD excitations\n",{"type":21,"tag":322,"props":34789,"children":34790},{"class":324,"line":5100},[34791,34796,34801,34805,34810,34815,34819,34824,34829,34833],{"type":21,"tag":322,"props":34792,"children":34793},{"style":329},[34794],{"type":26,"value":34795},"    qml.UCCSD(weights, wires, ",{"type":21,"tag":322,"props":34797,"children":34798},{"style":3713},[34799],{"type":26,"value":34800},"s_wires",{"type":21,"tag":322,"props":34802,"children":34803},{"style":3648},[34804],{"type":26,"value":3688},{"type":21,"tag":322,"props":34806,"children":34807},{"style":329},[34808],{"type":26,"value":34809},"s_wires, ",{"type":21,"tag":322,"props":34811,"children":34812},{"style":3713},[34813],{"type":26,"value":34814},"d_wires",{"type":21,"tag":322,"props":34816,"children":34817},{"style":3648},[34818],{"type":26,"value":3688},{"type":21,"tag":322,"props":34820,"children":34821},{"style":329},[34822],{"type":26,"value":34823},"d_wires, ",{"type":21,"tag":322,"props":34825,"children":34826},{"style":3713},[34827],{"type":26,"value":34828},"init_state",{"type":21,"tag":322,"props":34830,"children":34831},{"style":3648},[34832],{"type":26,"value":3688},{"type":21,"tag":322,"props":34834,"children":34835},{"style":329},[34836],{"type":26,"value":34837},"hf_state)\n",{"type":21,"tag":322,"props":34839,"children":34840},{"class":324,"line":5108},[34841],{"type":21,"tag":322,"props":34842,"children":34843},{"emptyLinePlaceholder":3672},[34844],{"type":26,"value":3675},{"type":21,"tag":322,"props":34846,"children":34847},{"class":324,"line":5139},[34848,34852],{"type":21,"tag":322,"props":34849,"children":34850},{"style":3648},[34851],{"type":26,"value":5036},{"type":21,"tag":322,"props":34853,"children":34854},{"style":329},[34855],{"type":26,"value":25627},{"type":21,"tag":59,"props":34857,"children":34859},{"id":34858},"vqe-optimization-चलाना",[34860],{"type":26,"value":34861},"VQE Optimization चलाना",{"type":21,"tag":22,"props":34863,"children":34864},{},[34865],{"type":26,"value":34866},"PennyLane के automatic differentiation के साथ, हम सीधे gradient-based optimizers का उपयोग कर सकते हैं:",{"type":21,"tag":312,"props":34868,"children":34870},{"code":34869,"language":3638,"meta":7,"className":3636,"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",[34871],{"type":21,"tag":79,"props":34872,"children":34873},{"__ignoreMap":7},[34874,34882,34936,34943,34951,34983,34990,34998,35015,35030,35037,35068,35084,35131,35139,35146,35154,35161,35193,35259,35266,35318],{"type":21,"tag":322,"props":34875,"children":34876},{"class":324,"line":325},[34877],{"type":21,"tag":322,"props":34878,"children":34879},{"style":3898},[34880],{"type":26,"value":34881},"# Initial parameters (all zeros = Hartree-Fock state)\n",{"type":21,"tag":322,"props":34883,"children":34884},{"class":324,"line":335},[34885,34889,34893,34897,34901,34906,34910,34915,34920,34924,34928,34932],{"type":21,"tag":322,"props":34886,"children":34887},{"style":329},[34888],{"type":26,"value":30431},{"type":21,"tag":322,"props":34890,"children":34891},{"style":3648},[34892],{"type":26,"value":3688},{"type":21,"tag":322,"props":34894,"children":34895},{"style":329},[34896],{"type":26,"value":13136},{"type":21,"tag":322,"props":34898,"children":34899},{"style":348},[34900],{"type":26,"value":15513},{"type":21,"tag":322,"props":34902,"children":34903},{"style":329},[34904],{"type":26,"value":34905},"(singles) ",{"type":21,"tag":322,"props":34907,"children":34908},{"style":3648},[34909],{"type":26,"value":6978},{"type":21,"tag":322,"props":34911,"children":34912},{"style":348},[34913],{"type":26,"value":34914}," len",{"type":21,"tag":322,"props":34916,"children":34917},{"style":329},[34918],{"type":26,"value":34919},"(doubles), ",{"type":21,"tag":322,"props":34921,"children":34922},{"style":3713},[34923],{"type":26,"value":15331},{"type":21,"tag":322,"props":34925,"children":34926},{"style":3648},[34927],{"type":26,"value":3688},{"type":21,"tag":322,"props":34929,"children":34930},{"style":348},[34931],{"type":26,"value":3725},{"type":21,"tag":322,"props":34933,"children":34934},{"style":329},[34935],{"type":26,"value":3748},{"type":21,"tag":322,"props":34937,"children":34938},{"class":324,"line":344},[34939],{"type":21,"tag":322,"props":34940,"children":34941},{"emptyLinePlaceholder":3672},[34942],{"type":26,"value":3675},{"type":21,"tag":322,"props":34944,"children":34945},{"class":324,"line":407},[34946],{"type":21,"tag":322,"props":34947,"children":34948},{"style":3898},[34949],{"type":26,"value":34950},"# Adam optimizer (works well for VQE)\n",{"type":21,"tag":322,"props":34952,"children":34953},{"class":324,"line":431},[34954,34958,34962,34966,34970,34974,34979],{"type":21,"tag":322,"props":34955,"children":34956},{"style":329},[34957],{"type":26,"value":15400},{"type":21,"tag":322,"props":34959,"children":34960},{"style":3648},[34961],{"type":26,"value":3688},{"type":21,"tag":322,"props":34963,"children":34964},{"style":329},[34965],{"type":26,"value":15409},{"type":21,"tag":322,"props":34967,"children":34968},{"style":3713},[34969],{"type":26,"value":15414},{"type":21,"tag":322,"props":34971,"children":34972},{"style":3648},[34973],{"type":26,"value":3688},{"type":21,"tag":322,"props":34975,"children":34976},{"style":348},[34977],{"type":26,"value":34978},"0.4",{"type":21,"tag":322,"props":34980,"children":34981},{"style":329},[34982],{"type":26,"value":3748},{"type":21,"tag":322,"props":34984,"children":34985},{"class":324,"line":453},[34986],{"type":21,"tag":322,"props":34987,"children":34988},{"emptyLinePlaceholder":3672},[34989],{"type":26,"value":3675},{"type":21,"tag":322,"props":34991,"children":34992},{"class":324,"line":474},[34993],{"type":21,"tag":322,"props":34994,"children":34995},{"style":3898},[34996],{"type":26,"value":34997},"# Optimization loop\n",{"type":21,"tag":322,"props":34999,"children":35000},{"class":324,"line":496},[35001,35006,35010],{"type":21,"tag":322,"props":35002,"children":35003},{"style":329},[35004],{"type":26,"value":35005},"energy_history ",{"type":21,"tag":322,"props":35007,"children":35008},{"style":3648},[35009],{"type":26,"value":3688},{"type":21,"tag":322,"props":35011,"children":35012},{"style":329},[35013],{"type":26,"value":35014}," []\n",{"type":21,"tag":322,"props":35016,"children":35017},{"class":324,"line":16},[35018,35022,35026],{"type":21,"tag":322,"props":35019,"children":35020},{"style":329},[35021],{"type":26,"value":25690},{"type":21,"tag":322,"props":35023,"children":35024},{"style":3648},[35025],{"type":26,"value":3688},{"type":21,"tag":322,"props":35027,"children":35028},{"style":329},[35029],{"type":26,"value":26359},{"type":21,"tag":322,"props":35031,"children":35032},{"class":324,"line":3894},[35033],{"type":21,"tag":322,"props":35034,"children":35035},{"emptyLinePlaceholder":3672},[35036],{"type":26,"value":3675},{"type":21,"tag":322,"props":35038,"children":35039},{"class":324,"line":3904},[35040,35044,35048,35052,35056,35060,35064],{"type":21,"tag":322,"props":35041,"children":35042},{"style":3648},[35043],{"type":26,"value":3941},{"type":21,"tag":322,"props":35045,"children":35046},{"style":329},[35047],{"type":26,"value":15462},{"type":21,"tag":322,"props":35049,"children":35050},{"style":3648},[35051],{"type":26,"value":3951},{"type":21,"tag":322,"props":35053,"children":35054},{"style":348},[35055],{"type":26,"value":3956},{"type":21,"tag":322,"props":35057,"children":35058},{"style":329},[35059],{"type":26,"value":3768},{"type":21,"tag":322,"props":35061,"children":35062},{"style":348},[35063],{"type":26,"value":15079},{"type":21,"tag":322,"props":35065,"children":35066},{"style":329},[35067],{"type":26,"value":4864},{"type":21,"tag":322,"props":35069,"children":35070},{"class":324,"line":1043},[35071,35075,35079],{"type":21,"tag":322,"props":35072,"children":35073},{"style":329},[35074],{"type":26,"value":26428},{"type":21,"tag":322,"props":35076,"children":35077},{"style":3648},[35078],{"type":26,"value":3688},{"type":21,"tag":322,"props":35080,"children":35081},{"style":329},[35082],{"type":26,"value":35083}," opt.step_and_cost(\n",{"type":21,"tag":322,"props":35085,"children":35086},{"class":324,"line":3964},[35087,35092,35097,35101,35106,35110,35114,35118,35122,35126],{"type":21,"tag":322,"props":35088,"children":35089},{"style":3648},[35090],{"type":26,"value":35091},"        lambda",{"type":21,"tag":322,"props":35093,"children":35094},{"style":329},[35095],{"type":26,"value":35096}," p: circuit(p, ",{"type":21,"tag":322,"props":35098,"children":35099},{"style":348},[35100],{"type":26,"value":5392},{"type":21,"tag":322,"props":35102,"children":35103},{"style":329},[35104],{"type":26,"value":35105},"(qubits), ",{"type":21,"tag":322,"props":35107,"children":35108},{"style":3713},[35109],{"type":26,"value":34800},{"type":21,"tag":322,"props":35111,"children":35112},{"style":3648},[35113],{"type":26,"value":3688},{"type":21,"tag":322,"props":35115,"children":35116},{"style":329},[35117],{"type":26,"value":34809},{"type":21,"tag":322,"props":35119,"children":35120},{"style":3713},[35121],{"type":26,"value":34814},{"type":21,"tag":322,"props":35123,"children":35124},{"style":3648},[35125],{"type":26,"value":3688},{"type":21,"tag":322,"props":35127,"children":35128},{"style":329},[35129],{"type":26,"value":35130},"d_wires),\n",{"type":21,"tag":322,"props":35132,"children":35133},{"class":324,"line":4012},[35134],{"type":21,"tag":322,"props":35135,"children":35136},{"style":329},[35137],{"type":26,"value":35138},"        params\n",{"type":21,"tag":322,"props":35140,"children":35141},{"class":324,"line":4054},[35142],{"type":21,"tag":322,"props":35143,"children":35144},{"style":329},[35145],{"type":26,"value":5028},{"type":21,"tag":322,"props":35147,"children":35148},{"class":324,"line":5081},[35149],{"type":21,"tag":322,"props":35150,"children":35151},{"style":329},[35152],{"type":26,"value":35153},"    energy_history.append(energy)\n",{"type":21,"tag":322,"props":35155,"children":35156},{"class":324,"line":5100},[35157],{"type":21,"tag":322,"props":35158,"children":35159},{"emptyLinePlaceholder":3672},[35160],{"type":26,"value":3675},{"type":21,"tag":322,"props":35162,"children":35163},{"class":324,"line":5108},[35164,35168,35172,35176,35181,35185,35189],{"type":21,"tag":322,"props":35165,"children":35166},{"style":3648},[35167],{"type":26,"value":12395},{"type":21,"tag":322,"props":35169,"children":35170},{"style":329},[35171],{"type":26,"value":15462},{"type":21,"tag":322,"props":35173,"children":35174},{"style":3648},[35175],{"type":26,"value":6829},{"type":21,"tag":322,"props":35177,"children":35178},{"style":348},[35179],{"type":26,"value":35180}," 20",{"type":21,"tag":322,"props":35182,"children":35183},{"style":3648},[35184],{"type":26,"value":15588},{"type":21,"tag":322,"props":35186,"children":35187},{"style":348},[35188],{"type":26,"value":12409},{"type":21,"tag":322,"props":35190,"children":35191},{"style":329},[35192],{"type":26,"value":5369},{"type":21,"tag":322,"props":35194,"children":35195},{"class":324,"line":5139},[35196,35200,35204,35208,35212,35216,35220,35225,35229,35234,35238,35242,35247,35251,35255],{"type":21,"tag":322,"props":35197,"children":35198},{"style":348},[35199],{"type":26,"value":13341},{"type":21,"tag":322,"props":35201,"children":35202},{"style":329},[35203],{"type":26,"value":3768},{"type":21,"tag":322,"props":35205,"children":35206},{"style":3648},[35207],{"type":26,"value":3773},{"type":21,"tag":322,"props":35209,"children":35210},{"style":359},[35211],{"type":26,"value":15679},{"type":21,"tag":322,"props":35213,"children":35214},{"style":348},[35215],{"type":26,"value":3783},{"type":21,"tag":322,"props":35217,"children":35218},{"style":329},[35219],{"type":26,"value":15688},{"type":21,"tag":322,"props":35221,"children":35222},{"style":3648},[35223],{"type":26,"value":35224},":3d",{"type":21,"tag":322,"props":35226,"children":35227},{"style":348},[35228],{"type":26,"value":3793},{"type":21,"tag":322,"props":35230,"children":35231},{"style":359},[35232],{"type":26,"value":35233},": E = ",{"type":21,"tag":322,"props":35235,"children":35236},{"style":348},[35237],{"type":26,"value":3783},{"type":21,"tag":322,"props":35239,"children":35240},{"style":329},[35241],{"type":26,"value":27332},{"type":21,"tag":322,"props":35243,"children":35244},{"style":3648},[35245],{"type":26,"value":35246},":.6f",{"type":21,"tag":322,"props":35248,"children":35249},{"style":348},[35250],{"type":26,"value":3793},{"type":21,"tag":322,"props":35252,"children":35253},{"style":359},[35254],{"type":26,"value":19879},{"type":21,"tag":322,"props":35256,"children":35257},{"style":329},[35258],{"type":26,"value":3748},{"type":21,"tag":322,"props":35260,"children":35261},{"class":324,"line":5184},[35262],{"type":21,"tag":322,"props":35263,"children":35264},{"emptyLinePlaceholder":3672},[35265],{"type":26,"value":3675},{"type":21,"tag":322,"props":35267,"children":35268},{"class":324,"line":5223},[35269,35273,35277,35281,35285,35289,35294,35298,35302,35306,35310,35314],{"type":21,"tag":322,"props":35270,"children":35271},{"style":348},[35272],{"type":26,"value":3763},{"type":21,"tag":322,"props":35274,"children":35275},{"style":329},[35276],{"type":26,"value":3768},{"type":21,"tag":322,"props":35278,"children":35279},{"style":3648},[35280],{"type":26,"value":3773},{"type":21,"tag":322,"props":35282,"children":35283},{"style":359},[35284],{"type":26,"value":3798},{"type":21,"tag":322,"props":35286,"children":35287},{"style":348},[35288],{"type":26,"value":15816},{"type":21,"tag":322,"props":35290,"children":35291},{"style":359},[35292],{"type":26,"value":35293},"VQE ground state energy: ",{"type":21,"tag":322,"props":35295,"children":35296},{"style":348},[35297],{"type":26,"value":3783},{"type":21,"tag":322,"props":35299,"children":35300},{"style":329},[35301],{"type":26,"value":27332},{"type":21,"tag":322,"props":35303,"children":35304},{"style":3648},[35305],{"type":26,"value":35246},{"type":21,"tag":322,"props":35307,"children":35308},{"style":348},[35309],{"type":26,"value":3793},{"type":21,"tag":322,"props":35311,"children":35312},{"style":359},[35313],{"type":26,"value":19879},{"type":21,"tag":322,"props":35315,"children":35316},{"style":329},[35317],{"type":26,"value":3748},{"type":21,"tag":322,"props":35319,"children":35320},{"class":324,"line":5241},[35321,35325,35329,35333,35338],{"type":21,"tag":322,"props":35322,"children":35323},{"style":348},[35324],{"type":26,"value":3763},{"type":21,"tag":322,"props":35326,"children":35327},{"style":329},[35328],{"type":26,"value":3768},{"type":21,"tag":322,"props":35330,"children":35331},{"style":3648},[35332],{"type":26,"value":3773},{"type":21,"tag":322,"props":35334,"children":35335},{"style":359},[35336],{"type":26,"value":35337},"\"Reference (exact): -1.136189 Ha\"",{"type":21,"tag":322,"props":35339,"children":35340},{"style":329},[35341],{"type":26,"value":3748},{"type":21,"tag":22,"props":35343,"children":35344},{},[35345],{"type":26,"value":35346},"सामान्य output:",{"type":21,"tag":312,"props":35348,"children":35350},{"code":35349},"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",[35351],{"type":21,"tag":79,"props":35352,"children":35353},{"__ignoreMap":7},[35354],{"type":26,"value":35349},{"type":21,"tag":22,"props":35356,"children":35357},{},[35358],{"type":26,"value":35359},"VQE सटीक ऊर्जा के ~0.015 mHa के भीतर पहुँचता है — H₂ के लिए chemical accuracy।",{"type":21,"tag":59,"props":35361,"children":35363},{"id":35362},"एक-gradient-free-optimizer-का-उपयोग-करना",[35364],{"type":26,"value":35365},"एक Gradient-Free Optimizer का उपयोग करना",{"type":21,"tag":22,"props":35367,"children":35368},{},[35369],{"type":26,"value":35370},"noisy हार्डवेयर के लिए, COBYLA या SPSA जैसे gradient-free optimizers अक्सर बेहतर होते हैं क्योंकि हार्डवेयर gradients noisy होते हैं:",{"type":21,"tag":312,"props":35372,"children":35374},{"code":35373,"language":3638,"meta":7,"className":3636,"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",[35375],{"type":21,"tag":79,"props":35376,"children":35377},{"__ignoreMap":7},[35378,35397,35404,35412,35428,35477,35484,35500,35508,35525,35546,35597,35604,35611],{"type":21,"tag":322,"props":35379,"children":35380},{"class":324,"line":325},[35381,35385,35389,35393],{"type":21,"tag":322,"props":35382,"children":35383},{"style":3648},[35384],{"type":26,"value":3651},{"type":21,"tag":322,"props":35386,"children":35387},{"style":329},[35388],{"type":26,"value":29544},{"type":21,"tag":322,"props":35390,"children":35391},{"style":3648},[35392],{"type":26,"value":3661},{"type":21,"tag":322,"props":35394,"children":35395},{"style":329},[35396],{"type":26,"value":29553},{"type":21,"tag":322,"props":35398,"children":35399},{"class":324,"line":335},[35400],{"type":21,"tag":322,"props":35401,"children":35402},{"emptyLinePlaceholder":3672},[35403],{"type":26,"value":3675},{"type":21,"tag":322,"props":35405,"children":35406},{"class":324,"line":344},[35407],{"type":21,"tag":322,"props":35408,"children":35409},{"style":3898},[35410],{"type":26,"value":35411},"# Objective function (no gradient needed)\n",{"type":21,"tag":322,"props":35413,"children":35414},{"class":324,"line":407},[35415,35419,35424],{"type":21,"tag":322,"props":35416,"children":35417},{"style":3648},[35418],{"type":26,"value":4811},{"type":21,"tag":322,"props":35420,"children":35421},{"style":4814},[35422],{"type":26,"value":35423}," objective",{"type":21,"tag":322,"props":35425,"children":35426},{"style":329},[35427],{"type":26,"value":25599},{"type":21,"tag":322,"props":35429,"children":35430},{"class":324,"line":431},[35431,35435,35439,35444,35448,35452,35456,35460,35464,35468,35472],{"type":21,"tag":322,"props":35432,"children":35433},{"style":3648},[35434],{"type":26,"value":5036},{"type":21,"tag":322,"props":35436,"children":35437},{"style":348},[35438],{"type":26,"value":26376},{"type":21,"tag":322,"props":35440,"children":35441},{"style":329},[35442],{"type":26,"value":35443},"(circuit(params, ",{"type":21,"tag":322,"props":35445,"children":35446},{"style":348},[35447],{"type":26,"value":5392},{"type":21,"tag":322,"props":35449,"children":35450},{"style":329},[35451],{"type":26,"value":35105},{"type":21,"tag":322,"props":35453,"children":35454},{"style":3713},[35455],{"type":26,"value":34800},{"type":21,"tag":322,"props":35457,"children":35458},{"style":3648},[35459],{"type":26,"value":3688},{"type":21,"tag":322,"props":35461,"children":35462},{"style":329},[35463],{"type":26,"value":34809},{"type":21,"tag":322,"props":35465,"children":35466},{"style":3713},[35467],{"type":26,"value":34814},{"type":21,"tag":322,"props":35469,"children":35470},{"style":3648},[35471],{"type":26,"value":3688},{"type":21,"tag":322,"props":35473,"children":35474},{"style":329},[35475],{"type":26,"value":35476},"d_wires))\n",{"type":21,"tag":322,"props":35478,"children":35479},{"class":324,"line":453},[35480],{"type":21,"tag":322,"props":35481,"children":35482},{"emptyLinePlaceholder":3672},[35483],{"type":26,"value":3675},{"type":21,"tag":322,"props":35485,"children":35486},{"class":324,"line":474},[35487,35491,35495],{"type":21,"tag":322,"props":35488,"children":35489},{"style":329},[35490],{"type":26,"value":19775},{"type":21,"tag":322,"props":35492,"children":35493},{"style":3648},[35494],{"type":26,"value":3688},{"type":21,"tag":322,"props":35496,"children":35497},{"style":329},[35498],{"type":26,"value":35499}," minimize(\n",{"type":21,"tag":322,"props":35501,"children":35502},{"class":324,"line":496},[35503],{"type":21,"tag":322,"props":35504,"children":35505},{"style":329},[35506],{"type":26,"value":35507},"    objective,\n",{"type":21,"tag":322,"props":35509,"children":35510},{"class":324,"line":16},[35511,35516,35520],{"type":21,"tag":322,"props":35512,"children":35513},{"style":3713},[35514],{"type":26,"value":35515},"    x0",{"type":21,"tag":322,"props":35517,"children":35518},{"style":3648},[35519],{"type":26,"value":3688},{"type":21,"tag":322,"props":35521,"children":35522},{"style":329},[35523],{"type":26,"value":35524},"init_params,\n",{"type":21,"tag":322,"props":35526,"children":35527},{"class":324,"line":3894},[35528,35533,35537,35542],{"type":21,"tag":322,"props":35529,"children":35530},{"style":3713},[35531],{"type":26,"value":35532},"    method",{"type":21,"tag":322,"props":35534,"children":35535},{"style":3648},[35536],{"type":26,"value":3688},{"type":21,"tag":322,"props":35538,"children":35539},{"style":359},[35540],{"type":26,"value":35541},"\"COBYLA\"",{"type":21,"tag":322,"props":35543,"children":35544},{"style":329},[35545],{"type":26,"value":428},{"type":21,"tag":322,"props":35547,"children":35548},{"class":324,"line":3904},[35549,35554,35558,35562,35567,35571,35576,35580,35585,35589,35593],{"type":21,"tag":322,"props":35550,"children":35551},{"style":3713},[35552],{"type":26,"value":35553},"    options",{"type":21,"tag":322,"props":35555,"children":35556},{"style":3648},[35557],{"type":26,"value":3688},{"type":21,"tag":322,"props":35559,"children":35560},{"style":329},[35561],{"type":26,"value":3783},{"type":21,"tag":322,"props":35563,"children":35564},{"style":359},[35565],{"type":26,"value":35566},"\"maxiter\"",{"type":21,"tag":322,"props":35568,"children":35569},{"style":329},[35570],{"type":26,"value":418},{"type":21,"tag":322,"props":35572,"children":35573},{"style":348},[35574],{"type":26,"value":35575},"500",{"type":21,"tag":322,"props":35577,"children":35578},{"style":329},[35579],{"type":26,"value":367},{"type":21,"tag":322,"props":35581,"children":35582},{"style":359},[35583],{"type":26,"value":35584},"\"rhobeg\"",{"type":21,"tag":322,"props":35586,"children":35587},{"style":329},[35588],{"type":26,"value":418},{"type":21,"tag":322,"props":35590,"children":35591},{"style":348},[35592],{"type":26,"value":15321},{"type":21,"tag":322,"props":35594,"children":35595},{"style":329},[35596],{"type":26,"value":519},{"type":21,"tag":322,"props":35598,"children":35599},{"class":324,"line":1043},[35600],{"type":21,"tag":322,"props":35601,"children":35602},{"style":329},[35603],{"type":26,"value":3748},{"type":21,"tag":322,"props":35605,"children":35606},{"class":324,"line":3964},[35607],{"type":21,"tag":322,"props":35608,"children":35609},{"emptyLinePlaceholder":3672},[35610],{"type":26,"value":3675},{"type":21,"tag":322,"props":35612,"children":35613},{"class":324,"line":4012},[35614,35618,35622,35626,35631,35635,35639,35643,35647,35651],{"type":21,"tag":322,"props":35615,"children":35616},{"style":348},[35617],{"type":26,"value":3763},{"type":21,"tag":322,"props":35619,"children":35620},{"style":329},[35621],{"type":26,"value":3768},{"type":21,"tag":322,"props":35623,"children":35624},{"style":3648},[35625],{"type":26,"value":3773},{"type":21,"tag":322,"props":35627,"children":35628},{"style":359},[35629],{"type":26,"value":35630},"\"COBYLA energy: ",{"type":21,"tag":322,"props":35632,"children":35633},{"style":348},[35634],{"type":26,"value":3783},{"type":21,"tag":322,"props":35636,"children":35637},{"style":329},[35638],{"type":26,"value":30609},{"type":21,"tag":322,"props":35640,"children":35641},{"style":3648},[35642],{"type":26,"value":35246},{"type":21,"tag":322,"props":35644,"children":35645},{"style":348},[35646],{"type":26,"value":3793},{"type":21,"tag":322,"props":35648,"children":35649},{"style":359},[35650],{"type":26,"value":19879},{"type":21,"tag":322,"props":35652,"children":35653},{"style":329},[35654],{"type":26,"value":3748},{"type":21,"tag":59,"props":35656,"children":35658},{"id":35657},"hlquantum-के-साथ-vqe-चलाना",[35659],{"type":26,"value":35660},"HLQuantum के साथ VQE चलाना",{"type":21,"tag":22,"props":35662,"children":35663},{},[35664],{"type":26,"value":35665},"HLQuantum में एक अंतर्निहित VQE कार्यान्वयन शामिल है जो सभी backends में काम करता है:",{"type":21,"tag":312,"props":35667,"children":35669},{"code":35668,"language":3638,"meta":7,"className":3636,"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",[35670],{"type":21,"tag":79,"props":35671,"children":35672},{"__ignoreMap":7},[35673,35692,35699,35707,35741,35748,35756,35771,35788,35809,35829,35849,35874,35881,35888,35931,35972],{"type":21,"tag":322,"props":35674,"children":35675},{"class":324,"line":325},[35676,35680,35684,35688],{"type":21,"tag":322,"props":35677,"children":35678},{"style":3648},[35679],{"type":26,"value":3661},{"type":21,"tag":322,"props":35681,"children":35682},{"style":329},[35683],{"type":26,"value":19743},{"type":21,"tag":322,"props":35685,"children":35686},{"style":3648},[35687],{"type":26,"value":4728},{"type":21,"tag":322,"props":35689,"children":35690},{"style":329},[35691],{"type":26,"value":19752},{"type":21,"tag":322,"props":35693,"children":35694},{"class":324,"line":335},[35695],{"type":21,"tag":322,"props":35696,"children":35697},{"emptyLinePlaceholder":3672},[35698],{"type":26,"value":3675},{"type":21,"tag":322,"props":35700,"children":35701},{"class":324,"line":344},[35702],{"type":21,"tag":322,"props":35703,"children":35704},{"style":3898},[35705],{"type":26,"value":35706},"# Define the Hamiltonian in HLQuantum's format\n",{"type":21,"tag":322,"props":35708,"children":35709},{"class":324,"line":407},[35710,35714,35718,35723,35728,35732,35737],{"type":21,"tag":322,"props":35711,"children":35712},{"style":329},[35713],{"type":26,"value":25336},{"type":21,"tag":322,"props":35715,"children":35716},{"style":3648},[35717],{"type":26,"value":3688},{"type":21,"tag":322,"props":35719,"children":35720},{"style":329},[35721],{"type":26,"value":35722}," hlq.hamiltonians.h2_molecule(",{"type":21,"tag":322,"props":35724,"children":35725},{"style":3713},[35726],{"type":26,"value":35727},"bond_length",{"type":21,"tag":322,"props":35729,"children":35730},{"style":3648},[35731],{"type":26,"value":3688},{"type":21,"tag":322,"props":35733,"children":35734},{"style":348},[35735],{"type":26,"value":35736},"1.32",{"type":21,"tag":322,"props":35738,"children":35739},{"style":329},[35740],{"type":26,"value":3748},{"type":21,"tag":322,"props":35742,"children":35743},{"class":324,"line":431},[35744],{"type":21,"tag":322,"props":35745,"children":35746},{"emptyLinePlaceholder":3672},[35747],{"type":26,"value":3675},{"type":21,"tag":322,"props":35749,"children":35750},{"class":324,"line":453},[35751],{"type":21,"tag":322,"props":35752,"children":35753},{"style":3898},[35754],{"type":26,"value":35755},"# Run VQE on any backend\n",{"type":21,"tag":322,"props":35757,"children":35758},{"class":324,"line":474},[35759,35763,35767],{"type":21,"tag":322,"props":35760,"children":35761},{"style":329},[35762],{"type":26,"value":19775},{"type":21,"tag":322,"props":35764,"children":35765},{"style":3648},[35766],{"type":26,"value":3688},{"type":21,"tag":322,"props":35768,"children":35769},{"style":329},[35770],{"type":26,"value":23264},{"type":21,"tag":322,"props":35772,"children":35773},{"class":324,"line":496},[35774,35779,35783],{"type":21,"tag":322,"props":35775,"children":35776},{"style":3713},[35777],{"type":26,"value":35778},"    hamiltonian",{"type":21,"tag":322,"props":35780,"children":35781},{"style":3648},[35782],{"type":26,"value":3688},{"type":21,"tag":322,"props":35784,"children":35785},{"style":329},[35786],{"type":26,"value":35787},"H,\n",{"type":21,"tag":322,"props":35789,"children":35790},{"class":324,"line":16},[35791,35796,35800,35805],{"type":21,"tag":322,"props":35792,"children":35793},{"style":3713},[35794],{"type":26,"value":35795},"    ansatz",{"type":21,"tag":322,"props":35797,"children":35798},{"style":3648},[35799],{"type":26,"value":3688},{"type":21,"tag":322,"props":35801,"children":35802},{"style":359},[35803],{"type":26,"value":35804},"\"uccsd\"",{"type":21,"tag":322,"props":35806,"children":35807},{"style":329},[35808],{"type":26,"value":428},{"type":21,"tag":322,"props":35810,"children":35811},{"class":324,"line":3894},[35812,35816,35820,35825],{"type":21,"tag":322,"props":35813,"children":35814},{"style":3713},[35815],{"type":26,"value":23332},{"type":21,"tag":322,"props":35817,"children":35818},{"style":3648},[35819],{"type":26,"value":3688},{"type":21,"tag":322,"props":35821,"children":35822},{"style":359},[35823],{"type":26,"value":35824},"\"adam\"",{"type":21,"tag":322,"props":35826,"children":35827},{"style":329},[35828],{"type":26,"value":428},{"type":21,"tag":322,"props":35830,"children":35831},{"class":324,"line":3904},[35832,35837,35841,35845],{"type":21,"tag":322,"props":35833,"children":35834},{"style":3713},[35835],{"type":26,"value":35836},"    max_iterations",{"type":21,"tag":322,"props":35838,"children":35839},{"style":3648},[35840],{"type":26,"value":3688},{"type":21,"tag":322,"props":35842,"children":35843},{"style":348},[35844],{"type":26,"value":15079},{"type":21,"tag":322,"props":35846,"children":35847},{"style":329},[35848],{"type":26,"value":428},{"type":21,"tag":322,"props":35850,"children":35851},{"class":324,"line":1043},[35852,35856,35860,35864,35869],{"type":21,"tag":322,"props":35853,"children":35854},{"style":3713},[35855],{"type":26,"value":23312},{"type":21,"tag":322,"props":35857,"children":35858},{"style":3648},[35859],{"type":26,"value":3688},{"type":21,"tag":322,"props":35861,"children":35862},{"style":359},[35863],{"type":26,"value":33917},{"type":21,"tag":322,"props":35865,"children":35866},{"style":329},[35867],{"type":26,"value":35868},",   ",{"type":21,"tag":322,"props":35870,"children":35871},{"style":3898},[35872],{"type":26,"value":35873},"# or \"qiskit\", \"cudaq\"\n",{"type":21,"tag":322,"props":35875,"children":35876},{"class":324,"line":3964},[35877],{"type":21,"tag":322,"props":35878,"children":35879},{"style":329},[35880],{"type":26,"value":3748},{"type":21,"tag":322,"props":35882,"children":35883},{"class":324,"line":4012},[35884],{"type":21,"tag":322,"props":35885,"children":35886},{"emptyLinePlaceholder":3672},[35887],{"type":26,"value":3675},{"type":21,"tag":322,"props":35889,"children":35890},{"class":324,"line":4054},[35891,35895,35899,35903,35907,35911,35915,35919,35923,35927],{"type":21,"tag":322,"props":35892,"children":35893},{"style":348},[35894],{"type":26,"value":3763},{"type":21,"tag":322,"props":35896,"children":35897},{"style":329},[35898],{"type":26,"value":3768},{"type":21,"tag":322,"props":35900,"children":35901},{"style":3648},[35902],{"type":26,"value":3773},{"type":21,"tag":322,"props":35904,"children":35905},{"style":359},[35906],{"type":26,"value":27323},{"type":21,"tag":322,"props":35908,"children":35909},{"style":348},[35910],{"type":26,"value":3783},{"type":21,"tag":322,"props":35912,"children":35913},{"style":329},[35914],{"type":26,"value":19866},{"type":21,"tag":322,"props":35916,"children":35917},{"style":3648},[35918],{"type":26,"value":35246},{"type":21,"tag":322,"props":35920,"children":35921},{"style":348},[35922],{"type":26,"value":3793},{"type":21,"tag":322,"props":35924,"children":35925},{"style":359},[35926],{"type":26,"value":19879},{"type":21,"tag":322,"props":35928,"children":35929},{"style":329},[35930],{"type":26,"value":3748},{"type":21,"tag":322,"props":35932,"children":35933},{"class":324,"line":5081},[35934,35938,35942,35946,35951,35955,35960,35964,35968],{"type":21,"tag":322,"props":35935,"children":35936},{"style":348},[35937],{"type":26,"value":3763},{"type":21,"tag":322,"props":35939,"children":35940},{"style":329},[35941],{"type":26,"value":3768},{"type":21,"tag":322,"props":35943,"children":35944},{"style":3648},[35945],{"type":26,"value":3773},{"type":21,"tag":322,"props":35947,"children":35948},{"style":359},[35949],{"type":26,"value":35950},"\"Optimal parameters: ",{"type":21,"tag":322,"props":35952,"children":35953},{"style":348},[35954],{"type":26,"value":3783},{"type":21,"tag":322,"props":35956,"children":35957},{"style":329},[35958],{"type":26,"value":35959},"result.params",{"type":21,"tag":322,"props":35961,"children":35962},{"style":348},[35963],{"type":26,"value":3793},{"type":21,"tag":322,"props":35965,"children":35966},{"style":359},[35967],{"type":26,"value":3798},{"type":21,"tag":322,"props":35969,"children":35970},{"style":329},[35971],{"type":26,"value":3748},{"type":21,"tag":322,"props":35973,"children":35974},{"class":324,"line":5100},[35975,35979,35983,35987,35992,35996,36001,36005,36010],{"type":21,"tag":322,"props":35976,"children":35977},{"style":348},[35978],{"type":26,"value":3763},{"type":21,"tag":322,"props":35980,"children":35981},{"style":329},[35982],{"type":26,"value":3768},{"type":21,"tag":322,"props":35984,"children":35985},{"style":3648},[35986],{"type":26,"value":3773},{"type":21,"tag":322,"props":35988,"children":35989},{"style":359},[35990],{"type":26,"value":35991},"\"Converged in ",{"type":21,"tag":322,"props":35993,"children":35994},{"style":348},[35995],{"type":26,"value":3783},{"type":21,"tag":322,"props":35997,"children":35998},{"style":329},[35999],{"type":26,"value":36000},"result.iterations",{"type":21,"tag":322,"props":36002,"children":36003},{"style":348},[36004],{"type":26,"value":3793},{"type":21,"tag":322,"props":36006,"children":36007},{"style":359},[36008],{"type":26,"value":36009}," iterations\"",{"type":21,"tag":322,"props":36011,"children":36012},{"style":329},[36013],{"type":26,"value":3748},{"type":21,"tag":59,"props":36015,"children":36017},{"id":36016},"वास्तविक-हार्डवेयर-के-लिए-सुझाव",[36018],{"type":26,"value":36019},"वास्तविक हार्डवेयर के लिए सुझाव",{"type":21,"tag":22,"props":36021,"children":36022},{},[36023],{"type":26,"value":36024},"वास्तविक QPUs (IBM Quantum, IonQ) पर VQE चलाते समय, कई अतिरिक्त बातों पर विचार करना पड़ता है:",{"type":21,"tag":22,"props":36026,"children":36027},{},[36028,36033],{"type":21,"tag":71,"props":36029,"children":36030},{},[36031],{"type":26,"value":36032},"प्रति step कम shots का उपयोग करें।",{"type":26,"value":36034}," प्रति optimization step 1000 shots आमतौर पर gradient अनुमान के लिए पर्याप्त होते हैं। हर step पर 10,000 shots का उपयोग न करें — यह QPU समय बर्बाद करता है।",{"type":21,"tag":22,"props":36036,"children":36037},{},[36038,36043],{"type":21,"tag":71,"props":36039,"children":36040},{},[36041],{"type":26,"value":36042},"shallow circuits से शुरू करें।",{"type":26,"value":36044}," कम CNOT गेट = कम noise। हार्डवेयर के लिए, UCCSD के बजाय hardware-efficient ansatz circuits पर विचार करें।",{"type":21,"tag":22,"props":36046,"children":36047},{},[36048,36053,36055,36061],{"type":21,"tag":71,"props":36049,"children":36050},{},[36051],{"type":26,"value":36052},"error mitigation सक्षम करें।",{"type":26,"value":36054}," HLQuantum का ",{"type":21,"tag":79,"props":36056,"children":36058},{"className":36057},[],[36059],{"type":26,"value":36060},"error_mitigation=\"zne\"",{"type":26,"value":36062}," Zero Noise Extrapolation लागू करता है, जो noisy हार्डवेयर पर परिणामों को उल्लेखनीय रूप से बेहतर बना सकता है:",{"type":21,"tag":312,"props":36064,"children":36066},{"code":36065,"language":3638,"meta":7,"className":3636,"style":7},"result = hlq.run(vqe_circuit, backend=\"qiskit\", device=\"ibm_sherbrooke\",\n                 error_mitigation=\"zne\", shots=2048)\n",[36067],{"type":21,"tag":79,"props":36068,"children":36069},{"__ignoreMap":7},[36070,36118],{"type":21,"tag":322,"props":36071,"children":36072},{"class":324,"line":325},[36073,36077,36081,36086,36090,36094,36098,36102,36106,36110,36114],{"type":21,"tag":322,"props":36074,"children":36075},{"style":329},[36076],{"type":26,"value":19775},{"type":21,"tag":322,"props":36078,"children":36079},{"style":3648},[36080],{"type":26,"value":3688},{"type":21,"tag":322,"props":36082,"children":36083},{"style":329},[36084],{"type":26,"value":36085}," hlq.run(vqe_circuit, ",{"type":21,"tag":322,"props":36087,"children":36088},{"style":3713},[36089],{"type":26,"value":18916},{"type":21,"tag":322,"props":36091,"children":36092},{"style":3648},[36093],{"type":26,"value":3688},{"type":21,"tag":322,"props":36095,"children":36096},{"style":359},[36097],{"type":26,"value":29227},{"type":21,"tag":322,"props":36099,"children":36100},{"style":329},[36101],{"type":26,"value":367},{"type":21,"tag":322,"props":36103,"children":36104},{"style":3713},[36105],{"type":26,"value":22735},{"type":21,"tag":322,"props":36107,"children":36108},{"style":3648},[36109],{"type":26,"value":3688},{"type":21,"tag":322,"props":36111,"children":36112},{"style":359},[36113],{"type":26,"value":29248},{"type":21,"tag":322,"props":36115,"children":36116},{"style":329},[36117],{"type":26,"value":428},{"type":21,"tag":322,"props":36119,"children":36120},{"class":324,"line":335},[36121,36126,36130,36135,36139,36143,36147,36152],{"type":21,"tag":322,"props":36122,"children":36123},{"style":3713},[36124],{"type":26,"value":36125},"                 error_mitigation",{"type":21,"tag":322,"props":36127,"children":36128},{"style":3648},[36129],{"type":26,"value":3688},{"type":21,"tag":322,"props":36131,"children":36132},{"style":359},[36133],{"type":26,"value":36134},"\"zne\"",{"type":21,"tag":322,"props":36136,"children":36137},{"style":329},[36138],{"type":26,"value":367},{"type":21,"tag":322,"props":36140,"children":36141},{"style":3713},[36142],{"type":26,"value":4573},{"type":21,"tag":322,"props":36144,"children":36145},{"style":3648},[36146],{"type":26,"value":3688},{"type":21,"tag":322,"props":36148,"children":36149},{"style":348},[36150],{"type":26,"value":36151},"2048",{"type":21,"tag":322,"props":36153,"children":36154},{"style":329},[36155],{"type":26,"value":3748},{"type":21,"tag":22,"props":36157,"children":36158},{},[36159,36161,36166,36167,36172],{"type":26,"value":36160},"क्वांटम chemistry simulations पर अधिक विवरण के लिए पूर्ण ",{"type":21,"tag":29,"props":36162,"children":36163},{"href":14518},[36164],{"type":26,"value":36165},"PennyLane guide",{"type":26,"value":814},{"type":21,"tag":29,"props":36168,"children":36169},{"href":19451},[36170],{"type":26,"value":36171},"HLQuantum algorithms reference",{"type":26,"value":4162},{"type":21,"tag":703,"props":36174,"children":36175},{},[36176],{"type":26,"value":707},{"title":7,"searchDepth":335,"depth":335,"links":36178},[36179,36180,36181,36182,36183,36184,36185],{"id":34099,"depth":335,"text":34102},{"id":34138,"depth":335,"text":34141},{"id":34512,"depth":335,"text":34515},{"id":34858,"depth":335,"text":34861},{"id":35362,"depth":335,"text":35365},{"id":35657,"depth":335,"text":35660},{"id":36016,"depth":335,"text":36019},"content:hi:blog:vqe-pennylane-practical-guide.md","hi\u002Fblog\u002Fvqe-pennylane-practical-guide.md","hi\u002Fblog\u002Fvqe-pennylane-practical-guide",{"_path":36190,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":36191,"description":36192,"date":36193,"author":11,"tags":36194,"readingTime":453,"body":36195,"_type":715,"_id":36650,"_source":717,"_file":36651,"_stem":36652,"_extension":720},"\u002Fhi\u002Fblog\u002Funderstanding-quantum-error-correction","गणित के बिना क्वांटम त्रुटि सुधार को समझना","क्वांटम कंप्यूटर त्रुटियाँ क्यों करते हैं, त्रुटि सुधार कैसे काम करता है, और फॉल्ट-टॉलरेंट क्वांटम कंप्यूटिंग के भविष्य के लिए इसका क्या अर्थ है।","2026-01-15",[729,3312,266],{"type":18,"children":36196,"toc":36641},[36197,36202,36208,36213,36232,36238,36243,36276,36281,36287,36305,36324,36332,36343,36349,36359,36367,36372,36377,36383,36388,36406,36411,36416,36422,36427,36460,36465,36579,36584,36590,36600,36610,36620,36637],{"type":21,"tag":22,"props":36198,"children":36199},{},[36200],{"type":26,"value":36201},"क्वांटम कंप्यूटर गलतियाँ करते हैं — बहुत सारी। एक सामान्य सुपरकंडक्टिंग क्यूबिट गेट की त्रुटि दर 0.1–1% होती है। 1000-गेट का सर्किट चलाएँ और आपको लगभग निश्चित रूप से गलत उत्तर मिलेगा। यह वर्तमान हार्डवेयर में कोई बग नहीं है; यह एक मौलिक चुनौती है। क्वांटम त्रुटि सुधार (QEC) इसका समाधान है — और इसे समझना यह समझने की कुंजी है कि क्वांटम कंप्यूटिंग किस दिशा में जा रही है।",{"type":21,"tag":59,"props":36203,"children":36205},{"id":36204},"क्वांटम-त्रुटियाँ-अलग-क्यों-होती-हैं",[36206],{"type":26,"value":36207},"क्वांटम त्रुटियाँ अलग क्यों होती हैं",{"type":21,"tag":22,"props":36209,"children":36210},{},[36211],{"type":26,"value":36212},"शास्त्रीय कंप्यूटरों में भी त्रुटियाँ होती हैं, लेकिन उन्हें संभालना आसान है: बिट की तीन बार प्रतिलिपि बनाएँ, और बहुमत का मत लें। यदि एक प्रतिलिपि पलट जाती है, तो अन्य दो उसे मत से हरा देती हैं।",{"type":21,"tag":22,"props":36214,"children":36215},{},[36216,36218,36223,36225,36230],{"type":26,"value":36217},"क्यूबिट की प्रतिलिपि नहीं बनाई जा सकती — ",{"type":21,"tag":71,"props":36219,"children":36220},{},[36221],{"type":26,"value":36222},"no-cloning theorem",{"type":26,"value":36224}," इसे रोकता है। आप किसी क्यूबिट को उसकी सुपरपोज़िशन को ढहाए बिना त्रुटियों की जाँच के लिए माप नहीं सकते। और क्वांटम त्रुटियाँ केवल बिट फ़्लिप नहीं होतीं: ",{"type":21,"tag":71,"props":36226,"children":36227},{},[36228],{"type":26,"value":36229},"phase errors",{"type":26,"value":36231}," भी होती हैं (जहाँ |0⟩ और |1⟩ के बीच सापेक्ष फ़ेज़ बदल जाता है) और दोनों के संयोजन भी।",{"type":21,"tag":59,"props":36233,"children":36235},{"id":36234},"क्वांटम-त्रुटियों-के-तीन-प्रकार",[36236],{"type":26,"value":36237},"क्वांटम त्रुटियों के तीन प्रकार",{"type":21,"tag":22,"props":36239,"children":36240},{},[36241],{"type":26,"value":36242},"हर क्वांटम त्रुटि को तीन Pauli operators के संयोजनों में विघटित किया जा सकता है:",{"type":21,"tag":3566,"props":36244,"children":36245},{},[36246,36256,36266],{"type":21,"tag":3570,"props":36247,"children":36248},{},[36249,36254],{"type":21,"tag":71,"props":36250,"children":36251},{},[36252],{"type":26,"value":36253},"X error (bit flip):",{"type":26,"value":36255}," |0⟩ → |1⟩ और |1⟩ → |0⟩। शास्त्रीय बिट फ़्लिप की तरह।",{"type":21,"tag":3570,"props":36257,"children":36258},{},[36259,36264],{"type":21,"tag":71,"props":36260,"children":36261},{},[36262],{"type":26,"value":36263},"Z error (phase flip):",{"type":26,"value":36265}," |0⟩ → |0⟩, |1⟩ → −|1⟩। कोई शास्त्रीय समकक्ष नहीं — फ़ेज़ को प्रभावित करता है।",{"type":21,"tag":3570,"props":36267,"children":36268},{},[36269,36274],{"type":21,"tag":71,"props":36270,"children":36271},{},[36272],{"type":26,"value":36273},"Y error:",{"type":26,"value":36275}," X और Z त्रुटि एक साथ संयुक्त।",{"type":21,"tag":22,"props":36277,"children":36278},{},[36279],{"type":26,"value":36280},"किसी क्यूबिट पर कोई भी त्रुटि X, Y, Z (और identity) के रैखिक संयोजन के रूप में व्यक्त की जा सकती है। इसका अर्थ है कि यदि हम X और Z त्रुटियों को स्वतंत्र रूप से सुधार सकते हैं, तो हम किसी भी त्रुटि को सुधार सकते हैं — QEC के लिए एक मुख्य अंतर्दृष्टि।",{"type":21,"tag":59,"props":36282,"children":36284},{"id":36283},"बड़ा-विचार-प्रतिलिपि-बनाए-बिना-अतिरेकता",[36285],{"type":26,"value":36286},"बड़ा विचार: प्रतिलिपि बनाए बिना अतिरेकता",{"type":21,"tag":22,"props":36288,"children":36289},{},[36290,36292,36296,36298,36303],{"type":26,"value":36291},"QEC एक ",{"type":21,"tag":71,"props":36293,"children":36294},{},[36295],{"type":26,"value":9403},{"type":26,"value":36297}," को कई ",{"type":21,"tag":71,"props":36299,"children":36300},{},[36301],{"type":26,"value":36302},"physical qubits",{"type":26,"value":36304}," पर एन्कोड करता है। यह विचार शास्त्रीय पुनरावृत्ति कोड के समान है, लेकिन क्वांटम यांत्रिकी के लिए अनुकूलित है।",{"type":21,"tag":22,"props":36306,"children":36307},{},[36308,36310,36315,36317,36322],{"type":26,"value":36309},"सबसे सरल उदाहरण ",{"type":21,"tag":71,"props":36311,"children":36312},{},[36313],{"type":26,"value":36314},"3-qubit bit-flip code",{"type":26,"value":36316}," है: |0⟩ को |000⟩ के रूप में और |1⟩ को |111⟩ के रूप में एन्कोड करें। यदि एक क्यूबिट पलटता है, तो आप क्यूबिट के जोड़ों के बीच ",{"type":21,"tag":51,"props":36318,"children":36319},{},[36320],{"type":26,"value":36321},"parity",{"type":26,"value":36323}," मापकर (उनके वास्तविक मानों को मापे बिना) इसका पता लगाते हैं और इसे सुधारते हैं:",{"type":21,"tag":312,"props":36325,"children":36327},{"code":36326},"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",[36328],{"type":21,"tag":79,"props":36329,"children":36330},{"__ignoreMap":7},[36331],{"type":26,"value":36326},{"type":21,"tag":22,"props":36333,"children":36334},{},[36335,36337,36341],{"type":26,"value":36336},"पैरिटी मापन ",{"type":21,"tag":71,"props":36338,"children":36339},{},[36340],{"type":26,"value":9430},{"type":26,"value":36342}," का उपयोग करते हैं — सहायक क्यूबिट जो डेटा क्यूबिट को परेशान किए बिना त्रुटि जानकारी को अवशोषित करते हैं। यही जादू है: आप एन्कोडेड अवस्था को ढहाए बिना त्रुटियों का पता लगा सकते हैं।",{"type":21,"tag":59,"props":36344,"children":36346},{"id":36345},"सरफ़ेस-कोड-आज-का-अग्रणी-दृष्टिकोण",[36347],{"type":26,"value":36348},"सरफ़ेस कोड: आज का अग्रणी दृष्टिकोण",{"type":21,"tag":22,"props":36350,"children":36351},{},[36352,36357],{"type":21,"tag":71,"props":36353,"children":36354},{},[36355],{"type":26,"value":36356},"surface code",{"type":26,"value":36358}," निकट-अवधि हार्डवेयर के लिए सबसे आशाजनक QEC कोड है। यह एक logical qubit को physical qubits के 2D ग्रिड में इस प्रकार व्यवस्थित करके एन्कोड करता है:",{"type":21,"tag":312,"props":36360,"children":36362},{"code":36361},"● — ● — ● — ●\n|   |   |   |\n● — ● — ● — ●\n|   |   |   |\n● — ● — ● — ●\n|   |   |   |\n● — ● — ● — ●\n",[36363],{"type":21,"tag":79,"props":36364,"children":36365},{"__ignoreMap":7},[36366],{"type":26,"value":36361},{"type":21,"tag":22,"props":36368,"children":36369},{},[36370],{"type":26,"value":36371},"डेटा क्यूबिट (●) क्वांटम जानकारी रखते हैं। उनके बीच के Ancilla क्यूबिट निरंतर पैरिटी मापते हैं। एक 7×7 ग्रिड (49 physical qubits) 1 logical qubit को ~p² त्रुटि दर के साथ एन्कोड करता है — यदि भौतिक गेट त्रुटि दर 1% है, तो लॉजिकल त्रुटि दर घटकर ~0.01% हो जाती है।",{"type":21,"tag":22,"props":36373,"children":36374},{},[36375],{"type":26,"value":36376},"सरफ़ेस कोड की सीमा (threshold) ~1% है: यदि हार्डवेयर गेट त्रुटियाँ इससे नीचे हैं, तो अधिक physical qubits जोड़ने से लॉजिकल त्रुटि दर मनमाने ढंग से छोटी हो जाती है। IBM के सर्वश्रेष्ठ सिस्टम इस सीमा के करीब पहुँच रहे हैं।",{"type":21,"tag":59,"props":36378,"children":36380},{"id":36379},"आपको-कितने-physical-qubits-चाहिए",[36381],{"type":26,"value":36382},"आपको कितने physical qubits चाहिए?",{"type":21,"tag":22,"props":36384,"children":36385},{},[36386],{"type":26,"value":36387},"RSA-2048 को तोड़ने के लिए Shor's algorithm को त्रुटि-मुक्त रूप से चलाने हेतु, अनुमान बताते हैं:",{"type":21,"tag":3566,"props":36389,"children":36390},{},[36391,36396,36401],{"type":21,"tag":3570,"props":36392,"children":36393},{},[36394],{"type":26,"value":36395},"~20 मिलियन physical qubits",{"type":21,"tag":3570,"props":36397,"children":36398},{},[36399],{"type":26,"value":36400},"प्रत्येक logical qubit को ~1000–10,000 physical qubits की आवश्यकता होती है",{"type":21,"tag":3570,"props":36402,"children":36403},{},[36404],{"type":26,"value":36405},"गेट त्रुटि दरें 0.1% से नीचे होनी चाहिए",{"type":21,"tag":22,"props":36407,"children":36408},{},[36409],{"type":26,"value":36410},"वर्तमान हार्डवेयर: ~1000 क्यूबिट, ~0.1–1% गेट त्रुटियाँ। यह अंतर वास्तविक है — हम फॉल्ट-टॉलरेंट RSA-तोड़ने वाले क्वांटम कंप्यूटरों से लगभग 10–15 वर्ष दूर हैं।",{"type":21,"tag":22,"props":36412,"children":36413},{},[36414],{"type":26,"value":36415},"रसायन विज्ञान या अनुकूलन में निकट-अवधि क्वांटम लाभ के लिए, आवश्यकताएँ बहुत कम हैं: शास्त्रीय पहुँच से परे अणुओं के लिए ~100 logical qubits पर्याप्त हो सकते हैं।",{"type":21,"tag":59,"props":36417,"children":36419},{"id":36418},"आज-nisq-उपकरणों-के-लिए-इसका-क्या-अर्थ-है",[36420],{"type":26,"value":36421},"आज NISQ उपकरणों के लिए इसका क्या अर्थ है",{"type":21,"tag":22,"props":36423,"children":36424},{},[36425],{"type":26,"value":36426},"वर्तमान NISQ उपकरणों में QEC नहीं है। हर गेट शोर जोड़ता है। इसके बजाय दृष्टिकोण यह है:",{"type":21,"tag":7457,"props":36428,"children":36429},{},[36430,36440,36450],{"type":21,"tag":3570,"props":36431,"children":36432},{},[36433,36438],{"type":21,"tag":71,"props":36434,"children":36435},{},[36436],{"type":26,"value":36437},"सर्किट को उथला रखें",{"type":26,"value":36439}," — कम गेट = कम संचित शोर",{"type":21,"tag":3570,"props":36441,"children":36442},{},[36443,36448],{"type":21,"tag":71,"props":36444,"children":36445},{},[36446],{"type":26,"value":36447},"त्रुटि शमन (error mitigation) का उपयोग करें",{"type":26,"value":36449}," (सुधार नहीं) — Zero Noise Extrapolation (ZNE) जैसी पोस्ट-प्रोसेसिंग तकनीकें जो बिना अतिरिक्त क्यूबिट के त्रुटियों के प्रभाव को सांख्यिकीय रूप से कम करती हैं",{"type":21,"tag":3570,"props":36451,"children":36452},{},[36453,36458],{"type":21,"tag":71,"props":36454,"children":36455},{},[36456],{"type":26,"value":36457},"शोर-सहिष्णु एल्गोरिदम डिज़ाइन करें",{"type":26,"value":36459}," — VQE, QAOA, और अन्य वैरिएशनल विधियाँ मध्यम शोर के प्रति मजबूत होने के लिए डिज़ाइन की गई हैं",{"type":21,"tag":22,"props":36461,"children":36462},{},[36463],{"type":26,"value":36464},"HLQuantum में अंतर्निहित त्रुटि शमन शामिल है जिसे किसी भी सर्किट पर लागू किया जा सकता है:",{"type":21,"tag":312,"props":36466,"children":36468},{"code":36467,"language":3638,"meta":7,"className":3636,"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",[36469],{"type":21,"tag":79,"props":36470,"children":36471},{"__ignoreMap":7},[36472,36487,36494,36513,36532,36556,36572],{"type":21,"tag":322,"props":36473,"children":36474},{"class":324,"line":325},[36475,36479,36483],{"type":21,"tag":322,"props":36476,"children":36477},{"style":329},[36478],{"type":26,"value":19775},{"type":21,"tag":322,"props":36480,"children":36481},{"style":3648},[36482],{"type":26,"value":3688},{"type":21,"tag":322,"props":36484,"children":36485},{"style":329},[36486],{"type":26,"value":29203},{"type":21,"tag":322,"props":36488,"children":36489},{"class":324,"line":335},[36490],{"type":21,"tag":322,"props":36491,"children":36492},{"style":329},[36493],{"type":26,"value":29211},{"type":21,"tag":322,"props":36495,"children":36496},{"class":324,"line":344},[36497,36501,36505,36509],{"type":21,"tag":322,"props":36498,"children":36499},{"style":3713},[36500],{"type":26,"value":23312},{"type":21,"tag":322,"props":36502,"children":36503},{"style":3648},[36504],{"type":26,"value":3688},{"type":21,"tag":322,"props":36506,"children":36507},{"style":359},[36508],{"type":26,"value":29227},{"type":21,"tag":322,"props":36510,"children":36511},{"style":329},[36512],{"type":26,"value":428},{"type":21,"tag":322,"props":36514,"children":36515},{"class":324,"line":407},[36516,36520,36524,36528],{"type":21,"tag":322,"props":36517,"children":36518},{"style":3713},[36519],{"type":26,"value":29239},{"type":21,"tag":322,"props":36521,"children":36522},{"style":3648},[36523],{"type":26,"value":3688},{"type":21,"tag":322,"props":36525,"children":36526},{"style":359},[36527],{"type":26,"value":29248},{"type":21,"tag":322,"props":36529,"children":36530},{"style":329},[36531],{"type":26,"value":428},{"type":21,"tag":322,"props":36533,"children":36534},{"class":324,"line":431},[36535,36539,36543,36547,36551],{"type":21,"tag":322,"props":36536,"children":36537},{"style":3713},[36538],{"type":26,"value":29286},{"type":21,"tag":322,"props":36540,"children":36541},{"style":3648},[36542],{"type":26,"value":3688},{"type":21,"tag":322,"props":36544,"children":36545},{"style":359},[36546],{"type":26,"value":36134},{"type":21,"tag":322,"props":36548,"children":36549},{"style":329},[36550],{"type":26,"value":29253},{"type":21,"tag":322,"props":36552,"children":36553},{"style":3898},[36554],{"type":26,"value":36555},"# Zero Noise Extrapolation\n",{"type":21,"tag":322,"props":36557,"children":36558},{"class":324,"line":453},[36559,36563,36567],{"type":21,"tag":322,"props":36560,"children":36561},{"style":3713},[36562],{"type":26,"value":29266},{"type":21,"tag":322,"props":36564,"children":36565},{"style":3648},[36566],{"type":26,"value":3688},{"type":21,"tag":322,"props":36568,"children":36569},{"style":348},[36570],{"type":26,"value":36571},"8192\n",{"type":21,"tag":322,"props":36573,"children":36574},{"class":324,"line":474},[36575],{"type":21,"tag":322,"props":36576,"children":36577},{"style":329},[36578],{"type":26,"value":3748},{"type":21,"tag":22,"props":36580,"children":36581},{},[36582],{"type":26,"value":36583},"ZNE शोर को जानबूझकर कई स्तरों पर बढ़ाता है और शून्य-शोर सीमा तक पीछे की ओर एक्सट्रापोलेट करता है। यह QEC नहीं है — यह एक सांख्यिकीय चाल है — लेकिन यह छोटे सर्किट के लिए उल्लेखनीय रूप से अच्छा काम करता है।",{"type":21,"tag":59,"props":36585,"children":36587},{"id":36586},"देखने-योग्य-निकट-अवधि-के-मील-के-पत्थर",[36588],{"type":26,"value":36589},"देखने योग्य निकट-अवधि के मील के पत्थर",{"type":21,"tag":22,"props":36591,"children":36592},{},[36593,36598],{"type":21,"tag":71,"props":36594,"children":36595},{},[36596],{"type":26,"value":36597},"बड़े पैमाने पर त्रुटि सुधार का प्रदर्शन",{"type":26,"value":36599}," — IBM, Google, और Microsoft यह प्रदर्शित करने की दौड़ में हैं कि सरफ़ेस कोड logical qubits, physical qubits से बेहतर प्रदर्शन करते हैं (सीमा से नीचे त्रुटि दर)। Google ने 2024 के अंत में सीमा-से-नीचे प्रदर्शन का दावा किया।",{"type":21,"tag":22,"props":36601,"children":36602},{},[36603,36608],{"type":21,"tag":71,"props":36604,"children":36605},{},[36606],{"type":26,"value":36607},"मैजिक स्टेट डिस्टिलेशन",{"type":26,"value":36609}," — Non-Clifford गेट (जैसे T gates) को फॉल्ट-टॉलरेंट आर्किटेक्चर में विशेष डिस्टिलेशन प्रोटोकॉल की आवश्यकता होती है। यह वर्तमान में क्यूबिट ओवरहेड में अत्यंत महँगा है।",{"type":21,"tag":22,"props":36611,"children":36612},{},[36613,36618],{"type":21,"tag":71,"props":36614,"children":36615},{},[36616],{"type":26,"value":36617},"लॉजिकल गेट गति",{"type":26,"value":36619}," — सरफ़ेस कोड में लॉजिकल गेट physical गेट की तुलना में बहुत धीमे होते हैं। उन्हें तेज़ करना 2026–2030 के लिए एक मुख्य हार्डवेयर चुनौती है।",{"type":21,"tag":22,"props":36621,"children":36622},{},[36623,36625,36630,36631,36636],{"type":26,"value":36624},"त्रुटि सुधार विशिष्ट SDKs के साथ किस प्रकार अंतःक्रिया करता है, इसकी गहरी जानकारी के लिए, ",{"type":21,"tag":29,"props":36626,"children":36627},{"href":1536},[36628],{"type":26,"value":36629},"quantum error correction glossary entry",{"type":26,"value":814},{"type":21,"tag":29,"props":36632,"children":36633},{"href":263},[36634],{"type":26,"value":36635},"NISQ era guide",{"type":26,"value":4162},{"type":21,"tag":703,"props":36638,"children":36639},{},[36640],{"type":26,"value":707},{"title":7,"searchDepth":335,"depth":335,"links":36642},[36643,36644,36645,36646,36647,36648,36649],{"id":36204,"depth":335,"text":36207},{"id":36234,"depth":335,"text":36237},{"id":36283,"depth":335,"text":36286},{"id":36345,"depth":335,"text":36348},{"id":36379,"depth":335,"text":36382},{"id":36418,"depth":335,"text":36421},{"id":36586,"depth":335,"text":36589},"content:hi:blog:understanding-quantum-error-correction.md","hi\u002Fblog\u002Funderstanding-quantum-error-correction.md","hi\u002Fblog\u002Funderstanding-quantum-error-correction"]