{ "cells": [ { "cell_type": "markdown", "metadata": { "id": "6HTRLzyWW5Q1" }, "source": [ "##### Copyright 2020 The Cirq Developers" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "cellView": "form", "execution": { "iopub.execute_input": "2025-05-30T09:06:26.046046Z", "iopub.status.busy": "2025-05-30T09:06:26.045815Z", "iopub.status.idle": "2025-05-30T09:06:26.049665Z", "shell.execute_reply": "2025-05-30T09:06:26.049048Z" }, "id": "oOggJBe6W5nF" }, "outputs": [], "source": [ "# @title Licensed under the Apache License, Version 2.0 (the \"License\");\n", "# you may not use this file except in compliance with the License.\n", "# You may obtain a copy of the License at\n", "#\n", "# https://www.apache.org/licenses/LICENSE-2.0\n", "#\n", "# Unless required by applicable law or agreed to in writing, software\n", "# distributed under the License is distributed on an \"AS IS\" BASIS,\n", "# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n", "# See the License for the specific language governing permissions and\n", "# limitations under the License." ] }, { "cell_type": "markdown", "metadata": { "id": "9UinLMKSWRkA" }, "source": [ "# Quantum circuits on Pasqal devices" ] }, { "cell_type": "markdown", "metadata": { "id": "8jnX4ti8W6Lg" }, "source": [ "\n", " \n", " \n", " \n", " \n", "
\n", " View on QuantumAI\n", " \n", " Run in Google Colab\n", " \n", " View source on GitHub\n", " \n", " Download notebook\n", "
" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "execution": { "iopub.execute_input": "2025-05-30T09:06:26.052162Z", "iopub.status.busy": "2025-05-30T09:06:26.051945Z", "iopub.status.idle": "2025-05-30T09:06:40.758522Z", "shell.execute_reply": "2025-05-30T09:06:40.757827Z" }, "id": "bd9529db1c0b" }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "installing cirq...\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\r\n", "tensorflow-metadata 1.17.1 requires protobuf<4.22,>=4.21.6; python_version < \"3.11\", but you have protobuf 5.29.5 which is incompatible.\u001b[0m\u001b[31m\r\n", "\u001b[0m" ] }, { "name": "stdout", "output_type": "stream", "text": [ "installed cirq.\n" ] } ], "source": [ "try:\n", " import cirq\n", "except ImportError:\n", " print(\"installing cirq...\")\n", " !pip install --quiet cirq\n", " print(\"installed cirq.\")\n", " import cirq\n", "import cirq_pasqal\n", "from cirq_pasqal import ThreeDQubit, TwoDQubit, PasqalVirtualDevice, PasqalNoiseModel" ] }, { "cell_type": "markdown", "metadata": { "id": "785bc8599470" }, "source": [ "\n", "\n", "In this notebook, we show how to program a quantum circuit for Pasqal using cirq. The first step is to import cirq, and Pasqal custom classes. We use ``PasqalVirtualDevice`` to showcase how Cirq enforces Pasqal's devices' restrictions throughout the process." ] }, { "cell_type": "markdown", "metadata": { "id": "2308f81b64c4" }, "source": [ "## Create an array of qubits on a lattice\n", "\n", "The QPU of Pasqal is made of neutral atoms controlled by lasers. Individual atoms are trapped at well-defined positions in 1, 2 or even 3D, as shown on the following plot ( [Nature 561, 79 (2018)](https://www.nature.com/articles/s41586-018-0450-2)).\n", "\n", "\n", "\n", "We created a custom class in Cirq, ThreeDQubit, that corresponds to a qubit placed in 3D space. Let us start by creating a register comprising $36=6\\times6$ qubits in 2D, regularly arranged on a square lattice. It corresponds to the following configuration (image taken from [Nature 561, 79 (2018)](https://www.nature.com/articles/s41586-018-0450-2))\n", "\n", "" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "execution": { "iopub.execute_input": "2025-05-30T09:06:40.762261Z", "iopub.status.busy": "2025-05-30T09:06:40.761876Z", "iopub.status.idle": "2025-05-30T09:06:40.765913Z", "shell.execute_reply": "2025-05-30T09:06:40.765340Z" }, "id": "74507c7b7017" }, "outputs": [], "source": [ "width = 6\n", "height = 6\n", "depth = 1\n", "# Creating p_qubits, a list of ThreeDQubits.\n", "p_qubits = [\n", " ThreeDQubit(row, col, layer)\n", " for row in range(width)\n", " for col in range(height)\n", " for layer in range(depth)\n", "]" ] }, { "cell_type": "markdown", "metadata": { "id": "0c70e0cd44b6" }, "source": [ "Notice how we are fixing `depth=1` to keep all qubits in the $z=0$ plane. The same can also be achieved by using the `TwoDQubit` class, which is nothing more than a `ThreeDQubit` confined to the `z=0` plane. We can create the same $6 x 6$ square array, this time using one of the built-in methods:" ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "execution": { "iopub.execute_input": "2025-05-30T09:06:40.768231Z", "iopub.status.busy": "2025-05-30T09:06:40.768015Z", "iopub.status.idle": "2025-05-30T09:06:40.771284Z", "shell.execute_reply": "2025-05-30T09:06:40.770644Z" }, "id": "YPyeqF3EReB2" }, "outputs": [], "source": [ "p_qubits = TwoDQubit.square(6) # 6x6 square array of TwoDQubits" ] }, { "cell_type": "markdown", "metadata": { "id": "0b0039da850c" }, "source": [ "## Create a PasqalDevice\n", "\n", "Multi-qubit gates can be applied between qubits in the device, provided that the distance between them is smaller than the so-called Rydberg blocade radius (or control radius), that can be passed as a parameter of the device (in units of the lattice size). Here, we instantiate a `PasqalVirtualDevice` with 36 qubits and a control radius of $2.1$. \n", "\n", "This `PasqalVirtualDevice` can be used to validate the operations within a `Circuit`." ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "execution": { "iopub.execute_input": "2025-05-30T09:06:40.773791Z", "iopub.status.busy": "2025-05-30T09:06:40.773575Z", "iopub.status.idle": "2025-05-30T09:06:40.874864Z", "shell.execute_reply": "2025-05-30T09:06:40.874293Z" }, "id": "c9f65c79ae9e" }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "cirq.CNOT is not a supported gate\n" ] } ], "source": [ "# Initialize and create a circuit\n", "initial_circuit = cirq.Circuit()\n", "initial_circuit.append(cirq.CZ(p_qubits[0], p_qubits[1]))\n", "initial_circuit.append(cirq.Z(p_qubits[0]))\n", "initial_circuit.append(cirq.CX(p_qubits[0], p_qubits[2]))\n", "\n", "# Create a Pasqal device with a control radius of 2.1 (in units of the lattice spacing)\n", "p_device = PasqalVirtualDevice(control_radius=2.1, qubits=p_qubits)\n", "\n", "# Validate the circuit using the device\n", "try:\n", " p_device.validate_circuit(initial_circuit)\n", "except ValueError as e:\n", " # Uh oh! This circuit does not pass validation.\n", " print(e)" ] }, { "cell_type": "markdown", "metadata": { "id": "aa25f2e644ce" }, "source": [ "Notice that the `CX` gate, also called a `CNOT` gate is not valid on this device. We can use a `PasqalGateset` object with the built-in cirq method `cirq.optimize_for_target_gateset` to convert it. This will convert the logical gates into native hardware gates. " ] }, { "cell_type": "code", "execution_count": 6, "metadata": { "execution": { "iopub.execute_input": "2025-05-30T09:06:40.877378Z", "iopub.status.busy": "2025-05-30T09:06:40.877166Z", "iopub.status.idle": "2025-05-30T09:06:40.897150Z", "shell.execute_reply": "2025-05-30T09:06:40.896535Z" }, "id": "1JbgjTVzZg6u" }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "(0, 0): ───@───Z──────────────────@───────────────────Z─────────\n", " │ │\n", "(1, 0): ───@──────────────────────┼─────────────────────────────\n", " │\n", "(2, 0): ───────────PhX(0.5)^0.5───@───PhX(-0.5)^0.5───────Z^0───\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n" ] } ], "source": [ "pasqal_gateset = cirq_pasqal.PasqalGateset(include_additional_controlled_ops=False)\n", "pasqal_circuit = cirq.optimize_for_target_gateset(initial_circuit, gateset=pasqal_gateset)\n", "\n", "# TODO(https://github.com/quantumlib/Cirq/issues/6655) - remove after fixup\n", "pasqal_circuit = cirq.Circuit(pasqal_circuit.all_operations(), strategy=cirq.InsertStrategy.NEW)\n", "\n", "print(pasqal_circuit)\n", "\n", "# Now the circuit validates correctly!\n", "p_device.validate_circuit(pasqal_circuit)" ] }, { "cell_type": "markdown", "metadata": { "id": "DkHu3gfNpe2J" }, "source": [ "When inserting into circuits designed for Pasqal devices, be sure to insert each operation into its own `Moment` (for example, using `cirq.InsertStrategy.NEW`). You may need to do this in a separate step, as in the below example that converts two simultaneous Hadamard gates." ] }, { "cell_type": "code", "execution_count": 7, "metadata": { "execution": { "iopub.execute_input": "2025-05-30T09:06:40.899620Z", "iopub.status.busy": "2025-05-30T09:06:40.899409Z", "iopub.status.idle": "2025-05-30T09:06:40.906862Z", "shell.execute_reply": "2025-05-30T09:06:40.906253Z" }, "id": "YtXUHkTfpraF" }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Initial Circuit, does not pass validation:\n", "(0, 0): ───H───\n", "\n", "(1, 0): ───H───\n", "Cannot do simultaneous gates. Use cirq.InsertStrategy.NEW.\n", "\n", "Converted Circuit, passes validation:\n", "(0, 0): ───H───────\n", "\n", "(1, 0): ───────H───\n" ] } ], "source": [ "initial_circuit = cirq.Circuit()\n", "initial_circuit.append(cirq.H(p_qubits[0]))\n", "initial_circuit.append(cirq.H(p_qubits[1]))\n", "print('Initial Circuit, does not pass validation:')\n", "print(initial_circuit)\n", "try:\n", " p_device.validate_circuit(initial_circuit)\n", "except ValueError as e:\n", " # Uh oh! This circuit does not pass validation.\n", " print(e)\n", "\n", "pasqal_circuit = cirq.Circuit(initial_circuit.all_operations(), strategy=cirq.InsertStrategy.NEW)\n", "print('')\n", "print('Converted Circuit, passes validation:')\n", "print(pasqal_circuit)\n", "\n", "# Now the circuit validates correctly!\n", "p_device.validate_circuit(pasqal_circuit)" ] }, { "cell_type": "markdown", "metadata": { "id": "612100a9e1a0" }, "source": [ "When the distance between the two qubits involved in the gate is greater than the control radius, as shown for example in the following plot, Cirq will raise an error.\n", "\n", "
" ] }, { "cell_type": "code", "execution_count": 8, "metadata": { "execution": { "iopub.execute_input": "2025-05-30T09:06:40.909761Z", "iopub.status.busy": "2025-05-30T09:06:40.909529Z", "iopub.status.idle": "2025-05-30T09:06:40.913896Z", "shell.execute_reply": "2025-05-30T09:06:40.913235Z" }, "id": "25d50548ab09" }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "ERROR: Qubits pasqal.TwoDQubit(0, 0), pasqal.TwoDQubit(5, 5) are too far away\n" ] } ], "source": [ "# It is impossible to add a multi-qubit gate if the qubits involved are too far away\n", "try:\n", " p_device.validate_operation(cirq.CZ(p_qubits[0], p_qubits[-1]))\n", "except ValueError as msg:\n", " print(\"ERROR:\", msg)\n", "else:\n", " print(\"Failed to raise the expected ValueError.\")" ] }, { "cell_type": "markdown", "metadata": { "id": "bd01f8dc88c9" }, "source": [ "## Send a circuit to a remote Pasqal machine\n", "\n", "Using the Circuit class of Cirq, one can then build a circuit that will be implemented with one of Pasqal's devices as a backend.\n", "\n", "The real QPU is not plugged in yet as a backend. If you send us your circuit, we currently use a classical emulator as a backend to determine the result of your simulation. As emulating a quantum circuit with a large number of qubits is computationnaly intensive, here we choose to realize a circuit on a smaller register.\n", "\n", "More precisely, we will implement Grover's algorithm to search for the state $|10\\rangle$, which corresponds to the circuit:\n", "\n", "
\n", "\n", "Bear in mind that this is a naïve implementation that can be substantially optimized, particularly in the oracle and the usage of an ancilla, but that is beyond the scope of this tutorial.\n", "\n", "Here is the Cirq implementation of the circuit using generators:" ] }, { "cell_type": "code", "execution_count": 9, "metadata": { "execution": { "iopub.execute_input": "2025-05-30T09:06:40.916481Z", "iopub.status.busy": "2025-05-30T09:06:40.916272Z", "iopub.status.idle": "2025-05-30T09:06:41.007560Z", "shell.execute_reply": "2025-05-30T09:06:41.006858Z" }, "id": "494c8052fa12" }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n" ] } ], "source": [ "import numpy as np\n", "\n", "# Place qubits at vertices of an equilateral triangle\n", "qs = [TwoDQubit(0, 0), TwoDQubit(1, 0), TwoDQubit(0.5, np.sqrt(3) / 2)]\n", "q_meas = [TwoDQubit(1, 0), TwoDQubit(0, 0)]\n", "\n", "\n", "def state_preparation():\n", " for q in qs[:-1]:\n", " yield cirq.H(q)\n", " yield cirq.X(qs[-1])\n", " yield cirq.H(qs[-1])\n", "\n", "\n", "def oracle():\n", " # Signals the state 10\n", " yield cirq.X(qs[0])\n", " yield cirq.CCX(*qs)\n", " yield cirq.X(qs[0])\n", "\n", "\n", "def grover_operator():\n", " for q in qs[:-1]:\n", " yield cirq.H(q)\n", " yield cirq.X(q)\n", "\n", " yield cirq.CZ(*qs[:-1])\n", "\n", " for q in qs[:-1]:\n", " yield cirq.X(q)\n", " yield cirq.H(q)\n", "\n", "\n", "def generate_grover():\n", " yield state_preparation()\n", " yield oracle()\n", " yield grover_operator()\n", "\n", "\n", "def generate_pasqal_grover():\n", " pasqal_gateset = cirq_pasqal.PasqalGateset(include_additional_controlled_ops=False)\n", " grover_cicruit = cirq.optimize_for_target_gateset(\n", " cirq.Circuit(generate_grover()), gateset=pasqal_gateset\n", " )\n", " return cirq.Circuit(grover_cicruit.all_operations(), strategy=cirq.InsertStrategy.NEW)\n", "\n", "\n", "device = PasqalVirtualDevice(control_radius=1.1, qubits=qs)\n", "grover_circuit = generate_pasqal_grover()\n", "device.validate_circuit(grover_circuit)\n", "grover_circuit.append(cirq.measure(*q_meas, key='x'))" ] }, { "cell_type": "markdown", "metadata": { "id": "ea966b4466aa" }, "source": [ "Now, to execute the circuit on one of our servers, one has to create a sampler that will send the circuit to the remote host address. One currently needs a token to do this. Please contact us to get one !" ] }, { "cell_type": "code", "execution_count": 10, "metadata": { "execution": { "iopub.execute_input": "2025-05-30T09:06:41.011031Z", "iopub.status.busy": "2025-05-30T09:06:41.010423Z", "iopub.status.idle": "2025-05-30T09:06:41.013982Z", "shell.execute_reply": "2025-05-30T09:06:41.013298Z" }, "id": "8214ee49f634" }, "outputs": [], "source": [ "# To execute on one of Pasqal's servers, get an access token and uncomment these lines\n", "# sampler = cirq_pasqal.PasqalSampler(remote_host='http://34.98.71.118/v0/pasqal',\n", "# access_token='')" ] }, { "cell_type": "markdown", "metadata": { "id": "70151da8a002" }, "source": [ "Alternatively, small circuits can also be simulated locally using Cirq's `Simulator`, which we will do here. " ] }, { "cell_type": "code", "execution_count": 11, "metadata": { "execution": { "iopub.execute_input": "2025-05-30T09:06:41.016435Z", "iopub.status.busy": "2025-05-30T09:06:41.016047Z", "iopub.status.idle": "2025-05-30T09:06:41.031030Z", "shell.execute_reply": "2025-05-30T09:06:41.030328Z" }, "id": "8918f73e67c1" }, "outputs": [], "source": [ "sampler = cirq.Simulator()\n", "data_raw = sampler.run(grover_circuit, repetitions=200)" ] }, { "cell_type": "markdown", "metadata": { "id": "54df16cee323" }, "source": [ "Next, we can plot the results obtained." ] }, { "cell_type": "code", "execution_count": 12, "metadata": { "execution": { "iopub.execute_input": "2025-05-30T09:06:41.034153Z", "iopub.status.busy": "2025-05-30T09:06:41.033458Z", "iopub.status.idle": "2025-05-30T09:06:41.212897Z", "shell.execute_reply": "2025-05-30T09:06:41.212148Z" }, "id": "ab8f82fc985a" }, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAkgAAAHLCAYAAAAz0mdEAAAAOnRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjEwLjMsIGh0dHBzOi8vbWF0cGxvdGxpYi5vcmcvZiW1igAAAAlwSFlzAAAPYQAAD2EBqD+naQAAIJlJREFUeJzt3X+Q1PVh//HX3RnutHKnfikH6KUYralGgQhyIU2mml5DQkvqH+2QtA0MTdqJVWO8dKo0Ktq0EmO1pIGG1iY1/eFIzTSOjQ6Z9KqT2GIYoViNv2oFYdQ7ZBzvCCro3X7/SLh6b0DvkLu9hcdjZifux/dn973Jez77zGd3P1dXqVQqAQBgUH21JwAAMN4IJACAgkACACgIJACAgkACACgIJACAgkACACgcU+0J1IqBgYE899xzmThxYurq6qo9HQBghCqVSnbt2pVp06alvv7NzxEJpGF67rnn0tbWVu1pAABv0/bt23PKKae86RiBNEwTJ05M8pP/Upubm6s8GwBgpPr6+tLW1jb4nv5mBNIw7ftYrbm5WSABQA0bzldlfEkbAKAgkAAACgIJAKAgkAAACgIJAKAgkAAACgIJAKAgkAAACgIJAKDgStoAjFj/QCUbtryYHbtezeSJTZl76klpqPeHvDlyCCQARmTdI8/nun99NM/3vjq4bWpLU5YvPCsfOXtqFWcGh09NfsT2/e9/PwsXLsy0adNSV1eXO++88y33ue+++3LuueemsbExp59+em699dZRnyfAkWbdI8/non/cNCSOkqS799Vc9I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TQ4D/PmjWrehMBqkogAbzBvkCqq6vLjBkzqjwboFoEEsAb7Auk6dOnp7m5ucqzAapFIAG8webNm5MkM2fOrO5EgKoSSAA/9frrr+dHP/pREoEERzuBBPBTTzzxRPbs2ZNEIMHRTiAB/NQbf8EmkODoJpAAfmpfIE2cODGnnnpqlWcDVJNAAvipfV/QnjFjRurq6qo7GaCqBBLAT+07g+TjNUAgASTp6elJT09PEoEECCSAJL6gDQwlkADyf98/qq+vzznnnFPdyQBVJ5AA8n9nkE4//fQcd9xxVZ4NUG0CCSC+oA0MJZCAo94rr7ySJ554Ikly7rnnVnk2wHggkICj3gMPPJDXX389STJ37twqzwYYDwQScNT7p3/6pyTJcccdl/e///1Vng0wHhxT7QkAVMPWrVvzzDPP5J577snf/d3fJUk+/vGPp6mpqcozA8aDukqlUqn2JADG2rvf/e48+eSTg/fPOOOM/Md//EcmTZpUxVkB44VAAo46L7/8ciZOnJjjjz8+p512Wi688MJ0dnbm+OOPr/bUgHFCIAEAFHxJGwCgIJAAAAoCCQCgIJAAAAoCCQCgIJAAAAoCCQCgIJAAAAoCCQCgIJAAAAr/H4Hf/2zfT/56AAAAAElFTkSuQmCC", "text/plain": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "import matplotlib.pyplot as plt\n", "\n", "# Create dictionary of results\n", "data0 = data_raw.data.to_dict()\n", "vec = [j for j in range(4)]\n", "res = np.zeros(len(vec))\n", "for jj in range(200):\n", " number = data0['x'][jj]\n", " res[number] += 1\n", "res = res / 200.0\n", "\n", "# Display plot of states\n", "fig = plt.figure()\n", "ax = fig.add_axes([0.16, 0.16, 0.78, 0.78])\n", "ax.plot(vec, res, 'o')\n", "ax.set_xticks(vec)\n", "ax.set_xticklabels([r'$|00\\rangle$', r'$|01\\rangle$', r'$|10\\rangle$', r'$|11\\rangle$'])\n", "plt.xlabel(r'$j$', fontsize=20)\n", "plt.ylabel(r'$p$', fontsize=20)\n", "plt.show()" ] }, { "cell_type": "markdown", "metadata": { "id": "2243a99d0e8f" }, "source": [ "In this particular case, it takes a single Grover iteration to find the correct result ($|10\\rangle$) with 100% probability on a perfect device." ] }, { "cell_type": "markdown", "metadata": { "id": "389112dcf80a" }, "source": [ "## Incorporate the effect of noise during a classical emulation of the circuit\n", "\n", "Current NISQ processors are imperfect and prone to errors. We incorporated in Cirq a typical noise model for Pasqal devices, that can be used when one emulates the behavior of the device with a classical computer." ] }, { "cell_type": "code", "execution_count": 13, "metadata": { "execution": { "iopub.execute_input": "2025-05-30T09:06:41.216230Z", "iopub.status.busy": "2025-05-30T09:06:41.215538Z", "iopub.status.idle": "2025-05-30T09:06:48.450316Z", "shell.execute_reply": "2025-05-30T09:06:48.449579Z" }, "id": "675a72331dca" }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n", "/tmpfs/src/tf_docs_env/lib/python3.10/site-packages/cirq/circuits/circuit_operation.py:173: FutureWarning: In cirq 1.6 the default value of `use_repetition_ids` will change to\n", "`use_repetition_ids=False`. To make this warning go away, please pass\n", "explicit `use_repetition_ids`, e.g., to preserve current behavior, use\n", "\n", " CircuitOperations(..., use_repetition_ids=True)\n", " warnings.warn(msg, FutureWarning)\n" ] }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAlEAAAHLCAYAAADoac1mAAAAOnRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjEwLjMsIGh0dHBzOi8vbWF0cGxvdGxpYi5vcmcvZiW1igAAAAlwSFlzAAAPYQAAD2EBqD+naQAALSJJREFUeJzt3X9w1HVi//HXbjBZJMmSkHFDcDEc1h+ISUpC0tyg0nYlVKqnHXqRqYbJH73xFx63HBeoJcFBm8BwDh7JhA4z9lo4B+am4qB1VoeVXL02GJtMRE+LtkWIwG7IOO5ikCTu7vcPv+y5B4HNmyS7H3g+Zj6jee/7897323nP7sv357Pvjy0Wi8UEAACAMbGnugMAAABWRIgCAAAwQIgCAAAwQIgCAAAwQIgCAAAwQIgCAAAwQIgCAAAwMCXVHbiaRKNRnTx5Ujk5ObLZbKnuDgAAGKNYLKYzZ86oqKhIdvul15oIUePo5MmTcrvdqe4GAAC4Qn19fbrxxhsvWYcQNY5ycnIkffsfPjc3N8W9AQAAYxUOh+V2u+Pf6ZdCiBpH5y/h5ebmEqIAALCwZG7L4cZyAAAAA4QoAAAAA4QoAAAAA4QoAAAAA4QoAAAAA4QoAAAAA4QoAAAAA4QoAAAAA4QoAAAAA+xYDgAYd5FoTF1Hv1D/mXO6Icehyjn5yrDzYHZcXQhRAIBx5fvwlJ597SOdCp2Ll810OtR0/zwtnT8zhT0DxpelL+e1tbWpuLhYDodDVVVV6urqGrXuK6+8ooqKCk2fPl3Tpk1TWVm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u+66S3l5ecrLy5PH47lo/Y8//lgPPPCAnE6npk2bpoULF+r48eMTOQwAAGBRlgxRe/fuldfrVVNTk3p6elRaWqqamhr19/dftH5HR4dWrFihgwcPqrOzU263W0uWLNGJEyfidf73f/9XixYt0m233aaOjg4dPnxYGzZskMPhmKxhAQAAC0mbBxCPRVVVlRYuXKjW1lZJUjQaldvt1qpVq7Ru3brLnh+JRJSXl6fW1lbV1dVJkh5++GFdd9112rVrl3G/eAAxAADWZskHECdreHhY3d3d8ng88TK73S6Px6POzs6k2jh79qxGRkaUn58v6dsQ9m//9m+65ZZbVFNToxtuuEFVVVV69dVXL9nO0NCQwuFwwgEAAK4NlgtRAwMDikQicrlcCeUul0uBQCCpNhoaGlRUVBQPYv39/frqq6/U0tKipUuX6q233tJDDz2kv/qrv9JvfvObUdtpbm6W0+mMH26323xgAADAUqakugOTraWlRXv27FFHR0f8fqdoNCpJ+sEPfqCf/OQnkqSysjL953/+p3bs2KF77rnnom2tX79eXq83/nc4HCZIAQBwjbBciCooKFBGRoaCwWBCeTAYVGFh4SXP3bp1q1paWnTgwAGVlJQktDllyhTNmzcvof7tt9+u3/72t6O2l5WVpaysLINRAAAAq7Pc5bzMzEyVl5fL7/fHy6LRqPx+v6qrq0c9b8uWLdq0aZN8Pp8qKiouaHPhwoU6cuRIQvknn3yim266aXwHAAAArgqWW4mSJK/Xq5UrV6qiokKVlZXatm2bBgcHVV9fL0mqq6vTrFmz1NzcLEnavHmzGhsb9fLLL6u4uDh+71R2drays7MlSWvXrlVtba3uvvtu/emf/ql8Pp9ee+01dXR0pGSMAAAgvVkyRNXW1ur06dNqbGxUIBBQWVmZfD5f/Gbz48ePy27//SJbe3u7hoeHtXz58oR2mpqatHHjRknSQw89pB07dqi5uVlPP/20br31Vv3rv/6rFi1aNGnjAgAA1mHJfaLSFftEAQBgbVf1PlEAAADpgBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABggBAFAABgwNIhqq2tTcXFxXI4HKqqqlJXV9eodXfu3Km77rpLeXl5ysvLk8fjuWT9xx57TDabTdu2bZuAngMAAKuzbIjau3evvF6vmpqa1NPTo9LSUtXU1Ki/v/+i9Ts6OrRixQodPHhQnZ2dcrvdWrJkiU6cOHFB3X379unQoUMqKiqa6GEAAACLssVisViqO2GiqqpKCxcuVGtrqyQpGo3K7XZr1apVWrdu3WXPj0QiysvLU2trq+rq6uLlJ06cUFVVld58800tW7ZMq1ev1urVqy/axtDQkIaGhuJ/h8Nhud1uhUIh5ebmXtkAAQDApAuHw3I6nUl9l1tyJWp4eFjd3d3yeDzxMrvdLo/Ho87OzqTaOHv2rEZGRpSfnx8vi0ajevTRR7V27Vrdcccdl22jublZTqczfrjd7rEPBgAAWJIlQ9TAwIAikYhcLldCucvlUiAQSKqNhoYGFRUVJQSxzZs3a8qUKXr66aeTamP9+vUKhULxo6+vL/lBAAAAS5uS6g6kQktLi/bs2aOOjg45HA5JUnd3t1588UX19PTIZrMl1U5WVpaysrImsqsAACBNWXIlqqCgQBkZGQoGgwnlwWBQhYWFlzx369atamlp0VtvvaWSkpJ4+TvvvKP+/n7Nnj1bU6ZM0ZQpU3Ts2DGtWbNGxcXFEzEMAABgYZYMUZmZmSovL5ff74+XRaNR+f1+VVdXj3reli1btGnTJvl8PlVUVCS89uijj+rw4cPq7e2NH0VFRVq7dq3efPPNCRsLAACwJstezvN6vVq5cqUqKipUWVmpbdu2aXBwUPX19ZKkuro6zZo1S83NzZK+vd+psbFRL7/8soqLi+P3TmVnZys7O1szZszQjBkzEt7juuuuU2FhoW699dbJHRwAAEh7lg1RtbW1On36tBobGxUIBFRWViafzxe/2fz48eOy23+/0Nb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oAknT+fii73a4777wztZ0BkHKEKABI0vmVqJtvvlnXX399insDINUIUQCQJG4qB/BdhCgASMLXX3+tI0eOSJIWLFiQ4t4ASAeEKABIwqFDh/TNN99IkiorK1PcGwDpgBAFAEn41a9+JUm6/vrr9f3vfz/FvQGQDqakugMAkK4+++wzHTt2TG+88Yb+6Z/+SZL08MMPy+FwpLhnANKBLRaLxVLdCQBIR7feeqs++eST+N+33HKL/uM//kMFBQUp7BWAdEGIAoCLOHv2rHJycpSdna25c+fqwQcflNfrVXZ2dqq7BiBNEKIAAAAMcGM5AACAAUIUAACAAUIUAACAAUIUAACAAUIUAACAAUIUAACAAUIUAACAAUIUAACAAUIUAACAAUIUAACAgf8HC/J/YffYJgcAAAAASUVORK5CYII=", "text/plain": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "# Use the custom noise model of Pasqal devices\n", "noise_model = PasqalNoiseModel(device)\n", "grover_circuit = generate_pasqal_grover()\n", "grover_circuit = grover_circuit.with_noise(noise_model)\n", "grover_circuit.append(cirq.measure(*q_meas, key='x'))\n", "\n", "# Run a simulation locally locally\n", "data_raw = sampler.run(grover_circuit, repetitions=200)\n", "\n", "# Plot the results\n", "data0 = data_raw.data.to_dict()\n", "vec = [j for j in range(4)]\n", "res = np.zeros(len(vec))\n", "for jj in range(200):\n", " number = data0['x'][jj]\n", " res[number] += 1\n", "res = res / 200.0\n", "\n", "fig = plt.figure()\n", "ax = fig.add_axes([0.16, 0.16, 0.78, 0.78])\n", "ax.plot(vec, res, 'o')\n", "ax.set_xticks(vec)\n", "ax.set_xticklabels([r'$|00\\rangle$', r'$|01\\rangle$', r'$|10\\rangle$', r'$|11\\rangle$'])\n", "plt.xlabel(r'$j$', fontsize=20)\n", "plt.ylabel(r'$p$', fontsize=20)\n", "plt.show()" ] }, { "cell_type": "markdown", "metadata": { "id": "c2e5c717a4b6" }, "source": [ "One still finds a rather large probability to measure $|10\\rangle$, but we note the appearance of other measurement outcomes, due to the presence of noise." ] } ], "metadata": { "colab": { "collapsed_sections": [], "name": "getting_started.ipynb", "toc_visible": true }, "kernelspec": { "display_name": "Python 3", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.17" } }, "nbformat": 4, "nbformat_minor": 0 }