OpenQP_Docker_Image - Open-Quantum-Platform/openqp GitHub Wiki
To pull the OpenQP Docker image, run:
docker pull openqp/openqp:v1.0To start an interactive session inside the Docker container, use:
docker run -it openqp/openqp:v1.0This opens a command-line interface where you can run OpenQP commands.
Inside the container, use OpenQP with an internal input file like so:
openqp <input_file>Replace <input_file> with the path of your input file in the container.
To use files from your local machine, mount a directory when starting the container. For example:
docker run -it -v /path/to/local/files:/data openqp/openqp:v1.0This mounts the local /path/to/local/files directory to /data inside the container. You can then access and use external files as follows:
openqp /data/input_file.inpThis command processes the input file input_file.inp from your local machine.
Any output files created in the mounted /data directory will be saved in /path/to/local/files on your local machine.
To exit the container, type:
exit