quantum/compiler.py

10 lines
134 B
Python
Raw Normal View History

2020-03-27 11:06:42 +01:00
from lib import s
2020-02-21 15:35:40 +01:00
def int_to_state(i):
return s("|{}>".format(bin(i)))
if __name__ == "__main__":
print(int_to_state(42))