In general, you may use the code from Qiskit Pocket Guide in your programs and documentation. You do not need to contact the authors for permission unless you're reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from this book does not require permission. Answering a question by citing this book and quoting example code does not require permission. On the other hand, selling or distributing a CD-ROM of examples from Qiskit Pocket Guide does require permission. Incorporating a significant amount of example code from this book into your product's documentation does require permission.
We appreciate, but do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN.
If you think your use of code examples falls outside fair use or the permission given here, feel free to contact O'Reilly at [email protected].
Please note that the examples are not production code and have not been carefully tested. They are provided "as-is" and come with no warranty of any kind.
You need a way to run Python and Jupyter Notebooks:
pip install jupyter
This is tested on Qiskit Terra 0.20. This and other dependencies can be installed via Pip:
pip install -r requirements.txt
wget http://github.com/qiskit-community/qiskit-pocket-guide/archive/refs/heads/main.zip
unzip main.zip
Paste or import an example into the IBM Quantum Lab
- Using the BasicAer Simulators
- Using the Aer Simulators
- Monitoring Job Status and Obtaining Results (no code examples)
- Quickstart with Transpile
- Transpiler Passes
- Using Quantum Information States
- Using Quantum Information Operators
- Using Quantum Information Channels
- Using Quantum Information Measures
- Creating Operator Flow Expressions
- Using the Operator Flow State Function classes
- Using the Operator Flow Primitive Operators classes
- Background on Quantum Algorithms
- Using the Algorithms Module
- Traditional Quantum Algorithms
- Eigensolvers
- Standard Instructions (no code examples)
- Standard Single-Qubit Gates (no code examples)
- Standard Multi-Qubit Gates (no code examples)
- Graphical Tools
- Text-Based Tools
- Getting System Info Programmatically
- Interacting with Quantum Systems on the Cloud
- Building Quantum Circuits in QASM
- Building Higher-Level Gates
- Classical Types and Instructions
- Building Quantum Programs