VQC.construct_circuit¶
- VQC.construct_circuit(x, theta, measurement=False)[source]¶
Construct circuit based on data and parameters in variational form.
- Parameters
x (numpy.ndarray) – 1-D array with D dimension
theta (list[numpy.ndarray]) – list of 1-D array, parameters sets for variational form
measurement (bool) – flag to add measurement
- Returns
the circuit
- Return type
- Raises
AquaError – If
x
andtheta
share parameters with the same name.