pygsti.evotypes.densitymx_slow

A pure python (and thus slower) density-matrix, evolution type.

Submodules

Package Contents

Classes

EffectRep

Any representation of an "effect" in the sense of a POVM.

EffectRepConjugatedState

A real superket representation of an "effect" in the sense of a POVM.

EffectRepComputational

Any representation of an "effect" in the sense of a POVM.

EffectRepTensorProduct

Any representation of an "effect" in the sense of a POVM.

EffectRepComposed

Any representation of an "effect" in the sense of a POVM.

OpRep

A real superoperator on Hilbert-Schmidt space.

OpRepDenseSuperop

A real superoperator on Hilbert-Schmidt space.

OpRepDenseUnitary

A real superoperator on Hilbert-Schmidt space.

OpRepSparse

A real superoperator on Hilbert-Schmidt space.

OpRepStandard

A real superoperator on Hilbert-Schmidt space.

OpRepKraus

A real superoperator on Hilbert-Schmidt space.

OpRepRandomUnitary

A real superoperator on Hilbert-Schmidt space.

OpRepStochastic

A real superoperator on Hilbert-Schmidt space.

OpRepComposed

A real superoperator on Hilbert-Schmidt space.

OpRepSum

A real superoperator on Hilbert-Schmidt space.

OpRepEmbedded

A real superoperator on Hilbert-Schmidt space.

OpRepExpErrorgen

A real superoperator on Hilbert-Schmidt space.

OpRepIdentityPlusErrorgen

A real superoperator on Hilbert-Schmidt space.

OpRepRepeated

A real superoperator on Hilbert-Schmidt space.

StateRep

A real superket representation of an element in Hilbert-Schmidt space.

StateRepDense

An almost-trivial wrapper around StateRep.

StateRepDensePure

A real superket representation of an element in Hilbert-Schmidt space.

StateRepComputational

A real superket representation of an element in Hilbert-Schmidt space.

StateRepComposed

A real superket representation of an element in Hilbert-Schmidt space.

StateRepTensorProduct

A real superket representation of an element in Hilbert-Schmidt space.

Attributes

minimal_space

SpaceT

SpaceT

SpaceT

pygsti.evotypes.densitymx_slow.minimal_space = "'HilbertSchmidt'"
pygsti.evotypes.densitymx_slow.SpaceT
class pygsti.evotypes.densitymx_slow.EffectRep(state_space)

Any representation of an “effect” in the sense of a POVM.

state_space
abstractmethod probability(state)
class pygsti.evotypes.densitymx_slow.EffectRepConjugatedState(state_rep)

Bases: EffectRep

A real superket representation of an “effect” in the sense of a POVM. Internally uses a StateRepDense object to hold the real superket.

state_rep
probability(state)
to_dense(on_space: pygsti.SpaceT)
class pygsti.evotypes.densitymx_slow.EffectRepComputational(zvals, basis, state_space)

Bases: EffectRep

Any representation of an “effect” in the sense of a POVM.

zvals_int = '0'
zvals
nfactors
abs_elval
basis
probability(state)
to_dense(on_space: pygsti.SpaceT, outvec=None)
class pygsti.evotypes.densitymx_slow.EffectRepTensorProduct(povm_factors, effect_labels, state_space)

Bases: EffectRep

Any representation of an “effect” in the sense of a POVM.

povm_factors
effect_labels
kron_array
factor_dims
max_factor_dim
to_dense(on_space: pygsti.SpaceT, outvec=None)
probability(state)
factor_effects_have_changed()
class pygsti.evotypes.densitymx_slow.EffectRepComposed(op_rep, effect_rep, op_id, state_space)

Bases: EffectRep

Any representation of an “effect” in the sense of a POVM.

op_rep
effect_rep
op_id
state_space
probability(state)
pygsti.evotypes.densitymx_slow.SpaceT
class pygsti.evotypes.densitymx_slow.OpRep(state_space)

A real superoperator on Hilbert-Schmidt space.

property dim
state_space
abstractmethod acton(state)
abstractmethod adjoint_acton(state)
aslinearoperator()

Return a SciPy LinearOperator that accepts superket representations of vectors in Hilbert-Schmidt space and returns a vector of that same representation.

class pygsti.evotypes.densitymx_slow.OpRepDenseSuperop(mx, basis, state_space)

Bases: OpRep

A real superoperator on Hilbert-Schmidt space. The operator’s action (and adjoint action) work with Hermitian matrices stored as vectors in their real superket representations.

basis
base
base_has_changed()
to_dense(on_space: pygsti.SpaceT)
acton(state)
adjoint_acton(state)
copy()
class pygsti.evotypes.densitymx_slow.OpRepDenseUnitary(mx, basis, state_space)

Bases: OpRep

A real superoperator on Hilbert-Schmidt space.

basis
base
superop_base
state_space
base_has_changed()
to_dense(on_space: pygsti.SpaceT)
to_dense_superop()
acton(state)
adjoint_acton(state)
copy()
class pygsti.evotypes.densitymx_slow.OpRepSparse(a_data, a_indices, a_indptr, state_space)

Bases: OpRep

A real superoperator on Hilbert-Schmidt space.

property data
property indices
property indptr
A
acton(state)

Act this gate map on an input state

adjoint_acton(state)

Act the adjoint of this operation matrix on an input state

to_dense(on_space: pygsti.SpaceT)
class pygsti.evotypes.densitymx_slow.OpRepStandard(name, basis, state_space)

Bases: OpRepDenseSuperop

A real superoperator on Hilbert-Schmidt space. The operator’s action (and adjoint action) work with Hermitian matrices stored as vectors in their real superket representations.

name
basis
class pygsti.evotypes.densitymx_slow.OpRepKraus(basis, kraus_reps, state_space)

Bases: OpRep

A real superoperator on Hilbert-Schmidt space.

basis
kraus_reps
acton(state)
adjoint_acton(state)
copy()
to_dense(on_space: pygsti.SpaceT)
class pygsti.evotypes.densitymx_slow.OpRepRandomUnitary(basis, unitary_rates, unitary_reps, seed_or_state, state_space)

Bases: OpRep

A real superoperator on Hilbert-Schmidt space.

basis
unitary_reps
unitary_rates
state_space
acton(state)
adjoint_acton(state)
copy()
update_unitary_rates(rates)
to_dense(on_space: pygsti.SpaceT)
class pygsti.evotypes.densitymx_slow.OpRepStochastic(stochastic_basis, basis, initial_rates, seed_or_state, state_space)

Bases: OpRepRandomUnitary

A real superoperator on Hilbert-Schmidt space.

rates
stochastic_basis
basis
update_rates(rates)
class pygsti.evotypes.densitymx_slow.OpRepComposed(factor_op_reps, state_space)

Bases: OpRep

A real superoperator on Hilbert-Schmidt space.

factor_reps
acton(state)

Act this gate map on an input state

adjoint_acton(state)

Act the adjoint of this operation matrix on an input state

reinit_factor_op_reps(factor_reps)
class pygsti.evotypes.densitymx_slow.OpRepSum(factor_reps, state_space)

Bases: OpRep

A real superoperator on Hilbert-Schmidt space.

factor_reps
reinit_factor_reps(factor_reps)
acton(state)

Act this gate map on an input state

adjoint_acton(state)

Act the adjoint of this operation matrix on an input state

class pygsti.evotypes.densitymx_slow.OpRepEmbedded(state_space, target_labels, embedded_rep)

Bases: OpRep

A real superoperator on Hilbert-Schmidt space.

embedded_rep
num_basis_els
action_inds
blocksizes
basisInds_noop_blankaction
multipliers
basisInds_action
ncomponents
active_block_index
nblocks
offset
acton(state)
adjoint_acton(state)

Act the adjoint of this gate map on an input state

class pygsti.evotypes.densitymx_slow.OpRepExpErrorgen(errorgen_rep)

Bases: OpRep

A real superoperator on Hilbert-Schmidt space.

errorgen_rep
mu = '1.0'
eta = '1.0'
m_star = '0'
s = '0'
errgenrep_has_changed(onenorm_upperbound)
set_exp_params(mu, eta, m_star, s)
exp_params()
acton(state)

Act this gate map on an input state

abstractmethod adjoint_acton(state)

Act the adjoint of this operation matrix on an input state

class pygsti.evotypes.densitymx_slow.OpRepIdentityPlusErrorgen(errorgen_rep)

Bases: OpRep

A real superoperator on Hilbert-Schmidt space.

errorgen_rep
acton(state)

Act this gate map on an input state

abstractmethod adjoint_acton(state)

Act the adjoint of this operation matrix on an input state

class pygsti.evotypes.densitymx_slow.OpRepRepeated(rep_to_repeat, num_repetitions, state_space)

Bases: OpRep

A real superoperator on Hilbert-Schmidt space.

repeated_rep
num_repetitions
acton(state)

Act this gate map on an input state

adjoint_acton(state)

Act the adjoint of this operation matrix on an input state

pygsti.evotypes.densitymx_slow.SpaceT
class pygsti.evotypes.densitymx_slow.StateRep(data, state_space)

A real superket representation of an element in Hilbert-Schmidt space.

property dim
data
state_space
copy_from(other)
actionable_staterep()
to_dense(on_space: pygsti.SpaceT)
class pygsti.evotypes.densitymx_slow.StateRepDense(data, state_space, basis)

Bases: StateRep

An almost-trivial wrapper around StateRep. Implements the “base” property and defines a trivial “base_has_changed” function.

property base
base_has_changed()
class pygsti.evotypes.densitymx_slow.StateRepDensePure(purevec, basis, state_space)

Bases: StateRep

A real superket representation of an element in Hilbert-Schmidt space.

base
basis
base_has_changed()
class pygsti.evotypes.densitymx_slow.StateRepComputational(zvals, basis, state_space)

Bases: StateRep

A real superket representation of an element in Hilbert-Schmidt space.

basis
zvals
class pygsti.evotypes.densitymx_slow.StateRepComposed(state_rep, op_rep, state_space)

Bases: StateRep

A real superket representation of an element in Hilbert-Schmidt space.

state_rep
op_rep
reps_have_changed()
class pygsti.evotypes.densitymx_slow.StateRepTensorProduct(factor_state_reps, state_space)

Bases: StateRep

A real superket representation of an element in Hilbert-Schmidt space.

factor_reps
reps_have_changed()