Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
eliottrosenberg committed Jan 17, 2024
1 parent 82fa43b commit 9f1d9fc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cirq-core/cirq/experiments/qubit_characterizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@ def pauli_error(self) -> Mapping['cirq.Qid', float]:
"""

return {
qubit: self.results_dictionary[qubit].pauli_error()
for qubit in self.results_dictionary
qubit: self.results_dictionary[qubit].pauli_error() for qubit in self.results_dictionary
}

def plot_heatmap(
Expand All @@ -204,7 +203,7 @@ def plot_heatmap(
pauli_errors_with_grid_qubit_keys = {}
for qubit in pauli_errors:
assert type(qubit) == grid_qubit.GridQubit, "qubits must be cirq.GridQubits"
pauli_errors_with_grid_qubit_keys[qubit] = pauli_errors[qubit] # just for typecheck
pauli_errors_with_grid_qubit_keys[qubit] = pauli_errors[qubit] # just for typecheck

if ax is None:
_, ax = plt.subplots(dpi=200, facecolor='white')
Expand Down

0 comments on commit 9f1d9fc

Please sign in to comment.