
'''simple docstring'''
class       _lowerCAmelCase   :







							'''simple docstring'''

							def __init__(self  ,  UpperCAmelCase  )					->       List[Any]:
														_snake_case       =  val
														_snake_case       =  None
														_snake_case       =  None





							def 	lowercase							(self  ,  UpperCAmelCase  )					->       Tuple:
														if self.val:
																					if val < self.val:
																												if self.left is None:
																																			_snake_case       =  Node(UpperCAmelCase  )
																												else:
																																			self.left.insert(UpperCAmelCase  )
																					elif val > self.val:
																												if self.right is None:
																																			_snake_case       =  Node(UpperCAmelCase  )
																												else:
																																			self.right.insert(UpperCAmelCase  )
														else:
																					_snake_case       =  val






def  __SCREAMING_SNAKE_CASE				(  _SCREAMING_SNAKE_CASE							, _SCREAMING_SNAKE_CASE				):
							# Recursive traversal
							if root:
														inorder(root.left							, _SCREAMING_SNAKE_CASE				)
														res.append(root.val				)
														inorder(root.right							, _SCREAMING_SNAKE_CASE				)






def  __SCREAMING_SNAKE_CASE				(  _SCREAMING_SNAKE_CASE				):
							# Build BST
							if len(_SCREAMING_SNAKE_CASE				) == 0:
														return arr
							_snake_case       =  Node(arr[0]				)
							for i in range(1							, len(_SCREAMING_SNAKE_CASE				)				):
														root.insert(arr[i]				)
							# Traverse BST in order.
							_snake_case       =  []
							inorder(_SCREAMING_SNAKE_CASE							, _SCREAMING_SNAKE_CASE				)
							return res


if __name__ == "__main__":
				print(tree_sort([10, 1, 3, 2, 9, 14, 13]))

'''simple docstring'''
import qiskit






def  __SCREAMING_SNAKE_CASE				(  _SCREAMING_SNAKE_CASE							, _SCREAMING_SNAKE_CASE				):
							_snake_case       =  qiskit.Aer.get_backend("""aer_simulator"""				)

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

							# 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
							_snake_case       =  qiskit.execute(_SCREAMING_SNAKE_CASE							, _SCREAMING_SNAKE_CASE							, shots=1000				)

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


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