plot_Bloch_vectors

SimulationResult.plot_Bloch_vectors(spin_names=None, shot='avg', basis='product', frame='rotating')

Plot the Bloch vectors corresponding the spins.

Parameters:
  • spin_names (str | List[str] | None) – Names of the spins (defaults to plot all spins).

  • shot (int | str) – Specify the shot by its index, or use 'avg'.

  • basis (str) – Specify the basis, must be either 'product' or 'eigen'.

  • frame (str) – Specify the frame, must be either 'lab' or 'rotating'.