Perguntas Frequentes¶
P: Como devo citar Qiskit na minha pesquisa?
A: Please cite Qiskit by using the included BibTeX file.
Q: Why do I receive the error message AttributeError: QuantumCircuit object has no attribute save_state
when using ``save_*``method on a circuit?
A: The save_*
instructions are part of Qiskit Aer project,
a high performance simulator for quantum circuits. These instructions do not
exist outside of Qiskit Aer and are added dynamically to the
QuantumCircuit
class by Qiskit Aer on import. If you would like to
use these instructions you must first ensure that you have imported
qiskit_aer
in your program before trying to call these methods. You
can refer to qiskit_aer.library
for the details of these custom
instructions included with Qiskit Aer.
P: Por que meus resultados de dispositivos reais diferem dos meus resultados do simulador?
R: O simulador executa trabalhos como se estivesse em um ambiente ideal; sem ruído ou decoerência. No entanto, quando se geram tarefas em aparelhos reais, há ruído proveniente do ambiente e da decoerência, que faz com que os qubits se comportem de modo diferente do pretendido.
P: Por que recebo a mensagem de erro, No Moduloe'qiskit'
quando uso o Notebook do Jupyter?
A: If you used pip install qiskit
and set up your virtual environment in
Anaconda, then you may experience this error when you run a tutorial
in Jupyter Notebook. If you have not installed Qiskit or set up your
virtual environment, you can follow the Instalação steps.
O erro é causado ao tentar importar o pacote Qiskit em um ambiente onde o Qiskit não está instalado. Se você rodou o Jupyter Notebook de um navegador Anaconda, é possível que o Jupyter Notebook esteja rodando no ambiente base (raiz), em vez de em seu ambiente virtual. Escolha um ambiente virtual no navegador Anaconda a partir do menu suspenso Aplicativos em. Neste menu, você pode ver todos os ambientes virtuais dentro da Anaconda, e você pode selecionar o ambiente onde você tem Qiskit instalado para rodar o Jupyter Notebook.
P: Por que estou recebendo um erro de compilação ao instalar ``qiskit``?
A: Qiskit depends on a number of other open source Python packages, which
are automatically installed when doing pip install qiskit
. Depending on
your system’s platform and Python version, it is possible that a particular
package does not provide pre-built binaries for your system. You can refer
to Suporte de Plataforma for a list of platforms supported by Qiskit, some
of which may need an extra compiler. In cases where there are
no precompiled binaries available pip
will attempt to compile the package
from source, which in turn might require some extra dependencies that need to
be installed manually.
Se a saída do pip install qiskit
contém linhas semelhantes a:
Failed building wheel for SOME_PACKAGE
...
build/temp.linux-x86_64-3.5/_openssl.c:498:30: fatal error
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
please check the documentation of the package that failed to install (in the
example code, SOME_PACKAGE
) for information on how to install the libraries
needed for compiling from source.