Quantum
Tensor Networks
Tenet.Quantum
— TypeQuantum
Tensor Network with a notion of "causality". This leads to the notion of sites and directionality (input/output).
Notes
- Indices are referenced by
Site
s.
Tenet.TensorNetwork
— MethodTensorNetwork(q::Quantum)
Returns the underlying TensorNetwork
of a Quantum
Tensor Network.
Base.adjoint
— Methodadjoint(q::Quantum)
Returns the adjoint of a Quantum
Tensor Network; i.e. the conjugate Tensor Network with the inputs and outputs swapped.
Tenet.sites
— Functionsites(q::Quantum)
Returns the sites of a Quantum
Tensor Network.
Tenet.nsites
— Functionnsites(q::Quantum)
Returns the number of sites of a Quantum
Tensor Network.
Queries
EinExprs.inds
— Methodinds(tn::Quantum, set::Symbol = :all, args...; kwargs...)
Options:
:at
: index at a site
Tenet.tensors
— Methodtensors(tn::Quantum, query::Symbol, args...; kwargs...)
Options:
:at
: tensor at a site
Connecting Quantum
Tensor Networks
Tenet.inputs
— Functioninputs(q::Quantum)
Returns the input sites of a Quantum
Tensor Network.
Tenet.outputs
— Functionoutputs(q::Quantum)
Returns the output sites of a Quantum
Tensor Network.
Missing docstring for lanes
. Check Documenter's build log for details.
Tenet.ninputs
— Functionninputs(q::Quantum)
Returns the number of input sites of a Quantum
Tensor Network.
Tenet.noutputs
— Functionnoutputs(q::Quantum)
Returns the number of output sites of a Quantum
Tensor Network.
Missing docstring for nlanes
. Check Documenter's build log for details.
Missing docstring for Socket
. Check Documenter's build log for details.
Tenet.socket
— Methodsocket(q::Quantum)
Returns the socket of a Quantum
Tensor Network; i.e. whether it is a Scalar
, State
or Operator
.
Tenet.Scalar
— TypeScalar <: Socket
Socket representing a scalar; i.e. a Tensor Network with no open sites.
Tenet.State
— TypeState <: Socket
Socket representing a state; i.e. a Tensor Network with only input sites (or only output sites if dual = true
).
Tenet.Operator
— TypeOperator <: Socket
Socket representing an operator; i.e. a Tensor Network with both input and output sites.
Base.merge
— Methodmerge(a::Quantum, b::Quantum...)
Merges multiple Quantum
Tensor Networks into a single one by connecting input/output sites.