Back to Devices

microsoft.QuantumSimulator

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

The microsoft.QuantumSimulator in the PennyLane-Q# plugin is a full state simulator running on Microsoft Azure simulators.

Recommended for:

  • Local full state simulation.
  • Access to Microsoft Azure simulators.
  • Support for noise and finite shots.
  • All operating systems.

Documentation

To learn more, please visit the device documentation:

Installation

The microsoft.QuantumSimulator device can be installed with:

pip3 install pennylane-qsharp

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

Device Initialization

Initialize the device in PennyLane with:

import pennylane as qml
dev = qml.device('microsoft.QuantumSimulator', wires=2)

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