trainable weights
w_amp_tr = {i: f"w_amp{i}" for i in range(n_qubits)}
w_det_tr = {i: f"w_det{i}" for i in range(n_qubits)}
amp_tr = "max_amp"
det_tr = "max_det"
creating pattern
pattern = AddressingPattern(
n_qubits=n_qubits,
det=det,
amp=amp,
weights_det=w_det,
weights_amp=w_amp,
)
pattern specified when creating device instance
device_specs = IdealDevice(pattern=pattern)
reg = Register.line(
n_qubits,
spacing=8.0,
device_specs=device_specs,
)
New Contributors
* vincentelfving made their first contribution in https://github.com/pasqal-io/qadence/pull/219
* rajaiitp made their first contribution in https://github.com/pasqal-io/qadence/pull/233
**Full Changelog**: https://github.com/pasqal-io/qadence/compare/v1.1.1...v1.2.0