Run hybrid execution loops using functions managed by IonQ’s Cloud.
QuantumFunction
can be used to solve constrained quadratic programs.The IonQ SDK and all its extras
Client
which will allow us to connect to IonQ’s platform, then select a backend to use with it.
print
ed it, would look something like:
Now we’ll do the same for an example ansatz and some initial parameters:
ionq.ionq_qiskit
, which is a helper library we are providing for translating Qiskit circuits into IonQ-native QIS.
QuantumFunction
instead of just a simple circuit.
A quantum function is a workload that has some predefined logic built in to it. In this case, we’ll pass it an ansatz and a hamiltonian, and when we send it to the backend along with a set of parameters, it will submit circuits and do an Hamiltonian Energy evaluation.
method
to use for optimizationplot_results()
gives us:
And retrieving the “results” of this job will identify the![]()
minimum_value
and optimal_parameters
for the problem: