All Questions
Tagged with or programming programming
227 questions
1
vote
2
answers
233
views
Is it possible to automatically rename a job at submission time?
I would like to find out if there is some way to rename a job automatically, either when the job is first sent to the queue, or later after the fact. I've tried searching through the forum and the ...
1
vote
1
answer
236
views
Within Stim, how to trace back DEM error instructions to Stim circuit faults
If I have a line in a DEM e.g.
error(0.001) D0
is there an easy way to see which circuit faults in the original circuit contributed to that error mechanism?
1
vote
0
answers
348
views
Ripple Adder using Full Adder [closed]
I have been trying to implement a ripple carry adder using qsikit in IBM Q Experience. I was able to implement full carry adder but I am having trouble with ripple carry adder. I am able to add 100 + ...
1
vote
3
answers
2k
views
Trying to get a provider from IBMQ but get 'No provider matches the criteria.'
I have created a circuit and then run the following:
provider = IBMQ.get_provider('ibm-q')
And this is what I get:
...
1
vote
1
answer
372
views
How to get running time for each circuit executed on IBM's quantum processors in one round?
I want to execute multiple circuits in one round on IBM's backends, especially the 16-qubit one, to save time. For instance, ...
1
vote
0
answers
65
views
Azure quantum error message
I am using the IonQ QPU on the Azure quantum provider with a Google Cloud API to access the native gates. As you can see in the image attached, I got this error:
...
1
vote
1
answer
784
views
Is there a quantum circuit builder package that allows you to import/export a circuit as a JSON?
I've done a superficial search in each of the qiskit, cirq, and braket open source repositories for such a feature, but can't find any explicit examples of this functionality. I'm wondering if anyone ...
1
vote
2
answers
1k
views
'IBMQFactory' object has no attribute 'load_accounts'
I am following this qiskit workshop from https://colab.research.google.com/github/mtreinish/qiskit-workshop/blob/master/Workshop.ipynb . After adding my API key I had encountered the error ...
1
vote
0
answers
143
views
Simulating light absorption in Photosynthesis through Quantum computing
Basically, I want to simulate the above photosystem process of light absorption. Above is a diagram of laser beams shot into antenna pigment molecules and traveling to the reaction center. Two ...
1
vote
1
answer
716
views
How to perform multi-class classification with qiskit's VQC?
I am following the tutorial given in qiskit's website Neural Network Classifier and Regressor. In the first part, classification, the third section refers to qiskit's VQC library. Everything works ...
1
vote
1
answer
181
views
IBMQ_Melbourne Readout error
I am trying to simulate an experiment on IBM's melbourne quantum computer and here are the results
Qasm simulator :
ibmq_16_melbourne:
error
why is there such high probability of unwanted states i....
1
vote
0
answers
98
views
Regarding quantum support vector machine using qiskit [duplicate]
I would like to ask, how can I add my own .csv data file to run a quantum support vector machine using qiskit ? I don't want to use already existing datasets in sklearn, scikit-learn library.
1
vote
1
answer
380
views
Writing Toffoli Gate Matrix by one and two qubit gate matrices
I am trying to write Toffoli gate matrice by using one and two qubit gates matrices.
I follow this circuit
link for the circuit
I first started to write the matrices of one and two qubit gates:
...
1
vote
2
answers
164
views
Setting the $\texttt{state_preparation}$ for $\texttt{AmplificationProblem()}$ in the scope of Grover's algorithm
I am having trouble setting the state_preparation parameter of AmplificationProblem() from ...
0
votes
1
answer
285
views
How to initialize my circuit with two random complex numbers?
Working through Lab 3 in the Qiskit text, I have been attempting to initialize my one qubit circuit with two random numbers. My first attempt, as directed, is using ...
0
votes
1
answer
135
views
Best way to compute $\langle a|B|a \rangle$ in Cirq, where a is a state obtained running circuit A. And B is a different Quantum Circuit
I am implementing RQAOA in Cirq.
After running regular QAOA to find an optimal state a (This I have done successfully).
I need to calculate $\langle a|Z_iZ_j|a\...
0
votes
1
answer
209
views
Generating a random 16-digits in a superposition state using Qiskit
Im trying to create a script using Qiskit for a days but somehow i couldn't seem to get it done!! Im new to QuantumComputing, so pardon me if i don't explain something properly. I need to create a ...
0
votes
3
answers
513
views
Suppress Warnings
I wish to know how to suppress the following warning obtained on qiskit when I try to add two different types of noise to a qubit
...
0
votes
2
answers
743
views
Suppress deprecation warnings from Qiskit
I am running a standard VQE from the example shown in here https://qiskit.org/textbook/ch-applications/vqe-molecules.html, however I keep getting this output constantly (as many times the vqe runs ...
0
votes
1
answer
626
views
How to perform a plot histogram for a circuit?
I have created a circuit and I don't know how to plot a histogram. I tried to plot a histogram but it gives me output for 0000 case only, how to get to know the probability for all of the cases. The ...
0
votes
3
answers
6k
views
import error :No module named 'qiskit_aqua'
I have an error when I use Quantum SVM kernel algorithm from Qiskit aqua.
This is my code section with imports:
...
0
votes
1
answer
73
views
Multiple Bipartite Entangled State in Cirq
I am trying to create this state:
rho = = q . rho_{1,2} + r . rho_{2,3} + s . rho{1,3} + (1-q-r-s) . rho_separable
And I wrote this code:
...
0
votes
1
answer
140
views
Qiskit QFT matrix does not match with DFT matrix
The unitary matrix associated with the QFT circuit in Qiskit does not match the actual DFT matrix. In fact, all the imaginary components have their sign flipped (...
0
votes
2
answers
80
views
Link between binary program output and observable eigenvalue
A quantum cloud server like from IBM typically returns a string of 0's and 1's such as 0010.
An observable such as $Z_1 \otimes Z_2 ... \otimes Z_{n}$ has two eigenvalues +1 or -1. How do I relate ...
0
votes
1
answer
1k
views
Using qiskit on mutiple cores
I would like to be able to set the number of cores the AerSimulator should be running. For now I've tried
...
0
votes
1
answer
210
views
Qiskit HHL algorithm BrokenProcessPool error
I try to run HHL algorithm on qasm_simulator. I took the example from here. I try to solve 8x8 random matrix and adjust some parameters in create_eigs.
...
-1
votes
2
answers
375
views
How do you pass input to a circuit? [closed]
I've implemented Grover's search algorithm in qiskit, and I'd like to pass in an input to run through the circuit. How is that done?