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

Measurements on different basis #11443

Closed
aabennak opened this issue Dec 20, 2023 · 3 comments
Closed

Measurements on different basis #11443

aabennak opened this issue Dec 20, 2023 · 3 comments
Labels
type: feature request New feature or request

Comments

@aabennak
Copy link

What should we add?

I'm suggesting that there would be methods added that would measure on the x and y basis rather than just the z basis.

They could be added as: measure_x(arg) and measure_y(arg).

It's a pretty easy task that I'd like to contribute to. My reference would be the implementation outlined in: https://arxiv.org/abs/1804.03719

@aabennak aabennak added the type: feature request New feature or request label Dec 20, 2023
@yaelbh
Copy link
Contributor

yaelbh commented Dec 20, 2023

Thanks. Please be aware that it's less easy than it seems, because the transpiler may assume that all measurements are z-basis (and replacing e.g. x-basis measurements with z-basis measurements encapsulated by Hadamard gates brings its own complexities).

See previous attempts in #7716 and references therein to other issues and pull requests.

@jakelishman
Copy link
Member

Thanks for the interest in contributing!

I agree with the above - the idea of generalised measurements is something we're interested in, but actually implementing it safely has heavy implications all around the transpiler and the interpretation of circuits and the primitives in a way that I don't think we can fulfil right now. At any rate, this issue is a duplicate of #3967, so I'd like to close this to keep discussion a little more localised - please feel free to comment on that issue, though the problems we have with generalisations will still hold, and right now, I'm not certain of a path forwards here.

@jakelishman
Copy link
Member

Duplicate of #3967

@jakelishman jakelishman marked this as a duplicate of #3967 Dec 20, 2023
@jakelishman jakelishman closed this as not planned Won't fix, can't repro, duplicate, stale Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants