# Copyright 2022 Tiernan8r
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
File where all constants related to UI functionality are defined.
"""

#: The widget name for the input search text box
INPUT_NQBITS_NAME = "input_nqbits_pe"
#: The widget name for the input target text box
INPUT_UNITARY_NAME = "table_input_unitary_pe"
#: Widget for the unitary matrix combo box
UNITARY_MATRIX_COMBO_BOX = "unitary_matrix_combo_box"
#: Spinbox widget for phi1
PHI_ONE_SPIN_BOX = "phi_1_spin_box"
#: Phi one label
PHI_ONE_LABEL = "label_phi_1"
#: Phi two spin box
PHI_TWO_SPIN_BOX = "phi_2_spinbox"
#: Phi two label
PHI_TWO_LABEL = "label_phi_2"
#: Eigenvector combo box
EIGENVECTOR_COMBO_BOX = "eigenvector_combo_box"

#: The widget name for the input target text box
INPUT_EIGENVECTOR_NAME = "table_input_eigenvector_pe"

#: Precision spin box
PRECISION_SPIN_BOX = "precision_spin_box"
#: Success rate spin box
SUCCESS_RATE_SPIN_BOX = "success_rate_spin_box"
#: Number of qbits label
NQBITS_LABEL = "label_nqbits_display"
#: Button to determine optimum nqbits
DETERMINE_NQBITS_BUTTON = "button_determine_nqbits"

#: The widget name for the button to initialise the search
BUTTON_START = "estimate_phase_button_pe"
#: The widget name for the button to cancel a search simulation once
#: it is initialised
BUTTON_CANCEL = "cancel_button_pe"

UNITARY_ERROR_LABEL = "unitary_error_label"
EIGENVECTOR_ERROR_LABEL = "eigenvector_error_label"

# Copyright 2022 Tiernan8r
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
File where all constants related to UI functionality are defined.
"""

#: The widget name for the input search text box
INPUT_NQBITS_NAME = "input_nqbits_pe"
#: The widget name for the input target text box
INPUT_UNITARY_NAME = "table_input_unitary_pe"
#: Widget for the unitary matrix combo box
UNITARY_MATRIX_COMBO_BOX = "unitary_matrix_combo_box"
#: Spinbox widget for phi1
PHI_ONE_SPIN_BOX = "phi_1_spin_box"
#: Phi one label
PHI_ONE_LABEL = "label_phi_1"
#: Phi two spin box
PHI_TWO_SPIN_BOX = "phi_2_spinbox"
#: Phi two label
PHI_TWO_LABEL = "label_phi_2"
#: Eigenvector combo box
EIGENVECTOR_COMBO_BOX = "eigenvector_combo_box"

#: The widget name for the input target text box
INPUT_EIGENVECTOR_NAME = "table_input_eigenvector_pe"

#: Precision spin box
PRECISION_SPIN_BOX = "precision_spin_box"
#: Success rate spin box
SUCCESS_RATE_SPIN_BOX = "success_rate_spin_box"
#: Number of qbits label
NQBITS_LABEL = "label_nqbits_display"
#: Button to determine optimum nqbits
DETERMINE_NQBITS_BUTTON = "button_determine_nqbits"

#: The widget name for the button to initialise the search
BUTTON_START = "estimate_phase_button_pe"
#: The widget name for the button to cancel a search simulation once
#: it is initialised
BUTTON_CANCEL = "cancel_button_pe"

UNITARY_ERROR_LABEL = "unitary_error_label"
EIGENVECTOR_ERROR_LABEL = "eigenvector_error_label"

# Copyright 2022 Tiernan8r # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # #     http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. File where all constants related to UI functionality are defined. #: The widget name for the input search text box #: The widget name for the input target text box #: Widget for the unitary matrix combo box #: Spinbox widget for phi1 #: Phi one label #: Phi two spin box #: Phi two label #: Eigenvector combo box #: The widget name for the input target text box #: Precision spin box #: Success rate spin box #: Number of qbits label #: Button to determine optimum nqbits #: The widget name for the button to initialise the search #: The widget name for the button to cancel a search simulation once #: it is initialised