Questions tagged [programming]
For any questions whose answer is expected to require code or programming notions. For questions about a specific framework (e.g. qiskit or cirq) please also include a more specific tag. If your question is about installation or any specific framework error, consider posting it in https://stackoverflow.com/ instead.
10 questions from the last 30 days
2
votes
0
answers
34
views
How to use Qiskit translation pass manager with Clifford + T gate basis?
Context
In qiskit, the translation stage of the transpilation "translates (or unrolls) the gates specified in a circuit to the native basis gates of a specified backend." (cf doc)
For that, ...
1
vote
0
answers
43
views
Operation 'sx' is not defined for this system
Any one knows how to resolve the below error:Operation 'sx' is not defined for this system. The below code works really well with ...
1
vote
0
answers
12
views
Periodic electric field link operator in QuSpin
I am trying to implement a truncated bosonic Hilbert space as described in Eqs. (15) and (16) of this paper on simulating the Schwinger model. However, I am unable to implement the "periodic ...
1
vote
0
answers
21
views
What is the difference between `HighLevelSynthesis` and `UnrollCustomDefinitions` qiskit transpilation passes?
The doc for UnrollCustomDefinitions indicates :
...
1
vote
1
answer
253
views
Simple successor gate
I want to create a gate that, given a sequence of qbits that encode n, transforms that sequence in n+1, in other words the successor function. I managed to do it in qiskit by writing this:
...
1
vote
0
answers
33
views
I have trouble using the alternatives for some commands in older versions of qiskit
I have a code that calculates the transition amplitute between and using the ZZFeatureMap with 4 repetitions and default data mapping function. Use the qasm_simulator with shots = 8192, seed_simulator ...
1
vote
0
answers
12
views
Custom Feature Map Error for VQR in Qiskit 'Input data has incorrect shape, last dimension is not equal to the number of inputs'
I am trying to use a VQR for solving a regression problem. My data has 5 features, I want to use 4 features to estimate 5th one. I made it work with ZFeatureMap but now I want to create my own feature ...
2
votes
1
answer
109
views
why does this get DAGCircuitError?
When I run the simple circuit that just does multi-controlled rotation I had the error:
"DAGCircuitError: 'bit mapping invalid: expected 4, got 1'".
It seems the error occurs when a ...
1
vote
0
answers
17
views
How to get historical calibration data for mthree (M3) from IBM Quantum devices?
I'm using mthree in Batch mode. A batch needs to be queued before it can be executed. The time when a batch was executed can be obtained from the IBM Quantum Platform site, so I would like to obtain ...
-4
votes
1
answer
54
views
What if oscillation-based computing is the generalization of quantum computing? [closed]
This question contains both engineering perspectives and science perspectives.
Here is my definition about oscillation-based computing:
Oscillation-based computing is the computation where the input ...