I'm running QAOA with a large number of qubits (64 qubits), and I'm having some issue getting the job to progress. I've tried a few different simulators, but I'm not sure how to tune the settings to make this run.
I tried aer_simulator_matrix_product_state
, since my problem involves fewer than 100 qubits. (I'm not sure how to tell if it involves non-weakly-entangled states- maybe someone can help me with that?).
However, the following line hangs and doesn't show any sign of progress, even for a single shot:
execute(qc, backend, shots=1).result().get_counts()
What could be causing this to hang for even a single shot? I tried allocating more memory via the options below. Is there anything else I can change?
qp=.....
backend = Aer.get_backend('aer_simulator_matrix_product_state')
maxiter=1
qaoa = QAOA(sampler=BackendSampler(backend, options={'max_memory_mb':10000000}), optimizer=NELDER_MEAD(maxiter=maxiter), reps=p)
meo = MinimumEigenOptimizer(qaoa)
result = meo.solve(qp)
Two related links: