Quantum Machine Learning, Machine Learning, Data Science, Programming, Hands On Tutorials.
import ZZFeatureMap, RealAmplitudes feature_map = ZZFeatureMap(feature_dimension) ansatz = RealAmplitudes(feature_dimension, reps=reps) # Quantum circuit ansatz # Composing the quantum circuit with the feature map and ansatz from qiskit import QuantumCircuit qc = QuantumCircuit(feature_dimension)