Simplified the new `QM.revive` function to avoid unnecessary avar creation