Shor's Algorithm - Programming on Quantum Computers - Coding with Qiskit S2E7

Поделиться
HTML-код
  • Опубликовано: 3 фев 2025

Комментарии • 63

  • @Rasperin
    @Rasperin 4 года назад +12

    Amazing video! Completely followable, understandable. Not too much handwaving and on topic. Also the ambient music just helps keep you focused.
    Thanks for the post going to jump through all of your videos. Please keep these videos up!

  • @splch
    @splch 4 года назад +20

    over too soon :(( thanks so much jin and qiskit! cant wait for season 3 🤩

    • @jin-sungkim8492
      @jin-sungkim8492 4 года назад

      Thanks for watching!! Let us know what you would want to see for next season 🤞

  • @gregorymorse8423
    @gregorymorse8423 2 года назад +1

    Wow this was actually a very useful resource, 2 methods the library one and a handmade implementation. Great video

  • @louben5573
    @louben5573 4 года назад +6

    Jin...Amaaazing again, last episode already? I cant wait for next season then! stay cool and best from Amsterdam cosy west side...

    • @jin-sungkim8492
      @jin-sungkim8492 4 года назад

      Thanks so much for tuning in each week! Hope you enjoyed this season!

  • @k_pragya
    @k_pragya 4 года назад +15

    Whyyyyyy.... why ending so soon... Dear Jin, 7 is too early. Please take it to atleast 20...
    Very nice explanation Jin. You've got yourself a fan here. Will miss the friday excitement though.

    • @jin-sungkim8492
      @jin-sungkim8492 4 года назад +4

      🤩thanks for tuning in each week!! Glad you enjoyed the series! We might have to bump up the number of episodes for next season then 👀

    • @k_pragya
      @k_pragya 4 года назад +4

      @@jin-sungkim8492 Absolutely! I have a small request. QNLP is a less talked about topic. If a part of next season can include that, I guess more masses will know how to apply QC to various AI problems. Just a suggestion, if it seems feasible to you guys.

  • @topcivilian
    @topcivilian 3 года назад +1

    Nooo..!!! Why did you end this at the fifteen minute mark?? I watched this video twice to make it longer. Excellent content. Please make more of these. Cheers!

  • @QuantumSteve
    @QuantumSteve 4 года назад +5

    Great content!

  • @Sulayman.786
    @Sulayman.786 2 года назад +1

    Nice video! Especially as it was nice an quisk!

  • @beatrizgarciamarkaida2747
    @beatrizgarciamarkaida2747 4 года назад +6

    Is there anywhere where I can look up how to get that modular exponentiation function with quantum gates for any given N, a? How does that even work? All I find are examples that give no explanation whatsoever...

    • @user_375a82
      @user_375a82 3 года назад

      Because its all a hoax - Shors Algorithm is simply a way to solve the problem with less guesses. And it doesn't need a quantum computer.
      Two laser light beams would do it too (if you could get their frequencies a bit better set-up).

    • @Miguel_Noether
      @Miguel_Noether 3 года назад +1

      ruclips.net/video/IFmkzWF-S2k/видео.html
      About the minute 50 is the thing that you're looking for

    • @ikidu1102
      @ikidu1102 2 года назад +3

      @@user_375a82 You obviously do not understand the problem lol. But that's okay, the field is still new and people are still having the classical mindset. The algorithm is specifically made for a QM and if you knew how QM hardware works, you'd be aware that it would be indeed more efficient than algorithms on classical computers. We haven't reached that point (yet), but we're getting there. Simply calling it a "hoax" is a pretty strong statement, especially when pretty much all of the scientists in that field will disagree with you and show you the proper papers that show that you're wrong. Specifically, it takes quantum gates of order {\displaystyle O\!\left((\log N)^{2}(\log \log N)(\log \log \log N)
      ight)} using fast multiplication, thus demonstrating that the integer factorization problem can be efficiently solved on a quantum computer and is consequently in the complexity class BQP. This is almost exponentially faster than the most efficient known classical factoring algorithm, the general number field sieve, which works in sub-exponential time.

  • @diogochikhi1848
    @diogochikhi1848 Год назад +1

    why is the a_mod15 function hardcoded for 7 and 15, i dont understand the logic, and if i want to use any N or a, how could i change the code ?

  • @thomastheiner5780
    @thomastheiner5780 Год назад +1

    how do you fix this now that .control() is deprecated?

    • @qiskit
      @qiskit  Год назад +1

      Now you can convery the unitary to a gate and then append the controlled version to a new circuit:
      U_gate = U.to_gate()
      qc.append(U_gate.control(1), qr)

  • @吳宥瑄-c3j
    @吳宥瑄-c3j 8 месяцев назад +1

    Thanks for this excellent video, yet I ran into a problem while using AerSimulator:
    There is an error: AerError: 'unknown instruction: cU(1)' while simulating the distribution of a circuit with a gate "U".
    Is there something I'm doing wrong?
    thanks!!

    • @Sho-mj7wu
      @Sho-mj7wu Месяц назад

      My guess is that you have a newer version of qiskit than what was used here.

  • @shyamkumar-sb7im
    @shyamkumar-sb7im 3 года назад +2

    Can we combine normal encryption like chaos with quantum encryption?

  • @bmitch3020
    @bmitch3020 Год назад

    How is calculating the greatest common denominator between two numbers easier than factoring the number?

  • @yevonnaelandrew9553
    @yevonnaelandrew9553 4 года назад +4

    from qiskit.aqua.algorithms import Shor
    from qiskit.aqua import QuantumInstance
    import numpy as np
    from qiskit import QuantumCircuit, Aer, execute
    from qiskit.tools.visualization import plot_histogram

  • @ljlkkubsdjbs
    @ljlkkubsdjbs 4 года назад +1

    Hey Jin, so you touched on the topic of creating the U gate efficiently using a few swaps. For any other a and N, are there any general ways to compute the U gate or any specific references I can look up for this? Thanks!

    • @jin-sungkim8492
      @jin-sungkim8492 4 года назад +1

      great question, check out this reference! arxiv.org/pdf/quant-ph/0205095.pdf

    • @ljlkkubsdjbs
      @ljlkkubsdjbs 4 года назад

      @@jin-sungkim8492 Thanks :)

    • @UEIHarishankarMishra
      @UEIHarishankarMishra 10 месяцев назад

      Yes, even I wanted to know the same, if you have got any reference please do share; Thanks

  • @TheMarkoLoncar
    @TheMarkoLoncar Год назад +1

    I have an annoying error when trying to import: ImportError: cannot import name 'Shor' from 'qiskit.algorithms'. can someone explain?

    • @beko466
      @beko466 Год назад

      Same error. Did you find out the solution for it?

    • @danielsoares7456
      @danielsoares7456 5 месяцев назад

      Shor is depreciated now, why? Ask to them

  • @bell6ab
    @bell6ab 2 года назад +1

    Did the built in Shor algorithm move from aqua in the qiskit 0.34.2?

    • @quoipi
      @quoipi 2 года назад +2

      Yeah, a bunch of things have moved around.
      Use ctr+f or scroll down this link for some info on the new system:
      qiskit.org/documentation/stable/0.28/aqua_tutorials/Qiskit%20Algorithms%20Migration%20Guide.html

    • @Hoyuyu-q3u
      @Hoyuyu-q3u 2 года назад +1

      @@quoipi Thanks a lot.

  • @redtrippyvision
    @redtrippyvision 4 года назад +1

    Incredible

  • @ccpalmerny
    @ccpalmerny 3 года назад +1

    Are the code examples you used available somewhere?

  • @NujudAlyami
    @NujudAlyami Год назад

    why we used the swap gates?

  • @lancemarchetti8673
    @lancemarchetti8673 2 месяца назад

    Brilliant

  • @calebhaines3794
    @calebhaines3794 3 года назад +1

    Clean video haha how did you show the graphical interface?

    • @calebhaines3794
      @calebhaines3794 3 года назад +1

      So if you return photo-radioactive constants you can cache those back into your code.

  • @stevelamprou
    @stevelamprou 2 года назад

    Very interesting, but I just can't figure out how the tensor algebras are working behind it.

    • @qiskit
      @qiskit  2 года назад +1

      Check out qiskit.org/textbook/ch-algorithms/shor.html for a more detailed breakdown of Shor's Algorithm

  • @DrJosevalSantana
    @DrJosevalSantana 5 месяцев назад

    Jin-Sung Kim, Phd, how are you ok? I hope so. I've been watching your videos about qiskit and I first congratulate you on your teaching and knowledge on the topic. I'm Professor Joseval Santana, Phd, and I'm doing work on Shor's algorithm. To this end, I am trying to implement the Oracle for factoring any value of N (number to be factored) and any value of a (guess), I would like your help, if possible, in this part.
    I await your response and thank you in advance.

  • @tanveerqayyum
    @tanveerqayyum Год назад

    i have an error in first step is that cannot import name Shor

    • @danielsoares7456
      @danielsoares7456 5 месяцев назад

      Shor is depreciated now, why, ask to IBM Quantum.

  • @Steve168xyz
    @Steve168xyz 3 года назад

    Waiting for the next season

  • @PennDraken
    @PennDraken 8 месяцев назад

    Note: cu1 is deprecated use cp instead!!!

  • @peabrane8067
    @peabrane8067 3 года назад +1

    I can factor 15 too. Am I a quantum computer?

  • @engineeringtoolbox2.0
    @engineeringtoolbox2.0 3 года назад

    Well explained sir can you please teach us how to solve ecdlp on quantum

  • @bodgertime
    @bodgertime 3 года назад

    14:56 ? The example is way too basic

  • @it8755
    @it8755 4 года назад

    What would be next episode?

  • @Sulayman.786
    @Sulayman.786 2 года назад +1

    Are you shor? I mean, how can you be if it's encrypted? Primal?

  • @kingkhann9
    @kingkhann9 4 года назад +1

    waaaaaaat? 48 is 3 and 50 is 5 .... I didnt get any thing

    • @Boyeag
      @Boyeag 4 года назад +5

      To obtain the final result as 3 and 5, greatest common divisor is used;
      gcd(p,N) = gcd((a^(r/2)-1),N) = gcd(48,15) = 3
      gcd(q,N) = gcd((a^(r/2)+1),N) = gcd(50,15) = 5

  • @Elfrania
    @Elfrania 3 года назад

    I am seeing:
    """
    quantum_instance = QuantumCircuit(backend, shots=1000)
    TypeError: __init__() got an unexpected keyword argument 'shots'
    """
    Is Pycharm version different from Jupyter?

  • @Jeraestone
    @Jeraestone 2 года назад

    ShoRr Enuff🙀⚖️⚜️🖖

  • @Sulayman.786
    @Sulayman.786 2 года назад +1

    I don't like limp biscuit, I much prefer to pimp quiskit!

  • @lesmonkmorison2828
    @lesmonkmorison2828 Год назад

    waiting for a 1000 Qubit computer;; to run this and crack the net (evil smile)

    • @danielsoares7456
      @danielsoares7456 5 месяцев назад

      IBM already have a 1000 qubit quantum processor, they now want a supercomputer with 100,000 qubits until 2033, stay tunned.

  • @leonmozambique533
    @leonmozambique533 4 года назад

    Hi