qrisp.vqe.VQEProblem.compile_circuit#
- VQEProblem.compile_circuit(qarg, depth)[source]#
Compiles the circuit that is evaluated by the
run
method.- Parameters:
- qargQuantumVariable or QuantumArray
The argument to which the VQE circuit is applied.
- depthint
The amount of VQE layers.
- Returns:
- compiled_qcQuantumCircuit
The parametrized, compiled QuantumCircuit without measurements.
- list[sympy.Symbol]
A list of the parameters that appear in
compiled_qc
.