First - open all the windows and let it air out! Maybe try sprinkling baking soda on the carpet to suck up all the chemicals, then vacuuming it up?
New home chemicals CAN make you sick. My parents build a house and moved in and within a couple weeks my mom came down with a massive sinus infection that was so bad, she was nearly hospitalized and was on antibiotics for two months. My mom has allergies and asthma and realized all the chemicals in new carpeting were doing it to her. Cleaning the carpets did help too.
Oddly enough, my bil, who has asthma, had a major attack at church once - we're talking turned blue and stopped breathing attack. My mil was trying to figure out what caused it and I said "Could it be all the new carpeting at church?" (You were hit with the smell of new carpet as soon as you walked in.) They went to a different church for a few weeks until the new carpet fumes wore off.