CARVIEW |
Select Language
HTTP/2 200
date: Tue, 29 Jul 2025 12:47:33 GMT
content-type: text/html; charset=utf-8
cf-ray: 966cb9b14995f313-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=19574b43-8d98-4a79-b90d-c7394a53c5e1; expires=Wed, 29 Jul 2026 12:47:32 GMT; domain=.stackexchange.com; path=/; secure; httponly
strict-transport-security: max-age=31536000; includeSubDomains
vary: Accept-Encoding
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
x-clacks-overhead: GNU Terry Pratchett
x-frame-options: SAMEORIGIN
x-request-guid: 8ea17d73-415f-4e4a-9157-ed422494dc3a
x-worker-origin-response-time: 927000000
x-dns-prefetch-control: off
set-cookie: prov=19574b43-8d98-4a79-b90d-c7394a53c5e1; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=EIuTC8c7Qpdkc.vGC53apxplbu2rdxR4Y_eUjsqW_rI-1753793253-1.0.1.1-LUmQ8Cun5VUGLtlPipxYHpksR9ztwdkxorc4Yf6R7rP_DPry2gcWQxQjRRrKvJDj3_UOPgOrGyMUU._Bk3DoG7vywyVG2NceWfbZ7dIV18Q; path=/; expires=Tue, 29-Jul-25 13:17:33 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=ozLHmi0wuSsI_HPaco3Lb1rGdP0YzHXw187j43Ex6rY-1753793253043-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Newest 'programming' Questions - Quantum Computing Stack Exchange
Skip to main content
Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsQuestions 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,740 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
48
views
Qiskit versions:
I am taking a course of quantum computing, and as it is old, i have been using other imports. For example, now instead of from qiskit import Aer, you need to import from qiskit_aer import Aer(I have ...
1
vote
1
answer
117
views
Low Fidelity For QFT on IBM
I implemented a 5-qubit QFT circuit using Qiskit and performed quantum state tomography using an IBM backend. However, the reported process fidelity is only ~20%, which seems very low. I am trying to ...
-1
votes
0
answers
26
views
How to start in Quantum Computing [duplicate]
I am a 19 year old engineering college student currently pursuing CS, my previous 2 sem had courses : C, Python, Data Structures, Calculus, Linear Algebra and Optimization, WebD, Digital Logic Design.
...
0
votes
1
answer
52
views
How to construct an oracle and flips the phase of the solution bit strings?
I am trying to solve the boolean problem (x1 or x2) and (~x1 or ~x2 or x3) using Grover's algorithm. The only measured bits are q0, q1, and q2. This is my oracle:
...
1
vote
0
answers
43
views
Stabilizers for the XYZ^2 code
From looking at this paper: https://arxiv.org/pdf/2112.06036, I was wondering if there was a straightforward way to code up and explicitly find the stabilizer generators for any arbitrary code ...
2
votes
0
answers
52
views
How to remove ancilla qubits in Qiskit?
I have a circuit that I must optimize using QAOAAnsatz such as the initial state, but the problem is that this circuit has more qubits (unnecessary ancillas at the end) than the qaoa cost operator ...
0
votes
0
answers
50
views
How to make a phase oracle that marks the largest number?
I have a list of strategies each with a corresponding score, I want my oracle to apply the phase shift on the strategy with the largest score value. Without knowing the values beforehand how would I ...
1
vote
0
answers
19
views
How can I generate a sample of a unitary 1-design defined via Pauli twirling and a change of basis in Python?
I am working with a linear map $V: A \to B$, and I want to generate a sample of a unitary 1-design over the Hilbert space $A$ in Python. Specifically, the 1-design is defined as:
$$
\chi_0 = \left\{ Q ...
1
vote
2
answers
72
views
Is there a way to assign different weights to and get the decoding edges from 2D graphs in each round when using pymatching to decode 3D graph
It seems that when decoding 3D graph, pymatching only gives the overall decoding edges and only takes spacelike-weights in 2D graph which means the weights are the same in each round.
So I'd like to ...
0
votes
1
answer
138
views
Logical error on Grover's Algorithm protected by Shor's error correction
Hey guys I need some help figuring out why this code will not return the correct keyed result
Basically it is Gorver's Algorithm that is protected by Shor's error correction but when run '000' always ...
1
vote
1
answer
57
views
Fake backendfor ibm_aachen
I am doing some experiments where I am using ibm_aachen. I want to conduct some experiments on Fake backend of ibm_aachen but ...
1
vote
0
answers
166
views
BaseSampler error trying to do VQE/QAOA
Trying to run
from qiskit.primitives import Sampler
But I obtain the following:
...
0
votes
0
answers
325
views
Library import error in qiskit
I am new to quantum comupting qiskit library. I am trying to explore the optimization problems using qiskit. I found the following from the documentation
...
1
vote
0
answers
42
views
What does BP-OSD"W" mean?
I'm using ldpc library to analyze bp-osd decoder.
When I read the source of this, I found the OSD-W method. What does this mean? Does this mean the higher order OSD method?
0
votes
1
answer
74
views
Circuits generated by qiskit.circuit.library import StatePreparation cannot be transpiled into basis gates
The circuit generated by qiskit.circuit.library import StatePreparation can no longer be transpiled into basis gates in qiskit. I tested it with ...
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related Tags
qiskit × 1044
ibm-q-experience × 266
quantum-gate × 205
quantum-algorithms × 155
quantum-state × 150
q# × 115
circuit-construction × 92
cirq × 86
simulation × 77
quantum-circuit × 70
vqe × 66
measurement × 48
grovers-algorithm × 45
ibm-quantum-devices × 44
error-correction × 43
optimization × 40
qaoa × 40
qutip × 37
qasm × 35
resource-request × 32
noise × 31
pennylane × 31
stim × 31
more related tags
Hot Network Questions
- Why f[x___] := {x==="To be", x=!="not to be"} is both True for f[]?
- Can sunflowers disturb and mess with other surrounding plants?
- Rate of Difference of Gaussian Error
- Handling authorization and authentication with an API gateway
- What is causing parts of my mesh to be shaded as smooth despite being outside the auto smoothing threshold?
- When using Da Capo, does that normally include a pick up?
- Finite projective plane with trivial automorphism group
- word category and coordination
- Reason why golems do not run on wheels
- Effect of strong static magnetic field on logic integrated circuit
- Ignore the last line of a file when using `\VerbatimInput`
- How can I secure an old iron gate with a padlock?
- Why did many arcade games have separate sound CPUs?
- How would the wind patterns of a Disc-like-world work?
- Does Genesis account allow for the possibility of intelligent man like beings existing before Adam and Eve?
- Khovanskii's theorem in nilpotent groups?
- Should I regularly reapply thermal paste?
- Does group action on a ring induce an action on a Morita equivalent ring
- Film or TV series about powerful man who is banished, fishes beings he creates from ponds
- Do police need a search warrant to chase a fugitive onto private property?
- EU/USA trade deal - is it really a done deal?
- What are ways to prevent overly long ballots?
- Will this work as an XOR gate?
- How to speed up this NIntegrate which is calculated many times?