1
$\begingroup$

I have used the Qiskit-based QAOA function to solve a combinatorial problem tsp, and I want to append a circuit after the QAOA layer, is there any way to do that?

STANDARD QAOA LAYER WITH APPENDED MULTIPARAMETER LAYER Qaoa

$\endgroup$
2
  • $\begingroup$ Do you mean to use output of QAOA in another circuit? $\endgroup$ May 15, 2023 at 20:04
  • $\begingroup$ i meant that i have a circuit that i want to append after QAOA, but the problem is QAOA is implemented in the form of using a qiskit function, is there any way to append the layer after qaoa ? $\endgroup$ May 16, 2023 at 22:43

1 Answer 1

1
$\begingroup$

The anstaz used by QAOA is QAOAAnsatz, a circuit from the circuit library. Now QAOA is a simple subclass of SamplingVQE (or the now deprecated version of VQE if you are still using the also now deprecated QAOA that uses a QuantumInstance) that sets up this specific ansatz to use. But you can take that library circuit and append/compose onto it and pass the resulting circuit as the ansatz to SamplingVQE/VQE - assuming you want to use that during the optimization process. Since using QAOAAnsatz, as the ansatz with SamplingVQE/VQE, nets out to be the same as using QAOA.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.