densitytensor_to_measured_densitytensor
- qujax.densitytensor_to_measured_densitytensor(densitytensor, qubit_inds, measurement)
Returns the post-measurement densitytensor assuming that qubit_inds are measured (in the computational basis) and the given measurement (integer or bitstring) is observed.
- Parameters:
densitytensor (ndarray) – Input densitytensor.
qubit_inds (Sequence[int]) – Sequence of qubit indices to measure.
measurement (int | ndarray) – Observed integer or bitstring.
- Returns:
Post-measurement densitytensor (same shape as input densitytensor).
- Return type:
ndarray