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
Enable mock sampler selection in MockDWaveSampler (dwavesystems#537)
* WIP - added the option to switch sampler and relevant testing codes
* removed the flux biases code
* changed the initialization of mocking sampler from init to body
* simplified substitude_kwargs
* Fix num_qubits bug; raise mocked_parameters and dimod_sampler to class variable status
* Add missing property. Make substitute_kwargs a class variable.
* Minor corrections
* Revert change to support virtual graph composite
* num_qubits for pegasus fixed
* moved class attributes to instance attributes
* updated tests for mock dwave sampler
* Revert "updated tests for mock dwave sampler"
This reverts commit 89ade5f.
* created a local dictionary substitue_kwargs to ensure each instance of mock sampler has its own copies
* updated gitignore
* Update BQM definition to simplify variable weights
Co-authored-by: Jack Raymond <[email protected]>
* Replace single-read sample with num_reads=2 in MockDWaveSampler test
Co-authored-by: Jack Raymond <[email protected]>
* Update test to validate second sample state in MockDWaveSampler
Co-authored-by: Jack Raymond <[email protected]>
* Remove redundant energy check in MockDWaveSampler test
Co-authored-by: Jack Raymond <[email protected]>
* Removed redundant comments
* Polished formatting and removed changes in .gitignore
* Renamed CustomSampler to ConstantSampler in test cases
* Updated documentation of MockDWaveSampler
* Bugfix: substitute sampler not working as expected
* Removed files
* Changed shortcircuit to None identity check
* Modified None identity check slightly
* Add ss.info.update
* Added documentation for new parameters
* Move comments to documentation
* Update exact_solver_cutoff along with its documentation
* Correct errors related to misnaming subtitute_* as mock_*
* Delete duplicate file accidentally pushed
* Add note on return of ascent sampler
* Update dwave/system/testing.py
Co-authored-by: Radomir Stevanovic <[email protected]>
* Update dwave/system/testing.py
Change plain text to Sphinx style for documentation
Co-authored-by: Radomir Stevanovic <[email protected]>
* Update dwave/system/testing.py
Co-authored-by: Radomir Stevanovic <[email protected]>
* Fixed indentation
* Updated comment
* Added subtests in TestMockSampler
* Modified comments
* Minor adjustment for assert statement
* Added test for kwargs overwrite in TestMockDWaveSampler
---------
Co-authored-by: Andy Zhang <[email protected]>
Co-authored-by: Jack Raymond <[email protected]>
Co-authored-by: Kevin Chern <[email protected]>
Co-authored-by: Radomir Stevanovic <[email protected]>
0 commit comments