Skip to main content

Qurry 🍛 - The Measuring Tool for Renyi Entropy, Loschmidt Echo, and Magnetization Squared, The Library of Some Common Cases

Project description

Qurry 🍛 - The python package for measuring quantum entanglement entropy and wave function overlap.

The python package that makes the randomized measurement easy.

The major function includes the measurement of quantum Renyi Entropy and Wave Function Overlap based on the randomized measurement protocol. When interfaced with IBM Qiskit, the package automates the workflow from creating experiment objects, job submission and recall and postprocessing.
There are several additional features, such as measurement of magnetization and error mitigation. Please check them out!

Available Python Version Downloads Available System Available System Available System Available System

Documentation

More infomation can be found in the documentation of Qurry 🍛.

Installation

By PyPI - Stable Release

  • The package can be found in pip list as qurrium-x.y.z
  • Pip downloads the most stable release, but not necessarily the latest version.
pip install qurrium

By TestPyPI - Nightly Release

  • This package can be found in pip list as qurry-x.y.z.devW
  • This version includes new features and minor bug fixes, but may not be stable.
pip install qiskit tqdm requests
# the installation from testPyPI can' t find these dependencies
pip install -i https://test.pypi.org/simple/ qurry

Maually by Git

Qurry can be installed from source. Since this package relies on Cython and Rust, it requires "C complier" and "Rust complier" which you need to install first.

To install rust, run the following command:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Then install qurry by the following command:

git clone https://github.com/harui2019/qurry-preview.git --recursive
cd qurry
pip install -e .

Test Installation

pytest is used for testing. Simply run the following command after the installation:

pytest

Environment

Qurry currently SUPPORT qiskit 0.46.0+ and qiskit 1.0.0+, other lower versions are no longer available. The package has been tested on the following systems.

  • Ubuntu 18.04+ LTS (All ManyLinux 2014 compatible distro)

    • on x86_64 (recommended)
    • on x86_64 Windows 10/11 WSL2 (recommended)
    • on aarch64
    • We strongly recommend to use Linux based systems because Python multiprocessing may exist issues on Windows and the NVIDIA CUDA acceleration of Qiskit, qiskit-aer-gpu are supported only on Linux.
  • Windows 10/11

    • on x86_64
  • MacOS 11+

    • on aarch64 (Apple Silicon, M1/M2/M3/M4 chips)
    • on x86_64 (Intel chips)
    • The depedent modules are as follows.
  • with required modules:

  • with optional modules:

    • qiskit-aer: The complete simulator package of qiskit
    • qiskit-aer-gpu: The gpu acceleration of qiskit-aer on Linux with Nvidia GPU
      • qiskit-aer-gpu-cu11: A package for CUDA 11
    • qiskit-ibm-runtime: The API to access IBM Quantum Device
    • qiskit-ibm-provider: The API to access IBM Quantum Device, but will be deprecated soon.
    • qiskit-ibmq-provider: The API to access IBM Quantum Device, which has been deprecated.

Measurement -- made randomized measurement easy.

qurrent - The Quantum Renyi Entropy Measurement

The major function of this module is to measure the quantum Renyi entropy to quantify entanglement.

qurrech - The Wave Function Overlap Measurement

This module evaluates the overlap between any two given quantum states.

In each of the modules, two methods are implemented to perform the measurements:

  • Hadamard Test

    • Ref: Entanglement spectroscopy on a quantum computer - Sonika Johri, Damian S. Steiger, and Matthias Troyer, PhysRevB.96.195136
  • Haar Randomized Measure

    • Ref: Statistical correlations between locally randomized measurements: A toolbox for probing entanglement in many-body quantum states - A. Elben, B. Vermersch, C. F. Roos, and P. Zoller, PhysRevA.99.052323

Citation

If you use this tool in your research, please cite the following paper in your publication:

@misc{chang2024probing,
  title         = {Probing entanglement dynamics and topological transitions on noisy intermediate-scale quantum computers},
  author        = {Huai-Chun Chang and Hsiu-Chuan Hsu and Yu-Cheng Lin},
  year          = {2024},
  eprint        = {2406.10159},
  archiveprefix = {arXiv},
  primaryclass  = {quant-ph},
  url           = {https://arxiv.org/abs/2406.10159}
}

Acknowledgments

The authors acknowledge the support from National Chengchi University, NSTC-Quantum Virtual Machine project, National Center for Theoretical Sciences (NCTS). and IBM Quantum Hub at National Taiwan University (NTU).

Special thank to IBM Quantum Hub at NTU for providing the access right of IBM Quantum that allows us to fully test the tool and execute our experiments.

The author @harui2019 is grateful to the NTU hub of NCTS that supported him as a Research Assistiant in the early stage of the development.

National Chengchi University

NSTC

National Center for Theoretical Sciences, Physics Division

IBM Quantum Hub at National Taiwan University


Stay connected. More features coming soon...

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 Distributions

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

qurrium-0.9.4-cp39-abi3-win_arm64.whl (304.5 kB view details)

Uploaded CPython 3.9+Windows ARM64

qurrium-0.9.4-cp39-abi3-win_amd64.whl (734.6 kB view details)

Uploaded CPython 3.9+Windows x86-64

qurrium-0.9.4-cp39-abi3-win32.whl (280.2 kB view details)

Uploaded CPython 3.9+Windows x86

qurrium-0.9.4-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (704.6 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64

qurrium-0.9.4-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (725.7 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ i686

qurrium-0.9.4-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (695.6 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

qurrium-0.9.4-cp39-abi3-macosx_11_0_arm64.whl (645.1 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

qurrium-0.9.4-cp39-abi3-macosx_10_9_x86_64.whl (657.9 kB view details)

Uploaded CPython 3.9+macOS 10.9+ x86-64

qurrium-0.9.4-cp39-abi3-macosx_10_9_universal2.whl (1.0 MB view details)

Uploaded CPython 3.9+macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file qurrium-0.9.4-cp39-abi3-win_arm64.whl.

File metadata

  • Download URL: qurrium-0.9.4-cp39-abi3-win_arm64.whl
  • Upload date:
  • Size: 304.5 kB
  • Tags: CPython 3.9+, Windows ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for qurrium-0.9.4-cp39-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 e68d8bda37d36614c268b1c994dad38040c1f7ee2082fc47094112ba201e2d75
MD5 bc5a6dd417cd903c63bb427ae29e2f8b
BLAKE2b-256 62cfb80b984baccc4b8f410603cf87a4d5c9a8062fceb827220e1e5fdbda1721

See more details on using hashes here.

File details

Details for the file qurrium-0.9.4-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: qurrium-0.9.4-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 734.6 kB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for qurrium-0.9.4-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 05c8dbcd0cbd2f4cf25e4ef8f7f3d061a3e199f7569bece3e55642881e5fd1fa
MD5 42e81ec780e3543c297b21123bda64fc
BLAKE2b-256 dc6983a5e7db791c98708bc45eec4f8c8424495dd2a8c9e25123ba918c7e78f7

See more details on using hashes here.

File details

Details for the file qurrium-0.9.4-cp39-abi3-win32.whl.

File metadata

  • Download URL: qurrium-0.9.4-cp39-abi3-win32.whl
  • Upload date:
  • Size: 280.2 kB
  • Tags: CPython 3.9+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for qurrium-0.9.4-cp39-abi3-win32.whl
Algorithm Hash digest
SHA256 10a56c3a244e11c1f938114d60b1156b133beab81a819a47d2021efb0d75e004
MD5 d8191021e4ae8cca5ca099e75c49be83
BLAKE2b-256 c1e5efea2b03d006a3eb9946a2cbe3f92075f4140b9fd96c44af8bc2b75d6d43

See more details on using hashes here.

File details

Details for the file qurrium-0.9.4-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for qurrium-0.9.4-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 553b1a3459c39c30358dd17d69d12cd5532e0243c0072a19f4cc8293faa036f5
MD5 6c777caaf162618bb25b4dd8c441b55d
BLAKE2b-256 12e69542033ab2b1bc3e7d4f5723b3cf8186c4be795bbda4d5eff1137da07a55

See more details on using hashes here.

File details

Details for the file qurrium-0.9.4-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for qurrium-0.9.4-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 791faf442cee7bd04b10d630e6e37ec270a4b548676f5b89708e43ba172deda4
MD5 484de1c178df5dbe1f2d72831a753478
BLAKE2b-256 2ac76eb68bf54a6efcf9ce06d74e2b69633fb0abc4ae85f7c79215cb06e0359c

See more details on using hashes here.

File details

Details for the file qurrium-0.9.4-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for qurrium-0.9.4-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e6dbf67c1706481ed9c6aad0a0adcad15f53610eeae214e509877a57bf85bab7
MD5 60cbc9aa12ae57bc825703b74a9e0b02
BLAKE2b-256 d4ccf0bf7b168cb43b328ab1a394706485c384424a31eaf383d7bc0cd2ac0a64

See more details on using hashes here.

File details

Details for the file qurrium-0.9.4-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for qurrium-0.9.4-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e6161e1908afed792c66ec9190bc3a99bda75bd4761f8489536043f2306c0699
MD5 65c11a230a4b66fb9c29c696eadc7544
BLAKE2b-256 b5a433feed5c55ffbc81e52c5e15f0895e9ad669cbef1875401d50e6a06e3833

See more details on using hashes here.

File details

Details for the file qurrium-0.9.4-cp39-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for qurrium-0.9.4-cp39-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e10f3b76d3428473f7dc8c34c15b32dfcc5b98132aa840e1ab4873c7c61ce57b
MD5 5dc5b94559b25013b5263e273675e5e6
BLAKE2b-256 e466ecc096a633731ca68f055653312ab8f563222cd16ab719dd281ee704da16

See more details on using hashes here.

Provenance

The following attestation bundles were made for qurrium-0.9.4-cp39-abi3-macosx_10_9_x86_64.whl:

Publisher: wheel-stable.yml on harui2019/qurry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qurrium-0.9.4-cp39-abi3-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for qurrium-0.9.4-cp39-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 7f680d3d7ad9fd25c36cbc8b3727f5d20aeb52eb0697712c368ae43da41a7c1c
MD5 83ac36cf0cd8f35a738eae639f7061ff
BLAKE2b-256 cfbb4642a3c3282ef28d7061185df7ecabae997b82913e2335b2451ecde8f97e

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