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

[Fix] Add the omega term to Rydberg Feature Map Hamiltonian #15

Open
smitchaudhary opened this issue Mar 26, 2024 · 3 comments
Open

[Fix] Add the omega term to Rydberg Feature Map Hamiltonian #15

smitchaudhary opened this issue Mar 26, 2024 · 3 comments
Assignees

Comments

@smitchaudhary
Copy link
Collaborator

Currently, the rydberg_feature_map here does not pass any value for omega to AnalogRot which then defaults to 0.

Thus, the Hamiltonian for the Feature map turns out to be something like:

H/h = ∑ᵢ( - δnᵢ) + Hᵢₙₜ.

And with the interaction term being an NN term, this means the Hamiltonian has no driving term at all. Which would mean, if the state that this block gets is the zero state, then nothing drives the state to other states, and we would be left in the zero state.

Considering this is the feature map, we are pretty likely to start with zero state. Thus, it would fail to encode the feature at all.

Need to provide an appropriate driving term to the feature map.

@jpmoutinho jpmoutinho self-assigned this Apr 18, 2024
@jpmoutinho
Copy link
Collaborator

Hey @smitchaudhary, thanks, I now properly processed the information here.

Like I mentioned yesterday I do think this rydberg_feature_map and analog rotations need a proper review. But as as quick fix I think it's ok to add the drive term.

Do you have a suggestion on the best way to do it? E.g. I don't know if it should use the same weights values or a separate set, or if it should just replace the usage of the detuning term or use both.

@smitchaudhary
Copy link
Collaborator Author

if it should just replace the usage of the detuning term

@jpmoutinho I think this might be the simplest way to handle this. Can continue to have the different weights for different qubits, just like it currently happens for detuning.

In addition, how do you feel about the function taking the value of the phase as an optional argument? This in the rare case that the state just preceding the feature map becomes an eigenstate of this newly defined Hamiltonian? It can default to 0 as it currently does but maybe user can specify if the need be.

@smitchaudhary
Copy link
Collaborator Author

In addition, how do you feel about the function taking the value of the phase as an optional argument? This in the rare case that the state just preceding the feature map becomes an eigenstate of this newly defined Hamiltonian? It can default to 0 as it currently does but maybe user can specify if the need be.

Actually this might be unnecessary. I forgot about the interaction part of the Hamiltonian. For now, there is no need to bloat this function. When we do a proper redesign of this workflow, we can look into it again.

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

No branches or pull requests

2 participants