QiskitSolver.make_rdm12#

QiskitSolver.make_rdm12(fake_ci_vec, norb, nelec)[source]#

Constructs the spin-traced 1- and 2-RDMs.

Parameters:
  • fake_ci_vec (QiskitSolver) – the reference to the QiskitSolver.

  • norb (int) – the number of (active) orbitals. (currently ignored!)

  • nelec (int | tuple[int, int]) – the number of (active) electrons. (currently ignored!)

Returns:

The spin-traced 1- and 2-RDMs. The 2-RDM is returned in chemist index ordering.

Return type:

tuple[np.ndarray, np.ndarray]