Giter Club home page Giter Club logo

fs1132429 / pyclifford Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hongyehu/pyclifford

0.0 0.0 0.0 2.15 MB

An intuitive programming package for simulating and analyzing Clifford circuits, quantum measurement, and stabilizer states with applications to many-body localization, classical shadows, quantum chemistry and error correction code.

Home Page: https://hongyehu.github.io/PyCliffordPages/intro.html

License: BSD 3-Clause "New" or "Revised" License

Python 38.44% Jupyter Notebook 61.56%

pyclifford's Introduction

Alt text

Unitary Fund

license version

About

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.

Quotes from our first few users:

  • 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."

Application show cases:

Alt text

(We are still working on making detailed examples in those jupyter notebooks)

  1. Solving strong disordered Hamiltonian by Spectrum Bifurcation Renormalization Group (Condensed Matter Physics) Link
  2. Measurement induced phase transition (Condensed Matter Physics/Quantum Error Correction) Link
  3. Classical shadow tomography with shallow layers (Quantum Computation & Information) Link
  4. Clifford ansatz for quantum chemistry (Quantum Computation & Quantum Chemistry) Link

Structure of 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!

Alt text

Dependence of PyClifford and TorchClifford:

  • Numba
  • Numpy
  • QuTip
  • Matplotlib
  • PyTorch

Dependence of PyCliffordExt:

  • Qiskit 0.39.4
  • Pyscf 2.0.1

What will in the next release (Mid-March):

  • Quantum Error Correction and Noisy Circuit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.