Efficient State Preparation via Ion Trap Quantum Computing and Quantum Searching Algorithm