Skip to content

Commit

Permalink
Update qc_base.from tequila (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
JdelArco98 authored Jun 26, 2024
1 parent 48a0070 commit f5ee364
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/tequila/quantumchemistry/qc_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ def from_tequila(cls, molecule, transformation=None, *args, **kwargs):
h1 = molecule.integral_manager.one_body_integrals
h2 = molecule.integral_manager.two_body_integrals
S = molecule.integral_manager.overlap_integrals
active_orbitals = [o.idx_total for o in molecule.integral_manager.active_orbitals]
if "active_orbitals" not in kwargs:
active_orbitals = [o.idx_total for o in molecule.integral_manager.active_orbitals]
else:
active_orbitals = kwargs["active_orbitals"]
kwargs.pop("active_orbitals")
if transformation is None:
transformation = molecule.transformation
parameters = molecule.parameters
Expand Down

0 comments on commit f5ee364

Please sign in to comment.