محاكي Shor التعليميShor simulator (educational)

شغّل خوارزمية Shor على أرقام صغيرة داخل متصفحك وشاهد كيف تكسر RSA الصغير، ولماذا تصنّف تحصين RSA كخطر كمّي.Run Shor's algorithm on small numbers in your browser and see how it breaks tiny RSA, and why Tahsin classes RSA as quantum-vulnerable.

ما هذا وما ليس هوWhat this is and is not

  • محاكاة تعليمية صغيرة. برنامج JavaScript عادي يحاكي حالة الكيوبتات على معالج جهازك. لا يستخدم أي جهاز كمّي حقيقي.A small educational simulation. Plain JavaScript that simulates the qubit state on your own processor. It uses no real quantum hardware.
  • يعمل فعلًا في الصفحة. كل ضغطة تشغّل الحساب من جديد بنتائج عشوائية حقيقية من القياس المحاكى، وليست صورة ولا نتيجة محفوظة.It really runs on this page. Every click runs the computation again, with random measurement outcomes from the simulated state. It is not a picture or a stored result.
  • لا يكسر مفاتيح حقيقية. الحد الأقصى هنا 91، أما مفاتيح RSA الحقيقية فأرقامها مئات الخانات. المحاكاة الكلاسيكية تنفجر في الذاكرة مع كل كيوبت مضاف.It cannot break real keys. The limit here is 91, while real RSA keys have hundreds of digits. Classical simulation doubles its memory with every added qubit.
  • تطبيق دالة الأسّ a^x mod N يتم كتبديل واحد على الحالات، وليس بدوائر بوابات. هذا تبسيط للتعليم.The a^x mod N step is applied as one permutation of basis states, not as a gate circuit. That is a simplification for teaching.

المحاكيThe simulator

اختر رقمًا فرديًا مركّبًا (حاصل ضرب عددين أوليين مثل 15 أو 21 أو 35) واضغط تشغيل.Pick an odd composite number (a product of primes like 15, 21 or 35) and press run.

نتيجة على جهاز حقيقي (مسجّلة)Real hardware result (recorded)

تشغيل مسجّل على جهاز حقيقي، وليس اتصالًا حيًاRecorded on real hardware, not a live connection
Tuna-17الجهازBackend
2026-11-30التاريخDate
1775008رقم المهمةJob ID
8192التشغيلاتShots

هذه نتيجة مسجّلة وليست تشغيلًا حيًا. شغّلنا دائرة بيل (كيوبتان: بوابة H ثم CNOT ثم قياس) على الرقاقة الحقيقية Tuna-17 في منصة Quantum Inspire (QuTech / جامعة دلفت) بتاريخ 30 نوفمبر 2026، المهمة 1775008، 8192 تشغيلًا، بحساب مجاني. الصفحة لا تتصل بأي خدمة كمّية، ولا يوجد مفتاح أو رمز في الموقع.This is a recorded result, not a live run. We ran a Bell circuit (2 qubits: an H gate, a CNOT, then measurement) on the real chip Tuna-17 on the Quantum Inspire platform (QuTech / TU Delft) on 30 November 2026, job 1775008, 8192 shots, from a free account. This page does not connect to any quantum service, and the site holds no key or token.

0.00.20.40.60.5000.483000.0000.017010.0000.028100.5000.47211idealTuna-17 (recorded)
48.3%00
47.2%11
4.5%ضجيج (01 + 10)noise (01 + 10)
8192تشغيلshots

سجل التشغيلات المسجّلةRecorded runs log

التاريخDateالجهازBackendرقم المهمةJob IDالتشغيلاتShotsالنتائجOutcomes
2026-11-30Tuna-171775008819200: 48.3% · 01: 1.7% · 10: 2.8% · 11: 47.2%

مسجّلة وليست حية: الجدول ملف ثابت (data/quantum-runs.json) نضيف إليه يدويًا بعد كل تشغيل على حسابنا المجاني. لا يوجد تشغيل مجدول ولا استدعاء من الصفحة.Recorded, not live: this table is a static file (data/quantum-runs.json) that we add to by hand after each run on our free account. There is no scheduled job and the page makes no calls.

القراءة: في الحالة المثالية يظهر 00 و11 فقط، بنسبة 50% لكل منهما. الجهاز الحقيقي أعطى 00 بنسبة 48.3% و11 بنسبة 47.2%، وظهرت نتائج 01 بنسبة 1.7% و10 بنسبة 2.8%. مجموع هاتين النتيجتين نحو 4.5% من التشغيلات، وهذا ضجيج الجهاز (أخطاء البوابات والقياس). ما زال الارتباط واضحًا لكنه غير مثالي.How to read it: in the ideal case only 00 and 11 appear, 50% each. The real device gave 00 at 48.3% and 11 at 47.2%, plus 01 at 1.7% and 10 at 2.8%. Those two wrong outcomes add up to about 4.5% of shots. That is device noise (gate and readout errors). The correlation is clear but not perfect.

حدود: تشغيل واحد في وقت واحد، لا يكفي للحكم على جودة الجهاز. هذه دائرة تعليمية صغيرة، وليست Shor، ولا تكسر أي مفتاح. أرقام الرسم قُرئت من صفحة النتيجة في المنصة.Limits: one run at one point in time, not enough to judge the device quality. This is a small teaching circuit, not Shor, and it breaks no key. The chart numbers were read from the platform result page.

لتشغيلها بنفسك على جهازك: examples/quantum_inspire_bell.py (حساب مجاني ثم الأمر qi login على جهازك).To run it yourself on your own computer: examples/quantum_inspire_bell.py (free account, then the qi login command on your machine).

إسناد الجهازHardware credit

الأجهزة الكمّية الحقيقية في هذه الصفحة توفّرها منصة Quantum Inspire (QuTech / جامعة دلفت). لا تؤيّد Quantum Inspire مشروع تحصين ولا ترعاه ولا تتحمّل أي مسؤولية عنه أو عن أي نشاط لطرف ثالث.The real quantum hardware shown on this page is provided by Quantum Inspire (QuTech / TU Delft). Quantum Inspire does not endorse or sponsor Tahsin and takes no responsibility for Tahsin or any third-party activity.

الاستخدام تعليمي وغير تجاري، ومحدود: لا يستطيع الزائر تشغيل الجهاز من الصفحة، وتُضاف النتائج يدويًا بعدد قليل من التشغيلات. لا يوجد رمز وصول في الموقع.Use is educational, non-commercial and limited: visitors cannot trigger the hardware from this page, and results are added by hand, a few runs at a time. The site holds no access token.

  • لا وصول حي من الصفحةNo live access from the page
  • لا رمز وصول في الموقعNo access token on the site
  • تعليمي وغير تجاريEducational, non-commercial
  • نتائج مسجّلة يدويًاResults recorded by hand
<

كيف تعمل الخوارزميةHow the algorithm works

  • نريد تحليل N. نختار a عشوائيًا ونبحث عن الدورة r، أي أصغر r يحقق a^r mod N = 1.To factor N, pick a random a and look for its period r, the smallest r with a^r mod N = 1.
  • الجزء الكمّي يجد r بسرعة عبر التراكب وتحويل فورييه الكمّي. الحاسوب العادي لا يملك طريقة سريعة معروفة لذلك.The quantum part finds r quickly with superposition and the quantum Fourier transform. A classical computer has no known fast way to do that.
  • بعدها حساب كلاسيكي بسيط: إذا كان r زوجيًا فإن gcd(a^(r/2) ± 1, N) يعطي عاملًا في الغالب.Then a simple classical step: if r is even, gcd(a^(r/2) ± 1, N) usually gives a factor.
  • لذلك تصنّف تحصين RSA وECDSA وDH كمعرّضة للكمّي: الهجوم يحلّ المسألة التي تقوم عليها هذه الخوارزميات، بشرط وجود حاسوب كمّي كبير بما يكفي. لا نقول متى سيوجد.This is why Tahsin classes RSA, ECDSA and DH as quantum-vulnerable: the attack solves the problem they rest on, given a quantum computer large enough. We do not say when one will exist.