Skip to content

Commit

Permalink
Merge branch 'octaves' into qmunrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros11 committed Feb 16, 2024
2 parents 7af1dee + 1affed0 commit 4889778
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
20 changes: 14 additions & 6 deletions src/qibolab/instruments/qm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,19 +341,27 @@ def register_integration_weights(self, qubit, readout_len):
readout_len (int): Duration of the readout pulse in ns.
"""
angle = 0
cos, sin = np.cos(angle), np.sin(angle)
if qubit.kernel is None:
convert = lambda x: [(x, readout_len)]
else:
cos = qubit.kernel * cos
sin = qubit.kernel * sin
convert = lambda x: x

self.integration_weights.update(
{
f"cosine_weights{qubit.name}": {
"cosine": [(np.cos(angle), readout_len)],
"sine": [(-np.sin(angle), readout_len)],
"cosine": convert(cos),
"sine": convert(-sin),
},
f"sine_weights{qubit.name}": {
"cosine": [(np.sin(angle), readout_len)],
"sine": [(np.cos(angle), readout_len)],
"cosine": convert(sin),
"sine": convert(cos),
},
f"minus_sine_weights{qubit.name}": {
"cosine": [(-np.sin(angle), readout_len)],
"sine": [(-np.cos(angle), readout_len)],
"cosine": convert(-sin),
"sine": convert(-cos),
},
}
)
2 changes: 1 addition & 1 deletion src/qibolab/instruments/qm/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class QMController(Controller):
"""Smearing used for hardware signal integration."""
calibration_path: Optional[str] = None
"""Path to the JSON file that contains the mixer calibration."""
script_file_name: Optional[str] = "qua_script.py"
script_file_name: Optional[str] = None
"""Name of the file that the QUA program will dumped in that after every
execution.
Expand Down

0 comments on commit 4889778

Please sign in to comment.