The quadriceps muscles consist of the rectus femoris, vastus lateralis, medialis and intermedius. A quadriceps contusion is often associated with a direct blow, e.g. soccer or rugby injuries.
Your injury is graded according to the amount of flexion that you have. Severe injuries are more likely to cause compartment syndrome and myositis ossificans.
Treatment consists in general of rest, ice, compression, elevation, non-steroidal anti-inflammatory drugs and physiotherapy.
You can return to sport once you are pain free and have good range of movement.
Most strains are treated conservatively as for contusions. The indication for surgery is limited to complete muscle tears, true fractures and symptomatic myositis ossificans.
The time to return to sport will be determined by the severity of your injury and your response to treatment.