Skip to content

Commit 9285941

Browse files
committed
Version 0.9.177
1 parent 38a723d commit 9285941

File tree

5 files changed

+95
-42
lines changed

5 files changed

+95
-42
lines changed

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ console.log(quantumRandom());
235235
| **csrn** | def csrn | X**(1/2) | | 2 | | Controlled square root of NOT |
236236
| **ms** | def ms | ms | | 2 | theta | Mølmer-Sørensen gate |
237237
| **yy** | def yy | YY | | 2 | theta | YY gate |
238+
| **zz** | def zz | | | 2 | theta | Parametrix 2-qubit rotation about ZZ |
238239
| **cr2** | CPHASE(pi/2) | cu1(pi/2) | | 2 | | Controlled PI/2 rotation over Z-axis |
239240
| **cr4** | CPHASE(pi/4) | cu1(pi/4) | | 2 | | Controlled PI/4 rotation over Z-axis |
240241
| **cr8** | CPHASE(pi/8) | cu1(pi/8) | | 2 | | Controlled PI/8 rotation over Z-axis |
@@ -1481,6 +1482,37 @@ circuit.appendGate("yy", [0, 1], {
14811482
});
14821483
```
14831484

1485+
## zz
1486+
1487+
Parametrix 2-qubit rotation about ZZ
1488+
1489+
**Qubits:** 2
1490+
1491+
**Parameters:**
1492+
1493+
- theta
1494+
1495+
1496+
**Matrix:**
1497+
```javascript
1498+
[
1499+
1500+
["exp(-i * theta / 2)",0,0,0],
1501+
[0,"exp(i * theta / 2)",0,0],
1502+
[0,0,"exp(i * theta / 2)",0],
1503+
[0,0,0,"exp(-i * theta / 2)"]
1504+
]
1505+
```
1506+
1507+
**Example:**
1508+
```javascript
1509+
circuit.appendGate("zz", [0, 1], {
1510+
params: {
1511+
theta: "pi/2"
1512+
}
1513+
});
1514+
```
1515+
14841516
## cr2
14851517

14861518
Controlled PI/2 rotation over Z-axis

dist/quantum-circuit.js

Lines changed: 60 additions & 39 deletions
Large diffs are not rendered by default.

dist/quantum-circuit.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/quantum-circuit.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "quantum-circuit",
3-
"version": "0.9.176",
3+
"version": "0.9.177",
44
"description": "Quantum Circuit Simulator",
55
"main": "lib/quantum-circuit.js",
66
"unpkg": "dist/quantum-circuit.min.js",

0 commit comments

Comments
 (0)