generated from mickahell/qiskit-ecosystem_template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Joel Bierman
committed
Dec 5, 2023
1 parent
66fb0d2
commit 4a87f7c
Showing
36 changed files
with
6,221 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
3 changes: 3 additions & 0 deletions
3
electronic_structure_algorithms/excited_states_eigensolvers/__init__.py
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,3 @@ | ||
from .ssvqe import SSVQE, SSVQEResult | ||
from .vqd import VQD, VQDResult | ||
from .mcvqe import MCVQE, MCVQEResult |
524 changes: 524 additions & 0 deletions
524
electronic_structure_algorithms/excited_states_eigensolvers/mcvqe.py
Large diffs are not rendered by default.
Oops, something went wrong.
627 changes: 627 additions & 0 deletions
627
electronic_structure_algorithms/excited_states_eigensolvers/ssvqe.py
Large diffs are not rendered by default.
Oops, something went wrong.
537 changes: 537 additions & 0 deletions
537
electronic_structure_algorithms/excited_states_eigensolvers/vqd.py
Large diffs are not rendered by default.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
electronic_structure_algorithms/initializations/HF_permutation_matrix.py
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,14 @@ | ||
import torch | ||
|
||
def get_HF_permutation_matrix(num_original_spin_orbitals: int, | ||
num_spin_orbitals: int): | ||
|
||
num_original_molecular_orbitals = int(num_original_spin_orbitals/2) | ||
num_molecular_orbitals = int(num_spin_orbitals/2) | ||
|
||
initial_partial_unitary_guess = torch.zeros(size=(num_original_molecular_orbitals, num_molecular_orbitals), dtype=torch.float64) | ||
for n in range(int(num_molecular_orbitals)): | ||
initial_partial_unitary_guess[n,n] = 1.0 | ||
|
||
return initial_partial_unitary_guess | ||
|
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,2 @@ | ||
from .configuration_interaction_states import get_CIS_states, get_CISD_states | ||
from .HF_permutation_matrix import get_HF_permutation_matrix |
Oops, something went wrong.