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

Add ParallelRandomizedBenchmarkingResult class #6412

Merged
merged 8 commits into from
Jan 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add tests
  • Loading branch information
eliottrosenberg committed Jan 16, 2024
commit 325a70fbc3292010944bd7bdcab06b3738fc8e88
5 changes: 5 additions & 0 deletions cirq-core/cirq/experiments/qubit_characterizations_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ def test_parallel_single_qubit_randomized_benchmarking():
for qubit in qubits:
g_pops = np.asarray(results._results_dictionary[qubit].data)[:, 1]
assert np.isclose(np.mean(g_pops), 1.0)
_ = results.plot_single_qubit(qubit)
pauli_errors = results.pauli_error()
assert len(pauli_errors) == len(qubits)
_ = results.plot_heatmap()
_ = results.plot_integrated_histogram()


def test_two_qubit_randomized_benchmarking():
Expand Down
Loading