Thanks for asking.
Open heart surgery is a major operation with long surgical and under anesthesia
One of potential complications of the long surgeries is the electrolyte imbalance
with the deranged consciousness.It can take few days for the potential recovery.
Please be patient and look for the generalised system well being.