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
When using a parametrized xacc::CompositeInstruction created using the IR, the values for variables that are fed in using the () operator (or by using ->operator()(params)) are not substituted consistently, depending only on the name of the variable. For example, for the following circuit:
Meaning the CompositeInstruction recognizes the variables, but instead keeps the values of the parameters as 0. Instead, if the names of the variables are changed to simply be "alpha" and "beta", resulting in the following circuit:
This is an interesting issue, and definitely one that presents a problem if trying to build up separate vectors of parameters. Any insight would be appreciated.
The text was updated successfully, but these errors were encountered:
When using a parametrized xacc::CompositeInstruction created using the IR, the values for variables that are fed in using the () operator (or by using
->operator()(params)
) are not substituted consistently, depending only on the name of the variable. For example, for the following circuit:When the following code is run:
This is the resultant output:
Meaning the
CompositeInstruction
recognizes the variables, but instead keeps the values of the parameters as 0. Instead, if the names of the variables are changed to simply be "alpha" and "beta", resulting in the following circuit:The above code runs as expected:
This is an interesting issue, and definitely one that presents a problem if trying to build up separate vectors of parameters. Any insight would be appreciated.
The text was updated successfully, but these errors were encountered: