Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
renatomello committed Dec 13, 2023
1 parent fbccf5e commit 42f8eca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/qibo/quantum_info/quantum_network.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""Module defining the QuantumNetwork class and adjacent functions."""

# %%

from functools import reduce
from operator import mul
from typing import List, Optional, Tuple, Union

Check warning on line 7 in src/qibo/quantum_info/quantum_network.py

View check run for this annotation

Codecov / codecov/patch

src/qibo/quantum_info/quantum_network.py#L5-L7

Added lines #L5 - L7 were not covered by tests
Expand Down Expand Up @@ -89,7 +91,7 @@ def _set_tensor_and_parameters(self):
if self.system_output is None:
self.system_output = (False,) if len(self.partition) == 1 else (False, True)

Check warning on line 92 in src/qibo/quantum_info/quantum_network.py

View check run for this annotation

Codecov / codecov/patch

src/qibo/quantum_info/quantum_network.py#L91-L92

Added lines #L91 - L92 were not covered by tests
else:
self.system_output = tuple(system_output)
self.system_output = tuple(self.system_output)

Check warning on line 94 in src/qibo/quantum_info/quantum_network.py

View check run for this annotation

Codecov / codecov/patch

src/qibo/quantum_info/quantum_network.py#L94

Added line #L94 was not covered by tests

@property
def is_pure(self):

Check warning on line 97 in src/qibo/quantum_info/quantum_network.py

View check run for this annotation

Codecov / codecov/patch

src/qibo/quantum_info/quantum_network.py#L96-L97

Added lines #L96 - L97 were not covered by tests
Expand Down

0 comments on commit 42f8eca

Please sign in to comment.