Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 30, 2024
1 parent fdb0c86 commit b643fc1
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/qibolab/instruments/qblox/cluster_qcm_bb.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Qblox Cluster QCM driver."""

import copy
import json

Expand Down
1 change: 1 addition & 0 deletions src/qibolab/instruments/qblox/cluster_qcm_rf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Qblox Cluster QCM-RF driver."""

import copy
import json

Expand Down
13 changes: 7 additions & 6 deletions src/qibolab/instruments/qblox/cluster_qrm_rf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Qblox Cluster QRM-RF driver."""

import copy
import json
import time
Expand Down Expand Up @@ -989,9 +990,9 @@ def acquire(self):
if len(sequencer.pulses.ro_pulses) == 1:
pulse = sequencer.pulses.ro_pulses[0]
frequency = self.get_if(pulse)
acquisitions[pulse.qubit] = acquisitions[
pulse.id
] = AveragedAcquisition(scope, duration, frequency)
acquisitions[pulse.qubit] = acquisitions[pulse.id] = (
AveragedAcquisition(scope, duration, frequency)
)
else:
raise RuntimeError(
"Software Demodulation only supports one acquisition per channel. "
Expand All @@ -1001,9 +1002,9 @@ def acquire(self):
results = self.device.get_acquisitions(sequencer.number)
for pulse in sequencer.pulses.ro_pulses:
bins = results[pulse.id]["acquisition"]["bins"]
acquisitions[pulse.qubit] = acquisitions[
pulse.id
] = DemodulatedAcquisition(bins, duration)
acquisitions[pulse.qubit] = acquisitions[pulse.id] = (
DemodulatedAcquisition(bins, duration)
)

# Provide Scope Data for verification (assuming memory reseet is being done)
if len(sequencer.pulses.ro_pulses) == 1:
Expand Down
1 change: 1 addition & 0 deletions src/qibolab/platform.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""A platform for executing quantum algorithms."""

import copy
from collections import defaultdict
from dataclasses import dataclass, field, replace
Expand Down
1 change: 1 addition & 0 deletions src/qibolab/pulses/plot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Plotting tools for pulses and related entities."""

import matplotlib.pyplot as plt
import numpy as np

Expand Down
1 change: 1 addition & 0 deletions src/qibolab/pulses/pulse.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Pulse class."""

from dataclasses import dataclass, fields
from enum import Enum
from typing import Optional
Expand Down
1 change: 1 addition & 0 deletions src/qibolab/pulses/shape.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""PulseShape class."""

import re
from abc import ABC, abstractmethod

Expand Down
1 change: 1 addition & 0 deletions tests/pulses/test_pulse.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests ``pulses.py``."""

import copy

import numpy as np
Expand Down
1 change: 0 additions & 1 deletion tests/test_instruments_qblox.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
- safe disconnection of offsets on termination
"""


# from .conftest import load_from_platform

# INSTRUMENTS_LIST = ["Cluster", "ClusterQRM_RF", "ClusterQCM_RF"]
Expand Down

0 comments on commit b643fc1

Please sign in to comment.