supergrad.quantum_system.KronObj.expm#
- KronObj.expm(right_vec=None, trotter_order=None, tn_expr=None)[source]#
Calculate matrix exponentiation of KronObj. Combine matrix exponentiation with matrix-vector product if right_vec is not None.
- Parameters:
right_vec (bool) – matrix-vector product with the right_vec on the right
trotter_order (complex int) – the order of suzuki-trotter decomposition. The following arguments are supported, a) None, calculating matrix exponentiation without trotter decomposition b) 1, first order trotter decomposition c) 2, second order trotter decomposition d) 4, 4th order real decomposition e) 4j, 4th order complex decomposition
tn_expr – Tensor network contract expression. if tn_expr is None, generate contract expression when expm() be called each time.