8000 GitHub - andrzejwichert/qai_1: Quantum Artificial Intelligence with Qiskit Version 1
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

andrzejwichert/qai_1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quantum Artificial Intelligence with Qiskit (1.4.1)

This project aims at teaching you the fundamentals of Quantum Artificial Intelligence with Qiskit. It contains the example code of my CRC Press/Taylor & Francis book, Quantum Artificial Intelligence, Andreas Wichert, 2024

http://web.tecnico.ulisboa.pt/andreas.wichert/

Qiskit is an open-source software development kit (SDK) for working with quantum computers at the level of circuits and algorithms, IBM Quantum, https://quantum-computing.ibm.com/.

You can find installation instruction for qiskit at the site: https://qiskit.org/documentation/getting_started.html

For version qiskit 1.x also install adittionaly in your environment: pip install qiskit-aer and pip install qiskit-machine-learning and pip install qiskit-ibm-provider

Check this repository for the newest port of qiskit version which is now version 1.4.1 You can uppgrade your qiskit 1.x version pip install -U qiskit. (Note that because Qiskit 1.x uses a new packaging structure, you cannot use pip install -U qiskit to upgrade from any Qiskit 0.x version to 1.x, see https://docs.quantum.ibm.com/start/install)

Use pip to install the desired version. Replace X.Y.Z with the version number you need:

pip install qiskit==X.Y.Z

For exmpla to instal qiskit 1.4.1:

pip install qiskit==1.4.1

For Qiskit version 2.x go to the directory

https://github.com/andrzejwichert/qai2

Qiskit Runtime V2, qiskit-ibm-runtime 0.23 (Estimator V2)

pip install -U qiskit-ibm-runtime (updating librar 52BA y for quantum hardware) for Deutsch_IBM_Q.ipynb


There are following changes in qiskit 1.x due to former versions 0.45: qiskit.tools.jupyter are deprecated, instead of from qiskit import Aer use from qiskit_aer import Aer, instead or execute() use run() - when using run() decompose() the circuit, for quasi probabilities instead of plot_histogram(counts) use plot_distribution(counts), instead of bind use assign.

For qiskit version before 1.x (version 0.46) go to https://github.com/andrzejwichert/qai


If you have any questions, pls email me andreas.wichert@tecnico.ulisboa.pt

About

Quantum Artificial Intelligence with Qiskit Version 1

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0