pdft.coherence.diagonal_tensor_indices#
- pdft.coherence.diagonal_tensor_indices(basis)[source]#
Indices of the tensors that are diagonal in the computational basis.
These are the compact controlled-phase gates,
[[1, 1], [1, e^{i phi}]], whose only freedom is a phase. Freeing exactly these is what preserves mu == 1; see the module docstring.