You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.
It strikes me as inconsistent that the QBSolv class is not defined as a composite sampler. If I want to add auto-embedding support to a sampler, I pass the sampler to an AutoEmbeddingComposite. If I want to add reverse-annealing support to a sampler, I pass the sampler to a ReverseAdvanceComposite. If I want to add spin-reversal support to a sampler, I pass the sampler to a SpinReversalTransformComposite. But if I want to add QBSolv support to sampler to break up a large problem, I first create a QBSolv object with no child sampler. Only when I sample from the QBsolv object do I pass QBSolv.sample the sampler I want to use.
Proposed Solution
I propose deriving QBSolv from dimod.Composite. That way, users can treat QBSolv as any other composite sampler, specifying the child at creation time, not at sampling time.
The text was updated successfully, but these errors were encountered:
Current Problem
It strikes me as inconsistent that the
QBSolv
class is not defined as a composite sampler. If I want to add auto-embedding support to a sampler, I pass the sampler to anAutoEmbeddingComposite
. If I want to add reverse-annealing support to a sampler, I pass the sampler to aReverseAdvanceComposite
. If I want to add spin-reversal support to a sampler, I pass the sampler to aSpinReversalTransformComposite
. But if I want to add QBSolv support to sampler to break up a large problem, I first create aQBSolv
object with no child sampler. Only when I sample from theQBsolv
object do I passQBSolv.sample
the sampler I want to use.Proposed Solution
I propose deriving
QBSolv
fromdimod.Composite
. That way, users can treatQBSolv
as any other composite sampler, specifying the child at creation time, not at sampling time.The text was updated successfully, but these errors were encountered: