static OperationNamespace.time_evolution_operators_pwc(hamiltonian, sample_times, *, name=None)

Calculates the unitary time-evolution operators for a system defined by a piecewise-constant Hamiltonian.

  • hamiltonian (TensorPwc) – The control Hamiltonian, or batch of control Hamiltonians.

  • sample_times (np.ndarray(1D, real)) – The N times at which you want to sample the unitaries. Must be ordered and contain at least one element.

  • name (str, optional) – The name of the node.


Tensor of shape […, N, D, D], representing the unitary time evolution. The n-th element (along the -3 dimension) represents the unitary (or batch of unitaries) from t = 0 to sample_times[n].

Return type