


"""simple docstring"""




import qiskit


def        lowercase     (SCREAMING_SNAKE_CASE_						:							int					,     SCREAMING_SNAKE_CASE_						:							int    )  ->		Tuple:
						SCREAMING_SNAKE_CASE						=   qiskit.Aer.get_backend('aer_simulator'    )

						SCREAMING_SNAKE_CASE						=   qiskit.QuantumCircuit(4					,     2    )
						# encode inputs in qubits 0 and 1
						if bita == 1:
												qc_ha.x(0    )
						if bita == 1:
												qc_ha.x(1    )
						qc_ha.barrier()

						# use cnots to write XOR of the inputs on qubit2
						qc_ha.cx(0					,     2    )
						qc_ha.cx(1					,     2    )

						# use ccx / toffoli gate to write AND of the inputs on qubit3
						qc_ha.ccx(0					,     1					,     3    )
						qc_ha.barrier()

						# extract outputs
						qc_ha.measure(2					,     0    )  # extract XOR value
						qc_ha.measure(3					,     1    )  # extract AND value

						# Execute the circuit on the qasm simulator
						SCREAMING_SNAKE_CASE						=   qiskit.execute(__lowerCAmelCase					,     __lowerCAmelCase					,     shots=10_00    )

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


if __name__ == "__main__":
	__UpperCamelCase		= half_adder(1, 1)
	print(f'''Half Adder Output Qubit Counts: {counts}''')




from typing import List

import datasets
from datasets.tasks import AudioClassification

from ..folder_based_builder import folder_based_builder


_A  =	datasets.utils.logging.get_logger(__name__)





class       _lowerCAmelCase   (      folder_based_builder.FolderBasedBuilderConfig			):
				_lowercase     						=None
				_lowercase     						=None





class       _lowerCAmelCase   (      folder_based_builder.FolderBasedBuilder			):
				_lowercase     						=datasets.Audio()
				_lowercase     						='''audio'''
				_lowercase     						=AudioFolderConfig
				_lowercase     						=42  # definition at the bottom of the script
				_lowercase     						=AudioClassification(audio_column='''audio'''   , label_column='''label'''			)


_A  =	[
    ".aiff",
    ".au",
    ".avr",
    ".caf",
    ".flac",
    ".htk",
    ".svx",
    ".mat4",
    ".mat5",
    ".mpc2k",
    ".ogg",
    ".paf",
    ".pvf",
    ".raw",
    ".rf64",
    ".sd2",
    ".sds",
    ".ircam",
    ".voc",
    ".w64",
    ".wav",
    ".nist",
    ".wavex",
    ".wve",
    ".xi",
    ".mp3",
    ".opus",
]
_A  =	AUDIO_EXTENSIONS



