matrix
- TimeEvolOperator.matrix(shot='all', t_idx='all', basis='product', frame='lab', in_qubit_subspace=False, remove_virtual_phase=False)
Return the time evolution operator 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
, operator is projected to qubit subspace.remove_virtual_phase (
bool
) – IfTrue
, virtual z-phases are transformed out from the operator.
- Return type:
- Returns:
Time evolution operators for shots and time points. Array of shape (n_shots, n_times, dim, dim).
Hint
Use it, for example, as:
result.time_evol_operator.matrix(shot=0, t_idx=[0,-1], basis='eigen', frame='rotating')