Skip to content

cirq <> qiskit converters#1256

Merged
vtomole merged 30 commits into
mainfrom
qiskit_converters
Dec 15, 2025
Merged

cirq <> qiskit converters#1256
vtomole merged 30 commits into
mainfrom
qiskit_converters

Conversation

@vtomole

@vtomole vtomole commented Jul 28, 2025

Copy link
Copy Markdown
Member

No description provided.

@vtomole vtomole requested a review from Copilot July 28, 2025 18:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements cirq <> qiskit converters by replacing the existing QASM-based conversion approach with comprehensive native converter functions.

  • Adds a new supermarq/converters/qiskit.py module with bidirectional conversion functions
  • Replaces existing feature computation functions to use native Cirq operations instead of converting to Qiskit
  • Removes the old QASM-based converter and associated test files

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
supermarq/features.py Replaced Qiskit-based feature computation with native Cirq implementations
supermarq/converters_test.py Removed old converter tests
supermarq/converters/qiskit_test.py Added comprehensive tests for new converter functions
supermarq/converters/qiskit.py New comprehensive bidirectional converter implementation
supermarq/converters/init.py Added exports for new converter functions
supermarq/converters.py Removed old QASM-based converter implementation
supermarq/benchmarks/mermin_bell_test.py Removed qiskit_circuit() test calls
supermarq/benchmark.py Removed qiskit_circuit() method

Comment thread supermarq-benchmarks/supermarq/features.py Outdated
Comment thread supermarq-benchmarks/supermarq/features.py Outdated
Comment thread supermarq-benchmarks/supermarq/features.py Outdated
@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

"""
return self.circuit()

def qiskit_circuit(self) -> qiskit.QuantumCircuit | list[qiskit.QuantumCircuit]:

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put this back. Bring qiskit_qss HPCA tutorial.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not going to put this back in order to justify putting the converters in Supermarq. Not worth it.

@vtomole vtomole marked this pull request as ready for review October 28, 2025 19:43
@vtomole vtomole requested a review from Copilot October 28, 2025 19:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 6 out of 7 changed files in this pull request and generated 4 comments.

Comments suppressed due to low confidence (1)

supermarq-benchmarks/supermarq/converters/qiskit.py:1

  • Corrected spelling of 'ParameterExprsmion' to 'ParameterExpression'.
from __future__ import annotations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread supermarq-benchmarks/supermarq/converters/qiskit.py Outdated
Comment thread supermarq-benchmarks/supermarq/converters/qiskit_test.py Outdated
Comment thread supermarq-benchmarks/supermarq/converters/qiskit.py Outdated
Comment thread supermarq-benchmarks/supermarq/converters/qiskit_test.py Outdated
vtomole and others added 7 commits October 28, 2025 14:45
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@bharat-thotakura bharat-thotakura self-assigned this Nov 6, 2025

@bharat-thotakura bharat-thotakura left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread supermarq-benchmarks/supermarq/converters_test.py
Comment thread docs/source/apps/supermarq/examples/Supermarq_HPCA_Tutorial_qss.ipynb Outdated
@vtomole

vtomole commented Dec 15, 2025

Copy link
Copy Markdown
Member Author

@bharat-thotakura Addressed your comment about moving the test back. Will merge now.

@vtomole vtomole merged commit 17a3215 into main Dec 15, 2025
41 of 42 checks passed
@vtomole vtomole deleted the qiskit_converters branch December 15, 2025 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants