# Strange error in A.5.1

**URL:** <https://discuss.pennylane.ai/t/strange-error-in-a-5-1/4744>\
**Category:** Codebook\
**Created:** [June 14, 2024, 8:58am UTC](https://discuss.pennylane.ai/t/strange-error-in-a-5-1/4744 "2024-06-14T08:58:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hovnatan\_Karapetyan](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/hovnatan_karapetyan/32/2629_2.png) [@Hovnatan\_Karapetyan](https://discuss.pennylane.ai/u/Hovnatan_Karapetyan)\
**Post date:** [June 14, 2024, 8:58am UTC](https://discuss.pennylane.ai/t/strange-error-in-a-5-1/4744/1 "2024-06-14T08:58:03Z")

</div>

I have error `Error: 'hoh_circuit'.` when I submit code, which seems to be ok

```auto
challenge_code = '''n_bits = 4
dev = qml.device("default.qubit", wires=n_bits)

@qml.qnode(dev)
def hoh_circuit(combo):
    """A circuit which applies Hadamard-oracle-Hadamard and returns probabilities.
    
    Args:
        combo (list[int]): A list of bits representing a secret combination.

    Returns:
        list[float]: Measurement outcome probabilities.
    """

    ##################
    # YOUR CODE HERE #
    ##################
    qml.broadcast(qml.Hadamard, pattern='single', wires=range(n_bits))
    qml.QubitUnitary(oracle_matrix(combo), wires=range(n_bits))
    qml.broadcast(qml.Hadamard, pattern='single', wires=range(n_bits))
    return qml.probs(wires=range(n_bits))
'''

```

---

<div class="post-metadata">

**Author:** ![LdBeth](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/ldbeth/32/2536_2.png) [@LdBeth](https://discuss.pennylane.ai/u/LdBeth)\
**Post date:** [June 14, 2024, 5:49pm UTC](https://discuss.pennylane.ai/t/strange-error-in-a-5-1/4744/2 "2024-06-14T17:49:52Z")

</div>

Try submit without the beginning `challenge_code = '''` and trailing `'''`.

It seems there’s a issue when setup the input template for this problem, the text

> The code template to supply to the front end. This is what the user will  
> be asked to complete and submit for grading.

seems not supposed seen by users. (The problem is with the new codebook, [Hadamard Transform | PennyLane Codebook](https://pennylane.ai/codebook/04-basic-quantum-algorithms/05-hadamard-transform/))

---

<div class="post-metadata">

**Author:** ![CatalinaAlbornoz](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/catalinaalbornoz/32/1196_2.png) [@CatalinaAlbornoz](https://discuss.pennylane.ai/u/CatalinaAlbornoz)\
**Post date:** [June 14, 2024, 7:47pm UTC](https://discuss.pennylane.ai/t/strange-error-in-a-5-1/4744/3 "2024-06-14T19:47:10Z")

</div>

Hi @Hovnatan_Karapetyan, welcome to the forum!

That’s right @LdBeth ! It looks like forgot to change the template for this one when we moved to the new Codebook. Good catch!

---

<div class="post-metadata">

**Author:** ![CatalinaAlbornoz](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/catalinaalbornoz/32/1196_2.png) [@CatalinaAlbornoz](https://discuss.pennylane.ai/u/CatalinaAlbornoz)\
**Post date:** [June 14, 2024, 9:00pm UTC](https://discuss.pennylane.ai/t/strange-error-in-a-5-1/4744/4 "2024-06-14T21:00:33Z")

</div>

Hi @Hovnatan_Karapetyan, this issue should be fixed now!  
If you refresh and click on “Reset code” you should now only be seeing the correct part of the template.
