$Q$-function