System and Method of Partial Compilation With Variational Algorithms for Quantum Computers | Synapse