pygsti.evotypes.statevec_slow

A pure python (and thus slower) state vector, evolution type.

Submodules

Package Contents

Classes

EffectRep

EffectRepConjugatedState

EffectRepComputational

EffectRepTensorProduct

EffectRepComposed

OpRep

The base class for all operation representation classes

OpRepDenseUnitary

The base class for all operation representation classes

OpRepStandard

The base class for all operation representation classes

OpRepComposed

The base class for all operation representation classes

OpRepSum

The base class for all operation representation classes

OpRepEmbedded

The base class for all operation representation classes

OpRepExpErrorgen

The base class for all operation representation classes

OpRepRepeated

The base class for all operation representation classes

OpRepLindbladErrorgen

The base class for all operation representation classes

OpRepRandomUnitary

The base class for all operation representation classes

OpRepStochastic

The base class for all operation representation classes

StateRep

The base class for all state representation classes

StateRepDensePure

The base class for all state representation classes

StateRepComputational

The base class for all state representation classes

StateRepComposed

The base class for all state representation classes

StateRepTensorProduct

The base class for all state representation classes

Attributes

minimal_space

pygsti.evotypes.statevec_slow.minimal_space = "'Hilbert'"
class pygsti.evotypes.statevec_slow.EffectRep(state_space)

Bases: object

property dim
state_space
probability(state)
abstract amplitude(state)
class pygsti.evotypes.statevec_slow.EffectRepConjugatedState(state_rep)

Bases: EffectRep

state_rep
to_dense(on_space)
amplitude(state)
class pygsti.evotypes.statevec_slow.EffectRepComputational(zvals, basis, state_space)

Bases: EffectRep

nonzero_index = '0'
zvals
basis
to_dense(on_space, outvec, trust_outvec_sparsity=False)
amplitude(state)
class pygsti.evotypes.statevec_slow.EffectRepTensorProduct(povm_factors, effect_labels, state_space)

Bases: EffectRep

povm_factors
effect_labels
kron_array
factor_dims
nfactors
max_factor_dim
factor_effects_have_changed()
to_dense(on_space, scratch=None)
amplitude(state)
class pygsti.evotypes.statevec_slow.EffectRepComposed(op_rep, effect_rep, op_id, state_space)

Bases: EffectRep

op_rep
effect_rep
op_id
state_space
probability(state)
amplitude(state)
class pygsti.evotypes.statevec_slow.OpRep(state_space)

Bases: pygsti.evotypes.basereps.OpRep

The base class for all operation representation classes

property dim
state_space
abstract acton(state)
abstract adjoint_acton(state)
acton_random(state, rand_state)
adjoint_acton_random(state, rand_state)
aslinearoperator()
copy()
class pygsti.evotypes.statevec_slow.OpRepDenseUnitary(mx, basis, state_space)

Bases: OpRep

The base class for all operation representation classes

basis
base
base_has_changed()
to_dense(on_space)
acton(state)
adjoint_acton(state)
class pygsti.evotypes.statevec_slow.OpRepStandard(name, basis, state_space)

Bases: OpRepDenseUnitary

The base class for all operation representation classes

name
class pygsti.evotypes.statevec_slow.OpRepComposed(factor_op_reps, state_space)

Bases: OpRep

The base class for all operation representation classes

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

acton_random(state, rand_state)

Act this gate map on an input state

adjoint_acton_random(state, rand_state)

Act the adjoint of this operation matrix on an input state

reinit_factor_op_reps(new_factor_op_reps)
class pygsti.evotypes.statevec_slow.OpRepSum(factor_reps, state_space)

Bases: OpRep

The base class for all operation representation classes

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

acton_random(state, rand_state)

Act this gate map on an input state

adjoint_acton_random(state, rand_state)

Act the adjoint of this operation matrix on an input state

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

Bases: OpRep

The base class for all operation representation classes

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

Act the adjoint of this gate map on an input state

acton_random(state, rand_state)
adjoint_acton_random(state, rand_state)

Act the adjoint of this gate map on an input state

class pygsti.evotypes.statevec_slow.OpRepExpErrorgen(errorgen_rep)

Bases: OpRep

The base class for all operation representation classes

errorgen_rep
errgenrep_has_changed(onenorm_upperbound)
acton(state)
adjoint_acton(state)
class pygsti.evotypes.statevec_slow.OpRepRepeated(rep_to_repeat, num_repetitions, state_space)

Bases: OpRep

The base class for all operation representation classes

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

acton_random(state, rand_state)

Act this gate map on an input state

adjoint_acton_random(state, rand_state)

Act the adjoint of this operation matrix on an input state

class pygsti.evotypes.statevec_slow.OpRepLindbladErrorgen(lindblad_coefficient_blocks, state_space)

Bases: OpRep

The base class for all operation representation classes

Lterms = 'None'
Lterm_coeffs = 'None'
lindblad_coefficient_blocks
class pygsti.evotypes.statevec_slow.OpRepRandomUnitary(basis, unitary_rates, unitary_reps, seed_or_state, state_space)

Bases: OpRep

The base class for all operation representation classes

basis
unitary_reps
unitary_rates
state_space
acton_random(state, rand_state)
adjoint_acton_random(state, rand_state)
copy()
update_unitary_rates(rates)
to_dense(on_space)
class pygsti.evotypes.statevec_slow.OpRepStochastic(stochastic_basis, basis, initial_rates, seed_or_state, state_space)

Bases: OpRepRandomUnitary

The base class for all operation representation classes

rates
stochastic_basis
update_rates(rates)
class pygsti.evotypes.statevec_slow.StateRep(data, state_space, basis)

Bases: pygsti.evotypes.basereps.StateRep

The base class for all state representation classes

property dim
data
state_space
basis
copy_from(other)
actionable_staterep()
to_dense(on_space)
class pygsti.evotypes.statevec_slow.StateRepDensePure(purevec, state_space, basis)

Bases: StateRep

The base class for all state representation classes

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

Bases: StateRep

The base class for all state representation classes

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

Bases: StateRep

The base class for all state representation classes

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

Bases: StateRep

The base class for all state representation classes

factor_reps
reps_have_changed()