Back to Devices

default.qubit

  • Included in PennyLane
  • Built by PennyLane
  • Small-Moderate Workloads
  • CPU (simulator)
  • TPU (simulator)
  • Linux
  • macOS
  • Windows

default.qubit is PennyLane’s most featureful device that is perfect for fast prototyping with small-scale circuits.

Recommended for:


Documentation

To learn more, please visit the device documentation:


Installation

The default.qubit device is included in PennyLane. It can be installed with:

pip install pennylane

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


Device Initialization

Initialize the device in PennyLane with:

import pennylane as qml dev = qml.device('default.qubit', wires=5)

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