Skip to content

Commit

Permalink
nboot global parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Edoardo-Pedicillo committed Aug 30, 2023
1 parent edaaa4a commit eca6567
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
7 changes: 6 additions & 1 deletion src/qibocal/auto/operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ class Parameters:
"""Number of executions on hardware"""
relaxation_time: float
"""Wait time for the qubit to decohere back to the `gnd` state"""
nboot: int
"""Number of bootstrap samples"""

@classmethod
def load(cls, parameters):
Expand All @@ -74,7 +76,10 @@ def load(cls, parameters):
the linked outputs
"""
return cls(**parameters)
nboot = parameters.pop("nboot", 0)
par = cls(**parameters)
par.nboot = nboot
return par


class Data:
Expand Down
1 change: 0 additions & 1 deletion src/qibocal/auto/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ def run(
except RuntimeError:
operation = dummy_operation
parameters = DummyPars()

if operation.platform_dependent and operation.qubits_dependent:
if len(self.qubits) > 0:
if platform is not None:
Expand Down
2 changes: 0 additions & 2 deletions src/qibocal/protocols/characterization/ramsey.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ class RamseyParameters(Parameters):
"""Number of shots."""
relaxation_time: Optional[int] = None
"""Relaxation time (ns)."""
nboot: int = 0
"""Number of bootstrap samples"""


@dataclass
Expand Down

0 comments on commit eca6567

Please sign in to comment.