Questions tagged [quantum-computing]

Quantum Computation deals with considering computation as fundamentally physical, as well as replacing the classical binary digit (bit) with the quantum binary digit (qubit). While the classical bit is either 0 or 1, the qubit can be in a superposition of these states. Computation systems that use quantum phenomena, such as superposition and entanglement, can solve certain complex problems very quickly.

Related Links

Quantum Computing on Wikipedia

(Textbook) Quantum Computation and Quantum Information: The de-facto standard textbook for learning about quantum computing.

(Video Series) Quantum computing for the determined: Khan-academy-style videos explaining quantum computation, by Michael Nielson (co-author of Quantum Computation and Quantum Information).

Quantum Computing Q&A site on the Stack Exchange network.

369 questions
4
votes
1 answer

How to create a new quantum gate and qubit initialised to a certain value

I am trying to implement the Quantum HHL algorithm on QISKit package of IBM on Python. I have tried searching the documentation for a method to initialize a qubit to a certain value and to create a new unitary gate with specified values. In the…
4
votes
1 answer

Microsoft Liquid: How to show the current quantum state

I am programming quantum algorithms in Microsoft Liquid (F#). For debugging, it would be really nice to see what the current quantum state is. I can use: for q in qs do show "q[%d]=%s" q.Id (q.ToString()) where qs is my list of qubits, but this…
mvdl1996
  • 41
  • 1
4
votes
2 answers

Coding Deutsch Algorithm

I am currently trying to code the Deutsch algorithm and struggling with how to measure the |x> qubit. Reading the example here has helped but doesn't solve my fundamental problem. Using the following diagram as a basis for presenting my issue that…
Syzorr
  • 587
  • 1
  • 5
  • 17
3
votes
0 answers

Plotting 2D Schrodinger equation on Python and be able to see a resonance at certain energy

I have a code to make about the 2D schrodinger equation time dependant. I was able to figure how to use the finites differences and I guess I was able to solve the 1D schrodinger equation. But know I have to plot my wave function in spherical…
sarah12
  • 31
  • 2
3
votes
2 answers

How to create Controlled Z gate in sympy.physics.quantum.gate qubits

I am wondering if it is possible to create a controlled Z-Gate using the sympy.physics.quantum.gate package? I've tried something like this CGate(((0,1), Z(2))) where the first tuple are the controls and the second the gate but I'm getting this…
Dara O h
  • 89
  • 8
3
votes
1 answer

Deutsch-Jozsa algorithm

When I was reading about quantum algorithms I faced the Deutsch-Jozsa algorithm, I see that if we want to solve that problem in a non-quantum algorithm, our algorithm would have exponential time complexity. Now I want to know what is the time…
3
votes
1 answer

Missing types, namespaces, directives, and assembly references

I use VS Code for C# and Unity3D and TypeScript and Angular and Python programming, so I have pretty much every required extension, including the .NET Framework and Core as well as the Quantum Development Kit (QDK) plus the Q# Interoperability Tools…
Muhy
  • 630
  • 1
  • 6
  • 12
3
votes
1 answer

Decompose a Quantum Circuit in Cirq

I am working on Cirq and need to perform certain unitary operations on qubits. For that, I am using the MatrixGate() function in Cirq. Unlike Qiskit, I could not find any function like decompose or transpile to simplify the Unitary operation into…
3
votes
1 answer

Why is shor's algorithm only effective in quantum computer?

I'm trying to learn about quantum computing and came across Shor's algorithm to find prime factors of a number. I understand the math behind shor's algorithm but can't understand why it can't be implemented in a classical computer as it just seems…
3
votes
1 answer

How many states can a classical computer consider at a single point in time?

I am looking into quantum computing, and have seen many say that a classical computer can consider 2n states (with n bits) at any single point in time. My problem is that usually there is no explanation to how that is. I might be confusing myself,…
Moggel
  • 33
  • 4
3
votes
1 answer

How to pass one Q# operation to another Q# operation from C# or F#

I have the following Q# operations operation VQC (cirq:((Double[],Qubit[])=>Unit is Adj),measurement:Pauli[], args: Double[], nQubits:Int) : Double { let res=EstimateFrequencyA(cirq(args,_),Measure(measurement,_),nQubits,1000); return…
3
votes
1 answer

Quantum Programming . . . How?

So I understand some of the basic ideas with setting up a quantum program . . . libraries, classical logic feeding to a quantum API, all that. I even get that there are quantum operations you apply. Where I am struggling is how do you figure out…
ThatCampbellKid
  • 561
  • 1
  • 5
  • 19
3
votes
6 answers

Using methods from a type passed as a parameter in C#

I'm working in Q#, a quantum programming language based on C#. Quantum operations become C# classes, from which you can do things like QuantumOperation.run(simulator, param1, param2); which will use a quantum simulator simulator to run the…
Sam Jaques
  • 291
  • 3
  • 13
3
votes
1 answer

Is there any systematic way to decompose a two-level unitary matrix into single-qubit and CNOT operations?

I would like to make a quantum circuit from the following matrix. matrix to be transformed into qubit operations How can I decompose this matrix into qubit operations such as Rotation Y, Control-NOT and so on ? FYI, I read a book named "Quantum…
Ashy
  • 179
  • 5
3
votes
1 answer

What is a Quantum-computer:'s qubit state like and How fast can it be modified?

This question was asked for the sole purpose of simplification and in an attempt to get straight to the point and not for us to demonstrate how smarter/ignorant we are than each other, as it is common practise on stackoverflow. I highly…
linker
  • 821
  • 1
  • 8
  • 20
1 2
3
24 25