Q: Passage: The Qin dynasty (Chinese: ; pinyin: Qin Chao; Wade -- Giles: Ch'in Ch'ao) was the first dynasty of Imperial China, lasting from 221 to 206 BC. Named for its heartland of Qin, in modern-day Gansu and Shaanxi, the dynasty was founded by the Qin state and its founding emperor took the title Qin Shi Huang, the First Emperor of Qin. The strength of the Qin state was greatly increased by the "Legalist" reforms of Shang Yang in the fourth century BC, during the Warring States period. In the mid and late third century BC, the Qin state carried out a series of swift conquests, first ending the powerless Zhou dynasty, and eventually conquering the other six of the Seven Warring States. It is the shortest major dynasty in Chinese history, lasting only 15 years with two emperors, but the imperial system it inaugurated lasted, with interruptions and adaptation, until 1911.

Question: Based on this passage, where was the qin dynasty located in china?
Let's give stream of consciousness below
To answer the above question, the relevant sentence is: Named for its heartland of Qin, in modern-day Gansu and Shaanxi, the dynasty was founded by the Qin state and its founding emperor took the title Qin Shi Huang, the First Emperor of Qin. So the answer is Qin , in modern - day Gansu and Shaanxi.