Open vbrodeur opened 2 months ago
Hi @vbrodeur! Thanks for putting this together!
We're aware of this issue, but enabling the attribute-download functionality requires making a few structural changes in how we store and access the datasets. We are planning to take this work on between now and the end of the year, along with other dataset improvements.
I will reply here again when we have a clearer timeline.
Expected behavior
1 - Running
qml.data.load("other", name="mqt-bench")
returns the dataset. 2 - Runningqml.data.load("other", name="mqt-bench", attributes=["ae"])
returns the "ae" algorithm from the dataset (same behavior for all algorithms)These lines are from the MQT Bench dataset documentation, in the download button.
Actual behavior
1 - Running
qml.data.load("other", name="mqt-bench")
returns an array of 1 element where the element is the dataset. 2 - Runningqml.data.load("other", name="mqt-bench", attributes=["ae"])
gives the errorValueError: 'ae' is an invalid attribute for 'other'. Valid attributes are: []
( again, same behavior for all algorithms)Additional information
To access a single algorithm, the way around this that I'm using is to first load the whole dataset by accessing the element of the array with
ds=qml.data.load("other", name="mqt-bench")[0]
and then select the algorithm from the dataset withds.ae
.Downsides of this method :
-
in their name because the-
is interpreted as a subtraction operator.["grover-noancilla", "grover-v-chain", "qwalk-noancilla", "qwalk-v-chain"]
Source code
Tracebacks
No response
System information
Existing GitHub issues