Extend generate_xyz_hamiltonian
to allow for arbitrary coefficients.
#34
Labels
enhancement
New feature or request
What should we add?
Right now
generate_xyz_hamiltonian
allows one to specify the coupling coefficients across all edges for each interaction type in the Hamiltonian, but for some applications one might want to, for example, use a set of randomly sampled coefficients for the XX terms.This could be supported by accepting a dictionary mapping edges in the coupling map to coefficients.
For example:
A few sanity checks on the input are that if a dict is passed in for one of the coeffs:
The text was updated successfully, but these errors were encountered: