{"id":24490,"library":"qiskit-ibm-experiment","title":"Qiskit IBM Experiment","description":"Provides access to the IBM Quantum experiment service, allowing users to manage experiments, retrieve experiment results, and work with analysis results from IBM Quantum backends. Current version 0.4.8, released on a monthly/quarterly cadence.","status":"active","version":"0.4.8","language":"python","source_language":"en","source_url":"https://github.com/Qiskit/qiskit-ibm-experiment","tags":["qiskit","ibm-quantum","experiment","quantum-computing"],"install":[{"cmd":"pip install qiskit-ibm-experiment","lang":"bash","label":"PyPI install"}],"dependencies":[{"reason":"Required for IBM Quantum backend access and runtime services.","package":"qiskit-ibm-runtime","optional":true},{"reason":"Legacy dependency for accessing IBM Quantum backends (deprecated in favor of qiskit-ibm-runtime).","package":"qiskit-ibm-provider","optional":true}],"imports":[{"note":"The correct class name is ExperimentService, not Service.","wrong":"from qiskit_ibm_experiment import Service","symbol":"ExperimentService","correct":"from qiskit_ibm_experiment import ExperimentService"},{"note":"Use IBMExperimentService instead of IBMQExperimentService (old name).","wrong":"from qiskit_ibm_experiment import IBMQExperimentService","symbol":"IBMExperimentService","correct":"from qiskit_ibm_experiment import IBMExperimentService"}],"quickstart":{"code":"import os\nfrom qiskit_ibm_experiment import ExperimentService\n\n# Initialize with token from environment variable or IBM Quantum account\ntoken = os.environ.get('IBM_QUANTUM_TOKEN', '')\nservice = ExperimentService(token=token)\n\n# List experiments\nexperiments = service.experiments()\nprint(experiments)","lang":"python","description":"Initializes the ExperimentService using an IBM Quantum API token and lists available experiments."},"warnings":[{"fix":"Pass a 'token' parameter or set the IBM_QUANTUM_TOKEN environment variable instead of using 'account'.","message":"In v0.4.0, the default authentication method changed from account-based to token-based. Using `account` parameter is deprecated and will be removed in a future version.","severity":"breaking","affected_versions":">=0.4.0"},{"fix":"Use `ExperimentService` instead of `IBMExperimentService`.","message":"The `IBMExperimentService` class is deprecated in favor of `ExperimentService`. It will be removed in a future release.","severity":"deprecated","affected_versions":">=0.4.0"},{"fix":"Convert to list: `experiments = list(service.experiments())` or iterate directly.","message":"The `experiments()` method returns a paginated iterator; to get all experiments, you need to iterate over it. Calling it without iteration returns an iterator object, not a list.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Upgrade the package: `pip install --upgrade qiskit-ibm-experiment`. Also ensure you are using the correct import: `from qiskit_ibm_experiment import ExperimentService`.","cause":"Outdated package version or incorrect import path.","error":"ImportError: cannot import name 'ExperimentService' from 'qiskit_ibm_experiment'"},{"fix":"Upgrade the package to the latest version. If using v0.4.x, the method is `experiments()`. For older versions, refer to documentation.","cause":"Using an older API where the method might be named differently or not yet available.","error":"QiskitIBMExperimentError: 'IBMExperimentService' object has no attribute 'experiments'"},{"fix":"Replace `account='my_account'` with `token='your_token_here'`.","cause":"In v0.4.0+, the 'account' parameter was removed; use 'token' instead.","error":"TypeError: __init__() got an unexpected keyword argument 'account'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}