Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DRAFT] Initial VQE for NVQC for C++ (CI testing only) #1769

Closed
wants to merge 61 commits into from

Conversation

bmhowe23
Copy link
Collaborator

@bmhowe23 bmhowe23 commented Jun 6, 2024

This draft PR will likely be deleted; it is only being posted for a few quick tests right now.

It is incomplete.

Copy link

github-actions bot commented Jun 6, 2024

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

github-actions bot pushed a commit that referenced this pull request Jun 6, 2024
Copy link

github-actions bot commented Jun 6, 2024

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

github-actions bot pushed a commit that referenced this pull request Jun 6, 2024
@bmhowe23 bmhowe23 closed this Jun 7, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jun 7, 2024
@bmhowe23 bmhowe23 reopened this Jun 7, 2024
@bmhowe23 bmhowe23 closed this Jun 8, 2024
bmhowe23 added 4 commits June 8, 2024 14:05
The new way allows for something like this:

  cudaq::gradients::central_difference gradient(ansatz, n_qubits, n_layers);

Instead of something like this:

  auto argMapper = [&](std::vector<double> x) {
    return std::make_tuple(x, n_qubits, n_layers);
  };
  cudaq::gradients::central_difference gradient(ansatz, argMapper);
@bmhowe23
Copy link
Collaborator Author

bmhowe23 commented Jul 5, 2024

/ok to test

bmhowe23 added 9 commits July 5, 2024 17:37
To fix this error:
/../lib/gcc/x86_64-redhat-linux/8/../../../../include/c++/8/bits/unique_ptr.h:383:2: error: call to 'swap' is ambiguous

/../lib/gcc/x86_64-redhat-linux/8/../../../../include/c++/8/bits/move.h:182:5: note: candidate function [with _Tp = cudaq::gradient *]
    swap(_Tp& __a, _Tp& __b)

/cuda-quantum/runtime/cudaq/qis/qubit_qis.h:614:6: note: candidate function [with Qubit = cudaq::gradient *]
    void swap(Qubit &src, Qubit &target) {
@bmhowe23 bmhowe23 closed this Jul 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant