This is a python
based clifford circuit simulation package which not only offers the fast simulation but also supports analytical level manipulation of pauli operators and stabilizer states. And we are working on quantum circuit (strong/weak) simulations that include a few T-gates. To get started, in PyClifford Jupyter Book, we have made several jupyter notebooks to illustrate the basics of PyClifford.
Installation of PyClifford also installs TorchClifford
a parallel package that contains the same functionality but in a vectorized and GPU-friendly format. To use TorchClifford, simply import torchclifford
rather than import pyclifford
.
Also, there are several application shows cases below that are helpful.
We're excited to introduce our latest feature!: :sparkles:
"PyClifford is an exceptional tool that offers researchers in quantum condensed matter a wide range of capabilities, including an intuitive programming language for simulating and analyzing Clifford circuits, quantum measurement, and evaluation of entanglement quantities, all of which are crucial in advancing our understanding of the quantum world. Its continuous updates and enhancements by a well-coordinated team of experts make it a reliable and powerful resource that can keep pace with the latest research developments and drive new discoveries in the field."
(We are still working on making detailed examples in those jupyter notebooks)
PyClifford
:The structure of PyClifford
is illustrated below. Pauli strings, stabilizer states, and Clifford maps are represented by binary or integer strings. All the low-level calculation is in the utils.py
with JIT compliation. Then paulialg.py
handles all the Pauli algebra and manipulation of Pauli string lists. On top of that, we have built stabilizer.py
to handle stabilizer states and Clifford maps. Finally, circuit.py
gives user an easy access to all the functions.
In addition, we are interested in developing PyCliffordExt
as an extension to PyClifford
, where we would like to include few-T gate into the package. If you are interested in its physics or contributing to the code, please feel free to contact us!
PyClifford
and TorchClifford
:PyCliffordExt
: