# 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.

1,688 questions
Filter by
Sorted by
Tagged with
1 vote
34 views

32 views

### Error code 1217: "Session has been closed"

I am currently studying algorithms related to VQA. I have built a circuit to calculate the cost function and optimized it using a classical optimizer. During the initial optimization iterations, ...
• 51
37 views

### Are qiskit and qiskit aer identical or very similar in syntax?

I can't afford a IBM full access account, and can't learn an entire programming language with only ten minutes of run time a month. Are the qiskit lessons on YouTube/ github transferable given that I ...
56 views

### Optimizing SymPy Implementation of prime factorization in form of QUBO

I'm trying to reproduce a paper on Prime Factorization. This paper converts the problem into a QUBO form, which then we can map it to an Ising Minimizer. I've basically done everything, and I've ...
1 vote
188 views

### How to implement a quantum multiplier in Qiskit 1.0

I am looking at the homepage of Qrisp, and they have an example of how to multiply two registers with Qiskit: ...
45 views

### Obtaining and Applying XX and ZZ Parity in Stim for Controlled Paulis

I am attempting to perform a CNOT between two surface code qubits in Stim, based on this paper by Daniel Litinski and Felix von Oppen. The CNOT they perform is shown in the figure below (Figure 3 from ...
• 25
36 views

### Error 400 on Variation Quantum Algorithm

As the title suggests, I am trying to optimize a cost function in a VQA (Variational Quantum Algorithm) code using a classical optimizer to obtain the best parameters. In my initial optimization ...
• 51
1 vote
88 views

### For CHSH game, why does the mathematica program gives 75% as the best winning rate when sharing 2 EPR pairs?

In the CHSH game , the optimal quantum winning rate should be approximately 85% when Alice and Bob share the EPR states and this winning rate holds the same when they share arbitrarily many EPR states....
• 233
1 vote