quchip.engine.input_output

Engine-owned input-output assembly for stationary port calculations.

Port channels enter the engine once as PortTerm objects. This module derives coherent input Hamiltonians, output coupling operators, and dense Liouvillians from those resolved terms so analysis code never reconstructs channel physics from the authored chip.

Functions

add_port_inputs(engine, backend, tones)

Add stationary i(beta L† - beta* L) terms in angular units.

dense_liouvillian(engine, backend, *, operation)

Build the dense static Liouvillian used by response/correlation algebra.

port_operators(engine, backend)

Return each resolved L_p = exp(i phi) sqrt(kappa) A_p operator.

same_frequency(first, second)

Compare concrete frequencies without forcing traced values to Python.

small_signal_response(engine, state, ...)

Solve the zero-frequency linear response around one stationary state.

quchip.engine.input_output.port_operators(engine, backend)[source]

Return each resolved L_p = exp(i phi) sqrt(kappa) A_p operator.

Parameters:
Return type:

dict[str, CanonicalOperator]

quchip.engine.input_output.add_port_inputs(engine, backend, tones)[source]

Add stationary i(beta L† - beta* L) terms in angular units.

Parameters:
Return type:

EngineResult

quchip.engine.input_output.dense_liouvillian(engine, backend, *, operation)[source]

Build the dense static Liouvillian used by response/correlation algebra.

Parameters:
Return type:

Any

quchip.engine.input_output.small_signal_response(engine, state, backend, operators, input_label, output_labels)[source]

Solve the zero-frequency linear response around one stationary state.

Parameters:
Return type:

dict[str, Any]

quchip.engine.input_output.same_frequency(first, second)[source]

Compare concrete frequencies without forcing traced values to Python.

Parameters:
Return type:

bool