Quantum Machine Learning: 4 Flavors
"quantum machine learning" सुनने में 1 subject लगता है, लेकिन असल में यह 4 है — और इन्हें mix कर देना ही field की ज़्यादातर confusion की वजह है। इन्हें sort करने का साफ़ तरीका है एक 2×2 table: rows हैं data-generating system (classical C, या quantum Q), columns हैं data-processing device (classical C, या quantum Q)। इससे 4 boxes मिलते हैं: CC, CQ, QC, QQ।
CC — quantum-inspired algorithms। classical computer, classical data — लेकिन algorithm quantum computing से ideas उधार लेता है। मशहूर कहानी: 2016 में Kerenidis और Prakash ने एक quantum recommendation algorithm propose किया जो known classical तरीकों से exponentially तेज़ साबित हुआ था। 2018 में undergraduate Ewin Tang ने quantum-inspired principles से एक classical algorithm खोज निकाला जो उसे match करता था — और अपने PhD में उन्होंने कई और quantum ML algorithms को "dequantize" कर दिया। सबक: हर quantum speedup किसी चालाक classical idea के सामने टिक नहीं पाता।
QC — quantum के लिए machine learning। classical computer, लेकिन अब data एक quantum system से आता है: qubits को calibrate करने, noise से लड़ने और quantum error correction में मदद के लिए ML use करना — यहाँ तक कि neural networks से ऐसे quantum systems की नकल करना जिन्हें हम सीधे simulate नहीं कर सकते। यह flavor आज काम करता है और इसे किसी quantum computer की ज़रूरत नहीं।
CQ — machine learning के लिए quantum। classical data, quantum processor। course के लिए यह सबसे interesting box है — और सबसे delicate भी। poster child है linear systems solve करने वाला HHL algorithm: theory में exponentially तेज़, classical O(n) के मुकाबले O(log n)। catch है input-output problem: classical data को quantum computer में load करना और answer को बाहर पढ़ना ही O(n) cost करता है, जो speedup को मिटा सकता है। quantum RAMs theory में इसे fix कर देंगे — लेकिन वे exist नहीं करते, और शायद कभी करेंगे भी नहीं।
QQ — quantum in, quantum out। data भी quantum, processor भी quantum: particle collider (CERN का LHC) के output को analyze करना, या किसी दूसरे quantum computer के output को। यहाँ कोई loading problem नहीं है — data पहले से quantum है — और ML principles CQ वाले box से सीधे carry over होते हैं। 4 boxes, 1 ईमानदार summary: QC आज काम करता है, CC सबको humble रखता है, CQ great hope है जिसमें loading-shaped hole है, और QQ quantum data के abundant होने का इंतज़ार कर रहा है। (यह भी देखें: HHL algorithm।)
गहरे उतरें — गणित और सटीकता
dequantization ने चोट क्यों पहुँचाई? क्योंकि Kerenidis–Prakash recommendation algorithm एक flagship था: एक genuinely practical problem के लिए exponential speedup, HHL वाली ही linear-algebra machinery पर बना। Tang की insight थी कि speedup के fine print — यह assumption कि data एक special quantum-friendly format में आता है — को classically एक analogous classical data structure (sampling access) से match किया जा सकता है। एक बार जब उन्होंने दिखा दिया कि comparable assumptions के तहत classical algorithm को वही advantage मिलता है, तो "exponential speedup" polynomial में evaporate हो गया। reality check: quantum ML speedup claim को अपना input model specify करना होगा, वरना यह quantum athlete की तुलना tied shoes वाले classical athlete से करने जैसा है।
loading bottleneck को उसका पूरा weight मिलना चाहिए, क्योंकि यह पूरे CQ program का central caveat है। HHL \(Ax = b\) को \(O(\log n)\) time में solve करता है — लेकिन सिर्फ तब जब vector \(b\) पहले से quantum state \(|b\rangle\) के रूप में loaded हो, और सिर्फ तब जब आप answer के रूप में quantum state \(|x\rangle\) से संतुष्ट हों, न कि सारे \(n\) classical numbers से। classical data से \(|b\rangle\) तैयार करना generally \(O(n)\) cost करता है; \(x\) को पूरा बाहर पढ़ना भी \(O(n)\) cost करता है। तो exponential speedup सिर्फ उन problems में बचता है जहाँ input सस्ते में prepare हो और आपको answer की कोई global property चाहिए हो — expectation value, पूरा vector नहीं।
quantum RAM (QRAM) theoretical escape hatch है: एक device जो classical data को \(O(\log n)\) time में superposition में load कर दे। लेकिन कोई QRAM exist नहीं करता, और एक बनाना एक enormous routing network में coherence maintain करने जैसा है — arguably उतना ही मुश्किल जितना खुद quantum computer बनाना, ऊपर से error-correction overhead। ज़्यादातर researchers QRAM को "कभी न कभी, शायद" का placeholder मानते हैं, plan नहीं। जब तक input problem solve नहीं होता, CQ algorithms ऐसे speedups हैं जो data pipeline का इंतज़ार कर रहे हैं।
इसीलिए QQ conceptually सबसे clean box है: जब data-generating system खुद quantum हो — collider, quantum sensor network, quantum simulation — तो load करने को कुछ है ही नहीं। state, state के रूप में आती है। ML principles (पिछले lesson से function approximation plus optimization) unchanged carry over होते हैं; सिर्फ substrate बदलता है। field का bet है कि जैसे-जैसे quantum devices बढ़ेंगे, quantum-native data भी बढ़ेगा — और QQ को विरासत मिलेगी। पूरे 2×2 का ईमानदार summary: physics असली है, speedups conditional हैं, और conditions ही interesting part हैं।
मुख्य बातें
- quantum ML 4 boxes में बँटता है — data source (C/Q) × processing device (C/Q): CC, CQ, QC, QQ।
- CC (dequantized algorithms): Ewin Tang के 2018 के classical match ने दिखाया कि कुछ 'quantum speedups' असल में बेहतर input assumptions की बात थे।
- QC (quantum के लिए ML): असली quantum systems को improve करने वाला classical ML — calibration, error correction — आज काम करता है।
- CQ (ML के लिए quantum): HHL O(log n) बनाम O(n) का वादा करता है, लेकिन input-output loading problem speedup को मिटा सकता है; QRAM exist नहीं करता।
- QQ (quantum in, quantum out): कोई loading problem नहीं — सबसे clean box, quantum-native data के abundant होने का इंतज़ार।
अपनी समझ परखें
Q1.2×2 table में 'CQ' का क्या मतलब है?
पहला letter = data-generating system (classical), दूसरा = processing device (quantum)।
Q2.Ewin Tang के 2018 के result का significance क्या था?
comparable input assumptions के तहत exponential speedup evaporate हो गया — QML claims के लिए reality check।
Q3.HHL जैसे CQ algorithms के लिए input-output problem central caveat क्यों है?
speedup सिर्फ तब बचता है जब input सस्ते में prepare हो और आपको answer की global property चाहिए हो, पूरा vector नहीं।
संदर्भ (References)
इस पाठ के दावे जिन किताबों, papers और articles से लिए गए हैं — हर एक के नीचे लिखा है कि उसका इस्तेमाल किस बात के लिए हुआ।
- Kerenidis & Prakash, "Quantum recommendation systems", arXiv:1603.08675 (2016). · source ↗
किस लिए इस्तेमाल हुआ: the 2016 quantum recommendation algorithm behind the dequantization story. - Tang, "A quantum-inspired classical algorithm for recommendation systems", STOC 2019 (arXiv:1807.04271). · source ↗
किस लिए इस्तेमाल हुआ: the 2018 dequantization result and the CC flavor. - Harrow, Hassidim & Lloyd, "Quantum algorithm for linear systems of equations", Phys. Rev. Lett. 103, 150502 (2009). · source ↗
किस लिए इस्तेमाल हुआ: the HHL algorithm and its O(log n) claim in the CQ flavor. - Aaronson, "Read the fine print", Nature Physics 11, 291–293 (2015). · source ↗
किस लिए इस्तेमाल हुआ: the caveats around HHL-style speedups, including the input problem.
सुझाव: पेज बदलने के लिए ← / → दबाएँ।