How is the Q criterion calculated?

When using a gradient filter to calculate the Q criterion, what are the steps Paraview goes throught when calculating it? Does it interpolate in order to find values intermediate to points for example? Or what mathod does it use to calculate the derivative?

I tried to look for this information in the documentation, but couldn’t find it.

Thank you