CARVIEW |
Select Language
HTTP/2 200
date: Wed, 30 Jul 2025 07:57:47 GMT
content-type: text/html; charset=utf-8
cf-ray: 96734ea1eb39e084-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=586a638c-2bb2-4c75-bcc5-77bd74696976; expires=Thu, 30 Jul 2026 07:57:47 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: 11ed1df4-379b-4965-844d-f2f00ea6ccc9
x-worker-origin-response-time: 428000000
x-dns-prefetch-control: off
set-cookie: prov=586a638c-2bb2-4c75-bcc5-77bd74696976; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=YK002Lo5mSq2NGNVhKDr_Amu.nuSCSvYN_mDfMpHtkw-1753862267-1.0.1.1-BEIx_7gSGu4mzHVLF.58cnzRiCNK02sUob2Uf585jFllHXHd.x0YcSM_mX.ItXnitlUyRxFGuAqTIs6VzDpJU0NdHJlhG2jishUFvVWh85M; path=/; expires=Wed, 30-Jul-25 08:27:47 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=Bc62SGl_cZfPWX2Za8_dt2fCpeV4IuANsH7HWKzacwY-1753862267629-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Newest 'cirq' 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 Exchange
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more.
View results.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsQuestions tagged [cirq]
A python framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits. It is a Python library for writing, manipulating, and optimizing quantum circuits and running them against quantum computers and simulators.
187 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
46
views
Performing a Partial Trace on Arbitrary Subsystems with Python/QuTiP/Cirq
I have a composite quantum system with density matrix rho represented as a NumPy array of shape $(D,D)$, where $D = \prod_i d_i$ is the product of the dimensions of ...
0
votes
1
answer
64
views
Which endianess convention is used by Cirq?
I know that Qiskit uses the little-endian convention for qubit ordering and statevector indexing, while Pennylane uses the big-endian convention. Which convention is used by Cirq?
0
votes
0
answers
30
views
What is the meaning of the exponent_neg and exponent_pos parameters in PauliStringPhasorGate in Cirq?
The PauliStringPhasorGate gate in Cirq takes as input a Pauli string, which is exponentiated. I do not understand why two parameters can be given: exponent_neg and exponent_pos?
To make my question ...
2
votes
1
answer
181
views
How can a beginner start contributing to quantum open-source projects (e.g., Qiskit/Cirq)?
I’m new to quantum computing and eager to contribute to open-source projects like Qiskit or Cirq. Could you recommend:
Beginner-friendly resources (tutorials, books, or courses) to build foundational ...
2
votes
1
answer
144
views
Converting stim circuit into cirq and back with Detectors?
I am attempting to work in both stim and cirq and was testing moving back and forth between the two and got an error for a ...
3
votes
1
answer
154
views
Help me in understanding the State Change After the Final CNOT Gate in this Quantum Circuit
I am a beginner in the quantum computing field and have recently taken Qiskit 101, where I first created my quantum circuit.
What I was focusing on was understanding the change in state at each gate. ...
2
votes
0
answers
130
views
Is there a theoretical method to achieve a positive semi-definite density matrix in QST?
The problem of encountering negative eigenvalues in the density matrix during Quantum State Tomography (QST) is well-explained in this Quantum Computing Stack Exchange post.
However, I am seeking ...
0
votes
0
answers
57
views
How can I measure qutrits in the X basis using cirq?
I attempted to create a custom measurement class which, in my case, allows us to go from the z basis to x basis using a hadamard gate transformation, and then we measure wrt that new basis. However, ...
1
vote
1
answer
174
views
quantum multiplier for large numbers
I am working on a project where I need to calculate 3x+1 for numbers 0 to infinity. I have an 8GB RAM laptop and I am using Cirq. For small numbers, I was able to perform the multiplication using the ...
0
votes
0
answers
83
views
Why does cirq produce a non-positive semidefinite density matrix doing quantum tomography?
While doing quantum tomography in cirq, I ended up getting a density matrix which is not positive semi-definite. Why is this so? Here's the code I used:
...
-1
votes
2
answers
132
views
How to do quantum tomography on a subsystem of 2 of 30 qubits in cirq?
I have a 30 qubit system and I need to do quantum tomography on a subsystem of 2 of its qubit. How can I do this in Cirq?
1
vote
0
answers
66
views
Finding partial trace in CIRQ
Suppose I have a 30 qbit system, due to computational complexity, I can't find the density matrix of the system. But is it possible to find the partial trace of the a sub-system of 2 qubits out of 30 ...
3
votes
2
answers
455
views
How to compose a larger circuit onto a smaller circuit in Qiskit, adding extra quantum registers to some fixed list
$\newcommand{\ket}[1]{|{#1}\rangle}$
I have a Qiskit quantum circuit for multiplication $M$, that I want to compose onto another qiskit quantum circuit for inner ...
0
votes
1
answer
256
views
How to implement a depolarizing noise channel for qutrits using cirq?
Anyone have any idea how I can implement a depolarizing noise channel for qutrits using cirq? Say using the kraus operators within a class inheriting from cirq.Gate or so?
2
votes
1
answer
87
views
How does the cirq compilation process work?
Cirq compilation process.
I cannot find the documentation that describes the internal structure of the library Cirq by Google.
There is much information related to high level functions, but none ...
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related Tags
programming × 86
circuit-construction × 22
qiskit × 22
quantum-gate × 20
quantum-state × 18
quantum-algorithms × 16
simulation × 14
tfq × 11
measurement × 10
vqe × 9
quantum-circuit × 9
entanglement × 6
density-matrix × 5
machine-learning × 5
qaoa × 5
ibm-q-experience × 4
shors-algorithm × 4
noise × 4
hhl-algorithm × 4
state-tomography × 3
pyquil × 3
more related tags
Hot Network Questions
- Electrician ran neutral and ground to the same bar, and is telling me it's common practice. Pictures show my main and sub. Is he right?
- How Does Code Reuse Work at NASA
- Middleschool student shows unusual level of insight. How to take the next step?
- Can clerics create holy water with the core rules?
- Is "Every real number is even" a false statement? Is it a statement at all?
- Looking for a piece of writing that describes the head of Michelangelo's David floating in space
- Does the concept of information presuppose sentience?
- VMWare, SAN, SSD, Influence of the fill level on the performance of a virtual hard disk
- Can I bring mycelium pellets into Greenland?
- char2path not loadable?
- Is there any (around) the 14 hidden characters in path and/or filename in File Explorer?
- Can ffmpeg record screen on wayland?
- Why do C compilers still prefer push over mov for saving registers, even when mov appears faster in llvm-mca?
- Why plot is rotated in QGIS?
- How can my dwarves keep humans from reverse engineering their technology?
- How to identify process' serving 127.0.0.53:53 and 127.0.0.54:53?
- I struggle to draft without editing
- If the police observe evidence of a different crime while in "hot pursuit" can they act on it?
- Is a normality test always performed on errors and not on raw data?
- Why is Donald Trump portrayed like a Canadian in South Park S27E01?
- When using Da Capo, does that normally include a pick up?
- Why f[x___] := {x==="To be", x=!="not to be"} is both True for f[]?
- Golden-section optimization with complication
- How to test whether a secondary inet address exists on an eth interface?