Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change QuantumCircuit.metadata to always be a dict #9849

Merged
merged 12 commits into from
Apr 18, 2023
2 changes: 1 addition & 1 deletion qiskit/circuit/quantumcircuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def has_calibration_for(self, instr_context: Tuple):
return (qubits, params) in self.calibrations[instr.name]

@property
def metadata(self) -> dict:
def metadata(self) -> Union[dict, None]:
"""The user provided metadata associated with the circuit

The metadata for the circuit is a user provided ``dict`` of metadata
Expand Down