quiche.chemistry#
Chemistry#
Quantum chemistry related methods and transformations.
- get_hf_state(num_spin_orbitals, num_electrons)#
Get the occupation basis state for a given number of electrons and spin orbitals.
- Parameters:
- Returns:
The HF state with the lowest
num_electronnumber of orbitals occupied.- Return type:
NDArray[np.int_]
- get_jw_state(occupation)#
Transform an occupation state to qubit basis with the Jordan-Wigner mapping.
- Parameters:
occupation (
NDArray[np.int_]) – Occupation basis state to convert.- Returns:
The qubit basis state resulting from the fermion-to-qubit mapping.
- Return type:
NDArray[np.int_]
- get_parity_state(occupation)#
Transform an occupation state to qubit basis with the Parity mapping.
- Parameters:
occupation (
NDArray[np.int_]) – Occupation basis state to convert.- Returns:
The qubit basis state resulting from the fermion-to-qubit mapping.
- Return type:
NDArray[np.int_]
- get_bk_state(occupation)#
Transform an occupation state to qubit basis with the Bravyi-Kitaev mapping.
- Parameters:
occupation (
NDArray[np.int_]) – Occupation basis state to convert.- Returns:
The qubit basis state resulting from the fermion-to-qubit mapping.
- Return type:
NDArray[np.int_]