




import qiskit



def 							_A       (						lowerCAmelCase_					: int       ,    lowerCAmelCase_					: int      ):
     """simple docstring"""

     lowerCAmelCase__          =			qiskit.Aer.get_backend("aer_simulator"      )

     # Create a Quantum Circuit acting on the q register
     lowerCAmelCase__          =			qiskit.QuantumCircuit(lowerCAmelCase__       ,    lowerCAmelCase__      )

     # Apply X (NOT) Gate to Qubits 0 & 1
     circuit.x(0      )
     circuit.x(1      )

     # Map the quantum measurement to the classical bits
     circuit.measure([0, 1]       ,    [0, 1]      )

     # Execute the circuit on the qasm simulator
     lowerCAmelCase__          =			qiskit.execute(lowerCAmelCase__       ,    lowerCAmelCase__       ,    shots=1000      )

     # Return the histogram data of the results of the experiment.
     return job.result().get_counts(lowerCAmelCase__      )


if __name__ == "__main__":
     UpperCamelCase								=					single_qubit_measure(2, 2)
     print(F"""Total count for various states are: {counts}""")






from statistics import mean, stdev



def 							_A       (						lowerCAmelCase_					: list       ,    lowerCAmelCase_					: int = 3      ):
     """simple docstring"""

     lowerCAmelCase__          =			min(lowerCAmelCase_      )
     lowerCAmelCase__          =			max(lowerCAmelCase_      )
     # normalize data
     return [round((x - x_min) / (x_max - x_min)       ,    lowerCAmelCase_      ) for x in data]






def 							_A       (						lowerCAmelCase_					: list       ,    lowerCAmelCase_					: int = 3      ):
     """simple docstring"""

     lowerCAmelCase__          =			mean(lowerCAmelCase_      )
     lowerCAmelCase__          =			stdev(lowerCAmelCase_      )
     # standardize data
     return [round((x - mu) / (sigma)       ,    lowerCAmelCase_      ) for x in data]
