Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 4986

For questions about the construction of complex circuits using elementary quantum gates.

2 votes

Optimizations in quantum circuits

For circuit equalities I find using quirk with the state-channel duality super useful where you setup the inverse of a circuit, see the identity in the amplitude display and then play around with the …
Balint Pato's user avatar
  • 1,103
1 vote
Accepted

CIRQ How to iteratively apply a multi qubit gate to first n qubits

The problem is a python issue - you keep redefining the CustomGate class in the namespace, which can have weird consequences. Typically classes are defined once in a more global scope, not within loop …
Balint Pato's user avatar
  • 1,103
3 votes

How do you represent one-qubit rotations in two registers as a $4\times 4$ unitary matrix?

The easiest way to get the unitary matrix of a couple of operations in Cirq is the unitary method on the Circuit class. In your case: import cirq a, b = cirq.LineQubit.range(2) theta = 0.4 phi = 0. …
Balint Pato's user avatar
  • 1,103