# qiskit.providers.aer.extensions.SnapshotDensityMatrix.c_if¶

SnapshotDensityMatrix.c_if(classical, val)

Set a classical equality condition on this instruction between the register or cbit classical and value val.

Note

This is a setter method, not an additive one. Calling this multiple times will silently override any previously set condition; it does not stack.