purity

purity(rhog)

Calculates the purity of the input state.

Parameters:
  • rhog : ndarray

    Density Matrix of the desired state.

  • val : float

    The calculated purity ranging from 1/(2^numQubits) to 1. A value of one corresponds to a completly pure state. Other Properties entropy;linear_entropy;negativity;concurrence;tangle See Also ------ err_functions;getProperties

Returns:

Contact

In case you have any further questions about the Python code, you should direct them to Scott Turro or Joey Shallat.