Closed JoelPasvolsky closed 5 months ago
I think it might actually be better to just remove that entire if
branch
https://github.com/dwavesystems/dwave-system/blob/e8946dd7a12f0c73a3a1e5d2043e287174d90c40/dwave/system/composites/reversecomposite.py#L330-L334
I am not sure that it's providing much value.
Description Using the
ReverseBatchStatesComposite
produces an error,To Reproduce Use this example.
Environment:
Additional context Raised by @axel-GHB for a user.
The unit tests for
ReverseBatchStateComposite
use aMockReverseSampler()
that usesdimod.ExactSolver()
under the hood, andExactSolver()
ignores thenum_reads
parameter so this problem will not get caught by dwave_system's unit testing. When I run the unit tests usingEmbeddingComposite(DWaveSampler())
instead ofExactSolver
I get the same errorLine 334 produces an array,
that goes into
num_reads
and the child sampler does not handle.