nkdsl.CompiledOperator¶
- class CompiledOperator(hilbert, *, name, fn, is_hermitian, dtype, max_conn_size)[source]¶
An executable operator produced by lowering a
SymbolicOperator.CompiledOperatoris the concrete result ofsymbolic_op.compile()orSymbolicDiscreteJaxOperator(...).compile(). Itsget_conn_paddedkernel is a pure JAX function that can be JIT-compiled, vmapped, and differentiated.The class name is fixed and stable, it does not encode the operator name or structure. The readable operator name is available via the
nameproperty.- Parameters:
- name¶
Operator name (from the DSL definition).
- is_hermitian¶
Whether this operator is declared Hermitian.
- dtype¶
Matrix-element NumPy dtype.
- __init__(hilbert, *, name, fn, is_hermitian, dtype, max_conn_size)¶
Methods
__init__(hilbert, *, name, fn, is_hermitian, ...)get_conn_padded(x)tree_flatten()tree_unflatten(aux_data, leaves)Attributes
max_conn_sizeReturns the readable operator name.