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

Guppy's measure_array is too eager #780

Open
jake-arkinstall opened this issue Feb 21, 2025 · 0 comments
Open

Guppy's measure_array is too eager #780

jake-arkinstall opened this issue Feb 21, 2025 · 0 comments

Comments

@jake-arkinstall
Copy link

In guppy, measure_array returns array(measure(q) for q in qubits)

It should be expected that this, after some optimisation, can be expressed as two loops - the first requesting futures, the second reading them. Guppy doesn't have a concept (that I'm aware of) of measurements as futures, so this would probably need to happen in an optimisation pass (hence this being a tket2 issue).

We do have some optimisation that streamlines measurements of multiple qubits into more optimal lazy measurements within a function, e.g. see #432, but this is not taking effect for measure_array. Instead, each qubit is measured individually, making the measurement of qubit arrays less efficient than it should be.

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

1 participant