# Steane-Encoded Bernstein–Vazirani on Stim [`standalone/06_steane_bernstein_vazirani.py`](../../../../examples/standalone/06_steane_bernstein_vazirani.py) recovers a hidden bit string using encoded Steane qubits and `cudaq.run` on Stim. It verifies the encoded preparation before the run. ```{literalinclude} ../../../../examples/standalone/06_steane_bernstein_vazirani.py :language: python ``` [Back to examples](index.md)