qat.quops.is_unital
- qat.quops.is_unital(quantum_channel: QuantumChannel, tol: float = 1e-08) bool
Tests whether a quantum channel is unital (\(\mathcal{E}(I) = I\)) or not.
- Parameters
quantum_channel (QuantumChannel) – a quantum operation
tol (float) – tolerance on norm
- Returns
boolean
- Return type
bool