Skip to content

Commit 38a723d

Browse files
committed
Merge branch 'develop'
2 parents 3f6a110 + 9744cce commit 38a723d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/quantum-circuit.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,6 +1546,16 @@ var QuantumCircuit = function(numQubits) {
15461546
label: "ZZ"
15471547
},
15481548
exportInfo: {
1549+
quil: {
1550+
name: "zz",
1551+
params: ["theta"],
1552+
defgate: "DEFGATE zz(%theta):\n EXP(-i * %theta / 2), 0, 0, 0\n 0, EXP(i * %theta / 2), 0, 0\n 0, 0, EXP(i * %theta / 2), 0\n 0, 0, 0, EXP(-i * %theta / 2)"
1553+
},
1554+
pyquil: {
1555+
name: "zz",
1556+
params: ["theta"],
1557+
array: "[ [ quil_exp(-1j * p_theta / 2), 0, 0, 0 ], [ 0, quil_exp(1j * p_theta / 2), 0, 0], [ 0, 0, quil_exp(1j * p_theta / 2), 0 ], [ 0, 0, 0, quil_exp(-1j * p_theta / 2) ] ]"
1558+
},
15491559
qasm: {
15501560
name: "rzz"
15511561
},

0 commit comments

Comments
 (0)