Skip to main content

Transformations between quantum weight enumerators

Project description

qsalto logo

transform your quantum weight enumerators

PyPI Package MIT License Tests

qsalto provides transformations between several quantum weight enumerators, including

  • Shor-Laflamme enumerators $a$, $b$,
  • Rains unitary enumerators $a'$,
  • and Rains shadow enumerators $a''$.

We provide both

Python package

The python package qsalto can be installed via pip install qsalto and features functions to generate nine classes of transformation matrices.

Matrix Function Transforms from ... ... to is self-inverse
$M$ M(n) $\mathbf{a}$ $\mathbf{b}$
$M'$ M1(n) $\mathbf{a'}$ $\mathbf{b'}$
$M''$ M2(n) $\mathbf{a''}$ $\mathbf{b''}$
$T'$ T1(n) $\mathbf{a}$, $\mathbf{b}$ $\mathbf{a'}$, $\mathbf{b'}$
$T'^{-1}$ iT1(n) $\mathbf{a'}$, $\mathbf{b'}$ $\mathbf{a}$, $\mathbf{b}$
$T''$ T2(n) $\mathbf{a}$, $\mathbf{b}$ $\mathbf{a''}$, $\mathbf{b''}$
$T''^{-1}$ iT2(n) $\mathbf{a''}$, $\mathbf{b''}$ $\mathbf{a}$, $\mathbf{b}$
$T'''$ T3(n) $\mathbf{a'}$, $\mathbf{b'}$ $\mathbf{a''}$, $\mathbf{b''}$
$T'''^{-1}$ iT3(n) $\mathbf{a''}$, $\mathbf{b''}$ $\mathbf{a'}$, $\mathbf{b'}$

To compute the full matrices, a special algorithm making use of recursive patterns is employed. Each matrix generator also features the computation of single elements through, e.g., M(100, entry=[3,4]) where entry specifies the row and column of the entry (in that order). This is only faster than computing the entire matrix when merely very few entries are computed.

Single-shot estimators

Furthermore, the function single_shot_estimators(n) generates single-shot estimators for $a$, $b$, $a'$, $b'$, $a''$, and $b''$ for all possible numbers $m=0,...,n$ of singlets as an outcome of a two-copy bell measurement. This function returns six 2D-arrays (one for each quantum weight enumerator in the order as given above) with the estimator for $m$ singlets in the $m$-th column.

License

This library is distributed under the MIT License.

If you want to support work like this, please cite our paper: tba

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

qsalto-0.1.1.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

qsalto-0.1.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file qsalto-0.1.1.tar.gz.

File metadata

  • Download URL: qsalto-0.1.1.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for qsalto-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4a84b9ccc8bb0988a5ce51d18dfa912bfa85dac21de97d47b006828089c9b67f
MD5 480a3c6e12c046cc0324d1104fae207e
BLAKE2b-256 a2899a852d716ca03607f0565a61db24ea9d63c6d97117fd90dfc90dc383ad7a

See more details on using hashes here.

File details

Details for the file qsalto-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: qsalto-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for qsalto-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7d8fd2955547165fd7fc8918726be9acf8815495803702e7d7487d24cec54291
MD5 d8c37fbb40bf987f00063f6d3bc3a05a
BLAKE2b-256 94c36ebe1d9fc9bb44b2bc9e5276ad005e6be9c42155e9fb5328e7406517ca80

See more details on using hashes here.

Supported by

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