English

Computing partial traces and reduced density matrices

Quantum Physics 2016-08-25 v2 Computational Physics

Abstract

Taking partial traces for computing reduced density matrices, or related functions, is a ubiquitous procedure in the quantum mechanics of composite systems. In this article, we present a thorough description of this function and analyze the number of elementary operations (ops) needed, under some possible alternative implementations, to compute it on a classical computer. As we notice, it is worthwhile doing some analytical developments in order to avoid making null multiplications and sums, what can considerably reduce the ops. For instance, for a bipartite system HaHb\mathcal{H}_{a}\otimes\mathcal{H}_{b} with dimensions da=dimHad_{a}=\dim\mathcal{H}_{a} and db=dimHbd_{b}=\dim\mathcal{H}_{b} and for da,db1d_{a},d_{b}\gg1, while a direct use of partial trace definition applied to Hb\mathcal{H}_{b} requires O(da6db6)\mathcal{O}(d_{a}^{6}d_{b}^{6}) ops, its optimized implementation entails O(da2db)\mathcal{O}(d_{a}^{2}d_{b}) ops. In the sequence, we regard the computation of partial traces for general multipartite systems and describe Fortran code provided to implement it numerically. We also consider the calculation of reduced density matrices via Bloch's parametrization with generalized Gell Mann's matrices.

Keywords

Cite

@article{arxiv.1601.07458,
  title  = {Computing partial traces and reduced density matrices},
  author = {Jonas Maziero},
  journal= {arXiv preprint arXiv:1601.07458},
  year   = {2016}
}

Comments

The code can be accessed in https://github.com/jonasmaziero/LibForQ

R2 v1 2026-06-22T12:37:56.419Z