Skip to content

Commit

Permalink
* Relax numpy requirement
Browse files Browse the repository at this point in the history
* Replace np.complex with complex
  • Loading branch information
mkvanhooft committed Nov 18, 2024
1 parent 3bace13 commit 81e8da3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ include_package_data = True
install_requires =
netsquid-netbuilder >=0.1.0, <0.2.0
click >=8.0, <9.0
numpy >=1.22, <1.23
numpy >=1.22, <2.0
scipy >=1.8, <2
pydantic >=1.8.2, < 3.0
pydynaa >=0.3, <2.0
Expand Down
6 changes: 3 additions & 3 deletions squidasm/sim/network/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
from squidasm.sim.glob import QubitInfo, get_running_backend
from squidasm.sim.network.nv_config import NVConfig, build_nv_qdevice

T_SingleQubitState = Tuple[Tuple[np.complex, np.complex]]
T_SingleQubitState = Tuple[Tuple[complex, complex]]

EprDeliveredEvent: EventType = EventType(
"EPR_DELIVERED",
Expand Down Expand Up @@ -626,11 +626,11 @@ def _delivery_func(model_params: LinearDepolariseModelParameters, **kwargs):
"""
epr_state = np.array(
[[0.5, 0, 0, 0.5], [0, 0, 0, 0], [0, 0, 0, 0], [0.5, 0, 0, 0.5]],
dtype=np.complex,
dtype=complex,
)
maximally_mixed = np.array(
[[0.25, 0, 0, 0], [0, 0.25, 0, 0], [0, 0, 0.25, 0], [0, 0, 0, 0.25]],
dtype=np.complex,
dtype=complex,
)
return (
StateSampler(
Expand Down

0 comments on commit 81e8da3

Please sign in to comment.