10 lines
150 B
Python
10 lines
150 B
Python
|
from lib_q_computer_math import s
|
||
|
|
||
|
|
||
|
def int_to_state(i):
|
||
|
return s("|{}>".format(bin(i)))
|
||
|
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
print(int_to_state(42))
|