From 7290c286b8e1500b35d79d955e701ee36146d37e Mon Sep 17 00:00:00 2001 From: Andrew Musselman Date: Wed, 9 Oct 2024 11:43:30 -0700 Subject: [PATCH 1/4] Fixing URL for twitter card --- website/_includes/sidebar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/_includes/sidebar.html b/website/_includes/sidebar.html index e3fdfc48f..890534c41 100644 --- a/website/_includes/sidebar.html +++ b/website/_includes/sidebar.html @@ -25,6 +25,6 @@
From 955050ed8fa16a38a205a8da63b45529e98dcaaf Mon Sep 17 00:00:00 2001 From: Andrew Musselman Date: Wed, 9 Oct 2024 11:58:39 -0700 Subject: [PATCH 2/4] Removing twitter card, adding talks card --- website/_includes/sidebar.html | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/website/_includes/sidebar.html b/website/_includes/sidebar.html index 890534c41..4b3112fb8 100644 --- a/website/_includes/sidebar.html +++ b/website/_includes/sidebar.html @@ -21,10 +21,19 @@ - -
+ + From 56e62c5fd78ebe57a4a90ddb7f746cf7e1e2d5c1 Mon Sep 17 00:00:00 2001 From: Trevor Grant Date: Tue, 15 Oct 2024 12:45:49 -0500 Subject: [PATCH 3/4] MAHOUT 464/5/6/7 - Add rotational gates (#471) * Add rotational gates * Add U gate --- qumat/amazon_braket_backend.py | 16 +++++++++++++++- qumat/cirq_backend.py | 20 +++++++++++++++++++- qumat/qiskit_backend.py | 15 ++++++++++++++- qumat/qumat.py | 14 +++++++++++++- 4 files changed, 61 insertions(+), 4 deletions(-) diff --git a/qumat/amazon_braket_backend.py b/qumat/amazon_braket_backend.py index bddeae790..9422dda8b 100644 --- a/qumat/amazon_braket_backend.py +++ b/qumat/amazon_braket_backend.py @@ -67,4 +67,18 @@ def draw_circuit(circuit): # Unfortunately, Amazon Braket does not have direct support for drawing circuits in the same way # as Qiskit and Cirq. You would typically visualize Amazon Braket circuits using external tools. # For simplicity, we'll print the circuit object which gives some textual representation. - print(circuit) \ No newline at end of file + print(circuit) + +def apply_rx_gate(circuit, qubit_index, angle): + circuit.rx(qubit_index, angle) + +def apply_ry_gate(circuit, qubit_index, angle): + circuit.ry(qubit_index, angle) + +def apply_rz_gate(circuit, qubit_index, angle): + circuit.rz(qubit_index, angle) + +def apply_u_gate(circuit, qubit_index, theta, phi, lambd): + circuit.rx(qubit_index, theta) + circuit.ry(qubit_index, phi) + circuit.rz(qubit_index, lambd) diff --git a/qumat/cirq_backend.py b/qumat/cirq_backend.py index 056b302e6..e27ab0701 100644 --- a/qumat/cirq_backend.py +++ b/qumat/cirq_backend.py @@ -72,4 +72,22 @@ def execute_circuit(circuit, backend, backend_config): return result.histogram(key='result') def draw_circuit(circuit): - print(circuit) \ No newline at end of file + print(circuit) + +def apply_rx_gate(circuit, qubit_index, angle): + qubit = cirq.LineQubit(qubit_index) + circuit.append(cirq.rx(angle).on(qubit)) + +def apply_ry_gate(circuit, qubit_index, angle): + qubit = cirq.LineQubit(qubit_index) + circuit.append(cirq.ry(angle).on(qubit)) + +def apply_rz_gate(circuit, qubit_index, angle): + qubit = cirq.LineQubit(qubit_index) + circuit.append(cirq.rz(angle).on(qubit)) + +def apply_u_gate(circuit, qubit_index, theta, phi, lambd): + qubit = cirq.LineQubit(qubit_index) + circuit.append(cirq.rz(lambd).on(qubit)) + circuit.append(cirq.ry(phi).on(qubit)) + circuit.append(cirq.rx(theta).on(qubit)) diff --git a/qumat/qiskit_backend.py b/qumat/qiskit_backend.py index c8324dcf8..ca3b0ae62 100644 --- a/qumat/qiskit_backend.py +++ b/qumat/qiskit_backend.py @@ -89,4 +89,17 @@ def get_final_state_vector(circuit, backend, backend_config): def draw_circuit(circuit): # Use Qiskit's built-in drawing function - print(circuit.draw()) \ No newline at end of file + print(circuit.draw()) + +def apply_rx_gate(circuit, qubit_index, angle): + circuit.rx(angle, qubit_index) + +def apply_ry_gate(circuit, qubit_index, angle): + circuit.ry(angle, qubit_index) + +def apply_rz_gate(circuit, qubit_index, angle): + circuit.rz(angle, qubit_index) + +def apply_u_gate(circuit, qubit_index, theta, phi, lambd): + # Apply the U gate directly with specified parameters + circuit.u(theta, phi, lambd, qubit_index) diff --git a/qumat/qumat.py b/qumat/qumat.py index dd5b03eb6..97101a4a4 100644 --- a/qumat/qumat.py +++ b/qumat/qumat.py @@ -60,4 +60,16 @@ def get_final_state_vector(self): return self.backend_module.get_final_state_vector(self.circuit, self.backend, self.backend_config) def draw(self): - return self.backend_module.draw_circuit(self.circuit) \ No newline at end of file + return self.backend_module.draw_circuit(self.circuit) + + def apply_rx_gate(self, qubit_index, angle): + self.backend_module.apply_rx_gate(self.circuit, qubit_index, angle) + + def apply_ry_gate(self, qubit_index, angle): + self.backend_module.apply_ry_gate(self.circuit, qubit_index, angle) + + def apply_rz_gate(self, qubit_index, angle): + self.backend_module.apply_rz_gate(self.circuit, qubit_index, angle) + + def apply_u_gate(self, qubit_index, theta, phi, lambd): + self.backend_module.apply_u_gate(self.circuit, qubit_index, theta, phi, lambd) From c8f134193289894e35613d3a44129326f1daab3b Mon Sep 17 00:00:00 2001 From: Andrew Musselman Date: Fri, 1 Nov 2024 15:05:22 -0700 Subject: [PATCH 4/4] Adding minutes --- website/_posts/2024-11-01-Meeting-Minutes.md | 48 ++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 website/_posts/2024-11-01-Meeting-Minutes.md diff --git a/website/_posts/2024-11-01-Meeting-Minutes.md b/website/_posts/2024-11-01-Meeting-Minutes.md new file mode 100644 index 000000000..555e97658 --- /dev/null +++ b/website/_posts/2024-11-01-Meeting-Minutes.md @@ -0,0 +1,48 @@ +--- +layout: post +title: Meeting Minutes +date: 2024-11-01 00:00:00 -0800 +category: minutes +--- +## Weekly community meeting +[Subscribe](mailto:user-subscribe@mahout.apache.org) to the Mahout User list to ask for details on joining. + +### Attendees +* Andrew Musselman +* Trevor Grant + +### Old Business +* [Splitting Mahout project code into discrete repos (andrew)](https://issues.apache.org/jira/projects/MAHOUT/issues/MAHOUT-2204) + * mahout-website + * mahout-classic + * mahout-samsara + * mahout-qumat +* [Docker image for web site build (to jowanza)](https://issues.apache.org/jira/projects/MAHOUT/issues/MAHOUT-2165) +* Roadmap + * Q2 + * Classic in maintenance mode (done) + * Q3 + * Qumat with hardened (tests, docs, CI/CD) cirq and qiskit backends (in flight) + * Kernel methods (in flight) + * Submit public talk about Qumat (done, Fossy Aug 2024) + * Amazon Braket (done) + * Q4 and beyond + * Distributed quantum solvers +* Add GitHub Project +* Add "talks" page to web site (for Andrew) +* PyPi release for QuMat +* Tommy has picked up [kernel methods spike](https://issues.apache.org/jira/browse/MAHOUT-2200) now [in github issue](https://github.com/apache/mahout/issues/456) + * [457](https://github.com/apache/mahout/issues/457) + * [458](https://github.com/apache/mahout/issues/458) + * [Data encoding and kernel notes](https://github.com/apache/mahout/wiki/Data-Encoding-and-Kernel-Notes) +* Reviewing https://github.com/rawkintrevo/mahout/blob/pqc-docs/docs/p_q_c.md +* Reviewing https://docs.quantum.ibm.com/api/qiskit/qiskit.circuit.library.ZZFeatureMap + +### New Business +Trevor and Andrew taking these +* [#461 Implement testing workflow](https://github.com/apache/mahout/issues/461) +* [#463 Move PQC docs to this repo](https://github.com/apache/mahout/issues/463) +* [#468 Add a Parameter object](https://github.com/apache/mahout/issues/468) +* [#469 Bind parameter values at execution](https://github.com/apache/mahout/issues/469) +* [#470 Add Qumat to PyPi](https://github.com/apache/mahout/issues/470) +