Drama will shoot this summer.

Screen Daily is reporting that ‘Hugo’ and ‘Ender’s Game’ star Asa Butterfield is attached to star in the Morgan Matthews-directed drama ‘X + Y,’ with Rafe Spall (‘I Give it a Year,’ ‘Prometheus’) in talks to co-star.

Inspired by Matthews’ BAFTA-nominated BBC documentary ‘Beautiful Young Minds,’ the film is “a rites of passage drama about a teenage prodigy’s journey to the Mathematics Olympiad, and his quest to find a formula for love.” Matthews will be directing from a script by James Graham.

“The film has shades of ‘Billy Elliot,’ which I was involved in commissioning,” said producer David Thompson. “It is a very uplifting and affirmative love story about two hyper-clever and extraordinary teenagers from very different worlds.”

Filming will take place in the UK this summer, with Taiwan and China being eyed as additional locations.