It is highly unlikely that a mother dog with rabies would eat her puppies.
Why This Is Unlikely
Rabies doesn't change maternal instincts: Rabies affects the nervous system, causing aggression and paralysis, but it is not a direct trigger for cannibalism.
Cannibalism is unusual in dogs: It is not a normal or instinctive behavior.
Rabies is fatal: It leads to death, often within days, so the dog likely could not care for or recognize puppies in final stages.
Important Warning
If you see a dog behaving aggressively or showing signs of illness, contact local animal control or a veterinarian immediately. Rabies is a serious threat to animals and humans.