Source code for quantify_scheduler.backends.zhinst.resolvers

# Repository:
# Licensed according to the LICENCE file on the master branch
from __future__ import annotations

from typing import Tuple

import numpy as np
from zhinst import qcodes

from quantify_scheduler.backends.zhinst import helpers as zi_helpers

[docs]def monitor_acquisition_resolver( uhfqa: qcodes.UHFQA, monitor_nodes: Tuple[str, str] ) -> np.ndarray: """ Returns complex value of UHFQA Monitor nodes. Parameters ---------- uhfqa monitor_nodes """ (node_i, node_q) = monitor_nodes results_i = zi_helpers.get_value(uhfqa, node_i) results_q = zi_helpers.get_value(uhfqa, node_q) return np.vectorize(complex)(results_i, results_q)
[docs]def result_acquisition_resolver(uhfqa: qcodes.UHFQA, result_node: str) -> np.ndarray: """ Returns complex value of UHFQA Result node. Parameters ---------- uhfqa result_node """ return zi_helpers.get_value(uhfqa, result_node)