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!: ✨
- Noisy circuit simulation of classical shadows
- One-line calculation of Pauli weight used for classical post-processing. (Tensor network based algorithm)
- Prof. Zhen Bi (Pappalardo Fellow 17'@MIT, Assistant Professor@PennState):
"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)
- Solving strong disordered Hamiltonian by Spectrum Bifurcation Renormalization Group (Condensed Matter Physics) Link
- Measurement induced phase transition (Condensed Matter Physics/Quantum Error Correction) Link
- Classical shadow tomography with shallow layers (Quantum Computation & Information) Link
- Clifford ansatz for quantum chemistry (Quantum Computation & Quantum Chemistry) Link
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!
- Numba
- Numpy
- QuTip
- Matplotlib
- PyTorch
- Qiskit 0.39.4
- Pyscf 2.0.1
- Quantum Error Correction and Noisy Circuit