Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7e3bfca

Browse files
ToastChengpavoljuhas
authored andcommitted
Update OpenQASM compatibility table (#7555)
Since recent changes have added supports for multiple statements, updatethe description in the OpenQASM compatibility table accordingly.#6917: added "gate" support#6710: added "reset" support#4738: added "if" supportFixes:#7525
1 parent77546b5 commit7e3bfca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎docs/build/interop.ipynb‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,15 +313,15 @@
313313
"|`qreg name[size];`| supported (see mapping qubits)| Declare a named register of qubits|`qreg q[5];`|\n",
314314
"|`creg name[size];`|supported (see mapping classical register to measurement keys)| Declare a named register of bits|`creg c[5];`|\n",
315315
"|`include\"filename\";`| supported ONLY to include the standard\"qelib1.inc\" lib for compatibility| Open and parse another source file|`include\"qelib1.inc\";`|\n",
316-
"|`gate name(params) qargs;`|NOT supported| Declare a unitary gate||\n",
316+
"|`gate name(params) qargs;`| supported| Declare a unitary gate|`gate g(p0, p1) q0, q1 { rx(p0) q0; ry(p0+p1) q0, rz(p1) q1; }`|\n",
317317
"|`opaque name(params) qargs;`| NOT supported| Declare an opaque gate||\n",
318318
"|`// comment text`| supported|Comment a line of text|`// supported!`|\n",
319319
"|`U(θ,φ,λ) qubit/qreg;`| supported| Apply built-in single qubit gate(s)|``U(pi/2,2*pi/3,0) q[0];``|\n",
320320
"|`CX qubit/qreg,qubit/qreg;`| supported|Apply built-in CNOT gate(s)|`CX q[0],q[1];`|\n",
321321
"|measure qubit/qreg|supported|Make measurements in Z basis||\n",
322-
"|`reset qubit/qreg;`|NOTsupported|Prepare qubit(s) in <code>&#124;0></code>|`reset q[0];`|\n",
322+
"|`reset qubit/qreg;`| supported|Prepare qubit(s) in <code>&#124;0></code>|`reset q[0];`|\n",
323323
"|`gatename(params) qargs;`| supported for ONLY the supported subset of standard gates defined in\"qelib1.inc\"|Apply a user-defined unitary gate|`rz(pi/2) q[0];`|\n",
324-
"|`if(creg==int) qop;`|NOTsupported| Conditionally apply quantum operation|`if(c==5) CX q[0],q[1];`|\n",
324+
"|`if(creg==int) qop;`| supported| Conditionally apply quantum operation|`if(c==5) CX q[0],q[1];`|\n",
325325
"|`barrier qargs;`| NOT supported| Prevent transformations across this source line|`barrier q[0],q[1];`|\n"
326326
]
327327
},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp