Core utilities for the curvature–information invariant Y = sqrt(d_eff-1) * A^2 / I
Project description
quantum-unified
Curvature–Information utilities: compute and analyze the invariant
Y = sqrt(d_eff - 1) * A^2 / I
where
- A is the Bures (Uhlmann) angle between two density matrices,
- I is mutual information in bits from a Stinespring dilation, and
- d_eff = 1 / Tr(rho^2) is the effective dimension.
The package provides stable, dependency‑light helpers for fidelity/angle, effective dimension, entropies in bits, mutual information, and convenience functions to assemble Y from reduced or joint states.
Install
ash pip install quantum-unified
Quick start
`python import numpy as np from quantum_unified import ( bures_angle, effective_dimension, von_neumann_entropy_bits, mutual_information_bits, compute_Y, )
Two qubit states (example)
rho0 = np.array([[1,0],[0,0]], dtype=complex) rho1 = np.array([[0.9, 0.1],[0.1, 0.1]], dtype=complex)
A = bures_angle(rho0, rho1) # Uhlmann/Bures angle (radians) De = effective_dimension(rho1) # 1 / Tr(rho^2) Y = compute_Y(rho0, rho1, Ibits=0.5) # needs mutual information in bits print(A, De, Y) `
API
- ures_angle(rho, sigma) -> float: Bures angle A.
- effective_dimension(rho) -> float: Effective dimension d_eff.
- on_neumann_entropy_bits(rho) -> float: Entropy in bits.
- mutual_information_bits(rhoS, rhoE, rhoSE) -> float: I = S(S)+S(E)-S(SE) in bits.
- compute_Y(rhoS, rhoS_prime, Ibits) -> float: Y from reduced states and Ibits.
- partial_trace_SE(rhoSE, dims, subsystem) / compute_Y_from_SE(...): helpers with joint state.
Background: the curvature–information invariant
Y couples the Bures geometry of quantum states (via the fidelity angle) to informational change (mutual information). In isotropic/2‑design regimes, Y concentrates with mean Y0 + O(D^{-1}) and variance Θ(D^{-1}). This package exposes the building blocks to evaluate Y in your own models and data.
License
BSD 3‑Clause. See LICENSE.
Author
Anthony Olevester (olevester.joram123@gmail.com)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quantum_unified-0.0.1.tar.gz.
File metadata
- Download URL: quantum_unified-0.0.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6db60fb6b647789588ba5f8b0cea9fce9ee47b6aa5ce230b8c5a687d7168724e
|
|
| MD5 |
5e1bd4f27a5b7bf39cf0cde98c6241e9
|
|
| BLAKE2b-256 |
93e19a4bfe54f97326051125567793edececfa983035e002ddb4329108f443aa
|
Provenance
The following attestation bundles were made for quantum_unified-0.0.1.tar.gz:
Publisher:
workflow.yml on ANTHONY-OLEVESTER/quantum_unified
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
quantum_unified-0.0.1.tar.gz -
Subject digest:
6db60fb6b647789588ba5f8b0cea9fce9ee47b6aa5ce230b8c5a687d7168724e - Sigstore transparency entry: 659267278
- Sigstore integration time:
-
Permalink:
ANTHONY-OLEVESTER/quantum_unified@0b2c8083a1479afa47bd6e30d7b179bdd506105a -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/ANTHONY-OLEVESTER
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@0b2c8083a1479afa47bd6e30d7b179bdd506105a -
Trigger Event:
push
-
Statement type:
File details
Details for the file quantum_unified-0.0.1-py3-none-any.whl.
File metadata
- Download URL: quantum_unified-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a028d7fb28688f26f0ed96cd5bdc92ad2a6579ab817e5c9b64a3b620e931804
|
|
| MD5 |
575bc8e08f193b41c4d5c2ca83fc20ea
|
|
| BLAKE2b-256 |
4fb32dcd2ec1b135c752054d6a2dcebc3d28e88652adcabc573dafce6f644c14
|
Provenance
The following attestation bundles were made for quantum_unified-0.0.1-py3-none-any.whl:
Publisher:
workflow.yml on ANTHONY-OLEVESTER/quantum_unified
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
quantum_unified-0.0.1-py3-none-any.whl -
Subject digest:
3a028d7fb28688f26f0ed96cd5bdc92ad2a6579ab817e5c9b64a3b620e931804 - Sigstore transparency entry: 659267289
- Sigstore integration time:
-
Permalink:
ANTHONY-OLEVESTER/quantum_unified@0b2c8083a1479afa47bd6e30d7b179bdd506105a -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/ANTHONY-OLEVESTER
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@0b2c8083a1479afa47bd6e30d7b179bdd506105a -
Trigger Event:
push
-
Statement type: