cirKITers / qml-essentials

Python package with commonly used Ansaetze, tools and data-reuploading model in quantum machine learning.
https://cirkiters.github.io/qml-essentials/
MIT License
0 stars 0 forks source link

[FR] Swap parameter for global and n-local measure #35

Closed stroblme closed 1 month ago

stroblme commented 2 months ago

Is your feature request related to a problem? Please describe. Currently, specifying output_qubit=-1 refers to a global measure (i.e. parity) whereas output_qubit=[0,1,2] refers to a n-local (n=3) measure. In experiments where we scale up the number of qubits, this would require adjusting the output_qubit list accordingly which is prone to errors.

Describe the solution you'd like As a global (parity) measure is a rare use-case I would suggest to swap the above definition, i.e.:

Describe alternatives you've considered Leave as is.

Additional context N/A