


import math

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




def 			a_   (					SCREAMING_SNAKE_CASE__      :   Optional[Any] = 1	,    SCREAMING_SNAKE_CASE__      :   Optional[Any] = 1  ):
							'''simple docstring'''





							if isinstance(SCREAMING_SNAKE_CASE__	,    SCREAMING_SNAKE_CASE__  ) or isinstance(SCREAMING_SNAKE_CASE__	,    SCREAMING_SNAKE_CASE__  ):
														raise TypeError('inputs must be integers.'  )
							if (bit_a < 0) or (bit_a < 0):
														raise ValueError('inputs must be positive.'  )
							if (math.floor(SCREAMING_SNAKE_CASE__  ) != bit_a) or (math.floor(SCREAMING_SNAKE_CASE__  ) != 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
							_lowerCamelCase :	Any						=QuantumRegister(2	,    'qr'  )
							_lowerCamelCase :	List[str]						=ClassicalRegister(2	,    'cr'  )

							_lowerCamelCase :	Union[str, Any]						=QuantumCircuit(SCREAMING_SNAKE_CASE__	,    SCREAMING_SNAKE_CASE__  )

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

							# send the information
							_lowerCamelCase :	int						=str(SCREAMING_SNAKE_CASE__  ) + str(SCREAMING_SNAKE_CASE__  )

							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(SCREAMING_SNAKE_CASE__	,    SCREAMING_SNAKE_CASE__  )

							_lowerCamelCase :	Dict						=Aer.get_backend('aer_simulator'  )
							_lowerCamelCase :	List[Any]						=execute(SCREAMING_SNAKE_CASE__	,    SCREAMING_SNAKE_CASE__	,    shots=1_000  )

							return job.result().get_counts(SCREAMING_SNAKE_CASE__  )


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






from dataclasses import dataclass
from typing import List, Optional, Union

import numpy as np
import PIL
from PIL import Image

from ...utils import is_torch_available, is_transformers_available


if is_transformers_available() and is_torch_available():
 from .image_encoder import PaintByExampleImageEncoder
 from .pipeline_paint_by_example import PaintByExamplePipeline


