Repository navigation
toqito 1.3.0
⚠️ Breaking changes (no deprecation shims)
- New
channel_optpackage (#1859): the SDP optimization functions moved out ofchannel_metricsto mirrorstate_opt. Update imports tofrom toqito.channel_opt import channel_exclusion, channel_distinguishability, unitary_exclusion. conesdispersed (#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.conesnow holds only the CVXPY cone-constraint builders (geometric_mean_epi_cone,geometric_mean_hypo_cone,operator_relative_entropy_epi_cone).
- Entropies →
✨ 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-einsumnatural_representation(#1774). - Hermitian trace-norm / fidelity via
eigvalsh/eigh(trace_distance,helstrom_holevo,fidelity,matsumoto_fidelity) (#1775, #1785, #1784). is_positive_semidefiniteviaeigvalsh(#1770); redundant-decomposition removal inis_unitary/is_absolutely_k_incoherent/majorizes(#1783).- cvxpy problem reuse across see-saw steps (#1786); constant
kronhoisted out of the symmetric-extension hierarchy loop (#1773). - Closed-form
purity,hadamard,gen_pauli, cyclic permutation matrix (#1778); Gram-matmul mutual-unbiasedness check (#1776); vectorizedabs_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 fork = n - 1(#1855).swap: correct subsystem count for the rectangular two-rowdimform (#1848).is_mutually_unbiased_basis: validate per-basis orthonormality (#1845).permute_systems: handle(1, D)row vectors with an explicitdim(#1839).quantum_relative_entropy: silence a cosmetic singular-logmwarning (#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