Skip to content

Conversation

@yurekami
Copy link

Summary

  • Replace the wget command in sec1_basic.ipynb that downloads h2_new.txt from Dropbox with a simple file copy from the repository's examples/vqe/ directory
  • The file is already included in the repository, eliminating the need for external downloads

Problem

The notebook cell that downloads h2_new.txt from Dropbox:

! wget https://www.dropbox.com/s/1rtttfxoo02s09e/h2_new.txt

This fails because:

  • The Dropbox link may become unavailable
  • It may require authentication
  • External dependencies make the notebook less reliable

Solution

Copy from the local repository instead:

import shutil
shutil.copy('examples/vqe/h2_new.txt', 'h2_new.txt')

Test plan

  • Run the VQE section of sec1_basic.ipynb
  • Verify h2_new.txt is correctly copied and parsed

Fixes #302

🤖 Generated with Claude Code

Replace the wget command that downloads h2_new.txt from Dropbox
with a simple file copy from the repository's examples/vqe/
directory. The file is already included in the repository, so
there's no need to download it from an external source.

This fixes the issue where the Dropbox link may become unavailable
or require authentication.

Fixes mit-han-lab#302

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The file h2_new.txt for the VQE task doesn't exist

1 participant