Skip to content

Cleanup backend data fields #2355

@jyu00

Description

@jyu00

What is the expected feature or enhancement?

IBMBackend configuration currently requires these fields to be present when retrieving data from the server:

backend_name: str,
backend_version: str,
n_qubits: int,
basis_gates: list,
gates: list,
local: bool,
simulator: bool,
conditional: bool,
open_pulse: bool,
memory: bool,
coupling_map: list,

This data model was originally created for generic QPUs. Now that it's for IBM Quantum backends only, some of the fields no longer make sense and should not be required:

  • local (should default to false)
  • simulator (should default to false)
  • conditional
  • open_pulse (should default to false)
  • memory - Ideally this would be renamed to something more intuitive, but that's probably too much work. At the very least the description should be clearer than "backend supports memory" lol

In addition, the docstring here says

Here is list of attributes available on the ``IBMBackend`` class:

which is not accurate. tags, for example, is not an attribute of IBMBackend. Some of the other attributes, such as parametric_pulses are no longer relevant and should be removed.

Acceptance criteria

  • Remove backend configuration data that is no longer relevant from the docstring
  • Make required fields that are no longer relevant optional, so the server can stop reporting them.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions