Skip to content

Prevent automatic simplification of qiskit symbolic expressions. #16092

@BryceFuller

Description

@BryceFuller

What should we add?

Following a discussion with @doichanj, there is a need for qiskit's symbolic engine to expose an option which prevents the automatic simpliciation of parameter expressions.

For example, there may be situations where A and 1/2*(A+A) lead to different algorithmic outcomes, and it would be preferable if both of these could be expressed using qiskit's symbolic engine.

Sympy addresses this by exposing a flag evaluate=False which can be passed into functions such as Add, Mul, etc. Simplification can then be manually performed later by invoking .simplify() or applying a particular simplification pass.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions