Questions tagged [qiskit]

Quantum computing framework for writing programs and applications

Qiskit is an open-source software development kit (SDK) for working with quantum computers at the level of circuits, pulses, and algorithms.

237 questions
0
votes
1 answer

Must have Matplotlib installed

I have installed matplotlib but I was still getting this error How can I solve this error? ImportError Traceback (most recent call last) Input In [10], in () 16 array_to_latex(psi,…
User1086
  • 11
  • 2
0
votes
1 answer

How does measurement affect multiple entangled qubits

I'm trying to understand how measurement affects the non-measured qubits when I have more than two entangled qubits. Question 1: Say I have three entangled qubits in the state 1/2 (|000> + |011> + |101> + |110>), i.e. an equal chance of any even…
Frank Yellin
  • 9,127
  • 1
  • 12
  • 22
0
votes
0 answers

Adding ancilla qubits to the Amplify function

I'm trying to implement the Amplify function, but with a GroverOperator added in the AmplificationProblem function in order to add ancilla qubits to the circuit. It's giving me a strange error mentioned below. To be honest, I don't know how to…
0
votes
1 answer

This worked last week(Qiskit library issue)

This code used to work last week. I made sure that the pip install command is up-to-date and the right environment is set. I've been working on this code across windows and MacOS.... not the best idea but that may be part of the problem? Why is it…
0
votes
0 answers

Python: How to confirm that qrng API is fetching quantum random numbers?

I am looking for a source of sequence of quantum random numbers, in fact bit sequences of 0 and 1. I had been using the quantumrandom API but since it is no longer working properly (another question) I was looking for an alternative and I found…
0
votes
0 answers

why is there is a warning message with no output result when I use IBM Quantum computer?

Please all, I made an account on IBM and got my API key. Then I tried to run a code on google Collab using IBM real quantum computer, but the same warning message appears with no any result output of code, just a warning msg in all training…
0
votes
2 answers

I get an errorat at qresorc=provider.get_backend('ibmq_oslo')

I try to run a simple quantum circuit on a quantum computer ('ibmq_oslo') and I get an error at qresorc=provider.get_backend('ibmq_oslo'). I verified that ibmq_oslo is in my resources list from my IBM quantum account. Here it is the code: from…
user21686
  • 1
  • 2
0
votes
2 answers

Error while running circuit.draw(output='mpl')

I have just started learning Quantum Computing using Qiskit and was trying to draw my quantum circuit using the command circuit.draw(output='mpl'). However, it throws an…
Soardr
  • 3
  • 3
0
votes
1 answer

Bundled QC Circuit on Qiskt (Index error)

I'm trying to execute a list of ciruits on qiskit, but was faced with this strange dilemma: --------------------------------------------------------------------------- IndexError Traceback (most recent call…
0
votes
1 answer

Why am I getting "NameError: name 'qiskit' is not defined" on my program when I already imported all qiskit functions

I'm using the IBM quantum lab to run my python program. I imported all these functions/libraries: from ibm_quantum_widgets import CircuitComposer from qiskit import QuantumRegister, ClassicalRegister, QuantumCircuit from numpy import pi import…
0
votes
1 answer

Cannot import QISKIT "ModuleNotFoundError: No module named 'qiskit._accelerate'"

I'm trying to use qiskit in virtual environment via Anaconda, however although I see qiskit as installed, importing qiskit always fails with: ModuleNotFoundError: No module named 'qiskit._accelerate' I can't find information about this anywhere.…
Alx Mx
  • 177
  • 9
0
votes
1 answer

Chaquopy fails to install qiskit

Hello I am trying to build an app with Chaquopy(12.0.0) and qiskit(0.34.2). The gradle sync is happening fine. But when I go and build the app and install it on my phone. it give error for the qiskit package as ERROR: Command errored out with exit…
0
votes
1 answer

Qiskit TwoLocal does not print Quantum Circuit

I am using a VQE algorithm for which I am using the TwoLocal fucntion. I am however not able to print the circuit as it gives a very weird picture of the circuit. ry.draw('mpl')``` Here is the code i am using to simulate the Quantum…
user48217
  • 1
  • 1
0
votes
1 answer

How to decompose a N x N unitary matrix into 2- or 1-qubit operators?

Given an N x N unitary operator M, I would like to build a circuit that does the same operation as M by explicitly inputting the gates myself (let's say into the IBMQ composer). I heard that 2-qubit operators could be decomposed using a Qiskit…
lumapools
  • 64
  • 6
0
votes
2 answers

Import Modules for Qiskit

Can someone please help nothing I do seems to work out was wondering if you guys had any knowledge about this I also left a link below so you guys could get a better understanding on my situation i've tried almost everything and nothing seems to…