- Owner
- Container
- Tori Hara
- Yuki Asano
- Shinya Tahara
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip install pytket pytket-braket | |
from pytket import Circuit | |
from pytket.backends.braket import BraketBackend | |
circ = Circuit(2) | |
circ.H(0) | |
circ.CX(0,1) | |
braket_backend = BraketBackend(local=False, s3_bucket='amazon-braket-XXXXXXXXXXXX', s3_folder='pytket/sample') |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
response = %db_reset --generate-token | |
token = response['payload']['token'] | |
%db_reset --token $token |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws braket search-quantum-tasks --region us-west-2 --filters 'name=deviceArn,operator=EQUAL,values=arn:aws:braket:::device/qpu/d-wave/DW_2000Q_6' | jq '.[] | map({quantumTaskArn: .quantumTaskArn, price: (.shots * 0.00019 + 0.30000)})' | |
aws braket search-quantum-tasks --region us-west-2 --filters 'name=deviceArn,operator=EQUAL,values=arn:aws:braket:::device/qpu/d-wave/Advantage_system1' | jq '.[] | map({quantumTaskArn: .quantumTaskArn, price: (.shots * 0.00019 + 0.30000)})' | |
aws braket search-quantum-tasks --region us-east-1 --filters 'name=deviceArn,operator=EQUAL,values=arn:aws:braket:::device/qpu/ionq/ionQdevice' | jq '.[] | map({quantumTaskArn: .quantumTaskArn, price: (.shots * 0.01000 + 0.30000)})' | |
aws braket search-quantum-tasks --region us-west-1 --filters 'name=deviceArn,operator=EQUAL,values=arn:aws:braket:::device/qpu/rigetti/Aspen-8' | jq '.[] | map({quantumTaskArn: .quantumTaskArn, price: (.shots * 0.00035 + 0.30000)})' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo easy_install pip | |
sudo yum groupinstall "Development Tools" -y | |
sudo yum install libjpeg-devel -y | |
cd cifar10_sample/export/save.ckpt-78125/32x32/output/python/ | |
pip3 install -r requirements.txt | |
wget https://docs.blueoil.org/_static/airplane.png | |
python run.py -i airplane.png -m ../models/lib/libdlk_aarch64.so -c ../models/meta.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# OVERVIEW | |
# This script installs a single pip package in a single SageMaker conda environments. | |
# Slightly modified from https://github.com/aws-samples/amazon-sagemaker-notebook-instance-lifecycle-config-samples/blob/master/scripts/install-pip-package-single-environment/on-start.sh | |
sudo -u ec2-user -i <<'EOF' | |
# PARAMETERS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
sudo -u ec2-user -i <<'EOF' | |
git clone https://github.com/awslabs/git-secrets.git | |
cd git-secrets/ | |
sudo make install | |
git secrets --register-aws --global |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir python | |
python3 -m pip install -r sagemaker-sdk-requirements.txt -t ./python/ --no-deps | |
zip sagemaker-sdk-layer.zip -r ./python/ | |
rm -rf python |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.