Skip to content

Commit

Permalink
ecr Parser Support (#121)
Browse files Browse the repository at this point in the history
* ver

* parser addition

* tests
  • Loading branch information
mlodi-hqs authored Dec 5, 2024
1 parent 5ad920a commit ee80842
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

This changelog track changes to the qoqo qasm project starting at version 0.5.0

### 0.13.3

* Fixed `EchoCrossResonance` gate parsing support

### 0.13.2

* Fixed `0.13.1` release deploy issues
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion qoqo_qasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "qoqo_qasm"
version = "0.13.2"
version = "0.13.3"
authors = ["HQS Quantum Simulations <[email protected]>"]
license = "Apache-2.0"
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion qoqo_qasm/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "qoqo_qasm"
version = "0.13.2"
version = "0.13.3"
dependencies = ['qoqo>=1.15', 'qoqo_calculator_pyo3>=1.2']
license = { text = "Apache-2.0 AND Apache-2.0 with LLVM-exception AND MIT AND Unicode-DFS-2016 AND BSD-2-Clause AND BSD-3-CLause" }
maintainers = [
Expand Down
4 changes: 2 additions & 2 deletions qoqo_qasm/qoqo_qasm/DEPENDENCIES
Original file line number Diff line number Diff line change
Expand Up @@ -14927,7 +14927,7 @@ LICENSE:


====================================================
qoqo_qasm 0.13.2
qoqo_qasm 0.13.3
https://github.com/HQSquantumsimulations/qoqo_qasm
by HQS Quantum Simulations <[email protected]>
Python interface of roqoqo_qasm by HQS Quantum Simulations
Expand Down Expand Up @@ -17697,7 +17697,7 @@ LICENSE:


====================================================
roqoqo-qasm 0.13.2
roqoqo-qasm 0.13.3
https://github.com/HQSquantumsimulations/qoqo_qasm
by HQS Quantum Simulations <[email protected]>
QASM interface for roqoqo Rust quantum computing toolkit by HQS Quantum Simulations
Expand Down
2 changes: 1 addition & 1 deletion roqoqo-qasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "roqoqo-qasm"
version = "0.13.2"
version = "0.13.3"
authors = ["HQS Quantum Simulations <[email protected]>"]
license = "Apache-2.0"
edition = "2021"
Expand Down
3 changes: 3 additions & 0 deletions roqoqo-qasm/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ fn gate_dispatch(
CalculatorFloat::from(&params[0]),
CalculatorFloat::from(&params[1]),
))),
"ecr" => Some(Operation::from(EchoCrossResonance::new(
qubits[0], qubits[1],
))),
"pscz" => Some(Operation::from(PhaseShiftedControlledZ::new(
qubits[0],
qubits[1],
Expand Down
1 change: 1 addition & 0 deletions roqoqo-qasm/tests/gates.qasm
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ gvnsrotle(0,0.8) q[0],q[2];
xy(0.5) q[1],q[2];
spintint(0.5,0.6,0.7) q[0],q[2];
rxy(0.3,0.9) q[0];
ecr q[0],q[2];
pscz(0.3) q[0],q[2];
pscp(1,1.9) q[0],q[1];
ccx q[0],q[2],q[1];
Expand Down
1 change: 1 addition & 0 deletions roqoqo-qasm/tests/integration/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ fn test_qoqo_gates() {
circuit_qoqo += XY::new(1, 2, 0.5.into());
circuit_qoqo += SpinInteraction::new(0, 2, 0.5.into(), 0.6.into(), 0.7.into());
circuit_qoqo += RotateXY::new(0, 0.3.into(), 0.9.into());
circuit_qoqo += EchoCrossResonance::new(0, 2);
circuit_qoqo += PhaseShiftedControlledZ::new(0, 2, 0.3.into());
circuit_qoqo += PhaseShiftedControlledPhase::new(0, 1, 1.0.into(), 1.9.into());
circuit_qoqo += Toffoli::new(0, 2, 1);
Expand Down

0 comments on commit ee80842

Please sign in to comment.