Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide two very similar high-level entries into the observable measurement framework. This provides more sensible defaults for some of the execution details and can return nicer values ```python df = measure_observables_df( circuit, [observable], cirq.Simulator(), stopping_criteria='variance', stopping_criteria_val=1e-3 ** 2, ) ``` ------------------ `measure_grouped_settings` lets you control how settings are grouped and returns "raw" data in one container (`BitstringAccumulator`) per group. This level of control is probably desirable for people seriously executing and expensive experiment on the device. The high-level API makes some simplifying assumptions - The qubits are the union of circuit and observable qubits - We will group the settings using a `GROUPER_T` function, by default "greedy" - We'll always initialize settings into the `|00..00>` state, so you can just provide `PauliString`s - You'll probably be using one of the two built-in stopping criteria and can just provide a name and a value instead of grokking these objects. - (for the second entrypoint) you really don't care about how things were grouped and executed, you'd just like the observable values in a dataframe table
- Loading branch information
1 parent
2988803
commit 0dce2c1
Showing
8 changed files
with
593 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.