Q&ABeginnerQiskit and programming

How do I install Qiskit to run the site's examples?

Create a Python virtual environment and run pip install qiskit qiskit-aer (plus scipy for some examples).

The method recommended in the Qiskit documentation is to use a virtual environment to avoid package conflicts: create it with python -m venv qenv, then activate it (source qenv/bin/activate on Linux and macOS, or the activation script in the Scripts folder on Windows), then install the packages with pip install qiskit qiskit-aer scipy.

Then check with python -c "import qiskit; print(qiskit.__version__)". The site's examples were tested on Qiskit 2.6.2 and qiskit-aer 0.18.4, and use the Qiskit ≥ 1.0 interface. The PennyLane examples need pip install pennylane.

If you want to experiment without installing anything, you can use Jupyter notebooks on cloud services, or the site's own lab, which exports Qiskit code for the circuit you build.

Related topics

References

  1. IBM Quantum (2025). Install Qiskit. IBM Quantum Documentation quantum.cloud.ibm.com
  2. IBM Quantum (2025). Qiskit SDK API documentation. IBM Quantum Documentation quantum.cloud.ibm.com
  3. Xanadu (2025). PennyLane Documentation. PennyLane docs.pennylane.ai