iocontrol
ΒΆ
The module of IO control. (qurry.qurrium.utils.iocontrol
)
- class qurry.qurrium.utils.iocontrol.IOComplex(expsName: str, save_location: Path, export_location: Path, tarName: str, tarLocation: Path)[source]ΒΆ
The complex of IO control.
- qurry.qurrium.utils.iocontrol.RJUST_LEN = 3ΒΆ
The length of the string to be right-justified for serial number.
- qurry.qurrium.utils.iocontrol.naming(is_read: bool = False, exps_name: str = 'exps', save_location: Path | str = PosixPath('.'), without_serial: bool = False, rjust_len: int = 3, index_rename: int = 0) IOComplex [source]ΒΆ
The process of naming.
- Parameters:
is_read (bool, optional) β Whether to read the experiment data. Defaults to False.
exps_name (str, optional) β Naming this experiment to recognize it when the jobs are pending to IBMQ Service. This name is also used for creating a folder to store the exports. Defaults to βexpsβ.
save_location (Union[Path, str], optional) β Where to save the export data. Defaults to Path(β./β)
without_serial (bool, optional) β Whether to use the serial number. Defaults to False.
rjust_len (int, optional) β The length of the serial number. Defaults to 3.
index_rename (int, optional) β The serial number. Defaults to 0.
- Raises:
TypeError β The :arg:`save_location` is not a βstrβ or βPathβ.
FileNotFoundError β The :arg:`save_location` is not existed.
FileNotFoundError β Can not find the exportation data which will be readed.
- Returns:
Name.
- Return type: