Open annagrin opened 2 months ago
Update: looks like the code generates unexpected results now, after the PRs above:
{ 00:1000 }
size 1
Expected: 2
@annagrin Is this still an issue or can it be closed?
This looks like it is working correctly to me now. The above example now returns:
{ 11:495 00:505 }
size 2
Any objections to closing this @annagrin?
Required prerequisites
Describe the bug
Running
Running this example on a f32 simulator results in a runtime failure:
nvq++ --enable-mlir -v from_state.cpp -o temp && ./temp
MLIR
cudaq-quake -D CUDAQ_SIMULATION_SCALAR_FP32 from_state.cpp |cudaq-opt
Steps to reproduce the bug
nvq++ --enable-mlir -v from_state.cpp -o temp && ./temp
Expected behavior
Qvector
constructor should copy and cast the initializer data to the data types matching the simulation precision, so the example should complete successfullyIs this a regression? If it is, put the last known working version (or commit) here.
Not a regression
Environment
Suggestions
No response