Anovelalgorithm,theImmuneQuantum-inspiredGeneticAlgorithm(IQGA),isproposedbyintroducingimmuneconceptsandmethodsintoQuantum-inspiredGeneticAlgorithm(QGA).WiththeconditionofpreservingQGA'sadvantages,IQGAutilizesthecharacteristicsandknowledgeinthependingproblemsforrestrainingtherepeatedandineffectiveoperationsduringevolution,soastoimprovethealgorithmefficiency.TheexperimentalresultsoftheknapsackproblemshowthattheperformanceofIQGAissuperiortotheConventionalGeneticAlgorithm(CGA),theImmuneGeneticAlgorithm(IGA)andQGA.