Qblox backend: configure gain in separate method

Explanation of changes

Gain is now set in a separate method, as earlier code assumed that outputs didn't exist. Also fixed bug where gain method assumed that there was either a real input or complex input. Also throw exception if user tries to overwrite gain.

Motivation of changes

We have to be able to select gain for inputs defined, also current implementation assumes only one gain is defined in either real or complex output.


Merge checklist

See also merge request guidelines

  • Merge request has been reviewed (in-depth by a knowledgeable contributor), and is approved by a project maintainer.
  • New code is covered by unit tests (or N/A).
  • New code is documented and docstrings use numpydoc format (or N/A).
  • New functionality: considered making private instead of extending public API (or N/A).
  • Public API changed: added @deprecated (or N/A).
  • Tested on hardware (or N/A).
  • CHANGELOG.md and AUTHORS.md have been updated (or N/A).
  • Windows tests in CI pipeline pass (manually triggered by maintainers before merging).

For reference, the issues workflow is described in the contribution guidelines.

Edited by David Vos

Merge request reports

Loading