Skip to main content

implementation of different methods to prepare quantum states on quantum computer

Project description

Quantum State Preparation

This repository provides an implementation of various methods for preparing tensor network states (specifically, 1D tensor network states) on a quantum computer.

To use the package, you first need to specify a list of NumPy arrays that represent the MPS. You can then call different routines in the package to prepare the state.

Installation

pip install git+https://github.com/mohsin-0/qsp.git@main

Tutorial

Usage tutorial and some benchmarks

Basic Example

from qsp.tsp import MPSPreparation
import numpy as np
bond_dim, phys_dim = 4, 2

L=10
tensor_array = [np.random.rand(bond_dim,bond_dim,phys_dim) for _ in range(L)]
tensor_array[ 0] = np.random.rand(bond_dim,phys_dim)  # end points of mps
tensor_array[-1] = np.random.rand(bond_dim,phys_dim)
prep = MPSPreparation(tensor_array, shape='lrp')

prep.sequential_unitary_circuit(number_of_layers=4)

References

  1. Encoding of matrix product states into quantum circuits of one-and two-qubit gates,
    Shi-Ju Ran, Phys. Rev. A 101, 032310 (2020)

  2. Variational power of quantum circuit tensor networks,
    Reza Haghshenas, Johnnie Gray, Andrew C Potter, and Garnet Kin-Lic Chan, Phys. Rev. X 12, 011047 (2022)

  3. Preentangling Quantum Algorithms--the Density Matrix Renormalization Group-assisted Quantum Canonical Transformation,
    Mohsin Iqbal, David Munoz Ramo and Henrik Dreyer, arXiv preprint arXiv:2209.07106 (2022)

  4. Efficient adiabatic preparation of tensor network states,
    Zhi-Yuan Wei, Daniel Malz and Ignacio J. Cirac, Phys. Rev. Research 5, L022037 (2023)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qsp-0.0.2-py3-none-any.whl (37.8 kB view details)

Uploaded Python 3

File details

Details for the file qsp-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: qsp-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 37.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for qsp-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 600152d67fad85c1b61644092e2d15d48bfed8b474d5bf5ce142cebe81937e08
MD5 17e3b615d484082824b846a5c10cd9ee
BLAKE2b-256 8e65b0e3464e5d5bfcc44c872a1a606ed9ca441b68331cb7411abb75aaea7aa8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page