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])