Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions quantinuum_schemas/models/backend_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,15 +389,9 @@ def validate_runtime_and_error_model(self) -> Self:
)
if isinstance(self.error_model, HeliosCustomErrorModel):
if isinstance(self.simulator, StabilizerSimulator):
if self.error_model.error_params.coherent_dephasing is False:
raise ValueError(
"HeliosErrorModel with StabilizerSimulator must have "
"coherent_dephasing set to True"
)
else:
if self.error_model.error_params.coherent_dephasing is True:
raise ValueError(
"HeliosErrorModel with non-StabilizerSimulator must have "
"HeliosErrorModel with StabilizerSimulator must have "
"coherent_dephasing set to False"
)

Expand Down