qudit_sim.HamiltonianBuilder.make_scan

HamiltonianBuilder.make_scan(scan_type, values, **kwargs)

Build a list of copies of self varied over a single attribute.

The argument scan_type determines which attribute to make variations over. Implemented scan types are - 'amplitude': Drive amplitudes. Elements of values are passed to the amplitude parameter of add_drive. - 'frequency': Drive frequencies. Elements of values are passed to the frequency parameter of add_drive. - 'coupling': Qudit-qudit couplings. Elements of values are passed to the value parameter of add_coupling.

In all cases, the remaining arguments to the respective functions must be given in the kwargs of this method.

Parameters
  • scan_type (str) – 'amplitude', 'frequency', or 'coupling'.

  • values (Sequence) – A list of values. One copy of self is created for each value.

  • kwargs – Remaining arguments to the function to be called on each copy.

Return type

List[HamiltonianBuilder]

Returns

A list of copies of self varied over the specified attribute.