# How do I make a tensor product operator for like the stabilizers?

**URL:** <https://community.wolfram.com/t/how-do-i-make-a-tensor-product-operator-for-like-the-stabilizers/22679>\
**Category:** Questions\
**Tags:** computer-science, physics\
**Created:** [August 20, 2023, 1:43am UTC](https://community.wolfram.com/t/how-do-i-make-a-tensor-product-operator-for-like-the-stabilizers/22679 "2023-08-20T01:43:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fahimbinselim](https://avatars.discourse-cdn.com/v4/letter/f/3e96dc/32.png) [@fahimbinselim](https://community.wolfram.com/u/fahimbinselim)\
**Post date:** [August 20, 2023, 1:43am UTC](https://community.wolfram.com/t/how-do-i-make-a-tensor-product-operator-for-like-the-stabilizers/22679/1 "2023-08-20T01:43:46Z")

</div>

I want to make the projection operator of 5-qubit code with the stabilizers. But QuantumTensorProduct[X,Z,Z,X,I] shows error(I have defined the X,Z,I operators beforehand). How can I make an operator that will act on 5-qubits?

Or do I need to use QuantumCircuitOperator and how?

 ![Screenshot from 2023-08-19 21-42-53.png](https://global.discourse-cdn.com/wolfram/original/3X/4/8/4801afb2818e2978816c36a05d604eb88af5aeff.png)

---

<div class="post-metadata">

**Author:** ![mohammadb](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mohammadb/32/14729_2.png) [@mohammadb](https://community.wolfram.com/u/mohammadb)\
**Post date:** [August 21, 2023, 4:10am UTC](https://community.wolfram.com/t/how-do-i-make-a-tensor-product-operator-for-like-the-stabilizers/22679/2 "2023-08-21T04:10:03Z")

</div>

QuantumOperator[“XZZXI”]

or

```
QuantumTensorProduct[QuantumOperator /@ {"X", "Z", "Z", "X", "I"}]

```

You can find more info here on this topic: [Stabilizer formalism for quantum operations](https://wolfram.discourse.group/t/21201/1)

---

<div class="post-metadata">

**Author:** ![fahimbinselim](https://avatars.discourse-cdn.com/v4/letter/f/3e96dc/32.png) [@fahimbinselim](https://community.wolfram.com/u/fahimbinselim)\
**Post date:** [August 21, 2023, 1:34pm UTC](https://community.wolfram.com/t/how-do-i-make-a-tensor-product-operator-for-like-the-stabilizers/22679/3 "2023-08-21T13:34:36Z")

</div>

Thank you very much!

---

<div class="post-metadata">

**Author:** ![mohammadb](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mohammadb/32/14729_2.png) [@mohammadb](https://community.wolfram.com/u/mohammadb)\
**Post date:** [November 24, 2023, 5:49am UTC](https://community.wolfram.com/t/how-do-i-make-a-tensor-product-operator-for-like-the-stabilizers/22679/4 "2023-11-24T05:49:36Z")

</div>

PauliStabilizer[“5QubitCode”]  
PauliStabilizer is still undocumented, though some explanation here: [https://www.youtube.com/live/uusAKZrjDOY?si=YGl5tuqlaNzz807N&t=2109](https://www.youtube.com/live/uusAKZrjDOY?si=YGl5tuqlaNzz807N&t=2109)
