statetensor_to_densitytensor

qujax.statetensor_to_densitytensor(statetensor)

Computes a densitytensor representation of a pure quantum state from its statetensor representaton

Parameters:

statetensor (ndarray) – Input statetensor.

Returns:

A densitytensor representing the quantum state.

Return type:

ndarray