QiskitSolver.make_rdm12s#

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

Constructs the alpha- and beta-spin 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:

A pair of tuples; the first tuple being the alpha- and beta-spin 1-RDMs; the second tuple being the alpha-alpha-, alpha-beta- and beta-beta-spin 2-RDMs in chemist index ordering.

Return type:

tuple[tuple[np.ndarray, np.ndarray], tuple[np.ndarray, np.ndarray, np.ndarray]]