Skip to content

Commit

Permalink
another attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderivrii committed Sep 8, 2024
1 parent 004446c commit baf6213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiskit/circuit/library/generalized_gates/permutation.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def __init__(
raise CircuitError(
"Permutation pattern must be some ordering of 0..num_qubits-1 in a list."
)
pattern = np.array(pattern, dtype=int)
pattern = np.array(pattern, dtype=np.int32)

super().__init__(name="permutation", num_qubits=num_qubits, params=[pattern])

Expand Down

0 comments on commit baf6213

Please sign in to comment.