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

Pennylane functionality with arbitrary operators #5456

Open
joeybarreto opened this issue Apr 2, 2024 · 1 comment
Open

Pennylane functionality with arbitrary operators #5456

joeybarreto opened this issue Apr 2, 2024 · 1 comment
Labels
enhancement ✨ New feature or request

Comments

@joeybarreto
Copy link

joeybarreto commented Apr 2, 2024

Feature details

In the context of VQE, I am wondering whether in Pennylane it is a hard requirement that all unitaries must be defined over qubits, or if it's possible to optimize a cost function <U* H U> where the dimensions of U and H aren't necessarily a power of 2. Basically, I don't want to define an underlying circuit - is this a no-go? Or is it possible that the cost can still be numerically optimized by using/hacking Pennylane methods as-is?

Implementation

I don't need a proper implementation per-se, just some way of calling (potentially) internal functions to extract the necessary functionality.

How important would you say this feature is?

1: Not important. Would be nice to have.

Additional information

No response

@joeybarreto joeybarreto added the enhancement ✨ New feature or request label Apr 2, 2024
@trbromley
Copy link
Contributor

Hi @joeybarreto, this is a good question. Right now, PennyLane is quite dimension-dependent - we have support for both qubits and qutrits, but it would be great to generalize to arbitrary $d$.

Though we're always up for prioritizing features if they are of use to users. It would be great to get a few more details on what you're trying to do, perhaps we could have a brief call to get on the same page?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants