quantum/compiler.py
2020-03-27 11:06:42 +01:00

10 lines
134 B
Python

from lib import s
def int_to_state(i):
return s("|{}>".format(bin(i)))
if __name__ == "__main__":
print(int_to_state(42))