Skip to content

Commit

Permalink
Merge pull request #34 from QuEraComputing/dev_0.3.1
Browse files Browse the repository at this point in the history
Release 0.3.1
  • Loading branch information
weinbe58 authored Apr 6, 2023
2 parents 6f9d37b + b784e3f commit 9c41dbc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "quera-ahs-utils"
version = "0.3.0"
version = "0.3.1"
authors = [
{ name="Phillip Weinberg", email="pweinberg@quera.com" },
{ name="John Long", email="jlong@quera.com" }
Expand Down
2 changes: 1 addition & 1 deletion src/quera_ahs_utils/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.3.0'
__version__ = '0.3.1'
15 changes: 8 additions & 7 deletions src/quera_ahs_utils/quera_ir/task_specification.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __hash__(self):
return hash((RabiFrequencyAmplitude, self.global_))

def discretize(self, task_capabilities: QuEraCapabilities):
global_time_resolution = task_capabilities.capabilities.rydberg.global_.time_delta_min
global_time_resolution = task_capabilities.capabilities.rydberg.global_.time_resolution
global_value_resolution = task_capabilities.capabilities.rydberg.global_.rabi_frequency_resolution

return RabiFrequencyAmplitude(**{"global":GlobalField(
Expand All @@ -62,8 +62,8 @@ def __hash__(self):
return hash((RabiFrequencyPhase, self.global_))

def discretize(self, task_capabilities: QuEraCapabilities):
global_time_resolution = task_capabilities.capabilities.rydberg.global_.time_delta_min
global_value_resolution = task_capabilities.capabilities.rydberg.global_.rabi_frequency_resolution
global_time_resolution = task_capabilities.capabilities.rydberg.global_.time_resolution
global_value_resolution = task_capabilities.capabilities.rydberg.global_.phase_resolution

return RabiFrequencyPhase(**{"global":GlobalField(
times = discretize_list(self.global_.times, global_time_resolution),
Expand All @@ -83,14 +83,15 @@ def __hash__(self):
return hash((Detuning, self.global_, self.local))

def discretize(self, task_capabilities: QuEraCapabilities):
global_time_resolution = task_capabilities.capabilities.rydberg.global_.time_delta_min
global_value_resolution = task_capabilities.capabilities.rydberg.global_.rabi_frequency_resolution

global_time_resolution = task_capabilities.capabilities.rydberg.global_.time_resolution
global_value_resolution = task_capabilities.capabilities.rydberg.global_.detuning_resolution
local_time_resolution = task_capabilities.capabilities.rydberg.local.time_resolution

return Detuning(**{"global":GlobalField(
times = discretize_list(self.global_.times, global_time_resolution),
values = discretize_list(self.global_.values, global_value_resolution)
),"local": LocalField(
times = self.local.times, values = self.local.values,
times = discretize_list(self.local.times, local_time_resolution), values = self.local.values,
lattice_site_coefficients=self.local.lattice_site_coefficients
)
}
Expand Down

0 comments on commit 9c41dbc

Please sign in to comment.