| 18 | } |
| 19 | |
| 20 | int main() { |
| 21 | // Get state asynchronously |
| 22 | auto state_future = cudaq::get_state_async(bell_state); |
| 23 | // Do other work while waiting for state computation |
| 24 | // Get and print the state when ready |
| 25 | auto state = state_future.get(); |
| 26 | state.dump(); |
| 27 | return 0; |
| 28 | } |
| 29 | // [End `GetStateAsync`] |
| 30 | /* [Begin `GetStateAsyncOutput`] |
| 31 | (0.707107,0) |
nothing calls this directly
no test coverage detected