dwavesystems / dwave-system

An API for easily incorporating the D-Wave system as a sampler, either directly or through Leap's cloud-based hybrid samplers
https://docs.ocean.dwavesys.com/
Apache License 2.0
90 stars 64 forks source link

Allow DWaveCliqueSampler to use a user specified clique embedding #419

Open pau557 opened 3 years ago

pau557 commented 3 years ago

I'm interested in using all the functionality of the clique sampler (range-scaled uniform torque compensation, per-qubit coupling checks), but I would like the option of passing my own embedding instead of generating it on the fly:

https://github.com/dwavesystems/dwave-system/blob/7b702351f61294459db475fa4fe92aac1f44f16d/dwave/system/samplers/clique.py#L389

This allows reproducibility, graph-isomorphic transformations, testing new embeddings, etc.

arcondello commented 3 years ago

Definitely a feature we could (easily) add. But in the mean time you could get the same effect with just using the same set of composites https://github.com/dwavesystems/dwave-system/blob/7b702351f61294459db475fa4fe92aac1f44f16d/dwave/system/samplers/clique.py#L406

davidmerwin commented 2 years ago

🌟