Quantum mechanics is not magic. Magic specifies the outcome, but not how a system evolves to reach that outcome. Quantum mechanics has precise equations describing how a system will evolve over time, but is famously bad at describing the outcome.
By the same token, we can see that thermodynamics and conservation laws, while widely accepted, are magic. I have heard legend of a deeper magic known as "Lagragians", although knowledge of that lost art remains confines to the warlocks' ivory tower.