# Multiple qubit rotation gates in latest Quantum Framewok version?

**URL:** <https://community.wolfram.com/t/multiple-qubit-rotation-gates-in-latest-quantum-framewok-version/20444>\
**Category:** Questions\
**Tags:** packages-and-paclets\
**Created:** [July 26, 2022, 3:47pm UTC](https://community.wolfram.com/t/multiple-qubit-rotation-gates-in-latest-quantum-framewok-version/20444 "2022-07-26T15:47:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ymu](https://avatars.discourse-cdn.com/v4/letter/y/8baadc/32.png) [@ymu](https://community.wolfram.com/u/ymu)\
**Post date:** [July 26, 2022, 3:47pm UTC](https://community.wolfram.com/t/multiple-qubit-rotation-gates-in-latest-quantum-framewok-version/20444/1 "2022-07-26T15:47:25Z")

</div>

In previous versions of the QuantumFramework, multiple qubit ZRotation gates worked. Now, they are recognized as gates (they appear correctly in the Diagram) but don’t work. See attached.

Anybody knows what happened or how to resolve this issue?

[Open in Wolfram Cloud ↗](https://www.wolframcloud.com/obj/b886ddbe-49ff-47d1-9041-430f0d463e77)

---

<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:** [July 27, 2022, 8:58pm UTC](https://community.wolfram.com/t/multiple-qubit-rotation-gates-in-latest-quantum-framewok-version/20444/2 "2022-07-27T20:58:06Z")

</div>

Resolved

 ![ScreenShot2022-07-27at1.57.07PM.jpg](https://global.discourse-cdn.com/wolfram/original/3X/d/9/d9746ebddf9f218800ab06ba6624d43e4487e35f.jpeg)

---

<div class="post-metadata">

**Author:** ![ymu](https://avatars.discourse-cdn.com/v4/letter/y/8baadc/32.png) [@ymu](https://community.wolfram.com/u/ymu)\
**Post date:** [July 28, 2022, 2:42pm UTC](https://community.wolfram.com/t/multiple-qubit-rotation-gates-in-latest-quantum-framewok-version/20444/3 "2022-07-28T14:42:39Z")

</div>

Thank you Mads for your quick response.  
However, this is not the way it used to work before. It is also not the way some people understand what a ZRotation on multiple qubits mean.  
See attached.

[Open in Wolfram Cloud ↗](https://www.wolframcloud.com/obj/f4d62ea3-683b-4453-ab2f-560b3d0729c8)

---

<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:** [July 28, 2022, 3:09pm UTC](https://community.wolfram.com/t/multiple-qubit-rotation-gates-in-latest-quantum-framewok-version/20444/4 "2022-07-28T15:09:27Z")

</div>

In fact, the duplication of rotation was not supported and we added that recently (like example I sent above); which is the right implementation for the rotation on many qubits. Note it means a separable operator where rotations act on different qubits (like tensor product you created above).

What you are talking about is the [Ising coupling](https://en.wikipedia.org/wiki/Quantum_logic_gate#Ising_coupling_gates) between different qubits (which does not mean as rotations on many qubits), and it is supported in our framework. For example for R\_zz(theta) we have

```
QuantumOperator[{"ZZ", \[Theta]}]

```

Note R\_zz gate is defined for only 2-qubits. So a bad code like this:

```
QuantumOperator[{"ZZ", \[Theta]}, {2, 4, 6}]

```

will be interpreted as the Ising coupling between qubit #2 and #4 only

```
QuantumOperator[{"ZZ", \[Theta]}, {2, 4}]

```

I hope it helps to clarify your question.
