View on GitHub
Open this notebook in GitHub to run it yourself
Examples
Example 1: Two Quantum Variables
This example generates a quantum program that performs bitwise ‘or’ between two variables. The left arg is a signed with five qubits and the right arg is unsigned with three qubits.Output:
Example 2: Integer and Quantum Variable
This example generates a quantum program that performs a bitwise ‘or’ between a quantum variable and an integer. The left arg is an integer equal to three and the right arg is an unsigned quantum variable with three qubits.Output: