config.toml 987 字节
Newer Older
Q
Quleaf 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
# The configuration file of quantum portfolio optimization problem.


# This field specifies whether to use random data for stocks, or stock data provided by the customer.


# stock = 'random'
# stock = 'custom'
stock = 'demo'

# Get stock data from demo file or custom file
demo_data_path = 'demo_stock.csv'
custom_data_path = 'file_name.csv'

# Specifies the start_time and end_time of random stock 
[random_data]
start_time = [2016, 1, 1]
end_time = [2016, 1, 30]

# This field stores information about the asset, risk, etc.
[stock_para]
# Number of investable projects
num_asset = 7
# The risk factor of investment decision making
risk_weight = 0.5
# The budget
budget = 0
#The penalty
penalty = 0

# This field stores parameters for the parametric quantum circuits
[train_para]
# The depth of the quantum circuits
circuit_depth = 2
# Number of optimization cycles, default is 100.
iterations = 600
# The rate of optimization of gradient descent, default is 0.4.
learning_rate = 0.2