For ReLU activation, we do this:
out = some_convolution(input)
out = nn.functional.relu(out)  # relu activation

In the same way, you can realize your quadratic activation as,
out = some_convolution(input)
out = torch.pow(out, 2)  # quadratic activation