qiskit/tools/qi/qi.py
def random_density_matrix(length, rank=None, method='Hilbert-Schmidt', seed=None):
    """Deprecated in 0.8+
    """
    warnings.warn('The random_density_matrix() function in qiskit.tools.qi has been '
                  'deprecated and will be removed in the future. Instead use '
                  'the function in qiskit.quantum_info.random',
                  DeprecationWarning)
    return random.random_density_matrix(length, rank, method, seed)
def random_density_matrix(length, rank=None, method='Hilbert-Schmidt', seed=None):
    """Deprecated in 0.8+
    """
    warnings.warn('The random_density_matrix() function in qiskit.tools.qi has been '
                  'deprecated and will be removed in the future. Instead use '
                  'the function in qiskit.quantum_info.random',
                  DeprecationWarning)
    return random.random_density_matrix(length, rank, method, seed)
Deprecated in 0.8+