dwave-cloud-client icon indicating copy to clipboard operation
dwave-cloud-client copied to clipboard

Use a hierarchical config format

Open randomir opened this issue 5 years ago • 0 comments

We could switch from Python's config INI format to YAML (or JSON), enabling easy nesting of options.

For example:

client: qpu
solver:
  num_active_qubits:
    gt: 4000
  topology:
    type: pegasus

This would enable a partial update (PATCH with a diff), e.g:

solver:
  topology:
    type: chimera

Another possible syntax (closer to the current INI format, is TOML):

[defaults]
token = "..."

[qpu-chimera]
solver.topology.type = "chimera"

[dqm-nonbulk.solver]
name__regex = ".*(?<!bulk)$"
supported_problem_types__contains = "dqm"

randomir avatar Sep 17 '20 19:09 randomir