Skip to content

Commit

Permalink
Merge pull request #385 from QunaSys/fix-star-arch-cost-calcs
Browse files Browse the repository at this point in the history
Fixed an error in STAR device where physical error rate exceed a certain value
  • Loading branch information
kwkbtr authored Nov 1, 2024
2 parents ffbeddb + 26a1def commit 5ded408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/quri_parts/backend/devices/star_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def logical_error_model(ci: float, pthi: float, p: float, d: int) -> float:
def logical_error_round(p: float, d: int) -> float:
plz = logical_error_model(ci=0.067976, pthi=0.0038510, p=p, d=d)
plx = logical_error_model(ci=0.081997, pthi=0.0041612, p=p, d=d)
return plz + plx
return min(plz + plx, 1.0)

logical_fidelity_round = 1.0 - logical_error_round(
p=physical_error_rate, d=code_distance
Expand Down

1 comment on commit 5ded408

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.