uniqc.circuit_builder.originir_spec module#
OriginIR language specification for quantum gates and error channels.
This module defines the available gates and error channels in OriginIR format, including their qubit requirements and parameter counts. It also provides utility functions for generating subsets of gates and error channels.
- Key exports:
available_originir_gates: Dictionary of all available OriginIR gates. angular_gates: List of gates that accept angular parameters. available_originir_error_channels: Dictionary of available error channels. available_originir_error_channels_without_kraus: Error channels excluding Kraus operators. generate_sub_gateset_originir: Function to generate a subset of gates. generate_sub_error_channel_originir: Function to generate a subset of error channels.
- uniqc.circuit_builder.originir_spec.generate_sub_error_channel_originir(channel_list)[source]#
Generate a subset of the OriginIR error channels filtered by channel names.