Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classical solver uses mo_coeff from SecondQuantizedMolecule #338

Merged

Conversation

JamesB-1qbit
Copy link
Contributor

@JamesB-1qbit JamesB-1qbit commented Sep 12, 2023

Classical solvers used the molecular coefficients from the initial Hartree-Fock calculation and not the molecular coefficients stored in the SecondQuantizedMolecule object. This fixes it for PySCF and Psi4.

@alexfleury-sb
Copy link
Collaborator

This is a good catch, thanks for fixing it.

@JamesB-1qbit JamesB-1qbit marked this pull request as ready for review September 20, 2023 19:51
Copy link
Collaborator

@ValentinS4t1qbit ValentinS4t1qbit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merci pour le fix,James !

@ValentinS4t1qbit ValentinS4t1qbit merged commit 202517a into sandbox-quantum:develop Sep 21, 2023
ValentinS4t1qbit added a commit that referenced this pull request Oct 18, 2023
* Fixed requirements (#324)
* Remove pre-install reqs (wheel)
* Remove openfermionpyscf as not needed anymore
* Us extra_requires for pyscf optional dependencies.

* Fix combinatorial mapping when spin!=0. (#330)

* QPESolver implementation (#332)

* fix qiskit-aer installation
* Initial QPE framework: vanilla QPE with built-in or user-defined unitary

* Fixes to MIFNOHelper after QEMIST Cloud 0.6.0 release (#331)

* Adding more python versions to tests (#333)

* Bug Fix: n_shots parameter was ignored in get_expectation_value (#337)
* add missed condition in get_expectation_value, added test relying on std_dev

* convert all gate names to upper case and check that it is a string (#340)

* Fixes for new version of qiskit runtime. Tangelo now supports sampler with several circuits (#341)

* Function that returns the qubits used for Truncated Taylor Series (#339)
* added function that returns the qubits used for truncated taylor series

* Support for following VQE minimization in VQESolver (#342)
* HiddenPrints with verbose option. Option to save energies at each opt steps.

* Readme update: more straight to the point. (#343)

* Classical solver uses mo_coeff from SecondQuantizedMolecule (#338)
* small fix for assigning mo_coeff to classical solver
* CCSDSolver and FCISolver use SecondQuantizedMolecule mo_coeff for both psi4 and pyscf
* moved imports to top of file

* Simplify method for circuits (#345)
* convenience functions to merge compatible rotations and umbrella simplify function to combine simplification primitives and run passes on a circuit recursively

* QM/MM support with electrostatic embedding (#336)
* QMMM with psi4 and pyscf
* corner case to handle psi4 v1.6 
* support for rdkit
* improved support for multiple pdb files
* Added MMChargesSolver class, IntegralSolver can be chosen

* Small fixes for ILC (#346)
* added functions that implement exact expansion/ parameters for ILC iteration
* small fixes so that the circuit generated from the ilc eigenvalue problem has the same energy

* QM/MM: charges solvers made consistent with users choices. (#347)
* Removed QubitHamiltonian use in QITESolver.
* Performance upgrade to combinatorial mapping (#348)
* Update to combinatorial, using recursive version instead of initial naive one with qubit operators. Further work has started to improve performance and reduce memory consumption


Co-authored-by: Valentin Senicourt <[email protected]>
Co-authored-by: AlexandreF-1qbit <[email protected]>
Co-authored-by: James Brown <[email protected]>
Co-authored-by: Charles Coulombe <[email protected]>
cburdine pushed a commit to cburdine/Tangelo that referenced this pull request May 31, 2024
* Fixed requirements (sandbox-quantum#324)
* Remove pre-install reqs (wheel)
* Remove openfermionpyscf as not needed anymore
* Us extra_requires for pyscf optional dependencies.

* Fix combinatorial mapping when spin!=0. (sandbox-quantum#330)

* QPESolver implementation (sandbox-quantum#332)

* fix qiskit-aer installation
* Initial QPE framework: vanilla QPE with built-in or user-defined unitary

* Fixes to MIFNOHelper after QEMIST Cloud 0.6.0 release (sandbox-quantum#331)

* Adding more python versions to tests (sandbox-quantum#333)

* Bug Fix: n_shots parameter was ignored in get_expectation_value (sandbox-quantum#337)
* add missed condition in get_expectation_value, added test relying on std_dev

* convert all gate names to upper case and check that it is a string (sandbox-quantum#340)

* Fixes for new version of qiskit runtime. Tangelo now supports sampler with several circuits (sandbox-quantum#341)

* Function that returns the qubits used for Truncated Taylor Series (sandbox-quantum#339)
* added function that returns the qubits used for truncated taylor series

* Support for following VQE minimization in VQESolver (sandbox-quantum#342)
* HiddenPrints with verbose option. Option to save energies at each opt steps.

* Readme update: more straight to the point. (sandbox-quantum#343)

* Classical solver uses mo_coeff from SecondQuantizedMolecule (sandbox-quantum#338)
* small fix for assigning mo_coeff to classical solver
* CCSDSolver and FCISolver use SecondQuantizedMolecule mo_coeff for both psi4 and pyscf
* moved imports to top of file

* Simplify method for circuits (sandbox-quantum#345)
* convenience functions to merge compatible rotations and umbrella simplify function to combine simplification primitives and run passes on a circuit recursively

* QM/MM support with electrostatic embedding (sandbox-quantum#336)
* QMMM with psi4 and pyscf
* corner case to handle psi4 v1.6 
* support for rdkit
* improved support for multiple pdb files
* Added MMChargesSolver class, IntegralSolver can be chosen

* Small fixes for ILC (sandbox-quantum#346)
* added functions that implement exact expansion/ parameters for ILC iteration
* small fixes so that the circuit generated from the ilc eigenvalue problem has the same energy

* QM/MM: charges solvers made consistent with users choices. (sandbox-quantum#347)
* Removed QubitHamiltonian use in QITESolver.
* Performance upgrade to combinatorial mapping (sandbox-quantum#348)
* Update to combinatorial, using recursive version instead of initial naive one with qubit operators. Further work has started to improve performance and reduce memory consumption


Co-authored-by: Valentin Senicourt <[email protected]>
Co-authored-by: AlexandreF-1qbit <[email protected]>
Co-authored-by: James Brown <[email protected]>
Co-authored-by: Charles Coulombe <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants