Skip to content

Conversation

@schweitzpgi
Copy link
Collaborator

This PR greatly simplifies the use of cudaq::get_state by limiting its applicability strictly to local simulation execution contexts. Prior attempts were made to make cudaq::get_state generally available regardless of the target execution context. This level of support is being discontinued.

  • Move the qvector ctor overloads to the cudaq::state class. This simplifies qvector by making it only possible to initialize a qvector with a cudaq::state object and dropping all the overloads.
  • Fix tests. Adapt the regression tests.
  • Drop state with non-simulation targets.
  • Add code to distinguish between floats and complex floats and get rid of a bunch of redundant code that wasn't needed. Also, update tests.

Description

github-actions bot pushed a commit that referenced this pull request Nov 18, 2025
@github-actions
Copy link

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

This PR greatly simplifies the use of cudaq::get_state by limiting its
applicability strictly to local simulation execution contexts. Prior
attempts were made to make cudaq::get_state generally available regardless
of the target execution context. This level of support is being discontinued.

- Move the qvector ctor overloads to the cudaq::state class. This
  simplifies qvector by making it only possible to initialize a
  qvector with a cudaq::state object and dropping all the overloads.
- Fix tests.  Adapt the regression tests.
- Drop state with non-simulation targets.
- Add code to distinguish between floats and complex floats and get rid
  of a bunch of redundant code that wasn't needed. Also, update tests.

Signed-off-by: Eric Schweitz <[email protected]>
Signed-off-by: Eric Schweitz <[email protected]>
Signed-off-by: Eric Schweitz <[email protected]>
github-actions bot pushed a commit that referenced this pull request Nov 18, 2025
@github-actions
Copy link

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

github-actions bot pushed a commit that referenced this pull request Nov 18, 2025
@github-actions
Copy link

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

Signed-off-by: Eric Schweitz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants