You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~/mambaforge/envs/qiskit/lib/python3.8/site-packages/qiskit/circuit/quantumcircuit.py in _bit_argument_conversion(bit_representation, in_array)
1106 raise CircuitError("Index out of range.") from ex
1107 except TypeError as ex:
-> 1108 raise CircuitError(
1109 f"Type error handling {bit_representation} ({type(bit_representation)})"
1110 ) from ex
CircuitError: "Type error handling [0] (<class 'numpy.ndarray'>)"
For length 2 or higher it works. Also works if cast to list.
How can we reproduce the issue?
See above
What should happen?
It should work for any length array
Any suggestions?
No response
The text was updated successfully, but these errors were encountered:
Environment
What is happening?
This fails for len=1 arrays:
For length 2 or higher it works. Also works if cast to list.
How can we reproduce the issue?
See above
What should happen?
It should work for any length array
Any suggestions?
No response
The text was updated successfully, but these errors were encountered: