All Questions
Tagged with programming cirq
86 questions
2
votes
1
answer
114
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
0
answers
107
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
1
answer
206
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?
1
vote
0
answers
38
views
How to convert a custom observable matrix to a Cirq observable for simulation?
I aim to conduct a Cirq simulation using a custom observable. However, the measure_observables function in Cirq requires an Iterable of cirq.PauliString, making it challenging to directly use a custom ...
1
vote
1
answer
101
views
cirq entanglement qubits
The following code originates from a third-party, although, I have added the commented line containing "UNCOMMENT THE START OF THIS LINE".
...
1
vote
1
answer
120
views
Need help regarding building a custom VQE
I want to write code for a custom Variational Quantum Eigensolver (VQE) capable of computing eigenvalue(s) for non-Hermitian systems, based on this paper. I have formulated a cost function (provided ...
1
vote
0
answers
92
views
How to create a 3-D state (array) of qubits in qiskit or cirq etc?
I want a 3-D cube-like array for state of qubits, on which I want further to implement different sets of rotations, etc, for cryptographic means. You can create a 2D grid qubit in cirq with ...
1
vote
1
answer
371
views
If Statement OpenQasm 2.0
in the documentation for OpenQasm 2.0 it says one can use an if statement like so:
if(c_reg==int) Quantum Operation.
However, I would like to execute the following: ...
0
votes
1
answer
267
views
AttributeError: module 'cirq_google' has no attribute 'Foxtail'
I have installed cirq in my anaconda environment by using the command:
pip install cirq
When I ran the code below to print the ...
2
votes
1
answer
291
views
Generalizing a brick-wall circuit acting on qubits to acting on qudits
Recently, I have been creating a "brick layer" circuit of random unitary gates (each acting on 2 qubits) which acts on a n qubit register using cirq. A typical circuit looks like this.
(...
3
votes
1
answer
149
views
how to flatten a cirq.Circuit with CircuitOperation
I have a cirq.Circuit that uses a CircuitOperation, something like:
...
2
votes
0
answers
123
views
How can i describe Custome Gate Sets in Cirq?
i try to create a Custome GateSet with the CompilationTargetGateset class but it does not work.
...
1
vote
0
answers
38
views
Is there a method in pyQuil to create logical boolean gates
is there another way to represent a boolean gate. The straight forward way would be to define a gate my a matrix and then apply this gate to the circuit. What i mean by that? For Example an AND-Gate ...
1
vote
0
answers
237
views
How to rewrite this Cirq problem into Qiskit?
I have a following example problem in Cirq, representing a very simple operator given by
$$
\hat{H} = a^\dagger_0a_2 + a_0a^\dagger_1 + 0.9\, a^\dagger_0a_1a^\dagger_2a^\dagger_3 + a^\...
2
votes
1
answer
262
views
Merge two Y**0.5 gate into a single Y gate
How can I merge two consecutive cirq.Y**0.5 gates into a single cirq.Y gate with a transformer?
I can use ...