Reasonable parameters for SecondQuantizedMolecule()
call
#237
-
Dear Tangelo devs,
Could you recommend a reasonable set of parameters for the If these parameters anyhow affect the size of the resulting qubit Hamiltonian, could you recommend some parameter values that will yield a 40-50 qubit Hamiltonian ? The end goal is to get a 40-50 qubit quantum circuit by calling |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @einarG-1qbit, I took a look at your molecule and for this molecule, For the basis, I tried with this code from tangelo import SecondQuantizedMolecule
from tangelo.toolboxes.operators import count_qubits
from tangelo.toolboxes.qubit_mappings.mapping_transform import fermion_to_qubit_mapping
xyz = [
("C", (0.0, 0.430631, 0.000000)),
("C", (-0.704353, -0.686847, 0.0)),
("F", (1.314791, 0.500587, 0.0)),
("F",(-0.554822, 1.630861, 0.0)),
("F", (-0.092517, -1.882156, 0.0)),
("H",(-1.780948, -0.706341, 0.0))
]
mol = SecondQuantizedMolecule(xyz, q=0, spin=0, basis="sto-3g", frozen_orbitals="frozen_core")
print(mol)
qubit_op = fermion_to_qubit_mapping(
mol.fermionic_hamiltonian,
mapping="JKMN",
n_spinorbitals=mol.n_active_sos,
n_electrons=mol.n_active_electrons,
spin=mol.spin
)
print(count_qubits(qubit_op)) and got a qubit Hamiltonian of 42 qubits (thus as desired). The |
Beta Was this translation helpful? Give feedback.
Hi @einarG-1qbit, I took a look at your molecule and for this molecule,
spin=0
andq=0
should do (it is a stable organic compound, therefore it shouldn't be an ion (where q=/=0) or an open-shell system (where spin=/=0). In the context of quantum simulation, those parameters are important for the initial state: it should have a non-zero overlap with the expected state at the end. If you are targeting electronic excited states, q and spin should change.For the basis,
basis="sto-3g"
should also do for the first steps. In quantum chemistry, it is preferable to have an infinite basis set, but it is not tractable. If you are OK with it, I may suggest the "Choice of the Basis Set" in our qchem_…