quantum/compiler.py

10 lines
150 B
Python
Raw Normal View History

2020-02-21 15:35:40 +01:00
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))