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

Combine RB and XEB to compute inferred errors #6455

Merged
merged 27 commits into from
Feb 13, 2024
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
f3f6727
Initial commit
NoureldinYosri Feb 5, 2024
cc8aa10
nits
NoureldinYosri Feb 5, 2024
d616efe
Add TwoQubitRandomizedBenchMarkResult and the computation of derived …
NoureldinYosri Feb 5, 2024
d06cc93
nit
NoureldinYosri Feb 5, 2024
592ecfc
nit
NoureldinYosri Feb 6, 2024
9435cff
add target_error arg
NoureldinYosri Feb 6, 2024
76e5a8d
nit
NoureldinYosri Feb 6, 2024
2a2f8b8
nit
NoureldinYosri Feb 6, 2024
a94730c
add tests and docstrings
NoureldinYosri Feb 6, 2024
9aa9d4e
ensure the dictionary index is sorted
NoureldinYosri Feb 7, 2024
e6151f0
add a method to plot histogram
NoureldinYosri Feb 7, 2024
a91e175
Merge branch 'main' into 2q_xeb
NoureldinYosri Feb 7, 2024
8e47acd
Merge branch 'main' into 2q_xeb
NoureldinYosri Feb 7, 2024
64effd8
address comments
NoureldinYosri Feb 8, 2024
5b2af9e
Merge branch 'main' into 2q_xeb
NoureldinYosri Feb 9, 2024
2acc13d
Combine RB and XEB to compute inferred errors
NoureldinYosri Feb 10, 2024
82f8428
cache methods
NoureldinYosri Feb 10, 2024
798f82a
add plotting
NoureldinYosri Feb 10, 2024
596974f
Merge branch 'main' into 2q_xeb
NoureldinYosri Feb 10, 2024
cf1002b
docstring
NoureldinYosri Feb 10, 2024
6994800
fix inferred errors
NoureldinYosri Feb 10, 2024
af59604
address comments
NoureldinYosri Feb 12, 2024
db9657a
Merge branch 'main' into 2q_xeb
NoureldinYosri Feb 12, 2024
c4fd143
Merge branch 'main' into 2q_xeb
NoureldinYosri Feb 13, 2024
6aee73b
address comments
NoureldinYosri Feb 13, 2024
9f7d628
nit
NoureldinYosri Feb 13, 2024
f14bf7e
final nit
NoureldinYosri Feb 13, 2024
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
cache methods
  • Loading branch information
NoureldinYosri committed Feb 10, 2024
commit 82f8428f234dcb1d8d1470646376409b2d9711a4
3 changes: 3 additions & 0 deletions cirq-core/cirq/experiments/two_qubit_xeb.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,16 +184,19 @@ def _pauli_error(self, q0: 'cirq.GridQubit', q1: 'cirq.GridQubit') -> float:
single_q_paulis = self.rb_result.pauli_error()
return self.xeb_result.pauli_error()[(q0, q1)] + single_q_paulis[q0] + single_q_paulis[q1]
NoureldinYosri marked this conversation as resolved.
Show resolved Hide resolved

@cached_method
def pauli_error(self) -> Dict[Tuple['cirq.GridQubit', 'cirq.GridQubit'], float]:
return {pair: self._pauli_error(*pair) for pair in self.all_qubit_pairs}
NoureldinYosri marked this conversation as resolved.
Show resolved Hide resolved

@cached_method
def decay_constant(self) -> Dict[Tuple['cirq.GridQubit', 'cirq.GridQubit'], float]:
"""Return the equivalent decay constant."""
return {
pair: noise_utils.pauli_error_to_decay_constant(pauli, 2)
for pair, pauli in self.pauli_error().items()
}

@cached_method
def xeb_error(self) -> Dict[Tuple['cirq.GridQubit', 'cirq.GridQubit'], float]:
NoureldinYosri marked this conversation as resolved.
Show resolved Hide resolved
"""Return the equivalent XEB error."""
return {
Expand Down
Loading