-
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
Showing
4 changed files
with
21 additions
and
5 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
Empty file.
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 |
---|---|---|
@@ -1,8 +1,23 @@ | ||
import pennylane as qml | ||
from pennylane import numpy as np | ||
from quantumsim.variational.vqe import vqe_spin, vqe_fermihubbard, vqe_molecular | ||
|
||
#Test the hamiltonian of the h2 molecule | ||
def test_hamiltonian_molecule(): | ||
#pennylane hamiltonian | ||
elements=["H", "H"] | ||
coord=np.array([0.0, 0.0, 0.0, 0.0, 0.0, 1.0]) | ||
H,q = qml.qchem.molecular_hamiltonian(elements, coord) | ||
|
||
#vqepy class | ||
Hvqe = vqe_molecular(elements, coord, {}) | ||
assert 1==1 | ||
|
||
#Test the hamiltonian of two spins 1/2 | ||
def test_hamiltonian_spin(): | ||
assert 1==1 | ||
|
||
#Test the hamiltonian of three sites | ||
def test_hamiltonian_fh(): | ||
assert 1==1 | ||
|