How do I get my cat to use a cat flap?

A fancy cat flap. Fancy for us, the humans, but cats don’t see that. Cats will nearly always be able to learn how to use a cat flap. Have patience.