Skip to main content

quantum-unified

PyPI License

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)

Metadata

Release files for quantum-unified 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quantum-unified 0.0.1
File Size Uploaded Provenance Actions
quantum_unified-0.0.1.tar.gz 4.8 kB With provenance Details for quantum_unified-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for quantum-unified 0.0.1
File Interpreter ABI Platform Actions
quantum_unified-0.0.1-py3-none-any.whl Python 3 none any Details for quantum_unified-0.0.1-py3-none-any.whl

Total release size: 11.1 kB

Release files / quantum_unified-0.0.1.tar.gz

Download URL quantum_unified-0.0.1.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6db60fb6b647789588ba5f8b0cea9fce9ee47b6aa5ce230b8c5a687d7168724e
BLAKE2b-256 checksum
How to use checksums
93e19a4bfe54f97326051125567793edececfa983035e002ddb4329108f443aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2025.

Transparency log

Release files / quantum_unified-0.0.1-py3-none-any.whl

Download URL quantum_unified-0.0.1-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a028d7fb28688f26f0ed96cd5bdc92ad2a6579ab817e5c9b64a3b620e931804
BLAKE2b-256 checksum
How to use checksums
4fb32dcd2ec1b135c752054d6a2dcebc3d28e88652adcabc573dafce6f644c14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2025.

Transparency log

Security for quantum-unified 0.0.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for quantum_unified-0.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2025.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page