Skip to content

Commit

Permalink
Draw ket labels for both real and imaginary parts of density matrix (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
viathor committed Jan 31, 2020
1 parent db9a9ed commit d5ce404
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cirq/experiments/qubit_characterizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,8 +574,10 @@ def _matrix_bar_plot(mat: np.ndarray,
ax.set_zlim3d(ylim[0], ylim[1])

if kets is not None:
plt.xticks(np.arange(num_cols) + 0.15, kets)
plt.yticks(np.arange(num_rows) + 0.15, kets)
ax.set_xticks(np.arange(num_cols) + 0.15)
ax.set_yticks(np.arange(num_rows) + 0.15)
ax.set_xticklabels(kets)
ax.set_yticklabels(kets)

if title is not None:
ax.set_title(title)
Expand Down

0 comments on commit d5ce404

Please sign in to comment.