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

Localise and decrease openfermion-dependency in qchem tests #2593

Merged
merged 11 commits into from
May 26, 2022
5 changes: 5 additions & 0 deletions doc/releases/changelog-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@

<h3>Improvements</h3>

* The qchem openfermion-dependent tests are localized and collected in `tests.qchem.of_tests`. The
new module `test_structure` is created to collect the tests of the `qchem.structure` module in
one place and remove their dependency to openfermion.
[(#2593)](https://github.com/PennyLaneAI/pennylane/pull/2593)

* The developer-facing `pow` method has been added to `Operator` with concrete implementations
for many classes.
[(#2225)](https://github.com/PennyLaneAI/pennylane/pull/2225)
Expand Down
24 changes: 0 additions & 24 deletions tests/qchem/hf_tests/conftest.py

This file was deleted.

71 changes: 0 additions & 71 deletions tests/qchem/of_tests/test_active_space.py

This file was deleted.

65 changes: 0 additions & 65 deletions tests/qchem/of_tests/test_excitations.py

This file was deleted.

94 changes: 0 additions & 94 deletions tests/qchem/of_tests/test_excitations_to_wires.py

This file was deleted.

36 changes: 0 additions & 36 deletions tests/qchem/of_tests/test_hf_state.py

This file was deleted.

2 changes: 1 addition & 1 deletion tests/qchem/of_tests/test_molecular_hamiltonian.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def test_mol_hamiltonian_with_read_structure(tmpdir):
with open(filename, "w") as f:
f.write(file_content)

symbols, coordinates = qchem.read_structure(str(filename))
symbols, coordinates = qchem.read_structure(str(filename), outpath=tmpdir)
H, num_qubits = qchem.molecular_hamiltonian(symbols, coordinates)
assert len(H.terms()) == 2
assert num_qubits == 4
46 changes: 0 additions & 46 deletions tests/qchem/of_tests/test_read_structure.py

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading