லோக்கல் உள்ளமைவு#
நீங்கள் Qiskit நிறுவப்பட்டதும் இயங்கினதும் உங்கள் குறிப்பிட்ட பயன்பாட்டு வழக்கில் Qiskit இயல்புநிலை நடத்தையை மாற்ற சில விருப்ப உள்ளமைவு படிகள் உள்ளன.
பயனர் கட்டமைப்பு கோப்பு#
Qiskit லோக்கல் உள்ளமைவுக்கான முக்கிய இடம் பயனர் கட்டமைப்பு கோப்பு. இது ஒரு ini வடிவமைப்பு கோப்பு, இது Qiskit இயல்புநிலைகளை மாற்ற பயன்படுகிறது.
உதாரணத்திற்கு:
[default]
circuit_drawer = mpl
circuit_mpl_style = default
circuit_mpl_style_path = ~:~/.qiskit
state_drawer = hinton
transpile_optimization_level = 3
parallel = False
num_processes = 15
By default this file lives in ~/.qiskit/settings.conf
but the path used
can be overridden with the QISKIT_SETTINGS
environment variable. If
QISKIT_SETTINGS
is set its value will used as the path to the user config
file.
கிடைக்கும் விருப்பங்கள்:
circuit_drawer
: இது சர்க்யூட் டிராயருக்கான இயல்புநிலை பின்தளத்தில் மாற்ற பயன்படுகிறதுqiskit.circuit.QuantumCircuit.draw()
மற்றும்qiskit.visualization.circuit_drawer()
. இதைlatex
,mpl
,text
,அல்லதுlatex_source
என அமைக்கலாம், மேலும்output
kwarg வெளிப்படையாக அமைக்கப்படாதபோது, அந்த டிராயர் பின்தளத்தில் பயன்படுத்தப்படும்.
circuit_mpl_style
: சர்க்யூட் டிராயருக்கானmpl
வெளியீட்டு பின்தளத்தில் பயன்படுத்தப்படும் இயல்புநிலை ஸ்டைல் ஷீட் இதுவாகும்qiskit.circuit.QuantumCircuit.draw()
மற்றும்qiskit.visualization.circuit_drawer()
. இதைdefault
அல்லதுbw
என அமைக்கலாம்.
circuit_mpl_style_path
: சர்க்யூட் டிராயரை வைத்திருக்க பாதை(களை) அமைக்க இதைப் பயன்படுத்தலாம்qiskit.circuit.QuantumCircuit.draw()
அல்லதுqiskit.visualization.circuit_drawer()
, பார்க்க பயன்படுத்தவும்mpl
வெளியீட்டு பயன்முறையைப் பயன்படுத்தும் போது json நடை தாள்களுக்கு.
state_drawer
: நிலை காட்சிப்படுத்தல் வரைபடுத்தல் முறைகளுக்கான இயல்புநிலை பின்தளத்தில் மாற்ற இது பயன்படுகிறதுqiskit.quantum_info.Statevector.draw()
மற்றும்qiskit.quantum_info.DensityMatrix.draw()
. இதைrepr
,text
,latex
,latex_source
,qsphere
,hinton
, அல்லதுbloch
மற்றும்output
kwarg வெளிப்படையாக அமைக்கப்படாதபோதுdraw()
வெளியீட்டு முறை பயன்படுத்தப்படும்.
transpile_optimization_level
: இது 0-3 க்கு இடையில் ஒரு முழு எண்ணை எடுக்கும் மற்றும் இயல்புநிலை தேர்வுமுறை அளவை மாற்ற இவை பயன்படுகிறது,transpile()
மற்றும்execute()
.
parallel
: This option takes a boolean value (eitherTrue
orFalse
) and is used to configure whether Python multiprocessing is enabled for operations that support running in parallel (for example transpilation of multipleQuantumCircuit
objects). The default setting in the user config file can be overridden by theQISKIT_PARALLEL
environment variable.
num_processes
: This option takes an integer value (> 0) that is used to specify the maximum number of parallel processes to launch for parallel operations if parallel execution is enabled. The default setting in the user config file can be overridden by theQISKIT_NUM_PROCS
environment variable.
சுற்றுச்சூழல் மாறிகள்#
Qiskit இயல்புநிலை நடத்தையை மாற்ற சில சூழல் மாறிகள் அமைக்கப்படலாம்.
QISKIT_PARALLEL
: if this variable is set toTRUE
it will enable the use of Python multiprocessing to parallelize certain operations (for example transpilation over multiple circuits) in Qiskit.
QISKIT_NUM_PROCS
: இணையான செயலாக்கம் இயக்கப்பட்டால், இணையான செயல்பாடுகளுக்குத் தொடங்க அதிகபட்ச இணையான செயல்முறைகளைக் குறிப்பிடுகிறது. இணையான செயலாக்கம் இயக்கப்பட்டிருந்தால். இது ஒரு முழு எண்> 0 ஐ எதிர்பார்க்கும் மதிப்பாக எடுக்கும்.
RAYON_NUM_THREADS
: Specifies the number of threads to run multithreaded operations in Qiskit. By default this multithreaded code will launch a thread for each logical CPU, if you'd like to adjust the number of threads Qiskit will use you can set this to an integer value. For example, settingRAYON_NUM_THREADS=4
will only launch 4 threads for multithreaded functions.
QISKIT_FORCE_THREADS
: மல்டித்ரெட் குறியீடு எப்பொழுதும் பல திரிகளில் இயக்கப்பட வேண்டும் என்பதைக் குறிப்பிடவும். முன்னிருப்பாக நீங்கள் Qiskit இன் ஒரு பிரிவில் மல்டித்ரெட் குறியீட்டை இயக்கினால், அது ஏற்கனவே இணையான செயல்முறைகளில் இயங்குகிறது Qiskit பல தொடரிழைகளைத் தொடங்காது, அதற்குப் பதிலாக அந்தச் செயல்பாட்டைத் தொடராகச் செயல்படுத்தும். வரம்புக்குட்பட்ட CPU ஆதாரங்களை ஓவர்லோட் செய்வதைத் தவிர்க்க இது செய்யப்படுகிறது. இருப்பினும், மல்டிபிராசஸ் சூழலில் இருக்கும்போதும் பல நூல்களைப் பயன்படுத்துவதை நீங்கள் கட்டாயப்படுத்த விரும்பினால், இதைச் செய்யQISKIT_FORCE_THREADS=TRUE
அமைக்கலாம்.