def basic_entangling_ansatz(observable,params):
“”"Applies an ansatz with basic entanglement.
Args:
observable (qml.op): a pennylane operator whose expectation value we want to measure.
params(np.array): an array with the trainable parameters of the ansatz. They have the shape of`qml.StronglyEntanglingLayers.shape(n_layers=1, n_wires=n_bits)`
This should be “they have the shape of qml.BasicEntanglerLayers.shape(n_layers=1, n_wires=n_bits)”.
- bart