Skip to content

Commit

Permalink
Add experiment.
Browse files Browse the repository at this point in the history
  • Loading branch information
fdmalone committed Jun 29, 2024
1 parent e67029c commit 6393534
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions recirq/qcqmc/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def path_string(self) -> str:

def _json_dict_(self):
simple_dict = attrs.asdict(self)
simple_dict["blueprint_params"] = cirq.to_json(self.blueprint_params)
simple_dict["blueprint_params"] = self.blueprint_params
return simple_dict


Expand All @@ -87,7 +87,7 @@ class ExperimentData(data.Data):

def _json_dict_(self):
simple_dict = attrs.asdict(self)
simple_dict["params"] = self.params._json_dict_() # type: ignore
simple_dict["params"] = self.params
return simple_dict


Expand Down
1 change: 0 additions & 1 deletion recirq/qcqmc/experiment_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,4 @@ def test_small_experiment_raw_samples_shape(
assert raw_samples.shape == (17, 31, 4)

exp2 = cirq.read_json(json_text=cirq.to_json(experiment))
print(exp2)
assert exp2 == experiment

0 comments on commit 6393534

Please sign in to comment.