Published March 10, 2021 | Version v1
Dataset Open

Experimental quantum speed-up in reinforcement learning agents

  • 1. University of Vienna
  • 2. University of Innsbruck
  • 3. Leiden University
  • 4. IQOQI Vienna
  • 5. Massachusetts Institute of Technology
  • 6. Nokia Corporation

Description

The content of the text files can be used to reproduce the experimental plots presented in the manuscript. All the files contain sequences of numbers "0" and "1", which represent the non-reward and reward assigned to the agent after every epoch, respectively. In more detail, three different cases are shown: classical strategy, quantum strategy, and combined strategy.

1. Classical strategy

The text files named "Classical_10agents_1000rounds.txt", "Classical_139agents_1000rounds.txt", and  "Classical_16agents_1000rounds.txt" consist of 10, 139, and 16 consecutive sequences of 1000 numbers, respectively. Each of these sequences corresponds to one agent playing 1000 epochs. Therefore, there are in total 10+139+16=165 agents, each playing 1000 epochs. Merging these files and averaging the epoch outcomes 0 or 1 over all the 165 agents will make it possible to reproduce the behaviour of the average reward for the classical strategy. 

2. Quantum strategy

The text file named "Quantum_165agents_500rounds.txt" contains 165 arrays of length 500. Similarly to the previous case, the content of each array is progressively created every time the agent plays an epoch. 500 epochs are played. Also in this case, averaging the different outcomes over all the 165 agents will reproduce the behaviour of the average reward for the quantum strategy.

3. Combined strategy

In this case, one file is acquired for the quantum strategy, and one for the classical strategy. These files are named "Combined_quantum_165agents.txt" and "Combined_classical_165agents.txt", respectively. Also in this case, 165 arrays (representing the 165 agents) are present in both files. However, the length of these arrays is not always the same. Taking as an example the first array of both the quantum and the classical files, there are 47 elements in the quantum case and 906 in the classical case. This means that the agent has played 47 quantum epochs before switching to a classical strategy. Therefore, in order to combine these two cases, one needs to merge the quantum array with the classical array, where only the even-indexed elements have been selected in the classical file. In this way, one obtains 47+906/2=500 epochs. The same procedure applies to the rest of the arrays. After 165 arrays of length 500 are obtained, the average over all the agents can be performed, and the plot for the combined strategy can thus be reproduced. 

Files

Classical_10agents_1000rounds.txt

Files (4.5 MB)

Name Size Download all
md5:9d04df2ae97dc755c8eccbee766bad62
220.0 kB Preview Download
md5:e0d698c2a200d5e95e15a445b075c54d
3.1 MB Preview Download
md5:493f5c9f7790c8eb49ad83c6983ef943
352.0 kB Preview Download
md5:3ace2a92bc2b07bcc207873d177fa5ca
443.0 kB Preview Download
md5:983436cc51bf02ffb34d382f701dfba2
26.5 kB Preview Download
md5:bc2b9e774d2ffc7d96e27f6d086b1bef
412.8 kB Preview Download

Additional details

Related works