Initialize
with an integer parameter is not compatible with AerSimulator
#1821
Labels
bug
Something isn't working
Milestone
Environment
What is happening?
As reported in https://quantumcomputing.stackexchange.com/questions/32681/nonsensical-projection-of-initialized-qubits-in-qiskit, using the
AerSimulator
to run a circuit containing anInitialize
instruction with an integer as parameter breaks, due toHow can we reproduce the issue?
What should happen?
The
Initialize
instruction should be supported by Aer.Any suggestions?
Not sure if this is something we should fix on the Terra side, as indeed the
.params
attribute it a list of length 1, which might be a bit confusing, or if this should be handled in Aer. The cleanest solution might be to convert the integer to a label in Terra's class, as that's already happening under the hood (and that's handled correctly by Aer).The text was updated successfully, but these errors were encountered: