-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes for NoiseModel
when using with fp32
targets
#2672
Conversation
Signed-off-by: Thien Nguyen <[email protected]>
f9f6d57
to
6f41b89
Compare
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, although I'm a bit curious why the cusvsim fp32 target that I used for testing didn't show any problems in the local testing I did. If there is a set of tests I missed, please let me know for next time. Thanks!
Actually, it was the 'enhanced' In the latest |
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
Description
parameters
was defined as avector<double>
; hence we need to cast ifcudaq::real
isfloat
.get_channel
usingparams
type to deduct the variant type is not reliable; could lead to bad variant access. Hence, perform aholds_alternative
check before callingstd::get
. If needed, perform a type casting to retrieve the correct variant type.