quantumlib / Cirq

A Python framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits.
Apache License 2.0
4.28k stars 1.02k forks source link

pass metadata to sweeps #6644

Closed senecameeks closed 5 months ago

senecameeks commented 5 months ago

cirq.Points accepts metadata but the current utility functions to convert parameters to sweeps do not expect metadata to be passed. This PR extends functionality of cirq.to_sweeps to accept a metadata parameter and appends it to the Sweep point if present.

codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.81%. Comparing base (72f0542) to head (0e35a4f).

:exclamation: Current head 0e35a4f differs from pull request most recent head ac50816

Please upload reports for the commit ac50816 to get more accurate results.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #6644 +/- ## ======================================== Coverage 97.81% 97.81% ======================================== Files 1066 1067 +1 Lines 91693 91557 -136 ======================================== - Hits 89687 89556 -131 + Misses 2006 2001 -5 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.