Ket.jl
Toolbox for quantum information, nonlocality, and entanglement
Install / Use
/learn @dev-ket/Ket.jlREADME
Ket is a toolbox for quantum information, nonlocality, and entanglement written in the Julia programming language. All its functions are designed to work with generic types, allowing one to use Int64 or Float64 for efficiency, or arbitrary precision types when needed. Wherever possible they can be also used for optimization with JuMP. And everything is optimized to the last microsecond.
Highlights:
- Work with multipartite Bell inequalities, computing their local bounds and Tsirelson bounds with
local_boundandtsirelson_bound, and transforming between Collins-Gisin, probability, and correlation representations withtensor_collinsgisin,tensor_probability, andtensor_correlation. - Work with bipartite entanglement by computing the relative entropy of entanglement, entanglement robustness, or Schmidt number via
entanglement_entropy,entanglement_robustness, andschmidt_number. Under the hood these functions use the DPS hierarchy, which is also available in isolation via_dps_constraints!. - Generate MUBs and SIC-POVMs through
mubandsic_povm. - Generate uniformly-distributed random states, unitaries, and POVMs with
random_state,random_unitary, andrandom_povm. - Generate well-known families of quantum states, such as the Bell states, the GHZ state, the W state, the Dicke states, and the super-singlet via
state_bell,state_ghz,state_w,state_dicke, andstate_supersinglet. - Work with multilinear algebra via utility functions such as
partial_trace,partial_transpose, andpermute_systems. - Compute Shannon, von Neumann, and Rényi entropies with functions such as
entropy,relative_entropy, andconditional_entropy. - Generate kets with
ket.
For the full list of functions see the documentation.
Installation
Ket is a registered Julia package, so it can be installed by typing the following command in the Julia REPL:
]add Ket
Contributing
We welcome suggestions, bug reports, documentation and code contributions. See the contributions guide for more information.
Related libraries
Julia:
Python:
MATLAB:
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
