Back to Devices

qiskit.basicsim

  • Small-Moderate Workloads
  • CPU (simulator)
  • Linux
  • macOS
  • Windows

The qiskit.basicsim device in the PennyLane-Qiskit plugin gives you access to Qiskit’s BasicSimulator device via the PennyLane frontend.

Recommended for:

  • Accessing Qiskit providers and backends through PennyLane.
  • Prototyping ideas.
  • All operating systems.

Documentation

To learn more, please visit the device documentation:

See all PennyLane-Qiskit devices:


Installation

The qiskit.basicsim device can be installed with:

pip install pennylane-qiskit

For more details on installation and dependencies, visit the PennyLane-Qiskit installation page.


Device Initialization

Initialize the device in PennyLane with:

import pennylane as qml dev = qml.device("qiskit.basicsim", wires=2)

For more details on device settings and keyword arguments, see the device documentation.