Quaternion magnitude
QN = Q.norm() is the equivalent of QN = qnorm(Q). It is the scalar norm or magnitude of the quaternion Q.
QN = Q.norm()
QN = qnorm(Q)
This is the Euclidean norm of the quaternion written as a 4-vector.
A unit-quaternion has a norm of one.