snu-quiqcl / iquip

Ion trap Quantum computing User Interface Project
GNU General Public License v3.0
7 stars 0 forks source link

Minimal `DataViewerApp` part 4: Final #176

Closed kangz12345 closed 1 year ago

kangz12345 commented 1 year ago

This closes #144.

I'm sorry for the large diffs. I will try to separate it if you feel too much.

Initial state: Screen Shot 2023-09-26 at 11 58 10

After clicking "Sync": Screen Shot 2023-09-26 at 14 15 26

Dataset user guide

Users have to build their dataset in the following format:

class Test(EnvExperiment):
    def prepare(self):
        self.set_dataset("name", [], broadcast=True)  # must not be in @kernel
        self.set_dataset("name.parameters", ["Param1", "Param2"], broadcast=True)
        self.set_dataset("name.units", ["Unit1", ""], broadcast=True)  # no unit for param2

    @kernel
    def run(self):
        cnt = 0  # photon count
        value1 = 1e-6  # param1 value
        value2 = 2  # param2 value
        self.append_to_dataset("name", [cnt, value1, value2])

Then in the GUI, enter the dataset name "name" in the line edit and click "Sync" button. Then the axis combo boxes will work. After selecting the axes, click "Apply" button.

"Remote" mode is not implemented yet - will be implemented later (not in this PR)!

BECATRUE commented 1 year ago

Could you attach a screenshot?