fermioniq.emulator_job.jsonify_and_compress_inputs#
- fermioniq.emulator_job.jsonify_and_compress_inputs(job: EmulatorJob) tuple[list[dict[str, Any]], list[dict[str, Any]], list[dict[str, Any] | None]] #
Wrap the configs, circuits, and noise models of an EmulatorJob in JSON.
For configs and noise models, if all are equal, only one is sent. For circuits, all are compressed.
- Parameters:
- job
The EmulatorJob to extract input data from.
- Returns:
- json_circuits
List of compressed jsonified circuits.
- json_configs
List of jsonified configs.
- json_noise_models
List of jsonified noise models, or list of None.