


"""simple docstring"""
from collections import namedtuple

__SCREAMING_SNAKE_CASE				:     Dict		=     namedtuple('from_to', 'from_ to')

__SCREAMING_SNAKE_CASE				:     int		=     {
    'atm': from_to(1, 1),
    'pascal': from_to(0.000_0098, 101_325),
    'bar': from_to(0.98_6923, 1.0_1325),
    'kilopascal': from_to(0.0098_6923, 101.325),
    'megapascal': from_to(9.8_6923, 0.10_1325),
    'psi': from_to(0.06_8046, 14.6959),
    'inHg': from_to(0.033_4211, 29.9213),
    'torr': from_to(0.0013_1579, 760),
}







def     _a					(   _SCREAMING_SNAKE_CASE					,			_SCREAMING_SNAKE_CASE					,			_SCREAMING_SNAKE_CASE					)     ->					float:
							if from_type not in PRESSURE_CONVERSION:
														raise ValueError(
														    f"""Invalid 'from_type' value: {from_type!r}  Supported values are:\n"""
														    + """, """.join(_SCREAMING_SNAKE_CASE					)					)
							if to_type not in PRESSURE_CONVERSION:
														raise ValueError(
														    f"""Invalid 'to_type' value: {to_type!r}.  Supported values are:\n"""
														    + """, """.join(_SCREAMING_SNAKE_CASE					)					)
							return (
							    value * PRESSURE_CONVERSION[from_type].from_ * PRESSURE_CONVERSION[to_type].to
							)


if __name__ == "__main__":
				import doctest

				doctest.testmod()







"""simple docstring"""
import doctest

import projectq
from projectq.ops import H, Measure







def     _a					(   _SCREAMING_SNAKE_CASE					)     ->					int:
							snake_case_     							=		quantum_engine.allocate_qubit()
							H | qubit
							Measure | qubit
							return int(_SCREAMING_SNAKE_CASE					)


if __name__ == "__main__":
				doctest.testmod()

				# initialises a new quantum backend
				__SCREAMING_SNAKE_CASE				:     Dict		=     projectq.MainEngine()

				# Generate a list of 10 random numbers
				__SCREAMING_SNAKE_CASE				:     Optional[Any]		=     [get_random_number(quantum_engine) for _ in range(10)]

				# Flushes the quantum engine from memory
				quantum_engine.flush()

				print('Random numbers', random_numbers_list)



