class_docstr: Tests for molecular density matrix
docstr: Test that molecular_density_matrix returns the correct matrix.
docstr_tok: ["Test","that","molecular_density_matrix","returns","the","correct","matrix","."]
code: def test_molecular_density_matrix(self, n_electron, c, p_ref):
      r"""Test that molecular_density_matrix returns the correct matrix."""
      p = qchem.mol_density_matrix(n_electron, c)
      assert np.allclose(p, p_ref)
  
imports: import pytest
  import pennylane
  from pennylane import numpy
  from pennylane import qchem
label_desc: Use image node_id 1 for calling the TestMoldensMat obj's underlying member method code with example usage: obj.test_molecular_density_matrix(n_electron, c, p_ref) without return types