From 7675247c12f41a022c78f7029b8ce36211a58b9e Mon Sep 17 00:00:00 2001 From: Adam Zalcman <40255865+viathor@users.noreply.github.com> Date: Tue, 8 Nov 2022 21:16:35 -0800 Subject: [PATCH] Document units expected by QasmUGate (#5945) #Closes #5928. --- docs/build/interop.ipynb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/build/interop.ipynb b/docs/build/interop.ipynb index d1bbad9fa04..0dd9777d58f 100644 --- a/docs/build/interop.ipynb +++ b/docs/build/interop.ipynb @@ -290,11 +290,11 @@ "\n", "| QE gates| Cirq translation| Notes|\n", "| --------| --------| --------|\n", - "|`U(θ,φ,λ)` |`QasmUGate(θ,φ,λ)`|| \n", + "|`U(θ,φ,λ)` |`QasmUGate(θ/π,φ/π,λ/π)`|cirq gate takes angles in half turns| \n", "|`CX` |`cirq.CX`|| \n", - "|`u3(θ,φ,λ)`|`QasmUGate(θ,φ,λ)`||\n", - "|`u2(φ,λ) = u3(π/2,φ,λ)`|`QasmUGate(π/2,φ,λ)`|| \n", - "|`u1 (λ) = u3(0,0,λ)`| NOT supported || \n", + "|`u3(θ,φ,λ)`|`QasmUGate(θ/π,φ/π,λ/π)`|cirq gate takes angles in half turns|\n", + "|`u2(φ,λ) = u3(π/2,φ,λ)`|`QasmUGate(1/2,φ/π,λ/π)`|cirq gate takes angles in half turns| \n", + "|`u1(λ) = u3(0,0,λ)`| NOT supported || \n", "|`id`|`cirq.Identity`| one single-qubit Identity gate is created for each qubit if applied on a register| \n", "|`u0(γ)`| NOT supported| this is the \"WAIT gate\" for length γ in QE| \n", "|`x`|`cirq.X`|| \n",