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 answers only not deleted user 4127

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

2 votes

What's my computational basis if I want to define a unitary operator that implements a funct...

First, I would say you need to specify registers, their size, their role and what will they will contain. It depends on the $i$ you want to apply this function, which is to be represented as a bitstr …
cnada's user avatar
  • 4,774
4 votes

What's an example of building a circuit $U_f$ that implements a simple function $f$?

$\newcommand{\qr}[1]{|#1\rangle}$It would really depend on f. Say for instance you want to compute $f(x) = 3*x$ : $$U_f\qr{x}\qr{3}\qr{0} = \qr{x}\qr{3}\qr{3*x}$$ You will need a multiplier circuit l …
cnada's user avatar
  • 4,774
1 vote
Accepted

Applying Group Leaders Optimization to Quantum Belief Systems

The GLOA is just an optimization algorithm (another genetic algorithm actually). So as long as your problem translates into an objective function you seek to minimize/maximize, this would be possible …
cnada's user avatar
  • 4,774
2 votes

How to you encode a network as an adjacency-list in the quantum-gate model?

Say you have $m$ vertices and the longest list you can build is of size $n$. The simplest way I could think of is an encoding in basis state like : $$ | \text{origin} \rangle | v_0 (\text{origin})\ra …
cnada's user avatar
  • 4,774
6 votes

Can the SWAP test only compare registers with the same number of qubits?

Yes they should be the same size. Otherwise, if you use it for getting the inner product between them, it would not make sense they aren't.
cnada's user avatar
  • 4,774
1 vote

How can I invert the least significant bit of a certain term of a superposed state?

The first register the way you write it is about two qubits if not more. In the state, it is either 01 (1) or 11 (3). Then I would just use a X/NOT controlled by the two qubits of the register and on …
cnada's user avatar
  • 4,774
3 votes
Accepted

How to encode MNIST data set on a quantum circuit to study supervised learning with QNN?

First, they reduce the size from 28*28 to 4*4 images (by downsampling), then convert into binary values for pixels by just comparing to a value. Then, they encode the data in a quantum uniform superpo …
cnada's user avatar
  • 4,774
3 votes
Accepted

Evolving a quantum circuit using a genetic algorithm

So in your example, you try to find the quantum circuit representing the Toffoli operation. I would then change my objective/fitness function and compare the unitary matrix representing the operation. …
cnada's user avatar
  • 4,774
5 votes

How to re-create the following circuit image?

I know there is the Latex package qcircuit But I am not sure about how they did the boxes for the 3 parts a,b,c. Maybe some image tool for drawing them. Edit : Found this discussion where one admi …
cnada's user avatar
  • 4,774
2 votes
Accepted

Understanding the Group Leaders Optimization Algorithm

I suggest looking at how a genetic algorithm works in a context of discrete variables to understand it. They provide a methodology but you can apply other mutation/crossover techniques. Briefly, in …
cnada's user avatar
  • 4,774
5 votes
Accepted

Is there a general method to implement a 'greater than' quantum circuit?

What you are looking for I think is to use a quantum circuit for doing comparison. Those are made from adder circuits with a slight modification to have comparators. For adders, you have for example …
cnada's user avatar
  • 4,774