API documentation¶
- class pytket.extensions.cutensornet.CuTensorNetHandle(device_id=None)[source]¶
Initialise the cuTensorNet library with automatic workspace memory management.
Note
Always use as
with CuTensorNetHandle() as libhandle:
so that cuTensorNet handles are automatically destroyed at the end of execution.- device_id¶
The ID of the device (GPU) where cuTensorNet is initialised. If not provided, defaults to
cp.cuda.Device()
.- Type:
- General state (exact) simulation
- Structured state evolution
- Simulation
- Classes
StructuredState
StructuredState.is_valid()
StructuredState.apply_gate()
StructuredState.apply_unitary()
StructuredState.apply_scalar()
StructuredState.apply_qubit_relabelling()
StructuredState.vdot()
StructuredState.sample()
StructuredState.measure()
StructuredState.postselect()
StructuredState.expectation_value()
StructuredState.get_fidelity()
StructuredState.get_statevector()
StructuredState.get_amplitude()
StructuredState.get_bits()
StructuredState.get_qubits()
StructuredState.get_byte_size()
StructuredState.get_device_id()
StructuredState.update_libhandle()
StructuredState.copy()
TTNxGate
MPSxGate
MPSxMPO
- Miscellaneous