






"""simple docstring"""


def        UpperCAmelCase      (					a__     ,      a__ ):





						'''simple docstring'''






						lowerCAmelCase   :Tuple						=			len(a__ )
						print('The following activities are selected:' )

						# The first activity is always selected
						lowerCAmelCase   :Dict						=			0
						print(a__     ,      end=',' )

						# Consider rest of the activities
						for j in range(a__ ):
												# If this activity has start time greater than
												# or equal to the finish time of previously
												# selected activity, then select it
												if start[j] >= finish[i]:
																		print(a__     ,      end=',' )
																		lowerCAmelCase   :List[str]						=			j


if __name__ == "__main__":
		import doctest

		doctest.testmod()

		__SCREAMING_SNAKE_CASE   =   [1, 3, 0, 5, 8, 5]
		__SCREAMING_SNAKE_CASE   =   [2, 4, 6, 7, 9, 9]
		print_max_activities(start, finish)







"""simple docstring"""


import qiskit


def        UpperCAmelCase      (					a__     ,      a__ ):





						'''simple docstring'''






						lowerCAmelCase   :List[Any]						=			qiskit.Aer.get_backend('aer_simulator' )

						# Create a Quantum Circuit acting on the q register
						lowerCAmelCase   :Optional[int]						=			qiskit.QuantumCircuit(a__     ,      a__ )

						# 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   :Dict						=			qiskit.execute(a__     ,      a__     ,      shots=10_00 )

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


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