From 5b19c8720a4b1da0b6e786b34827ea782338dd57 Mon Sep 17 00:00:00 2001 From: Caleb Johnson Date: Wed, 25 Sep 2024 16:04:29 -0500 Subject: [PATCH] Make sure / operator acts on a Path object --- qiskit_addon_dice_solver/dice_solver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qiskit_addon_dice_solver/dice_solver.py b/qiskit_addon_dice_solver/dice_solver.py index 336edfa..e561b40 100644 --- a/qiskit_addon_dice_solver/dice_solver.py +++ b/qiskit_addon_dice_solver/dice_solver.py @@ -335,7 +335,7 @@ def _write_input_files( ) -> None: """Prepare the Dice inputs in the specified directory.""" ### Move the FCI Dump to dice dir if it's not already there. ### - dice_fci_path = dice_dir / "fcidump.txt" + dice_fci_path = Path(dice_dir) / "fcidump.txt" if not os.path.exists(dice_fci_path): shutil.copy(active_space_path, dice_fci_path) ### Write the input.dat ###