quantastica / quantum-circuit

Quantum Circuit Simulator implemented in JavaScript
MIT License
243 stars 47 forks source link

problem with u2 gate #13

Closed whu-dft closed 5 years ago

whu-dft commented 5 years ago

OPENQASM 2.0; include "qelib1.inc"; qreg q[1]; creg c[1]; h q[0]; u2 (0, 0) q[0]; u2 (0, 0) q[0]; u2 (0, 0) q[0]; u2 (0, 0) q[0]; u2 (0, 0) q[0]; measure q[0] -> c[0];

Please note that above circuit gives the result 16 by using quantum circuit, which is obviously wrong.

perak commented 5 years ago

@whu-dft thank you for reporting!

perak commented 5 years ago

@whu-dft fixed.

whu-dft commented 5 years ago

:ok_hand: :smile: