Describe the bug
Creating a PauliSum preserves the sign in the coefficient as well as in the PauliString. For conversion to a list format, we should remove the sign, as the CircuitBinding list format expects a simple string, i.e. "X", not "+X". Maybe add a flag?
To reproduce
test= PauliSum([(0.5, "XX"), (0.3, "YY")])
test.to_list()
# returns
# [(0.5, "+XX"), (0.3, "+YY")]
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots or logs
If applicable, add screenshots or logs to help explain your problem.
System information
A description of your system. Please provide:
- Amazon Braket Python SDK version:
- Amazon Braket Python Schemas version:
- Amazon Braket Python Default Simulator version:
- Python version:
Additional context
Add any other context about the problem here.
Describe the bug
Creating a PauliSum preserves the sign in the coefficient as well as in the PauliString. For conversion to a list format, we should remove the sign, as the CircuitBinding list format expects a simple string, i.e. "X", not "+X". Maybe add a flag?
To reproduce
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots or logs
If applicable, add screenshots or logs to help explain your problem.
System information
A description of your system. Please provide:
Additional context
Add any other context about the problem here.