quantumlib / Cirq

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

Draft: Adds tools for appending randomized measurement bases and processing renyi entropy from bitstring #6660

Closed senecameeks closed 2 months ago

senecameeks commented 2 months ago
  1. Adds a new RandomMeasurement class to the experiment folder.

Notably this PR does not create a new transformer since append_random_measurements returns a sequence of circuits and thus violates the transformer api contract.

  1. Adds a tool in cirq/qis for computing the renyi entropy. The technique is well-known and was used by our team, for example in Satzinger et al (2021), Eq. S4 of the SM.
codecov[bot] commented 2 months ago

Codecov Report

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

Project coverage is 97.81%. Comparing base (32d4833) to head (cf0ad71).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #6660 +/- ## ========================================== - Coverage 97.81% 97.81% -0.01% ========================================== Files 1066 1070 +4 Lines 91832 91983 +151 ========================================== + Hits 89826 89972 +146 - Misses 2006 2011 +5 ```

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