Jabalizer Documentation

Contents

Types

Functions

State preparation

Main.Jabalizer.AddBellFunction
AddBell(state, labelA, labelB)

Add Bell state $(|00\rangle+|11\rangle)/\sqrt{2}$ to a State.

source
AddBell(state)

Add Bell state $(|00\rangle+|11\rangle)/\sqrt{2}$ to a State.

source
Main.Jabalizer.AddGHZFunction
AddGHZ(state, size, labels)

Add a GHZ state to a State.

source
AddGHZ(state, size)

Add a GHZ state to a State.

source
AddGHZ(state)

Add a 3-qubit GHZ state to a State.

source

Gates

Main.Jabalizer.IdFunction

Here's some inline maths: $\sqrt[n]{1 + x + x^2 + \ldots}$.

Here's an equation:

\[\frac{n!}{k!(n - k)!} = \binom{n}{k}\]

This is the binomial coefficient.

source
Id(state, qubit)

Apply I gate to a State on qubit.

source
Main.Jabalizer.PFunction
P(stabilizer, qubit)

Apply the $P=\sqrt{Z}$ gate to a stabilizer.

source
P(state, qubit)

Apply P gate to a state on qubit.

source
Main.Jabalizer.SWAPFunction
SWAP(stabilizer, qubit1, qubit2)

Apply SWAP gate to a Stabilizer.

source
SWAP(state, first, second)

Apply SWAP gate to a State.

source
Main.Jabalizer.CNOTFunction
CNOT(Stabilizer, control, target)

Apply CNOT gate to a Stabilizer.

source
CNOT(state, control, target)

Apply CNOT gate to a State.

source
Main.Jabalizer.CZFunction
CZ(state, control, target)

Apply CZ gate to a Stabilizer.

source
CZ(state, control, target)

Apply CZ gate to a State.

source

Channels

Main.Jabalizer.ChannelPauliFunction
ChannelPauli(State, qubit, probs)

Apply general Pauli channel gate to a State.

source
ChannelPauli(State, prob)

Apply general Pauli channel gate to a State.

source
Main.Jabalizer.ChannelDepolFunction
ChannelDepol(State, qubit, prob)

Apply depolarizing channel gate to a State.

source
ChannelDepol(State, prob)

Apply depolarizing channel gate to a State.

source

Utilities

Base.printFunction
print(stabilizer)

Print a stabilizer to terminal.

source
print(state)

Print the full stabilizer set of a state to the terminal.

source
print(graphState)

Print a GraphState to the terminal.

source
Base.stringFunction
string(stabilizer)

Convert stabilizer to string.

source
string(state)

Convert state to string.

source
Base.:*Function
*(left,right)

Multiplication operator for stabilizers.

source

Index