vector
- TimeEvolState.vector(shot='all', t_idx='all', basis='product', frame='lab', in_qubit_subspace=False)
Return the time-evolved state in a specific basis and frame.
- Parameters:
shot (
str
|int
|List
[int
]) – Specify the shot by its index or indices, or use'all'
.t_idx (
str
|int
|List
[int
]) – Specify the time by its index or indices, or use'all'
.basis (
str
) – Specify the basis, must be either'product'
or'eigen'
.frame (
str
) – Specify the frame, must be either'lab'
or'rotating'
.in_qubit_subspace (
bool
) – IfTrue
, state is projected to qubit subspace.
- Return type:
- Returns:
Time evolution states for shots and time points. Array of shape (n_shots, n_times, dim).
Hint
Use it, for example, as:
result.time_evol_state.vector(shot=0, t_idx=[0,-1], basis='eigen', frame='rotating')