Hi.
So without going into the further details of the mathematics offshores algorithm, I need to show you
the easiest way to do this using casket's.
OK, as I said before, many of the computations are many of the operations that we will be doing on
the quantum computers in the future will be based on some popular libraries that will be developed by
IBM or Microsoft or Google or any other big companies.
They will just create layers of abstraction for us and we will need to use it in order to make things
easier for us.
OK, so let me show you one of those algorithms.
So I'm going to open a new notebook from here and we're going to see how to do this with a couple of
lines of Python code.
So it will take so little code for us to break the RSA encryption in the feature if we have enough number
of qubits.
So let me just name this Shor's algorithm.
And I believe we're in Kulaks 13 right now, so I'm going to import the casket, OK, or just from casket's
import, everything like this.
And then I'm going to from Empathy's from Kinsky.
That algorithm's import.
Sure.
So here you go.
That's all we need.
And remember, I talked about the aqua, so they migrated to the casket that algorithm's.
So it's very easy to use this.
So all we got to do is just create the backhands by saying that's airdate, get back end and we're going
to do this within the chasm simulator.
And the reason why I called this quantum instant's rather than bakin or something like that, this sure
algorithm that we imported asks for this parameter like Quantum Instant's.
So that's why I named it like this.
Of course you can name the variable anything you want.
And since we have imported this Sher's algorithm right now, we can just go ahead and use it and we're
going to create an instance out of these shores algorithm.
And it actually asks for the backend that we will be working on.
So the backend parameter is quantum instanced.
So that's why I named this quantum instance and it's very easy to get the result back.
Like we have to just say, sure, that Fekter and just write the number that we want to factor like
this.
And also we need to specify the random number that we will be choosing.
And again, so I have chosen to give seven this time.
OK, you can just choose your own random number and all you get to do is just write the fake factors
or the prime factors of this is something like result that factors.
So all we got to do is justice.
And as you can see, it will create this and it will just find the factors for us.
So three and five, it's that easy using the casket.
OK, and again, in the future, we will be dealing with just this stuff.
But of course, in order to deal with this stuff as well, you need to read the documentation.
You need to understand how it works.
And also you need to understand the theory.
You need to understand what's going on behind this KURTAS.
So in order to read the documentation, you can either call the help function from here.
OK, you can just say help.
Sure.
For example, and it will just show you the documentation offshore.
Or of course you can go to Casket's documentation online and just read about it over here.
For example, I can see all the parameter names from here.
That's how I learned about this in the first place.
OK, I went to the documentation.
I have read about it.
So that's how I'm supposed to actually understand all of this without having an online tutorial or something
like that.
So even though it's very easy to use this, we still need to understand what's going on behind the curtains,
because there are a couple of very important quantum algorithms or quantum concepts that is being used
in this Shahrizat algorithm.
One of them is being the quantum for you transform.
The other one is quantum physics.
To mention we need to learn about those stuff as well and consider this like an optional section.
So we're going to deep dive into the details of mathematics and also the craft and cupie as well.
But it would do very good for us to call.
I simply understand the quantum computation, so we're going to stop here and continue within the next
one together.