Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions dev_tools/notebooks/isolated_notebook_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,7 @@
# note that these notebooks are still tested in dev_tools/notebook_test.py
# Please, always indicate in comments the feature used for easier bookkeeping.

NOTEBOOKS_DEPENDING_ON_UNRELEASED_FEATURES: list[str] = [
# Requires `load_device_noise_properties` from #7369
'docs/hardware/qubit_picking.ipynb',
'docs/simulate/noisy_simulation.ipynb',
'docs/simulate/quantum_virtual_machine.ipynb',
'docs/simulate/qvm_basic_example.ipynb',
# Remove once the renaming of `whitelisted_users` -> `allowlisted_users`
# throughout cirq_google is released.
'docs/simulate/virtual_engine_interface.ipynb',
]
NOTEBOOKS_DEPENDING_ON_UNRELEASED_FEATURES: list[str] = []

# By default all notebooks should be tested, however, this list contains exceptions to the rule
# please always add a reason for skipping.
Expand Down
17 changes: 1 addition & 16 deletions docs/hardware/qubit_picking.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,6 @@
"When running a circuit on a noisy quantum hardware device, the choice and even ordering of hardware qubits used directly affects how reliably the device measures a correct result. This notebook covers some of the available qubit error information that can be useful for picking good hardware qubits to run your circuit on."
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "cb67ae611d34"
},
"source": [
"## Setup\n",
"\n",
"Note: this notebook relies on unreleased Cirq features. If you want to try these features, make sure you install cirq via `pip install --upgrade cirq~=1.0.dev`."
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -94,13 +83,9 @@
"# @title Setup\n",
"try:\n",
" import cirq\n",
"\n",
" # raise ImportError when cirq is not new enough\n",
" if cirq.__version__ == \"1.5.0\":\n",
" raise ImportError(\"This notebook requires the development version of Cirq\")\n",
"except ImportError:\n",
" print(\"installing cirq...\")\n",
" !pip install --upgrade --quiet cirq~=1.0.dev\n",
" !pip install --quiet cirq\n",
" print(\"installed cirq.\")\n",
" import cirq\n",
"\n",
Expand Down
17 changes: 1 addition & 16 deletions docs/simulate/noisy_simulation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,6 @@
"</table>"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "f9c6fb06ebbf"
},
"source": [
"## Setup\n",
"\n",
"Note: this notebook relies on unreleased Cirq features. If you want to try these features, make sure you install cirq via `pip install --upgrade cirq~=1.0.dev`."
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -83,13 +72,9 @@
"source": [
"try:\n",
" import cirq\n",
"\n",
" # raise ImportError when cirq is not new enough\n",
" if cirq.__version__ == \"1.5.0\":\n",
" raise ImportError(\"This notebook requires the development version of Cirq\")\n",
"except ImportError:\n",
" print(\"installing cirq...\")\n",
" !pip install --upgrade --quiet cirq~=1.0.dev\n",
" !pip install --quiet cirq\n",
" print(\"installed cirq.\")"
]
},
Expand Down
11 changes: 2 additions & 9 deletions docs/simulate/quantum_virtual_machine.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@
"id": "p31cCK_T1ylm"
},
"source": [
"## Setup\n",
"\n",
"Note: this notebook relies on unreleased Cirq features. If you want to try these features, make sure you install cirq via `pip install --upgrade cirq~=1.0.dev`."
"## Setup"
]
},
{
Expand All @@ -97,15 +95,10 @@
"\n",
"try:\n",
" import cirq\n",
"\n",
" # raise ImportError when cirq is not new enough\n",
" if cirq.__version__ == \"1.5.0\":\n",
" raise ImportError(\"This notebook requires the development version of Cirq\")\n",
"\n",
" import cirq_google\n",
"except ImportError:\n",
" print(\"installing cirq...\")\n",
" !pip install --upgrade --quiet cirq-google~=1.0.dev\n",
" !pip install --quiet cirq-google\n",
" print(\"installed cirq.\")\n",
" import cirq\n",
" import cirq_google\n",
Expand Down
18 changes: 1 addition & 17 deletions docs/simulate/qvm_basic_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,6 @@
"## **Install** Cirq and qsim"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "8e3ded3ff3d1"
},
"source": [
"## Setup\n",
"\n",
"Note: this notebook relies on unreleased Cirq features. If you want to try these features, make sure you install cirq via `pip install --upgrade cirq~=1.0.dev`."
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -104,15 +93,10 @@
"\n",
"try:\n",
" import cirq\n",
"\n",
" # raise ImportError when cirq is not new enough\n",
" if cirq.__version__ == \"1.5.0\":\n",
" raise ImportError(\"This notebook requires the development version of Cirq\")\n",
"\n",
" import cirq_google\n",
"except ImportError:\n",
" print(\"installing cirq...\")\n",
" !pip install --upgrade --quiet cirq-google~=1.0.dev\n",
" !pip install --quiet cirq-google\n",
" print(\"installed cirq.\")\n",
" import cirq\n",
" import cirq_google\n",
Expand Down
13 changes: 1 addition & 12 deletions docs/simulate/qvm_builder_code.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,6 @@
"## **Install** Cirq and qsim"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "3f2687e48726"
},
"source": [
"## Setup\n",
"\n",
"Note: this notebook relies on unreleased Cirq features. If you want to try these features, make sure you install cirq via `pip install --upgrade cirq~=1.0.dev`."
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -107,7 +96,7 @@
" import cirq_google\n",
"except ImportError:\n",
" print(\"installing cirq...\")\n",
" !pip install --upgrade --quiet cirq-google~=1.0.dev\n",
" !pip install --quiet cirq-google\n",
" print(\"installed cirq.\")\n",
" import cirq\n",
" import cirq_google\n",
Expand Down
13 changes: 1 addition & 12 deletions docs/simulate/qvm_stabilizer_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,6 @@
"## **Install** Cirq and qsim, Create **Quantum Virtual Machine**"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "3f2687e48726"
},
"source": [
"## Setup\n",
"\n",
"Note: this notebook relies on unreleased Cirq features. If you want to try these features, make sure you install cirq via `pip install --upgrade cirq~=1.0.dev`."
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -107,7 +96,7 @@
" import cirq_google\n",
"except ImportError:\n",
" print(\"installing cirq...\")\n",
" !pip install --upgrade --quiet cirq-google~=1.0.dev\n",
" !pip install --quiet cirq-google\n",
" print(\"installed cirq.\")\n",
" import cirq\n",
" import cirq_google\n",
Expand Down
11 changes: 1 addition & 10 deletions docs/simulate/virtual_engine_interface.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,6 @@
"# limitations under the License."
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "ff0101ac0724"
},
"source": [
"Note: this notebook relies on unreleased Cirq features. If you want to try these features, make sure you install cirq-google via `pip install --upgrade cirq-google~=1.0.dev`."
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -106,7 +97,7 @@
" import cirq_google\n",
"except ImportError:\n",
" print(\"installing cirq...\")\n",
" !pip install --upgrade --quiet cirq~=1.0.dev cirq-google~=1.0.dev\n",
" !pip install --quiet cirq\n",
" print(\"installed cirq.\")\n",
" import cirq\n",
" import cirq_google\n",
Expand Down