Piccolo.jl
Documentation
StableDev
Build Status
Build StatusCoverage
License
MIT License
Support
Unitary Fund
Make simple transformation of complex objects for quantum numerics

PiccoloQuantumObjects

PiccoloQuantumObjects.jl is a Julia package for working with quantum objects. It provides tools for constructing and manipulating quantum states and operators. It is designed to be used with other packages in the Piccolo.jl ecosystem, such as QuantumCollocation.jl and NamedTrajectories.jl.

Installation

This package is registered! To install, enter the Julia REPL, type ] to enter pkg mode, and then run:

pkg> add PiccoloQuantumObjects

Usage

The following example demonstrates how to create a quantum state, create a quantum operator, and apply the operator to the state:

using PiccoloQuantumObjects

# Create a quantum state
state = ket_from_string("g", [2])

# Create a quantum operator
operator = PAULIS.X

# Apply the operator to the state
new_state = operator * state

# Transform the state to its real representation
new_iso_state = ket_to_iso(new_state)

# Transform back
iso_to_ket(new_iso_state)