We can all agree on the fact that thinking of love and sex affects our way of thinking, an article published in the Personality and Social psychology Bulletin suggests how:
Why Love Has Wings and Sex Has Not: How Reminders of Love and Sex Influence Creative and Analytic Thinking
This article examines cognitive links between romantic love and creativity and between sexual desire and analytic thought based on construal level theory. It suggests that when in love, people typically focus on a long-term perspective, which should enhance holistic thinking and thereby creative thought, whereas when experiencing sexual encounters, they focus on the present and on concrete details enhancing analytic thinking. Because people automatically activate these processing styles when in love or when they experience sex, subtle or even unconscious reminders of love versus sex should suffice to change processing modes. Two studies explicitly or subtly reminded participants of situations of love or sex and found support for this hypothesis.