I needed help with CIRQ coding as I'm quite new to Quantum Computing. I read the tutorials on CIRQ but don't really understand it. I'd be very thankful if someone could help.

A program to create the state using CIRQ coding.

A program to create the state $\frac{1}{\sqrt 2}(|00\rangle+|11\rangle)$.

  • $\begingroup$ Would you be able to elaborate on what specifically about the tutorial you don't understand? $\endgroup$ – Mithrandir24601 Sep 15 '20 at 21:54

The state you want to create is called a Bell State. Creating it can be accomplished by a Hadamard gate followed by a CNOT gate . In Cirq this will be

q0 = cirq.GridQubit(0, 0)
q1 = cirq.GridQubit(0, 1)

circuit = cirq.Circuit(
    cirq.CNOT(q0, q1)

Printing the circuit show's that this is indeed the case.


# Circuit:
# (0, 0): ───H───@───
#                │
# (0, 1): ───────X───


Not the answer you're looking for? Browse other questions tagged or ask your own question.