Skip to content

Commit

Permalink
mypy?
Browse files Browse the repository at this point in the history
  • Loading branch information
S-Linde committed Jan 7, 2025
1 parent 70232ea commit 5666fc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qgym/envs/routing/routing_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def __init__( # pylint: disable=too-many-arguments
"""An array of 2-tuples of integers, where every tuple represents a, not
specified, gate acting on the two qubits labeled by the integers in the tuples.
"""
self.mapping = np.arange(self.n_qubits)
self.mapping = np.arange(self.n_qubits, dtype=np.int_)
"""Array of which each index represents a logical qubit and each value
represents a physical qubit.
"""
Expand Down

0 comments on commit 5666fc7

Please sign in to comment.