Therefore, we observe the effect of kappa opioid receptor (KOR) agonist on cognitive disorders of rats after cardiopulmonary bypass (CPB) and investigate the mechanism of the Ca2+/calmodulin-dependent protein kinase (CaMKII)/cAMP responsive element-binding protein (CREB) pathway. The gene discussed is CAMK2G; the disease is Cognitive impairment.