When your iPad is locked, simply tap on the screen to start taking notes. For this to work, make sure you turn on the feature in Settings > Notes > Access Notes from Lock Screen. If your iPad has a Home Button, press the power button to wake it then tap the screen with your Apple Pencil.
From any app
Swipe diagonally from the bottom right corner of your iPad.