You could also be having a reaction from the anesthesia. There are some drugs used in anesthesia such as Ketamine that can also cause hallucinations.
It took my MIL about 3 months to come out of her drug stupor after her total knee replacement. She found it difficult to comprehend simple tasks she had done hundreds of times before. She couldn't write a check or balance her checkbook, decision making was a chore, and she was depressed and cried all the time.
Hang in there. Just take one day at a time.