Skip to content

Commit

Permalink
added more mkdocs dependencies to ci and setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Phionx committed Feb 27, 2024
1 parent 3501e89 commit 3792305
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ jobs:
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- run: pip install mkdocs mkdocs-material mkdocs-literate-nav mkdocs-section-index mkdocs-gen-files mkdocstrings-python
- run: mkdocs gh-deploy --force
3 changes: 2 additions & 1 deletion jaxquantum/quantum/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ def dag(op: jnp.ndarray) -> jnp.ndarray:
Returns:
conjugate transpose of op
"""
return jnp.conj(op).T
# return jnp.conj(op).T
return jnp.moveaxis(jnp.conj(op), -1, -2) # transposes last two axes, good for batching


def ket2dm(ket: jnp.ndarray) -> jnp.ndarray:
Expand Down
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@
"black"
],
"docs": [
"mkdocs-material"
"mkdocs",
"mkdocs-material",
"mkdocs-literate-nav",
"mkdocs-section-index",
"mkdocs-gen-files",
"mkdocstrings-python",
]
}

Expand Down

0 comments on commit 3792305

Please sign in to comment.