question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consolidate SQRT_ISWAP gate definitions

See original GitHub issue

Is your feature request related to a use case or problem? Please describe.

Recently, #4213 added (will add) the SQRT_ISWAP=ISWAP**0.5 gate to the core set of gates. Several places throughout Cirq define it and one place even defines it as ISWAP**-0.5 (see https://github.com/quantumlib/Cirq/search?q=SQRT_ISWAP for the full list) which could lead to inconsistencies or bugs.

Describe the solution you’d like These duplicate definitions SQRT_ISWAP = ISWAP**0.5 should be removed and all uses of the gate should be updated to ops.SQRT_ISWAP or cirq.SQRT_ISWAP as appropriate. https://github.com/quantumlib/Cirq/search?q=SQRT_ISWAP lists all places that need to be updated.

What is the urgency from your perspective for this issue? Is it blocking important work?

P2 - we should do it in the next couple of quarters

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
maffoocommented, Jun 18, 2021

I like the idea of consolidating these definitions. I’d suggest that we define both SQRT_ISWAP = ISWAP ** 0.5 and SQRT_ISWAP_INV = ISWAP ** -0.5.

0reactions
ShrillShresthacommented, Jun 18, 2021

Maybe I can issue a PR, and you can suggest me some changes if I have do something different. Also, I realized need to have my email signature in order to have my cla approved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Quantum logic gate - Wikipedia
In quantum computing and specifically the quantum circuit model of computation, a quantum ... The quantum Toffoli gate is the same gate, defined...
Read more >
Source code for qutip.qip.gates
Parameters ---------- U : Qobj The two-qubit gate N : integer The number of qubits in the target space. control : integer The...
Read more >
cirq.Circuit - Google Quantum AI
A mutable list of groups of operations to apply to some qubits.
Read more >
gate synthesis - How to implement $\sqrt{iSWAP}$ in Qiskit
I want to implement the √iSWAP operator using simple operations in Qiskit such as it is done for the iSWAP here or √SWAP...
Read more >
More Circuit Identities - Qiskit
The Toffoli is not the unique way to implement an AND gate in quantum computing. We could also define other gates that have...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found