Hey @hwarang2014, welcome to the forum!
Just putting this here for reference: Documentation of expval - #2 by isaacdevlugt