Skip to content

Commit

Permalink
rename partition
Browse files Browse the repository at this point in the history
  • Loading branch information
renatomello committed Nov 7, 2024
1 parent 01b7e80 commit acdab7f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/test_quantum_info_entropies.py
Original file line number Diff line number Diff line change
Expand Up @@ -822,14 +822,14 @@ def test_relative_tsallis_entropy(

@pytest.mark.parametrize("check_hermitian", [False, True])
@pytest.mark.parametrize("base", [2, 10, np.e, 5])
@pytest.mark.parametrize("bipartition", [[0], [1]])
def test_entanglement_entropy(backend, bipartition, base, check_hermitian):
@pytest.mark.parametrize("partition", [[0], [1]])
def test_entanglement_entropy(backend, partition, base, check_hermitian):
with pytest.raises(TypeError):
state = np.random.rand(2, 3)
state = backend.cast(state, dtype=state.dtype)
test = entanglement_entropy(
state,
bipartition=bipartition,
partition=partition,
base=base,
check_hermitian=check_hermitian,
backend=backend,
Expand All @@ -839,7 +839,7 @@ def test_entanglement_entropy(backend, bipartition, base, check_hermitian):
state = backend.cast(state, dtype=state.dtype)
test = entanglement_entropy(
state,
bipartition=bipartition,
partition=partition,
base=0,
check_hermitian=check_hermitian,
backend=backend,
Expand All @@ -849,7 +849,7 @@ def test_entanglement_entropy(backend, bipartition, base, check_hermitian):
state = random_unitary(4, backend=backend)
test = entanglement_entropy(
state,
bipartition=bipartition,
partition=partition,
base=base,
check_hermitian=True,
backend=backend,
Expand All @@ -861,7 +861,7 @@ def test_entanglement_entropy(backend, bipartition, base, check_hermitian):

entang_entrop = entanglement_entropy(
state,
bipartition=bipartition,
partition=partition,
base=base,
check_hermitian=check_hermitian,
backend=backend,
Expand All @@ -885,7 +885,7 @@ def test_entanglement_entropy(backend, bipartition, base, check_hermitian):

entang_entrop = entanglement_entropy(
state,
bipartition=bipartition,
partition=partition,
base=base,
check_hermitian=check_hermitian,
backend=backend,
Expand Down

0 comments on commit acdab7f

Please sign in to comment.