Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement IonQ native gates support #438

Open
Cynocracy opened this issue Jun 2, 2022 · 2 comments
Open

Implement IonQ native gates support #438

Cynocracy opened this issue Jun 2, 2022 · 2 comments

Comments

@Cynocracy
Copy link
Contributor

We recently launched our native gates, and are looking to add support in ProjectQ.

Qiskit implementation: https://github.com/Qiskit-Partners/qiskit-ionq/blob/main/qiskit_ionq/ionq_gates.py
Cirq implementation: https://github.com/quantumlib/Cirq/blob/master/cirq-ionq/cirq_ionq/ionq_native_gates.py

We are considering sponsoring this for unitary hack if we can tag things appropriately :)

@InfamousPlatypus
Copy link

I would not mind helping, I don't know how to start though.

@Takishima
Copy link
Collaborator

Hi,
Sorry for my late reply.

In order to support a new type of gate, you simply need to define a new class that derives from BasicGate. If you define the matrix property (or member function), then the simulator will know how to deal with it.

Have a look at the definitions for X, Rx for example (can be found in projectq/ops/_gates.py

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

No branches or pull requests

3 participants