Skip to content

Conversation

@erichulburd
Copy link
Contributor

@erichulburd erichulburd commented Feb 18, 2025

A continuation of #515 that explicitly supports randomized measurements.

This PR supports one new feature:

  • A RandomizedMeasurement struct / class that will add per-shot randomized measurements to a program, as well as support the client in ascertaining which random unitary was played on each qubit per shot.

The documentation should stand on its own here. One note, I've put all of this functionality into qpu/experimental (both in Rust and Python). It is experimental both in the sense that it is an experimental feature in the QCS SDK that should not be considered stable as well as in the sense that it supports features relevant to QIS experimentalists.

Review Guidance:

  1. crates/lib/src/qpu/experimental/randomized_measurements.rs measurements builds off the primitives defined in the file above.
  2. Stubs for these features are defined in crates/python/qcs_sdk/qpu/experimental/randomized_measurements.pyi.
  3. There are corresponding tests for randomized measurements in crates/lib/src/qpu/experimental/randomized_measurements.rs as well as crates/lib/examples/randomized_measurements.rs.

@github-actions
Copy link

PR Preview Action v1.6.0

🚀 View preview at
https://rigetti.github.io/qcs-sdk-rust/pr-preview/pr-536/

Built to branch qcs-sdk-python-docs at 2025-02-18 23:33 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@erichulburd
Copy link
Contributor Author

We can reopen this at some point in the future if a partner requests the feature.

@erichulburd erichulburd deleted the feat_randomized_measurements branch March 27, 2025 14:52
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

Successfully merging this pull request may close these issues.

2 participants