Skip to content
Discussion options

You must be logged in to vote

The store_intermediate_results=True is deprecated alias for IntermediateResultSave.ALL. It saves the entire state vector to the GPU at every time step. So that's why the memory growth is like O(n_steps * state_size).

Please use store_intermediate_results=cudaq.IntermediateResultSave.EXPECTATION_VALUE instead as it saves only the expectation values of 2 observables (boson.number(0) and boson.number(L-1)) at each step and not the state. It is like O(n_steps * 2) now.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@chnixi
Comment options

Answer selected by sacpis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants