GithubHelp home page GithubHelp logo

arkmohba / quantum_computing_memo Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.99 MB

量子コンピュータ関連のメモやサンプルを配置するリポジトリ。計算用のノートブックや、サンプルアプリを登録する。

License: BSD 3-Clause "New" or "Revised" License

Jupyter Notebook 98.46% Dockerfile 0.12% Python 1.29% CSS 0.01% HTML 0.13%

quantum_computing_memo's Introduction

quantum_computing_memo

量子コンピュータ関連のメモやサンプルを配置するリポジトリ。計算用のノートブックや、サンプルアプリを登録する。

jupyter notebookについて

jupyter notebookはGithubで見れるものの、Texが崩れるため可読性が悪い。PDFに変換して登録する。

変換方法については下記が参考になった。 https://qiita.com/masa-ita/items/fb61263cd49cf949b1bc

上記のサイトをもとに、Dockerfileに環境を整えた。日本語ノートブックに対応済み。(tools/ipynb2pdf/dockerfile) イメージをビルドし、コンテナ内で下記のようにすればPDF化できる。

# jupyter nbconvert --to pdf glover計算.ipynb

PDF化する際の記載上の注意点

  • 数式環境として$を2つ使う方法とbegin{align}などを使う方法がある。$の中でbegin{align}をするとエラーになるので注意(Texに慣れている人からすれば当たり前だと思うが、私は久々で引っかかった)
  • defを行うことで、Texのマクロを定義できるが、下記のダブルスタンダードな状態である。
    • $の中でdefすることでjupyter上の数式に反映される。
    • $の外でdefすることでPDF化する際に反映される。(PDF化するときにTexを経由するが、数式環境の中ではdefすることができず、未定義エラーになる)
    • このためjupyter notebookではマクロを$内に入れたバージョンと外に出したバージョンの2つを定義しておくべし。

quantum_computing_memo's People

Contributors

arkmohba avatar blackquark avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.