QuantumFlow Diamond Norm
Gavin E. Crooks (2020)
Calculation of the diamond norm between two completely positive trace-preserving (CPTP) superoperators, using the QuantumFlow package
The calculation uses the simplified semidefinite program of Watrous arXiv:0901.4709 [J. Watrous, Theory of Computing 5, 11, pp. 217-238 (2009)]
Kudos: Based on MatLab code written by Marcus P. da Silva
Installation
Note: Diamond norm requires that the "cvxpy" package (and dependencies) be fully installed. Installing cvxpy via pip does not correctly install all the necessary packages.
$ conda install -c conda-forge cvxpy
$ git clone https://github.com/gecrooks/qf_diamond_norm.git
$ cd qf_diamond_norm
$ pip install -e .
Example
> import quantumflow as qf
> from qf_diamond_norm import diamond_norm
> chan0 = qf.random_channel([0, 1, 2]) # 3-qubit channel
> chan1 = qf.random_channel([0, 1, 2])
> dn = diamond_norm(chan0, chan1)
> print(dn)
Metadata
Release files for qf-diamond-norm 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| qf_diamond_norm-1.1.1.tar.gz | 14.7 kB | Without provenance | Details for qf_diamond_norm-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qf_diamond_norm-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for qf_diamond_norm-1.1.1-py3-none-any.whl |
Total release size: 21.2 kB
Release files / qf_diamond_norm-1.1.1.tar.gz
| Download URL | qf_diamond_norm-1.1.1.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
367a023513d8aaf8a1fd61225d9420c6ba95fc75e6372140e0b75a5dd2b3092b
|
|
BLAKE2b-256 checksum How to use checksums |
6345aa7c844a3d8cc755a0dd819b377460c2429adf941cd101abe74384997898
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Release files / qf_diamond_norm-1.1.1-py3-none-any.whl
| Download URL | qf_diamond_norm-1.1.1-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
026387ccb407d9b36ae52c4261349095a2a7795c68d3d04391b5a4c26952a463
|
|
BLAKE2b-256 checksum How to use checksums |
e2a34a00f308991d04812f16c9b4d280626bbea2031d4d283717bacfd83998c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Security for qf-diamond-norm 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.