UnitaryBuilder.calc_env_matrix

UnitaryBuilder.calc_env_matrix(location)[source]

Calculates the environment matrix w.r.t. the specified location.

Parameters:

location (Sequence[int]) – Calculate the environment matrix with respect to the qudit indices in location.

Returns:

The environmental matrix.

Return type:

np.ndarray