Take the dog to a farm where they have an electric fence. Get him/her to stand underneath the cable then jump.
Then, so long as there is a clothes line or something visible at all times inside your house, the dog will never jump again.
In fact it may start crawling, which could be bad news for your carpet if she is a lactating bitch.