tqec.noise_models.after_clifford_depolarization.is_clifford
- is_clifford(operation: Operation) bool [source]
Inefficiently checks if a given operation implements a Clifford operation.
The check is implemented by recovering the unitary matrix of the operation and trying to initialise a stim.Tableau from it. Both steps are costly for large operations, which is the reason why this function will print a warning if the provided operation is considered “large” (3 qubits or more at the moment).
- Parameters:
operation – the operation that will be checked.
- Returns:
True if the provided cirq.Operation instance is a Clifford operation, else False.