Skip to content

Conversation

@Renaud-K
Copy link
Collaborator

@Renaud-K Renaud-K commented Jan 23, 2026

This is the second step towards removing cudaq::set_target_backend and quantum_platform::setTargetBackend) from the public interfaces. In this step, all usages of quantum_platform::setTargetBackend) are removed from the tests.

Instead of calling

  auto &platform = cudaq::get_platform();
  platform.setTargetBackend(backendString);

the tests now link in backendConfig.cpp and set target through NVQPP_TARGET_BACKEND_CONFIG.

Tests had to be split for each configuration, since the configuration can now only be set at compile time.
Some setups had to be moved from the test into the invoking script because the information is needed before the test enters main.

There are also some clean-ups to use the default cmake settings and variables.

The last step will be to remove the calls from the public interfaces, however this will have some impact on the documentation so it will be a separate PR.

@copy-pr-bot
Copy link

copy-pr-bot bot commented Jan 23, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@Renaud-K
Copy link
Collaborator Author

Renaud-K commented Jan 23, 2026

/ok to test 63e5073

Command Bot: Processing...

@Renaud-K Renaud-K mentioned this pull request Jan 23, 2026
4 tasks
@Renaud-K Renaud-K requested a review from boschmitt January 23, 2026 22:26
@Renaud-K Renaud-K enabled auto-merge (squash) January 24, 2026 00:17
@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 Jan 24, 2026
@Renaud-K
Copy link
Collaborator Author

Renaud-K commented Jan 24, 2026

/ok to test 3e06b53

Command Bot: Processing...

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.

1 participant