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

Simultaneous sampling of disjoint observables #2534

Open
1 task done
Sola85 opened this issue Jan 24, 2025 · 0 comments
Open
1 task done

Simultaneous sampling of disjoint observables #2534

Sola85 opened this issue Jan 24, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@Sola85
Copy link

Sola85 commented Jan 24, 2025

Required prerequisites

  • Search the issue tracker to check if your feature has already been mentioned or rejected in other issues.

Describe the feature

cudaq.observe seems to generate more kernels/programs than necessary. E.g. one of the internal test cases

hamiltonian = (5.907 - 2.1433 * spin.x(0) * spin.x(1) -
                   2.1433 * spin.y(0) * spin.y(1) + 0.21829 * spin.z(0) -
                   6.125 * spin.z(1))

generates 4 kernels that are executed separatly, but 3 should be sufficient, since z(0) and z(1) can be sampled in the same shot.
Is this a feature that I simply have to enable, or is this just not implemented yet?

@Sola85 Sola85 added the enhancement New feature or request label Jan 24, 2025
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

1 participant