From baf6213147de78aff6ed5b5828026b26f91a8b99 Mon Sep 17 00:00:00 2001 From: AlexanderIvrii Date: Sun, 8 Sep 2024 15:13:56 +0300 Subject: [PATCH] another attempt --- qiskit/circuit/library/generalized_gates/permutation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qiskit/circuit/library/generalized_gates/permutation.py b/qiskit/circuit/library/generalized_gates/permutation.py index 76f4ab7e04f..285590962c8 100644 --- a/qiskit/circuit/library/generalized_gates/permutation.py +++ b/qiskit/circuit/library/generalized_gates/permutation.py @@ -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])