pytket-cutensornet 0.7.0
-
API breaking changes
- Renamed
CuTensorNetBackend
toCuTensorNetStateBackend
. - Moved
get_operator_expectation_value
andget_circuit_overlap
frombackends
submodule togeneral_state
submodule. - Warning
TensorNetwork
object will soon be deprecated in favour of the newGeneralState
.
- Renamed
-
New API:
GeneralState
for exact simulation of circuits via contraction-path optimisation. Currently supportsget_statevector()
,expectation_value()
andsample()
. -
New feature:
CuTensorNetShotsBackend
for simulation of circuit shots. -
New feature: MPS algorithms
MPSxGate
andMPSxMPO
now support simulation of two-qubit gates acting on non-adjacent qubits. -
New feature:
add_qubit
to add fresh qubits at specified positions in anMPS
. -
New feature: added an option to
measure
to toggle destructive measurement on/off. Currently only supported forMPS
. -
New feature: a seed can now be provided to
Config
objects, providing reproducibility acrossStructuredState
simulations. -
New feature:
apply_unitary
both forMPS
andTTN
to apply an arbitrary unitary matrix, rather than apytket.Command
. -
New feature:
apply_qubit_relabelling
both forMPS
andTTN
to change the name of their qubits. This is now used withinsimulate
to take into account the action of implicit SWAPs in pytket circuits (no additional SWAP gates are applied). -
Updated pytket version requirement to 1.30.