Back to Devices

projectq.classical

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

The projectq.classical device in the PennyLane-ProjectQ plugin is based on ProjectQ’s “classical” simulator backend, which only allows classical gates such as NOTs.

Recommended for:

  • Small-scale simulations.

Documentation

See all PennyLane-ProjectQ devices:

Installation

The ``projectq.classical` device can be installed with:

pip install pennylane_pq

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

Device Initialization

Initialize the device in PennyLane with:

import pennylane as qml
dev = qml.device('projectq.classical', wires=2)

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