






"""simple docstring"""

import math

import qiskit
from qiskit import Aer, ClassicalRegister, QuantumCircuit, QuantumRegister, execute






def _lowerCAmelCase						(	__lowerCamelCase:int = 1			,    __lowerCamelCase:int = 1 ):

						'''simple docstring'''






						if isinstance(__lowerCamelCase			,    __lowerCamelCase ) or isinstance(__lowerCamelCase			,    __lowerCamelCase ):
												raise TypeError("inputs must be integers." )
						if (bit_a < 0) or (bit_a < 0):
												raise ValueError("inputs must be positive." )
						if (math.floor(__lowerCamelCase ) != bit_a) or (math.floor(__lowerCamelCase ) != bit_a):
												raise ValueError("inputs must be exact integers." )
						if (bit_a > 1) or (bit_a > 1):
												raise ValueError("inputs must be less or equal to 1." )

						# build registers
						__magic_name__      =  QuantumRegister(2			,    "qr" )
						__magic_name__      =  ClassicalRegister(2			,    "cr" )

						__magic_name__      =  QuantumCircuit(__lowerCamelCase			,    __lowerCamelCase )

						# entanglement the qubits
						quantum_circuit.h(1 )
						quantum_circuit.cx(1			,    0 )

						# send the information
						__magic_name__      =  str(__lowerCamelCase ) + str(__lowerCamelCase )

						if c_information == "11":
												quantum_circuit.x(1 )
												quantum_circuit.z(1 )
						elif c_information == "10":
												quantum_circuit.z(1 )
						elif c_information == "01":
												quantum_circuit.x(1 )
						else:
												quantum_circuit.i(1 )

						# unentangled the circuit
						quantum_circuit.cx(1			,    0 )
						quantum_circuit.h(1 )

						# measure the circuit
						quantum_circuit.measure(__lowerCamelCase			,    __lowerCamelCase )

						__magic_name__      =  Aer.get_backend("aer_simulator" )
						__magic_name__      =  execute(__lowerCamelCase			,    __lowerCamelCase			,    shots=1_0_0_0 )

						return job.result().get_counts(__lowerCamelCase )


if __name__ == "__main__":
			print(f'''Counts for classical state send: {superdense_coding(1,1)}''')











"""simple docstring"""

import warnings

from ...utils import logging
from .image_processing_conditional_detr import ConditionalDetrImageProcessor


lowercase           =							logging.get_logger(__name__)

class     A_				(   snake_case_	):







				def __init__(				self				:    str    ,     *__lowerCamelCase				:    List[Any]    ,     **__lowerCamelCase				:    List[str]						)					->       None:
										warnings.warn(
										    "The class ConditionalDetrFeatureExtractor is deprecated and will be removed in version 5 of Transformers."
										    " Please use ConditionalDetrImageProcessor instead."    ,     __lowerCamelCase    ,     )
										super().__init__(*__lowerCamelCase    ,     **__lowerCamelCase						)



