ClusterΒΆ

In the previous sections we explained how to configure the backend for use with the standalone Pulsars, now we will explain how to adapt this config to use one or multiple Clusters instead. Since the cluster modules behave similarly, we recommend first familiarizing yourself with the configuration for the pulsars.

We start by looking at an example config for a single cluster:

 1mapping_config = {
 2    "backend": "quantify_scheduler.backends.qblox_backend.hardware_compile",
 3    "cluster0": {
 4        "cluster0_module1": {
 5            "complex_output_0": {
 6                "lo_name": "lo0",
 7                "portclock_configs": [
 8                    {
 9                        "clock": "q4.01",
10                        "interm_freq": 200000000.0,
11                        "mixer_amp_ratio": 0.9999,
12                        "mixer_phase_error_deg": -4.2,
13                        "port": "q4:mw",
14                    },
15                ]
16            },
17            "instrument_type": "QCM",
18        },
19        "cluster0_module2": {
20            "complex_output_0": {
21                "portclock_configs": [
22                    {
23                        "clock": "q5.01",
24                        "interm_freq": 50000000.0,
25                        "port": "q5:mw"
26                    }
27                ]
28            },
29            "instrument_type": "QCM_RF",
30        },
31        "instrument_type": "Cluster",
32        "ref": "internal",
33    },
34    "lo0": {"instrument_type": "LocalOscillator", "frequency": None, "power": 20},
35}

In the example, we notice that the cluster is specified using an instrument with "instrument_type": "Cluster". In the backend, the cluster instrument functions as a collection of modules. The modules themselves can be configured identically to pulsars, except for the ref, which has now become a cluster wide setting.

Valid values for "instrument_type" for the modules are: QCM, QRM, QCM_RF and QRM_RF.