q-optimize / c3

Toolset for control, calibration and characterization of physical systems
https://c3-toolset.readthedocs.io/
Apache License 2.0
66 stars 36 forks source link

Large numbers of parameters unreadable #224

Closed nwittler closed 2 years ago

nwittler commented 2 years ago

Describe the missing feature

When dealing with vector or matrix valued parameters, the human-readable output of pmap.print_parameters() becomes cluttered, e.g.

Q1-freq                               : 5.430 GHz 2pi                                                                                                                                                                                                       
Q2-freq                               : 5.976 GHz 2pi                                                                                                                                                                                                       
Q1-anhar                              : -118.324 MHz 2pi                                                                                                                                                                                                    
Q2-anhar                              : -68.038 MHz 2pi                                                                                                                                                                                                     
Q1-Q2-strength                        : 137.502 MHz 2pi                                                                                                                                                                                                     
cr90-d1-pwc-quadrature                : 0.000  159.482 m 296.712 m 412.718 m 609.810 m 722.784 m 843.298 m 893.577 m 967.758 m 978.696 m 1.016  1.010  1.021  985.421 m 1.009  1.020  1.031  1.000  1.007  1.006  1.034  1.011  1.006  1.007  1.034  1.014  
1.007  1.004  1.032  1.006  1.015  1.031  1.042  989.423 m 985.241 m 1.012  1.054  1.011  981.901 m 991.081 m 1.030  1.014  993.214 m 983.574 m 1.028  1.030  1.011  982.348 m 1.024  1.034  1.025  981.942 m 1.018  1.045  1.036  972.719 m 994.116 m 1.039
  1.048  1.000  1.007  1.026  1.037  1.009  1.024  1.021  1.033  1.017  1.027  1.017  1.041  1.008  1.022  1.023  1.050  1.024  1.027  1.011  1.032  1.016  1.045  1.034  1.024  998.071 m 1.028  1.028  1.037  1.009  1.021  1.005  1.033  1.012  981.572 m
 883.220 m 818.638 m 712.061 m 592.912 m 439.018 m 329.806 m 172.603 m                                                                                                                                                                                      
cr90-d1-pwc-inphase                   : 0.000  193.878 m 353.586 m 437.062 m 591.027 m 701.290 m 841.439 m 890.359 m 978.347 m 984.603 m 1.014  991.387 m 1.042  1.007  1.004  978.025 m 1.039  1.008  1.023  987.880 m 1.042  1.012  1.024  976.941 m 1.031
  1.006  1.043  996.407 m 1.032  998.759 m 1.027  987.841 m 1.041  1.020  1.045  969.789 m 1.011  1.012  1.055  961.604 m 995.231 m 1.000  1.071  978.015 m 986.130 m 976.147 m 1.064  999.816 m 1.018  985.505 m 1.063  1.008  1.015  961.883 m 1.058  1.03
4  1.033  953.843 m 1.047  1.024  1.043  968.123 m 1.046  1.017  1.062  992.531 m 1.035  993.508 m 1.057  993.306 m 1.048  1.014  1.058  988.321 m 1.032  1.008  1.070  1.005  1.037  1.001  1.055  1.015  1.040  993.920 m 1.042  1.001  1.041  1.022  1.05
7  978.027 m 1.000  1.002  1.029  889.503 m 817.980 m 712.594 m 624.142 m 417.308 m 301.129 m 168.364 m    

Describe the solution you'd like

Truncate this representation and refer to the machine-readable log for plotting and inspection.

Describe alternatives you've considered

How have you tried to resolve it in the current version of the code? Have you considered non c3-toolset alternative solutions? Please elaborate.

Additional context

Add any other context or screenshots about the feature request here. Please feel free to suggest details about how you believe this feature request might be best implemented. If you have used similar features in other libraries, consider providing links or resources to example implementations.