Code a REAL Quantum Computer for FREE! | Getting Started Qiskit Demo
HTML-код
- Опубликовано: 4 сен 2024
- I'm going to show you how to write code on a REAL quantum computer for FREE! A quantum computer that is cooled down to near ZERO Kelvin temperatures, colder than SPACE. We will get access to a quantum computer and code “Hello Quantum World” in quantum assembly language OpenQASM and the Qiskit quantum information software development kit. Quantum programming languages are everywhere now!
Join this channel to get access to perks like voting on my next video and behind the scenes!
/ @anastasia-marchenkova
Or sign up for the same perks on Patreon:
/ amarchenkova
Also comment down below what other quantum and non-quantum coding tutorials and languages you're interested in!
My favorite book for beginners to coding and quantum computing (covers Cirq code, not Qiskit or OpenQASM):
amzn.to/30TynPI
Code from this tutorial:
github.com/ama...
IBM Quantum Experience: quantum-comput...
Q gates: quantum-comput...
Qiskit Textbook: qiskit.org/tex...
OpenQuantum Assembly language paper: arxiv.org/abs/...
Follow me on instagram for behind the scenes!!!
/ amarchenkova
Disclaimer: Affiliate links may be used in my recommendations. If you buy through my links I provide, I may receive a portion of the sale amount. This doesn't change the price you pay. Thank you so much for watching my videos and supporting my channel!
#qiskit #openqasm #gettingstartedquantum
Wow, we're getting free quantum computing education for freeee. Tytytyty.
Your channel is a goldmine. When I wanted to know more about quantum computing, you're my goto channel! Amazing content simply told!
Thank you
That was a super good explanation. I'm fine with your pace. I have a deep love for Quantum physics and programming/problem solving and I too articulate fast in the excitement of sharing my knowledge with them. ❣️. Keep going 👍
Hope to see more tutorials like this. Thank you so much!
Nice introduction! - At first, I kinda thought the clicking sounds were from radioactive decay... but it's just the necklace dangling against the mike, isn't it. ISN'T IT?
@@Anastasia-Marchenkova :D Seems to be a common story! I love it! - It took us some time to find a functioning Geiger-Müller counter that wasn't broken like that as well when we were experimenting with radioactive material in my first year.
wow, it really helped even when one is already familiar with qiskit. Thank you. Much appreciated.
Woah that's so much of quality information in one video !! thanks alot !! It would be great if you start a quantum computing tutorial :)
Your made it sound so simple, thank you
Awesome introduction. Super fast, but there's a pause button, so who cares?! It's been over a decade since I finished my physics degree, and I've barely looked at it since. Your channel and your other social media have been inspiring me to relearn all that I've forgotten, and quantum computing seems like a perfect little niche where to apply it. Thank you!
Few weeks back following your channel for quantum programming... honestly great videos and explanation... please make videos on Quantum Machine Learning and QNN...make more videos on qiskit and Tensorflow Cirq...
Actually first video I saw your channel was Books of Quantum Machines for Software Engineers.... Please make more videos on Quantum Machines concepts for ML/DL engineers or Software Engineers...
I really like that your video's are in depth and provide concrete information! Subscribed!
Can you create some video series teaching quantum computing from scratch the way you explain is really good. And both quality and content is great.
I'd love to look at tensor flow quantum for QML
So these are mostly different ways of representing the same types of quantum circuits, and quantum circuits are a bit different from classical circuits in that instead of having separate inputs and outputs they munge together the inputs in defined ways while maintaining the same number of qubits? Is there a good for software people explanation of what the states of qubits are and how they get munged together by the operations, basically along the lines of how you would write a simulator? Wikipedia is clear-ish on the amount of state necessary to represent each qubit is 2^N where N is the total number of qubits but not super straightforward after that.
@@Anastasia-Marchenkova Yes that's exactly what I'm wondering about. As someone who learned assembly before C and still thinks of C as glorified assembly to this day the from-the-base-metal approach is much more intuitive to me.
Greatt video!!
I have one question though.
If I run a circuit in the notebook in the Quantum Lab and the job is queued,
and the backend is pretty busy(that means i might be waiting even days), where the results
will appear?(I run in a cell the command job_exc = backend.run(qobj) , but it seems to be running
do i have to keep the tab open until its done??)
If you can answer this, it will be very useful. Thanks again for the great video.
Really cool tutorial!!! I hope you find the time for more qiskit tutorials
Would like a AWS Braket tutorial as well if you can. Which one would be cheaper to use for learning purposes?
very thanks for your, very very fast lecture, i wait the more advanced one but I hope it will be in slow motion.very thanks
@@Anastasia-Marchenkova you were in superposition and I tried to be entangled with you but I couldn't. Thanks
Very helpful and clearly understandable! Спасибо)
Hello, is math important for coding in quantum computer,if yes then which types of mathematics is very important for it?
This is absolutely fascinating. Great intro to programming for quantum computers! Just one tiny request... could you possibly speak a little bit slower? I know how much you are excited about quantum computing, but for non-native English speakers, it is a little bit difficult to follow your pace. Thanks!
Great content! Informative and easy to follow.
The quantum computer looks like a ceiling light
I'm not a coder or programmer, so I wonder what is the practical applications of quantum computer NOW?
if you give easy access to personal laptop warmhole to quantum computer then millionds people are connected with it and quantum computer become cheaper and easy to use simple connectivity and simple programming usng ai like telling a syory then we can found that enormous breakthrough for almost every person of the world and got cheaper solutions for day todey problems
Thank you for this awesome resource! Really easy to follow :)
I have basic understanding of quantum physics and a very good understanding of low level classical programming. But... after several attempts at understanding even the basic H gate hello world example you show, i have failed to make the connections. I'm sure this was a great video but i would be lieing if i said i understood even 10%. The only thing i understood is that quantum computing uses different gates. So, i guess what i would really like now is a video that explains how these gates work compared to the binary gates i'm used too. And then maybe a follow up on that comparing traditional assembly code for a basic sort function, then recreate the sort function using quantum code. It feels like every scrap of info out there is either really basic just explaining superposition or highly complicated (as i found your video). I also don't understand the results of the Hello world example. it's 50/50. what does that mean in terms of an actual program. Hello world programs all print hello world on the screen. this hello world return 50/50 on the screen. i don't get it.
Excellent video, awesome editing too.
Thank you.
Woooohhh I have been working on it coding it on a simulator and then on the actuall quantum computer...I always wondered why probabilities vary a lot so a c-not applied to a nearer qubit is very likely optimal!!
But... actually when u try to simulate Bernstein Vazhirani algorithm u would want to c-not which ever bit u want it being one to the output q bit so is there a way to decrease the coherence??
@@Anastasia-Marchenkova 🤓🤓keep making such videos and hope you grow more and more with such quality videos actually when I see other videos they just keep beating around the bush you went straight to the point!! Thats something I like in your video... would like to see another video on quantum computing!!
Hello mam i just started learning quantum computing can you do a video on creating a coin toss game .
Could you make a down to earth video about Grover's algorithm? Most videos describing it seem to jump straight to mathematics. It would be nice to see a concrete example of something like searching a phone number by name from a list of five [name, phone] pairs. Perhaps names could be one letter and phone numbers could be just one number to make it fit into available qubits. So far the best explanation I encountered was given by Stack Overflow user Exeko although I am not sure if it is correct. See stackoverflow.com/questions/48750202/quantum-computing-grovers-algorithm/49038472#49038472
hey could you post the slide pdf ??
pls & thnx if ya can 😊
P.S. - This stuff is amazing!
thanks , and do you think IBM will outrace others in Quantum Computer eventually ?
IBM has the best and most complete open source software (qiskit), free available real QCs, a huge community of developer, programs to become Qiskit Advocates (experts), a Quantum Network to cooperate with customers with the largest available quantum computers. Oh, we are talking of digita quantum computers, not quantum annealers (analogic) that can solve only optimization problems. IBM’s QCs aim to be the real universal QCs.
@@LucaCrippa88 thanks Luca
I would like to know other quantum platform.
does tensor flow work with Quantum?
👍
Thankyou!
❤️
Beautiful lady presents beautiful topics beautifully. Thanks !
hey quantum queen when are u releasing your own quantum course
@@Anastasia-Marchenkova Cirq
man. where is let A = 2
1337 timing ahah
Err whats that noise?
I DESTROYEEED THAT LIKE BUTTOn My ScreEn BroKE.
👏👏👏
cutting edge technology for free, this is what happened when you connected to passionate person.
@@Anastasia-Marchenkova I agree with you, as long as these machines are away from war mongers.
@@Anastasia-Marchenkova and many thanks for shearing with us, a beautiful lady with beautiful brain n heart.
AI changed a simple story into a program and and this program is changed into quantum code so we easily use the quantum computer easily 😂😂😃😃🤣🤣
Transforming a simple story into a quantum code program involves several steps. First, let's outline the story and identify its main elements. Then, we'll translate the story into a classical algorithm. Finally, we'll convert the classical algorithm into a quantum algorithm.
Simple Story Example
Let's consider a simple story:
"Alice and Bob want to find out if they have the same favorite number between 0 and 7."
Step 1: Translating the Story into a Classical Algorithm
Alice and Bob each choose a number between 0 and 7.
They compare their numbers to see if they are the same.
Step 2: Classical Algorithm
python
Copy code
def favorite_number_same(alice_number, bob_number):
return alice_number == bob_number
# Example usage
alice_number = 5
bob_number = 3
print(favorite_number_same(alice_number, bob_number)) # Output: False
Step 3: Quantum Algorithm
To translate this into a quantum algorithm, we'll use quantum superposition and measurement. Specifically, we'll use a simple algorithm where both Alice and Bob encode their numbers into a quantum state, and then we measure to see if they match.
We'll use the Qiskit library for this quantum computation.
Quantum Algorithm Using Qiskit
Import the necessary libraries.
Initialize the quantum circuit.
Encode Alice's and Bob's numbers.
Measure the quantum state to determine if the numbers match.
Here's how we can implement this:
python
Copy code
from qiskit import QuantumCircuit, Aer, transpile, assemble, execute
from qiskit.visualization import plot_histogram
def encode_number(qc, number, qubits):
for i in range(len(qubits)):
if (number >> i) & 1:
qc.x(qubits[i])
def favorite_number_same_qiskit(alice_number, bob_number):
# Initialize quantum circuit with 3 qubits and 3 classical bits
qc = QuantumCircuit(3, 3)
# Encode Alice's number on the first two qubits
encode_number(qc, alice_number, [0, 1])
# Encode Bob's number on the second and third qubits
encode_number(qc, bob_number, [1, 2])
# Measure the qubits
qc.measure([0, 1, 2], [0, 1, 2])
# Execute the circuit on a simulator
simulator = Aer.get_backend('qasm_simulator')
compiled_circuit = transpile(qc, simulator)
qobj = assemble(compiled_circuit)
result = execute(qc, backend=simulator, shots=1024).result()
# Get the measurement results
counts = result.get_counts(qc)
return counts
# Example usage
alice_number = 5 # Binary 101
bob_number = 3 # Binary 011
counts = favorite_number_same_qiskit(alice_number, bob_number)
print(counts)
Explanation
Initialization: We create a quantum circuit with 3 qubits and 3 classical bits.
Encoding: We encode Alice's and Bob's numbers into the quantum circuit.
Measurement: We measure the quantum state to see the results.
Running the Quantum Code
To run the above quantum code, you need to install Qiskit, which can be done using:
sh
Copy code
pip install qiskit
Then, you can run the code in a Python environment that supports Qiskit.
Conclusion
This approach demonstrates how a simple story can be transformed into a classical algorithm and then into a quantum algorithm using Qiskit. The quantum algorithm uses superposition and measurement to compare the favorite numbers of Alice and Bob.