How qua-platform/py-qua-tools works
Main Project Components
• Core Package (qualang_tools): This is the heart of the project. Almost every module (loops, plotting, results, units, analysis, bakery, video mode, configuration tools, control panel, macros, digital filters, voltage gates, wirer, etc.) is located under this umbrella.
• Submodules/Components: Each subdirectory under qualang_tools is essentially a distinct component or library with a specific purpose. For example:
• QUA Loops Tools (qualang_tools/loops)
• Plotting Tools (qualang_tools/plot)
• Results/Data Handling Tools (qualang_tools/results)
• Units Tools (qualang_tools/units)
• Analysis Tools (qualang_tools/analysis)
• Octave Tools (qualang_tools/octave_tools)
• Multi-user Tools (qualang_tools/multi_user)
• Simulator Tools (qualang_tools/simulator)
• Bakery (for waveform building)
• External Frameworks integration (qualang_tools/external_frameworks, notably QCoDeS)
• Video Mode (qualang_tools/video_mode)
• Addons (qualang_tools/addons including calibration and interactive plotting)
• Config Tools (qualang_tools/config, with further clusters for integration weights, waveform tools, GUI, and builder)
• Control Panel (qualang_tools/control_panel)
• Macros (qualang_tools/macros)
• Digital Filters (qualang_tools/digital_filters)
• Voltage Gates (qualang_tools/voltage_gates)
• Wirer (qualang_tools/wirer, which automates channel allocation)
Out Relationships and Interactions
• That the core qualang_tools package acts as a container where each module offers its API. Modules are designed to be used individually, but they also interact when a user is setting up experiments.
• That certain modules interact directly:
• “Config Tools” are critical for setting up experimental parameters and are used to generate configuration files that are then consumed by “Control Panel”, “Bakery”, “Voltage Gates”, etc.
• “External Frameworks” module enables integration with frameworks such as QCoDeS, providing drivers that link external control software with the experimental setup.
• “Simulator Tools” and “Multi-user Tools” provide additional support for either testing or collaborative environments.
• Optionally, sketch a separate cluster/collection illustrating the “Examples” and “Tests” directories. This shows how the tools are validated (using unit tests and integration tests) and demonstrated (through example usage).
Architectural Patterns
• Layered/Abstraction Layers: There is a distinction between lower level “configuration and control” (e.g., Config Tools, Control Panel) and higher-level “analysis and visualization” (e.g., Results, Plotting, Analysis Tools).
• Integration with External Services: The external integration (like QCoDeS for instrument drivers) is represented as standalone components that plug into the system through clearly defined APIs.
Relevant Technologies and Tools
• Python: This is the primary language (indicated by pyproject.toml, tests written in Python, etc.)
• Dependencies for extras: For example, “Interactive Plot Library” or additional packages like cirq for two-qubit randomized benchmarking (as mentioned in the README).
• Unit Testing and CI: Show that the “tests” and “.github/workflows” directories are in place, representing the project's CI/CD pipelines.