cuda-quantum
cuda-quantum copied to clipboard
formatting issue with in an error message
Required prerequisites
- [X] Consult the security policy. If reporting a security vulnerability, do not report the bug using this form. Use the process described in the policy to report the issue.
- [X] Make sure you've read the documentation. Your issue may be addressed there.
- [X] Search the issue tracker to verify that this hasn't already been reported. +1 or comment there if it has.
- [ ] If possible, make a PR with a failing test to give us a starting point to work on!
Describe the bug
There seems to be a typo somewhere in the code that generates the error message below because all the formatting commands are displayed instead of executed.
Steps to reproduce the bug
def error_message():
qubits =qvector(2)
ctrl.x(qubits[0], qubits[1])
results = cudaq.sample(error_message)
### Expected behavior
shouldn't see the `+ Color.RED` text
### Is this a regression? If it is, put the last known working version (or commit) here.
Not a regression
### Environment
- **CUDA Quantum version**: 0.8.0
- **Python version**:
- **C++ compiler**:
- **Operating system**:
### Suggestions
_No response_