Back to Devices

projectq.simulator

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

The projectq.simulator device in the PennyLane-ProjectQ plugin provides access to ProjectQ’s qubit state vector simulator written in both C++ and Python.

Recommended for:

  • Small-scale qubit state vector simulations.

Documentation

See all PennyLane-ProjectQ devices:


Installation

The projectq.simulator 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.simulator', wires=2)

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