All Projects → GiggleLiu → QuantumMPS

GiggleLiu / QuantumMPS

Licence: Apache-2.0 license
Variational Quantum Eigensolver with Fewer Qubits

Programming Languages

julia
2034 projects

Projects that are alternatives of or similar to QuantumMPS

Qcengine
Quantum chemistry program executor and IO standardizer (QCSchema).
Stars: ✭ 83 (+245.83%)
Mutual labels:  quantum-chemistry
Torchani
Accurate Neural Network Potential on PyTorch
Stars: ✭ 215 (+795.83%)
Mutual labels:  quantum-chemistry
spicyphysics
Sup bois, here's my work
Stars: ✭ 22 (-8.33%)
Mutual labels:  quantum-chemistry
Molecular Design Toolkit
Notebook-integrated tools for molecular simulation and visualization
Stars: ✭ 123 (+412.5%)
Mutual labels:  quantum-chemistry
Qml
Introductions to key concepts in quantum machine learning, as well as tutorials and implementations from cutting-edge QML research.
Stars: ✭ 174 (+625%)
Mutual labels:  quantum-chemistry
Nwchem
NWChem: Open Source High-Performance Computational Chemistry
Stars: ✭ 227 (+845.83%)
Mutual labels:  quantum-chemistry
Openfermion
The electronic structure package for quantum computers.
Stars: ✭ 1,099 (+4479.17%)
Mutual labels:  quantum-chemistry
dtnn
Deep Tensor Neural Network
Stars: ✭ 75 (+212.5%)
Mutual labels:  quantum-chemistry
Cclib
Parsers and algorithms for computational chemistry logfiles
Stars: ✭ 190 (+691.67%)
Mutual labels:  quantum-chemistry
TBFIT
Tight-binding parameter fitting package (TBFIT) for Slater-Koster method
Stars: ✭ 18 (-25%)
Mutual labels:  quantum-chemistry
Learnquantum
Repo of resources to help learn about quantum computing.
Stars: ✭ 143 (+495.83%)
Mutual labels:  quantum-chemistry
Deepqmc
Deep learning quantum Monte Carlo for electrons in real space
Stars: ✭ 170 (+608.33%)
Mutual labels:  quantum-chemistry
stda
stda program for computing excited states and response functions via simplified TD-DFT methods (sTDA, sTD-DFT, and SF-sTD-DFT)
Stars: ✭ 23 (-4.17%)
Mutual labels:  quantum-chemistry
Alchemy
Stars: ✭ 92 (+283.33%)
Mutual labels:  quantum-chemistry
IBM-Quantum-QCE20-Tutorials
Repository of code notebooks for tutorials at IEEE Quantum Week (QCE20) https://qce.quantum.ieee.org/tutorials/
Stars: ✭ 38 (+58.33%)
Mutual labels:  quantum-chemistry
Openfermion Psi4
OpenFermion plugin to interface with the electronic structure package Psi4.
Stars: ✭ 63 (+162.5%)
Mutual labels:  quantum-chemistry
Xtb
Semiempirical Extended Tight-Binding Program Package
Stars: ✭ 217 (+804.17%)
Mutual labels:  quantum-chemistry
gimic
Gauge-including magnetically induced currents.
Stars: ✭ 19 (-20.83%)
Mutual labels:  quantum-chemistry
QUICK
QUICK: A GPU-enabled ab intio quantum chemistry software package
Stars: ✭ 79 (+229.17%)
Mutual labels:  quantum-chemistry
dclareForMPS
Adding declarative, reactive and incremental rules to MPS
Stars: ✭ 21 (-12.5%)
Mutual labels:  mps

QuantumMPS

To make life easier, here is a simplified notebook version of qubit saving scheme for VQE.

Matrix product state (MPS) inspired quantum circuits ansatz for variational quantum eigensolver (VQE). Physical Hamiltonian includes: 1D and 2D Heisenberg model, with or without frustration, OBC or PBC. Circuit Block includes: General, U(1) and SU(2) symmetric ansatz.

Setup Guide

Warning: This package is not maintained anymore! It has been migrated to QuantumPEPS

Clone this repository https://github.com/GiggleLiu/QuantumMPS.git to your local host.

Set up your julia environment

  • julia 1.0+
  • install required julia libraries: Yao, DelimitedFiles, FileIO, Fire, JLD2, KrylovKit and StatsBase. To access GPU, you need the extra packages: CUDAnative, CuArrays and CuYao. They can be resolved by typing
$ julia resolve_env.jl # if a GPU is available
$ julia resolve_env.jl nocuda

Run an Example

As an example, we solve the ground state of frustrated Heisenberg model with J2 = 0.5 on 4 x 4 lattice. to run

$ julia j1j2.jl train --symmetry su2 --depth 1

Here, symmetry and depth are optional parameters to specify symmetry of ansatz and depth of circuit block. The default symmetry is su2 and the default circuit depth is 5. The above training with default setting can be very very slow. With Nvidia Titan V GPU, training can be accelerated by a factor of ~35 comparing with the sequential CPU version, but still takes several hours. Decreasing the circuit depth can also accelerate the training.

You can meaure the correlation function and energy per site using pre-trained model stored in data/

$ julia j1j2.jl measure szsz --depth 1         # Sz(i)*Sz(j) correlation matrix, default depth is 5.
$ julia j1j2.jl measure energy --symmetry su2   # sample energy expectation value

To get help on input parameters, please type

$ julia j1j2.jl train --help
$ julia j1j2.jl measure --help

Documentations

  • paper: Variational Quantum Eigensolver with Fewer Qubits (pdf), arXiv:1902.02663, Jin-Guo Liu, Yihong Zhang, Yuan Wan and Lei Wang

Citation

You are welcome to use this code for your research. Please kindly cite:

@article{Liu2019,
  author = {Jin-Guo Liu, Yi-Hong Zhang, Yuan Wan and Lei Wang},
  title = {Variational Quantum Eigensolver with Fewer Qubits},
  eprint = {arXiv:1902.02663},
  url = {https://arxiv.org/abs/1902.02663}
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].