Skip to main content

Tensor-network based package for efficient quantum metrology computations.

Project description

TNQMetro

TNQMetro is a numerical package written in Python 3 for calculations of fundamental quantum bounds on measurement precision. Thanks to the usage of the tensor-network formalism it can beat the curse of dimensionality and provides an efficient framework to calculate bounds for finite size system as well as determine the asymptotic scaling of precision in systems where quantum enhancement amounts to a constant factor improvement over the Standard Quantum Limit. It is written in a user-friendly way so that the basic functions do not require any knowledge of tensor networks.

Introduction to the package alongside simple examples can be found in the paper arXiv:2107.07644.
Documentation to the package can be found on the GitHub wiki.
In-depth explanation of the tensor-network based approach to calculations of fundamental quantum bounds on measurement precision can be found in the paper Nature Communications 11, 250 (2020).

Dependencies

TNQMetro requires NumPy and ncon package.

Installation

pip install tnqmetro

Example of usage

Example of optimization of QFI using TNQMetro for N=1000 qubits with OBC and in the asymptotic regime for the problem of phase estimation with uncorrelated dephasing noise.

import numpy as np
import scipy.linalg
import tnqmetro

N = 1000 # number of sites in tensor-network (in this example one site = one qubit)
d = 2 # dimension of local Hilbert space (dimension of physical index)
h = np.arange(d)
h = np.diag(h) # local generator ("Hamiltonian")
c1 = 1. # uncorrelated noise strength parameter
aux = np.kron(h, np.eye(d)) - np.kron(np.eye(d), h)
Y = scipy.linalg.expm(-c1 * aux @ aux / 2) # local superoperator for uncorrelated dephasing noise

F_f, F_m_f, L_MPO_f, psi_MPS_f = tnqmetro.fin(N, [], h, [Y]) # finite appraoch
F_i, F_m_i, L_MPO_i, psi_MPS_i = tnqmetro.inf([], h, [Y]) # infinite appraoch

Project details


Download files

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

Source Distribution

tnqmetro-1.0.1.tar.gz (34.8 kB view details)

Uploaded Source

Built Distribution

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

tnqmetro-1.0.1-py3-none-any.whl (34.5 kB view details)

Uploaded Python 3

File details

Details for the file tnqmetro-1.0.1.tar.gz.

File metadata

  • Download URL: tnqmetro-1.0.1.tar.gz
  • Upload date:
  • Size: 34.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for tnqmetro-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e8eceec7cf4f0ff84669641f69622253397c947c37800625d5658a6bc5e0e6f6
MD5 15df7a2efe07363895cd7bec9b87e455
BLAKE2b-256 cdc0731f88f746c94b05fc3cc08ec529375fd397958918670e989e3af9e7afd3

See more details on using hashes here.

File details

Details for the file tnqmetro-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: tnqmetro-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 34.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for tnqmetro-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8bc4d2ef40d0286fcf4db4021b944a2aca9d6de6d207bb8a73accb4561703539
MD5 6f222e643e00cabfdf1e0e297ecf3f8e
BLAKE2b-256 7e6544192df9a21cafd54463a6aa04114d6b07c290570d7ab80e8913a64327c1

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