View on GitHub
Open this notebook in GitHub to run it yourself

Output:
Output:
More Complex Functions
We take a Maiorana-McFarland function with random permutation on they and h function is the and operation between all the y-variables.
Creating the Circuit
Output:
Output:
Hidden Shift Without the Dual Function
We now use the second algorithm described in [2]. This algorithm only requires implementing and not its dual; however, it requires samples from the circuit.
Output:
Output: