dwavesystems / dwavesystems/dwave-system

MockDWaveSampler initial_state format is incorrect

Open
#587 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
98
Forks
67
Avg merge
7m
Merged PRs (30d)
1

Description

**Description**
MockDWaveSampler handles initial_states differently to DWaveSampler, formats are incompatible.
This issue is complicated by suboptimal documentation https://docs.dwavequantum.com/en/latest/quantum_research/solver_parameters.html#parameter-qpu-initial-state, and related issues
https://github.com/dwavesystems/dwave-cloud-client/issues/700
https://github.com/dwavesystems/dwave-system/issues/299

**To Reproduce**
Passing initial_states as a dictionary or list of integers works for DWaveSampler, passing a list of tuples works for MockSampler, no compatible format exists. MockDWaveSampler can be corrected as other issues are addressed.

**Expected behavior**
MockDWaveSampler should accept the same format(s) for initial_state as DWaveSampler, to enable testing.

**Environment:**
- OS: [Ubuntu 16.04.4 LTS]
- Python version: [e.g. 3.7.0]

**Additional context**
Add any other context about the problem here.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.