DiscardInd#
qualtran.simulation.tensor.DiscardInd
View source on GitHub
|
Return DiscardInd in Bloq.my_tensors() to indicate an index should be discarded.
qualtran.simulation.tensor.DiscardInd(
ind_tuple
)
We cannot discard an index from a state-vector pure-state simulation, so any bloq that
returns DiscardInd in its my_tensors method will cause an error in the ordinary
tensor contraction simulator.
We can discard indices in open-system simulations by tracing out the index. When using
Bloq.tensor_contract(superoperator=True), the index contained in a DiscardInd will be
traced out of the superoperator tensor network.
Args
Attributes
Methods#
__ne__
__ne__(
other
)
Check equality and either forward a NotImplemented or return the result negated.
__eq__
__eq__(
other
)
Method generated by attrs for class DiscardInd.
View source on GitHub