Skip to main content

Core utilities for the curvature–information invariant Y = sqrt(d_eff-1) * A^2 / I

Project description

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)

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

quantum_unified-0.0.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

quantum_unified-0.0.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

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

Hashes for quantum_unified-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6db60fb6b647789588ba5f8b0cea9fce9ee47b6aa5ce230b8c5a687d7168724e
MD5 5e1bd4f27a5b7bf39cf0cde98c6241e9
BLAKE2b-256 93e19a4bfe54f97326051125567793edececfa983035e002ddb4329108f443aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for quantum_unified-0.0.1.tar.gz:

Publisher: workflow.yml on ANTHONY-OLEVESTER/quantum_unified

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file quantum_unified-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for quantum_unified-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3a028d7fb28688f26f0ed96cd5bdc92ad2a6579ab817e5c9b64a3b620e931804
MD5 575bc8e08f193b41c4d5c2ca83fc20ea
BLAKE2b-256 4fb32dcd2ec1b135c752054d6a2dcebc3d28e88652adcabc573dafce6f644c14

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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