The num_spin_reversal_transforms section of the Getting Started Guide offers a high level description of the benefits of using SRTs, as well as a number of other ways to maximize performance. The Spin-Reversal (Gauge) Transforms section of the Problem Solving Handbook could be a good place to start, placing SRTs in the broader context of other manners of performance tuning.
SRTs can be performed on the client side by using the SpinReversalTransformComposite class. This class will automatically apply SRTs, before sending the problems to the server, and then reverse the SRTs after the results are returned. The implementation is located here: https://github.com/dwavesystems/dimod/blob/main/dimod/reference/composites/spin_transform.py.
If for whatever reason, you need slightly different functionality, or have an optimization that you think would speed things up, it's always possible to write your own implementation and share it with the community as well!
Comments
Please sign in to leave a comment.