pytket-cutensornet 0.7.0
-
API breaking changes
- Renamed
CuTensorNetBackendtoCuTensorNetStateBackend. - Moved
get_operator_expectation_valueandget_circuit_overlapfrombackendssubmodule togeneral_statesubmodule. - Warning
TensorNetworkobject will soon be deprecated in favour of the newGeneralState.
- Renamed
-
New API:
GeneralStatefor exact simulation of circuits via contraction-path optimisation. Currently supportsget_statevector(),expectation_value()andsample(). -
New feature:
CuTensorNetShotsBackendfor simulation of circuit shots. -
New feature: MPS algorithms
MPSxGateandMPSxMPOnow support simulation of two-qubit gates acting on non-adjacent qubits. -
New feature:
add_qubitto add fresh qubits at specified positions in anMPS. -
New feature: added an option to
measureto toggle destructive measurement on/off. Currently only supported forMPS. -
New feature: a seed can now be provided to
Configobjects, providing reproducibility acrossStructuredStatesimulations. -
New feature:
apply_unitaryboth forMPSandTTNto apply an arbitrary unitary matrix, rather than apytket.Command. -
New feature:
apply_qubit_relabellingboth forMPSandTTNto change the name of their qubits. This is now used withinsimulateto take into account the action of implicit SWAPs in pytket circuits (no additional SWAP gates are applied). -
Updated pytket version requirement to 1.30.