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.

Define `cirq.ISWAP_INV`, similar to `cirq.SQRT_ISWAP_INV` and replace usages.

See original GitHub issue

Description of the issue Similar to cirq.SQRT_ISWAP_INV, define a global constant for cirq.ISWAP_INV and replace usages of cirq.ISWAP ** -1 with cirq.ISWAP_INV.

https://github.com/quantumlib/Cirq/blob/7951f84a0110be719c8a9e07aa1ffec2b0a31990/cirq-core/cirq/ops/swap_gates.py#L356

Cirq version 0.14.0

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
vtomolecommented, Nov 3, 2021

@unaiic I’ve assigned it to you.

0reactions
tanujkhattarcommented, Nov 4, 2021

Yes, it’s mostly about consistency. Since we have SQRT_ISWAP_INV, we should also have ISWAP_INV just to be consistent.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cirq basics | Google Quantum AI
This tutorial will teach the basics of how to use Cirq. It will walk through how to use qubits, gates, and operations to...
Read more >
Find and replace gate - cirq
where I have tried to represent two different entanglement gates. Is there an efficient way to do this using some cirq function (other...
Read more >
Optimizer that decomposes two qubit operations into sqrt ...
If you want a decomposition into a different gate set, the best (automated) way of doing it is to first decompose into CZ's,...
Read more >
How to create custom gates in Cirq - YouTube
In our previous episode, we learned how to construct quantum circuits out of moments, with each moment containing operations on qubits.
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