Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduction of Property objects (#220)
* [WIP] ElectronicEnergy Property object * Generalize to n-body integrals * Extract fermionic op builder for electronic energy * [WIP] ParticleNumber Property * Fix lint * Add remaining aux_op-based properties * Make tests slow again (as they used to be) * Fix some matrix dimensions We really need to properly handle different bases... * WIP: prepare proper Basis handling * Add simple BasisTransform * Remove register_length from Property base class * Do not use future annotations to support Python 3.6 * Fix lint * Fix _2BodyElectronicIntegrals.to_spin * Fix mypy in CI * Very, VERY (!!!) early PoC vibrational integrals * WIP: some improvements * Add OccupiedModals property * Some cleanup * Fix spell * Fix lint * Allow empty operator initialization * Revert "Allow empty operator initialization" This reverts commit 3692340. * Fix empty op case in VibrationalOp * Simplify some properties * Some naming updates * Fix DipoleMoment * Restructure properties submodule * Fix style * Fix mypy * Fix spell * Prepare property unittests * Prepare properties documentation * Address TODOs in properties.electronic * Fix spell * Address TODOs in properties.vibrational * Add TODOs in structure problem classes * Add unittests for ElectronicIntegrals * Add unittests for HarmonicBasis * Remove unused test directories - electronic bases are merely static files which cannot really be tested - vibrational integrals can basically only be tested as part of the vibrational basis tests * Add HarmonicBasis operator construction tests * Fix lint * Remove unused builder utilities Unfortunately, the UVCC and CHC unittests still rely on one of the removed, private methods. For now, I moved them to the unittest suite but we will properly migrate those tests in the future. * Fix auto-generated docs stubs * Add some TODO marks for the future * Fix spell * De-duplicate code * Use names for special ints/floats * Extract input type validation * Make naming consistent * Remove unused imports * Extract raw testing resources * Fix docstring titles * Fix Property valid type assertion * Add Property base class tests * Add vibrational property tests * Add electronic property tests * Fix linters * Update docstring * Remove interpret method stub from subclasses for now * Make ElectronicBasisTransform variables public * Extract common base class for ElectronicEnergy and DipoleMoment * Replace raw assert statements * Expose ERI_TRUNCATION_LEVEL overwrite option * Fix linters * Fix mypy * Remove unused import * Relocate qiskit_nature.properties to qiskit_nature.properties.second_quantization * Fix mypy in CI * Add missing docs * Extract validation methods * Extract integral threshold * Simplify OccupiedModals Co-authored-by: Dariusz Lasecki <dal@zurich.ibm.com> * Replace bare assert statements Co-authored-by: Dariusz Lasecki <dal@zurich.ibm.com>
- Loading branch information
Showing
95 changed files
with
3,157 additions
and
906 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.. _qiskit_nature-properties: | ||
|
||
.. automodule:: qiskit_nature.properties | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: |
6 changes: 6 additions & 0 deletions
6
docs/apidocs/qiskit_nature.properties.second_quantization.electronic.bases.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.. _qiskit_nature-properties-second_quantization-electronic-bases: | ||
|
||
.. automodule:: qiskit_nature.properties.second_quantization.electronic.bases | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: |
6 changes: 6 additions & 0 deletions
6
docs/apidocs/qiskit_nature.properties.second_quantization.electronic.integrals.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.. _qiskit_nature-properties-second_quantization-electronic-integrals: | ||
|
||
.. automodule:: qiskit_nature.properties.second_quantization.electronic.integrals | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: |
6 changes: 6 additions & 0 deletions
6
docs/apidocs/qiskit_nature.properties.second_quantization.electronic.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.. _qiskit_nature-properties-second_quantization-electronic: | ||
|
||
.. automodule:: qiskit_nature.properties.second_quantization.electronic | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: |
6 changes: 6 additions & 0 deletions
6
docs/apidocs/qiskit_nature.properties.second_quantization.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.. _qiskit_nature-properties-second_quantization: | ||
|
||
.. automodule:: qiskit_nature.properties.second_quantization | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: |
6 changes: 6 additions & 0 deletions
6
docs/apidocs/qiskit_nature.properties.second_quantization.vibrational.bases.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.. _qiskit_nature-properties-second_quantization-vibrational-bases: | ||
|
||
.. automodule:: qiskit_nature.properties.second_quantization.vibrational.bases | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: |
6 changes: 6 additions & 0 deletions
6
.../apidocs/qiskit_nature.properties.second_quantization.vibrational.integrals.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.. _qiskit_nature-properties-second_quantization-vibrational-integrals: | ||
|
||
.. automodule:: qiskit_nature.properties.second_quantization.vibrational.integrals | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: |
6 changes: 6 additions & 0 deletions
6
docs/apidocs/qiskit_nature.properties.second_quantization.vibrational.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.. _qiskit_nature-properties-second_quantization-vibrational: | ||
|
||
.. automodule:: qiskit_nature.properties.second_quantization.vibrational | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,7 @@ | |
mappers | ||
operators | ||
problems | ||
properties | ||
results | ||
runtime | ||
transformers | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 0 additions & 78 deletions
78
qiskit_nature/problems/second_quantization/electronic/builders/aux_fermionic_ops_builder.py
This file was deleted.
Oops, something went wrong.
136 changes: 0 additions & 136 deletions
136
qiskit_nature/problems/second_quantization/electronic/builders/fermionic_op_builder.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.