amplify.client.QiskitClientParameters

class QiskitClientParameters

A parameter class of the Qiskit client. This client solves Ising model and quadratic unconstrained binary problem by means of the Quantum Approximate Optimization Algorithm (QAOA).

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

Attributes

n_hot_encoding

Set or get a flag using formulation specialized to one-hot constraints.

optimizer

Set or get a classical optimizer used in the QAOA tuning phase.

reps

Set or get the quality parameter of the approximation in QAOA.

shots

Set or get the number of executions in each quantum circuit for both tune and run phase.

property n_hot_encoding

Set or get a flag using formulation specialized to one-hot constraints.

When n_hot_encoding is true, The default value is true.

Type:

bool

property optimizer

Set or get a classical optimizer used in the QAOA tuning phase.

This parameters corresponds to \(\beta\) and \(\gamma\) in the QAOA papaer. Available optimizers are given from scipy minimize methods.

The default value is COBYLA.

Type:

str

property reps

Set or get the quality parameter of the approximation in QAOA.

This parameters corresponds to \(p\) in the QAOA papaer.

Larger reps increases the complexity of the circuit used in the QAOA algorithm.

This parameter must be a non-negative integer.

The default value is 10.

Type:

int

property shots

Set or get the number of executions in each quantum circuit for both tune and run phase.

This parameter must be a non-negative integer.

The default value is 1024.

Type:

int