It seems that "assign_parameters" method introduces the values of the parameters in alphabetical order of different "ParameterVector"s' names. Here is a simple example:
import qiskit
from qiskit import QuantumCircuit
qc = QuantumCircuit(2)
b = qiskit.circuit.ParameterVector('beta', 2)
a = qiskit.circuit.ParameterVector('alfa', 2)
d = qiskit.circuit.ParameterVector('delta', 1)
qc.rx(b[0],0)
qc.rx(b[1],1)
qc.ry(a[0],0)
qc.ry(a[1],1)
qc.rz(d[0],0)
values= [1,2,3,4,5]
print(qc.parameters)
qc.assign_parameters(values, inplace=True)
qc.draw("mpl")
Is there a way to introduce them in the temporal order of the circuit diagram? Is the same order applied when introducing parameters as an argument in Estimator().run(circuit, observable, parameters)
?
Thank you in advance!