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
1
vote
2 answers

Tensorflow quantum requires Manylinux2010. Is there a workaround to get Tensorflow quantum working on a Windows OS?

I have been having issue with installing tensorflow quantum on a windows operating system and am currently having it run on a Linux subsystem. Are there any workarounds to get it running on Windows? Protobuf version cannot simultaneously be version…
1
vote
1 answer

How to loop several times within a list?

I have a code that looks like this,: import random import numpy as np from operator import itemgetter import sys equal_to = {"a":"u_plus", "b":"u_minus", "c":"v_plus", "d":"v_minus"} #bell state p = 8 #length of generated binary key1 = [] #list…
1
vote
0 answers

Qubit state after this quantum circuit (Hadamard+Eigen Operator+Hadamard)

Could anyone help me with this circuit? I'm trying to walk through this exercise but failed. The first register carries a single bit and the bottom carries an n-qubit state. |ψ_0〉is an eigenstate of operator U, i.e. U|ψ_0〉= e^{2πiθ}|ψ_0〉, where 0 ≤…
1
vote
0 answers

Usage of Tensorflow to train Qiskit circuits

In order to explore whether it is possible to train a Qiskit Quantum circuit with tensorflow I built a small toy model. The purpose of this toy model is to find via tensorflow the correct angle to get "zero" output independent of the input. import…
1
vote
2 answers

Colab running Pennylane with DeviceError

I tried to run Pennylane on Colab, so I install it first. But the "Installed devices" are null, what's going on? I have restart and rebuilt for several times. Here is my code. !pip install pennylane pennylane-qiskit import pennylane as…
Yi-An
  • 93
  • 10
1
vote
0 answers

Why can't we add 'rx'(Rotation around X-axis) and 'ry' gates to the noise model basis gates in Qiskit?

I can easily add any Unitary gate which I create using Qiskit but it gives a warning when I try to add these rotation gates to the noise model basis gates. It might be a problem with the labelling(I used 'rx' and 'ry') or some other issues which I…
1
vote
1 answer

Multiclass classification using TensorFlow Quantum

I am running some examples and tests on TensorFlow Quantum (TFQ) and I am struggling to perform a multi-class classification. I will used the MNIST classification example as base (https://www.tensorflow.org/quantum/tutorials/mnist), since this is…
1
vote
1 answer

Python quantum Fourier transform

This is the inverse quantum Fourier transform. What changes do I have to do to obtain the quantum Fourier transform (not the inverse)? Is this in the right path at all? How would I encode values x1,x2,x3,x4 into the basis state? from math import …
Steve Bermeo
  • 37
  • 1
  • 7
1
vote
0 answers

My Bloch sphere is appearing as an ellipse/oval

I tried to plot a Bloch vector. However, my Bloch sphere is appearing as an ellipse/oval instead of a circle. I am having the same issues with qsphere also.Jupyter notebook on my Mac(Safari) from qiskit.visualization import…
1
vote
1 answer

Importing function from IQsharp notebook to Python notebook

I'm working with two notebooks: one for Q# operations and one for python3 to activate and analyze - both of them are on the same directory. How can I import a Q# operation (from the IQsharp notebook) into the python one? what is the namespace of…
BetaJoe
  • 11
  • 1
1
vote
1 answer

How can I train a TensorFlow Quantum model that outputs a state vector?

I want to train a simple circuit in TFQ using a Sequential model as follows: model = tf.keras.Sequential() model.add(tf.keras.layers.Input(shape=(), dtype=tf.dtypes.string)) model.add( tfq.layers.PQC( model_circuit=circuit, …
skola
  • 13
  • 3
1
vote
1 answer

How to access the AST generated by the Q# compiler?

Background Part of the project I'm working on requires me to analyze Q# source code and perform specific actions when certain syntax elements are encountered. For example, say I'd like to count how many different gate types are used throughout the…
JakuJ
  • 411
  • 6
  • 13
1
vote
1 answer

How to solve "jupyter_client.kernelspec.NoSuchKernel: No such kernel named iqsharp" in python?

I was trying to print hello world in Microsoft's Q#. When I ran the code It's shows like this. Even I installed the package. I don't know where the problem is. I think it's in jupyter notebook's permission or something. Thanks for your help. Here is…
1
vote
2 answers

2 entangled qubit gives all states with 25 %

We entangle two quarks; after measurement gives either |01> or |10> with probability of 50%.(regardless of their prior states ,they always give opposite states) when I entangle 2 qubits using Cnot it gives |00> ,|01> ,|10> ,|11> all with 25%…
Ayan Bhunia
  • 479
  • 3
  • 14
1
vote
0 answers

How do I change the inequality representation in PORTA output?

I am trying to derive facet Bell Inequalities given the extreme points of a 16-dim polytope. I have been using the software PORTA to go from the standard vertex representation to the inequality representation. However, my PORTA output seems to give…
BillyRay
  • 11
  • 1