diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index faa951660..274b3bbe2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -29,7 +29,7 @@ on: pull_request: types: [opened, synchronize] branches: - - master + - main merge_group: types: diff --git a/.github/workflows/osv-scanner.yaml b/.github/workflows/osv-scanner.yaml index 819acdc98..b3bf878e4 100644 --- a/.github/workflows/osv-scanner.yaml +++ b/.github/workflows/osv-scanner.yaml @@ -38,7 +38,6 @@ on: types: [opened, synchronize] branches: - main - - master # Support merge queues. merge_group: diff --git a/.github/workflows/scorecard-scanner.yaml b/.github/workflows/scorecard-scanner.yaml index 53bdde1e5..437a735db 100644 --- a/.github/workflows/scorecard-scanner.yaml +++ b/.github/workflows/scorecard-scanner.yaml @@ -29,7 +29,6 @@ on: types: [opened, synchronize] branches: - main - - master # Support merge queues. merge_group: diff --git a/README.rst b/README.rst index cc3fb316f..d5eb74b26 100644 --- a/README.rst +++ b/README.rst @@ -1,4 +1,4 @@ -.. image:: https://raw.githubusercontent.com/quantumlib/OpenFermion/refs/heads/master/docs/images/logo_horizontal.svg +.. image:: https://raw.githubusercontent.com/quantumlib/OpenFermion/refs/heads/main/docs/images/logo_horizontal.svg :alt: OpenFermion logo :width: 75% :align: center @@ -42,7 +42,7 @@ You can run the interactive Jupyter Notebooks in |Colab|_ or |MyBinder|_. .. _Colab: https://colab.research.google.com/github/quantumlib/OpenFermion .. |MyBinder| replace:: MyBinder -.. _MyBinder: https://mybinder.org/v2/gh/quantumlib/OpenFermion/master?filepath=examples +.. _MyBinder: https://mybinder.org/v2/gh/quantumlib/OpenFermion/main?filepath=examples Installation and Documentation ============================== @@ -64,7 +64,7 @@ the electronic structure plugins are only compatible on these platforms. However for those who would like to use Windows, or for anyone having other difficulties with installing OpenFermion or its plugins, we provide a Docker image and usage instructions in the -`docker folder `__. +`docker folder `__. The Docker image provides a virtual environment with OpenFermion and select plugins pre-installed. The Docker installation should run on any operating system where Docker can be used. diff --git a/check/format-incremental b/check/format-incremental index ae0419edb..16bacd8ae 100755 --- a/check/format-incremental +++ b/check/format-incremental @@ -31,14 +31,14 @@ # # You can specify a base git revision to compare against (i.e. to use when # determining whether or not a file is considered to have "changed"). For -# example, you can compare against 'origin/master' or 'HEAD~1'. +# example, you can compare against 'origin/main' or 'HEAD~1'. # # If you don't specify a base revision, the following defaults will be tried, in # order, until one exists: # -# 1. upstream/master -# 2. origin/master -# 3. master +# 1. upstream/main +# 2. origin/main +# 3. main # # If none exists, the script fails. ################################################################################ @@ -48,7 +48,6 @@ thisdir="$(dirname "${BASH_SOURCE[0]}")" || exit $? topdir="$(git -C "${thisdir}" rev-parse --show-toplevel)" || exit $? cd "${topdir}" || exit $? - # Parse arguments. only_print=1 only_changed=1 @@ -74,14 +73,14 @@ typeset -a format_files if (( only_changed == 1 )); then # Figure out which branch to compare against. if [ -z "${rev}" ]; then - if [ "$(git cat-file -t upstream/master 2> /dev/null)" == "commit" ]; then - rev=upstream/master - elif [ "$(git cat-file -t origin/master 2> /dev/null)" == "commit" ]; then - rev=origin/master - elif [ "$(git cat-file -t master 2> /dev/null)" == "commit" ]; then - rev=master + if [ "$(git cat-file -t upstream/main 2> /dev/null)" == "commit" ]; then + rev=upstream/main + elif [ "$(git cat-file -t origin/main 2> /dev/null)" == "commit" ]; then + rev=origin/main + elif [ "$(git cat-file -t main 2> /dev/null)" == "commit" ]; then + rev=main else - echo -e "\033[31mNo default revision found to compare against. Argument #1 must be what to diff against (e.g. 'origin/master' or 'HEAD~1').\033[0m" >&2 + echo -e "\033[31mNo default revision found to compare against. Argument #1 must be what to diff against (e.g. 'origin/main' or 'HEAD~1').\033[0m" >&2 exit 1 fi fi diff --git a/check/pylint-changed-files b/check/pylint-changed-files index f3f5ef4e0..7f8c2d2dd 100755 --- a/check/pylint-changed-files +++ b/check/pylint-changed-files @@ -28,9 +28,9 @@ # If you don't specify a base revision, the following defaults will be tried, # in order, until one exists: # -# 1. upstream/main or upstream/master -# 2. origin/main or origin/master -# 3. main or master +# 1. upstream/main +# 2. origin/main +# 3. main # # If none exists, the script will exit with an error. # @@ -43,9 +43,6 @@ thisdir=$(dirname "${BASH_SOURCE[0]:?}") || exit $? repo_dir=$(git -C "${thisdir}" rev-parse --show-toplevel) || exit $? cd "${repo_dir}" || exit $? -# Some old repos used "master" instead of main. Find out which one we have here. -default=$(git branch --format '%(refname:short)' --list master main) - # Figure out which revision to compare against. if [ -n "$1" ] && [[ $1 != -* ]]; then if ! git rev-parse --verify --quiet --no-revs "$1^{commit}"; then @@ -53,12 +50,12 @@ if [ -n "$1" ] && [[ $1 != -* ]]; then exit 1 fi rev=$1 -elif [ "$(git cat-file -t "upstream/${default}" 2> /dev/null)" == "commit" ]; then - rev=upstream/${default} -elif [ "$(git cat-file -t "origin/${default}" 2> /dev/null)" == "commit" ]; then - rev=origin/${default} -elif [ "$(git cat-file -t "${default}" 2> /dev/null)" == "commit" ]; then - rev=${default} +elif [ "$(git cat-file -t "upstream/main" 2> /dev/null)" == "commit" ]; then + rev=upstream/main +elif [ "$(git cat-file -t "origin/main" 2> /dev/null)" == "commit" ]; then + rev=origin/main +elif [ "$(git cat-file -t "main" 2> /dev/null)" == "commit" ]; then + rev=main else echo -e "\033[31mNo default revision found to compare against. Argument #1 must be what to diff against (e.g. 'origin/main' or 'HEAD~1').\033[0m" >&2 exit 1 diff --git a/check/pytest-and-incremental-coverage b/check/pytest-and-incremental-coverage index e3f63c091..7536f729c 100755 --- a/check/pytest-and-incremental-coverage +++ b/check/pytest-and-incremental-coverage @@ -22,15 +22,15 @@ # You can specify a base git revision to compare against (i.e. to use when # determining whether or not a line is considered to have "changed"). To make # the tool more consistent, it actually diffs against the most recent common -# ancestor of the specified id and HEAD. So if you choose 'origin/master' you're -# actually diffing against the output of 'git merge-base origin/master HEAD'. +# ancestor of the specified id and HEAD. So if you choose 'origin/main' you're +# actually diffing against the output of 'git merge-base origin/main HEAD'. # # If you don't specify a base revision, the following defaults will be tried, # in order, until one exists: # -# 1. upstream/master -# 2. origin/master -# 3. master +# 1. upstream/main +# 2. origin/main +# 3. main # # If none exists, the script fails. ################################################################################ @@ -46,14 +46,14 @@ if [[ -n "$1" && $1 != -* ]]; then exit 1 fi rev=$1 -elif [ "$(git cat-file -t upstream/master 2> /dev/null)" == "commit" ]; then - rev=upstream/master -elif [ "$(git cat-file -t origin/master 2> /dev/null)" == "commit" ]; then - rev=origin/master -elif [ "$(git cat-file -t master 2> /dev/null)" == "commit" ]; then - rev=master +elif [ "$(git cat-file -t upstream/main 2> /dev/null)" == "commit" ]; then + rev=upstream/main +elif [ "$(git cat-file -t origin/main 2> /dev/null)" == "commit" ]; then + rev=origin/main +elif [ "$(git cat-file -t main 2> /dev/null)" == "commit" ]; then + rev=main else - echo -e "\033[31mNo default revision found to compare against. Argument #1 must be what to diff against (e.g. 'origin/master' or 'HEAD~1').\033[0m" >&2 + echo -e "\033[31mNo default revision found to compare against. Argument #1 must be what to diff against (e.g. 'origin/main' or 'HEAD~1').\033[0m" >&2 exit 1 fi # shellcheck disable=SC2086 diff --git a/dev_tools/check_incremental_coverage_annotations.py b/dev_tools/check_incremental_coverage_annotations.py index e9a8e95f8..94d75f823 100755 --- a/dev_tools/check_incremental_coverage_annotations.py +++ b/dev_tools/check_incremental_coverage_annotations.py @@ -26,7 +26,7 @@ def main(): if len(sys.argv) < 2: print( shell_tools.highlight( - 'Must specify a comparison branch (e.g. "origin/master" or "HEAD~1").', + 'Must specify a comparison branch (e.g. "origin/main" or "HEAD~1").', shell_tools.RED, ) ) diff --git a/dev_tools/docs/build_api_docs.py b/dev_tools/docs/build_api_docs.py index 768d7c165..e0f5da952 100644 --- a/dev_tools/docs/build_api_docs.py +++ b/dev_tools/docs/build_api_docs.py @@ -24,18 +24,19 @@ import openfermion -flags.DEFINE_string("output_dir", "/tmp/openfermion_api", - "Where to output the docs") +flags.DEFINE_string("output_dir", "/tmp/openfermion_api", "Where to output the docs") -flags.DEFINE_string("code_url_prefix", - ("https://github.com/quantumlib/OpenFermion/tree/master/src" - "openfermion"), "The url prefix for links to code.") +flags.DEFINE_string( + "code_url_prefix", + ("https://github.com/quantumlib/OpenFermion/tree/main/src" "openfermion"), + "The url prefix for links to code.", +) -flags.DEFINE_bool("search_hints", True, - "Include metadata search hints in the generated files") +flags.DEFINE_bool("search_hints", True, "Include metadata search hints in the generated files") -flags.DEFINE_string("site_path", "quark/openfermion/api_docs/python", - "Path prefix in the _toc.yaml") +flags.DEFINE_string( + "site_path", "quark/openfermion/api_docs/python", "Path prefix in the _toc.yaml" +) FLAGS = flags.FLAGS @@ -55,7 +56,8 @@ def main(unused_argv): # Example: # "cirq.google.engine.client.quantum.QuantumEngineServiceClient": # ["enums"] - }) + }, + ) doc_generator.build(output_dir=FLAGS.output_dir) diff --git a/dev_tools/git_env_tools.py b/dev_tools/git_env_tools.py index 7b4682b2b..ab1e5bdb2 100644 --- a/dev_tools/git_env_tools.py +++ b/dev_tools/git_env_tools.py @@ -25,9 +25,9 @@ def get_repo_root() -> str: return shell_tools.output_of('git', 'rev-parse', '--show-toplevel') -def _git_fetch_for_comparison(remote: str, actual_branch: str, - compare_branch: str, - verbose: bool) -> prepared_env.PreparedEnv: +def _git_fetch_for_comparison( + remote: str, actual_branch: str, compare_branch: str, verbose: bool +) -> prepared_env.PreparedEnv: """Fetches two branches including their common ancestor. Limits the depth of the fetch to avoid unnecessary work. Scales up the @@ -51,27 +51,30 @@ def _git_fetch_for_comparison(remote: str, actual_branch: str, for depth in [10, 100, 1000, None]: depth_str = '' if depth is None else '--depth={}'.format(depth) - shell_tools.run_cmd('git', - 'fetch', - None if verbose else '--quiet', - remote, - actual_branch, - depth_str, - log_run_to_stderr=verbose) + shell_tools.run_cmd( + 'git', + 'fetch', + None if verbose else '--quiet', + remote, + actual_branch, + depth_str, + log_run_to_stderr=verbose, + ) actual_id = shell_tools.output_of('git', 'rev-parse', 'FETCH_HEAD') - shell_tools.run_cmd('git', - 'fetch', - None if verbose else '--quiet', - remote, - compare_branch, - depth_str, - log_run_to_stderr=verbose) + shell_tools.run_cmd( + 'git', + 'fetch', + None if verbose else '--quiet', + remote, + compare_branch, + depth_str, + log_run_to_stderr=verbose, + ) base_id = shell_tools.output_of('git', 'rev-parse', 'FETCH_HEAD') try: - base_id = shell_tools.output_of('git', 'merge-base', actual_id, - base_id) + base_id = shell_tools.output_of('git', 'merge-base', actual_id, base_id) break except subprocess.CalledProcessError: # No common ancestor. We need to dig deeper. @@ -80,17 +83,19 @@ def _git_fetch_for_comparison(remote: str, actual_branch: str, return prepared_env.PreparedEnv(None, actual_id, base_id, None, None) -def fetch_github_pull_request(destination_directory: str, - repository: github_repository.GithubRepository, - pull_request_number: int, - verbose: bool) -> prepared_env.PreparedEnv: +def fetch_github_pull_request( + destination_directory: str, + repository: github_repository.GithubRepository, + pull_request_number: int, + verbose: bool, +) -> prepared_env.PreparedEnv: """Uses content from github to create a dir for testing and comparisons. Args: destination_directory: The location to fetch the contents into. repository: The github repository that the commit lives under. pull_request_number: The id of the pull request to clone. If None, then - the master branch is cloned instead. + the main branch is cloned instead. verbose: When set, more progress output is produced. Returns: @@ -101,36 +106,37 @@ def fetch_github_pull_request(destination_directory: str, os.chdir(destination_directory) print('chdir', destination_directory, file=sys.stderr) - shell_tools.run_cmd('git', - 'init', - None if verbose else '--quiet', - out=sys.stderr) - result = _git_fetch_for_comparison(remote=repository.as_remote(), - actual_branch=branch, - compare_branch='master', - verbose=verbose) - shell_tools.run_cmd('git', - 'branch', - None if verbose else '--quiet', - 'compare_commit', - result.compare_commit_id, - log_run_to_stderr=verbose) - shell_tools.run_cmd('git', - 'checkout', - None if verbose else '--quiet', - '-b', - 'actual_commit', - result.actual_commit_id, - log_run_to_stderr=verbose) - return prepared_env.PreparedEnv(github_repo=repository, - actual_commit_id=result.actual_commit_id, - compare_commit_id=result.compare_commit_id, - destination_directory=destination_directory, - virtual_env_path=None) - - -def fetch_local_files(destination_directory: str, - verbose: bool) -> prepared_env.PreparedEnv: + shell_tools.run_cmd('git', 'init', None if verbose else '--quiet', out=sys.stderr) + result = _git_fetch_for_comparison( + remote=repository.as_remote(), actual_branch=branch, compare_branch='main', verbose=verbose + ) + shell_tools.run_cmd( + 'git', + 'branch', + None if verbose else '--quiet', + 'compare_commit', + result.compare_commit_id, + log_run_to_stderr=verbose, + ) + shell_tools.run_cmd( + 'git', + 'checkout', + None if verbose else '--quiet', + '-b', + 'actual_commit', + result.actual_commit_id, + log_run_to_stderr=verbose, + ) + return prepared_env.PreparedEnv( + github_repo=repository, + actual_commit_id=result.actual_commit_id, + compare_commit_id=result.compare_commit_id, + destination_directory=destination_directory, + virtual_env_path=None, + ) + + +def fetch_local_files(destination_directory: str, verbose: bool) -> prepared_env.PreparedEnv: """Uses local files to create a directory for testing and comparisons. Args: @@ -147,54 +153,53 @@ def fetch_local_files(destination_directory: str, if verbose: print('chdir', staging_dir, file=sys.stderr) - shell_tools.run_cmd('git', - 'add', - '--all', - out=sys.stderr, - log_run_to_stderr=verbose) - - shell_tools.run_cmd('git', - 'commit', - '-m', - 'working changes', - '--allow-empty', - '--no-gpg-sign', - None if verbose else '--quiet', - out=sys.stderr, - log_run_to_stderr=verbose) + shell_tools.run_cmd('git', 'add', '--all', out=sys.stderr, log_run_to_stderr=verbose) + + shell_tools.run_cmd( + 'git', + 'commit', + '-m', + 'working changes', + '--allow-empty', + '--no-gpg-sign', + None if verbose else '--quiet', + out=sys.stderr, + log_run_to_stderr=verbose, + ) cur_commit = shell_tools.output_of('git', 'rev-parse', 'HEAD') os.chdir(destination_directory) if verbose: print('chdir', destination_directory, file=sys.stderr) - shell_tools.run_cmd('git', - 'init', - None if verbose else '--quiet', - out=sys.stderr, - log_run_to_stderr=verbose) - result = _git_fetch_for_comparison(staging_dir, - cur_commit, - 'master', - verbose=verbose) + shell_tools.run_cmd( + 'git', 'init', None if verbose else '--quiet', out=sys.stderr, log_run_to_stderr=verbose + ) + result = _git_fetch_for_comparison(staging_dir, cur_commit, 'main', verbose=verbose) finally: shutil.rmtree(staging_dir, ignore_errors=True) - shell_tools.run_cmd('git', - 'branch', - None if verbose else '--quiet', - 'compare_commit', - result.compare_commit_id, - log_run_to_stderr=verbose) - shell_tools.run_cmd('git', - 'checkout', - None if verbose else '--quiet', - '-b', - 'actual_commit', - result.actual_commit_id, - log_run_to_stderr=verbose) - return prepared_env.PreparedEnv(github_repo=None, - actual_commit_id=result.actual_commit_id, - compare_commit_id=result.compare_commit_id, - destination_directory=destination_directory, - virtual_env_path=None) + shell_tools.run_cmd( + 'git', + 'branch', + None if verbose else '--quiet', + 'compare_commit', + result.compare_commit_id, + log_run_to_stderr=verbose, + ) + shell_tools.run_cmd( + 'git', + 'checkout', + None if verbose else '--quiet', + '-b', + 'actual_commit', + result.actual_commit_id, + log_run_to_stderr=verbose, + ) + return prepared_env.PreparedEnv( + github_repo=None, + actual_commit_id=result.actual_commit_id, + compare_commit_id=result.compare_commit_id, + destination_directory=destination_directory, + virtual_env_path=None, + ) diff --git a/docs/fqe/guide/introduction.ipynb b/docs/fqe/guide/introduction.ipynb index d740bf95f..8c6191843 100644 --- a/docs/fqe/guide/introduction.ipynb +++ b/docs/fqe/guide/introduction.ipynb @@ -42,10 +42,10 @@ " View on QuantumAI\n", " \n", " \n", - " Run in Google Colab\n", + " Run in Google Colab\n", " \n", " \n", - " View source on GitHub\n", + " View source on GitHub\n", " \n", " \n", " Download notebook\n", diff --git a/docs/fqe/tutorials/diagonal_coulomb_evolution.ipynb b/docs/fqe/tutorials/diagonal_coulomb_evolution.ipynb index 1630c8be7..d97c1ba0f 100644 --- a/docs/fqe/tutorials/diagonal_coulomb_evolution.ipynb +++ b/docs/fqe/tutorials/diagonal_coulomb_evolution.ipynb @@ -42,10 +42,10 @@ " View on QuantumAI\n", " \n", " \n", - " Run in Google Colab\n", + " Run in Google Colab\n", " \n", " \n", - " View source on GitHub\n", + " View source on GitHub\n", " \n", " \n", " Download notebook\n", diff --git a/docs/fqe/tutorials/fermi_hubbard.ipynb b/docs/fqe/tutorials/fermi_hubbard.ipynb index edb685a8f..32f33ee87 100644 --- a/docs/fqe/tutorials/fermi_hubbard.ipynb +++ b/docs/fqe/tutorials/fermi_hubbard.ipynb @@ -51,10 +51,10 @@ " View on QuantumAI\n", " \n", " \n", - " Run in Google Colab\n", + " Run in Google Colab\n", " \n", " \n", - " View source on GitHub\n", + " View source on GitHub\n", " \n", " \n", " Download notebook\n", diff --git a/docs/fqe/tutorials/fqe_vs_openfermion_quadratic_hamiltonians.ipynb b/docs/fqe/tutorials/fqe_vs_openfermion_quadratic_hamiltonians.ipynb index 71a3623d9..97eaa33de 100644 --- a/docs/fqe/tutorials/fqe_vs_openfermion_quadratic_hamiltonians.ipynb +++ b/docs/fqe/tutorials/fqe_vs_openfermion_quadratic_hamiltonians.ipynb @@ -42,10 +42,10 @@ " View on QuantumAI\n", " \n", " \n", - " Run in Google Colab\n", + " Run in Google Colab\n", " \n", " \n", - " View source on GitHub\n", + " View source on GitHub\n", " \n", " \n", " Download notebook\n", diff --git a/docs/fqe/tutorials/hamiltonian_time_evolution_and_expectation_estimation.ipynb b/docs/fqe/tutorials/hamiltonian_time_evolution_and_expectation_estimation.ipynb index 5efe8ed25..8be86019d 100644 --- a/docs/fqe/tutorials/hamiltonian_time_evolution_and_expectation_estimation.ipynb +++ b/docs/fqe/tutorials/hamiltonian_time_evolution_and_expectation_estimation.ipynb @@ -42,10 +42,10 @@ " View on QuantumAI\n", " \n", " \n", - " Run in Google Colab\n", + " Run in Google Colab\n", " \n", " \n", - " View source on GitHub\n", + " View source on GitHub\n", " \n", " \n", " Download notebook\n", @@ -99,7 +99,7 @@ "id": "obExleOZZSAq" }, "source": [ - "!curl -O https://raw.githubusercontent.com/quantumlib/OpenFermion-FQE/master/tests/unittest_data/build_lih_data.py" + "!curl -O https://raw.githubusercontent.com/quantumlib/OpenFermion-FQE/main/tests/unittest_data/build_lih_data.py" ], "execution_count": null, "outputs": [] diff --git a/docs/install.md b/docs/install.md index 0241661a7..40aa40a73 100644 --- a/docs/install.md +++ b/docs/install.md @@ -10,13 +10,13 @@ electronic structure plugins are only compatible with Mac and Linux. However, for those who would like to use Windows, or for anyone having other difficulties with installing OpenFermion or its plugins, we have provided a Docker image and usage instructions in the -[docker folder](https://github.com/quantumlib/OpenFermion/tree/master/docker). +[docker folder](https://github.com/quantumlib/OpenFermion/tree/main/docker). The Docker image provides a virtual environment with OpenFermion and select plugins pre-installed. The Docker installation should run on any operating system. You might also want to explore the alpha release of the -[OpenFermion Cloud Library](https://github.com/quantumlib/OpenFermion/tree/master/cloud_library) +[OpenFermion Cloud Library](https://github.com/quantumlib/OpenFermion/tree/main/cloud_library) where users can share and download precomputed molecular benchmark files. Check out other [projects and papers](docs/projects.md) using OpenFermion for @@ -47,8 +47,8 @@ python3 -m pip install --user openfermion The guides and tutorials are built from the `docs/` directory. Preview Markdown files directly in GitHub. Notebooks can be loaded, viewed, and executed in Colab by passing the GitHub location in the URL, for example: -https://colab.research.google.com/github/quantumlib/OpenFermion/blob/master/docs/tutorials/intro_to_openfermion.ipynb +https://colab.research.google.com/github/quantumlib/OpenFermion/blog/main/docs/tutorials/intro_to_openfermion.ipynb See the TensorFlow docs style guide diff --git a/docs/tutorials/binary_code_transforms.ipynb b/docs/tutorials/binary_code_transforms.ipynb index ba65d9076..dad891066 100644 --- a/docs/tutorials/binary_code_transforms.ipynb +++ b/docs/tutorials/binary_code_transforms.ipynb @@ -51,10 +51,10 @@ " View on QuantumAI\n", " \n", " \n", - " Run in Google Colab\n", + " Run in Google Colab\n", " \n", " \n", - " View source on GitHub\n", + " View source on GitHub\n", " \n", " \n", " Download notebook\n", @@ -84,7 +84,7 @@ "try:\n", " import openfermion\n", "except ImportError:\n", - " !pip install git+https://github.com/quantumlib/OpenFermion.git@master#egg=openfermion" + " !pip install git+https://github.com/quantumlib/OpenFermion.git@main#egg=openfermion" ] }, { diff --git a/docs/tutorials/bosonic_operators.ipynb b/docs/tutorials/bosonic_operators.ipynb index d69e6b4e3..d20696732 100644 --- a/docs/tutorials/bosonic_operators.ipynb +++ b/docs/tutorials/bosonic_operators.ipynb @@ -51,10 +51,10 @@ " View on QuantumAI\n", " \n", " \n", - " Run in Google Colab\n", + " Run in Google Colab\n", " \n", " \n", - " View source on GitHub\n", + " View source on GitHub\n", " \n", " \n", " Download notebook\n", @@ -84,7 +84,7 @@ "try:\n", " import openfermion\n", "except ImportError:\n", - " !pip install git+https://github.com/quantumlib/OpenFermion.git@master#egg=openfermion" + " !pip install git+https://github.com/quantumlib/OpenFermion.git@main#egg=openfermion" ] }, { diff --git a/docs/tutorials/circuits_1_basis_change.ipynb b/docs/tutorials/circuits_1_basis_change.ipynb index 3a7e50310..651c6dc37 100644 --- a/docs/tutorials/circuits_1_basis_change.ipynb +++ b/docs/tutorials/circuits_1_basis_change.ipynb @@ -51,10 +51,10 @@ " View on QuantumAI\n", " \n", " \n", - " Run in Google Colab\n", + " Run in Google Colab\n", " \n", " \n", - " View source on GitHub\n", + " View source on GitHub\n", " \n", " \n", " Download notebook\n", @@ -93,7 +93,7 @@ "try:\n", " import openfermion\n", "except ImportError:\n", - " !pip install git+https://github.com/quantumlib/OpenFermion.git@master#egg=openfermion" + " !pip install git+https://github.com/quantumlib/OpenFermion.git@main#egg=openfermion" ] }, { diff --git a/docs/tutorials/circuits_2_diagonal_coulomb_trotter.ipynb b/docs/tutorials/circuits_2_diagonal_coulomb_trotter.ipynb index 53ffd7aa0..5ad5624e3 100644 --- a/docs/tutorials/circuits_2_diagonal_coulomb_trotter.ipynb +++ b/docs/tutorials/circuits_2_diagonal_coulomb_trotter.ipynb @@ -51,10 +51,10 @@ " View on QuantumAI\n", " \n", " \n", - " Run in Google Colab\n", + " Run in Google Colab\n", " \n", " \n", - " View source on GitHub\n", + " View source on GitHub\n", " \n", " \n", " Download notebook\n", @@ -84,7 +84,7 @@ "try:\n", " import openfermion\n", "except ImportError:\n", - " !pip install git+https://github.com/quantumlib/OpenFermion.git@master#egg=openfermion" + " !pip install git+https://github.com/quantumlib/OpenFermion.git@main#egg=openfermion" ] }, { diff --git a/docs/tutorials/circuits_3_arbitrary_basis_trotter.ipynb b/docs/tutorials/circuits_3_arbitrary_basis_trotter.ipynb index cd4bed041..78b97bbf4 100644 --- a/docs/tutorials/circuits_3_arbitrary_basis_trotter.ipynb +++ b/docs/tutorials/circuits_3_arbitrary_basis_trotter.ipynb @@ -51,10 +51,10 @@ " View on QuantumAI\n", " \n", " \n", - " Run in Google Colab\n", + " Run in Google Colab\n", " \n", " \n", - " View source on GitHub\n", + " View source on GitHub\n", " \n", " \n", " Download notebook\n", @@ -84,7 +84,7 @@ "try:\n", " import openfermion\n", "except ImportError:\n", - " !pip install git+https://github.com/quantumlib/OpenFermion.git@master#egg=openfermion" + " !pip install git+https://github.com/quantumlib/OpenFermion.git@main#egg=openfermion" ] }, { diff --git a/docs/tutorials/intro_to_openfermion.ipynb b/docs/tutorials/intro_to_openfermion.ipynb index 4287c8916..0414e2567 100644 --- a/docs/tutorials/intro_to_openfermion.ipynb +++ b/docs/tutorials/intro_to_openfermion.ipynb @@ -51,10 +51,10 @@ " View on QuantumAI\n", " \n", " \n", - " Run in Google Colab\n", + " Run in Google Colab\n", " \n", " \n", - " View source on GitHub\n", + " View source on GitHub\n", " \n", " \n", " Download notebook\n", @@ -93,7 +93,7 @@ "try:\n", " import openfermion\n", "except ImportError:\n", - " !pip install git+https://github.com/quantumlib/OpenFermion.git@master#egg=openfermion" + " !pip install git+https://github.com/quantumlib/OpenFermion.git@main#egg=openfermion" ] }, { diff --git a/docs/tutorials/intro_workshop_exercises.ipynb b/docs/tutorials/intro_workshop_exercises.ipynb index ee79c74d3..f23779c06 100644 --- a/docs/tutorials/intro_workshop_exercises.ipynb +++ b/docs/tutorials/intro_workshop_exercises.ipynb @@ -51,10 +51,10 @@ " View on QuantumAI\n", " \n", " \n", - " Run in Google Colab\n", + " Run in Google Colab\n", " \n", " \n", - " View source on GitHub\n", + " View source on GitHub\n", " \n", " \n", " Download notebook\n", diff --git a/docs/tutorials/jordan_wigner_and_bravyi_kitaev_transforms.ipynb b/docs/tutorials/jordan_wigner_and_bravyi_kitaev_transforms.ipynb index 61a6ad72a..3eef5b4c2 100644 --- a/docs/tutorials/jordan_wigner_and_bravyi_kitaev_transforms.ipynb +++ b/docs/tutorials/jordan_wigner_and_bravyi_kitaev_transforms.ipynb @@ -51,10 +51,10 @@ " View on QuantumAI\n", " \n", " \n", - " Run in Google Colab\n", + " Run in Google Colab\n", " \n", " \n", - " View source on GitHub\n", + " View source on GitHub\n", " \n", " \n", " Download notebook\n", @@ -84,7 +84,7 @@ "try:\n", " import openfermion\n", "except ImportError:\n", - " !pip install git+https://github.com/quantumlib/OpenFermion.git@master#egg=openfermion" + " !pip install git+https://github.com/quantumlib/OpenFermion.git@main#egg=openfermion" ] }, {