|View source on GitHub|
Module to remove two qubits from the problem space using conservation of electron number and conservation of electron spin.
As described in arXiv:1701.08213 and Phys. Rev. X 6, 031007.
edit_hamiltonian_for_spin(...): Removes the Z terms acting on the orbital from the Hamiltonian.
remove_indices(...): Returns the symbolic operator from which the operator with the specified index was removed.
symmetry_conserving_bravyi_kitaev(...): Returns the qubit Hamiltonian for the fermionic Hamiltonian supplied, with two qubits removed using conservation of electron spin and number, as described in arXiv:1701.08213.