Primitives | Coding with Qiskit 1.x | Programming on Quantum Computers

  Рет қаралды 3,492

Qiskit

Qiskit

Ай бұрын

Join us in Episode 4 of "Coding with Qiskit 1.x" as Derek Wang dives deeper into Qiskit Primitives. The Estimator and Sampler primitives, for computing expectation values and sampling of quantum states, simplify interactions with quantum hardware. We'll use practical examples inspired by a pioneering IBM Quantum study featured in Nature.
Whether you're a quantum novice or enthusiast, this tutorial is for you. Like, subscribe, and tune in to expand your quantum programming toolkit!
Qiskit Resources:
GitHub notebook for this episode: github.com/derek-wang-ibm/cod...
How Can I Find the Expectation Value of an Operator?: • How can I find the exp...
Expectation Values Explained: • What is an Expectation...
Nature Paper "Evidence for the utility of quantum computing before fault tolerance": nature.com/articles/s41586-02...
Install Qiskit: qisk.it/cwq-install
Introduction to Primitives: docs.quantum.ibm.com/run/prim...
IBM Quantum Documentation - Primitives: docs.quantum.ibm.com/api/qisk...
IBM Quantum: quantum.ibm.com/
#ibmquantum #learnquantum #qiskit

Пікірлер: 23
@Eduardfp
@Eduardfp 28 күн бұрын
These episodes are terrific! Please, keep uploading them!!
@LokPendergraph-mp8gw
@LokPendergraph-mp8gw 27 күн бұрын
I recently started learning quantum computing programming. When I installed Qiskit 1.0.2 on my laptop, I found that it couldn't import the aer module (assuming I had already installed the aer module correctly). What's going on? I just want it to display simulation images
@chisomodaka3616
@chisomodaka3616 19 күн бұрын
Hi Derek, this is amazing!!! I have one issue that I may need to get your insight into. At the moment I am trying to simulate strongly correlated (you may say maximally entangled) "physics" using the Sachdev-Ye-Kitaev (SYK) model on IBM QP. However, I noticed that in your Ising Model, the Hamiltonian was simulated sequentially (i.e. using trotter steps). In this case, I can not adopt a similar "sequential" approach for the SYK model - since I need to simulate the dynamical evolution of the Hamiltonian. So my question is... is there any way to simulate a dynamically evolving Hamiltonian on IBM QP? Or could there be an approach to mimic maximally entangled systems? Your feedback will be greatly appreciated
@DerekWangIBM
@DerekWangIBM 18 күн бұрын
By "dynamical evolution of the Hamiltonian" do you mean that the Hamiltonian is time-dependent?
@chisomodaka3616
@chisomodaka3616 18 күн бұрын
@@DerekWangIBM Yes that's right, the Hamiltonian evolves in time.
@DerekWangIBM
@DerekWangIBM 4 күн бұрын
@@chisomodaka3616 You should be able to apply Trotterization just as before, except now the gates would change at each Trotter layer. However, whether this approach is the most efficient for extracting your desired observable, it depends on the problem.
@chisomodaka3616
@chisomodaka3616 4 күн бұрын
@@DerekWangIBMThanks for your insights. Changing the gates at each step makes a lot more sense. Will look into it 👍🏻
@user-nj6zi6kh3e
@user-nj6zi6kh3e 23 күн бұрын
I got a totally different result even though I used the same backend and the code. When using sampler, my result fluctuates twice from 1 to 0.4 and for estimator, it is almost stable not going down as the angle increases. Could that be possible? or maybe my code is wrong? But anyway, I love the episodes. Can you also show us about the new sessions that have been announced recently?
@DerekWangIBM
@DerekWangIBM 19 күн бұрын
Glad the episodes are helpful. Devices are regularly calibrated, so performance can differ from run to run. You could explore the different error suppression and mitigation methods.
@johnabruce
@johnabruce 27 күн бұрын
It there any way to take a measurement and not retain the results of that measurement? Example QC would be H-M-H-M but do not retain the first M (measurement) in the results returned? It is a weird case. I know generally the measurement is retained and I can't find a way around it. Can you help or point to documentation or a community forum?
@LokPendergraph-mp8gw
@LokPendergraph-mp8gw 27 күн бұрын
I recently started learning quantum computing programming. When I installed Qiskit 1.0.2 on my laptop, I found that it couldn't import the aer module (assuming I had already installed the aer module correctly). What's going on? I just want it to display simulation images
@johnabruce
@johnabruce 27 күн бұрын
@@LokPendergraph-mp8gw Try from qiskit_aer import AerSimulator.
@DerekWangIBM
@DerekWangIBM 26 күн бұрын
If you don't want the information from the first M in your classical register, you could overwrite it when you collect the bit from the second M--just send that second bit to the same spot of the classical register. Another way you could "not know" the first M is the collect the information and then use qiskit.result.marginalize_counts() over the index of the first bit.
@DerekWangIBM
@DerekWangIBM 26 күн бұрын
@@LokPendergraph-mp8gw Did you first `pip install qiskit-aer` and see that you could import it? So assuming you did, then do you mean after installing Qiskit 1.0.2, you lost access to Qiskit Aer?
@johnabruce
@johnabruce 26 күн бұрын
@@DerekWangIBM Thanks, that is what I did. I overwrote it. GPT4 suggested the same thing.
@HrvojeKalic
@HrvojeKalic 26 күн бұрын
For some reason, my "Survival probability..." plot is very different. All "2Q gate Depth" values are above 0.8. Only at Depth 20, the value drop below 0.3 Is this a normal behavior? I also used ibm_brisbane backend. edit: The estimator program returned an even stranger plot. values are < 0.0 for Rx angle < 0.35
@DerekWangIBM
@DerekWangIBM 19 күн бұрын
As I mention to a user in another comment, devices are regularly calibrated, so performance can differ from run to run. You could explore the different error suppression and mitigation methods.
@sebastiandipanjan.7335
@sebastiandipanjan.7335 6 күн бұрын
Hello sir in the last estimation technique, in post processing and plotting I got a value error of "x and y must have same first dimension, but you have shapes (1,) and (9,)" And I have another question that any job id can I use which is already completed in ibm platform in post processing technique ?
@DerekWangIBM
@DerekWangIBM 4 күн бұрын
For the first issue, it looks like your input for x in the plotting function needs 9 elements. For the second, do you mean can you run a circuit without error mitigation first, and then later decide to add error mitigation? Perhaps in some cases, but many error mitigation methods require additional circuits to be executed at runtime to be effective (for instance, readout mitigation requires calibration circuits), so generally, you should apply error mitigation at runtime.
@birincimammadzada
@birincimammadzada 29 күн бұрын
thank you. Please hire me as an intern at IBM :)
@LokPendergraph-mp8gw
@LokPendergraph-mp8gw 27 күн бұрын
I recently started learning quantum computing programming. When I installed Qiskit 1.0.2 on my laptop, I found that it couldn't import the aer module (assuming I had already installed the aer module correctly). What's going on? I just want it to display simulation images
@wanderer3005
@wanderer3005 29 күн бұрын
Пиздец как сложно
How To Code A Quantum Computer
20:42
Lukas's Lab
Рет қаралды 439 М.
НЕОБЫЧНЫЙ ЛЕДЕНЕЦ
00:49
Sveta Sollar
Рет қаралды 8 МЛН
CAN YOU HELP ME? (ROAD TO 100 MLN!) #shorts
00:26
PANDA BOI
Рет қаралды 8 МЛН
Follow @karina-kola please 🙏🥺
00:21
Andrey Grechka
Рет қаралды 22 МЛН
translation, rotation, and pivot PART ONE
11:45
John Strollo
Рет қаралды 1
24 hours with Ilana Wisby: Oxford Quantum Circuits
10:53
Resonance
Рет қаралды 6 М.
Introducing Qiskit SDK v1.0
3:33
IBM Research
Рет қаралды 3,5 М.
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 581 М.
The Map of Quantum Computing - Quantum Computing Explained
33:28
Domain of Science
Рет қаралды 1,6 МЛН
The Next Era of Computing | Extropic
8:45
S3
Рет қаралды 34 М.
Распаковка айфона в воде😱 #shorts
0:25
Mevaza
Рет қаралды 1,6 МЛН
Трагичная История Девушки 😱🔥
0:58
Смотри Под Чаёк
Рет қаралды 199 М.
Обзор игрового компьютера Макса 2в1
23:34
Samsung vs Apple Vision Pro🤯
0:31
FilmBytes
Рет қаралды 1,1 МЛН
ПРОБЛЕМА МЕХАНИЧЕСКИХ КЛАВИАТУР!🤬
0:59
#miniphone
0:18
Miniphone
Рет қаралды 3,4 МЛН