-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hot fix] Move the list of Herminitian operator to the conftest as fi…
…xture (#38) Clean the `test_idempotency_unitary_hermitian_operators`, `test_int_power_unitary_hermitian_operators` and `test_fractional_power_unitary_hermitian_operators` by move the parameter list to the conftest as a fixture.
- Loading branch information
1 parent
23c2ceb
commit 286da76
Showing
2 changed files
with
31 additions
and
24 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 |
---|---|---|
@@ -1,2 +1,19 @@ | ||
# use this file for configuring test fixtures and | ||
# functions common to every test | ||
from __future__ import annotations | ||
|
||
from typing import Callable | ||
import pytest | ||
|
||
from qadence2_expressions import ( | ||
CZ, | ||
H, | ||
NOT, | ||
SWAP, | ||
X, | ||
Y, | ||
Z, | ||
) | ||
|
||
|
||
@pytest.fixture | ||
def unitary_hermitian_operators() -> list[Callable]: | ||
return [CZ, H, X, Y, Z, NOT, SWAP] |
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