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

Add more state preparation kernels #12

Open
amccaskey opened this issue Nov 25, 2024 · 0 comments
Open

Add more state preparation kernels #12

amccaskey opened this issue Nov 25, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@amccaskey
Copy link
Collaborator

We need to start adding more kernels to the stateprep module in Solvers. A good first one is the hardware efficient ansatz.

These should be implemented in C++ and bound to Python. See the UCCSD implementation as a reference.

For HWE, here is the signatures we want

__qpu__ void hwe(cudaq::qview<> qubits, std::size_t numLayers, const std::vector<double>& parameters); 

// cnotCoupling is a 1D array where CNOTs are applied on qubits i and i+1. 
__qpu__ void hwe(cudaq::qview<> qubits, std::size_t numLayers, const std::vector<double>& parameters, const std::vector<std::size_t>& cnotCoupling); 
@amccaskey amccaskey added enhancement New feature or request good first issue Good for newcomers labels Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants