Energy constraints for quantum logic via nonlinear optical processes