Skip to content

toqito 1.3.0

Choose a tag to compare

@vprusso vprusso released this 13 Jul 11:37
3bfdb36

⚠️ Breaking changes (no deprecation shims)

  • New channel_opt package (#1859): the SDP optimization functions moved out of channel_metrics to mirror state_opt. Update imports to from toqito.channel_opt import channel_exclusion, channel_distinguishability, unitary_exclusion.
  • cones dispersed (#1860): its matrix functions moved to their conceptual homes.
    • Entropies → toqito.state_props: ln_quantum_entropy, tsallis_entropy, tsallis_relative_entropy, integral_relative_entropy, relative_entropy_quadrature.
    • Matrix functions → toqito.matrix_props: trace_matrix_log, trace_matrix_power, lieb_ando.
    • geometric_mean → toqito.matrix_ops.
    • toqito.cones now holds only the CVXPY cone-constraint builders (geometric_mean_epi_cone, geometric_mean_hypo_cone, operator_relative_entropy_epi_cone).

✨ New features

  • Tsallis entropy, Tsallis relative entropy, and relative-entropy quadrature (#1711).
  • Free-variable input guards for the cone value functions (#1853).

⚡ Performance

A library-wide efficiency pass, replacing redundant decompositions with cheaper equivalents:

  • Reshape-based fast paths for partial_trace / partial_transpose (#1779).
  • BLAS Kraus contraction in apply_channel (#1772); single-einsum natural_representation (#1774).
  • Hermitian trace-norm / fidelity via eigvalsh/eigh (trace_distance, helstrom_holevo, fidelity, matsumoto_fidelity) (#1775, #1785, #1784).
  • is_positive_semidefinite via eigvalsh (#1770); redundant-decomposition removal in is_unitary/is_absolutely_k_incoherent/majorizes (#1783).
  • cvxpy problem reuse across see-saw steps (#1786); constant kron hoisted out of the symmetric-extension hierarchy loop (#1773).
  • Closed-form purity, hadamard, gen_pauli, cyclic permutation matrix (#1778); Gram-matmul mutual-unbiasedness check (#1776); vectorized abs_ppt_constraints (#1777).

🐛 Fixes

  • completely_bounded_trace_norm: correct value for completely-positive, non-trace-preserving maps (#1830).
  • is_absolutely_k_incoherent: fix false positives for k = n - 1 (#1855).
  • swap: correct subsystem count for the rectangular two-row dim form (#1848).
  • is_mutually_unbiased_basis: validate per-basis orthonormality (#1845).
  • permute_systems: handle (1, D) row vectors with an explicit dim (#1839).
  • quantum_relative_entropy: silence a cosmetic singular-logm warning (#1805).
  • Bures angle fidelity convention (#1732); CB-norm dimension handling via channel_dim (#1716).

📝 Docs, tests, and polish

Extensive documentation (Examples / Returns sections across many functions), clearer validation error messages, and added test coverage. Root CONTRIBUTING.md, issue templates, and repository-layout docs (#1788).

Full Changelog: v1.2.0...v1.3.0