ae_sine_integral

Mandatory code for softaware implemetation of the Benchmark Test Case of AE kernel

tnbs.BTC_02_AE.QQuantLib.ae_sine_integral.run_id(n_qbits=None, interval=0, repetitions=None, ae_config=None, qpu=None, save_=False, folder_path=None)
tnbs.BTC_02_AE.QQuantLib.ae_sine_integral.save(save, save_name, input_pdf, save_mode)

For saving panda DataFrames to csvs

Parameters:
  • save (bool) – For saving or not

  • save_nam (str) – name for file

  • input_pdf (pandas DataFrame)

  • save_mode (str) – saving mode: overwrite (w) or append (a)

tnbs.BTC_02_AE.QQuantLib.ae_sine_integral.sine_integral(n_qbits, interval, ae_dictionary)

Function for solving the sine integral between two input values:

Parameters:
  • n_qbits (int) – for discretization of the input domain in 2ⁿ intervals

  • interval (int) –

    Interval for integration: Only can be:

    0 : [0,3π/8] 1 : [π, 5π/4]

  • ae_dictionary (dict) – dictionary with the complete amplitude estimation algorithm configuration

Returns:

pdf – DataFrame with the complete information of the benchmark

Return type:

pandas DataFrame

Sub-packages