You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1 - Running qml.data.load("other", name="mqt-bench") returns the dataset.
2 - Running qml.data.load("other", name="mqt-bench", attributes=["ae"]) returns the "ae" algorithm from the dataset (same behavior for all algorithms)
1 - Running qml.data.load("other", name="mqt-bench") returns an array of 1 element where the element is the dataset.
2 - Running qml.data.load("other", name="mqt-bench", attributes=["ae"]) gives the error ValueError: '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 with ds.ae.
Downsides of this method :
It's not efficient to load the whole dataset (just under 17GB) if you only want one algorithm.
It doesn't directly allow the selection of the algorithms with a string variable.
It doesn't work for these 4 algorithms that contain a - in their name because the - is interpreted as a subtraction operator. ["grover-noancilla", "grover-v-chain", "qwalk-noancilla", "qwalk-v-chain"]
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 - Running
qml.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 - Running
qml.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
The text was updated successfully, but these errors were encountered: