Skip to main content

All Questions

Tagged with
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 ...
Yemane's user avatar
  • 23
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 ...
Ceasar's user avatar
  • 69
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?
Son100's user avatar
  • 63
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 ...
saguira's user avatar
  • 11
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". ...
beaver's user avatar
  • 11
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 ...
Bravyi's user avatar
  • 11
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 ...
Syed Shahmir Kazmi's user avatar
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: ...
Sam's user avatar
  • 31
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 ...
D.Madhurima's user avatar
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. (...
Luke Michie's user avatar
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: ...
sailx's user avatar
  • 365
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. ...
Qubii's user avatar
  • 301
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 ...
Qubii's user avatar
  • 301
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^\...
Eenoku's user avatar
  • 264
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 ...
Inm's user avatar
  • 535

15 30 50 per page
1
2 3 4 5 6