Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For many benchmarks, change default backend_id in run() to be None #637

Merged
merged 5 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion amplitude-estimation/qiskit/ae_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def a_from_s_int(s_int, num_counting_qubits):
# Execute program with default parameters
def run(min_qubits=3, max_qubits=8, skip_qubits=1, max_circuits=3, num_shots=100,
num_state_qubits=1, # default, not exposed to users
backend_id='qasm_simulator', provider_backend=None,
backend_id=None, provider_backend=None,
hub="ibm-q", group="open", project="main", exec_options=None,
context=None):

Expand Down
2 changes: 1 addition & 1 deletion deutsch-jozsa/qiskit/dj_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def analyze_and_print_result (qc, result, num_qubits, type, num_shots):

# Execute program with default parameters
def run (min_qubits=3, max_qubits=8, skip_qubits=1, max_circuits=3, num_shots=100,
backend_id='qasm_simulator', provider_backend=None,
backend_id=None, provider_backend=None,
hub="ibm-q", group="open", project="main", exec_options=None,
context=None):

Expand Down
4 changes: 2 additions & 2 deletions hhl/qiskit/hhl_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def analyze_and_print_result (qc, result, num_qubits, s_int, num_shots):

def run (min_qubits=3, max_qubits=6, skip_qubits=1, max_circuits=3, num_shots=100,
method = 1, use_best_widths=True, min_register_qubits=1,
backend_id='qasm_simulator', provider_backend=None,
backend_id=None, provider_backend=None,
hub="ibm-q", group="open", project="main", exec_options=None,
context=None):

Expand Down Expand Up @@ -707,7 +707,7 @@ def run2 (min_input_qubits=1, max_input_qubits=3, skip_qubits=1,
min_clock_qubits=1, max_clock_qubits=3,
max_circuits=3, num_shots=100,
method=2, use_best_widths=False, min_register_qubits=1,
backend_id='qasm_simulator', provider_backend=None,
backend_id=None, provider_backend=None,
hub="ibm-q", group="open", project="main", exec_options=None,
context=None):

Expand Down
2 changes: 1 addition & 1 deletion maxcut/qiskit/auxiliary_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def plot_worst_best_init_conditions(worst_dict, best_dict):


def radar_plot(min_qubits=4, max_qubits=6, num_shots=1000, restarts=10, objective_func_type='approx_ratio',
rounds=1, degree=3, backend_id='qasm_simulator', provider_backend=None,
rounds=1, degree=3, backend_id=None, provider_backend=None,
hub="ibm-q", group="open", project="main", exec_options=None,
):

Expand Down
2 changes: 1 addition & 1 deletion maxcut/qiskit/maxcut_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ def run (min_qubits=3, max_qubits=6, skip_qubits=2,
fixed_metrics={}, num_x_bins=15, y_size=None, x_size=None, use_fixed_angles=False,
objective_func_type = 'approx_ratio', plot_results = True,
save_res_to_file = False, save_final_counts = False, detailed_save_names = False, comfort=False,
backend_id='qasm_simulator', provider_backend=None, eta=0.5,
backend_id=None, provider_backend=None, eta=0.5,
hub="ibm-q", group="open", project="main", exec_options=None,
context=None,
_instances=None):
Expand Down
2 changes: 1 addition & 1 deletion monte-carlo/qiskit/mc_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def expectation_from_bits(bits, num_qubits, num_shots, method):
# Execute program with default parameters
def run(min_qubits=MIN_QUBITS, max_qubits=10, skip_qubits=1, max_circuits=1, num_shots=100,
epsilon=0.05, degree=2, num_state_qubits=MIN_STATE_QUBITS, method = 2, # default, not exposed to users
backend_id='qasm_simulator', provider_backend=None,
backend_id=None, provider_backend=None,
hub="ibm-q", group="open", project="main", exec_options=None,
context=None):

Expand Down
2 changes: 1 addition & 1 deletion shors/qiskit/shors_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def analyze_and_print_result(qc, result, num_qubits, order, num_shots, method):

# Execute program with default parameters
def run (min_qubits=3, max_circuits=1, max_qubits=18, num_shots=100, method = 1,
verbose=verbose, backend_id='statevector_sampler', provider_backend=None,
verbose=verbose, backend_id=None, provider_backend=None,
hub="ibm-q", group="open", project="main", exec_options=None,
context=None):

Expand Down
Loading