Density(list(state, prob), ...) is the density operator of
sympy.physics.quantum.density: doit() expands it into outer
products, represent() gives its matrix, and Tr() traces it.
Density() and entropy() are shared with sympy.stats (see Density()
and entropy()); they act as here when the arguments are
list(state, probability) pairs, a quantum density operator or a matrix.
entropy() is then the von Neumann entropy. fidelity() is the fidelity
of two density operators or matrices.