0
$\begingroup$

In Qiskit, there is an integrated option for converting integer variables to binary variables (IntergertoBinary). Is there any similar option to convert decimal variables to integer variables? Else, is any idea how to write a program for the same? Appreciate any leads, thank you!

$\endgroup$
1
  • $\begingroup$ There are ways to do that in python. For example, bin(3) gives you a string of '0b11'. $\endgroup$
    – Guangliang
    May 17 at 21:02

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.