Skip to content

Allowing more flexible parametrization of the cost estimate functions #768

Description

@PabloAMC

In the recent cost estimates functions, there are a number of hardcoded parameters in the system:

for logical_data_qubit_distance in range(7, 35, 2):
params = AlgorithmParameters(
physical_error_rate=physical_error_rate,
surface_code_cycle_time=datetime.timedelta(microseconds=1),
logical_data_qubit_distance=logical_data_qubit_distance,
magic_state_factory=factory,
toffoli_count=num_toffoli,
max_allocated_logical_qubits=num_logical_qubits,
factory_count=4,
routing_overhead_proportion=0.5,
proportion_of_bounding_box=portion_of_bounding_box)
cost = params.estimate_cost()
if cost.algorithm_failure_probability > 0.1:

Should we add them as parameters to some class that the user can willingly change?

Activity

  1. added
    a: functionalityArea: the features and operations implemented in OpenFermion
    on Jun 5, 2025
  2. dhanvanthbalaji commented on Sep 29, 2026

    @dhanvanthbalaji

    Hi @mhucka! I'm a student working on a course project. I'd love to take this issue and make these hardcoded parameters configurable. Could you assign this to me?

  3. mhucka commented on Oct 2, 2026

    @mhucka
    Collaborator

    @dhanvanthbalaji Thank you for your interest! It's assigned to you now.

  4. added a commit that references this issue on Oct 4, 2026
    91011d5
  5. dhanvanthbalaji commented on Oct 4, 2026

    @dhanvanthbalaji

    Hi @mhucka,I’ve opened Pull Request #1460 to make these cost estimator parameters configurable! All CI tests and formatting checks are now passing green. Whenever you have a chance, I’d appreciate a review. Thanks!

  6. added
    e: experiencedExpertise level: needs experience with OpenFermion development
    on Oct 9, 2026
  7. locked and limited conversation to collaborators on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

a: functionalityArea: the features and operations implemented in OpenFermione: experiencedExpertise level: needs experience with OpenFermion development

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions