Coder Social home page Coder Social logo

mercicle / entropiq Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 3.0 11.3 MB

EntropiQ - design and run large-scale simulations of quantum systems using Tensor Networks

License: Apache License 2.0

Julia 43.80% Python 56.20%
quantum-computing quantum-simulation tensor-networks

entropiq's Introduction

Welcome

We hope EntropiQ will become a community effort to build a no-code cloud platform for designing and running large-scale simulations of many-body quantum mechanical systems using Tensor Networks.

The community version and demos will be available at https://entropiq.tech/ shortly 🚀.

EntropiQ Components

There are three components of EntropiQ:

  • AWS Postgres Database for quantum simulation data and metadata management
    • tables managing experiment metadata, high-level simulation results, and low-level state and entropy tracking
  • Many-body quantum system simulation pipeline templates in Julia
    • Currently seeded with both brick-layer design and completely packed loop model with crossings (CPLC) design
    • Working on Genie (web framework in Julia) API Templates to deploy simulations and integrate with app
  • Streamlit Application (Python)
    • Platform statistics
    • Flexible experimental design, including: system size, gates, measurement types and rates, circuit depth and entropy calculation customization.
    • High and low-level exploratory data analysis of entanglement entropy, runtime analysis, and state probability distribution evolution animations

Relevant Papers

Quantum System Experimental Design

Bricklayer Design - "Quantum Zeno Effect and the Many-body Entanglement Transition"

Entanglement area law in superfluid 4He

Simulating Clifford's - "Hadamard-free circuits expose the structure of the Clifford group"

Measurement Protected Quantum Phases

Tensor Networks

This site is a resource for tensor network algorithms, theory, and software.

Quantum Tensor Networks in a Nutshell

The density-matrix renormalization group in the age of matrix product states

Hand-waving and Interpretive Dance: An Introductory Course on Tensor Networks

Matrix Product State Based Algorithms for Ground States and Dynamics

ITensors - very good article on measurement of local operators

A Practical Introduction to Tensor Networks: Matrix Product States and Projected Entangled Pair States

Garnet Chan "Matrix product states, DMRG, and tensor networks" (Part 1 of 2)

Garnet Chan "Matrix product states, DMRG, and tensor networks" (Part 2 of 2)

MPS Examples

Qiskit MPS

Entanglement Entropy

Quantum Entropies

"von Neumann entropy is a limiting case of the Rényi entropy lim α→1 Sα(ρ) = S(ρ) Given a family of entropies {Sα(ρ)}α, where α is some index, the entropies are monotonic in α∈ℝ" (see here).

Entanglement Entropy via the partial trace:

"Among physicists, this is often called "tracing out" or "tracing over" W to leave only an operator on V in the context where W and V are Hilbert spaces associated with quantum systems (see here)."

Partial Trace

Partial Trace Wikipedia

Misc Articles

MSFT Azure Article - very good Pauli measurement operations

Area Law

What is the difference between general measurement and projective measurement?

Validating quantum-classical programming models with tensor network simulations

Universal Quantum Simulators

Step-By-Step Onboarding

Request DB credentials from @mercicle and create a db_creds.env file in the root folder with the following:

POSTGRES_DB_USERNAME=
POSTGRES_DB_PASSWORD=
POSTGRES_DB_URL=quantumlabdb.cvbkaarxyt1b.us-east-1.rds.amazonaws.com
POSTGRES_DB_PORT=5432
POSTGRES_DB_NAME=postgres

Help Options

Software and Library Installation Help

Julia

To install Julia on Mac:

brew install --cask julia
brew update && brew upgrade julia

Add Julia to Path

'/Applications/Julia-1.7.app/Contents/Resources/julia/bin/julia' ln -fs "/Applications/Julia-1.7.app/Contents/Resources/julia/bin/julia" /usr/local/bin/julia or, export PATH="$PATH:/path/to//bin" or ~/.bash_profile

Julia Docs are here.

Julia Intro

Embed Julia in Python

How to call Julia code from Python

AWS Lambda Maker for Julia

Pluto for interactive Julia Dashboards

LambdaMaker.jl

Genie is a full-stack web framework that provides a streamlined and efficient workflow for developing modern web applications. It builds on Julia's strengths (high-level, high-performance, dynamic, JIT compiled), exposing a rich API and a powerful toolset for productive web development.

Deploying a Julia API with Genie

Genie Documentation

Graphs.jl

ITensors and PastaQ

Starter code to understand how to run simulations using ITensor and PastaQ was graciously provided here.

Install PastaQ:

julia> ]
pkg> add PastaQ
julia> import Pkg; Pkg.add("ITensors"); Pkg.add("StatsBase")
julia> Pkg.add(Pkg.PackageSpec(;name="PastaQ", version="0.0.18"))

After installing Itensor and PastaQ, you must run this julia> using Pkg; Pkg.update(). Add to ~/.zshrc:

export JULIA_NUM_THREADS=4

Mac M1 Support

Julia support for Apple Silicon

Tried M1 experimental and was running into PastaQ error:

ERROR: LoadError: UndefVarError: libscsindir not defined

So then installed Julia macOS x86 (Intel or Rosetta)

softwareupdate --install-rosetta

Atom Editor

juno-makes-writing-julia-awesome

Juno Update

pkg> up Atom Juno

Julia help docs

Embed Julia into Python

Online help for Streamlit and Julia Integration

StackOverflow

Streamlit Issues

PyJulia Issues

AWS Deployment

Using Streamlit to build an interactive dashboard for data analysis on AWS

MGMT of Open Source Projects

Open Source Project Checklist

History

I began building EntropiQ at the end of my M.S. Physics, when I was studying entanglement entropy in quantum systems under the supervision of Associate Professor Dr. Lukasz Fidkowski at the University of Washington.

This could not have been done without the generous support provided by the ITensors and PastaQ package developers, Matt and Giacomo. These are the two powerhouse packages used by EntropiQ.

entropiq's People

Contributors

mercicle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.