Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Moment.resolve_parameter not resolving all the expressions
Fixes #6778 Fix Moment.resolve_parameters to properly resolve symbolic expressions Changed equality check from '!=' to 'is not' to handle cases where symbolic parameters are equivalent but not identical objects Ensured that the method returns a new object only when a variable is resolved, maintaining efficient behavior. Tested the fix with existing cases for Rx, Ry, and Rz gates to confirm correct behavior when parameters are resolved or remain unchanged.
- Loading branch information