PennyLane
Install
Install
Back to Devices

default.clifford

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

The default.clifford device enables efficient simulation of large-scale Clifford circuits through the use of Stim as a backend.

Recommended for:

  • State vector simulations of Clifford circuits.
  • Support with quantum channels.
  • Support for states represented in Tableau form.
  • All operating systems.

Documentation

To learn more, please visit the device documentation:

  • default.clifford documentation

Installation

The default.clifford device is included in PennyLane. The stim library must also be installed to execute circuits with this device.

pip install pennylane stim

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.clifford', wires=5) 

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


Related Content

Demo

Efficient Simulation of Clifford Circuits

PennyLane

PennyLane is a cross-platform Python library for quantum computing, quantum machine learning, and quantum chemistry. Built by researchers, for research. Created with ❤️ by Xanadu.

Research

  • Research
  • Performance
  • Hardware & Simulators
  • Demos
  • Quantum Compilation
  • Quantum Datasets

Education

  • Teach
  • Learn
  • Codebook
  • Coding Challenges
  • Videos
  • Glossary

Software

  • Install PennyLane
  • Features
  • Documentation
  • Catalyst Compilation Docs
  • Development Guide
  • API
  • GitHub
Stay updated with our newsletter

© Copyright 2026 | Xanadu | All rights reserved

TensorFlow, the TensorFlow logo and any related marks are trademarks of Google Inc.

Privacy Policy|Terms of Service|Cookie Policy|Code of Conduct