iterate_minibatches[source]

iterate_minibatches(inputs, targets, batch_size)

Function to iterate minibatches of inputs and labels

rot_layer[source]

rot_layer(params, width=4, layer=4, x=None)

adds rotations to each qubit, U(x) followed by U(theta)

the parameters are structured the following: we need a dimension for each layer, for each qubit, 2 for a parameter theta and w multiplied with x and 3 for the 3 rotation dimensions of x

entangle_layer[source]

entangle_layer(width=4, layer=4)

adds entangling gates to even / odd wires

class Reuploading_model[source]

Reuploading_model(device='forest.numpy_wavefunction', width=4, layers=4)

Hessian[source]

Hessian(params, model, X=None, y=None, Z_measure=False)