Skip to content

Commit

Permalink
Remove skipslow.
Browse files Browse the repository at this point in the history
  • Loading branch information
fdmalone committed Jun 14, 2024
1 parent 5cf8f29 commit 7c82c04
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 23 deletions.
9 changes: 0 additions & 9 deletions recirq/qcqmc/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,3 @@ def fixture_8_qubit_ham_and_trial_wf(
)

return fixture_8_qubit_ham, trial_wf


def pytest_addoption(parser):
parser.addoption("--skipslow", action="store_true", help="skips slow tests")


def pytest_runtest_setup(item):
if "slow" in item.keywords and item.config.getvalue("skipslow"):
pytest.skip("skipped because of --skipslow option")
22 changes: 8 additions & 14 deletions recirq/qcqmc/trial_wf_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,14 @@
from fqe.hamiltonians.restricted_hamiltonian import RestrictedHamiltonian

from recirq.qcqmc.hamiltonian import HamiltonianData
from recirq.qcqmc.trial_wf import (
_get_ansatz_qubit_wf,
_get_bitstrings_a_b,
_get_pp_plus_gate_generators,
build_pp_plus_trial_wavefunction,
evaluate_gradient_and_cost_function,
FermionicMode,
get_evolved_wf,
get_two_body_params_from_qchem_amplitudes,
LayerSpec,
PerfectPairingPlusTrialWavefunctionParams,
)
from recirq.qcqmc.trial_wf import (FermionicMode, LayerSpec,
PerfectPairingPlusTrialWavefunctionParams,
_get_ansatz_qubit_wf, _get_bitstrings_a_b,
_get_pp_plus_gate_generators,
build_pp_plus_trial_wavefunction,
evaluate_gradient_and_cost_function,
get_evolved_wf,
get_two_body_params_from_qchem_amplitudes)


def test_fermionic_mode():
Expand Down Expand Up @@ -110,7 +106,6 @@ def test_qchem_pp_eight_qubit_wavefunctions_consistent(
np.testing.assert_equal(two_body_params.shape, (2,))


@pytest.mark.slow()
def test_pp_plus_wf_energy_sloppy_1(fixture_8_qubit_ham: HamiltonianData):
params = PerfectPairingPlusTrialWavefunctionParams(
"pp_plus_test",
Expand All @@ -133,7 +128,6 @@ def test_pp_plus_wf_energy_sloppy_1(fixture_8_qubit_ham: HamiltonianData):
# TODO: Speed up this test and add a similar one with non-trivial heuristic layers.


@pytest.mark.slow()
def test_diamond_pp_wf_energy(fixture_12_qubit_ham: HamiltonianData):
params = PerfectPairingPlusTrialWavefunctionParams(
name="diamind_pp_test_wf_1",
Expand Down

0 comments on commit 7c82c04

Please sign in to comment.